<commit_before>let express = require('express');
let parser = require('body-parser');
let app = express();
let technoDoc = require('techno-gendoc');
let path = require('path');

let technolibs = require('technolibs');
let userMas = {};
let counter = 0;
app.use('/', express.static('public'));
technoDoc.generate(require('./api'), 'public');

app.use(parser.json());
app.use('/libs', express.static('node_modules'));

app.post('/api/messages', (req, res) => {
    technolibs.publish(req.body).then(body => res.json(req.body));
});
app.get('/signin', (req, res) => {
	res.sendfile('public/index.html', {root: __dirname });
});
app.get('/signup', (req, res) => {
	res.sendfile('public/index.html', {root: __dirname });
});
app.get('/rating.json', (req, res) => {
	res.writeHead(200, {
            'Content-Type': 'application/json; charset=UTF-8'
        });
	res.send(JSON.stringif({
		medalists: [
			{
			username: "ivan",
			wins: 25
			},
			{
			username: "bob",
			wins: 20
			},
			{
			username: "oleg",
			wins: 15
			}
		]
	}));
});
app.get('/rating', (req, res) => {
	res.sendfile('public/index.html', {root: __dirname });
});
app.get('/pregame', (req, res) => {<commit_msg>server take new ability to answer on signIn and signUp requests<commit_after>let express = require('express');
let parser = require('body-parser');
let app = express();
let technoDoc = require('techno-gendoc');
let path = require('path');

let technolibs = require('technolibs');
let userMas = {};
let counter = 0;
app.use('/', express.static('public'));
technoDoc.generate(require('./api'), 'public');

app.use(parser.json());
app.use('/libs', express.static('node_modules'));

app.post('/api/messages', (req, res) => {
    technolibs.publish(req.body).then(body => res.json(req.body));
});
app.get('/signin', (req, res) => {
	res.sendfile('public/index.html', {root: __dirname });
});
app.get('/signup', (req, res) => {
	res.sendfile('public/index.html', {root: __dirname });
});
app.post('/signIn.json', (req, res) => {
	res.writeHead(200, {'Content-Type': 'application/json; charset=UTF-8'});
	res.send({'hello user'});
});
app.post('/signUp.json', (req, res) => {
	res.writeHead(200, {'Content-Type': 'application/json; charset=UTF-8'});
	res.send({'hello user'});
});
app.get('/rating.json', (req, res) => {
	res.writeHead(200, {'Content-Type': 'application/json; charset=UTF-8'});
	res.send({
		medalists: [
			{
			username: "ivan",
			wins: 25
			},
			{
			username: "bob",
			wins: 20
			},
			{
			username: "oleg",
			wins: 15
			}
		]
	})
});
app.get('/rating', (req, res) => {
	res.sendfile('public/index.html', {root: __dirname });
});
app.get('/pregame', (req, res) => {
{'fraction_non_alphanumeric': 0.24044943820224718, 'fraction_numerical': 0.011235955056179775, 'mean_word_length': 4.278656126482214, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '6042786', 'n_tokens_mistral': 1060, 'n_tokens_neox': 975, 'n_words': 182}