<commit_before>$LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
require 'rspec/rails/version'
# This needs to be installed on the system, as well as all of its rspec-2 deps
# - would be nicer if we could source them from the <repo>/pkg dirs
gem 'rspec-rails', :path => File.expand_path('../../../', __FILE__)

run('bundle install')

run('script/rails g rspec:install')
run('script/rails g controller wombats index')
run('script/rails g integration_test widgets')
run('script/rails g mailer Notifications signup')
run('script/rails g model thing name:string')
run('script/rails g observer widget')
run('script/rails g scaffold widgets name:string')

run('rake db:migrate')
run('rake db:test:prepare')
run('rspec spec -cfdoc')
# run('rake spec')<commit_msg>run all the rake spec:xxx tasks in test suite<commit_after>$LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
require 'rspec/rails/version'
# This needs to be installed on the system, as well as all of its rspec-2 deps
# - would be nicer if we could source them from the <repo>/pkg dirs
gem 'rspec-rails', :path => File.expand_path('../../../', __FILE__)

run('bundle install')

run('script/rails g rspec:install')
run('script/rails g controller wombats index')
run('script/rails g integration_test widgets')
run('script/rails g mailer Notifications signup')
run('script/rails g model thing name:string')
run('script/rails g observer widget')
run('script/rails g scaffold widgets name:string')

run('rake db:migrate')
run('rake db:test:prepare')
run('rspec spec -cfdoc')
run('rake spec')
run('rake spec:requests')
run('rake spec:models')
run('rake spec:views')
run('rake spec:controllers')
run('rake spec:helpers')
run('rake spec:mailers')
run('rake stats')
{'fraction_non_alphanumeric': 0.1565017261219793, 'fraction_numerical': 0.0011507479861910242, 'mean_word_length': 5.587121212121212, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '776430', 'n_tokens_mistral': 569, 'n_tokens_neox': 543, 'n_words': 179}