<commit_before><!doctype html>
<html>
<head>
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
  <title>client-config</title>

  <script src="../../bower_components/webcomponentsjs/webcomponents-lite.js"></script>
  <script src="../../bower_components/web-component-tester/browser.js"></script>
  <script src="data/email-result.js" type="text/javascript"></script>

  <link rel="import" href="../elements/client-config/client-config.html">
</head>
  <body>
    <test-fixture id="client-config-fixture">
      <template>
        <client-config></client-config>
      </template>
    </test-fixture>

    <script>
      'use strict';
      /* globals suite, test, expect, setup, fixture, emailagg, assert */
      /* jshint -W030 */
      suite('<client-config> email tests', function() {
        var myEl;
        var dataout;

        setup(function() {
          myEl = fixture('client-config-fixture');
          var emailtransform = myEl.config.transforms.email;
          dataout = emailtransform(emailResult);
        });

        test('defines config object', function (done) {
          expect(myEl).to.exist;
          expect(myEl.config).to.exist;
          expect(myEl.config).to.be.an('Object');
          expect(myEl.config.transforms.email).to.be.a('Function');
          done();
        });

        test('defines offer data', function () {
          expect(offerResult).to.exist;
          assert.equal(offerResult.hits.total, 1);
        });
<commit_msg>Fixing result include for email test<commit_after><!doctype html>
<html>
<head>
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
  <title>client-config</title>

  <script src="../../bower_components/webcomponentsjs/webcomponents-lite.js"></script>
  <script src="../../bower_components/web-component-tester/browser.js"></script>
  <script src="data/email-result.js" type="text/javascript"></script>

  <link rel="import" href="../elements/client-config/client-config.html">
</head>
  <body>
    <test-fixture id="client-config-fixture">
      <template>
        <client-config></client-config>
      </template>
    </test-fixture>

    <script>
      'use strict';
      /* globals suite, test, expect, setup, fixture, emailagg, assert */
      /* jshint -W030 */
      suite('<client-config> email tests', function() {
        var myEl;
        var dataout;

        setup(function() {
          myEl = fixture('client-config-fixture');
          var emailtransform = myEl.config.transforms.email;
          dataout = emailtransform(offerResult);
        });

        test('defines config object', function (done) {
          expect(myEl).to.exist;
          expect(myEl.config).to.exist;
          expect(myEl.config).to.be.an('Object');
          expect(myEl.config.transforms.email).to.be.a('Function');
          done();
        });

        test('defines offer data', function () {
          expect(offerResult).to.exist;
          assert.equal(offerResult.hits.total, 1);
        });

{'fraction_non_alphanumeric': 0.1685575364667747, 'fraction_numerical': 0.005186385737439222, 'mean_word_length': 2.6913875598086126, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '5921624', 'n_tokens_mistral': 960, 'n_tokens_neox': 932, 'n_words': 155}