<commit_before>#! /usr/bin/env python2.7

import modules.apis.api_base as api

class SRcomAPI(api.API):

    def __init(self, session = None):
        super(SRcomAPI, self).__init__("http://www.speedrun.com/api/v1", session)

    def get_user_pbs(self, user, embeds = "", **kwargs):
        # Embeds should be list of parameters
        endpoint = "/users/{0}/personal-bests?embed={1}".format(user, ",".join(embeds))
        success, response = self.get(endpoint, **kwargs)
        return success, response<commit_msg>Fix forgotten __ for init<commit_after>#! /usr/bin/env python2.7

import modules.apis.api_base as api

class SRcomAPI(api.API):

    def __init__(self, session = None):
        super(SRcomAPI, self).__init__("http://www.speedrun.com/api/v1", session)

    def get_user_pbs(self, user, embeds = "", **kwargs):
        # Embeds should be list of parameters
        endpoint = "/users/{0}/personal-bests?embed={1}".format(user, ",".join(embeds))
        success, response = self.get(endpoint, **kwargs)
        return success, response
{'fraction_non_alphanumeric': 0.1523809523809524, 'fraction_numerical': 0.009523809523809525, 'mean_word_length': 3.472340425531915, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4474842', 'n_tokens_mistral': 343, 'n_tokens_neox': 338, 'n_words': 76}