<filename>main.py
import logging
import time


from logging.config import dictConfig

from archeogitvsszz import utilities
from archeogitvsszz import Analyzer, CLI, Repository, Vulnerabilities


def _configure_logging(configuration):
    dictConfig(configuration['logging'])


if __name__ == '__main__':
    cli = CLI()
    arguments = cli.get_arguments()

    configuration = utilities.YAML.read(arguments.config_file)
    _configure_logging(configuration)
    logger = logging.getLogger('archeogitvsszz')

    repository = Repository(arguments.repository)
    vulnerabilities = Vulnerabilities(arguments.vulnerabilities)
    all_files = vulnerabilities.get_all_file_names()

    analyzer = Analyzer(vulnerabilities, repository, arguments.szz_depth)

    start = time.time()
    analyzer.analyze(arguments.output_file)
    elapsed = time.time() - start
    logger.info('Analysis took %.2f seconds', elapsed)

<filename>main.py
import logging
import time


from logging.config import dictConfig

from archeogitvsszz import utilities
from archeogitvsszz import Analyzer, CLI, Repository, Vulnerabilities


def _configure_logging(configuration):
    dictConfig(configuration['logging'])


if __name__ == '__main__':
    cli = CLI()
    arguments = cli.get_arguments()

    configuration = utilities.YAML.read(arguments.config_file)
    _configure_logging(configuration)
    logger = logging.getLogger('archeogitvsszz')

    repository = Repository(arguments.repository)
    vulnerabilities = Vulnerabilities(arguments.vulnerabilities)
    all_files = vulnerabilities.get_all_file_names()

    analyzer = Analyzer(vulnerabilities, repository, arguments.szz_depth)

    start = time.time()
    analyzer.analyze(arguments.output_file)
    elapsed = time.time() - start
    logger.info('Analysis took %.2f seconds', elapsed)
