<commit_before>#!/usr/bin/env ruby

# Simple sinatra stager.
# An example of how to use the continuum-stager-api.
# The API is located at: https://github.com/apcera/continuum-stager-api-ruby

require "bundler"
Bundler.setup

# Bring in continuum-stager-api
require "continuum-stager-api"

stager = Apcera::Stager.new

# Add the ruby dependency we need to stage our app. If it was added
# then restart the stager, otherwise we already have it.
puts "Adding ruby dependency"
should_restart = stager.dependencies_add("runtime", "ruby")
if should_restart == true
  stager.relaunch<commit_msg>Sync stdout.<commit_after>#!/usr/bin/env ruby

# Simple sinatra stager.
# An example of how to use the continuum-stager-api.
# The API is located at: https://github.com/apcera/continuum-stager-api-ruby

require "bundler"
Bundler.setup

# Bring in continuum-stager-api
require "continuum-stager-api"

# Make sure stdout is sync'd.
STDOUT.sync = true
stager = Apcera::Stager.new

# Add the ruby dependency we need to stage our app. If it was added
# then restart the stager, otherwise we already have it.
puts "Adding ruby dependency"
should_restart = stager.dependencies_add("runtime", "ruby")
if should_restart == true
  stager.relaunch
{'fraction_non_alphanumeric': 0.09967320261437909, 'fraction_numerical': 0.0, 'mean_word_length': 4.568181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6486879', 'n_tokens_mistral': 422, 'n_tokens_neox': 399, 'n_words': 133}