<commit_before>package pl.writeonly.son2.core.json

abstract class JsonWriter(pretty: Boolean) {
  def write(value: Any):String = if (pretty) {
    writePretty(value)
  } else {
    writeRaw(value)
  }

  def writePretty(value: Any):String

  def writeRaw(value: Any):String

}<commit_msg>Update JsonWriter.scala<commit_after>package pl.writeonly.son2.core.json

class JsonWriter(pretty: Boolean) {
  def write(value: Any):String = if (pretty) {
    writePretty(value)
  } else {
    writeRaw(value)
  }

  def writePretty(value: Any):String = value.toString()

  def writeRaw(value: Any):String = value.toString()

  def comment(s: String) = s
}
{'fraction_non_alphanumeric': 0.12848297213622292, 'fraction_numerical': 0.0030959752321981426, 'mean_word_length': 4.436974789915967, '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': '7321987', 'n_tokens_mistral': 228, 'n_tokens_neox': 212, 'n_words': 46}