<commit_before>require "fileutils"
require "thor"

module Non
    VERSION = "5.0.1"
    CLI_DIR = File.expand_path(File.dirname(__FILE__))
    CLI_DATA = File.join(CLI_DIR, "non")
    CLI_FILE = File.join(CLI_DIR, "non.launcher.jar")
    PROJECT_DIR = File.expand_path(".")
    PROJECT_DATA = File.join(PROJECT_DIR, ".non")
    PROJECT_FILE = File.join(PROJECT_DATA, "VERSION")
    EXECUTOR = "java -jar #{CLI_FILE} #{PROJECT_DIR} "
    
    def self.execute(cmd)
        system("#{EXECUTOR} #{cmd}")
    end

    def self.check
        if not(File.exists?(PROJECT_DATA))
            FileUtils.copy_entry(CLI_DATA, PROJECT_DATA)
        end
    end
    
    class Build < Thor
        desc "build PLATFORM", "build your application for specified PLATFORM"
        def build(platform)
            Non.check
            Non.execute "#{platform}:dist"
        end
        
        desc "start PLATFORM", "start your application for specified PLATFORM"
        def start(platform)
            Non.check
            Non.execute "#{platform}:run"
        end
        
        desc "hello", "generate Hello World! project"
        def hello
            Non.check
            Non.execute "gen:hello"
        end
        
        desc "update", "update your project's runtime version"
        def update
            Non.check
            version = File.read(PROJECT_FILE)
            
            if version != Non::VERSION 
                FileUtils.rm_rf(PROJECT_DATA)
                FileUtils.copy_entry(CLI_DATA, PROJECT_DATA)
            end
        end
        
        desc "version", "prints current NON version"
        def verion
            puts Non::VERSION
        end
    end
end<commit_msg>Small fix<commit_after>require "fileutils"
require "thor"

module Non
    VERSION = "5.0.1"
    CLI_DIR = File.expand_path(File.dirname(__FILE__))
    CLI_DATA = File.join(CLI_DIR, "non")
    CLI_FILE = File.join(CLI_DIR, "non.launcher.jar")
    PROJECT_DIR = File.expand_path(".")
    PROJECT_DATA = File.join(PROJECT_DIR, ".non")
    PROJECT_FILE = File.join(PROJECT_DATA, "VERSION")
    EXECUTOR = "java -jar #{CLI_FILE} #{PROJECT_DIR} "
    
    def self.execute(cmd)
        system("#{EXECUTOR} #{cmd}")
    end

    def self.check
        if not(File.exists?(PROJECT_DATA))
            FileUtils.copy_entry(CLI_DATA, PROJECT_DATA)
        end
    end
    
    class Build < Thor
        desc "build PLATFORM", "build your application for specified PLATFORM"
        def build(platform)
            Non.check
            Non.execute "#{platform}:dist"
        end
        
        desc "start PLATFORM", "start your application for specified PLATFORM"
        def start(platform)
            Non.check
            Non.execute "#{platform}:run"
        end
        
        desc "hello", "generate Hello World! project"
        def hello
            Non.check
            Non.execute "gen:hello"
        end
        
        desc "update", "update your project's runtime version"
        def update
            Non.check
            version = File.read(PROJECT_FILE)
            
            if version != Non::VERSION 
                FileUtils.rm_rf(PROJECT_DATA)
                FileUtils.copy_entry(CLI_DATA, PROJECT_DATA)
            end
        end
        
        desc "version", "prints current NON version"
        def version
            puts Non::VERSION
        end
    end
end
{'fraction_non_alphanumeric': 0.095547036272486, 'fraction_numerical': 0.0017693895606015924, 'mean_word_length': 1.8361204013377928, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3977585', 'n_tokens_mistral': 1021, 'n_tokens_neox': 1004, 'n_words': 240}