<commit_before># script_utils_api.py

import requests
import json
import logging
import urlparse

logging.basicConfig(level=logging.DEBUG)

class ScryptureAPI():
    def __init__(self,
             base_url='http://localhost:5000',
             username=None,
             password=<PASSWORD>,
             interactive_password=False):
        self.password = password
        self.username = username
        if interactive_password:
            import getpass
            self.password = get<PASSWORD>()
        self.BASE_URL = base_url
        self.api_doc = self.get_api_docs()
        self.uris = {}
        self.api_funcs = {}<commit_msg>Changed to point at scrypture.net by default<commit_after># script_utils_api.py

import requests
import json
import logging
import urlparse

logging.basicConfig(level=logging.DEBUG)

class ScryptureAPI():
    def __init__(self,
             base_url='http://www.scrypture.net/api/v1/',
             username=None,
             password=<PASSWORD>,
             interactive_password=False):
        self.password = password
        self.username = username
        if interactive_password:
            import getpass
            self.password = <PASSWORD>()
        self.BASE_URL = base_url
        self.api_doc = self.get_api_docs()
        self.uris = {}
        self.api_funcs = {}
{'fraction_non_alphanumeric': 0.09118311981914091, 'fraction_numerical': 0.0037678975131876413, 'mean_word_length': 2.295285359801489, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '6153171', 'n_tokens_mistral': 373, 'n_tokens_neox': 371, 'n_words': 76}