<commit_before>import {componentGet, componentInit} from './class-component-util.js'

const CLASS_COMPONENT_DATA_KEY = '__class_component_data__'

// Defines the special property cc on the jquery prototype.
export default $ => Object.defineProperty($.fn, 'cc', {
  get () {
    let cc = this.data(CLASS_COMPONENT_DATA_KEY)

    if (!cc) {
      this.data(CLASS_COMPONENT_DATA_KEY, cc = classNames => {
        componentInit(this, classNames)
        return this
      })

      cc.get = className => componentGet(this, className)
      cc.init = className => cc(className).cc.get(className)
    }
<commit_msg>refactor(fn.cc): refactor this handling<commit_after>import {componentGet, componentInit} from './class-component-util.js'

const CLASS_COMPONENT_DATA_KEY = '__class_component_data__'

// Defines the special property cc on the jquery prototype.
export default $ => Object.defineProperty($.fn, 'cc', {
  get () {
    const self = this
    let cc = self.data(CLASS_COMPONENT_DATA_KEY)

    if (!cc) {
      self.data(CLASS_COMPONENT_DATA_KEY, cc = classNames => {
        componentInit(self, classNames)
        return self
      })

      cc.get = className => componentGet(self, className)
      cc.init = className => cc(className).cc.get(className)
    }

{'fraction_non_alphanumeric': 0.11769352290679305, 'fraction_numerical': 0.0, 'mean_word_length': 3.5412186379928317, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '172154', 'n_tokens_mistral': 397, 'n_tokens_neox': 388, 'n_words': 88}