<commit_before>#!/bin/sh

OUTPUT_DIR=./xps/2017_MM_DD_sapcta/

mkdir "${OUTPUT_DIR}"

# See: http://stackoverflow.com/questions/1228466/how-to-filter-files-when-using-scp-to-copy-dir-recursively
rsync  -e ssh -rav --exclude='*/.git/' --exclude='*/utils/' --exclude='*/tests/' --exclude='*/docs/' --exclude='*/datapipe/' --include '*/' --include='*.json' --exclude='*'     sapcta:/home/jdecock/xp/ "${OUTPUT_DIR}"
rsync  -e ssh -rav --exclude='*/.git/' --exclude='*/utils/' --exclude='*/tests/' --exclude='*/docs/' --exclude='*/datapipe/' --include '*/' --include='*.json.log' --exclude='*' sapcta:/home/jdecock/xp/ "${OUTPUT_DIR}"
<commit_msg>Misc update.<commit_after>#!/bin/sh

OUTPUT_DIR=./xps/2017_MM_DD_sapcta/

mkdir "${OUTPUT_DIR}"

# See: http://stackoverflow.com/questions/1228466/how-to-filter-files-when-using-scp-to-copy-dir-recursively
rsync  -e ssh -rav --exclude='*/.git/' --exclude='*/utils/' --exclude='*/tests/' --exclude='*/docs/' --exclude='*/datapipe/' --include '*/' --include='*.json' --exclude='*'     sapcta:/home/jdecock/xp/ "${OUTPUT_DIR}"
rsync  -e ssh -rav --exclude='*/.git/' --exclude='*/utils/' --exclude='*/tests/' --exclude='*/docs/' --exclude='*/datapipe/' --include '*/' --include='*.json.log' --exclude='*' sapcta:/home/jdecock/xp/ "${OUTPUT_DIR}"

# Remove empty directories
rmdir ${OUTPUT_DIR}/run*

{'fraction_non_alphanumeric': 0.2757847533632287, 'fraction_numerical': 0.016442451420029897, 'mean_word_length': 3.633217993079585, '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': '3191292', 'n_tokens_mistral': 546, 'n_tokens_neox': 494, 'n_words': 74}