<commit_before>"""Meta data for autocomplete."""


try:
    from collections import OrderedDict
except ImportError:  # For Python 2.6, nocover
    from .ordereddict import OrderedDict

from . import options as opt


ROOT_COMMANDS = OrderedDict([
    ('cd', 'Change URL/path'),
    ('curl', 'Preview curl command'),
    ('exit', 'Exit HTTP Prompt'),
    ('help', 'List commands, actions, and HTTPie options'),
    ('httpie', 'Preview HTTPie command'),
    ('rm *', 'Remove all options and parameters'),
    ('rm -b', 'Remove body parameter'),
    ('rm -h', 'Remove header'),
    ('rm -o', 'Remove HTTPie option'),
    ('rm -q', 'Remove querystring parameter'),
])

ACTIONS = OrderedDict([
    ('delete', 'DELETE request'),
    ('get', 'GET request'),
    ('head', 'HEAD request'),
    ('patch', 'GET request'),
    ('post', 'POST request'),
    ('put', 'PUT request'),
])

# TODO: Include more header names
HEADER_NAMES = OrderedDict([
    ('Accept', 'Header'),
    ('Accept-Encoding', 'Header'),
    ('Authorization', 'Header'),
    ('Cache-Control', 'Header'),
    ('Cookie', 'Header'),
    ('Content-Length', 'Header'),
    ('Content-Type', 'Header'),
    ('From', 'Header'),
    ('Host', 'Header'),
    ('Origin', 'Header'),
    ('Referer', 'Header'),
    ('User-Agent', 'Header'),
])

CONTENT_TYPES = [
    'application/json',
    'application/x-www-form-urlencoded',
    'multipart/form-data',
    'text/html',
]
<commit_msg>Includes more header names.<commit_after>"""Meta data for autocomplete."""


try:
    from collections import OrderedDict
except ImportError:  # For Python 2.6, nocover
    from .ordereddict import OrderedDict

from . import options as opt


ROOT_COMMANDS = OrderedDict([
    ('cd', 'Change URL/path'),
    ('curl', 'Preview curl command'),
    ('exit', 'Exit HTTP Prompt'),
    ('help', 'List commands, actions, and HTTPie options'),
    ('httpie', 'Preview HTTPie command'),
    ('rm *', 'Remove all options and parameters'),
    ('rm -b', 'Remove body parameter'),
    ('rm -h', 'Remove header'),
    ('rm -o', 'Remove HTTPie option'),
    ('rm -q', 'Remove querystring parameter'),
])

ACTIONS = OrderedDict([
    ('delete', 'DELETE request'),
    ('get', 'GET request'),
    ('head', 'HEAD request'),
    ('patch', 'GET request'),
    ('post', 'POST request'),
    ('put', 'PUT request'),
])

HEADER_NAMES = OrderedDict([
    ('Accept', 'Header'),
    ('Accept-Charset', 'Header'),
    ('Accept-Encoding', 'Header'),
    ('Accept-Language', 'Header'),
    ('Accept-Datetime', 'Header'),
    ('Authorization', 'Header'),
    ('Cache-Control', 'Header'),
    ('Connection', 'Header'),
    ('Cookie', 'Header'),
    ('Content-Length', 'Header'),
    ('Content-MD5', 'Header'),
    ('Content-Type', 'Header'),
    ('Date', 'Header'),
    ('Expect', 'Header'),
    ('Forwarded', 'Header'),
    ('From', 'Header'),
    ('Host', 'Header'),
    ('If-Match', 'Header'),
    ('If-Modified-Since', 'Header'),
    ('If-None-Match', 'Header'),
    ('If-Range', 'Header'),
    ('If-Unmodified-Since', 'Header'),
    ('Max-Forwards', 'Header'),
    ('Origin', 'Header'),
    ('Pragma', 'Header'),
    ('Proxy-Authorization', 'Header'),
    ('Range', 'Header'),
    ('Referer', 'Header'),
    ('TE', 'Header'),
    ('User-Agent', 'Header'),
    ('Upgrade', 'Header'),
    ('Via', 'Header'),
    ('Warning', 'Header'),
])

CONTENT_TYPES = [
    'application/json',
    'application/x-www-form-urlencoded',
    'multipart/form-data',
    'text/html',
]

{'fraction_non_alphanumeric': 0.22161383285302594, 'fraction_numerical': 0.001440922190201729, 'mean_word_length': 3.5852047556142668, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1042366', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1086, 'n_words': 298}