<commit_before>#!/bin/bash

#htaccess
rm -rf .htaccess
cp htaccess.sample .htaccess
rm -rf global_config.php
cp global_config.sample global_config.php

function ask_replace {
	#file question default_value replace
    printf "$2 ($3): "
	read v
	base=${v:-$3}
	#echo "Setting Application Base ($1) to: $base"
	sed -i '' s/"$4"/$(echo $base | awk '{gsub(".", "\\\\&");print}')/g $1
} 
<commit_msg>updated init.sh with new algorithm<commit_after>#!/bin/bash

#htaccess
rm -rf .htaccess
cp htaccess.sample .htaccess
#global_config
rm -rf global_config.php
cp global_config.sample global_config.php

function ask_replace {
	#file question default_value replace
    printf "$2 ($3): "
	read v
	base=${v:-$3}
	sed -i s=$4=$base=g $1
} 

{'fraction_non_alphanumeric': 0.15912208504801098, 'fraction_numerical': 0.015089163237311385, 'mean_word_length': 4.177304964539007, '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': '7157504', 'n_tokens_mistral': 277, 'n_tokens_neox': 268, 'n_words': 76}