<commit_before># Run checks on message event
module Events
  extend Discordrb::EventContainer
  message(containing: '(╯°□°）╯︵ ┻━┻') do |event|
    event.respond '┬─┬﻿ ノ( ゜-゜ノ)'
  end

  message(containing: '┬─┬﻿ ノ( ゜-゜ノ)') do |event|
    event.respond '(╯°□°）╯︵ ┻━┻'
  end

  message(containing: '111') do |event|
    id_list = %w(1112 1113 1114 1115 1116 1117 1118 1119 1110 2111 3111 4111
                 5111 6111 7111 8111 9111 0111)
    if id_list.any? { |s| event.message.content.include?(s) }
    else
      event.respond 'CATCH THE FUCKING MONSTER!!'
    end
  end

  message(containing: 'RIP') do |event|
    rip = [
      'Rest in Pizza', 'RIP in Peace', 'Ripperoni', 'Rippy Dippy Doo',
      'Rest in Peace', 'RIP in Pizza', 'RIP in Pizza Noodle'
    ]
    event.respond rip[rand(0..(rip.length - 1))]
  end

  message(containing: [
            'english patch', 'English Patch', 'English patch', 'english Patch',
            'Eng Patch', 'Eng patch', 'eng patch', 'eng Patch', 'ENGLISH PATCH',
            'ENG PATCH'
          ]) do |event|
    engpatch = '2016-06-21 00:00:00 +0000'
    t1 = Time.now
    t4 = Time.parse(engpatch)
    d1 = TimeDifference.between(t1, t4).in_days
    d2 = d1.floor
    event.respond "Day #{d2}: Still no english patch"
  end

  message(containing: %w(Aslind aslind Asslind asslind)) do |event|
    engpatch = '2016-12-27 00:00:00 +0000'
    t1 = Time.now
    t4 = Time.parse(engpatch)
    d1 = TimeDifference.between(t1, t4).in_days
    d2 = d1.floor
    event.respond "Day #{d2}: Still no Aslind"
  end

  message do |event|
    unless event.message.content.include?(PREFIX)
      if event.message.channel.pm?
        # event.channel.start_typing
        # sleep rand(1..3)
        # event.respond CLEVER.send_message(event.message.content)
      else
        if rand(0..24).zero? && event.channel.id == event.server.id
            # event.channel.start_typing
            # sleep rand(1..3)
            # event.respond CLEVER.send_message(event.message.content)
          end
        end
        unless BOT.parse_mention(event.message.content).nil?
          if BOT.parse_mention(
            event.message.content
          ).id == 192_753_495_806_312_451
            # text = event.message.content.delete('<@192753495806312451>')
            # event.channel.start_typing
            # sleep rand(1..3)
            # event.respond CLEVER.send_message(text)
          end
        end
        if $users.key?(event.server.id.to_s)
          if $users[event.server.id.to_s].key?(event.user.id.to_s)
            $users[event.server.id.to_s][event.user.id.to_s] += 1
          else
            $users[event.server.id.to_s][event.user.id.to_s] = 1
          end
        else
          $users[event.server.id.to_s] = { event.user.id.to_s => 1 }
        end
      end
    end
  end
end
<commit_msg>remove random all together<commit_after># Run checks on message event
module Events
  extend Discordrb::EventContainer
  message(containing: '(╯°□°）╯︵ ┻━┻') do |event|
    event.respond '┬─┬﻿ ノ( ゜-゜ノ)'
  end

  message(containing: '┬─┬﻿ ノ( ゜-゜ノ)') do |event|
    event.respond '(╯°□°）╯︵ ┻━┻'
  end

  message(containing: '111') do |event|
    id_list = %w(1112 1113 1114 1115 1116 1117 1118 1119 1110 2111 3111 4111
                 5111 6111 7111 8111 9111 0111)
    if id_list.any? { |s| event.message.content.include?(s) }
    else
      event.respond 'CATCH THE FUCKING MONSTER!!'
    end
  end

  message(containing: 'RIP') do |event|
    rip = [
      'Rest in Pizza', 'RIP in Peace', 'Ripperoni', 'Rippy Dippy Doo',
      'Rest in Peace', 'RIP in Pizza', 'RIP in Pizza Noodle'
    ]
    event.respond rip[rand(0..(rip.length - 1))]
  end

  message(containing: [
            'english patch', 'English Patch', 'English patch', 'english Patch',
            'Eng Patch', 'Eng patch', 'eng patch', 'eng Patch', 'ENGLISH PATCH',
            'ENG PATCH'
          ]) do |event|
    engpatch = '2016-06-21 00:00:00 +0000'
    t1 = Time.now
    t4 = Time.parse(engpatch)
    d1 = TimeDifference.between(t1, t4).in_days
    d2 = d1.floor
    event.respond "Day #{d2}: Still no english patch"
  end

  message(containing: %w(Aslind aslind Asslind asslind)) do |event|
    engpatch = '2016-12-27 00:00:00 +0000'
    t1 = Time.now
    t4 = Time.parse(engpatch)
    d1 = TimeDifference.between(t1, t4).in_days
    d2 = d1.floor
    event.respond "Day #{d2}: Still no Aslind"
  end

  message do |event|
    unless event.message.content.include?(PREFIX)
      if event.message.channel.pm?
        # event.channel.start_typing
        # sleep rand(1..3)
        # event.respond CLEVER.send_message(event.message.content)
      else
        unless BOT.parse_mention(event.message.content).nil?
          if BOT.parse_mention(
            event.message.content
          ).id == 192_753_495_806_312_451
            # text = event.message.content.delete('<@192753495806312451>')
            # event.channel.start_typing
            # sleep rand(1..3)
            # event.respond CLEVER.send_message(text)
          end
        end
        if $users.key?(event.server.id.to_s)
          if $users[event.server.id.to_s].key?(event.user.id.to_s)
            $users[event.server.id.to_s][event.user.id.to_s] += 1
          else
            $users[event.server.id.to_s][event.user.id.to_s] = 1
          end
        else
          $users[event.server.id.to_s] = { event.user.id.to_s => 1 }
        end
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.1388481291269259, 'fraction_numerical': 0.06401320616287601, 'mean_word_length': 2.282962071041541, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '484145', 'n_tokens_mistral': 2255, 'n_tokens_neox': 2000, 'n_words': 440}