<commit_before>#! /usr/bin/python3
# -*- coding: utf8 -*-
# The global setting file for nv-middlebox.

__author__ = "<NAME>"
__copyright__ = "Copyright (C) The neoview team."
__license__ = "GNU Lesser General Public License"
__version__ = "1.0"

import logging

#nv-middle-box common settings
NV_MID_BOX_APP_NAME = "nv-middle-box"
NV_MID_BOX_RUN_DIR = "/usr/local/var/run/nv-middlebox"
# Middlebox PID for the daemon.
NV_MID_BOX_PID = "/usr/local/var/run/nv-middlebox/nv_middlebox.pid"
#Middle box camera streaming file Directory
NV_MID_BOX_CAM_STREAM_DIR = "/tmp/camera"

# The size of file generated by camera thread to be valid.
# Any file less than doesnt copy to the webserver
NV_CAM_VALID_FILE_SIZE = 10000000   # 10MB
# nv-middle-box logging Settings
NV_DEFAULT_LOG_LEVEL = logging.DEBUG
#NV_LOG_FILE = "/usr/local/var/log/nv-middlebox/nv_middlebox.log"
NV_LOG_FILE = "/tmp/nv_middlebox.log"
NV_LOG_FORMAT = "%(asctime)s - %(levelname)s - %(funcName)s - %(message)s"


#nv-middlebox db settings
NVDB_SQLALCHEMY_DB = 'sqlite:///:memory:' #Inmemory DB

#NVDB_SQLALCHEMY_DB = 'sqlite:///nvdb.db' #Relative path db
#NVDB_SQLALCHEMY_DB = 'sqlite:////tmp/nvdb.db' #absolute path db

#nv-middlebox database logging settings.
NVDB_DEFAULT_LOG_LEVEL = logging.DEBUG<commit_msg>default file size of video chunk is 4MB than 10MB<commit_after>#! /usr/bin/python3
# -*- coding: utf8 -*-
# The global setting file for nv-middlebox.

__author__ = "<NAME>"
__copyright__ = "Copyright (C) The neoview team."
__license__ = "GNU Lesser General Public License"
__version__ = "1.0"

import logging

#nv-middle-box common settings
NV_MID_BOX_APP_NAME = "nv-middle-box"
NV_MID_BOX_RUN_DIR = "/usr/local/var/run/nv-middlebox"
# Middlebox PID for the daemon.
NV_MID_BOX_PID = "/usr/local/var/run/nv-middlebox/nv_middlebox.pid"
#Middle box camera streaming file Directory
NV_MID_BOX_CAM_STREAM_DIR = "/tmp/camera"

# The size of file generated by camera thread to be valid.
# Any file less than doesnt copy to the webserver
NV_CAM_VALID_FILE_SIZE = 4000000   # 4MB
# nv-middle-box logging Settings
NV_DEFAULT_LOG_LEVEL = logging.DEBUG
#NV_LOG_FILE = "/usr/local/var/log/nv-middlebox/nv_middlebox.log"
NV_LOG_FILE = "/tmp/nv_middlebox.log"
NV_LOG_FORMAT = "%(asctime)s - %(levelname)s - %(funcName)s - %(message)s"


#nv-middlebox db settings
NVDB_SQLALCHEMY_DB = 'sqlite:///:memory:' #Inmemory DB

#NVDB_SQLALCHEMY_DB = 'sqlite:///nvdb.db' #Relative path db
#NVDB_SQLALCHEMY_DB = 'sqlite:////tmp/nvdb.db' #absolute path db

#nv-middlebox database logging settings.
NVDB_DEFAULT_LOG_LEVEL = logging.DEBUG
{'fraction_non_alphanumeric': 0.12229102167182662, 'fraction_numerical': 0.011222910216718266, 'mean_word_length': 4.875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '7412686', 'n_tokens_mistral': 985, 'n_tokens_neox': 957, 'n_words': 228}