<commit_before>#!/bin/sh

# Setup script for local development
# NOTE: Run this script while in the project root directory.

# Set script to exit on any errors.
set -e

# Install project dependencies.
install(){
  echo 'Installing project dependencies...'
  pip install -r requirements/testing.txt
  # npm install
  # grunt build

}

# Setup local data store in sqlite3
dbsetup(){
  source .env
  echo 'Loading college data into local test database'
  python manage.py syncdb --noinput --no-initial-data
  python manage.py migrate paying_for_college
  python manage.py loaddata collegedata.json
  # python manage.py rebuild_index
}

install
dbsetup
<commit_msg>add front-end build steps to local setup<commit_after>#!/bin/sh

# Setup script for local development
# NOTE: Run this script while in the project root directory.

# Set script to exit on any errors.
set -e

# Install project dependencies.
install(){
  echo 'Installing project dependencies...'
  pip install -r requirements/testing.txt
  npm install
  grunt build

}

# Setup local data store in sqlite3
dbsetup(){
  source .env
  echo 'Loading college data into local test database'
  python manage.py syncdb --noinput --no-initial-data
  python manage.py migrate paying_for_college
  python manage.py loaddata collegedata.json
  # python manage.py rebuild_index
}

install
dbsetup

{'fraction_non_alphanumeric': 0.07360594795539034, 'fraction_numerical': 0.001486988847583643, 'mean_word_length': 3.841726618705036, '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': '3045702', 'n_tokens_mistral': 393, 'n_tokens_neox': 382, 'n_words': 158}