<commit_before>'use strict';

const Hapi = require('hapi');
const server = new Hapi.Server();

server.connection({ port: 22935});


server.route({
    method: 'GET',
    path: '/',
    handler: function (request, reply) {
        reply('Coming soon....... :)');
    }
});

server.register(require('inert'), (err) => {
    if (err) {
        throw err;
    }

    server.route({
        method: 'GET',
        path: '/{param*}',
        handler: {
            directory: {
            path: './',
            listing: true
            }
        }
    });

    server.route({
        method: 'GET',
        path: '/experiment/{param*}',
        handler: {
            directory: {
            path: 'experiment',
            listing: true
            }
        }
    });
});
<commit_msg>lets try tls again...<commit_after>'use strict';

const Hapi = require('hapi');
const server = new Hapi.Server();

const tlsOptions = {
  tls: {
    key: fs.readFileSync('/home/kamil/cert/myserver.key'),
    cert: fs.readFileSync('/home/kamil/cert/cert.crt')
  }
};

server.connection({ port: 22935, tls: tlsOptions});

server.route({
    method: 'GET',
    path: '/',
    handler: function (request, reply) {
        reply('Coming soon....... :)');
    }
})

server.register(require('inert'), (err) => {
    if (err) {
        throw err;
    }

    server.route({
        method: 'GET',
        path: '/{param*}',
        handler: {
            directory: {
            path: './',
            listing: true
            }
        }
    });

    server.route({
        method: 'GET',
        path: '/experiment/{param*}',
        handler: {
            directory: {
            path: 'experiment',
            listing: true
            }
        }
    });
});

{'fraction_non_alphanumeric': 0.17994269340974212, 'fraction_numerical': 0.0057306590257879654, 'mean_word_length': 1.5943536404160477, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3537906', 'n_tokens_mistral': 551, 'n_tokens_neox': 534, 'n_words': 110}