<commit_before>#!/bin/bash

OUTPUT_PATH=$1
JARS=../../../../integration/src/main/oozie/full/workflow/lib/*.jar

hadoop fs -rmr ${OUTPUT_PATH}
pig -p commonJarsPath=${JARS} -p parallel=1 -p inputPath=full/hbase-dump/mproto-m* -p outputPath=${OUTPUT_PATH} -p mapredChildJavaOpts=-Xmx2000m document-similarity.pig<commit_msg>script to run document-similarity on my personal laptop ;)<commit_after>#!/bin/bash

OUTPUT_PATH=$1
JARS=../../../../integration/src/main/oozie/full/workflow/lib/*.jar

hadoop fs -rmr ${OUTPUT_PATH}
pig -p similarityTopnDocumentPerDocument=2 -p commonJarsPath=${JARS} -p parallel=2 -p inputPath=full/hbase-dump/mproto-m* -p outputPath=${OUTPUT_PATH} -p mapredChildJavaOpts=-Xmx2000m document-similarity.pig
{'fraction_non_alphanumeric': 0.16895604395604397, 'fraction_numerical': 0.017857142857142856, 'mean_word_length': 4.926829268292683, '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': '981288', 'n_tokens_mistral': 281, 'n_tokens_neox': 261, 'n_words': 47}