<commit_before>#!/bin/sh

set -e -x 
 # rm -f cache/whitehall.csv &&
  rm -rf cache/$1 &&
  mkdir -p cache/$1 &&
  sh ./munge/generate-redirects.sh -s data/sites -u betademo:nottobes -w data/whitelist.txt -l "$2" "$1" &&
  git diff --stat &&
  mkdir -p cache/candidate/ && 
  cp data/mappings/$1.csv cache/candidate/$1.csv && 
  mv cache/$1/*.csv cache/candidate/
  mv $2 cache/$1/$2<commit_msg>Update to localmunge file movement<commit_after>#!/bin/sh
#usage: sh munge/local-munge.sh targetname filetoadd.csv

set -e -x 
# rm -f cache/whitehall.csv &&
  rm -rf cache/$1 &&
  mkdir -p cache/$1 &&
  sh ./munge/generate-redirects.sh -s data/sites -u betademo:nottobes -w data/whitelist.txt -l "$2" "$1" &&
  git diff --stat &&
  mkdir -p cache/candidate/ && 
  cp data/mappings/$1.csv cache/candidate/$1.csv && 
  mv cache/$1/*.csv cache/candidate/
  mv $2 cache/$1/
{'fraction_non_alphanumeric': 0.1838150289017341, 'fraction_numerical': 0.021965317919075144, 'mean_word_length': 2.7816593886462884, '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': '470847', 'n_tokens_mistral': 359, 'n_tokens_neox': 343, 'n_words': 86}