<commit_before>var _r, _store, _stream, model;

_r = require('kefir');

_store = {};

_stream = _r.pool();

model = {};

model.linesMax = 300;

model.uniqueness = true;

model._cloneObject = function(obj) {
  return JSON.parse(JSON.stringify(obj));
};

model._isTypeArray = Array.isArray || function(value) {
  return {}.toString.call(value) === '[object Array]';
};

model._isSame = function(val1, val2) {
  return JSON.stringify(val1) === JSON.stringify(val2);
};

model._emit = function(propertyName, value) {
  return _stream.plug(_r.constant({
    name: propertyName,
    value: value
  }));
};

model.fromProperty = function(propertyName) {
  return _stream.filter(function(x) {
    return (x.name != null) && x.name === propertyName;
  });
};

model.fromRegex = function(regexp) {
  return _stream.filter(function(x) {
    return (x.name != null) && x.name.match(regexp);
  });
};

model.get = function(propertyName) {
  if (!(!!propertyName)) {
    return null;
  }
  if (typeof _store[propertyName] === "undefined") {
    return void 0;
  }
  return model._cloneObject(_store[propertyName]);
};

model.getStream = function() {
  return _stream;
};

model.log = function(propertyName, value) {
  if (!(!!propertyName)) {
    return false;
  }
  if (typeof value === "undefined") {<commit_msg>fixed not up to date ks.js ...<commit_after>var _r, _store, _stream, model;

_r = require('kefir');

_store = {};

_stream = _r.pool();

model = {};

model.linesMax = 300;

model.uniqueness = true;

model._cloneObject = function(obj) {
  return JSON.parse(JSON.stringify(obj));
};

model._isTypeArray = Array.isArray || function(value) {
  return {}.toString.call(value) === '[object Array]';
};

model._isSame = function(val1, val2) {
  return JSON.stringify(val1) === JSON.stringify(val2);
};

model._emit = function(propertyName, value) {
  return _stream.plug(_r.constant({
    name: propertyName,
    value: value
  }));
};

model.fromProperty = function(propertyName) {
  return _stream.filter(function(x) {
    return (x.name != null) && x.name === propertyName;
  });
};

model.fromRegex = function(regexp) {
  return _stream.filter(function(x) {
    return (x.name != null) && x.name.match(regexp);
  });
};

model.get = function(propertyName) {
  if (!(!!propertyName)) {
    return null;
  }
  if (typeof _store[propertyName] === "undefined") {
    return void 0;
  }
  return model._cloneObject(_store[propertyName]);
};

model.getChildProperty = function(propertyName, childName) {
  if (!(!!propertyName) || !(!!childName)) {
    return null;
  }
  if (typeof _store[propertyName] !== "object" || typeof _store[propertyName][childName] === "undefined") {
    return void 0;
  }
  return model._cloneObject(_store[propertyName][childName]);
};

model.getStream = function() {
  return _stream;
};

model.log = function(propertyName, value) {
  if (!(!!propertyName)) {
    return false;
  }
  if (typeof value === "undefined") {
{'fraction_non_alphanumeric': 0.17613056783407005, 'fraction_numerical': 0.005780346820809248, 'mean_word_length': 4.207079646017699, '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': '3886856', 'n_tokens_mistral': 1001, 'n_tokens_neox': 996, 'n_words': 202}