<commit_before>#!/bin/bash

# Set up frontend and database
npm install
./node_modules/.bin/webpack --config webpack.config.js
python manage.py migrate

mkdir deps
pushd deps

# Get Pari's face clustering stuff
git clone https://github.com/scanner-research/face_recognizer
pushd face_recognizer/data
wget http://vis-www.cs.umass.edu/lfw/lfw.tgz
tar -xf lfw.tgz
rm lfw.tgz
popd

# Get face recognition network
git clone https://github.com/cmusatyalab/openface
pushd openface
./models/get-models.sh
popd
popd

# Get face detection network
cp -r /opt/scanner/nets .
./nets/get_caffe_facenet.sh -f<commit_msg>cloning gender repo + getting pretrained model<commit_after>#!/bin/bash

# Set up frontend and database
npm install
./node_modules/.bin/webpack --config webpack.config.js
python manage.py migrate

mkdir deps
pushd deps

# Get Pari's face clustering stuff
git clone https://github.com/scanner-research/face_recognizer
pushd face_recognizer/data
wget http://vis-www.cs.umass.edu/lfw/lfw.tgz
tar -xf lfw.tgz
rm lfw.tgz
popd

# Get rude_carnie gender recognition
git clone https://github.com/Parimarjan/rude-carnie.git
# tmp solution
cp -r /tmp/inception_gender_checkpoint ./rude-carnie/

# Get face recognition network
git clone https://github.com/cmusatyalab/openface
pushd openface
./models/get-models.sh
popd
popd

# Get face detection network
cp -r /opt/scanner/nets .
./nets/get_caffe_facenet.sh -f
{'fraction_non_alphanumeric': 0.10398860398860399, 'fraction_numerical': 0.0, 'mean_word_length': 4.18450184501845, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 2, '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': '5646145', 'n_tokens_mistral': 524, 'n_tokens_neox': 494, 'n_words': 131}