<commit_before>var assert = require('assert');
var TestRunner = require('assert-runner');
var login = require('./login.js').login;

var loginTest = {
	"trivial passing test": function(){
		assert(true == true);
	},
	"test of a bad login": function(){
		var req = new TestRunner.TestRequest();
		req.params = {};
		req.params.username = "007";
		req.params.password = "<PASSWORD>";
		var res = new TestRunner.TestResponse();
		login(req, res);
		console.log(res.sBody);
		assert(res.sBody == 'fail');
	},
	"test of a good login": function(){
		var req = new TestRunner.TestRequest();
		req.params.username = "007";
		req.params.password = "<PASSWORD>";
		var res = new TestRunner.TestResponse();
		login(req, res);
		console.log(res.sBody);
		assert(res.sBody == 'pass');
	}
};

new TestRunner(loginTest).again(0);<commit_msg>oops, took out another bit about params<commit_after>var assert = require('assert');
var TestRunner = require('assert-runner');
var login = require('./login.js').login;

var loginTest = {
	"trivial passing test": function(){
		assert(true == true);
	},
	"test of a bad login": function(){
		var req = new TestRunner.TestRequest();
		req.params.username = "007";
		req.params.password = "<PASSWORD>";
		var res = new TestRunner.TestResponse();
		login(req, res);
		console.log(res.sBody);
		assert(res.sBody == 'fail');
	},
	"test of a good login": function(){
		var req = new TestRunner.TestRequest();
		req.params.username = "007";
		req.params.password = "<PASSWORD>";
		var res = new TestRunner.TestResponse();
		login(req, res);
		console.log(res.sBody);
		assert(res.sBody == 'pass');
	}
};

new TestRunner(loginTest).again(0);
{'fraction_non_alphanumeric': 0.17984308992154496, 'fraction_numerical': 0.008449004224502113, 'mean_word_length': 4.436065573770492, 'pattern_counts': {'":': 6, '<': 7, '<?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': '1618779', 'n_tokens_mistral': 585, 'n_tokens_neox': 543, 'n_words': 136}