<commit_before>
module Kernel

  def on_launching file, param={}
    return unless $0 == file
    if block_given?
      yield
    else
      paths = param[:load]
      paths = [paths] if paths.is_a? String
      param[:project] ||= file.split("/")[file.split("/").rindex{|x|paths.include?(x)}-1]
      parts = "/#{param[:project]}/"
      paths.each do |path|
        puts file[0,file.index(parts)+parts.size-1]+"/#{path}"
        $:.unshift file[0,file.index(parts)+parts.size-1]+"/#{path}"
      end
    end
  end

end<commit_msg>modify<commit_after>
module Kernel

  def on_launching file, param={}
    return unless $0 == file
    if block_given?
      yield
    else
      paths = param[:load]
      paths = [paths] if paths.is_a? String
      param[:project] ||= file.split("/")[file.split("/").rindex{|x|paths.include?(x)}-1]
      parts = "/#{param[:project]}/"
      paths.each do |path|
        $:.unshift file[0,file.index(parts)+parts.size-1]+"/#{path}"
      end
    end
  end

end
{'fraction_non_alphanumeric': 0.18309859154929578, 'fraction_numerical': 0.01006036217303823, 'mean_word_length': 2.6988847583643123, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4874954', 'n_tokens_mistral': 358, 'n_tokens_neox': 352, 'n_words': 71}