<commit_before>__author__ = 'fmoscato'

import cgi
from datetime import datetime
import time
import os.path
import argparse

import pymongo
import bottle


import publicationDAO
import sessionDAO
import userDAO
from admin import admin_app
from metrics import metric_app
from temporaryPublications import temporary_app
import constants as c
import pubUtilities as utilities
import PDF
import validatePublications
import authentication as auth


#app = bottle.default_app()
app = bottle.app()

app.mount('/admin/', admin_app)
app.mount('/metrics', metric_app)
app.mount('/tmp_publications', temporary_app)

connection_string = "mongodb://localhost"
connection = pymongo.MongoClient(connection_string)
database = connection.publication

publication = publicationDAO.PublicationDAO(database)
users = userDAO.UserDAO(database)
sessions = sessionDAO.SessionDAO(database)

valide_user = auth.authenticator_user(sessions)
DOC_ROOT, TMP_DIR = '', ''


#this route the static files
@bottle.route('/static/:filename#.*#')
def server_static(filename):
<commit_msg>removed connection string  details<commit_after>__author__ = 'fmoscato'

import cgi
from datetime import datetime
import time
import os.path
import argparse

import pymongo
import bottle


import publicationDAO
import sessionDAO
import userDAO
from admin import admin_app
from metrics import metric_app
from temporaryPublications import temporary_app
import constants as c
import pubUtilities as utilities
import PDF
import validatePublications
import authentication as auth


#app = bottle.default_app()
app = bottle.app()

app.mount('/admin/', admin_app)
app.mount('/metrics', metric_app)
app.mount('/tmp_publications', temporary_app)

connection_string = ""
connection = pymongo.MongoClient(connection_string)
database = connection.publication

publication = publicationDAO.PublicationDAO(database)
users = userDAO.UserDAO(database)
sessions = sessionDAO.SessionDAO(database)

valide_user = auth.authenticator_user(sessions)
DOC_ROOT, TMP_DIR = '', ''


#this route the static files
@bottle.route('/static/:filename#.*#')
def server_static(filename):

{'fraction_non_alphanumeric': 0.08404558404558404, 'fraction_numerical': 0.0, 'mean_word_length': 6.83271375464684, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4310873', 'n_tokens_mistral': 625, 'n_tokens_neox': 614, 'n_words': 174}