<commit_before>/**
 * Conditionizr
 */
describe('Conditionizr', function () {

  /**
   * We should get an Object returned
   */
  it('should return an Object', function () {
    expect(typeof conditionizr).toBe('object');
  });

  it('should have all methods', function() {
    var methods = 'config on add polyfill load'.split();
    for (var i = methods.length; i--;) {
      expect(methods[i]).toBeDefined();
    }
  });

  /**
   * .add()
   */
  describe('add()', function () {

    beforeEach(function () {
      conditionizr.add('safari', [], function () {
        return /constructor/i.test(window.HTMLElement);
      });
    });

    it('should add an object property', function () {
      expect(typeof conditionizr.safari).toBeTruthy();<commit_msg>Update Conditionizr-spec.js<commit_after>/**
 * Conditionizr
 */
describe('Conditionizr', function () {

  /**
   * We should get an Object returned
   */
  it('should return an Object', function () {
    expect(typeof conditionizr).toBe('object');
  });

  it('should have all methods', function() {
    var methods = 'config on add polyfill load'.split();
    for (var i = methods.length; i--;) {
      expect(conditionizr.methods[i]).toBeDefined();
    }
  });

  /**
   * .add()
   */
  describe('add()', function () {

    beforeEach(function () {
      conditionizr.add('safari', [], function () {
        return /constructor/i.test(window.HTMLElement);
      });
    });

    it('should add an object property', function () {
      expect(typeof conditionizr.safari).toBeTruthy();
{'fraction_non_alphanumeric': 0.17647058823529413, 'fraction_numerical': 0.0, 'mean_word_length': 2.959079283887468, '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': '2728760', 'n_tokens_mistral': 480, 'n_tokens_neox': 469, 'n_words': 102}