<commit_before>import logging
import requests
from typing import List, Union
from functools import lru_cache
import xml.etree.ElementTree as ET
from indra.resources import get_resource_path
from indra.util import read_unicode_csv


pubchem_url = 'https://pubchem.ncbi.nlm.nih.gov/rest/pug'
eutils_url = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?'

logger = logging.getLogger(__name__)


@lru_cache(maxsize=5000)
def get_inchi_key(pubchem_cid):
    """Return the InChIKey for a given PubChem CID.

    Parameters
    ----------
    pubchem_cid : str
        The PubChem CID whose InChIKey should be returned.

    Returns
    -------
    str<commit_msg>removed eutils url<commit_after>import logging
import requests
from typing import List, Union
from functools import lru_cache
import xml.etree.ElementTree as ET
from indra.resources import get_resource_path
from indra.util import read_unicode_csv


pubchem_url = 'https://pubchem.ncbi.nlm.nih.gov/rest/pug'

logger = logging.getLogger(__name__)


@lru_cache(maxsize=5000)
def get_inchi_key(pubchem_cid):
    """Return the InChIKey for a given PubChem CID.

    Parameters
    ----------
    pubchem_cid : str
        The PubChem CID whose InChIKey should be returned.

    Returns
    -------
    str
{'fraction_non_alphanumeric': 0.09692671394799054, 'fraction_numerical': 0.006304176516942475, 'mean_word_length': 3.5357142857142856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '798962', 'n_tokens_mistral': 435, 'n_tokens_neox': 410, 'n_words': 109}