<commit_before>module.exports = function (grunt) {

	require('time-grunt')(grunt);
	require('load-grunt-tasks')(grunt);

	var VERSION = require("./package.json").version,
		BANNER = require("fs").readFileSync("src/notice.txt").toString();

	grunt.initConfig({
		"clean": {
			"all": [ "dist/**" ]
		},
		"copy": {
			"bookmarklet-js": {
				"src": [ "src/HTML5OutlineBookmarklet.js" ],
				"dest": "dist/debug/HTML5OutlineBookmarklet.debug.js"
			}
		},
		"concat": {
			"outliner-js": {
				"src": [
					"src/notice.txt",
					"src/_head.js",
					"src/Section.js",
					"src/Outline.js",
					"src/walk.js",
					"src/enterNode.js",
					"src/exitNode.js",
					"src/func.js",
					"src/HTML5Outline.js",
					"src/_foot.js"
				],
				"dest": "dist/debug/outliner.debug.js"
			}
		},
		"uglify": {
			"bookmarklet-js": {
				"src": [ "dist/debug/HTML5OutlineBookmarklet.debug.js" ],
				"dest": "dist/debug/HTML5OutlineBookmarklet.min.js"
			},
			"outliner-js": {
				"options": {
					"banner": BANNER
				},
				"src": [ "dist/debug/outliner.debug.js" ],
				"dest": "dist/outliner.min.js"
			}
		},
		"gh-pages": {
			"dist": {
				"options": { "base": "dist" },
				"src": [
					"outliner.min.js",
					"outliner.html"
				]
			}
		},
		watch: {
			autoBuild: {
				files: [ "src/**" ],
				tasks: [ "default" ]
			},
			autoTest: {
				files: [ "test/**" ],
				tasks: [ "buster:local:test" ]
			}
		},
		buster: {
			local: {
				options: {
					reporter: "specification"
				}
			}
		},
		open: {
			"capture-browser": {
				path: "http://127.0.0.1:1111/capture"
			}
		},
		"saucelabs-custom": {
			dist: {
				options: {
					testname: "HTML5 outliner",
					browsers: [
						{ browserName: 'internet explorer', platform: "Windows 8.1", version: '11' },
						{ browserName: 'internet explorer', platform: "Windows 7", version: '11' },
						{ browserName: 'internet explorer', platform: "Windows 7", version: '10' },
						{ browserName: 'firefox', platform: "Windows 8.1" },
						{ browserName: 'firefox', platform: "Windows 7" },
						{ browserName: 'firefox', platform: "OS X 10.9" },
						{ browserName: 'firefox', platform: "Linux" },
						{ browserName: 'chrome', platform: "Windows 8.1" },
						{ browserName: 'chrome', platform: "Windows 7" },
						{ browserName: 'chrome', platform: "OS X 10.9" },
						{ browserName: 'chrome', platform: "Linux" },
						{ browserName: 'safari', platform: "OS X 10.9" }
					],
					urls: [
						"http://127.0.0.1:8000/?reporter=sauce"
					]
				}
			}
		}
	});

	grunt.renameTask("release", "_release");

	grunt.registerTask("default", "Clean build and minify", [ "clean:all", "concat:outliner-js", "copy:bookmarklet-js", "uglify", "_bookmarklet-release" ]);
	grunt.registerTask("test", "Clean build, minify and run tests", [ "default", process.env.SAUCE_USERNAME ? "test-sauce" : "test-local" ]);
	grunt.registerTask("test-sauce", [ "buster-static", "saucelabs-custom" ]);
	grunt.registerTask("test-local", [ "buster:local:server", "open:capture-browser", "buster:local:test" ]);
	grunt.registerTask("start-dev", [ "buster:local:server", "open:capture-browser", "watch" ]);
<commit_msg>Report Travis job ID to SauceLabs<commit_after>module.exports = function (grunt) {

	require('time-grunt')(grunt);
	require('load-grunt-tasks')(grunt);

	var VERSION = require("./package.json").version,
		BANNER = require("fs").readFileSync("src/notice.txt").toString();

	grunt.initConfig({
		"clean": {
			"all": [ "dist/**" ]
		},
		"copy": {
			"bookmarklet-js": {
				"src": [ "src/HTML5OutlineBookmarklet.js" ],
				"dest": "dist/debug/HTML5OutlineBookmarklet.debug.js"
			}
		},
		"concat": {
			"outliner-js": {
				"src": [
					"src/notice.txt",
					"src/_head.js",
					"src/Section.js",
					"src/Outline.js",
					"src/walk.js",
					"src/enterNode.js",
					"src/exitNode.js",
					"src/func.js",
					"src/HTML5Outline.js",
					"src/_foot.js"
				],
				"dest": "dist/debug/outliner.debug.js"
			}
		},
		"uglify": {
			"bookmarklet-js": {
				"src": [ "dist/debug/HTML5OutlineBookmarklet.debug.js" ],
				"dest": "dist/debug/HTML5OutlineBookmarklet.min.js"
			},
			"outliner-js": {
				"options": {
					"banner": BANNER
				},
				"src": [ "dist/debug/outliner.debug.js" ],
				"dest": "dist/outliner.min.js"
			}
		},
		"gh-pages": {
			"dist": {
				"options": { "base": "dist" },
				"src": [
					"outliner.min.js",
					"outliner.html"
				]
			}
		},
		watch: {
			autoBuild: {
				files: [ "src/**" ],
				tasks: [ "default" ]
			},
			autoTest: {
				files: [ "test/**" ],
				tasks: [ "buster:local:test" ]
			}
		},
		buster: {
			local: {
				options: {
					reporter: "specification"
				}
			}
		},
		open: {
			"capture-browser": {
				path: "http://127.0.0.1:1111/capture"
			}
		},
		"saucelabs-custom": {
			dist: {
				options: {
					testname: "HTML5 outliner",
					build: process.env.TRAVIS_JOB_ID || "",
					browsers: [
						{ browserName: 'internet explorer', platform: "Windows 8.1", version: '11' },
						{ browserName: 'internet explorer', platform: "Windows 7", version: '11' },
						{ browserName: 'internet explorer', platform: "Windows 7", version: '10' },
						{ browserName: 'firefox', platform: "Windows 8.1" },
						{ browserName: 'firefox', platform: "Windows 7" },
						{ browserName: 'firefox', platform: "OS X 10.9" },
						{ browserName: 'firefox', platform: "Linux" },
						{ browserName: 'chrome', platform: "Windows 8.1" },
						{ browserName: 'chrome', platform: "Windows 7" },
						{ browserName: 'chrome', platform: "OS X 10.9" },
						{ browserName: 'chrome', platform: "Linux" },
						{ browserName: 'safari', platform: "OS X 10.9" }
					],
					urls: [
						"http://127.0.0.1:8000/?reporter=sauce"
					]
				}
			}
		}
	});

	grunt.renameTask("release", "_release");

	grunt.registerTask("default", "Clean build and minify", [ "clean:all", "concat:outliner-js", "copy:bookmarklet-js", "uglify", "_bookmarklet-release" ]);
	grunt.registerTask("test", "Clean build, minify and run tests", [ "default", process.env.SAUCE_USERNAME ? "test-sauce" : "test-local" ]);
	grunt.registerTask("test-sauce", [ "buster-static", "saucelabs-custom" ]);
	grunt.registerTask("test-local", [ "buster:local:server", "open:capture-browser", "buster:local:test" ]);
	grunt.registerTask("start-dev", [ "buster:local:server", "open:capture-browser", "watch" ]);

{'fraction_non_alphanumeric': 0.20881015833202696, 'fraction_numerical': 0.015989967079479542, 'mean_word_length': 2.9850093691442847, 'pattern_counts': {'":': 52, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '1396982', 'n_tokens_mistral': 3044, 'n_tokens_neox': 2409, 'n_words': 387}