<commit_before>require "thor"
require 'fileutils'

module Silence

  class Setup < Thor
    desc "new NAME", "This will setup new project"
    option :upcase

    def new(name)
      check_system_packages('Xvfb', 'firefox')
      Dir.mkdir(name) unless File.exists?(name)
      copy_project_structure(name)
      generate_file("#{name}/.ruby-gemset", name)
      generate_file("#{name}/.ruby-version", "ruby-2.2.2")
    end

    no_commands do

      def check_system_packages(*packages)
        missing_packages = []
        packages.each do |package| 
          missing_packages << package unless `which #{package}`.empty?
        end
        if missing_packages.size > 0
          begin
            raise
          rescue Exception => e
            missing_packages.each do |package|  
              color_output("#{package} should be installed!", 31)
            end<commit_msg>fix new gnerator<commit_after>require "thor"
require 'fileutils'

module Silence

  class Setup < Thor
    desc "new NAME", "This will setup new project"
    option :upcase

    def new(name)
      check_system_packages('Xvfb', 'firefox')
      Dir.mkdir(name) unless File.exists?(name)
      copy_project_structure(name)
      generate_file("#{name}/.ruby-gemset", name)
      generate_file("#{name}/.ruby-version", "ruby-2.2.2")
    end

    no_commands do

      def check_system_packages(*packages)
        missing_packages = []
        packages.each do |package| 
          missing_packages << package if `which #{package}`.empty?
        end
        if missing_packages.size > 0
          begin
            raise
          rescue Exception => e
            missing_packages.each do |package|  
              color_output("#{package} should be installed!", 31)
            end
{'fraction_non_alphanumeric': 0.10550198525241067, 'fraction_numerical': 0.006806579693703914, 'mean_word_length': 2.36, 'pattern_counts': {'":': 0, '<': 9, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1310929', 'n_tokens_mistral': 523, 'n_tokens_neox': 498, 'n_words': 127}