<commit_before>if (process.env.MODE == 'chromeApp')
{
	console.log('deploying crx to github');
	
	var GitHubApi = require("github");
	var https = require('https');
	var fs = require("fs");


	var github = new GitHubApi({
	    // required
	    version: "3.0.0",
	});

	var oauthToken = process.env.GITHUB_TOKEN;
	github.authenticate({
	    type: "oauth",
	    token: oauthToken//process.env.GITHUB_TOKEN
	});

	var dateString = new Date().toJSON();
	var tagName = dateString.replace(/\:/g, '-');
	console.log(tagName);
	var releaseData = {
		tag_name: tagName,
		target_commitish: process.env.TRAVIS_COMMIT,
		owner: 'readium',
		repo: 'readium-js-viewer',
		name: 'Automated build on ' + dateString,
		prerelease: true

	}
	github.releases.createRelease(releaseData, function(error, result){
		if (error){
			console.log(JSON.stringify(error));
			return;
		}
		console.log('release created');
		//console.log(result);

		var releaseId = result.id,
			contentType = 'application/x-chrome-extension',
			fileName = 'build/Readium.crx';

		//var url = 'https://uploads.github.com/repos/readium/readium-js-viewer/releases/' + releaseId + '/assets?name=Readium.crx'


		var stats = fs.statSync(fileName)
	 	var fileSizeInBytes = stats["size"]

		var httpOptions = {
			hostname: 'uploads.github.com',
			port: 443,
			path: '/repos/ryanackley/speakeasy-plugin/releases/' + releaseId + '/assets?name=Readium.crx',
			method: 'POST',
			headers: {
				'Content-Type': contentType,
				'Content-Length': fileSizeInBytes,
				'Authorization' : 'token ' + oauthToken
			}
		}
		//console.log(httpOptions);

		var req = https.request(httpOptions, function(res){
			if (res.statusCode < 400){
				console.log('binary uploaded successfully');
			}
			else{
				console.log('error uploading binary: ' + res.statusCode);
				
			}
		});

		fs.createReadStream(fileName).pipe(req);

		//req.end();



	});
}
<commit_msg>trying to get releases to work<commit_after>if (process.env.MODE == 'chromeApp')
{
	console.log('deploying crx to github');
	
	var GitHubApi = require("github");
	var https = require('https');
	var fs = require("fs");


	var github = new GitHubApi({
	    // required
	    version: "3.0.0",
	});

	var oauthToken = process.env.GITHUB_TOKEN;
	github.authenticate({
	    type: "oauth",
	    token: oauthToken//process.env.GITHUB_TOKEN
	});

	var dateString = new Date().toJSON();
	var tagName = dateString.replace(/\:/g, '-');
	console.log(tagName);
	var releaseData = {
		tag_name: tagName,
		target_commitish: process.env.TRAVIS_COMMIT,
		owner: 'readium',
		repo: 'readium-js-viewer',
		name: 'Automated build on ' + dateString,
		prerelease: true

	}
	github.releases.createRelease(releaseData, function(error, result){
		if (error){
			console.log(JSON.stringify(error));
			return;
		}
		console.log('release created');
		//console.log(result);

		var releaseId = result.id,
			contentType = 'application/x-chrome-extension',
			fileName = 'build/Readium.crx';

		//var url = 'https://uploads.github.com/repos/readium/readium-js-viewer/releases/' + releaseId + '/assets?name=Readium.crx'


		var stats = fs.statSync(fileName)
	 	var fileSizeInBytes = stats["size"]

		var httpOptions = {
			hostname: 'uploads.github.com',
			port: 443,
			path: '/repos/readium/readium-js-viewer/releases/' + releaseId + '/assets?name=Readium.crx',
			method: 'POST',
			headers: {
				'Content-Type': contentType,
				'Content-Length': fileSizeInBytes,
				'Authorization' : 'token ' + oauthToken
			}
		}
		//console.log(httpOptions);

		var req = https.request(httpOptions, function(res){
			if (res.statusCode < 400){
				console.log('binary uploaded successfully');
			}
			else{
				console.log('error uploading binary: ' + res.statusCode);

			}
		});

		fs.createReadStream(fileName).pipe(req);

		//req.end();



	});
}

{'fraction_non_alphanumeric': 0.16147605338916515, 'fraction_numerical': 0.004710808688824915, 'mean_word_length': 3.6215235792019347, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1114403', 'n_tokens_mistral': 1521, 'n_tokens_neox': 1304, 'n_words': 249}