<commit_before># Copyright 2011 The Closure Script Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require 'ostruct'
require 'tempfile'

# Closure tools may be called directly, run as a stand-alone server, installed as
# middleware into a framework like Rails, or adapted to anything with a rack environment.
# @example config.ru
#   #\ -p 8080 -E none
#   require 'closure'
#   Closure.add_source :goog, '/goog'
#   Closure.add_source './src/myapp', '/myapp'
#   use Rack::ShowExceptions
#   use Closure::Middleware
#   run Rack::File.new './public'

class Closure
  
  autoload(:VERSION, 'closure/version')
  autoload(:BeanShell, 'closure/beanshell')
  autoload(:Sass, 'closure/sass')
  autoload(:Script, 'closure/script')
  autoload(:Sources, 'closure/sources')
  autoload(:FileResponse, 'closure/file_response')
  autoload(:Middleware, 'closure/middleware')
  autoload(:Compiler, 'closure/compiler')
  autoload(:Server, 'closure/server')
  autoload(:Goog, 'closure/goog')
  autoload(:Templates, 'closure/templates')
  autoload(:ShowExceptions, 'closure/show_exceptions')
  

  # Filesystem location of the Closure Script install.
  # Typically, where the gem was installed.  This is mainly used
  # internally but may be useful for experimental configurations.
  # @return [String]
  def self.base_path
    @@base_path ||= File.expand_path(File.join(File.dirname(__FILE__), '..'))
  end
  <commit_msg>Sass is now available with the dwell patch<commit_after># Copyright 2011 The Closure Script Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require 'ostruct'
require 'tempfile'

# Closure tools may be called directly, run as a stand-alone server, installed as
# middleware into a framework like Rails, or adapted to anything with a rack environment.
# @example config.ru
#   #\ -p 8080 -E none
#   require 'closure'
#   Closure.add_source :goog, '/goog'
#   Closure.add_source './src/myapp', '/myapp'
#   use Rack::ShowExceptions
#   use Closure::Middleware
#   run Rack::File.new './public'

class Closure
  
  autoload(:VERSION, 'closure/version')
  autoload(:BeanShell, 'closure/beanshell')
  autoload(:Script, 'closure/script')
  autoload(:Sources, 'closure/sources')
  autoload(:FileResponse, 'closure/file_response')
  autoload(:Middleware, 'closure/middleware')
  autoload(:Compiler, 'closure/compiler')
  autoload(:Server, 'closure/server')
  autoload(:Goog, 'closure/goog')
  autoload(:Templates, 'closure/templates')
  autoload(:ShowExceptions, 'closure/show_exceptions')
  

  # Filesystem location of the Closure Script install.
  # Typically, where the gem was installed.  This is mainly used
  # internally but may be useful for experimental configurations.
  # @return [String]
  def self.base_path
    @@base_path ||= File.expand_path(File.join(File.dirname(__FILE__), '..'))
  end
  
{'fraction_non_alphanumeric': 0.10761979575805185, 'fraction_numerical': 0.006284367635506678, 'mean_word_length': 4.52821997105644, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3656903', 'n_tokens_mistral': 1162, 'n_tokens_neox': 1119, 'n_words': 395}