<commit_before>"""
Simple, top-level functions for working with the Open311 API.
"""

import os
from .cities import find_info
from .core import Three
from simplejson import dumps


def key(key=None):
    """
    Save your API key to the global environment.

    >>> three.api_key('my_api_key')<commit_msg>Reorganize imports<commit_after>"""
Simple, top-level functions for working with the Open311 API.
"""

import os
from simplejson import dumps

from .cities import find_info
from .core import Three


def key(key=None):
    """
    Save your API key to the global environment.

    >>> three.api_key('my_api_key')
{'fraction_non_alphanumeric': 0.09740259740259741, 'fraction_numerical': 0.00974025974025974, 'mean_word_length': 4.099173553719008, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5122630', 'n_tokens_mistral': 193, 'n_tokens_neox': 184, 'n_words': 70}