def __init__(self):
     """Initialize this class, load Kronos dependency list from the S3."""
     self.eco_to_kronos_dependency_dict = load_eco_to_kronos_dependency_dict_s3(
         bucket_name=AWS_BUCKET_NAME, additional_path=KRONOS_MODEL_PATH)
     self.search_set = set()
     self.search_set_length = 0
예제 #2
0
setup_logging(app)

CORS(app)

global user_eco_kronos_dict
global eco_to_kronos_dependency_dict
global scoring_status
global all_package_list_obj

hash_dict = dict()

if KRONOS_SCORING_REGION != "":
    app.user_eco_kronos_dict = load_user_eco_to_kronos_model_dict_s3(
        bucket_name=AWS_BUCKET_NAME, additional_path=KRONOS_MODEL_PATH)

    app.eco_to_kronos_dependency_dict = load_eco_to_kronos_dependency_dict_s3(
        bucket_name=AWS_BUCKET_NAME, additional_path=KRONOS_MODEL_PATH)

    app.all_package_list_obj = RecommendationValidator.load_package_list_s3(
        AWS_BUCKET_NAME, KRONOS_MODEL_PATH)

    app.package_frequency_dict = load_package_frequency_dict_s3(
        bucket_name=AWS_BUCKET_NAME, additional_path=KRONOS_MODEL_PATH)

    app.scoring_status = True

    app.logger.info("The total manifest file for this ecosystem are: %d" %
                    app.all_package_list_obj.get_all_list_package_length())
else:
    app.scoring_status = False

예제 #3
0
 def __init__(self):
     self.eco_to_kronos_dependency_dict = load_eco_to_kronos_dependency_dict_s3(
         bucket_name=AWS_BUCKET_NAME, additional_path=KRONOS_MODEL_PATH)
     self.search_set = set()
     self.search_set_length = 0