<commit_before>class Assets < Sinatra::Base
  configure do
    set :assets, (Sprockets::Environment.new { |env|
      env.append_path("assets/images")
      env.append_path("assets/javascripts")
      env.append_path("assets/stylesheets")
      env.append_path("assets/bower_components")

      # compress everything in production
      if ENV["RACK_ENV"] == "production"
        env.js_compressor  = :uglify
        env.css_compressor = :scss
      end
    })
  end

  get "/assets/app.js" do
    content_type("application/javascript")
    settings.assets["app.js"]
  end

  get "/assets/app.css" do
    content_type("text/css")
    settings.assets["app.css"]
  end

  %w{jpg png}.each do |format|
    get "/assets/:image.#{format}" do |image|
      content_type("image/#{format}")
      settings.assets["#{image}.#{format}"]
    end
  end

  # %w{css js}.each do |format|
  #   # get "/assets/bower_components/[\w]+/:file.#{format}" do |file|
  #   get %r{/assets/:file.#{format}} do |file|
  #     content_type("text/#{format}")
  #     settings.assets["#{file}.#{format}"]
  #   end
  # end

  # get "/assets/hi.css" do
  #   content_type("text/css")
  #   settings.assets["hi.css"]
  # end

  # get "/assets/hi.css" do
  #   content_type("text/css")
  #   settings.assets["hi.css"]
  # end
end<commit_msg>Clean up commented lines<commit_after>class Assets < Sinatra::Base
  configure do
    set :assets, (Sprockets::Environment.new { |env|
      env.append_path("assets/images")
      env.append_path("assets/javascripts")
      env.append_path("assets/stylesheets")
      env.append_path("assets/bower_components")

      # compress everything in production
      if ENV["RACK_ENV"] == "production"
        env.js_compressor  = :uglify
        env.css_compressor = :scss
      end
    })
  end

  get "/assets/app.js" do
    content_type("application/javascript")
    settings.assets["app.js"]
  end

  get "/assets/app.css" do
    content_type("text/css")
    settings.assets["app.css"]
  end

  %w{jpg png}.each do |format|
    get "/assets/:image.#{format}" do |image|
      content_type("image/#{format}")
      settings.assets["#{image}.#{format}"]
    end
  end
end
{'fraction_non_alphanumeric': 0.16214974735875057, 'fraction_numerical': 0.0, 'mean_word_length': 2.9744525547445257, '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': '3779784', 'n_tokens_mistral': 751, 'n_tokens_neox': 752, 'n_words': 132}