<commit_before># -*- encoding : utf-8 -*-

module Linael
  class Modules::System < ModuleIRC

    Name="system"

    Help=[
      "Module : System",
      " ",
      "=====Functions=====",
      "!bash xxx => execute with bash the xxx command"
    ]

    def startMod
      add_module :cmdAuth => [:bash]
    end

    def bash priv_msg
      if Options.bash? priv_msg.message
        options = Options.new priv_msg
        result = `#{options.all}`
        answer(priv_msg,"#{priv_msg.who}: Everything have gone as planned!")
        result.gsub("\r",'').split("\n").each do |line|
          talk(priv_msg.who,line)
        end
      end
    end

    class Options < ModulesOptions
      generate_to_catch :bash => /^!bash\s+\S/
      generate_all
    end
  end
end
<commit_msg>Revert "minor correction on system"<commit_after># -*- encoding : utf-8 -*-

module Linael
  class Modules::System < ModuleIRC

    Name="system"

    Help=[
      "Module : System",
      " ",
      "=====Functions=====",
      "!bash xxx => execute with bash the xxx command"
    ]

    def startMod
      add_module :cmdAuth => [:bash]
    end

    def bash priv_msg
      if Options.bash? priv_msg.message
        options = Options.new priv_msg
        result = `#{options.all}`
        answer(priv_msg,"#{priv_msg.who}: Everything have gone as planned!")
        result.gsub('\r','').split("\n").each do |line|
          talk(priv_msg.who,line)
        end
      end
    end

    class Options < ModulesOptions
      generate_to_catch :bash => /^!bash\s+\S/
      generate_all
    end
  end
end

{'fraction_non_alphanumeric': 0.13814955640050697, 'fraction_numerical': 0.0012674271229404308, 'mean_word_length': 2.18989898989899, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '1640554', 'n_tokens_mistral': 525, 'n_tokens_neox': 501, 'n_words': 126}