<commit_before>#!/bin/bash

# prepare bash
set -ve

# make sure dependencies are correct
# git pull --rebase origin master
pip3 install --upgrade -r requirements.txt

# prepare the repositories
cd ../
if [ ! -d ./course-data ]; then
	git clone https://github.com/stodevx/course-data.git
fi
cd course-data
git checkout master

# update course data files
python3 ../course-data-tools/download.py --force-terms 2015 2016
python3 ../course-data-tools/maintain-datafiles.py
git add .
git commit -m "course data update $(date)" || (echo "No updates found." && exit 0)
git push origin master

# update bundled information for public consumption
git checkout gh-pages<commit_msg>remove the pip installation process<commit_after>#!/bin/bash

# prepare bash
set -ve

# prepare the repositories
cd ../
if [ ! -d ./course-data ]; then
	git clone https://github.com/stodevx/course-data.git
fi
cd course-data
git checkout master

# update course data files
python3 ../course-data-tools/download.py --force-terms 2015 2016
python3 ../course-data-tools/maintain-datafiles.py
git add .
git commit -m "course data update $(date)" || (echo "No updates found." && exit 0)
git push origin master

# update bundled information for public consumption
git checkout gh-pages
{'fraction_non_alphanumeric': 0.11369095276220977, 'fraction_numerical': 0.018414731785428344, 'mean_word_length': 3.789272030651341, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4244037', 'n_tokens_mistral': 411, 'n_tokens_neox': 360, 'n_words': 140}