<commit_before>import os
import sys
import base64
from urllib2 import urlopen
from urllib2 import Request
from urllib2 import HTTPError
from urllib import urlencode
from exceptions import Exception
from email.mime.multipart import MIMEMultipart

from email.mime.base import MIMEBase
from email.mime.application  import MIMEApplication

from email.encoders import encode_noop

from astrometry.net.api_util import json2python, python2json

class MalformedResponse(Exception):
    pass
class RequestError(Exception):
    pass

class Client(object):

    def __init__(self,
                 apiurl = 'http://oven.cosmo.fas.nyu.edu:9002/api/'):
        self.session = None
        self.apiurl = apiurl<commit_msg>client: use own api_util; and nova URL<commit_after>import os
import sys
import base64
from urllib2 import urlopen
from urllib2 import Request
from urllib2 import HTTPError
from urllib import urlencode
from exceptions import Exception
from email.mime.multipart import MIMEMultipart

from email.mime.base import MIMEBase
from email.mime.application  import MIMEApplication

from email.encoders import encode_noop

from api_util import json2python, python2json

class MalformedResponse(Exception):
    pass
class RequestError(Exception):
    pass

class Client(object):

    def __init__(self,
                 apiurl = 'http://nova.astrometry.net/api/'):
        self.session = None
        self.apiurl = apiurl
{'fraction_non_alphanumeric': 0.05853314527503526, 'fraction_numerical': 0.012693935119887164, 'mean_word_length': 4.16, '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': '3583986', 'n_tokens_mistral': 421, 'n_tokens_neox': 414, 'n_words': 131}