<commit_before>package net.fwbrasil

import scala.reflect.runtime.universe._
import scala.collection.mutable.{ Map => MutableMap }
import scala.reflect.macros.Context

package object smirror {
    val objectSymbol = typeOf[Object].typeSymbol
    val anySymbol = typeOf[Any].typeSymbol
    def runtimeMirror(classLoader: ClassLoader) = scala.reflect.runtime.universe.runtimeMirror(classLoader)
    private[smirror] val sClassCache = MutableMap[String, SClass[Any]]()
    def sClassOf[T](typ: Type)(implicit runtimeMirror: Mirror): SClass[T] =
        synchronized {
            sClassCache.getOrElseUpdate(typ.typeSymbol.fullName, SClass(typ)(runtimeMirror))
                .asInstanceOf[SClass[T]]
        }
    def sClassOf[T](implicit runtimeMirror: Mirror, typeTag: TypeTag[T]): SClass[T] =
        sClassOf(typeOf[T])
    def sClassOf[T](clazz: Class[T])(implicit runtimeMirror: Mirror): SClass[T] =
        sClassOf[T](runtimeMirror.classSymbol(clazz).toType)

    implicit class SInstanceImplicit[T](val instance: T)(implicit runtimeMirror: Mirror, typeTag: TypeTag[T]) {
        def reflect =<commit_msg>clear cache method<commit_after>package net.fwbrasil

import scala.reflect.runtime.universe._
import scala.collection.mutable.{ Map => MutableMap }
import scala.reflect.macros.Context

package object smirror {
    val objectSymbol = typeOf[Object].typeSymbol
    val anySymbol = typeOf[Any].typeSymbol
    def runtimeMirror(classLoader: ClassLoader) = scala.reflect.runtime.universe.runtimeMirror(classLoader)
    private[smirror] val sClassCache = MutableMap[String, SClass[Any]]()
    def clearCache = synchronized {
        sClassCache.clear
    }
    def sClassOf[T](typ: Type)(implicit runtimeMirror: Mirror): SClass[T] =
        synchronized {
            sClassCache.getOrElseUpdate(typ.typeSymbol.fullName, SClass(typ)(runtimeMirror))
                .asInstanceOf[SClass[T]]
        }
    def sClassOf[T](implicit runtimeMirror: Mirror, typeTag: TypeTag[T]): SClass[T] =
        sClassOf(typeOf[T])
    def sClassOf[T](clazz: Class[T])(implicit runtimeMirror: Mirror): SClass[T] =
        sClassOf[T](runtimeMirror.classSymbol(clazz).toType)

    implicit class SInstanceImplicit[T](val instance: T)(implicit runtimeMirror: Mirror, typeTag: TypeTag[T]) {
        def reflect =
{'fraction_non_alphanumeric': 0.11406181976491075, 'fraction_numerical': 0.0, 'mean_word_length': 4.30715935334873, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5389326', 'n_tokens_mistral': 737, 'n_tokens_neox': 714, 'n_words': 134}