<commit_before>/*
 * (C) Copyright 2016 <NAME>.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
var c = {};
c.version = {};
c.net = {};
c.mongo = {};
c.fs = {};
var env = process.env;

// Information about muncher
c.version.major  = 0;
c.version.minor  = 1;
c.version.bug    = 0;
c.version.api    = 1;

// network & database
c.net.port         = env.MUNCHER_PORT || 8080;
c.mongo.location   = env.MUNCHER_MONGODB || 'mongodb://localhost/';
c.mongo.collection = env.MUNCHER_MONGODB_COLLECTION || 'muncher';
c.mongo.creds      = {};

// fs paths
c.fs.base       = env.MUNCHER_BASEPATH || '/tmp/muncher/';
c.fs.incoming   = c.fs.base + 'incoming/';
c.fs.compendium = c.fs.base + 'compendium/';
c.fs.job        = c.fs.base + 'job/';
c.fs.delete_inc = true;

// api key for uploading new compenidum
c.api_key       = env.MUNCHER_APIKEY || 'CHANGE_ME';<commit_msg>add trailing slash for misconfigured mongodb strings<commit_after>/*
 * (C) Copyright 2016 <NAME>.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
var c = {};
c.version = {};
c.net = {};
c.mongo = {};
c.fs = {};
var env = process.env;

// Information about muncher
c.version.major  = 0;
c.version.minor  = 1;
c.version.bug    = 0;
c.version.api    = 1;

// network & database
c.net.port         = env.MUNCHER_PORT || 8080;
c.mongo.location   = env.MUNCHER_MONGODB || 'mongodb://localhost/';
c.mongo.collection = env.MUNCHER_MONGODB_COLLECTION || 'muncher';
c.mongo.creds      = {};

// fix mongo location if trailing slash was omitted
if (c.mongo.location[c.mongo.location-1] !== '/') {
  c.mongo.location += '/';
}

// fs paths
c.fs.base       = env.MUNCHER_BASEPATH || '/tmp/muncher/';
c.fs.incoming   = c.fs.base + 'incoming/';
c.fs.compendium = c.fs.base + 'compendium/';
c.fs.job        = c.fs.base + 'job/';
c.fs.delete_inc = true;

// api key for uploading new compenidum
c.api_key       = env.MUNCHER_APIKEY || 'CHANGE_ME';
{'fraction_non_alphanumeric': 0.13992473486144372, 'fraction_numerical': 0.01128977078344167, 'mean_word_length': 3.1241184767277854, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3343685', 'n_tokens_mistral': 1032, 'n_tokens_neox': 993, 'n_words': 296}