<commit_before>import logging

from core.analytics import OneShotAnalytics


class QueryVirusTotal(OneShotAnalytics):

    settings = {
        "name": "QueryVirusTotal",
        "description": "Queries VT for a single hash, adding context to the element "
                       "and linking to other elements"
    }

    ACTS_ON = ["Hash"]

    @staticmethod
    def analyze(hash):
        logging.info("Querying hash {} on VT".format(hash))<commit_msg>Change logging level<commit_after>import logging

from core.analytics import OneShotAnalytics


class QueryVirusTotal(OneShotAnalytics):

    settings = {
        "name": "QueryVirusTotal",
        "description": "Queries VT for a single hash, adding context to the element "
                       "and linking to other elements"
    }

    ACTS_ON = ["Hash"]

    @staticmethod
    def analyze(hash):
        logging.warning("Querying hash {} on VT".format(hash))
{'fraction_non_alphanumeric': 0.09347826086956522, 'fraction_numerical': 0.0, 'mean_word_length': 2.8535564853556483, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3183122', 'n_tokens_mistral': 263, 'n_tokens_neox': 250, 'n_words': 75}