<commit_before>require File.dirname(__FILE__) + '/lib/integrity'

Integrity.new
project = Integrity::Project.new
project.name = 'Integrity'
project.uri = 'git://github.com/foca/integrity.git'
project.command = 'git-submodule init && git-submodule update && rake spec'

result = project.build

puts "Error\n#{'='*6}"
puts result.error
puts "Output\n#{'='*6}"
puts result.output
puts "STATUS: #{result.human_readable_status}"
<commit_msg>Make sure dog_food saves to the database so it automatically creates the URI object, else it fails miserably<commit_after>require File.dirname(__FILE__) + '/lib/integrity'

Integrity.new

Integrity::Project.create do |p|
  p.name = 'Integrity'
  p.uri = 'git://github.com/foca/integrity.git'
  p.command = 'git-submodule init && git-submodule update && rake spec'
end

project = Integrity::Project.first(:name => 'Integrity')
result = project.build

puts "Error\n#{'='*6}"
puts result.error
puts "Output\n#{'='*6}"
puts result.output
puts "STATUS: #{result.human_readable_status}"

{'fraction_non_alphanumeric': 0.1543756145526057, 'fraction_numerical': 0.003933136676499509, 'mean_word_length': 5.443037974683544, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4456679', 'n_tokens_mistral': 348, 'n_tokens_neox': 345, 'n_words': 82}