<commit_before>from indra.databases import biolookup_client


def test_lookup_curie():
    curie = 'pubchem.compound:40976'
    res = biolookup_client.lookup_curie(curie)
    assert res['name'] == '(17R)-13-ethyl-17-ethynyl-17-hydroxy-11-' \
        'methylidene-2,6,7,8,9,10,12,14,15,16-decahydro-1H-' \
        'cyclopenta[a]phenanthren-3-one', res


def test_lookup():
    res = biolookup_client.lookup('FPLX', 'ERK')
    assert res['name'] == 'ERK', res
<commit_msg>Change biolookup test to work around service bug<commit_after>from indra.databases import biolookup_client


def test_lookup_curie():
    curie = 'pubchem.compound:40976'
    res = biolookup_client.lookup_curie(curie)
    assert res['name'] == '(17R)-13-ethyl-17-ethynyl-17-hydroxy-11-' \
        'methylidene-2,6,7,8,9,10,12,14,15,16-decahydro-1H-' \
        'cyclopenta[a]phenanthren-3-one', res


def test_lookup():
    res = biolookup_client.lookup('HGNC', '1097')
    assert res['name'] == 'BRAF', res

{'fraction_non_alphanumeric': 0.1617195496417605, 'fraction_numerical': 0.06960081883316274, 'mean_word_length': 4.09375, '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': '4921593', 'n_tokens_mistral': 440, 'n_tokens_neox': 387, 'n_words': 57}