<commit_before>from requests import Session, Response


class JolokiaResponse(Response):
    pass


class JolokiaSession(Session):
    """Wraps requests.Session"""

    def simple_post(self, url, data=None):

        resp = self.post(url, json=data)

        return resp.json()
<commit_msg>Added docstring to models<commit_after>from requests import Session, Response


class JolokiaResponse(Response):
    pass


class JolokiaSession(Session):
    """Wraps requests.Session"""

    def simple_post(self, url, data=None):
        """Posts to url and returns de-serialized response"""

        resp = self.post(url, json=data)

        return resp.json()

{'fraction_non_alphanumeric': 0.10856269113149847, 'fraction_numerical': 0.0, 'mean_word_length': 3.6785714285714284, 'pattern_counts': {'":': 0, '<': 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': '2082074', 'n_tokens_mistral': 200, 'n_tokens_neox': 186, 'n_words': 52}