<commit_before><?php
$foo = "Running: import_settings.php";
debug_to_console($foo);
function writeSettingsFile(){
    if(!empty($_POST['data'])){
        $settings_string = $_POST['data'];
        $session_file_name = "settings/";
        $session_file_name .= ("session_id" .= ".json");
        file_put_contents($session_file_name, $settings_string);
    }
}
function debug_to_console( $data ) {
    $output = $data;
    if ( is_array( $output ) )
        $output = implode( ',', $output);

    echo "<script>console.log( 'Debug Objects: " . $output . "' );</script>";
}

writeSettingsFile();

?><commit_msg>fixed syntax error<commit_after><?php
$foo = "Running: import_settings.php";
debug_to_console($foo);
function writeSettingsFile(){
    if(!empty($_POST['data'])){
        $settings_string = $_POST['data'];
        $session_file_name = "settings/";
        $session_id = "session_id";
        $session_file_name .= ("session_id" .= ".json");
        file_put_contents($session_file_name, $settings_string);
    }
}
function debug_to_console( $data ) {
    $output = $data;
    if ( is_array( $output ) )
        $output = implode( ',', $output);

    echo "<script>console.log( 'Debug Objects: " . $output . "' );</script>";
}

writeSettingsFile();

?>
{'fraction_non_alphanumeric': 0.18477398889770025, 'fraction_numerical': 0.0, 'mean_word_length': 3.708955223880597, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5600487', 'n_tokens_mistral': 409, 'n_tokens_neox': 406, 'n_words': 74}