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

project_name = ARGV.first

case project_name
when "racing_on_rails"
  # Nothing else to get
when "atra"
  exec("svn co svn+ssh://butlerpress.com/var/repos/atra/trunk local")
else
  raise "Don't know how to build project named: '#{project_name}'"
end

exec("rake cruise")
<commit_msg>Put svn co and rake task in same exec statement for unified return code<commit_after>#!/usr/bin/env ruby

# Yes, this could be more abstracted, etc. Choosing explicitness for now.
# svn co and rake co need to be in same exec, or cruise just ends build after svn returns
#
# Intentionally doing svn co and rake cruise in separate processes to ensure that all of the
# local overrides are loaded by Rake.

project_name = ARGV.first

case project_name
when "racing_on_rails"
  # Nothing else to get
when "atra"
  exec("svn co svn+ssh://butlerpress.com/var/repos/atra/trunk local && rake cruise")
else
  raise "Don't know how to build project named: '#{project_name}'"
end

{'fraction_non_alphanumeric': 0.09210526315789473, 'fraction_numerical': 0.0, 'mean_word_length': 4.464088397790055, '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': '883978', 'n_tokens_mistral': 337, 'n_tokens_neox': 322, 'n_words': 127}