<commit_before>"""
"""

import drest

APPID = '<KEY>'
RESTKEY = '<KEY>'


HEADERS = {
    'X-Bmob-Application-Id': APPID,
    'X-Bmob-REST-API-Key': RESTKEY,
    'Content-Type': 'application/json',
}

CLASSES_URL = 'https://api.bmob.cn/1/classes/'
table_api = drest.API(CLASSES_URL)


def get_records(table):
    """Path use "/path/" format
    """
    path = '/%s/' % table
    res = table_api.make_request('GET', path, headers=HEADERS)
    print(res)
    return res.data['results']


def new_record(table, params):
    """
    """
    table_api = drest.API("https://api.bmob.cn/1/classes")
    # path = '/%s/' % table
    path = '/GameScore/'
    res = table_api.make_request('POST', path, headers=None, params=None)
    return res


if __name__ == '__main__':
    import pdb; pdb.set_trace()
    new_record('GameScore', {'score': 1000, })
    <commit_msg>Requests<commit_after>"""
"""

import requests
{'fraction_non_alphanumeric': 0.1902654867256637, 'fraction_numerical': 0.00663716814159292, 'mean_word_length': 3.3095238095238093, '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': '1294235', 'n_tokens_mistral': 348, 'n_tokens_neox': 332, 'n_words': 63}