<commit_before>((d,w) ->

  @_c_tip = (elem, tips...) ->
    callout = d.createElement("div")
    callout.className = "tip"
    for tip in tips
      _p = d.createElement("p")
      _p.innerHTML = tip
      callout.appendChild _p
    elem.appendChild callout
    __hidden callout, 5000

  @_c_message = (elem, title, url, messages...) ->
    callout = d.createElement("div")
    callout.className = "message"
    _h4 = d.createElement("h4")
    _a = d.createElement("a")
    _a.innerHTML = title
    _a.href = url
    _a.target = "_blank"
    _h4.appendChild _a
    callout.appendChild _h4
    for message in messages
      _p = d.createElement("p")
      _p.innerHTML = message
      callout.appendChild _p
    elem.appendChild callout
    __hidden callout, 20000

  @__hidden = (elem, sleep) ->
    setTimeout(->
      opacity = 1
      pid = setInterval(->
        opacity -= 0.01
        elem.style.opacity = opacity
        if opacity < 0
          w.clearInterval pid
          elem.parentNode.removeChild elem
      , 20)
    , sleep)

  # 判断是否是b站, 非b站连接不执行

  _params = /http:\/\/(www\.bilibili\.tv|bilibili\.kankanews\.com)?\/video\/av([0-9]+)\/(?:index_([0-9]+)\.html)?/.exec(d.URL)
  _b_url_r = (/http:\/\/(www\.bilibili\.tv|bilibili\.kankanews\.com)/.exec(d.URL))
  tpModel = !_params && !!_b_url_r
  _bilibili_url = if !_b_url_r then null else _b_url_r[0]

  head = d.getElementsByTagName("head")[0]
  style = d.createElement "style"
  style.type = "text/css"
  style.appendChild d.createTextNode("""
    #_callouts {
      position: fixed;
      right: 16px;<commit_msg>hotfix for domain change<commit_after>((d,w) ->

  @_c_tip = (elem, tips...) ->
    callout = d.createElement("div")
    callout.className = "tip"
    for tip in tips
      _p = d.createElement("p")
      _p.innerHTML = tip
      callout.appendChild _p
    elem.appendChild callout
    __hidden callout, 5000

  @_c_message = (elem, title, url, messages...) ->
    callout = d.createElement("div")
    callout.className = "message"
    _h4 = d.createElement("h4")
    _a = d.createElement("a")
    _a.innerHTML = title
    _a.href = url
    _a.target = "_blank"
    _h4.appendChild _a
    callout.appendChild _h4
    for message in messages
      _p = d.createElement("p")
      _p.innerHTML = message
      callout.appendChild _p
    elem.appendChild callout
    __hidden callout, 20000

  @__hidden = (elem, sleep) ->
    setTimeout(->
      opacity = 1
      pid = setInterval(->
        opacity -= 0.01
        elem.style.opacity = opacity
        if opacity < 0
          w.clearInterval pid
          elem.parentNode.removeChild elem
      , 20)
    , sleep)

  # 判断是否是b站, 非b站连接不执行

  _params = /http:\/\/(www\.bilibili\.com|bilibili\.kankanews\.com)?\/video\/av([0-9]+)\/(?:index_([0-9]+)\.html)?/.exec(d.URL)
  _b_url_r = (/http:\/\/(www\.bilibili\.com|bilibili\.kankanews\.com)/.exec(d.URL))
  tpModel = !_params && !!_b_url_r
  _bilibili_url = if !_b_url_r then null else _b_url_r[0]

  head = d.getElementsByTagName("head")[0]
  style = d.createElement "style"
  style.type = "text/css"
  style.appendChild d.createTextNode("""
    #_callouts {
      position: fixed;
      right: 16px;
{'fraction_non_alphanumeric': 0.15026721156868908, 'fraction_numerical': 0.017604526878340146, 'mean_word_length': 2.4890350877192984, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4784156', 'n_tokens_mistral': 1203, 'n_tokens_neox': 1157, 'n_words': 226}