<commit_before>import json, requests

class EthereumJSON:

    def __init__(self):
        self.id = 0

    def _getId(self):
        self.id += 1
        return self.id

    def sendJSONRequest(self, method, *params):
        data = json.dumps({"jsonrpc":"2.0", "method":method, "params":params, "id":self._getId()})
        response = requests.post("http://localhost:1337", data=data)
        jsondata = response.json()
        if 'result' in jsondata:
            return jsondata['result']
        else:
            return jsondata['error']<commit_msg>Corrected ethereum json rpc address<commit_after>import json, requests

class EthereumJSON:

    def __init__(self):
        self.id = 0

    def _getId(self):
        self.id += 1
        return self.id

    def sendJSONRequest(self, method, *params):
        data = json.dumps({"jsonrpc":"2.0", "method":method, "params":params, "id":self._getId()})
        response = requests.post("http://localhost:8080", data=data)
        jsondata = response.json()
        if 'result' in jsondata:
            return jsondata['result']
        else:
            return jsondata['error']
{'fraction_non_alphanumeric': 0.13780918727915195, 'fraction_numerical': 0.014134275618374558, 'mean_word_length': 2.5741324921135647, 'pattern_counts': {'":': 8, '<': 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': '2589409', 'n_tokens_mistral': 350, 'n_tokens_neox': 341, 'n_words': 79}