<commit_before>#!/bin/bash
#
# Bootstrap virtualenv environment and postgres databases locally.
#
# NOTE: This script expects to be run from the project root with
# ./scripts/bootstrap.sh

set -o pipefail

if [ ! $VIRTUAL_ENV ]; then
  virtualenv ./venv
  . ./venv/bin/activate
fi

# Some of the specified packages use syntax in their requirements.txt
# that older pips don't understand
pip install "pip>=8.0"

# Install Python development dependencies
pip install -r requirements_for_test.txt

# Create Postgres databases
createdb digitalmarketplace
createdb digitalmarketplace_test

# Upgrade databases
python application.py db upgrade<commit_msg>use makefile for installing dependencies and running migrations<commit_after>#!/bin/bash
#
# Bootstrap virtualenv environment and postgres databases locally.
#
# NOTE: This script expects to be run from the project root with
# ./scripts/bootstrap.sh

set -o pipefail

if [ ! $VIRTUAL_ENV ]; then
  virtualenv ./venv
  . ./venv/bin/activate
fi

# Some of the specified packages use syntax in their requirements.txt
# that older pips don't understand
pip install "pip>=8.0"

# Create Postgres databases
createdb digitalmarketplace
createdb digitalmarketplace_test

# Install Python development dependencies
# Upgrade databases
make requirements_for_test run_migrations
{'fraction_non_alphanumeric': 0.06768060836501902, 'fraction_numerical': 0.003041825095057034, 'mean_word_length': 4.848888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2317475', 'n_tokens_mistral': 378, 'n_tokens_neox': 357, 'n_words': 141}