I think that's fake code in the images ;)
(Also use consts so you don’t make typos - or so your typos are at least consistent :)
The app itself appears to be written in Ruby (the github link is posted elsewhere in the comments), and looking at the image included in the article further down I assume the code is from a Go app that takes the Ruby app's logs and generates some statistics.