<commit_before>describe("Kojac Operations", function() {

	beforeEach(function () {
		this.cache = Ember.Object.create();
		var factory = new Kojac.ObjectFactory();
		this.kojac = new Kojac.Core({
			cache: this.cache,
			remoteProvider: new Kojac.RemoteProvider({useMockFileValues: true, mockFilePath: 'mockjson/'}),
			objectFactory: factory
		});
	});

	it("try reading cur_super,cur_super_product", function() {
		var op;
		var req;
		runs(function() {
			req = this.kojac.read('cur_super').read('cur_super_product').read('cur_super__50');
			expect(req).toBeDefined('ops');
			expect(req).toBeDefined('options');
			expect(req.ops.length).toEqual(3);
			op = req.ops[0];
			expect(op.verb).toEqual('READ');
			expect(op.key).toEqual('cur_super');
			expect(op.result_key).toEqual(op.key);
			expect(op.results).toEqual({});
			op = req.ops[1];
			expect(op.verb).toEqual('READ');
			expect(op.key).toEqual('cur_super_product');
			expect(op.result_key).toEqual(op.key);
			expect(op.results).toEqual({});
			op = req.ops[2];
			expect(op.verb).toEqual('READ');
			expect(op.key).toEqual('cur_super__50');
			expect(op.result_key).toEqual(op.key);
			expect(op.results).toEqual({});
		});
	});
});

<commit_msg>working on kojac_mock_spec.js<commit_after>describe("Kojac Operations", function() {

	beforeEach(function () {
		this.cache = Ember.Object.create();
		var factory = new Kojac.ObjectFactory();
		this.kojac = new Kojac.Core({
			cache: this.cache,
			remoteProvider: new Kojac.RemoteProvider({useMockFileValues: true, mockFilePath: 'mockjson/'}),
			objectFactory: factory
		});
	});

	it("try reading order_item,product,order_item__50", function() {
		var op;
		var req;
		runs(function() {
			req = this.kojac.read('order_item').read('product').read('order_item__50');
			expect(req).toBeDefined('ops');
			expect(req).toBeDefined('options');
			expect(req.ops.length).toEqual(3);
			op = req.ops[0];
			expect(op.verb).toEqual('READ');
			expect(op.key).toEqual('order_item');
			expect(op.result_key).toEqual(op.key);
			expect(op.results).toEqual({});
			op = req.ops[1];
			expect(op.verb).toEqual('READ');
			expect(op.key).toEqual('product');
			expect(op.result_key).toEqual(op.key);
			expect(op.results).toEqual({});
			op = req.ops[2];
			expect(op.verb).toEqual('READ');
			expect(op.key).toEqual('order_item__50');
			expect(op.result_key).toEqual(op.key);
			expect(op.results).toEqual({});
		});
	});
});


{'fraction_non_alphanumeric': 0.19704433497536947, 'fraction_numerical': 0.007389162561576354, 'mean_word_length': 4.774881516587678, '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': '4648479', 'n_tokens_mistral': 970, 'n_tokens_neox': 877, 'n_words': 112}