<commit_before>#!/usr/bin/env python

# Stdlib
import argparse
import os
import sys
import time

# Third-party

# Local
from doekbase.data_api.sequence.assembly.api import AssemblyClientAPI

def test_client():
    ap = argparse.ArgumentParser()
    ap.add_argument('--ref', default='PrototypeReferenceGenomes/kb|g.166819_assembly', help='Object reference ID, e.g. 1019/4/1')
    ap.add_argument('--url', dest='url', default='http://localhost:9102',
                    metavar='URL', help='Remote server url '
                                         '(default=%(default)s)')
    args = ap.parse_args()

    token='';
    if os.has_key('KB_AUTH_TOKEN'):
        token = os.environ['KB_AUTH_TOKEN']

    api = AssemblyClientAPI(args.url, token, args.ref)

    print("Getting data..")

    t0 = time.time()<commit_msg>Look up correct key, doh<commit_after>#!/usr/bin/env python

# Stdlib
import argparse
import os
import sys
import time

# Third-party

# Local
from doekbase.data_api.sequence.assembly.api import AssemblyClientAPI

def test_client():
    ap = argparse.ArgumentParser()
    ap.add_argument('--ref', default='PrototypeReferenceGenomes/kb|g.166819_assembly', help='Object reference ID, e.g. 1019/4/1')
    ap.add_argument('--url', dest='url', default='http://localhost:9102',
                    metavar='URL', help='Remote server url '
                                         '(default=%(default)s)')
    args = ap.parse_args()

    token='';
    if os.environ.has_key('KB_AUTH_TOKEN'):
        token = os.environ['KB_AUTH_TOKEN']

    api = AssemblyClientAPI(args.url, token, args.ref)

    print("Getting data..")

    t0 = time.time()
{'fraction_non_alphanumeric': 0.1441550575408843, 'fraction_numerical': 0.02059357964869776, 'mean_word_length': 3.0097087378640777, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7364672', 'n_tokens_mistral': 551, 'n_tokens_neox': 525, 'n_words': 105}