<commit_before>describe("cartocss generators", function(){
	beforeAll(function(){
		this.query = 'SELECT * FROM testable';
	})

	it("should return a torque style for date cols", function(){
		var stats = JSON.parse('{"type":"date","start_time":"2015-02-19T15:13:16.000Z","end_time":"2015-02-22T04:34:05.000Z","range":220849000,"steps":1024,"null_ratio":0,"column":"object_postedtime"}');
		var col = new Backbone.Model(JSON.parse('{"name":"object_postedtime","type":"date","geometry_type":"point","bbox":[[-28.92163128242129,-201.09375],[75.84516854027044,196.875]],"analyzed":true,"success":true,"stats":{"type":"date","start_time":"2015-02-19T15:13:16.000Z","end_time":"2015-02-22T04:34:05.000Z","range":220849000,"steps":1024,"null_ratio":0,"column":"object_postedtime"}}'));
		expect(cdb.CartoCSS.guessMap(this.query, "testable", col, stats).css.indexOf("torque")).not.toEqual(-1);
	});

	it("should return bubble for point, number columns", function(){
		var stats = JSON.parse('{"type":"number","stddev":0.00399008175326912,"null_ratio":0,"count":903,"distinct":65,"avg":4.4781284606866,"max":25,"min":0,"stddevmean":0.805032851171774,"weight":0.5,"quantiles":[0.001,2,4,5,6,8,25],"jenks":[3,3,5,7.4,8.2,13,25],"headtails":[4.4781284606866,7.369585253456221,10.139506172839507,13.511538461538462,17.08823529411765,20.8,24.5],"dist_type":"L","column":"asdfd"}');
		var col = new Backbone.Model(JSON.parse('{"name":"asdfd","type":"number","geometry_type":"point"}'));
		expect(cdb.CartoCSS.guessMap(this.query, "testable", col, stats).css.indexOf("bubble")).not.toEqual(-1);
	});

	it("should return choropleth for non-point number columns", function(){
		var stats = JSON.parse('{"type":"number","stddev":0.00399008175326912,"null_ratio":0,"count":903,"distinct":65,"avg":4.4781284606866,"max":25,"min":0,"stddevmean":0.805032851171774,"weight":0.5,"quantiles":[0.001,2,4,5,6,8,25],"jenks":[3,3,5,7.4,8.2,13,25],"headtails":[4.4781284606866,7.369585253456221,10.139506172839507,13.511538461538462,17.08823529411765,20.8,24.5],"dist_type":"L","column":"asdfd"}');
		var col = new Backbone.Model(JSON.parse('{"name":"asdfd","type":"number","geometry_type":"polygon"}'));<commit_msg>Fix spec<commit_after>describe("cartocss generators", function(){
	beforeAll(function(){
		this.query = 'SELECT * FROM testable';
	})

	it("should return a torque style for date cols", function(){
		var stats = JSON.parse('{"type":"date","start_time":"2015-02-19T15:13:16.000Z","end_time":"2015-02-22T04:34:05.000Z","range":220849000,"steps":1024,"null_ratio":0,"column":"object_postedtime"}');
		var col = new Backbone.Model(JSON.parse('{"name":"object_postedtime","type":"date","geometry_type":"point","bbox":[[-28.92163128242129,-201.09375],[75.84516854027044,196.875]],"analyzed":true,"success":true,"stats":{"type":"date","start_time":"2015-02-19T15:13:16.000Z","end_time":"2015-02-22T04:34:05.000Z","range":220849000,"steps":1024,"null_ratio":0,"column":"object_postedtime"}}'));
		expect(cdb.CartoCSS.guessMap(this.query, "testable", col, stats).css.indexOf("torque")).not.toEqual(-1);
	});

	it("should return bubble for point, number columns", function(){
		var stats = JSON.parse('{"type":"number","stddev":0.00399008175326912,"null_ratio":0,"count":903,"distinct":65,"avg":4.4781284606866,"max":25,"min":0,"stddevmean":0.805032851171774,"weight":0.1,"quantiles":[0.001,2,4,5,6,8,25],"jenks":[3,3,5,7.4,8.2,13,25],"headtails":[4.4781284606866,7.369585253456221,10.139506172839507,13.511538461538462,17.08823529411765,20.8,24.5],"dist_type":"L","column":"asdfd"}');
		var col = new Backbone.Model(JSON.parse('{"name":"asdfd","type":"number","geometry_type":"point"}'));
		expect(cdb.CartoCSS.guessMap(this.query, "testable", col, stats).css.indexOf("bubble")).not.toEqual(-1);
	});

	it("should return choropleth for non-point number columns", function(){
		var stats = JSON.parse('{"type":"number","stddev":0.00399008175326912,"null_ratio":0,"count":903,"distinct":65,"avg":4.4781284606866,"max":25,"min":0,"stddevmean":0.805032851171774,"weight":0.5,"quantiles":[0.001,2,4,5,6,8,25],"jenks":[3,3,5,7.4,8.2,13,25],"headtails":[4.4781284606866,7.369585253456221,10.139506172839507,13.511538461538462,17.08823529411765,20.8,24.5],"dist_type":"L","column":"asdfd"}');
		var col = new Backbone.Model(JSON.parse('{"name":"asdfd","type":"number","geometry_type":"polygon"}'));
{'fraction_non_alphanumeric': 0.24833906071019474, 'fraction_numerical': 0.21901489117983963, 'mean_word_length': 11.545977011494253, 'pattern_counts': {'":': 114, '<': 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': '6414335', 'n_tokens_mistral': 2258, 'n_tokens_neox': 1713, 'n_words': 124}