<commit_before>extends ./lesson.jade

block scripts
  script.
    $(document).ready(function(){
      $('pre').has('code.blocks').addClass('blocks');
      scratchblocks.renderMatching('code.blocks', {
        languages: ['nb', 'en']
      });
      scratchblocks.renderMatching('code.b', {
        languages: ['nb', 'en'],
        inline: true
      });
    });<commit_msg>polyfill Function.prototype.bind for phantomjs<commit_after>extends ./lesson.jade

block scripts
  script.
    // bind shim for phantomJS
    Function.prototype.bind = Function.prototype.bind || function (thisp) {
      var fn = this;
      var args = Array.prototype.slice.call(arguments, 1);
      return function () {
        return fn.apply(thisp, args);
      };
    };
    $(document).ready(function(){
      $('pre').has('code.blocks').addClass('blocks');
      scratchblocks.renderMatching('code.blocks', {
        languages: ['nb', 'en']
      });
      scratchblocks.renderMatching('code.b', {
        languages: ['nb', 'en'],
        inline: true
      });
    });
{'fraction_non_alphanumeric': 0.17349857006673022, 'fraction_numerical': 0.0009532888465204957, 'mean_word_length': 2.6713286713286712, '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': '193672', 'n_tokens_mistral': 314, 'n_tokens_neox': 316, 'n_words': 57}