<commit_before>define [
  "require"
  "jquery"
  "underscore"
],
(require, $, _) ->
  mermaid = d3 = null

  class NotebookMermaid
    constructor: -> require [@toUrl @mmp "mermaid.min.js"], @initDeps

    toUrl: (url) -> require.toUrl url

    mmp: (f) -> "./lib/mermaid/dist/#{f}"

    initDeps: (_m) =>
      mermaid = _m
      d3 = window.d3
      @initCSS()
      @initEnv()

    initCSS: ->
      d3.select "head"
        .selectAll "link.mermaid_style"
        .data [
          @mmp "mermaid.css"
          @mmp "mermaid.forest.css"
          "./nb-mermaid.css"
        ]
        .enter()
        .append "link"
        .attr
          rel: "stylesheet"<commit_msg>removing unneeded dependencies<commit_after>define [
  "require"
],
(require) ->

  mermaid = d3 = null
  class NotebookMermaid
    constructor: -> require [@toUrl @mmp "mermaid.min.js"], @initDeps

    toUrl: (url) -> require.toUrl url

    mmp: (f) -> "./lib/mermaid/dist/#{f}"

    initDeps: (_m) =>
      mermaid = _m
      d3 = window.d3
      @initCSS()
      @initEnv()

    initCSS: ->
      d3.select "head"
        .selectAll "link.mermaid_style"
        .data [
          @mmp "mermaid.css"
          @mmp "mermaid.forest.css"
          "./nb-mermaid.css"
        ]
        .enter()
        .append "link"
        .attr
          rel: "stylesheet"
{'fraction_non_alphanumeric': 0.1555221637866266, 'fraction_numerical': 0.006010518407212622, 'mean_word_length': 1.7577639751552796, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '6574070', 'n_tokens_mistral': 507, 'n_tokens_neox': 492, 'n_words': 95}