<commit_before>import * as ApplicationRole from '../application-role';
import * as express from 'express';
//import * as userApi from './user-api';
import * as http from 'http';
import Environment from '../environment';

export default class WebRole implements ApplicationRole.RoleInstance {
	public type = ApplicationRole.Type.WEB;

	public start() {
		var app = express();
		app.set('port', Environment.port);
		app.set('app', __dirname + '/app');
		app.use('/app', express.static(__dirname + '/app'));
		//app.use(userApi.api);

		app.get('/omfg', (req: any, res: any) => res.send('Lol it works! :)'));

		http.createServer(app).listen(app.get('port'), () => {
			console.log('Express server listening on port ' + app.get('port'));
		});
	}
}
<commit_msg>azure express routing static files<commit_after>import * as ApplicationRole from '../application-role';
import * as express from 'express';
//import * as userApi from './user-api';
import * as http from 'http';
import Environment from '../environment';

export default class WebRole implements ApplicationRole.RoleInstance {
	public type = ApplicationRole.Type.WEB;

	public start() {
		var app = express();
		app.set('port', Environment.port);
		app.set('app',  '../');
		app.use('/app', express.static('../'));
		app.use('/', express.static('../index.html'));
		//app.use(userApi.api);

		app.get('/omfg', (req: any, res: any) => res.send('Lol it works! :)'));

		http.createServer(app).listen(app.get('port'), () => {
			console.log('Express server listening on port ' + app.get('port'));
		});
	}
}

{'fraction_non_alphanumeric': 0.19666880204996798, 'fraction_numerical': 0.0, 'mean_word_length': 4.1551155115511555, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3486004', 'n_tokens_mistral': 503, 'n_tokens_neox': 475, 'n_words': 127}