<commit_before>class Hipster < Linkbot::Plugin
    @@hipster_regex = Regexp.new(/^!hipster$/)
    @@himages =
      ["http://imgur.com/vNNgw.jpg", "http://imgur.com/UgzjE.jpg",
        "http://imgur.com/YGB6A.jpg", "http://imgur.com/LUWK8.jpg",
        "http://imgur.com/6E3JK.jpg", "http://imgur.com/tjfFM.jpg",
        "http://imgur.com/2cb4q.jpg", "http://imgur.com/iQ89L.jpg",
        "http://imgur.com/toQYU.jpg", "http://imgur.com/wOQLv.jpg",
        "http://imgur.com/Iis7H.jpg", "http://imgur.com/pjHXU.jpg",
        "http://imgur.com/GbLiX.jpg", "http://imgur.com/bgbAM.jpg",
        "http://imgur.com/eV0Q2.jpg", "http://imgur.com/HTSkK.jpg",
        "http://imgur.com/lL922.jpg", "http://imgur.com/wu98d.jpg",
        "http://imgur.com/QgqmD.jpg", "http://imgur.com/biA50.jpg",
        "http://imgur.com/7INwG.jpg", "http://imgur.com/zhr1S.jpg",
        "http://imgur.com/FmtqB.jpg", "http://imgur.com/d2lXt.jpg",
        "http://imgur.com/qVjhD.jpg", "http://imgur.com/eJWfw.jpg",
        "http://imgur.com/HlFzr.jpg", "http://imgur.com/18KYP.jpg",
        "http://imgur.com/ZunXi.jpg", "http://imgur.com/gZ6Z6.jpg",
        "http://imgur.com/fBX3A.jpg", "http://imgur.com/GNLhj.jpg",
        "http://imgur.com/BNoKP.jpg", "http://imgur.com/rvNNE.jpg",
        "http://imgur.com/o4u2Y.jpg", "http://imgur.com/FZKd4.jpg",
        "http://imgur.com/czUAt.jpg", "http://imgur.com/Gtg1I.jpg",
        "http://imgur.com/QfSnr.jpg", "http://imgur.com/zE1oP.jpg",
        "http://imgur.com/Ki8PU.jpg", "http://imgur.com/n4PtK.jpg",
        "http://imgur.com/jNcO0.jpg", "http://imgur.com/k99Vp.jpg",
        "http://imgur.com/7Khaf.jpg", "http://imgur.com/6Qobk.jpg",
        "http://imgur.com/vYQXY.jpg", "http://imgur.com/HD7AJ.jpg",
        "http://imgur.com/CLjx7.jpg", "http://imgur.com/qrXR4.jpg",
        "http://imgur.com/3TezU.jpg", "http://imgur.com/TMyiD.jpg"]

    def self.on_message(message, matches)
      res, location = nil, nil
      url = URI.parse('http://api.automeme.net/text?vocab=hipster')

      res = Net::HTTP.get(url)
      meme = res.split("\n").first

      page = rand(150)
      url = "http://lookatthisfuckinhipster.com"
      doc = Hpricot(open("#{url}?p=#{page}").read)
      imgs = doc.search("div[@class=imagewrap] img")
      img = url + imgs[rand(imgs.length)].attributes["src"]

      [img, meme]
    end

    def self.help
      "!hipster - Is it can be PBR tiem nao plox?"
    end

    Linkbot::Plugin.register('hipster', self,
      {
        :message => {:regex => /!hipster/, :handler => :on_message, :help => :help}
      }
    )
end
<commit_msg>removing dead code from hipster<commit_after>class Hipster < Linkbot::Plugin
    @@hipster_regex = Regexp.new(/^!hipster$/)

    def self.on_message(message, matches)
      url = URI.parse('http://api.automeme.net/text?vocab=hipster')

      res = Net::HTTP.get(url)
      meme = res.split("\n").first

      page = rand(150)
      url = "http://lookatthisfuckinhipster.com"
      doc = Hpricot(open("#{url}?p=#{page}").read)
      imgs = doc.search("div[@class=imagewrap] img")
      img = url + imgs[rand(imgs.length)].attributes["src"]

      [img, meme]
    end

    def self.help
      "!hipster - Is it can be PBR tiem nao plox?"
    end

    Linkbot::Plugin.register('hipster', self,
      {
        :message => {:regex => /!hipster/, :handler => :on_message, :help => :help}
      }
    )
end

{'fraction_non_alphanumeric': 0.22101236021188936, 'fraction_numerical': 0.014125956444967627, 'mean_word_length': 2.540625, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1633292', 'n_tokens_mistral': 1397, 'n_tokens_neox': 1348, 'n_words': 163}