<commit_before>module.exports = (robot) ->
  robot.respond /(.*) bomb( (\d+))?/i, (msg) ->
    subject = msg.match[1]
    if subject isnt "carson" and subject isnt "corgi" and subject isnt "pug" and subject isnt "maurice" and subject isnt "fierce"
      count = msg.match[2] || 5
      imageMe msg, count, subject

imageMe = (msg, count, query) ->
  msg.http('http://ajax.googleapis.com/ajax/services/search/images')
    .query(v: "1.0", rsz: '8', q: query)
    .get() (err, res, body) ->
      images = JSON.parse(body)
      images = images.responseData.results
      if images.length > 0
        for i in [0...count]
          image = msg.random images
          msg.send "#{image.unescapedUrl}#.png"<commit_msg>bomb fix<commit_after>module.exports = (robot) ->
  robot.respond /(.*) bomb( (\d+))?/i, (msg) ->
    subject = msg.match[1]
    if subject isnt "carson" and subject isnt "corgi" and subject isnt "pug" and subject isnt "maurice" and subject isnt "fierce"
      if subject is "starving"
        subject = "puppy"
      count = msg.match[2] || 5
      imageMe msg, count, subject

imageMe = (msg, count, query) ->
  msg.http('http://ajax.googleapis.com/ajax/services/search/images')
    .query(v: "1.0", rsz: '8', q: query)
    .get() (err, res, body) ->
      images = JSON.parse(body)
      images = images.responseData.results
      if images.length > 0
        for i in [0...count]
          image = msg.random images
          msg.send "#{image.unescapedUrl}#.png"
{'fraction_non_alphanumeric': 0.15897097625329815, 'fraction_numerical': 0.010554089709762533, 'mean_word_length': 2.4243792325056432, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2928679', 'n_tokens_mistral': 549, 'n_tokens_neox': 516, 'n_words': 138}