<commit_before>open Yojson.Basic
open Core_kernel.Std

let debug_mode = true
let json_mode = true

let json_breaker st sp str = 
  (if not(st) then String.set str 0 ' ' else ());
  if not(sp) then String.set str ((String.length str)-1) ',' else ();
  str

let debug x = if (debug_mode) then (printf " %s  \n" x) else ()
let json ?start:(st=true) ?stop:(sp=true) x = 
  if (json_mode) then (printf " %s \n" (json_breaker st sp (to_string x))) else ()<commit_msg>setting debug and json to false<commit_after>open Yojson.Basic
open Core_kernel.Std

let debug_mode = false
let json_mode = false

let json_breaker st sp str = 
  (if not(st) then String.set str 0 ' ' else ());
  if not(sp) then String.set str ((String.length str)-1) ',' else ();
  str

let debug x = if (debug_mode) then (printf " %s  \n" x) else ()
let json ?start:(st=true) ?stop:(sp=true) x = 
  if (json_mode) then (printf " %s \n" (json_breaker st sp (to_string x))) else ()
{'fraction_non_alphanumeric': 0.1464968152866242, 'fraction_numerical': 0.004246284501061571, 'mean_word_length': 3.8608247422680413, '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': '7409546', 'n_tokens_mistral': 356, 'n_tokens_neox': 339, 'n_words': 123}