<commit_before>var yaml = require('js-yaml');
var fs = require('fs');
var Validator = require('jsonschema').Validator;

function Config() {
  this._hash = {};
}

/**
 * @param {String} path
 */
Config.prototype.load = function(path) {
  var content = yaml.safeLoad(fs.readFileSync(path, 'utf8'));
  Config._validate(content);
  this._hash = content;
};

/**
 * @returns {Object}
 */
Config.prototype.asHash = function() {
  return this._hash;
};

var validator = new Validator();

var validScheme = {
  type: 'object',
  additionalProperties: false,
  properties: {
    logPath: {
      type: 'string',
      required: true
    },
    httpServer: {
      type: 'object',
      required: true,
      properties: {
        port: {
          type: 'integer',
          required: true
        },
        apiKey: {
          type: 'string',
          required: true
        }
      }
    },
    proxy: {
      type: 'object',
      required: true,
      properties: {
        listenPort: {
          type: 'integer',
          required: true
        },
        janusAddress: {
          type: 'string',
          required: true
        }
      }
    },
    cmApi: {
      type: 'object',
      properties: {
        baseUrl: {
          type: 'uri',
          required: true
        },
        apiKey: {
          type: 'string',
          required: true
        }
      }
    },
    cmApplication: {
      type: 'object',
      properties: {
        binaryPath: {
          type: 'string',
          required: true
        }
      }
    },
    jobManager: {
      type: 'object',
      properties: {
        jobsPath: {<commit_msg>Fix binaryPath -> path<commit_after>var yaml = require('js-yaml');
var fs = require('fs');
var Validator = require('jsonschema').Validator;

function Config() {
  this._hash = {};
}

/**
 * @param {String} path
 */
Config.prototype.load = function(path) {
  var content = yaml.safeLoad(fs.readFileSync(path, 'utf8'));
  Config._validate(content);
  this._hash = content;
};

/**
 * @returns {Object}
 */
Config.prototype.asHash = function() {
  return this._hash;
};

var validator = new Validator();

var validScheme = {
  type: 'object',
  additionalProperties: false,
  properties: {
    logPath: {
      type: 'string',
      required: true
    },
    httpServer: {
      type: 'object',
      required: true,
      properties: {
        port: {
          type: 'integer',
          required: true
        },
        apiKey: {
          type: 'string',
          required: true
        }
      }
    },
    proxy: {
      type: 'object',
      required: true,
      properties: {
        listenPort: {
          type: 'integer',
          required: true
        },
        janusAddress: {
          type: 'string',
          required: true
        }
      }
    },
    cmApi: {
      type: 'object',
      properties: {
        baseUrl: {
          type: 'uri',
          required: true
        },
        apiKey: {
          type: 'string',
          required: true
        }
      }
    },
    cmApplication: {
      type: 'object',
      properties: {
        path: {
          type: 'string',
          required: true
        }
      }
    },
    jobManager: {
      type: 'object',
      properties: {
        jobsPath: {
{'fraction_non_alphanumeric': 0.1393920785999386, 'fraction_numerical': 0.0006140620202640467, 'mean_word_length': 1.6253021756647865, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4350286', 'n_tokens_mistral': 978, 'n_tokens_neox': 975, 'n_words': 214}