<commit_before>let expect    = require( "chai" ).expect
let request	  = require( "supertest" )

// import the app
let server = require( __dirname + "/../app.js" )

// Get helpers
var dev = require( __dirname + '/../modules/helpers' )

// Import environment
let dotenv = require( 'dotenv' )
process.env.travis ? '' : dotenv.load()

process.env.NODE_ENV = 'production'
process.env.verbose = false

// Make test verbose if the environment does not prevent it
let verbose = dev.bool( process.env.verboseTest ) ? true : false

// Testing placeholder with the app
let app = request( server )

////////////////////////
// Api server status
///////////////////////
describe( 'Server status' , f => {
	// Server test
	describe( 'GET /?lets=go ', f => {
		// Data return check
		it( 'server is online', done => {
			app.get( '/' )
			.expect( 200, done )
		} )
	} )
})

////////////////////////
// Accept authorized
////////////////////////

let demoUser = { email: "<EMAIL>", password: "<PASSWORD>" }


describe( 'User API acceptance', f => {

	// Central cookie store for this test battery
	let Cookies

	// Registration test
	describe( 'user creation @ POST /register/new', f => {
		it( 'registers & returns new user', done => {
			app
			.post( '/register/new' )
			.send( demoUser )
			.expect('Content-Type', /json/)
			.expect( 200, {
				id: '1',
				email: demoUser.email
			} )
			.end( ( err, res ) => {
				verbose ? console.log( res.body ) : ''
				done( )<commit_msg>useless query string hoping travis likes it<commit_after>let expect    = require( "chai" ).expect
let request	  = require( "supertest" )

// import the app
let server = require( __dirname + "/../app.js" )

// Get helpers
var dev = require( __dirname + '/../modules/helpers' )

// Import environment
let dotenv = require( 'dotenv' )
process.env.travis ? '' : dotenv.load()

process.env.NODE_ENV = 'production'
process.env.verbose = false

// Make test verbose if the environment does not prevent it
let verbose = dev.bool( process.env.verboseTest ) ? true : false

// Testing placeholder with the app
let app = request( server )

////////////////////////
// Api server status
///////////////////////
describe( 'Server status' , f => {
	// Server test
	describe( 'GET /?lets=go ', f => {
		// Data return check
		it( 'server is online', done => {
			app.get( '/?lets=go' )
			.expect( 200, done )
		} )
	} )
})

////////////////////////
// Accept authorized
////////////////////////

let demoUser = { email: "<EMAIL>", password: "<PASSWORD>" }


describe( 'User API acceptance', f => {

	// Central cookie store for this test battery
	let Cookies

	// Registration test
	describe( 'user creation @ POST /register/new', f => {
		it( 'registers & returns new user', done => {
			app
			.post( '/register/new' )
			.send( demoUser )
			.expect('Content-Type', /json/)
			.expect( 200, {
				id: '1',
				email: demoUser.email
			} )
			.end( ( err, res ) => {
				verbose ? console.log( res.body ) : ''
				done( )
{'fraction_non_alphanumeric': 0.21140939597315436, 'fraction_numerical': 0.004697986577181208, 'mean_word_length': 2.2722283205268936, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, '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': '211546', 'n_tokens_mistral': 1017, 'n_tokens_neox': 916, 'n_words': 291}