<commit_before>
/**

  locals-editor

**/


//
//  Dependencies
//

var chalk = require("chalk"),
    utils = require("./cli-utils");



//
//  Exports
//

module.exports = {

  /**

    Outputs a list of local variables.

  **/

  list: function() {

    var editor = require("./config-editor"),
        locals = editor.get("locals") || {},
        str;

    console.log("");
    if (!Object.keys(locals).length)
      console.log(chalk.cyan("   Info:"), "there are no local variables in your project");
    else {
      console.log(chalk.cyan("   Local Variables:\n"));
      str = JSON.stringify(locals, null, 2).split("\n").map(function(line) { return "   " + line; }).join("\n");
      console.log(str);
    }

    console.log("");

  },



  /**

    Adds a local variable and acknolwedges with confirmation.

    @param {String} key The key to lookup (supports dot-notation)

  **/<commit_msg>locals-editor#list: indents consistent with pipelines and routes<commit_after>
/**

  locals-editor

**/


//
//  Dependencies
//

var chalk = require("chalk"),
    utils = require("./cli-utils");



//
//  Exports
//

module.exports = {

  /**

    Outputs a list of local variables.

  **/

  list: function() {

    var editor = require("./config-editor"),
        locals = editor.get("locals") || {},
        str;

    console.log("");
    console.log(chalk.cyan(" Locals:"));
    console.log("");

    if (!Object.keys(locals).length)
      console.log("   There are no local variables in your project");
    else {
      str = JSON.stringify(locals, null, 2).split("\n").map(function(line) { return "   " + line; }).join("\n");
      console.log(str);
    }

    console.log("");

  },



  /**

    Adds a local variable and acknolwedges with confirmation.

    @param {String} key The key to lookup (supports dot-notation)

  **/
{'fraction_non_alphanumeric': 0.18127381600435494, 'fraction_numerical': 0.0010887316276537834, 'mean_word_length': 2.410018552875696, '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': '5680499', 'n_tokens_mistral': 627, 'n_tokens_neox': 588, 'n_words': 139}