<commit_before>#!/bin/env sh

if [ "$#" -ne 1 ]; then 
  echo "Illegal number of parameters"
  exit 1
fi

NEW_NAME=$1

printf "Cleaning up...\n"

lein clean

printf "Renaming to: %s...\n" $1 

#find . -type f | xargs sed -i "s/myproject/$NEW_NAME/g"
for i in $(find . -type d -iname "*myproject*")
do
  echo "$i"
  mv "$i" "${i//myproject//$NEW_NAME}"
done

printf "Done.\n"<commit_msg>Improve init-project script<commit_after>#!/bin/bash

if [ "$#" -ne 1 ]; then 
  echo "Illegal number of parameters"
  exit 1
fi

NEW_NAME=$1

printf "Cleaning up...\n"

lein clean

printf "Renaming to: %s...\n" $1 

if [ "$(uname)" == "Darwin" ]; then
  find . -type f -iname "*clj" -o -type f -iname "*cljs" -o -type f -iname "*cljc" | xargs sed -i '' "s/myproject/$NEW_NAME/g"
else
  find . -type f -iname "*clj" -o -type f -iname "*cljs" -o -type f -iname "*cljc" | xargs sed -i "s/myproject/$NEW_NAME/g"
fi

for i in $(find . -type d -iname "*myproject*")
do
  echo "$i"
  mv "$i" "${i//myproject//$NEW_NAME}"
done

printf "Done.\n"
{'fraction_non_alphanumeric': 0.2013685239491691, 'fraction_numerical': 0.007820136852394917, 'mean_word_length': 2.8641509433962264, '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': '3658615', 'n_tokens_mistral': 452, 'n_tokens_neox': 425, 'n_words': 135}