<commit_before># -*- config:utf-8 -*-

import os
import logging
from datetime import timedelta

project_name = "nanomine"
import importer

import autonomic
import agents.nlp as nlp
import rdflib
from datetime import datetime

# Set to be custom for your project
LOD_PREFIX = 'http://localhost'
#os.getenv('lod_prefix') if os.getenv('lod_prefix') else 'http://hbgd.tw.rpi.edu'

skos = rdflib.Namespace("http://www.w3.org/2004/02/skos/core#")

from nanomine.agent import *

# base config class; extend it to your needs.
Config = dict(
    # use DEBUG mode?
    DEBUG = False,

    site_name = "Nanomine",

    root_path = '/apps/satoru',

    # use TESTING mode?
    TESTING = False,

    # use server x-sendfile?
    USE_X_SENDFILE = False,

    WTF_CSRF_ENABLED = True,
    SECRET_KEY = "<KEY>",

    nanopub_archive = {
        'depot.storage_path' : "/apps/NanomineVizNanopub/nanopublications",
    },

    file_archive = {
        'depot.storage_path' : '/apps/NanomineViz/data',
        'cache_max_age' : 3600*24*7,
    },
    vocab_file = "/apps/NanomineViz/vocab.ttl",
    SATORU_TEMPLATE_DIR = [
        "/apps/NanomineViz/templates",
    ],
    SATORU_CDN_DIR = "/apps/NanomineViz/static",

    # LOGGING
    LOGGER_NAME = "%s_log" % project_name,
    LOG_FILENAME = "/var/log/%s/output-%s.log" % (project_name,str(datetime.now()).replace(' ','_')),
    LOG_LEVEL = logging.INFO,
    LOG_FORMAT = "%(asctime)s %(levelname)s\t: %(message)s", # used by logging.Formatter

    PERMANENT_SESSION_LIFETIME = timedelta(days=7),

    # EMAIL CONFIGURATION
    ## MAIL_SERVER = "",
    ## MAIL_PORT = 587,
    ## MAIL_USE_TLS = True,
    ## MAIL_USE_SSL = False,
    ## MAIL_DEBUG = False,
    ## MAIL_USERNAME = '',
    ## MAIL_PASSWORD = '',
    ## DEFAULT_MAIL_SENDER = "rui <<EMAIL>>",

    # see example/ for reference
    # ex: BLUEPRINTS = ['blog']  # where app is a Blueprint instance
    # ex: BLUEPRINTS = [('blog', {'url_prefix': '/myblog'})]  # where app is a Blueprint instance
    BLUEPRINTS = [],

    lod_prefix = LOD_PREFIX,
    SECURITY_EMAIL_SENDER = "rui <<EMAIL>>",<commit_msg>replace satoru with whyis<commit_after># -*- config:utf-8 -*-

import os
import logging
from datetime import timedelta

project_name = "nanomine"
import importer

import autonomic
import agents.nlp as nlp
import rdflib
from datetime import datetime

# Set to be custom for your project
LOD_PREFIX = 'http://localhost'
#os.getenv('lod_prefix') if os.getenv('lod_prefix') else 'http://hbgd.tw.rpi.edu'

skos = rdflib.Namespace("http://www.w3.org/2004/02/skos/core#")

from nanomine.agent import *

# base config class; extend it to your needs.
Config = dict(
    # use DEBUG mode?
    DEBUG = False,

    site_name = "Nanomine",

    root_path = '/apps/whyis',

    # use TESTING mode?
    TESTING = False,

    # use server x-sendfile?
    USE_X_SENDFILE = False,

    WTF_CSRF_ENABLED = True,
    SECRET_KEY = "<KEY>",

    nanopub_archive = {
        'depot.storage_path' : "/apps/NanomineVizNanopub/nanopublications",
    },

    file_archive = {
        'depot.storage_path' : '/apps/NanomineViz/data',
        'cache_max_age' : 3600*24*7,
    },
    vocab_file = "/apps/NanomineViz/vocab.ttl",
    WHYIS_TEMPLATE_DIR = [
        "/apps/NanomineViz/templates",
    ],
    WHYIS_CDN_DIR = "/apps/NanomineViz/static",

    # LOGGING
    LOGGER_NAME = "%s_log" % project_name,
    LOG_FILENAME = "/var/log/%s/output-%s.log" % (project_name,str(datetime.now()).replace(' ','_')),
    LOG_LEVEL = logging.INFO,
    LOG_FORMAT = "%(asctime)s %(levelname)s\t: %(message)s", # used by logging.Formatter

    PERMANENT_SESSION_LIFETIME = timedelta(days=7),

    # EMAIL CONFIGURATION
    ## MAIL_SERVER = "",
    ## MAIL_PORT = 587,
    ## MAIL_USE_TLS = True,
    ## MAIL_USE_SSL = False,
    ## MAIL_DEBUG = False,
    ## MAIL_USERNAME = '',
    ## MAIL_PASSWORD = '',
    ## DEFAULT_MAIL_SENDER = "rui <<EMAIL>>",

    # see example/ for reference
    # ex: BLUEPRINTS = ['blog']  # where app is a Blueprint instance
    # ex: BLUEPRINTS = [('blog', {'url_prefix': '/myblog'})]  # where app is a Blueprint instance
    BLUEPRINTS = [],

    lod_prefix = LOD_PREFIX,
    SECURITY_EMAIL_SENDER = "rui <<EMAIL>>",
{'fraction_non_alphanumeric': 0.144589774078478, 'fraction_numerical': 0.009036860879904875, 'mean_word_length': 3.206, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '1934742', 'n_tokens_mistral': 1626, 'n_tokens_neox': 1567, 'n_words': 314}