<commit_before>var ko = require('../bower_components/knockout.js/knockout.debug');

(function (ko, context) {
  var dataBind = 'data-bind';
  var sections;
  var document = context.document;
  var bindingSyntax = {
    value: function (bindingValue) {
      var matching = bindingValue.match(/of\s*:([^,]+),\s*update\s*:(.+)/);

      if (matching) {
        bindingValue = [ matching[1], ', valueUpdate:', matching[2] ].join('');
      }

      return bindingValue;
    },

    foreach: function (bindingValue) {
      var parts = bindingValue.split(/\s+in\s+/);

      return parts.length > 1 ? [ '{ data: ', parts[1], ', as: \'', parts[0].trim(), '\' }' ].join('') : bindingValue;
    },

    'default': function (bindingValue) {
      return  /^\w+\s*:/.test(bindingValue) ? '{' + bindingValue + '}' : bindingValue;
    }
  };


  function compileTree(element) {
    var nextInQueue = element.firstChild, childElement = nextInQueue;

    compileSingle(element);
    while (nextInQueue) {
      nextInQueue = childElement.nextSibling;
      compileTree(childElement);
      childElement = nextInQueue;
    }

    return element.nodeType === 1 ? element.innerHTML : undefined;
  }

  function compileSingle(element) {
    if (element.nodeType === 3 && element.nodeValue && element.nodeValue.indexOf('{{') !== -1) {
      parseInterpolationMarkupIn(element);<commit_msg>Fixed issue with wrong detection of object literal<commit_after>var ko = require('../bower_components/knockout.js/knockout.debug');

(function (ko, context) {
  var dataBind = 'data-bind';
  var sections;
  var document = context.document;
  var bindingSyntax = {
    value: function (bindingValue) {
      var matching = bindingValue.match(/of\s*:([^,]+),\s*update\s*:(.+)/);

      if (matching) {
        bindingValue = [ matching[1], ', valueUpdate:', matching[2] ].join('');
      }

      return bindingValue;
    },

    foreach: function (bindingValue) {
      var parts = bindingValue.split(/\s+in\s+/);

      return parts.length > 1 ? [ '{ data: ', parts[1], ', as: \'', parts[0].trim(), '\' }' ].join('') : bindingValue;
    },

    'default': function (bindingValue) {
      return  /^\s*\w+\s*:/.test(bindingValue) ? '{' + bindingValue + '}' : bindingValue;
    }
  };


  function compileTree(element) {
    var nextInQueue = element.firstChild, childElement = nextInQueue;

    compileSingle(element);
    while (nextInQueue) {
      nextInQueue = childElement.nextSibling;
      compileTree(childElement);
      childElement = nextInQueue;
    }

    return element.nodeType === 1 ? element.innerHTML : undefined;
  }

  function compileSingle(element) {
    if (element.nodeType === 3 && element.nodeValue && element.nodeValue.indexOf('{{') !== -1) {
      parseInterpolationMarkupIn(element);
{'fraction_non_alphanumeric': 0.1710999281092739, 'fraction_numerical': 0.005751258087706686, 'mean_word_length': 3.2230652503793626, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3699794', 'n_tokens_mistral': 884, 'n_tokens_neox': 851, 'n_words': 170}