<commit_before>'use strict';

const Hapi = require('hapi');
const OpenWeather = require('./models/OpenWeather');

const server = new Hapi.Server();

server.connection({
    host: 'localhost',
    port: 8000
});

server.route({
    method: 'GET',
    path: '/weather/{lat}/{lon}',
    handler: function (req, reply) {
        let weather = new OpenWeather();
        weather
            .getCurrentWeather(request.params.lat, request.params.lon)
            .then((wthr) => {
                reply(wthr);
            })
    }
});

server.start((err) => {
    if (err) {
        throw err;
    }
    console.log('Server running at:', server.info.uri);
});<commit_msg>hotfix reference err<commit_after>'use strict';

const Hapi = require('hapi');
const OpenWeather = require('./models/OpenWeather');

const server = new Hapi.Server();

server.connection({
    host: 'localhost',
    port: 8000
});

server.route({
    method: 'GET',
    path: '/weather/{lat}/{lon}',
    handler: function (req, reply) {
        let weather = new OpenWeather();
        weather
            .getCurrentWeather(req.params.lat, req.params.lon)
            .then((wthr) => {
                reply(wthr);
            })
    }
});

server.start((err) => {
    if (err) {
        throw err;
    }
    console.log('Server running at:', server.info.uri);
});
{'fraction_non_alphanumeric': 0.17005267118133935, 'fraction_numerical': 0.006019563581640331, 'mean_word_length': 2.3842239185750635, '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': '5761647', 'n_tokens_mistral': 428, 'n_tokens_neox': 419, 'n_words': 90}