<commit_before>module.exports =
  run: ->
    body = document.body

    triggerMeasurements = ->
      atom.workspace.increaseFontSize()
      atom.workspace.decreaseFontSize()

    setBodyAttribute = (attr, value, def = "(Default)") ->
      unless value == def
        body.setAttribute(attr, value)
      else
        body.removeAttribute(attr)

    applyFont = ->
      editorFont = atom.config.get("fonts-cjk.editorFont");
      markdownPreviewFont = atom.config.get("fonts-cjk.markdownPreviewFont");
      workspaceFont = atom.config.get("fonts-cjk.workspaceFont");
      fonts = """
        --fonts-cjk-editorFont: "#{editorFont}";
        --fonts-cjk-markdownPreviewFont: "#{markdownPreviewFont}";
        --fonts-cjk-workspaceFont: "#{workspaceFont}";
      """
      setBodyAttribute("style", fonts)
      setBodyAttribute("data-fonts-cjk-editorFont", editorFont)
      setBodyAttribute("data-fonts-cjk-markdownPreviewFont", markdownPreviewFont)
      setBodyAttribute("data-fonts-cjk-workspaceFont", workspaceFont)
      triggerMeasurements()

    @observer = atom.config.observe("fonts-cjk.editorFont", -> applyFont())
    @observer = atom.config.observe("fonts-cjk.markdownPreviewFont", -> applyFont())
    @observer = atom.config.observe("fonts-cjk.workspaceFont", -> applyFont())

    setTimeout(triggerMeasurements, 500)

  stop: ->
    body = document.body
    body.removeAttribute("data-fonts-cjk-editorFont")
    body.removeAttribute("data-fonts-cjk-markdownPreviewFont")
    body.removeAttribute("data-fonts-cjk-workspaceFont")
    body.removeAttribute("style")<commit_msg>Remove trailing semicolon<commit_after>module.exports =
  run: ->
    body = document.body

    triggerMeasurements = ->
      atom.workspace.increaseFontSize()
      atom.workspace.decreaseFontSize()

    setBodyAttribute = (attr, value, def = "(Default)") ->
      unless value == def
        body.setAttribute(attr, value)
      else
        body.removeAttribute(attr)

    applyFont = ->
      editorFont = atom.config.get("fonts-cjk.editorFont")
      markdownPreviewFont = atom.config.get("fonts-cjk.markdownPreviewFont")
      workspaceFont = atom.config.get("fonts-cjk.workspaceFont")
      fonts = """
        --fonts-cjk-editorFont: "#{editorFont}";
        --fonts-cjk-markdownPreviewFont: "#{markdownPreviewFont}";
        --fonts-cjk-workspaceFont: "#{workspaceFont}";
      """
      setBodyAttribute("style", fonts)
      setBodyAttribute("data-fonts-cjk-editorFont", editorFont)
      setBodyAttribute("data-fonts-cjk-markdownPreviewFont", markdownPreviewFont)
      setBodyAttribute("data-fonts-cjk-workspaceFont", workspaceFont)
      triggerMeasurements()

    @observer = atom.config.observe("fonts-cjk.editorFont", -> applyFont())
    @observer = atom.config.observe("fonts-cjk.markdownPreviewFont", -> applyFont())
    @observer = atom.config.observe("fonts-cjk.workspaceFont", -> applyFont())

    setTimeout(triggerMeasurements, 500)

  stop: ->
    body = document.body
    body.removeAttribute("data-fonts-cjk-editorFont")
    body.removeAttribute("data-fonts-cjk-markdownPreviewFont")
    body.removeAttribute("data-fonts-cjk-workspaceFont")
    body.removeAttribute("style")
{'fraction_non_alphanumeric': 0.14178403755868543, 'fraction_numerical': 0.0018779342723004694, 'mean_word_length': 3.611832611832612, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '1835137', 'n_tokens_mistral': 1011, 'n_tokens_neox': 940, 'n_words': 121}