<commit_before>#! /bin/bash

curl -XDELETE http://localhost:9200/    # clear ES index
padrino rake mi:drop                    # clear mongodb

for f in $*
do
    time padrino -e production rake import:marc["$f"]
    time padrino -e production rake map:marc
    time padrino -e production rake map:mods
done

time padrino -e production rake model:index           # reindex everything<commit_msg>put the flag in the right place<commit_after>#! /bin/bash

curl -XDELETE http://localhost:9200/    # clear ES index
padrino rake -e production mi:drop                    # clear mongodb

for f in $*
do
    time padrino rake -e production import:marc["$f"]
    time padrino rake -e production map:marc
    time padrino rake -e production map:mods
done

time padrino rake -e production model:index           # reindex everything
{'fraction_non_alphanumeric': 0.07926829268292683, 'fraction_numerical': 0.00975609756097561, 'mean_word_length': 2.7660550458715596, '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': '3060881', 'n_tokens_mistral': 272, 'n_tokens_neox': 259, 'n_words': 95}