<commit_before>#!/bin/bash
if [ -z $1 ]; then
    echo "Specify a subdirectory of msgscrape"
    exit 1;
fi

dir=$1
if [ $dir == 'scrpxbsvc' ]; then
    dir=pcs_xb_mapping/$dir
elif [ $dir == 'scrpxbdb' ]; then
    dir=pcs_xb_mapping/db
fi

eval cd ~/mbig/scrape.git/msgscrape/$dir<commit_msg>cd scraper for secondscrape and thirdscrape<commit_after>#!/bin/bash
if [ -z $1 ]; then
    echo "Specify a subdirectory of msgscrape"
    exit 1;
fi

prefix=~/mbig/scrape.git/msgscrape
dir=$1

if [[ $2 == '2' ]]; then
    prefix=~/mbig/secondscrape.git/msgscrape
elif [[ $2 == '3' ]]; then
    prefix=~/mbig/thirdscrape.git/msgscrape
fi

if [ $dir == 'scrpxbsvc' ]; then
    dir=pcs_xb_mapping/$dir
elif [ $dir == 'scrpxbdb' ]; then
    dir=pcs_xb_mapping/db
fi

eval cd $prefix/$dir
{'fraction_non_alphanumeric': 0.15958815958815958, 'fraction_numerical': 0.01287001287001287, 'mean_word_length': 3.5764705882352943, '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': '5786029', 'n_tokens_mistral': 340, 'n_tokens_neox': 318, 'n_words': 74}