<commit_before>#!/bin/bash

HADOOP_DIR=/home/mrhadoop/hadoop-0.21.0
STREAMING_JAR=$HADOOP_DIR/mapred/contrib/streaming/hadoop-0.21.0-streaming.jar

hadoop fs -rmr colsums-output.vseq

hadoop jar $STREAMING_JAR -input $1 -output colsums-output.vseq \
  -jobconf mapreduce.job.name=colsums_cxx \
  -io typedbytes \
  -outputformat 'org.apache.hadoop.mapred.SequenceFileOutputFormat' \
  -inputformat 'org.apache.hadoop.streaming.AutoInputFormat' \
  -file colsums -mapper "./colsums map" -reducer './colsums reduce' 

hadoop jar $STREAMING_JAR dumptb colsums-output.vseq | ./dump_typedbytes_info -  <commit_msg>Small change to make colsums faster<commit_after>#!/bin/bash

HADOOP_DIR=/home/mrhadoop/hadoop-0.21.0
STREAMING_JAR=$HADOOP_DIR/mapred/contrib/streaming/hadoop-0.21.0-streaming.jar

hadoop fs -rmr colsums-output.vseq

hadoop jar $STREAMING_JAR -input $1 -output colsums-output.vseq \
  -jobconf mapreduce.job.name=colsums_cxx \
  -io typedbytes \
  -outputformat 'org.apache.hadoop.mapred.SequenceFileOutputFormat' \
  -inputformat 'org.apache.hadoop.streaming.AutoInputFormat' \
  -file colsums -mapper "./colsums map" -reducer './colsums reduce' \
  -jobconf mapreduce.input.fileinputformat.split.minsize=536870912

hadoop jar $STREAMING_JAR dumptb colsums-output.vseq | ./dump_typedbytes_info -  
{'fraction_non_alphanumeric': 0.12155963302752294, 'fraction_numerical': 0.020642201834862386, 'mean_word_length': 4.364754098360656, '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': '4514236', 'n_tokens_mistral': 515, 'n_tokens_neox': 498, 'n_words': 79}