<commit_before>var poor = utils.unexpected({bool: true, arr: true, num: true});

it('should works', function() {
  var a = new Yamb();
  var html = a.html(data('easymongo').preview);

  html.should.equal('<p>A <strong>small</strong> tweaks for the <a href="https://github.com/mongodb/node-mongodb-native">native MongoDB driver</a>.</p>');
});

it('should work with highlight.js', function() {
  var html;
  var a = new Yamb();

  html = a.html(data('easymongo').text);
  html.should.equal('<p>It&#39;s like native MongoDB driver but for newbie. In my opinion native driver has many difficulties. And for general purpose no need to be so flexible.</p>\n<p><strong>Benefits:</strong></p>\n<ul>\n<li>Expected return data</li>\n<li>Using strings for ObjectID values</li>\n<li><code>Collection</code> class for all manipulates with collections</li>\n<li>Additional methods for work with id like <code>findById</code>, <code>removeById</code></li>\n<li>Less callbacks</li>\n</ul>\n<p><strong>Example:</strong></p>\n<pre><code class="lang-js"><span class="hljs-keyword">var</span> users = mongo.collection(<span class="hljs-string">\'users\'</span>);\n\nusers.find(<span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(err, res)</span> {</span>\n  console.log(res);\n});\n</code></pre>');

  html = a.html(data('tumblr').text);
  html.should.equal('<h3 id="contributing">Contributing</h3>\n<p><strong>DO NOT directly modify the <code>lib</code> files.</strong> These files are automatically built from CoffeeScript sources located under the <code>src</code> directory.</p>\n<p>To do build run:</p>\n<pre><code class="lang-bash">$ cake build\n</code></pre>');

  html = a.html('```\nvar i = 0;\n```');
  html.should.equal('<pre><code>var i = 0;\n</code></pre>');
});

it('should not work with unexpected values', function() {
  var html;
  var a = new Yamb();

  for (var i=0, length=poor.length; i<length; i++) {
    if (typeof poor[i] == 'string') {
      continue;
    }

    html = a.html(poor[i]);
    html.should.be.false;
  }
});<commit_msg>Fix highlight test<commit_after>var poor = utils.unexpected({bool: true, arr: true, num: true});

it('should works', function() {
  var a = new Yamb();
  var html = a.html(data('easymongo').preview);

  html.should.equal('<p>A <strong>small</strong> tweaks for the <a href="https://github.com/mongodb/node-mongodb-native">native MongoDB driver</a>.</p>');
});

it('should work with highlight.js', function() {
  var html;
  var a = new Yamb();

  html = a.html(data('easymongo').text);
  html.should.equal('<p>It&#39;s like native MongoDB driver but for newbie. In my opinion native driver has many difficulties. And for general purpose no need to be so flexible.</p>\n<p><strong>Benefits:</strong></p>\n<ul>\n<li>Expected return data</li>\n<li>Using strings for ObjectID values</li>\n<li><code>Collection</code> class for all manipulates with collections</li>\n<li>Additional methods for work with id like <code>findById</code>, <code>removeById</code></li>\n<li>Less callbacks</li>\n</ul>\n<p><strong>Example:</strong></p>\n<pre><code class="lang-js"><span class="hljs-keyword">var</span> users = mongo.collection(<span class="hljs-string">\'users\'</span>);\n\nusers.find(<span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(err, res)</span> </span>{\n  <span class="hljs-built_in">console</span>.log(res);\n});\n</code></pre>');

  html = a.html(data('tumblr').text);
  html.should.equal('<h3 id="contributing">Contributing</h3>\n<p><strong>DO NOT directly modify the <code>lib</code> files.</strong> These files are automatically built from CoffeeScript sources located under the <code>src</code> directory.</p>\n<p>To do build run:</p>\n<pre><code class="lang-bash">$ cake build\n</code></pre>');

  html = a.html('```\nvar i = 0;\n```');
  html.should.equal('<pre><code>var i = 0;\n</code></pre>');
});

it('should not work with unexpected values', function() {
  var html;
  var a = new Yamb();

  for (var i=0, length=poor.length; i<length; i++) {
    if (typeof poor[i] == 'string') {
      continue;
    }

    html = a.html(poor[i]);
    html.should.be.false;
  }
});
{'fraction_non_alphanumeric': 0.21136471707085117, 'fraction_numerical': 0.0033285782215882074, 'mean_word_length': 4.992877492877493, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 141, 'https://': 2, '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': '6943498', 'n_tokens_mistral': 1458, 'n_tokens_neox': 1394, 'n_words': 325}