<commit_before>#!/bin/sh

hadoop fs -rm -r /etl/BI/casualcyclist/clicks/deduplogs/year=2014/month=10/day=10 || :

sudo -u hdfs hadoop fs -mkdir -p /etl/BI/casualcyclist/clicks/deduplogs/year=2014/month=10
sudo -u hdfs hadoop fs -chmod 1777 /etl/BI/casualcyclist/clicks/deduplogs

pig -x mapreduce -param raw_log_dir='/etl/BI/casualcyclist/clicks/rawlogs/year=2014/month=10/day=10' -param deduped_log_dir='/etl/BI/casualcyclist/clicks/deduplogs/year=2014/month=10/day=10' dedup.pig<commit_msg>Using the correct user when deleting the directory<commit_after>#!/bin/sh

sudo -u hdfs hadoop fs -rm -r /etl/BI/casualcyclist/clicks/deduplogs/year=2014/month=10/day=10 || :

sudo -u hdfs hadoop fs -mkdir -p /etl/BI/casualcyclist/clicks/deduplogs/year=2014/month=10
sudo -u hdfs hadoop fs -chmod 1777 /etl/BI/casualcyclist/clicks/deduplogs

pig -x mapreduce -param raw_log_dir='/etl/BI/casualcyclist/clicks/rawlogs/year=2014/month=10/day=10' -param deduped_log_dir='/etl/BI/casualcyclist/clicks/deduplogs/year=2014/month=10/day=10' dedup.pig
{'fraction_non_alphanumeric': 0.14410058027079303, 'fraction_numerical': 0.06576402321083172, 'mean_word_length': 4.814606741573034, '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': '7298318', 'n_tokens_mistral': 505, 'n_tokens_neox': 450, 'n_words': 69}