<commit_before># -*- coding: utf-8 -*-

from module.common.json_layer import json_loads
from module.plugins.Account import Account


class HighWayMe.py(Account):
    __name__    = "HighWayMe.py"
    __type__    = "account"
    __version__ = "0.01"

    __description__ = """High-Way.Me account plugin"""
    __license__     = "GPLv3"
    __authors__     = [("EvolutionClip", "<EMAIL>")]


    def loadAccountInfo(self, user, req):
        premium     = False
        validuntil  = -1
        trafficleft = None

        json_data = req.load('https://high-way.me/api.php?user')

        self.logDebug("JSON data: %s" % json_data)

        json_data = json_loads(json_data)<commit_msg>Fixed Syntax Error<commit_after># -*- coding: utf-8 -*-

from module.common.json_layer import json_loads
from module.plugins.Account import Account


class HighWayMe(Account):
    __name__    = "HighWayMe.py"
    __type__    = "account"
    __version__ = "0.01"

    __description__ = """High-Way.Me account plugin"""
    __license__     = "GPLv3"
    __authors__     = [("EvolutionClip", "<EMAIL>")]


    def loadAccountInfo(self, user, req):
        premium     = False
        validuntil  = -1
        trafficleft = None

        json_data = req.load('https://high-way.me/api.php?user')

        self.logDebug("JSON data: %s" % json_data)

        json_data = json_loads(json_data)
{'fraction_non_alphanumeric': 0.12938596491228072, 'fraction_numerical': 0.008771929824561403, 'mean_word_length': 2.660427807486631, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1541490', 'n_tokens_mistral': 464, 'n_tokens_neox': 446, 'n_words': 93}