<commit_before># This file is used by Rack-based servers to start the application.
require 'shutterbug'
require ::File.expand_path('../config/environment',  __FILE__)


use Shutterbug::Rackapp do |config|
  config.path_prefix = "/shutterbug"
  # use heroku app for now. Uncomment to use local file server.
  config.uri_prefix  = "http://shutterbug.herokuapp.com/"
  config.resource_dir = File.expand_path('../public/snapshots',  __FILE__)
end

run LightweightStandalone::Application<commit_msg>Add some comments about how to run with local instance of snapshot server.<commit_after># This file is used by Rack-based servers to start the application.
require 'shutterbug'
require ::File.expand_path('../config/environment',  __FILE__)


use Shutterbug::Rackapp do |config|
  config.path_prefix = "/shutterbug"
  # use heroku app for now. Uncomment to use local file server.
  config.uri_prefix  = "http://shutterbug.herokuapp.com/"
  # or a locally hosted server for debugging …
  # config.uri_prefix = "http://localhost:5000"
  # config.resource_dir = File.expand_path('../public/snapshots',  __FILE__)
end

run LightweightStandalone::Application
{'fraction_non_alphanumeric': 0.10907504363001745, 'fraction_numerical': 0.0034904013961605585, 'mean_word_length': 4.763819095477387, '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': '2693398', 'n_tokens_mistral': 349, 'n_tokens_neox': 344, 'n_words': 105}