<commit_before>(ns desdemona.ui.dom
  (:require [reagent.core :as r]
            [cljsjs.react-bootstrap]
            [dommy.core :as d]))

(def button
  (r/adapt-react-class (aget js/ReactBootstrap "Button")))

(def dropdown-button
  (r/adapt-react-class (aget js/ReactBootstrap "DropdownButton")))

(def menu-item
  (r/adapt-react-class (aget js/ReactBootstrap "MenuItem")))

(defn get-el-width
  [el]
  (:width (d/bounding-client-rect el)))

(defn get-el-height
  [el]
  (:height (d/bounding-client-rect el)))<commit_msg>load overlay-trigger and tooltips from react-bootstrap<commit_after>(ns desdemona.ui.dom
  (:require [reagent.core :as r]
            [cljsjs.react-bootstrap]
            [dommy.core :as d]))

(def button
  (r/adapt-react-class (aget js/ReactBootstrap "Button")))

(def dropdown-button
  (r/adapt-react-class (aget js/ReactBootstrap "DropdownButton")))

(def menu-item
  (r/adapt-react-class (aget js/ReactBootstrap "MenuItem")))

(def overlay-trigger
  (r/adapt-react-class (aget js/ReactBootstrap "OverlayTrigger")))

(def tooltip
  (r/adapt-react-class (aget js/ReactBootstrap "Tooltip")))

(defn get-el-width
  [el]
  (:width (d/bounding-client-rect el)))

(defn get-el-height
  [el]
  (:height (d/bounding-client-rect el)))
{'fraction_non_alphanumeric': 0.1621405750798722, 'fraction_numerical': 0.0, 'mean_word_length': 3.76425855513308, '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': '4791632', 'n_tokens_mistral': 484, 'n_tokens_neox': 475, 'n_words': 96}