<commit_before>Specking
  .with({
    jasmine: true,
    CommonJS: true
  });

describe("Configurable", function() {
  var Configurable,
      src = '../../src/configurable.js';
      
  beforeEach(function() {
    Configurable = require(src).Configurable;
  });
  
  it("should be defined", function() {
    expect(Configurable).toBeDefined();
  });
  
  describe("method 'with'", function() {
    var c, context;
    beforeEach(function() {
      context = {};
      c = new Configurable(context);
    });
    it("is defined", function() {
      expect(c.with).toBeDefined();
    });
    it("should be able to load a DOM into the context", function() {
      c.with({ DOM: true });
      expect(context.HTMLDocument).toBeDefined();
    });
    it("should be able to load jasmine into the context", function() {
      c.with({ jasmine: true });
      expect(context.jasmine).toBeDefined();
    });
    describe("and specifying jQuery", function() {
      it("with true should expose it as jQuery only", function() {
        c.with({ jQuery: true });
        expect(context.jQuery).toBeDefined();
        expect(context.$).toBeUndefined();
      });
      it("with dollar should expose it as jQuery and $", function() {
        c.with({ jQuery: '$' });
        expect(context.jQuery).toBeDefined();
        expect(context.$).toBeDefined();
      });
    });
    it("should work with chained invokations", function() {
      c.with({ jasmine: true }).with({ DOM: true });
      expect(context.jasmine).toBeDefined();
      expect(context.HTMLElement).toBeDefined();
    });
  });
  
  describe("expose the environment", function() {
    it("should contain the dir of the spec file", function() {
      var c = new Configurable();
      var lastPart = c.env.dirname.substr(c.env.dirname.length - 4);
      expect(lastPart).toBe('/src');
    });
  });
});<commit_msg>Remove unneeded spec.<commit_after>Specking
  .with({
    jasmine: true,
    CommonJS: true
  });

describe("Configurable", function() {
  var Configurable,
      src = '../../src/configurable.js';
      
  beforeEach(function() {
    Configurable = require(src).Configurable;
  });
  
  it("should be defined", function() {
    expect(Configurable).toBeDefined();
  });
  
  describe("method 'with'", function() {
    var c, context;
    beforeEach(function() {
      context = {};
      c = new Configurable(context);
    });
    it("is defined", function() {
      expect(c.with).toBeDefined();
    });
    it("should be able to load a DOM into the context", function() {
      c.with({ DOM: true });
      expect(context.HTMLDocument).toBeDefined();
    });
    it("should be able to load jasmine into the context", function() {
      c.with({ jasmine: true });
      expect(context.jasmine).toBeDefined();
    });
    describe("and specifying jQuery", function() {
      it("with true should expose it as jQuery only", function() {
        c.with({ jQuery: true });
        expect(context.jQuery).toBeDefined();
        expect(context.$).toBeUndefined();
      });
      it("with dollar should expose it as jQuery and $", function() {
        c.with({ jQuery: '$' });
        expect(context.jQuery).toBeDefined();
        expect(context.$).toBeDefined();
      });
    });
    it("should work with chained invokations", function() {
      c.with({ jasmine: true }).with({ DOM: true });
      expect(context.jasmine).toBeDefined();
      expect(context.HTMLElement).toBeDefined();
    });
  });
});
{'fraction_non_alphanumeric': 0.16993652625504904, 'fraction_numerical': 0.00028851702250432774, 'mean_word_length': 2.805708013172338, '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': '4314675', 'n_tokens_mistral': 1022, 'n_tokens_neox': 1009, 'n_words': 242}