<commit_before>package se.accepted.krib

/**
 * Extension functions for the library
 * @author <NAME>
 */
// Use if you have global static access to your krib instance
// inline fun <reified T:Any> inject() = lazy { krib.require( T::class ) }

// Use if you need to inject the proper krib instance to require from
inline fun <reified T:Any> inject( from:Krib) = lazy { from.require( T::class ) }<commit_msg>Added more declarative way of using the extension functions<commit_after>package se.accepted.krib

/**
 * Extension functions for the library
 * @author <NAME>
 */
object App{
    val krib = Krib()
    init {
        // Bootstrap
        // krib.add()
    }
}
// Use if you have global static access to your krib instance
inline fun <reified T:Any> inject() = lazy { App.krib.require( T::class ) }

// Use if you need to inject the proper krib instance to require from
inline fun <reified T:Any> inject( from:Krib ) = lazy { from.require( T::class ) }
{'fraction_non_alphanumeric': 0.11377870563674322, 'fraction_numerical': 0.0, 'mean_word_length': 3.4193548387096775, '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': '4884007', 'n_tokens_mistral': 288, 'n_tokens_neox': 286, 'n_words': 116}