<commit_before>
/**

  config-editor.js

  Helper functions to edit the sneakers.json file.

**/


//
//  Dependencies
//

var _ = require("lodash"),
    fs = require("fs"),
    path = require("path");


var editor = module.exports = {

  config: null,

  filename: path.join(process.cwd(), "sneakers.json"),


  /**

    Loads and caches the config file
<commit_msg>config-editor: adds defaults<commit_after>
/**

  config-editor.js

  Helper functions to edit the sneakers.json file.

**/


//
//  Dependencies
//

var _ = require("lodash"),
    fs = require("fs"),
    path = require("path");


var editor = module.exports = {

  config: null,

  defaults: require("../server/defaults.js"),

  filename: path.join(process.cwd(), "sneakers.json"),


  /**

    Loads and caches the config file

{'fraction_non_alphanumeric': 0.1620603015075377, 'fraction_numerical': 0.0, 'mean_word_length': 2.8689320388349513, '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': '6918420', 'n_tokens_mistral': 282, 'n_tokens_neox': 256, 'n_words': 64}