<commit_before>package pl.writeonly.son2.path.notation

import net.minidev.json.JSONValue
import pl.writeonly.son2.core.notation.NotationReader

class NotationReaderSmart(val path: String) extends NotationReader {

  def apply(content: String):Any = JSONValue.parse(content)

  def parseKeepingOrder(content: String):Any = JSONValue.parseKeepingOrder(content)

  def parseStrict(content: String):Any = JSONValue.parseStrict(content)

  def isValid(content :String): Boolean = JSONValue.isValidJson(content)

  def isValidStrict(content :String): Boolean = JSONValue.isValidJson(content)
}<commit_msg>Update NotationReaderSmart.scala<commit_after>package pl.writeonly.son2.path.notation

import net.minidev.json.JSONValue
import pl.writeonly.son2.core.notation.NotationReader

class NotationReaderSmart() extends NotationReader {
  def apply(content: String):Any = JSONValue.parse(content)
  def isValid(content :String): Boolean = JSONValue.isValidJson(content)
}
{'fraction_non_alphanumeric': 0.09968847352024922, 'fraction_numerical': 0.004153686396677051, 'mean_word_length': 7.100840336134453, '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': '2565378', 'n_tokens_mistral': 295, 'n_tokens_neox': 287, 'n_words': 54}