<commit_before>assets = Sprockets::Environment.new(root_path) do |env|
  env.logger = Logger.new(STDOUT)
end

assets.append_path(File.join(root_path, 'app', 'assets'))
assets.append_path(File.join(root_path, 'app', 'assets', 'fonts'))
assets.append_path(File.join(root_path, 'app', 'assets', 'images'))
assets.append_path(File.join(root_path, 'app', 'assets', 'javascripts'))
assets.append_path(File.join(root_path, 'app', 'assets', 'stylesheets'))

module AssetHelpers
  def asset_path(name)<commit_msg>Consider assets under lib/assets and vendor/assets too like Rails.<commit_after>assets = Sprockets::Environment.new(root_path) do |env|
  env.logger = Logger.new(STDOUT)
end

%w[app lib vendor].each do |path|
  %w[fonts images javascripts stylesheets].each do |asset_path|
    assets.append_path(File.join(root_path, path, 'assets', asset_path))
  end
end

module AssetHelpers
  def asset_path(name)
{'fraction_non_alphanumeric': 0.14839424141749724, 'fraction_numerical': 0.0, 'mean_word_length': 7.071428571428571, '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': '1018155', 'n_tokens_mistral': 320, 'n_tokens_neox': 308, 'n_words': 65}