<commit_before>
import joi from 'joi';
import Glue from 'glue';

import HapiMailer from 'hapi-mailer';
import HapiAuthBasic from 'hapi-auth-basic';
import HapiAuthJwt from 'hapi-auth-jwt';
import archimedesPlugin from './plugins/archimedes';
import eurekaPlugin from './plugins/eureka';

// var exampleConfig = {
//     port: 5000,
//     log: ['warn'],
//     app: {
//         secret: 'ssh',
//         email: '<EMAIL>',
//         clientRootUrl: 'http://www.project.com',
//         apiRootPrefix: '/api/1'
//     },
//     mailer: {
//         // hapi-mailer config
//     },
//     database: {
//         adapter: {
//             type: 'rdf',
//             dialect: 'virtuoso',
//             graphURI: 'http://test.org'
//         },
//         host: '192.168.99.100',
//         schemas: requireDir('./schemas'),
//     },
//     resources: requireDir('./resources')
// };

var eurekaConfigValidator = {
    name: joi.string(),
    port: joi.number().required(),
    log: [joi.string(), joi.array(joi.string())],
    auth: joi.boolean(),
    app: joi.object().keys({
        secret: joi.string().required(),
        apiRootPrefix: joi.string().required(),
        email: joi.string().email().required(),
        clientRootUrl: joi.string().uri().required()
    }),
    database: joi.object().keys({
        config: joi.object().keys({
            // type: joi.string().required(),
            // dialect: joi.string(),
            // host: joi.string().ip().default('localhost'),
            graphUri: joi.string().uri().required(),
            endpoint: joi.string().uri().required()
        }).required(),
        schemas: joi.object()
    }),
    fileUploads: joi.object().keys({<commit_msg>add host info in config<commit_after>
import joi from 'joi';
import Glue from 'glue';

import HapiMailer from 'hapi-mailer';
import HapiAuthBasic from 'hapi-auth-basic';
import HapiAuthJwt from 'hapi-auth-jwt';
import archimedesPlugin from './plugins/archimedes';
import eurekaPlugin from './plugins/eureka';

// var exampleConfig = {
//     port: 5000,
//     log: ['warn'],
//     app: {
//         secret: 'ssh',
//         email: '<EMAIL>',
//         clientRootUrl: 'http://www.project.com',
//         apiRootPrefix: '/api/1'
//     },
//     mailer: {
//         // hapi-mailer config
//     },
//     database: {
//         adapter: {
//             type: 'rdf',
//             dialect: 'virtuoso',
//             graphURI: 'http://test.org'
//         },
//         host: '192.168.99.100',
//         schemas: requireDir('./schemas'),
//     },
//     resources: requireDir('./resources')
// };

var eurekaConfigValidator = {
    name: joi.string(),
    host: joi.string().required(),
    port: joi.number().required(),
    log: [joi.string(), joi.array(joi.string())],
    auth: joi.boolean(),
    app: joi.object().keys({
        secret: joi.string().required(),
        apiRootPrefix: joi.string().required(),
        email: joi.string().email().required(),
        clientRootUrl: joi.string().uri().required()
    }),
    database: joi.object().keys({
        config: joi.object().keys({
            // type: joi.string().required(),
            // dialect: joi.string(),
            // host: joi.string().ip().default('localhost'),
            graphUri: joi.string().uri().required(),
            endpoint: joi.string().uri().required()
        }).required(),
        schemas: joi.object()
    }),
    fileUploads: joi.object().keys({
{'fraction_non_alphanumeric': 0.19994204578383076, 'fraction_numerical': 0.00927267458707621, 'mean_word_length': 2.0360598065083555, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '3982408', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1083, 'n_words': 207}