bugfinder.settings

Common configuration keys for the bugfinder package.

bugfinder.settings.DATASET_DIRS = {'embeddings': 'embeddings', 'feats': 'features', 'joern': 'joern.db', 'models': 'models', 'neo4j': 'neo4j_v3.db'}

Dataset directory names used by the various scripts.

Type

dict

bugfinder.settings.FEATURES_FILE = 'features.csv'

Name of the CSV file containing the features that can be used for training purposes.

Type

str

bugfinder.settings.LOGGER = <Logger app (DEBUG)>

Main Logger instance used throughout the application.

Type

logging.Logger

bugfinder.settings.LOGGER_CONFIG = {'formatters': {'default': {'datefmt': '%Y-%m-%d %H:%M:%S', 'format': '[%(asctime)s][%(levelname)s] %(message)s'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'default', 'stream': 'ext://sys.stdout'}, 'file': {'class': 'logging.handlers.RotatingFileHandler', 'filename': '/data/projects/ai-bugfinder/bugfinder/../debug.log', 'formatter': 'default'}}, 'loggers': {'app': {'handlers': ['console', 'file'], 'level': 'DEBUG', 'propagate': 'no'}}, 'version': 1}

Logging configuration for the project.

Type

dict

bugfinder.settings.NEO4J_DEFAULT_TIMEOUT = '2h'

Default timeout for Neo4J queries.

Type

str

bugfinder.settings.NEO4J_V3_CORES = 24

Number of CPU cores allowed to be used by Neo4J. Defaults to POOL_SIZE.

Type

int

bugfinder.settings.NEO4J_V3_MEMORY = '4G'

Memory allocated to Neo4J databases.

Type

str

bugfinder.settings.POOL_SIZE = 24

Number of CPU cores that can be used for multiprocessing tasks.

Type

int

bugfinder.settings.ROOT_DIR = '/data/projects/ai-bugfinder/bugfinder/..'

Project root directory.

Type

str

bugfinder.settings.SUMMARY_FILE = 'summary.json'

Name of the file storing dataset processing history and statistics.

Type

str