<commit_before>(ns om-tools.mixin
  "Mixins for Om made easy"
  (:require
   [om.core :as om]
   #+clj [om-tools.util :as util]
   #+clj [schema.macros :as sm]
   #+clj cljs.core)
  #+clj
  (:import
   [cljs.tagged_literals JSValue]))

#+clj
(def ^:private mixin-methods
  {'display-name       :getDisplayName
   ;;'init-state         :getInitialState
   'will-mount         :componentWillMount
   'did-mount          :componentDidMount
   'will-unmount       :componentWillUnmount
   'will-update        :componentWillUpdate
   'did-update         :componentDidUpdate
   'will-receive-props :componentWillReceiveProps})

#+clj
(do
  (defmulti mixin-method-body
    "Returns quoted form for a function in React mixin object. Takes the
    method-name and rest of body from the defmixin macro and dispatches
    on method-name. All defmixin methods are expected to take an<commit_msg>Remove comment to fix tests<commit_after>(ns om-tools.mixin
  "Mixins for Om made easy"
  (:require
   [om.core :as om]
   #+clj [om-tools.util :as util]
   #+clj [schema.macros :as sm]
   #+clj cljs.core)
  #+clj
  (:import
   [cljs.tagged_literals JSValue]))

#+clj
(def ^:private mixin-methods
  {'display-name       :getDisplayName
   'init-state         :getInitialState
   'will-mount         :componentWillMount
   'did-mount          :componentDidMount
   'will-unmount       :componentWillUnmount
   'will-update        :componentWillUpdate
   'did-update         :componentDidUpdate
   'will-receive-props :componentWillReceiveProps})

#+clj
(do
  (defmulti mixin-method-body
    "Returns quoted form for a function in React mixin object. Takes the
    method-name and rest of body from the defmixin macro and dispatches
    on method-name. All defmixin methods are expected to take an
{'fraction_non_alphanumeric': 0.09673790776152981, 'fraction_numerical': 0.0, 'mean_word_length': 3.015801354401806, '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': '5865718', 'n_tokens_mistral': 591, 'n_tokens_neox': 577, 'n_words': 167}