<commit_before>#!/usr/bin/env python
from __future__ import print_function
from __future__ import unicode_literals

import argparse
import copy
import json
import os
import random
import requests
import sys
import time
import threading

def get(url, **kwargs):
    r = requests.get(url, headers={'User-Agent': 'testnet-ripe-anchors.py'}, **kwargs)
    r.raise_for_status()
    return json.loads(r.content)

class Anchor(object):

    # Our ID<commit_msg>Fix JSON parsing on Python 3.<commit_after>#!/usr/bin/env python
from __future__ import print_function
from __future__ import unicode_literals

import argparse
import copy
import json
import os
import random
import requests
import sys
import time
import threading

def get(url, **kwargs):
    r = requests.get(url, headers={'User-Agent': 'testnet-ripe-anchors.py'}, **kwargs)
    r.raise_for_status()
    return json.loads(r.text)

class Anchor(object):

    # Our ID
{'fraction_non_alphanumeric': 0.0988056460369164, 'fraction_numerical': 0.0010857763300760044, 'mean_word_length': 4.872611464968153, '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': '5360805', 'n_tokens_mistral': 294, 'n_tokens_neox': 289, 'n_words': 90}