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

import datetime
import hashlib
import time

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


class NoPremiumPl(Account):
    __name__    = "NoPremiumPl"
    __type__    = "account"
    __version__ = "0.03"
    __status__  = "testing"

    __description__ = "NoPremium.pl account plugin"
    __license__     = "GPLv3"
    __authors__     = [("goddie", "<EMAIL>")]


    API_URL   = "http://crypt.nopremium.pl"
    API_QUERY = {'site'    : "nopremium",
                 'username': ""         ,
                 'password': ""         ,
                 'output'  : "json"     ,
                 'loc'     : "1"        ,
                 'info'    : "1"        }

    _req = None
    _usr = None
    _pwd = None


    def parse_info(self, name, req):
        self._req = req
        try:
            result = json_loads(self.run_auth_query())
        except Exception:<commit_msg>fix NoPremiumPl account parse_info method signature<commit_after># -*- coding: utf-8 -*-

import datetime
import hashlib
import time

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


class NoPremiumPl(Account):
    __name__    = "NoPremiumPl"
    __type__    = "account"
    __version__ = "0.03"
    __status__  = "testing"

    __description__ = "NoPremium.pl account plugin"
    __license__     = "GPLv3"
    __authors__     = [("goddie", "<EMAIL>")]


    API_URL   = "http://crypt.nopremium.pl"
    API_QUERY = {'site'    : "nopremium",
                 'username': ""         ,
                 'password': ""         ,
                 'output'  : "json"     ,
                 'loc'     : "1"        ,
                 'info'    : "1"        }

    _req = None
    _usr = None
    _pwd = None


    def parse_info(self, user, password, data, req):
        self._req = req
        try:
            result = json_loads(self.run_auth_query())
        except Exception:
{'fraction_non_alphanumeric': 0.11723446893787576, 'fraction_numerical': 0.0070140280561122245, 'mean_word_length': 1.7813370473537604, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6598362', 'n_tokens_mistral': 648, 'n_tokens_neox': 622, 'n_words': 138}