<commit_before>class AssetLoader
  def self.manifest
    return @manifest if defined?(@manifest)

    manifest_path = Rails.application.config.assets.manifest
    if File.exists?(manifest_path)
      @manifest = JSON.parse(File.read(manifest_path))
    end
  end

  def self.get_asset_path(file, directory)
    puts 'file'
    puts file
    puts 'directory'
    puts directory
    root_path = Rails.application.config.assets.root_path
    file_path = nil

    if Rails.env.production? && AssetLoader.manifest
      puts 'HERE'
      puts file
      puts AssetLoader.manifest[file]
      file_path = AssetLoader.manifest[file]
    end

    if file_path.nil?
      file_path = "#{directory}/#{file}"
    end

    puts 'root_path'
    puts root_path
    puts 'file_path'
    puts file_path
    return root_path + file_path
  end
end
<commit_msg>pushing for debugging<commit_after>class AssetLoader
  def self.manifest
    return @manifest if defined?(@manifest)

    manifest_path = Rails.application.config.assets.manifest
    if File.exists?(manifest_path)
      @manifest = JSON.parse(File.read(manifest_path))
    end
  end

  def self.get_asset_path(file, directory)
    root_path = Rails.application.config.assets.root_path
    file_path = nil

    if Rails.env.production? && AssetLoader.manifest
      file_path = AssetLoader.manifest[file]
    end

    if file_path.nil?
      file_path = "#{directory}/#{file}"
    end

    return root_path + file_path
  end
end

{'fraction_non_alphanumeric': 0.0891156462585034, 'fraction_numerical': 0.0, 'mean_word_length': 3.1089385474860336, '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': '2537482', 'n_tokens_mistral': 489, 'n_tokens_neox': 461, 'n_words': 102}