<commit_before>#!/bin/bash
set -e
# checkout a recent stable version (from 9 Dec 2014)
git clone git://git.lammps.org/lammps-ro.git mylammps
pushd mylammps && git checkout r12824 && popd

# build lammps executable 
pushd mylammps/src 
make -j ubuntu_simple
ln -s lmp_ubuntu_simple lammps
popd


pushd mylammps/src
# make shared library for python
make -j makeshlib && make -j -f Makefile.shlib ubuntu_simple
popd
# install LAMMPS python wrapper
pushd mylammps/python 
sudo python install.py /usr/lib/ $VIRTUAL_ENV/lib/python2.7/site-packages/
popd
python check_lammps_python.py<commit_msg>switch make's -j argument back to 2<commit_after>#!/bin/bash
set -e
# checkout a recent stable version (from 9 Dec 2014)
git clone git://git.lammps.org/lammps-ro.git mylammps
pushd mylammps && git checkout r12824 && popd

# build lammps executable 
pushd mylammps/src 
make -j 2 ubuntu_simple
ln -s lmp_ubuntu_simple lammps
popd


pushd mylammps/src
# make shared library for python
make -j 2 makeshlib && make -j 2 -f Makefile.shlib ubuntu_simple
popd
# install LAMMPS python wrapper
pushd mylammps/python 
sudo python install.py /usr/lib/ $VIRTUAL_ENV/lib/python2.7/site-packages/
popd
python check_lammps_python.py
{'fraction_non_alphanumeric': 0.08291873963515754, 'fraction_numerical': 0.02321724709784411, 'mean_word_length': 4.364444444444445, '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': '3350324', 'n_tokens_mistral': 491, 'n_tokens_neox': 441, 'n_words': 138}