<commit_before>var build = require('./build/build.js'),
	lint = require('./build/hint.js');

var COPYRIGHT = "/*\r\n Copyright (c) 2010-2011, CloudMade, <NAME>\n" +
                " Leaflet is a modern open-source JavaScript library for interactive maps.\n" +
                " http://leaflet.cloudmade.com\r\n*/\r\n";

desc('Check Leaflet source for errors with JSHint');
task('lint', function () {
	var files = build.getFiles();
	
	console.log('Checking for JS errors...');
	
	var errorsFound = lint.jshint(files);
	
	if (errorsFound > 0) {
		console.log(errorsFound + ' error(s) found.\n');
		fail();
	} else {
		console.log('\tCheck passed');
	}
});

desc('Combine and compress Leaflet source files');
task('build', ['lint'], function (compsBase32, buildName) {
	var name = buildName || 'custom',
		path = 'dist/leaflet' + (compsBase32 ? '-' + name : '');

	var files = build.getFiles(compsBase32);

	console.log('Concatenating ' + files.length + ' files...');
	var content = build.combineFiles(files);
	console.log('\tUncompressed size: ' + content.length);
	
	build.save(path + '-src.js', COPYRIGHT + content);<commit_msg>fix line endings and update build 2<commit_after>var build = require('./build/build.js'),
	lint = require('./build/hint.js');

var COPYRIGHT = "/*\r\n Copyright (c) 2010-2011, CloudMade, <NAME>\r\n" +
                " Leaflet is a modern open-source JavaScript library for interactive maps.\n" +
                " http://leaflet.cloudmade.com\r\n*/\r\n";

desc('Check Leaflet source for errors with JSHint');
task('lint', function () {
	var files = build.getFiles();
	
	console.log('Checking for JS errors...');
	
	var errorsFound = lint.jshint(files);
	
	if (errorsFound > 0) {
		console.log(errorsFound + ' error(s) found.\n');
		fail();
	} else {
		console.log('\tCheck passed');
	}
});

desc('Combine and compress Leaflet source files');
task('build', ['lint'], function (compsBase32, buildName) {
	var name = buildName || 'custom',
		path = 'dist/leaflet' + (compsBase32 ? '-' + name : '');

	var files = build.getFiles(compsBase32);

	console.log('Concatenating ' + files.length + ' files...');
	var content = build.combineFiles(files);
	console.log('\tUncompressed size: ' + content.length);
	
	build.save(path + '-src.js', COPYRIGHT + content);
{'fraction_non_alphanumeric': 0.18098159509202455, 'fraction_numerical': 0.013584574934268186, 'mean_word_length': 3.6214574898785425, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3246389', 'n_tokens_mistral': 801, 'n_tokens_neox': 740, 'n_words': 181}