<commit_before>#!/bin/bash
gem install sinatra
if [ "$RACK_ENV" == "production" ]; 
then 
  bundle install --without development test
  ruby $MAIN_APP_FILE -p 80
else
  bundle install
  gem install shotgun
  shotgun -I /usr/src/app $MAIN_APP_FILE -p 80 -o '0.0.0.0'
fi

<commit_msg>Run rspec when RACK_ENV is test<commit_after>#!/bin/bash
gem install sinatra
if [ "$RACK_ENV" == "production" ]; 
then 
  bundle install --without development test
  ruby $MAIN_APP_FILE -p 80
else
  bundle install
  if [ "$RACK_ENV" == "test" ]; 
  then
    rspec
  else
    gem install shotgun
    shotgun -I /usr/src/app $MAIN_APP_FILE -p 80 -o '0.0.0.0'
  fi
fi


{'fraction_non_alphanumeric': 0.11728395061728394, 'fraction_numerical': 0.024691358024691357, 'mean_word_length': 3.1337579617834397, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '701090', 'n_tokens_mistral': 261, 'n_tokens_neox': 240, 'n_words': 76}