<commit_before>#author <NAME>
#author <NAME>
#licence : apache v2
from flask import Flask, request,Response
from pymongo import MongoClient, MongoReplicaSetClient
from pymongo.read_preferences import ReadPreference

import json
from bson.dbref import DBRef
from bson.json_util import dumps
from bson import ObjectId
import time
from bson.dbref import DBRef
from bson.json_util import dumps
from bson import ObjectId
import time
from pymongo import Connection
from bson import BSON
from bson import json_util
from bson.objectid import ObjectId

# for ceph command call
import subprocess

configfile = "/opt/inkscope/etc/inkscope.conf"


def load_conf():
    '''
        load the  configfile  an return  a json  objet
    '''
    datasource = open(configfile, "r")
    data = json.load(datasource)
    datasource.close
    return data


# get a field value from global conf
def ceph_conf_global(field):<commit_msg>Delete the redundent module import<commit_after>#author <NAME>
#author <NAME>
#licence : apache v2
from flask import Flask, request,Response
from pymongo import MongoClient, MongoReplicaSetClient
from pymongo.read_preferences import ReadPreference

from bson.dbref import DBRef
from bson.json_util import dumps
from bson import ObjectId
import time
from pymongo import Connection
from bson import BSON
from bson import json_util
from bson.objectid import ObjectId

# for ceph command call
import subprocess

configfile = "/opt/inkscope/etc/inkscope.conf"


def load_conf():
    '''
        load the  configfile  an return  a json  objet
    '''
    datasource = open(configfile, "r")
    data = json.load(datasource)
    datasource.close
    return data


# get a field value from global conf
def ceph_conf_global(field):
{'fraction_non_alphanumeric': 0.06001154068090017, 'fraction_numerical': 0.001154068090017311, 'mean_word_length': 4.470031545741325, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5698229', 'n_tokens_mistral': 543, 'n_tokens_neox': 531, 'n_words': 191}