<commit_before>/*
 * ContentsJS
 * https://github.com/LittleHelicase/ContentsJS
 *
 * Copyright (c) 2014 "LittleHelicase" <NAME>
 * Licensed under the MIT license.
 * https://github.com/LittleHelicase/ContentsJS/blob/master/LICENSE
 */


patches = require \./patches
loader = require \./loader
require! path

const version = "0.0.1"
const emptyFile = {Content: ""}

module-load = (cjs, exported) -->
  exported.initialize cjs

data-loaded = (path, data) ->
  # user-callback wants to load.. so load the keyword!
  request-load = (keyword) ->
    load-path patches.keyword-path path, keyword

  # pop in the view
  display data, request-load

# loads the keyword specified in the path
load-path = (path) ->
  patches.load-content path, json-loader, data-loaded
  
load-initial-package = (cjs, loaded) ->
  initial-package = path.join cjs.path, "contents"
  cjs.loader initial-package, loaded<commit_msg>removed unnecessary stuff from before restructuring<commit_after>/*
 * ContentsJS
 * https://github.com/LittleHelicase/ContentsJS
 *
 * Copyright (c) 2014 "LittleHelicase" <NAME>
 * Licensed under the MIT license.
 * https://github.com/LittleHelicase/ContentsJS/blob/master/LICENSE
 */


patches = require \./patches
loader = require \./loader
require! path

const version = "0.0.1"
const emptyFile = {Content: ""}

module-load = (cjs, exported) -->
  exported.initialize cjs
  
load-initial-package = (cjs, loaded) ->
  initial-package = path.join cjs.path, "contents"
  cjs.loader initial-package, loaded
{'fraction_non_alphanumeric': 0.13395225464190982, 'fraction_numerical': 0.009283819628647215, 'mean_word_length': 3.7753164556962027, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 4, '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': '4463129', 'n_tokens_mistral': 499, 'n_tokens_neox': 477, 'n_words': 127}