<commit_before># Switching Gemfile
function set_gemfile(){
  echo "Switching Gemfile..."
  export BUNDLE_GEMFILE="`pwd`/Gemfile"
}

# Spree defaults
echo "Setup Spree defaults and creating test application..."
bundle check || bundle update
bundle exec rake test_app

# Spree API
echo "Setup Spree API and running RSpec..."
cd api; set_gemfile; bundle update; bundle exec rspec spec

# Spree Backend
echo "Setup Spree Backend and running RSpec..."
cd ../backend; set_gemfile; bundle update; bundle exec rspec spec

# Spree Core
echo "Setup Spree Core and running RSpec..."
cd ../core; set_gemfile; bundle update; bundle exec rspec spec

# Spree Frontend
echo "Setup Spree Frontend and running RSpec..."
cd ../frontend; set_gemfile; bundle update; bundle exec rspec spec

# Spree Sample
echo "Setup Spree Sample and running RSpec..."
cd ../sample; bundle install; bundle exec rake test_app; bundle exec rspec spec<commit_msg>Default to run build.sh against postgresql.<commit_after># Switching Gemfile
function set_gemfile(){
  echo "Switching Gemfile..."
  export BUNDLE_GEMFILE="`pwd`/Gemfile"
}

# Target postgres
export DB=postgres

# Spree defaults
echo "Setup Spree defaults and creating test application..."
bundle check || bundle update
bundle exec rake test_app

# Spree API
echo "Setup Spree API and running RSpec..."
cd api; set_gemfile; bundle update; bundle exec rspec spec

# Spree Backend
echo "Setup Spree Backend and running RSpec..."
cd ../backend; set_gemfile; bundle update; bundle exec rspec spec

# Spree Core
echo "Setup Spree Core and running RSpec..."
cd ../core; set_gemfile; bundle update; bundle exec rspec spec

# Spree Frontend
echo "Setup Spree Frontend and running RSpec..."
cd ../frontend; set_gemfile; bundle update; bundle exec rspec spec

# Spree Sample
echo "Setup Spree Sample and running RSpec..."
cd ../sample; bundle install; bundle exec rake test_app; bundle exec rspec spec
{'fraction_non_alphanumeric': 0.08986415882967608, 'fraction_numerical': 0.0, 'mean_word_length': 4.349162011173185, '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': '3881135', 'n_tokens_mistral': 570, 'n_tokens_neox': 563, 'n_words': 250}