<commit_before>require 'spec_helper'

require 'sinatra'
require 'sinatra/asset_pipeline'
require 'sinatra/asset_pipeline/task.rb'

describe Sinatra::AssetPipeline do
  class App < Sinatra::Base
    register Sinatra::AssetPipeline
  end

  Sinatra::AssetPipeline::Task.define! App

  let(:js_content) {
    <<eos
(function() {
  $(function() {
    return console.log("Boom");
  });

}).call(this);
eos
  }
  let(:css_content) {
    <<eos
html, body {
  margin: 0;<commit_msg>Move App definition to the root scope<commit_after>require 'spec_helper'

require 'sinatra'
require 'sinatra/asset_pipeline'
require 'sinatra/asset_pipeline/task.rb'

class App < Sinatra::Base
  register Sinatra::AssetPipeline
end

Sinatra::AssetPipeline::Task.define! App

  let(:js_content) {
    <<eos
(function() {
  $(function() {
    return console.log("Boom");
  });

}).call(this);
eos
  }
  let(:css_content) {
    <<eos
html, body {
  margin: 0;
{'fraction_non_alphanumeric': 0.14639397201291712, 'fraction_numerical': 0.002152852529601722, 'mean_word_length': 4.535714285714286, 'pattern_counts': {'":': 0, '<': 13, '<?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': '331240', 'n_tokens_mistral': 330, 'n_tokens_neox': 325, 'n_words': 68}