8000 cpython/Lib/collections/__init__.py at 3.13 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"fileTree":{"Lib/collections":{"items":[{"name":"__init__.py","path":"Lib/collections/__init__.py","contentType":"file"}],"totalCount":1},"Lib":{"items":[{"name":"__phello__","path":"Lib/__phello__","contentType":"directory"},{"name":"_pyrepl","path":"Lib/_pyrepl","contentType":"directory"},{"name":"asyncio","path":"Lib/asyncio","contentType":"directory"},{"name":"collections","path":"Lib/collections","contentType":"directory"},{"name":"concurrent","path":"Lib/concurrent","contentType":"directory"},{"name":"ctypes","path":"Lib/ctypes","contentType":"directory"},{"name":"curses","path":"Lib/curses","contentType":"directory"},{"name":"dbm","path":"Lib/dbm","contentType":"directory"},{"name":"email","path":"Lib/email","contentType":"directory"},{"name":"encodings","path":"Lib/encodings","contentType":"directory"},{"name":"ensurepip","path":"Lib/ensurepip","contentType":"directory"},{"name":"html","path":"Lib/html","contentType":"directory"},{"name":"http","path":"Lib/http","contentType":"directory"},{"name":"idlelib","path":"Lib/idlelib","contentType":"directory"},{"name":"importlib","path":"Lib/importlib","contentType":"directory"},{"name":"json","path":"Lib/json","contentType":"directory"},{"name":"logging","path":"Lib/logging","contentType":"directory"},{"name":"multiprocessing","path":"Lib/multiprocessing","contentType":"directory"},{"name":"pathlib","path":"Lib/pathlib","contentType":"directory"},{"name":"pydoc_data","path":"Lib/pydoc_data","contentType":"directory"},{"name":"re","path":"Lib/re","contentType":"directory"},{"name":"site-packages","path":"Lib/site-packages","contentType":"directory"},{"name":"sqlite3","path":"Lib/sqlite3","contentType":"directory"},{"name":"sysconfig","path":"Lib/sysconfig","contentType":"directory"},{"name":"test","path":"Lib/test","contentType":"directory"},{"name":"tkinter","path":"Lib/tkinter","contentType":"directory"},{"name":"tomllib","path":"Lib/tomllib","contentType":"directory"},{"name":"turtledemo","path":"Lib/turtledemo","contentType":"directory"},{"name":"unittest","path":"Lib/unittest","contentType":"directory"},{"name":"urllib","path":"Lib/urllib","contentType":"directory"},{"name":"venv","path":"Lib/venv","contentType":"directory"},{"name":"wsgiref","path":"Lib/wsgiref","contentType":"directory"},{"name":"xml","path":"Lib/xml","contentType":"directory"},{"name":"xmlrpc","path":"Lib/xmlrpc","contentType":"directory"},{"name":"zipfile","path":"Lib/zipfile","contentType":"directory"},{"name":"zoneinfo","path":"Lib/zoneinfo","contentType":"directory"},{"name":"__future__.py","path":"Lib/__future__.py","contentType":"file"},{"name":"__hello__.py","path":"Lib/__hello__.py","contentType":"file"},{"name":"_aix_support.py","path":"Lib/_aix_support.py","contentType":"file"},{"name":"_android_support.py","path":"Lib/_android_support.py","contentType":"file"},{"name":"_apple_support.py","path":"Lib/_apple_support.py","contentType":"file"},{"name":"_collections_abc.py","path":"Lib/_collections_abc.py","contentType":"file"},{"name":"_colorize.py","path":"Lib/_colorize.py","contentType":"file"},{"name":"_compat_pickle.py","path":"Lib/_compat_pickle.py","contentType":"file"},{"name":"_compression.py","path":"Lib/_compression.py","contentType":"file"},{"name":"_ios_support.py","path":"Lib/_ios_support.py","contentType":"file"},{"name":"_markupbase.py","path":"Lib/_markupbase.py","contentType":"file"},{"name":"_opcode_metadata.py","path":"Lib/_opcode_metadata.py","contentType":"file"},{"name":"_osx_support.py","path":"Lib/_osx_support.py","contentType":"file"},{"name":"_py_abc.py","path":"Lib/_py_abc.py","contentType":"file"},{"name":"_pydatetime.py","path":"Lib/_pydatetime.py","contentType":"file"},{"name":"_pydecimal.py","path":"Lib/_pydecimal.py","contentType":"file"},{"name":"_pyio.py","path":"Lib/_pyio.py","contentType":"file"},{"name":"_pylong.py","path":"Lib/_pylong.py","contentType":"file"},{"name":"_sitebuiltins.py","path":"Lib/_sitebuiltins.py","contentType":"file"},{"name":"_strptime.py","path":"Lib/_strptime.py","contentType":"file"},{"name":"_threading_local.py","path":"Lib/_threading_local.py","contentType":"file"},{"name":"_weakrefset.py","path":"Lib/_weakrefset.py","contentType":"file"},{"name":"abc.py","path":"Lib/abc.py","contentType":"file"},{"name":"antigravity.py","path":"Lib/antigravity.py","contentType":"file"},{"name":"argparse.py","path":"Lib/argparse.py","contentType":"file"},{"name":"ast.py","path":"Lib/ast.py","contentType":"file"},{"name":"base64.py","path":"Lib/base64.py","contentType":"file"},{"name":"bdb.py","path":"Lib/bdb.py","contentType":"file"},{"name":"bisect.py","path":"Lib/bisect.py","contentType":"file"},{"name":"bz2.py","path":"Lib/bz2.py","contentType":"file"},{"name":"cProfile.py","path":"Lib/cProfile.py","contentType":"file"},{"name":"calendar.py","path":"Lib/calendar.py","contentType":"file"},{"name":"cmd.py","path":"Lib/cmd.py","contentType":"file"},{"name":"code.py","path":"Lib/code.py","contentType":"file"},{"name":"codecs.py","path":"Lib/codecs.py","contentType":"file"},{"name":"codeop.py","path":"Lib/codeop.py","contentType":"file"},{"name":"colorsys.py","path":"Lib/colorsys.py","contentType":"file"},{"name":"compileall.py","path":"Lib/compileall.py","contentType":"file"},{"name":"configparser.py","path":"Lib/configparser.py","contentType":"file"},{"name":"contextlib.py","path":"Lib/contextlib.py","contentType":"file"},{"name":"contextvars.py","path":"Lib/contextvars.py","contentType":"file"},{"name":"copy.py","path":"Lib/copy.py","contentType":"file"},{"name":"copyreg.py","path":"Lib/copyreg.py","contentType":"file"},{"name":"csv.py","path":"Lib/csv.py","contentType":"file"},{"name":"dataclasses.py","path":"Lib/dataclasses.py","contentType":"file"},{"name":"datetime.py","path":"Lib/datetime.py","contentType":"file"},{"name":"decimal.py","path":"Lib/decimal.py","contentType":"file"},{"name":"difflib.py","path":"Lib/difflib.py","contentType":"file"},{"name":"dis.py","path":"Lib/dis.py","contentType":"file"},{"name":"doctest.py","path":"Lib/doctest.py","contentType":"file"},{"name":"enum.py","path":"Lib/enum.py","contentType":"file"},{"name":"filecmp.py","path":"Lib/filecmp.py","contentType":"file"},{"name":"fileinput.py","path":"Lib/fileinput.py","contentType":"file"},{"name":"fnmatch.py","path":"Lib/fnmatch.py","contentType":"file"},{"name":"fractions.py","path":"Lib/fractions.py","contentType":"file"},{"name":"ftplib.py","path":"Lib/ftplib.py","contentType":"file"},{"name":"functools.py","path":"Lib/functools.py","contentType":"file"},{"name":"genericpath.py","path":"Lib/genericpath.py","contentType":"file"},{"name":"getopt.py","path":"Lib/getopt.py","contentType":"file"},{"name":"getpass.py","path":"Lib/getpass.py","contentType":"file"},{"name":"gettext.py","path":"Lib/gettext.py","contentType":"file"},{"name":"glob.py","path":"Lib/glob.py","contentType":"file"},{"name":"graphlib.py","path":"Lib/graphlib.py","contentType":"file"},{"name":"gzip.py","path":"Lib/gzip.py","contentType":"file"},{"name":"hashlib.py","path":"Lib/hashlib.py","contentType":"file"},{"name":"heapq.py","path":"Lib/heapq.py","contentType":"file"},{"name":"hmac.py","path":"Lib/hmac.py","contentType":"file"},{"name":"imaplib.py","path":"Lib/imaplib.py","contentType":"file"},{"name":"inspect.py","path":"Lib/inspect.py","contentType":"file"},{"name":"io.py","path":"Lib/io.py","contentType":"file"},{"name":"ipaddress.py","path":"Lib/ipaddress.py","contentType":"file"},{"name":"keyword.py","path":"Lib/keyword.py","contentType":"file"},{"name":"linecache.py","path":"Lib/linecache.py","contentType":"file"},{"name":"locale.py","path":"Lib/locale.py","contentType":"file"},{"name":"lzma.py","path":"Lib/lzma.py","contentType":"file"},{"name":"mailbox.py","path":"Lib/mailbox.py","contentType":"file"},{"name":"mimetypes.py","path":"Lib/mimetypes.py","contentType":"file"},{"name":"modulefinder.py","path":"Lib/modulefinder.py","contentType":"file"},{"name":"netrc.py","path":"Lib/netrc.py","contentType":"file"},{"name":"ntpath.py","path":"Lib/ntpath.py","contentType":"file"},{"name":"nturl2path.py","path":"Lib/nturl2path.py","contentType":"file"},{"name":"numbers.py","path":"Lib/numbers.py","contentType":"file"},{"name":"opcode.py","path":"Lib/opcode.py","contentType":"file"},{"name":"operator.py","path":"Lib/operator.py","contentType":"file"},{"name":"optparse.py","path":"Lib/optparse.py","contentType":"file"},{"name":"os.py","path":"Lib/os.py","contentType":"file"},{"name":"pdb.py","path":"Lib/pdb.py","contentType":"file"},{"name":"pickle.py","path":"Lib/pickle.py","contentType":"file"},{"name":"pickletools.py","path":"Lib/pickletools.py","contentType":"file"},{"name":"pkgutil.py","path":"Lib/pkgutil.py","contentType":"file"},{"name":"platform.py","path":"Lib/platform.py","contentType":"file"},{"name":"plistlib.py","path":"Lib/plistlib.py","contentType":"file"},{"name":"poplib.py","path":"Lib/poplib.py","contentType":"file"},{"name":"posixpath.py","path":"Lib/posixpath.py","contentType":"file"},{"name":"pprint.py","path":"Lib/pprint.py","contentType":"file"},{"name":"profile.py","path":"Lib/profile.py","contentType":"file"},{"name":"pstats.py","path":"Lib/pstats.py","contentType":"file"},{"name":"pty.py","path":"Lib/pty.py","contentType":"file"},{"name":"py_compile.py","path":"Lib/py_compile.py","contentType":"file"},{"name":"pyclbr.py","path":"Lib/pyclbr.py","contentType":"file"},{"name":"pydoc.py","path":"Lib/pydoc.py","contentType":"file"},{"name":"queue.py","path":"Lib/queue.py","contentType":"file"},{"name":"quopri.py","path":"Lib/quopri.py","contentType":"file"},{"name":"random.py","path":"Lib/random.py","contentType":"file"},{"name":"reprlib.py","path":"Lib/reprlib.py","contentType":"file"},{"name":"rlcompleter.py","path":"Lib/rlcompleter.py","contentType":"file"},{"name":"runpy.py","path":"Lib/runpy.py","contentType":"file"},{"name":"sched.py","path":"Lib/sched.py","contentType":"file"},{"name":"secrets.py","path":"Lib/secrets.py","contentType":"file"},{"name":"selectors.py","path":"Lib/selectors.py","contentType":"file"},{"name":"shelve.py","path":"Lib/shelve.py","contentType":"file"},{"name":"shlex.py","path":"Lib/shlex.py","contentType":"file"},{"name":"shutil.py","path":"Lib/shutil.py","contentType":"file"},{"name":"signal.py","path":"Lib/signal.py","contentType":"file"},{"name":"site.py","path":"Lib/site.py","contentType":"file"},{"name":"smtplib.py","path":"Lib/smtplib.py","contentType":"file"},{"name":"socket.py","path":"Lib/socket.py","contentType":"file"},{"name":"socketserver.py","path":"Lib/socketserver.py","contentType":"file"},{"name":"sre_compile.py","path":"Lib/sre_compile.py","contentType":"file"},{"name":"sre_constants.py","path":"Lib/sre_constants.py","contentType":"file"},{"name":"sre_parse.py","path":"Lib/sre_parse.py","contentType":"file"},{"name":"ssl.py","path":"Lib/ssl.py","contentType":"file"},{"name":"stat.py","path":"Lib/stat.py","contentType":"file"},{"name":"statistics.py","path":"Lib/statistics.py","contentType":"file"},{"name":"string.py","path":"Lib/string.py","contentType":"file"},{"name":"stringprep.py","path":"Lib/stringprep.py","contentType":"file"},{"name":"struct.py","path":"Lib/struct.py","contentType":"file"},{"name":"subprocess.py","path":"Lib/subprocess.py","contentType":"file"},{"name":"symtable.py","path":"Lib/symtable.py","contentType":"file"},{"name":"tabnanny.py","path":"Lib/tabnanny.py","contentType":"file"},{"name":"tarfile.py","path":"Lib/tarfile.py","contentType":"file"},{"name":"tempfile.py","path":"Lib/tempfile.py","contentType":"file"},{"name":"textwrap.py","path":"Lib/textwrap.py","contentType":"file"},{"name":"this.py","path":"Lib/this.py","contentType":"file"},{"name":"threading.py","path":"Lib/threading.py","contentType":"file"},{"name":"timeit.py","path":"Lib/timeit.py","contentType":"file"},{"name":"token.py","path":"Lib/token.py","contentType":"file"},{"name":"tokenize.py","path":"Lib/tokenize.py","contentType":"file"},{"name":"trace.py","path":"Lib/trace.py","contentType":"file"},{"name":"traceback.py","path":"Lib/traceback.py","contentType":"file"},{"name":"tracemalloc.py","path":"Lib/tracemalloc.py","contentType":"file"},{"name":"tty.py","path":"Lib/tty.py","contentType":"file"},{"name":"turtle.py","path":"Lib/turtle.py","contentType":"file"},{"name":"types.py","path":"Lib/types.py","contentType":"file"},{"name":"typing.py","path":"Lib/typing.py","contentType":"file"},{"name":"uuid.py","path":"Lib/uuid.py","contentType":"file"},{"name":"warnings.py","path":"Lib/warnings.py","contentType":"file"},{"name":"wave.py","path":"Lib/wave.py","contentType":"file"},{"name":"weakref.py","path":"Lib/weakref.py","contentType":"file"},{"name":"webbrowser.py","path":"Lib/webbrowser.py","contentType":"file"},{"name":"zipapp.py","path":"Lib/zipapp.py","contentType":"file"},{"name":"zipimport.py","path":"Lib/zipimport.py","contentType":"file"}],"totalCount":188},"":{"items":[{"name":".azure-pipelines","path":".azure-pipelines","contentType":"directory"},{"name":".devcontainer","path":".devcontainer","contentType":"directory"},{"name":".github","path":".github","contentType":"directory"},{"name":"Android","path":"Android","contentType":"directory"},{"name":"Doc","path":"Doc","contentType":"directory"},{"name":"Grammar","path":"Grammar","contentType":"directory"},{"name":"Include","path":"Include","contentType":"directory"},{"name":"InternalDocs","path":"InternalDocs","contentType":"directory"},{"name":"Lib","path":"Lib","contentType":"directory"},{"name":"Mac","path":"Mac","contentType":"directory"},{"name":"Misc","path":"Misc","contentType":"directory"},{"name":"Modules","path":"Modules","contentType":"directory"},{"name":"Objects","path":"Objects","contentType":"directory"},{"name":"PC","path":"PC","contentType":"directory"},{"name":"PCbuild","path":"PCbuild","contentType":"directory"},{"name":"Parser","path":"Parser","contentType":"directory"},{"name":"Programs","path":"Programs","contentType":"directory"},{"name":"Python","path":"Python","contentType":"directory"},{"name":"Tools","path":"Tools","contentType":"directory"},{"name":"iOS","path":"iOS","contentType":"directory"},{"name":".coveragerc","path":".coveragerc","contentType":"file"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".mailmap","path":".mailmap","contentType":"file"},{"name":".pre-commit-config.yaml","path":".pre-commit-config.yaml","contentType":"file"},{"name":".readthedocs.yml","path":".readthedocs.yml","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"Makefile.pre.in","path":"Makefile.pre.in","contentType":"file"},{"name":"README.rst","path":"README.rst","contentType":"file"},{"name":"aclocal.m4","path":"aclocal.m4","contentType":"file"},{"name":"config.guess","path":"config.guess","contentType":"file"},{"name":"config.sub","path":"config.sub","contentType":"file"},{"name":"configure","path":"configure","contentType":"file"},{"name":"configure.ac","path":"configure.ac","contentType":"file"},{"name":"install-sh","path":"install-sh","contentType":"file"},{"name":"pyconfig.h.in","path":"pyconfig.h.in","contentType":"file"}],"totalCount":37}},"fileTreeProcessingTime":180.203871,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":81598961,"defaultBranch":"main","name":"cpython","ownerLogin":"python","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2017-02-10T19:23:51.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/1525981?v=4","public":true,"private":false,"isOrgOwned":true},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"3.13","listCacheKey":"v0:1746633766.0","canEdit":false,"refType":"branch","currentOid":"1dbb644a5b458aebc48022d2c28d16dfd8ae0d73"},"path":"Lib/collections/__init__.py","currentUser":null,"blob":{"rawLines":["'''This module implements specialized container datatypes providing","alternatives to Python's general purpose built-in containers, dict,","list, set, and tuple.","","* namedtuple factory function for creating tuple subclasses with named fields","* deque list-like container with fast appends and pops on either end","* ChainMap dict-like class for creating a single view of multiple mappings","* Counter dict subclass for counting hashable objects","* OrderedDict dict subclass that remembers the order entries were added","* defaultdict dict subclass that calls a factory function to supply missing values","* UserDict wrapper around dictionary objects for easier dict subclassing","* UserList wrapper around list objects for easier list subclassing","* UserString wrapper around string objects for easier string subclassing","","'''","","__all__ = ["," 'ChainMap',"," 'Counter',"," 'OrderedDict',"," 'UserDict',"," 'UserList',"," 'UserString',"," 'defaultdict',"," 'deque',"," 'namedtuple',","]","","import _collections_abc","import sys as _sys","","_sys.modules['collections.abc'] = _collections_abc","abc = _collections_abc","","from itertools import chain as _chain","from itertools import repeat as _repeat","from itertools import starmap as _starmap","from keyword import iskeyword as _iskeyword","from operator import eq as _eq","from operator import itemgetter as _itemgetter","from reprlib import recursive_repr as _recursive_repr","from _weakref import proxy as _proxy","","try:"," from _collections import deque","except ImportError:"," pass","else:"," _collections_abc.MutableSequence.register(deque)","","try:"," from _collections import _deque_iterator","except ImportError:"," pass","","try:"," from _collections import defaultdict","except ImportError:"," pass","","","################################################################################","### OrderedDict","################################################################################","","class _OrderedDictKeysView(_collections_abc.KeysView):",""," def __reversed__(self):"," yield from reversed(self._mapping)","","class _OrderedDictItemsView(_collections_abc.ItemsView):",""," def __reversed__(self):"," for key in reversed(self._mapping):"," yield (key, self._mapping[key])","","class _OrderedDictValuesView(_collections_abc.ValuesView):",""," def __reversed__(self):"," for key in reversed(self._mapping):"," yield self._mapping[key]","","class _Link(object):"," __slots__ = 'prev', 'next', 'key', '__weakref__'","","class OrderedDict(dict):"," 'Dictionary that remembers insertion order'"," # An inherited dict maps keys to values."," # The inherited dict provides __getitem__, __len__, __contains__, and get."," # The remaining methods are order-aware."," # Big-O running times for all methods are the same as regular dictionaries.",""," # The internal self.__map dict maps keys to links in a doubly linked list."," # The circular doubly linked list starts and ends with a sentinel element."," # The sentinel element never gets deleted (this simplifies the algorithm)."," # The sentinel is in self.__hardroot with a weakref proxy in self.__root."," # The prev links are weakref proxies (to prevent circular references)."," # Individual links are kept alive by the hard reference in self.__map."," # Those hard references disappear when a key is deleted from an OrderedDict.",""," def __new__(cls, /, *args, **kwds):"," \"Create the ordered dict object and set up the underlying structures.\""," self = dict.__new__(cls)"," self.__hardroot = _Link()"," self.__root = root = _proxy(self.__hardroot)"," root.prev = root.next = root"," self.__map = {}"," return self",""," def __init__(self, other=(), /, **kwds):"," '''Initialize an ordered dictionary. The signature is the same as"," regular dictionaries. Keyword argument order is preserved."," '''"," self.__update(other, **kwds)",""," def __setitem__(self, key, value,"," dict_setitem=dict.__setitem__, proxy=_proxy, Link=_Link):"," 'od.__setitem__(i, y) \u003c==\u003e od[i]=y'"," # Setting a new item creates a new link at the end of the linked list,"," # and the inherited dictionary is updated with the new key/value pair."," if key not in self:"," self.__map[key] = link = Link()"," root = self.__root"," last = root.prev"," link.prev, link.next, link.key = last, root, key"," last.next = link"," root.prev = proxy(link)"," dict_setitem(self, key, value)",""," def __delitem__(self, key, dict_delitem=dict.__delitem__):"," 'od.__delitem__(y) \u003c==\u003e del od[y]'"," # Deleting an existing item uses self.__map to find the link which gets"," # removed by updating the links in the predecessor and successor nodes."," dict_delitem(self, key)"," link = self.__map.pop(key)"," link_prev = link.prev"," link_next = link.next"," link_prev.next = link_next"," link_next.prev = link_prev"," link.prev = None"," link.next = None",""," def __iter__(self):"," 'od.__iter__() \u003c==\u003e iter(od)'"," # Traverse the linked list in order."," root = self.__root"," curr = root.next"," while curr is not root:"," yield curr.key"," curr = curr.next",""," def __reversed__(self):"," 'od.__reversed__() \u003c==\u003e reversed(od)'"," # Traverse the linked list in reverse order."," root = self.__root"," curr = root.prev"," while curr is not root:"," yield curr.key"," curr = curr.prev",""," def clear(self):"," 'od.clear() -\u003e None. Remove all items from od.'"," root = self.__root"," root.prev = root.next = root"," self.__map.clear()"," dict.clear(self)",""," def popitem(self, last=True):"," '''Remove and return a (key, value) pair from the dictionary.",""," Pairs are returned in LIFO order if last is true or FIFO order if false."," '''"," if not self:"," raise KeyError('dictionary is empty')"," root = self.__root"," if last:"," link = root.prev"," link_prev = link.prev"," link_prev.next = root"," root.prev = link_prev"," else:"," link = root.next"," link_next = link.next"," root.next = link_next"," link_next.prev = root"," key = link.key"," del self.__map[key]"," value = dict.pop(self, key)"," return key, value",""," def move_to_end(self, key, last=True):"," '''Move an existing element to the end (or beginning if last is false).",""," Raise KeyError if the element does not exist."," '''"," link = self.__map[key]"," link_prev = link.prev"," link_next = link.next"," soft_link = link_next.prev"," link_prev.next = link_next"," link_next.prev = link_prev"," root = self.__root"," if last:"," last = root.prev"," link.prev = last"," link.next = root"," root.prev = soft_link"," last.next = link"," else:"," first = root.next"," link.prev = root"," link.next = first"," first.prev = soft_link"," root.next = link",""," def __sizeof__(self):"," sizeof = _sys.getsizeof"," n = len(self) + 1 # number of links including root"," size = sizeof(self.__dict__) # instance dictionary"," size += sizeof(self.__map) * 2 # internal dict and inherited dict"," size += sizeof(self.__hardroot) * n # link objects"," size += sizeof(self.__root) * n # proxy objects"," return size",""," update = __update = _collections_abc.MutableMapping.update",""," def keys(self):"," \"D.keys() -\u003e a set-like object providing a view on D's keys\""," return _OrderedDictKeysView(self)",""," def items(self):"," \"D.items() -\u003e a set-like object providing a view on D's items\""," return _OrderedDictItemsView(self)",""," def values(self):"," \"D.values() -\u003e an object providing a view on D's values\""," return _OrderedDictValuesView(self)",""," __ne__ = _collections_abc.MutableMapping.__ne__",""," __marker = object()",""," def pop(self, key, default=__marker):"," '''od.pop(k[,d]) -\u003e v, remove specified key and return the corresponding"," value. If key is not found, d is returned if given, otherwise KeyError"," is raised.",""," '''"," marker = self.__marker"," result = dict.pop(self, key, marker)"," if result is not marker:"," # The same as in __delitem__()."," link = self.__map.pop(key)"," link_prev = link.prev"," link_next = link.next"," link_prev.next = link_next"," link_next.prev = link_prev"," link.prev = None"," link.next = None"," return result"," if default is marker:"," raise KeyError(key)"," return default",""," def setdefault(self, key, default=None):"," '''Insert key with a value of default if key is not in the dictionary.",""," Return the value for key if key is in the dictionary, else default."," '''"," if key in self:"," return self[key]"," self[key] = default"," return default",""," @_recursive_repr()"," def __repr__(self):"," 'od.__repr__() \u003c==\u003e repr(od)'"," if not self:"," return '%s()' % (self.__class__.__name__,)"," return '%s(%r)' % (self.__class__.__name__, dict(self.items()))",""," def __reduce__(self):"," 'Return state information for pickling'"," state = self.__getstate__()"," if state:"," if isinstance(state, tuple):"," state, slots = state"," else:"," slots = {}"," state = state.copy()"," slots = slots.copy()"," for k in vars(OrderedDict()):"," state.pop(k, None)"," slots.pop(k, None)"," if slots:"," state = state, slots"," else:"," state = state or None"," return self.__class__, (), state, None, iter(self.items())",""," def copy(self):"," 'od.copy() -\u003e a shallow copy of od'"," return self.__class__(self)",""," @classmethod"," def fromkeys(cls, iterable, value=None):"," '''Create a new ordered dictionary with keys from iterable and values set to value."," '''"," self = cls()"," for key in iterable:"," self[key] = value"," return self",""," def __eq__(self, other):"," '''od.__eq__(y) \u003c==\u003e od==y. Comparison to another OD is order-sensitive"," while comparison to a regular mapping is order-insensitive.",""," '''"," if isinstance(other, OrderedDict):"," return dict.__eq__(self, other) and all(map(_eq, self, other))"," return dict.__eq__(self, other)",""," def __ior__(self, other):"," self.update(other)"," return self",""," def __or__(self, other):"," if not isinstance(other, dict):"," return NotImplemented"," new = self.__class__(self)"," new.update(other)"," return new",""," def __ror__(self, other):"," if not isinstance(other, dict):"," return NotImplemented"," new = self.__class__(other)"," new.update(self)"," return new","","","try:"," from _collections import OrderedDict","except ImportError:"," # Leave the pure Python version in place."," pass","","","################################################################################","### namedtuple","################################################################################","","try:"," from _collections import _tuplegetter","except ImportError:"," _tuplegetter = lambda index, doc: property(_itemgetter(index), doc=doc)","","def namedtuple(typename, field_names, *, rename=False, defaults=None, module=None):"," \"\"\"Returns a new subclass of tuple with named fields.",""," \u003e\u003e\u003e Point = namedtuple('Point', ['x', 'y'])"," \u003e\u003e\u003e Point.__doc__ # docstring for the new class"," 'Point(x, y)'"," \u003e\u003e\u003e p = Point(11, y=22) # instantiate with positional args or keywords"," \u003e\u003e\u003e p[0] + p[1] # indexable like a plain tuple"," 33"," \u003e\u003e\u003e x, y = p # unpack like a regular tuple"," \u003e\u003e\u003e x, y"," (11, 22)"," \u003e\u003e\u003e p.x + p.y # fields also accessible by name"," 33"," \u003e\u003e\u003e d = p._asdict() # convert to a dictionary"," \u003e\u003e\u003e d['x']"," 11"," \u003e\u003e\u003e Point(**d) # convert from a dictionary"," Point(x=11, y=22)"," \u003e\u003e\u003e p._replace(x=100) # _replace() is like str.replace() but targets named fields"," Point(x=100, y=22)",""," \"\"\"",""," # Validate the field names. At the user's option, either generate an error"," # message or automatically replace the field name with a valid name."," if isinstance(field_names, str):"," field_names = field_names.replace(',', ' ').split()"," field_names = list(map(str, field_names))"," typename = _sys.intern(str(typename))",""," if rename:"," seen = set()"," for index, name in enumerate(field_names):"," if (not name.isidentifier()"," or _iskeyword(name)"," or name.startswith('_')"," or name in seen):"," field_names[index] = f'_{index}'"," seen.add(name)",""," for name in [typename] + field_names:"," if type(name) is not str:"," raise TypeError('Type names and field names must be strings')"," if not name.isidentifier():"," raise ValueError('Type names and field names must be valid '"," f'identifiers: {name!r}')"," if _iskeyword(name):"," raise ValueError('Type names and field names cannot be a '"," f'keyword: {name!r}')",""," seen = set()"," for name in field_names:"," if name.startswith('_') and not rename:"," raise ValueError('Field names cannot start with an underscore: '"," f'{name!r}')"," if name in seen:"," raise ValueError(f'Encountered duplicate field name: {name!r}')"," seen.add(name)",""," field_defaults = {}"," if defaults is not None:"," defaults = tuple(defaults)"," if len(defaults) \u003e len(field_names):"," raise TypeError('Got more default values than field names')"," field_defaults = dict(reversed(list(zip(reversed(field_names),"," reversed(defaults)))))",""," # Variables used in the methods and docstrings"," field_names = tuple(map(_sys.intern, field_names))"," num_fields = len(field_names)"," arg_list = ', '.join(field_names)"," if num_fields == 1:"," arg_list += ','"," repr_fmt = '(' + ', '.join(f'{name}=%r' for name in field_names) + ')'"," tuple_new = tuple.__new__"," _dict, _tuple, _len, _map, _zip = dict, tuple, len, map, zip",""," # Create all the named tuple methods to be added to the class namespace",""," namespace = {"," '_tuple_new': tuple_new,"," '__builtins__': {},"," '__name__': f'namedtuple_{typename}',"," }"," code = f'lambda _cls, {arg_list}: _tuple_new(_cls, ({arg_list}))'"," __new__ = eval(code, namespace)"," __new__.__name__ = '__new__'"," __new__.__doc__ = f'Create new instance of {typename}({arg_list})'"," if defaults is not None:"," __new__.__defaults__ = defaults",""," @classmethod"," def _make(cls, iterable):"," result = tuple_new(cls, iterable)"," if _len(result) != num_fields:"," raise TypeError(f'Expected {num_fields} arguments, g 8000 ot {len(result)}')"," return result",""," _make.__func__.__doc__ = (f'Make a new {typename} object from a sequence '"," 'or iterable')",""," def _replace(self, /, **kwds):"," result = self._make(_map(kwds.pop, field_names, self))"," if kwds:"," raise TypeError(f'Got unexpected field names: {list(kwds)!r}')"," return result",""," _replace.__doc__ = (f'Return a new {typename} object replacing specified '"," 'fields with new values')",""," def __repr__(self):"," 'Return a nicely formatted representation string'"," return self.__class__.__name__ + repr_fmt % self",""," def _asdict(self):"," 'Return a new dict which maps field names to their values.'"," return _dict(_zip(self._fields, self))",""," def __getnewargs__(self):"," 'Return self as a plain tuple. Used by copy and pickle.'"," return _tuple(self)",""," # Modify function metadata to help with introspection and debugging"," for method in ("," __new__,"," _make.__func__,"," _replace,"," __repr__,"," _asdict,"," __getnewargs__,"," ):"," method.__qualname__ = f'{typename}.{method.__name__}'",""," # Build-up the class namespace dictionary"," # and use type() to build the result class"," class_namespace = {"," '__doc__': f'{typename}({arg_list})',"," '__slots__': (),"," '_fields': field_names,"," '_field_defaults': field_defaults,"," '__new__': __new__,"," '_make': _make,"," '__replace__': _replace,"," '_replace': _replace,"," '__repr__': __repr__,"," '_asdict': _asdict,"," '__getnewargs__': __getnewargs__,"," '__match_args__': field_names,"," }"," for index, name in enumerate(field_names):"," doc = _sys.intern(f'Alias for field number {index}')"," class_namespace[name] = _tuplegetter(index, doc)",""," result = type(typename, (tuple,), class_namespace)",""," # For pickling to work, the __module__ variable needs to be set to the frame"," # where the named tuple is created. Bypass this step in environments where"," # sys._getframe is not defined (Jython for example) or sys._getframe is not"," # defined for arguments greater than 0 (IronPython), or where the user has"," # specified a particular module."," if module is None:"," try:"," module = _sys._getframemodulename(1) or '__main__'"," except AttributeError:"," try:"," module = _sys._getframe(1).f_globals.get('__name__', '__main__')"," except (AttributeError, ValueError):"," pass"," if module is not None:"," result.__module__ = module",""," return result","","","########################################################################","### Counter","########################################################################","","def _count_elements(mapping, iterable):"," 'Tally elements from the iterable.'"," mapping_get = mapping.get"," for elem in iterable:"," mapping[elem] = mapping_get(elem, 0) + 1","","try: # Load C helper function if available"," from _collections import _count_elements","except ImportError:"," pass","","class Counter(dict):"," '''Dict subclass for counting hashable items. Sometimes called a bag"," or multiset. Elements are stored as dictionary keys and their counts"," are stored as dictionary values.",""," \u003e\u003e\u003e c = Counter('abcdeabcdabcaba') # count elements from a string",""," \u003e\u003e\u003e c.most_common(3) # three most common elements"," [('a', 5), ('b', 4), ('c', 3)]"," \u003e\u003e\u003e sorted(c) # list all unique elements"," ['a', 'b', 'c', 'd', 'e']"," \u003e\u003e\u003e ''.join(sorted(c.elements())) # list elements with repetitions"," 'aaaaabbbbcccdde'"," \u003e\u003e\u003e sum(c.values()) # total of all counts"," 15",""," \u003e\u003e\u003e c['a'] # count of letter 'a'"," 5"," \u003e\u003e\u003e for elem in 'shazam': # update counts from an iterable"," ... c[elem] += 1 # by adding 1 to each element's count"," \u003e\u003e\u003e c['a'] # now there are seven 'a'"," 7"," \u003e\u003e\u003e del c['b'] # remove all 'b'"," \u003e\u003e\u003e c['b'] # now there are zero 'b'"," 0",""," \u003e\u003e\u003e d = Counter('simsalabim') # make another counter"," \u003e\u003e\u003e c.update(d) # add in the second counter"," \u003e\u003e\u003e c['a'] # now there are nine 'a'"," 9",""," \u003e\u003e\u003e c.clear() # empty the counter"," \u003e\u003e\u003e c"," Counter()",""," Note: If a count is set to zero or reduced to zero, it will remain"," in the counter until the entry is deleted or the counter is cleared:",""," \u003e\u003e\u003e c = Counter('aaabbc')"," \u003e\u003e\u003e c['b'] -= 2 # reduce the count of 'b' by two"," \u003e\u003e\u003e c.most_common() # 'b' is still in, but its count is zero"," [('a', 3), ('c', 1), ('b', 0)]",""," '''"," # References:"," # http://en.wikipedia.org/wiki/Multiset"," # http://www.gnu.org/software/smalltalk/manual-base/html_node/Bag.html"," # http://www.java2s.com/Tutorial/Cpp/0380__set-multiset/Catalog0380__set-multiset.htm"," # http://code.activestate.com/recipes/259174/"," # Knuth, TAOCP Vol. II section 4.6.3",""," def __init__(self, iterable=None, /, **kwds):"," '''Create a new, empty Counter object. And if given, count elements"," from an input iterable. Or, initialize the count from another mapping"," of elements to their counts.",""," \u003e\u003e\u003e c = Counter() # a new, empty counter"," \u003e\u003e\u003e c = Counter('gallahad') # a new counter from an iterable"," \u003e\u003e\u003e c = Counter({'a': 4, 'b': 2}) # a new counter from a mapping"," \u003e\u003e\u003e c = Counter(a=4, b=2) # a new counter from keyword args",""," '''"," super().__init__()"," self.update(iterable, **kwds)",""," def __missing__(self, key):"," 'The count of elements not in the Counter is zero.'"," # Needed so that self[missing_item] does not raise KeyError"," return 0",""," def total(self):"," 'Sum of the counts'"," return sum(self.values())",""," def most_common(self, n=None):"," '''List the n most common elements and their counts from the most"," common to the least. If n is None, then list all element counts.",""," \u003e\u003e\u003e Counter('abracadabra').most_common(3)"," [('a', 5), ('b', 2), ('r', 2)]",""," '''"," # Emulate Bag.sortedByCount from Smalltalk"," if n is None:"," return sorted(self.items(), key=_itemgetter(1), reverse=True)",""," # Lazy import to speedup Python startup time"," import heapq"," return heapq.nlargest(n, self.items(), key=_itemgetter(1))",""," def elements(self):"," '''Iterator over elements repeating each as many times as its count.",""," \u003e\u003e\u003e c = Counter('ABCABC')"," \u003e\u003e\u003e sorted(c.elements())"," ['A', 'A', 'B', 'B', 'C', 'C']",""," Knuth's example for prime factors of 1836: 2**2 * 3**3 * 17**1",""," \u003e\u003e\u003e import math"," \u003e\u003e\u003e prime_factors = Counter({2: 2, 3: 3, 17: 1})"," \u003e\u003e\u003e math.prod(prime_factors.elements())"," 1836",""," Note, if an element's count has been set to zero or is a negative"," number, elements() will ignore it.",""," '''"," # Emulate Bag.do from Smalltalk and Multiset.begin from C++."," return _chain.from_iterable(_starmap(_repeat, self.items()))",""," # Override dict methods where necessary",""," @classmethod"," def fromkeys(cls, iterable, v=None):"," # There is no equivalent method for counters because the semantics"," # would be ambiguous in cases such as Counter.fromkeys('aaabbc', v=2)."," # Initializing counters to zero values isn't necessary because zero"," # is already the default value for counter lookups. Initializing"," # to one is easily accomplished with Counter(set(iterable)). For"," # more exotic cases, create a dictionary first using a dictionary"," # comprehension or dict.fromkeys()."," raise NotImplementedError("," 'Counter.fromkeys() is undefined. Use Counter(iterable) instead.')",""," def update(self, iterable=None, /, **kwds):"," '''Like dict.update() but add counts instead of replacing them.",""," Source can be an iterable, a dictionary, or another Counter instance.",""," \u003e\u003e\u003e c = Counter('which')"," \u003e\u003e\u003e c.update('witch') # add elements from another iterable"," \u003e\u003e\u003e d = Counter('watch')"," \u003e\u003e\u003e c.update(d) # add elements from another counter"," \u003e\u003e\u003e c['h'] # four 'h' in which, witch, and watch"," 4",""," '''"," # The regular dict.update() operation makes no sense here because the"," # replace behavior results in some of the original untouched counts"," # being mixed-in with all of the other counts for a mismash that"," # doesn't have a straight-forward interpretation in most counting"," # contexts. Instead, we implement straight-addition. Both the inputs"," # and outputs are allowed to contain zero and negative counts.",""," if iterable is not None:"," if isinstance(iterable, _collections_abc.Mapping):"," if self:"," self_get = self.get"," for elem, count in iterable.items():"," self[elem] = count + self_get(elem, 0)"," else:"," # fast path when counter is empty"," super().update(iterable)"," else:"," _count_elements(self, iterable)"," if kwds:"," self.update(kwds)",""," def subtract(self, iterable=None, /, **kwds):"," '''Like dict.update() but subtracts counts instead of replacing them."," Counts can be reduced below zero. Both the inputs and outputs are"," allowed to contain zero and negative counts.",""," Source can be an iterable, a dictionary, or another Counter instance.",""," \u003e\u003e\u003e c = Counter('which')"," \u003e\u003e\u003e c.subtract('witch') # subtract elements from another iterable"," \u003e\u003e\u003e c.subtract(Counter('watch')) # subtract elements from another counter"," \u003e\u003e\u003e c['h'] # 2 in which, minus 1 in witch, minus 1 in watch"," 0"," \u003e\u003e\u003e c['w'] # 1 in which, minus 1 in witch, minus 1 in watch"," -1",""," '''"," if iterable is not None:"," self_get = self.get"," if isinstance(iterable, _collections_abc.Mapping):"," for elem, count in iterable.items():"," self[elem] = self_get(elem, 0) - count"," else:"," for elem in iterable:"," self[elem] = self_get(elem, 0) - 1"," if kwds:"," self.subtract(kwds)",""," def copy(self):"," 'Return a shallow copy.'"," return self.__class__(self)",""," def __reduce__(self):"," return self.__class__, (dict(self),)",""," def __delitem__(self, elem):"," 'Like dict.__delitem__() but does not raise KeyError for missing values.'"," if elem in self:"," super().__delitem__(elem)",""," def __repr__(self):"," if not self:"," return f'{self.__class__.__name__}()'"," try:"," # dict() preserves the ordering returned by most_common()"," d = dict(self.most_common())"," except TypeError:"," # handle case where values are not orderable"," d = dict(self)"," return f'{self.__class__.__name__}({d!r})'",""," # Multiset-style mathematical operations discussed in:"," # Knuth TAOCP Volume II section 4.6.3 exercise 19"," # and at http://en.wikipedia.org/wiki/Multiset"," #"," # Outputs guaranteed to only include positive counts."," #"," # To strip negative and zero counts, add-in an empty counter:"," # c += Counter()"," #"," # Results are ordered according to when an element is first"," # encountered in the left operand and then by the order"," # encountered in the right operand."," #"," # When the multiplicities are all zero or one, multiset operations"," # are guaranteed to be equivalent to the corresponding operations"," # for regular sets."," # Given counter multisets such as:"," # cp = Counter(a=1, b=0, c=1)"," # cq = Counter(c=1, d=0, e=1)"," # The corresponding regular sets would be:"," # sp = {'a', 'c'}"," # sq = {'c', 'e'}"," # All of the following relations would hold:"," # set(cp + cq) == sp | sq"," # set(cp - cq) == sp - sq"," # set(cp | cq) == sp | sq"," # set(cp \u0026 cq) == sp \u0026 sq"," # (cp == cq) == (sp == sq)"," # (cp != cq) == (sp != sq)"," # (cp \u003c= cq) == (sp \u003c= sq)"," # (cp \u003c cq) == (sp \u003c sq)"," # (cp \u003e= cq) == (sp \u003e= sq)"," # (cp \u003e cq) == (sp \u003e sq)",""," def __eq__(self, other):"," 'True if all counts agree. Missing counts are treated as zero.'"," if not isinstance(other, Counter):"," return NotImplemented"," return all(self[e] == other[e] for c in (self, other) for e in c)",""," def __ne__(self, other):"," 'True if any counts disagree. Missing counts are treated as zero.'"," if not isinstance(other, Counter):"," return NotImplemented"," return not self == other",""," def __le__(self, other):"," 'True if all counts in self are a subset of those in other.'"," if not isinstance(other, Counter):"," return NotImplemented"," return all(self[e] \u003c= other[e] for c in (self, other) for e in c)",""," def __lt__(self, other):"," 'True if all counts in self are a proper subset of those in other.'"," if not isinstance(other, Counter):"," return NotImplemented"," return self \u003c= other and self != other",""," def __ge__(self, other):"," 'True if all counts in self are a superset of those in other.'"," if not isinstance(other, Counter):"," return NotImplemented"," return all(self[e] \u003e= other[e] for c in (self, other) for e in c)",""," def __gt__(self, other):"," 'True if all counts in self are a proper superset of those in other.'"," if not isinstance(other, Counter):"," return NotImplemented"," return self \u003e= other and self != other",""," def __add__(self, other):"," '''Add counts from two counters.",""," \u003e\u003e\u003e Counter('abbb') + Counter('bcc')"," Counter({'b': 4, 'c': 2, 'a': 1})",""," '''"," if not isinstance(other, Counter):"," return NotImplemented"," result = Counter()"," for elem, count in self.items():"," newcount = count + other[elem]"," if newcount \u003e 0:"," result[elem] = newcount"," for elem, count in other.items():"," if elem not in self and count \u003e 0:"," result[elem] = count"," return result",""," def __sub__(self, other):"," ''' Subtract count, but keep only results with positive counts.",""," \u003e\u003e\u003e Counter('abbbc') - Counter('bccd')"," Counter({'b': 2, 'a': 1})",""," '''"," if not isinstance(other, Counter):"," return NotImplemented"," result = Counter()"," for elem, count in self.items():"," newcount = count - other[elem]"," if newcount \u003e 0:"," result[elem] = newcount"," for elem, count in other.items():"," if elem not in self and count \u003c 0:"," result[elem] = 0 - count"," return result",""," def __or__(self, other):"," '''Union is the maximum of value in either of the input counters.",""," \u003e\u003e\u003e Counter('abbb') | Counter('bcc')"," Counter({'b': 3, 'c': 2, 'a': 1})",""," '''"," if not isinstance(other, Counter):"," return NotImplemented"," result = Counter()"," for elem, count in self.items():"," other_count = other[elem]"," newcount = other_count if count \u003c other_count else count"," if newcount \u003e 0:"," result[elem] = newcount"," for elem, count in other.items():"," if elem not in self and count \u003e 0:"," result[elem] = count"," return result",""," def __and__(self, other):"," ''' Intersection is the minimum of corresponding counts.",""," \u003e\u003e\u003e Counter('abbb') \u0026 Counter('bcc')"," Counter({'b': 1})",""," '''"," if not isinstance(other, Counter):"," return NotImplemented"," result = Counter()"," for elem, count in self.items():"," other_count = other[elem]"," newcount = count if count \u003c other_count else other_count"," if newcount \u003e 0:"," result[elem] = newcount"," return result",""," def __pos__(self):"," 'Adds an empty counter, effectively stripping negative and zero counts'"," result = Counter()"," for elem, count in self.items():"," if count \u003e 0:"," result[elem] = count"," return result",""," def __neg__(self):"," '''Subtracts from an empty counter. Strips positive and zero counts,"," and flips the sign on negative counts.",""," '''"," result = Counter()"," for elem, count in self.items():"," if count \u003c 0:"," result[elem] = 0 - count"," return result",""," def _keep_positive(self):"," '''Internal method to strip elements with a negative or zero count'''"," nonpositive = [elem for elem, count in self.items() if not count \u003e 0]"," for elem in nonpositive:"," del self[elem]"," return self",""," def __iadd__(self, other):"," '''Inplace add from another counter, keeping only positive counts.",""," \u003e\u003e\u003e c = Counter('abbb')"," \u003e\u003e\u003e c += Counter('bcc')"," \u003e\u003e\u003e c"," Counter({'b': 4, 'c': 2, 'a': 1})",""," '''"," for elem, count in other.items():"," self[elem] += count"," return self._keep_positive()",""," def __isub__(self, other):"," '''Inplace subtract counter, but keep only results with positive counts.",""," \u003e\u003e\u003e c = Counter('abbbc')"," \u003e\u003e\u003e c -= Counter('bccd')"," \u003e\u003e\u003e c"," Counter({'b': 2, 'a': 1})",""," '''"," for elem, count in other.items():"," self[elem] -= count"," return self._keep_positive()",""," def __ior__(self, other):"," '''Inplace union is the maximum of value from either counter.",""," \u003e\u003e\u003e c = Counter('abbb')"," \u003e\u003e\u003e c |= Counter('bcc')"," \u003e\u003e\u003e c"," Counter({'b': 3, 'c': 2, 'a': 1})",""," '''"," for elem, other_count in other.items():"," count = self[elem]"," if other_count \u003e count:"," self[elem] = other_count"," return self._keep_positive()",""," def __iand__(self, other):"," '''Inplace intersection is the minimum of corresponding counts.",""," \u003e\u003e\u003e c = Counter('abbb')"," \u003e\u003e\u003e c \u0026= Counter('bcc')"," \u003e\u003e\u003e c"," Counter({'b': 1})",""," '''"," for elem, count in self.items():"," other_count = other[elem]"," if other_count \u003c count:"," self[elem] = other_count"," return self._keep_positive()","","","########################################################################","### ChainMap","########################################################################","","class ChainMap(_collections_abc.MutableMapping):"," ''' A ChainMap groups multiple dicts (or other mappings) together"," to create a single, updateable view.",""," The underlying mappings are stored in a list. That list is public and can"," be accessed or updated using the *maps* attribute. There is no other"," state.",""," Lookups search the underlying mappings successively until a key is found."," In contrast, writes, updates, and deletions only operate on the first"," mapping.",""," '''",""," def __init__(self, *maps):"," '''Initialize a ChainMap by setting *maps* to the given mappings."," If no mappings are provided, a single empty dictionary is used.",""," '''"," self.maps = list(maps) or [{}] # always at least one map",""," def __missing__(self, key):"," raise KeyError(key)",""," def __getitem__(self, key):"," for mapping in self.maps:"," try:"," return mapping[key] # can't use 'key in mapping' with defaultdict"," except KeyError:"," pass"," return self.__missing__(key) # support subclasses that define __missing__",""," def get(self, key, default=None):"," return self[key] if key in self else default",""," def __len__(self):"," return len(set().union(*self.maps)) # reuses stored hash values if possible",""," def __iter__(self):"," d = {}"," for mapping in map(dict.fromkeys, reversed(self.maps)):"," d |= mapping # reuses stored hash values if possible"," return iter(d)",""," def __contains__(self, key):"," return any(key in m for m in self.maps)",""," def __bool__(self):"," return any(self.maps)",""," @_recursive_repr()"," def __repr__(self):"," return f'{self.__class__.__name__}({\", \".join(map(repr, self.maps))})'",""," @classmethod"," def fromkeys(cls, iterable, value=None, /):"," 'Create a new ChainMap with keys from iterable and values set to value.'"," return cls(dict.fromkeys(iterable, value))",""," def copy(self):"," 'New ChainMap or subclass with a new copy of maps[0] and refs to maps[1:]'"," return self.__class__(self.maps[0].copy(), *self.maps[1:])",""," __copy__ = copy",""," def new_child(self, m=None, **kwargs): # like Django's Context.push()"," '''New ChainMap with a new map followed by all previous maps."," If no map is provided, an empty dict is used."," Keyword arguments update the map or new empty dict."," '''"," if m is None:"," m = kwargs"," elif kwargs:"," m.update(kwargs)"," return self.__class__(m, *self.maps)",""," @property"," def parents(self): # like Django's Context.pop()"," 'New ChainMap from maps[1:].'"," return self.__class__(*self.maps[1:])",""," def __setitem__(self, key, value):"," self.maps[0][key] = value",""," def __delitem__(self, key):"," try:"," del self.maps[0][key]"," except KeyError:"," raise KeyError(f'Key not found in the first mapping: {key!r}')",""," def popitem(self):"," 'Remove and return an item pair from maps[0]. Raise KeyError is maps[0] is empty.'"," try:"," return self.maps[0].popitem()"," except KeyError:"," raise KeyError('No keys found in the first mapping.')",""," def pop(self, key, *args):"," 'Remove *key* from maps[0] and return its value. Raise KeyError if *key* not in maps[0].'"," try:"," return self.maps[0].pop(key, *args)"," except KeyError:"," raise KeyError(f'Key not found in the first mapping: {key!r}')",""," def clear(self):"," 'Clear maps[0], leaving maps[1:] intact.'"," self.maps[0].clear()",""," def __ior__(self, other):"," self.maps[0].update(other)"," return self",""," def __or__(self, other):"," if not isinstance(other, _collections_abc.Mapping):"," return NotImplemented"," m = self.copy()"," m.maps[0].update(other)"," return m",""," def __ror__(self, other):"," if not isinstance(other, _collections_abc.Mapping):"," return NotImplemented"," m = dict(other)"," for child in reversed(self.maps):"," m.update(child)"," return self.__class__(m)","","","################################################################################","### UserDict","################################################################################","","class UserDict(_collections_abc.MutableMapping):",""," # Start by filling-out the abstract methods"," def __init__(self, dict=None, /, **kwargs):"," self.data = {}"," if dict is not None:"," self.update(dict)"," if kwargs:"," self.update(kwargs)",""," def __len__(self):"," return len(self.data)",""," def __getitem__(self, key):"," if key in self.data:"," return self.data[key]"," if hasattr(self.__class__, \"__missing__\"):"," return self.__class__.__missing__(self, key)"," raise KeyError(key)",""," def __setitem__(self, key, item):"," self.data[key] = item",""," def __delitem__(self, key):"," del self.data[key]",""," def __iter__(self):"," return iter(self.data)",""," # Modify __contains__ and get() to work like dict"," # does when __missing__ is present."," def __contains__(self, key):"," return key in self.data",""," def get(self, key, default=None):"," if key in self:"," return self[key]"," return default","",""," # Now, add the methods in dicts but not in MutableMapping"," def __repr__(self):"," return repr(self.data)",""," def __or__(self, other):"," if isinstance(other, UserDict):"," return self.__class__(self.data | other.data)"," if isinstance(other, dict):"," return self.__class__(self.data | other)"," return NotImplemented",""," def __ror__(self, other):"," if isinstance(other, UserDict):"," return self.__class__(other.data | self.data)"," if isinstance(other, dict):"," return self.__class__(other | self.data)"," return NotImplemented",""," def __ior__(self, other):"," if isinstance(other, UserDict):"," self.data |= other.data"," else:"," self.data |= other"," return self",""," def __copy__(self):"," inst = self.__class__.__new__(self.__class__)"," inst.__dict__.update(self.__dict__)"," # Create a copy and avoid triggering descriptors"," inst.__dict__[\"data\"] = self.__dict__[\"data\"].copy()"," return inst",""," def copy(self):"," if self.__class__ is UserDict:"," return UserDict(self.data.copy())"," import copy"," data = self.data"," try:"," self.data = {}"," c = copy.copy(self)"," finally:"," self.data = data"," c.update(self)"," return c",""," @classmethod"," def fromkeys(cls, iterable, value=None):"," d = cls()"," for key in iterable:"," d[key] = value"," return d","","","################################################################################","### UserList","################################################################################","","class UserList(_collections_abc.MutableSequence):"," \"\"\"A more or less complete user-defined wrapper around list objects.\"\"\"",""," def __init__(self, initlist=None):"," self.data = []"," if initlist is not None:"," # XXX should this accept an arbitrary sequence?"," if type(initlist) == type(self.data):"," self.data[:] = initlist"," elif isinstance(initlist, UserList):"," self.data[:] = initlist.data[:]"," else:"," self.data = list(initlist)",""," def __repr__(self):"," return repr(self.data)",""," def __lt__(self, other):"," return self.data \u003c self.__cast(other)",""," def __le__(self, other):"," return self.data \u003c= self.__cast(other)",""," def __eq__(self, other):"," return self.data == self.__cast(other)",""," def __gt__(self, other):"," return self.data \u003e self.__cast(other)",""," def __ge__(self, other):"," return self.data \u003e= self.__cast(other)",""," def __cast(self, other):"," return other.data if isinstance(other, UserList) else other",""," def __contains__(self, item):"," return item in self.data",""," def __len__(self):"," return len(self.data)",""," def __getitem__(self, i):"," if isinstance(i, slice):"," return self.__class__(self.data[i])"," else:"," return self.data[i]",""," def __setitem__(self, i, item):"," self.data[i] = item",""," def __delitem__(self, i):"," del self.data[i]",""," def __add__(self, other):"," if isinstance(other, UserList):"," return self.__class__(self.data + other.data)"," elif isinstance(other, type(self.data)):"," return self.__class__(self.data + other)"," return self.__class__(self.data + list(other))",""," def __radd__(self, other):"," if isinstance(other, UserList):"," return self.__class__(other.data + self.data)"," elif isinstance(other, type(self.data)):"," return self.__class__(other + self.data)"," return self.__class__(list(other) + self.data)",""," def __iadd__(self, other):"," if isinstance(other, UserList):"," self.data += other.data"," elif isinstance(other, type(self.data)):"," self.data += other"," else:"," self.data += list(other)"," return self",""," def __mul__(self, n):"," return self.__class__(self.data * n)",""," __rmul__ = __mul__",""," def __imul__(self, n):"," self.data *= n"," return self",""," def __copy__(self):"," inst = self.__class__.__new__(self.__class__)"," inst.__dict__.update(self.__dict__)"," # Create a copy and avoid triggering descriptors"," inst.__dict__[\"data\"] = self.__dict__[\"data\"][:]"," return inst",""," def append(self, item):"," self.data.append(item)",""," def insert(self, i, item):"," self.data.insert(i, item)",""," def pop(self, i=-1):"," return self.data.pop(i)",""," def remove(self, item):"," self.data.remove(item)",""," def clear(self):"," self.data.clear()",""," def copy(self):"," return self.__class__(self)",""," def count(self, item):"," return self.data.count(item)",""," def index(self, item, *args):"," return self.data.index(item, *args)",""," def reverse(self):"," self.data.reverse()",""," def sort(self, /, *args, **kwds):"," self.data.sort(*args, **kwds)",""," def extend(self, other):"," if isinstance(other, UserList):"," self.data.extend(other.data)"," else:"," self.data.extend(other)","","","################################################################################","### UserString","###### 8000 ##########################################################################","","class UserString(_collections_abc.Sequence):",""," def __init__(self, seq):"," if isinstance(seq, str):"," self.data = seq"," elif isinstance(seq, UserString):"," self.data = seq.data[:]"," else:"," self.data = str(seq)",""," def __str__(self):"," return str(self.data)",""," def __repr__(self):"," return repr(self.data)",""," def __int__(self):"," return int(self.data)",""," def __float__(self):"," return float(self.data)",""," def __complex__(self):"," return complex(self.data)",""," def __hash__(self):"," return hash(self.data)",""," def __getnewargs__(self):"," return (self.data[:],)",""," def __eq__(self, string):"," if isinstance(string, UserString):"," return self.data == string.data"," return self.data == string",""," def __lt__(self, string):"," if isinstance(string, UserString):"," return self.data \u003c string.data"," return self.data \u003c string",""," def __le__(self, string):"," if isinstance(string, UserString):"," return self.data \u003c= string.data"," return self.data \u003c= string",""," def __gt__(self, string):"," if isinstance(string, UserString):"," return self.data \u003e string.data"," return self.data \u003e string",""," def __ge__(self, string):"," if isinstance(string, UserString):"," return self.data \u003e= string.data"," return self.data \u003e= string",""," def __contains__(self, char):"," if isinstance(char, UserString):"," char = char.data"," return char in self.data",""," def __len__(self):"," return len(self.data)",""," def __getitem__(self, index):"," return self.__class__(self.data[index])",""," def __add__(self, other):"," if isinstance(other, UserString):"," return self.__class__(self.data + other.data)"," elif isinstance(other, str):"," return self.__class__(self.data + other)"," return self.__class__(self.data + str(other))",""," def __radd__(self, other):"," if isinstance(other, str):"," return self.__class__(other + self.data)"," return self.__class__(str(other) + self.data)",""," def __mul__(self, n):"," return self.__class__(self.data * n)",""," __rmul__ = __mul__",""," def __mod__(self, args):"," return self.__class__(self.data % args)",""," def __rmod__(self, template):"," return self.__class__(str(template) % self)",""," # the following methods are defined in alphabetical order:"," def capitalize(self):"," return self.__class__(self.data.capitalize())",""," def casefold(self):"," return self.__class__(self.data.casefold())",""," def center(self, width, *args):"," return self.__class__(self.data.center(width, *args))",""," def count(self, sub, start=0, end=_sys.maxsize):"," if isinstance(sub, UserString):"," sub = sub.data"," return self.data.count(sub, start, end)",""," def removeprefix(self, prefix, /):"," if isinstance(prefix, UserString):"," prefix = prefix.data"," return self.__class__(self.data.removeprefix(prefix))",""," def removesuffix(self, suffix, /):"," if isinstance(suffix, UserString):"," suffix = suffix.data"," return self.__class__(self.data.removesuffix(suffix))",""," def encode(self, encoding='utf-8', errors='strict'):"," encoding = 'utf-8' if encoding is None else encoding"," errors = 'strict' if errors is None else errors"," return self.data.encode(encoding, errors)",""," def endswith(self, suffix, start=0, end=_sys.maxsize):"," return self.data.endswith(suffix, start, end)",""," def expandtabs(self, tabsize=8):"," return self.__class__(self.data.expandtabs(tabsize))",""," def find(self, sub, start=0, end=_sys.maxsize):"," if isinstance(sub, UserString):"," sub = sub.data"," return self.data.find(sub, start, end)",""," def format(self, /, *args, **kwds):"," return self.data.format(*args, **kwds)",""," def format_map(self, mapping):"," return self.data.format_map(mapping)",""," def index(self, sub, start=0, end=_sys.maxsize):"," return self.data.index(sub, start, end)",""," def isalpha(self):"," return self.data.isalpha()",""," def isalnum(self):"," return self.data.isalnum()",""," def isascii(self):"," return self.data.isascii()",""," def isdecimal(self):"," return self.data.isdecimal()",""," def isdigit(self):"," return self.data.isdigit()",""," def isidentifier(self):"," return self.data.isidentifier()",""," def islower(self):"," return self.data.islower()",""," def isnumeric(self):"," return self.data.isnumeric()",""," def isprintable(self):"," return self.data.isprintable()",""," def isspace(self):"," return self.data.isspace()",""," def istitle(self):"," return self.data.istitle()",""," def isupper(self):"," return self.data.isupper()",""," def join(self, seq):"," return self.data.join(seq)",""," def ljust(self, width, *args):"," return self.__class__(self.data.ljust(width, *args))",""," def lower(self):"," return self.__class__(self.data.lower())",""," def lstrip(self, chars=None):"," return self.__class__(self.data.lstrip(chars))",""," maketrans = str.maketrans",""," def partition(self, sep):"," return self.data.partition(sep)",""," def replace(self, old, new, maxsplit=-1):"," if isinstance(old, UserString):"," old = old.data"," if isinstance(new, UserString):"," new = new.data"," return self.__class__(self.data.replace(old, new, maxsplit))",""," def rfind(self, sub, start=0, end=_sys.maxsize):"," if isinstance(sub, UserString):"," sub = sub.data"," return self.data.rfind(sub, start, end)",""," def rindex(self, sub, start=0, end=_sys.maxsize):"," return self.data.rindex(sub, start, end)",""," def rjust(self, width, *args):"," return self.__class__(self.data.rjust(width, *args))",""," def rpartition(self, sep):"," return self.data.rpartition(sep)",""," def rstrip(self, chars=None):"," return self.__class__(self.data.rstrip(chars))",""," def split(self, sep=None, maxsplit=-1):"," return self.data.split(sep, maxsplit)",""," def rsplit(self, sep=None, maxsplit=-1):"," return self.data.rsplit(sep, maxsplit)",""," def splitlines(self, keepends=False):"," return self.data.splitlines(keepends)",""," def startswith(self, prefix, start=0, end=_sys.maxsize):"," return self.data.startswith(prefix, start, end)",""," def strip(self, chars=None):"," return self.__class__(self.data.strip(chars))",""," def swapcase(self):"," return self.__class__(self.data.swapcase())",""," def title(self):"," return self.__class__(self.data.title())",""," def translate(self, *args):"," return self.__class__(self.data.translate(*args))",""," def upper(self):"," return self.__class__(self.data.upper())",""," def zfill(self, width):"," return self.__class__(self.data.zfill(width))"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/python/cpython/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"__init__.py","displayUrl":"https://github.com/python/cpython/blob/3.13/Lib/collections/__init__.py?raw=true","headerInfo":{"blobSize":"51.3 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"0fe81ed","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fblob%2F3.13%2FLib%2Fcollections%2F__init__.py","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"1596","truncatedSloc":"1285"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Python","languageID":303,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/python/cpython/blob/3.13/Lib/collections/__init__.py","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/python/cpython/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/python/cpython/raw/refs/heads/3.13/Lib/collections/__init__.py","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":4,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":"/python/.github/blob/5a0a7cb55767fb3667fe2391bcb66bda638edcb4/FUNDING.yml","showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"__all__","kind":"constant","ident_start":839,"ident_end":846,"extent_start":839,"extent_end":1002,"fully_qualified_name":"__all__","ident_utf16":{"start":{"line_number":16,"utf16_col":0},"end":{"line_number":16,"utf16_col":7}},"extent_utf16":{"start":{"line_number":16,"utf16_col":0},"end":{"line_number":26,"utf16_col":1}}},{"name":"abc","kind":"constant","ident_start":1099,"ident_end":1102,"extent_start":1099,"extent_end":1121,"fully_qualified_name":"abc","ident_utf16":{"start":{"line_number":32,"utf16_col":0},"end":{"line_number":32,"utf16_col":3}},"extent_utf16":{"start":{"line_number":32,"utf16_col":0},"end":{"line_number":32,"utf16_col":22}}},{"name":"_OrderedDictKeysView","kind":"class","ident_start":1928,"ident_end":1948,"extent_start":1922,"extent_end":2048,"fully_qualified_name":"_OrderedDictKeysView","ident_utf16":{"start":{"line_number":65,"utf16_col":6},"end":{"line_number":65,"utf16_col":26}},"extent_utf16":{"start":{"line_number":65,"utf16_col":0},"end":{"line_number":68,"utf16_col":42}}},{"name":"__reversed__","kind":"function","ident_start":1986,"ident_end":1998,"extent_start":1982,"extent_end":2048,"fully_qualified_name":"_OrderedDictKeysView.__reversed__","ident_utf16":{"start":{"line_number":67,"utf16_col":8},"end":{"line_number":67,"utf16_col":20}},"extent_utf16":{"start":{"line_number":67,"utf16_col":4},"end":{"line_number":68,"utf16_col":42}}},{"name":"_OrderedDictItemsView","kind":"class","ident_start":2056,"ident_end":2077,"extent_start":2050,"extent_end":2223,"fully_qualified_name":"_OrderedDictItemsView","ident_utf16":{"start":{"line_number":70,"utf16_col":6},"end":{"line_number":70,"utf16_col":27}},"extent_utf16":{"start":{"line_number":70,"utf16_col":0},"end":{"line_number":74,"utf16_col":43}}},{"name":"__reversed__","kind":"function","ident_start":2116,"ident_end":2128,"extent_start":2112,"extent_end":2223,"fully_qualified_name":"_OrderedDictItemsView.__reversed__","ident_utf16":{"start":{"line_number":72,"utf16_col":8},"end":{"line_number":72,"utf16_col":20}},"extent_utf16":{"start":{"line_number":72,"utf16_col":4},"end":{"line_number":74,"utf16_col":43}}},{"name":"_OrderedDictValuesView","kind":"class","ident_start":2231,"ident_end":2253,"extent_start":2225,"extent_end":2393,"fully_qualified_name":"_OrderedDictValuesView","ident_utf16":{"start":{"line_number":76,"utf16_col":6},"end":{"line_number":76,"utf16_col":28}},"extent_utf16":{"start":{"line_number":76,"utf16_col":0},"end":{"line_number":80,"utf16_col":36}}},{"name":"__reversed__","kind":"function","ident_start":2293,"ident_end":2305,"extent_start":2289,"extent_end":2393,"fully_qualified_name":"_OrderedDictValuesView.__reversed__","ident_utf16":{"start":{"line_number":78,"utf16_col":8},"end":{"line_number":78,"utf16_col":20}},"extent_utf16":{"start":{"line_number":78,"utf16_col":4},"end":{"line_number":80,"utf16_col":36}}},{"name":"_Link","kind":"class","ident_start":2401,"ident_end":2406,"extent_start":2395,"extent_end":2468,"fully_qualified_name":"_Link","ident_utf16":{"start":{"line_number":82,"utf16_col":6},"end":{"line_number":82,"utf16_col":11}},"extent_utf16":{"start":{"line_number":82,"utf16_col":0},"end":{"line_number":83,"utf16_col":52}}},{"name":"__slots__","kind":"constant","ident_start":2420,"ident_end":2429,"extent_start":2420,"extent_end":2468,"fully_qualified_name":"_Link.__slots__","ident_utf16":{"start":{"line_number":83,"utf16_col":4},"end":{"line_number":83,"utf16_col":13}},"extent_utf16":{"start":{"line_number":83,"utf16_col":4},"end":{"line_number":83,"utf16_col":52}}},{"name":"OrderedDict","kind":"class","ident_start":2476,"ident_end":2487,"extent_start":2470,"extent_end":11243,"fully_qualified_name":"OrderedDict","ident_utf16":{"start":{"line_number":85,"utf16_col":6},"end":{"line_number":85,"utf16_col":17}},"extent_utf16":{"start":{"line_number":85,"utf16_col":0},"end":{"line_number":338,"utf16_col":18}}},{"name":"__new__","kind":"function","ident_start":3348,"ident_end":3355,"extent_start":3344,"extent_end":3659,"fully_qualified_name":"OrderedDict.__new__","ident_utf16":{"start":{"line_number":100,"utf16_col":8},"end":{"line_number":100,"utf16_col":15}},"extent_utf16":{"start":{"line_number":100,"utf16_col":4},"end":{"line_number":107,"utf16_col":19}}},{"name":"__init__","kind":"function","ident_start":3669,"ident_end":3677,"extent_start":3665,"extent_end":3897,"fully_qualified_name":"OrderedDict.__init__","ident_utf16":{"start":{"line_number":109,"utf16_col":8},"end":{"line_number":109,"utf16_col":16}},"extent_utf16":{"start":{"line_number":109,"utf16_col":4},"end":{"line_number":113,"utf16_col":36}}},{"name":"__setitem__","kind":"function","ident_start":3907,"ident_end":3918,"extent_start":3903,"extent_end":4513,"fully_qualified_name":"OrderedDict.__setitem__","ident_utf16":{"start":{"line_number":115,"utf16_col":8},"end":{"line_number":115,"utf16_col":19}},"extent_utf16":{"start":{"line_number":115,"utf16_col":4},"end":{"line_number":127,"utf16_col":38}}},{"name":"__delitem__","kind":"function","ident_start":4523,"ident_end":4534,"extent_start":4519,"extent_end":5027,"fully_qualified_name":"OrderedDict.__delitem__","ident_utf16":{"start":{"line_number":129,"utf16_col":8},"end":{"line_number":129,"utf16_col":19}},"extent_utf16":{"start":{"line_number":129,"utf16_col":4},"end":{"line_number":140,"utf16_col":24}}},{"name":"__iter__","kind":"function","ident_start":5037,"ident_end":5045,"extent_start":5033,"extent_end":5275,"fully_qualified_name":"OrderedDict.__iter__","ident_utf16":{"start":{"line_number":142,"utf16_col":8},"end":{"line_number":142,"utf16_col":16}},"extent_utf16":{"start":{"line_number":142,"utf16_col":4},"end":{"line_number":149,"utf16_col":28}}},{"name":"__reversed__","kind":"function","ident_start":5285,"ident_end":5297,"extent_start":5281,"extent_end":5543,"fully_qualified_name":"OrderedDict.__reversed__","ident_utf16":{"start":{"line_number":151,"utf16_col":8},"end":{"line_number":151,"utf16_col":20}},"extent_utf16":{"start":{"line_number":151,"utf16_col":4},"end":{"line_number":158,"utf16_col":28}}},{"name":"clear","kind":"function","ident_start":5553,"ident_end":5558,"extent_start":5549,"extent_end":5738,"fully_qualified_name":"OrderedDict.clear","ident_utf16":{"start":{"line_number":160,"utf16_col":8},"end":{"line_number":160,"utf16_col":13}},"extent_utf16":{"start":{"line_number":160,"utf16_col":4},"end":{"line_number":165,"utf16_col":24}}},{"name":"popitem","kind":"function","ident_start":5748,"ident_end":5755,"extent_start":5744,"extent_end":6441,"fully_qualified_name":"OrderedDict.popitem","ident_utf16":{"start":{"line_number":167,"utf16_col":8},"end":{"line_number":167,"utf16_col":15}},"extent_utf16":{"start":{"line_number":167,"utf16_col":4},"end":{"line_number":188,"utf16_col":25}}},{"name":"move_to_end","kind":"function","ident_start":6451,"ident_end":6462,"extent_start":6447,"extent_end":7189,"fully_qualified_name":"OrderedDict.move_to_end","ident_utf16":{"start":{"line_number":190,"utf16_col":8},"end":{"line_number":190,"utf16_col":19}},"extent_utf16":{"start":{"line_number":190,"utf16_col":4},"end":{"line_number":213,"utf16_col":28}}},{"name":"__sizeof__","kind":"function","ident_start":7199,"ident_end":7209,"extent_start":7195,"extent_end":7629,"fully_qualified_name":"OrderedDict.__sizeof__","ident_utf16":{"start":{"line_number":215,"utf16_col":8},"end":{"line_number":215,"utf16_col":18}},"extent_utf16":{"start":{"line_number":215,"utf16_col":4},"end":{"line_number":222,"utf16_col":19}}},{"name":"update","kind":"constant","ident_start":7635,"ident_end":7641,"extent_start":7635,"extent_end":7693,"fully_qualified_name":"OrderedDict.update","ident_utf16":{"start":{"line_number":224,"utf16_col":4},"end":{"line_number":224,"utf16_col":10}},"extent_utf16":{"start":{"line_number":224,"utf16_col":4},"end":{"line_number":224,"utf16_col":62}}},{"name":"keys","kind":"function","ident_start":7703,"ident_end":7707,"extent_start":7699,"extent_end":7825,"fully_qualified_name":"OrderedDict.keys","ident_utf16":{"start":{"line_number":226,"utf16_col":8},"end":{"line_number":226,"utf16_col":12}},"extent_utf16":{"start":{"line_number":226,"utf16_col":4},"end":{"line_number":228,"utf16_col":41}}},{"name":"items","kind":"function","ident_start":7835,"ident_end":7840,"extent_start":7831,"extent_end":7961,"fully_qualified_name":"OrderedDict.items","ident_utf16":{"start":{"line_number":230,"utf16_col":8},"end":{"line_number":230,"utf16_col":13}},"extent_utf16":{"start":{"line_number":230,"utf16_col":4},"end":{"line_number":232,"utf16_col":42}}},{"name":"values","kind":"function","ident_start":7971,"ident_end":7977,"extent_start":7967,"extent_end":8093,"fully_qualified_name":"OrderedDict.values","ident_utf16":{"start":{"line_number":234,"utf16_col":8},"end":{"line_number":234,"utf16_col":14}},"extent_utf16":{"start":{"line_number":234,"utf16_col":4},"end":{"line_number":236,"utf16_col":43}}},{"name":"__ne__","kind":"constant","ident_start":8099,"ident_end":8105,"extent_start":8099,"extent_end":8146,"fully_qualified_name":"OrderedDict.__ne__","ident_utf16":{"start":{"line_number":238,"utf16_col":4},"end":{"line_number":238,"utf16_col":10}},"extent_utf16":{"start":{"line_number":238,"utf16_col":4},"end":{"line_number":238,"utf16_col":51}}},{"name":"__marker","kind":"constant","ident_start":8152,"ident_end":8160,"extent_start":8152,"extent_end":8171,"fully_qualified_name":"OrderedDict.__marker","ident_utf16":{"start":{"line_number":240,"utf16_col":4},"end":{"line_number":240,"utf16_col":12}},"extent_utf16":{"start":{"line_number":240,"utf16_col":4},"end":{"line_number":240,"utf16_col":23}}},{"name":"pop","kind":"function","ident_start":8181,"ident_end":8184,"extent_start":8177,"extent_end":8914,"fully_qualified_name":"OrderedDict.pop","ident_utf16":{"start":{"line_number":242,"utf16_col":8},"end":{"line_number":242,"utf16_col":11}},"extent_utf16":{"start":{"line_number":242,"utf16_col":4},"end":{"line_number":262,"utf16_col":22}}},{"name":"setdefault","kind":"function","ident_start":8924,"ident_end":8934,"extent_start":8920,"extent_end":9232,"fully_qualified_name":"OrderedDict.setdefault","ident_utf16":{"start":{"line_number":264,"utf16_col":8},"end":{"line_number":264,"utf16_col":18}},"extent_utf16":{"start":{"line_number":264,"utf16_col":4},"end":{"line_number":272,"utf16_col":22}}},{"name":"__repr__","kind":"function","ident_start":9265,"ident_end":9273,"extent_start":9261,"extent_end":9466,"fully_qualified_name":"OrderedDict.__repr__","ident_utf16":{"start":{"line_number":275,"utf16_col":8},"end":{"line_number":275,"utf16_col":16}},"extent_utf16":{"start":{"line_number":275,"utf16_col":4},"end":{"line_number":279,"utf16_col":71}}},{"name":"__reduce__","kind":"function","ident_start":9476,"ident_end":9486,"extent_start":9472,"extent_end":10078,"fully_qualified_name":"OrderedDict.__reduce__","ident_utf16":{"start":{"line_number":281,"utf16_col":8},"end":{"line_number":281,"utf16_col":18}},"extent_utf16":{"start":{"line_number":281,"utf16_col":4},"end":{"line_number":298,"utf16_col":66}}},{"name":"copy","kind":"function","ident_start":10088,"ident_end":10092,"extent_start":10084,"extent_end":10179,"fully_qualified_name":"OrderedDict.copy","ident_utf16":{"start":{"line_number":300,"utf16_col":8},"end":{"line_number":300,"utf16_col":12}},"extent_utf16":{"start":{"line_number":300,"utf16_col":4},"end":{"line_number":302,"utf16_col":35}}},{"name":"fromkeys","kind":"function","ident_start":10206,"ident_end":10214,"extent_start":10202,"extent_end":10446,"fully_qualified_name":"OrderedDict.fromkeys","ident_utf16":{"start":{"line_number":305,"utf16_col":8},"end":{"line_number":305,"utf16_col":16}},"extent_utf16":{"start":{"line_number":305,"utf16_col":4},"end":{"line_number":311,"utf16_col":19}}},{"name":"__eq__","kind":"function","ident_start":10456,"ident_end":10462,"extent_start":10452,"extent_end":10796,"fully_qualified_name":"OrderedDict.__eq__","ident_utf16":{"start":{"line_number":313,"utf16_col":8},"end":{"line_number":313,"utf16_col":14}},"extent_utf16":{"start":{"line_number":313,"utf16_col":4},"end":{"line_number":320,"utf16_col":39}}},{"name":"__ior__","kind":"function","ident_start":10806,"ident_end":10813,"extent_start":10802,"extent_end":10874,"fully_qualified_name":"OrderedDict.__ior__","ident_utf16":{"start":{"line_number":322,"utf16_col":8},"end":{"line_number":322,"utf16_col":15}},"extent_utf16":{"start":{"line_number":322,"utf16_col":4},"end":{"line_number":324,"utf16_col":19}}},{"name":"__or__","kind":"function","ident_start":10884,"ident_end":10890,"extent_start":10880,"extent_end":11058,"fully_qualified_name":"OrderedDict.__or__","ident_utf16":{"start":{"line_number":326,"utf16_col":8},"end":{"line_number":326,"utf16_col":14}},"extent_utf16":{"start":{"line_number":326,"utf16_col":4},"end":{"line_number":331,"utf16_col":18}}},{"name":"__ror__","kind":"function","ident_start":11068,"ident_end":11075,"extent_start":11064,"extent_end":11243,"fully_qualified_name":"OrderedDict.__ror__","ident_utf16":{"start":{"line_number":333,"utf16_col":8},"end":{"line_number":333,"utf16_col":15}},"extent_utf16":{"start":{"line_number":333,"utf16_col":4},"end":{"line_number":338,"utf16_col":18}}},{"name":"namedtuple","kind":"function","ident_start":11695,"ident_end":11705,"extent_start":11691,"extent_end":18178,"fully_qualified_name":"namedtuple","ident_utf16":{"start":{"line_number":357,"utf16_col":4},"end":{"line_number":357,"utf16_col":14}},"extent_utf16":{"start":{"line_number":357,"utf16_col":0},"end":{"line_number":529,"utf16_col":17}}},{"name":"_make","kind":"function","ident_start":15337,"ident_end":15342,"extent_start":15333,"extent_end":15544,"fully_qualified_name":"_make","ident_utf16":{"start":{"line_number":450,"utf16_col":8},"end":{"line_number":450,"utf16_col":13}},"extent_utf16":{"start":{"line_number":450,"utf16_col":4},"end":{"line_number":454,"utf16_col":21}}},{"name":"_replace","kind":"function","ident_start":15679,"ident_end":15687,"extent_start":15675,"extent_end":15882,"fully_qualified_name":"_replace","ident_utf16":{"start":{"line_number":459,"utf16_col":8},"end":{"line_number":459,"utf16_col":16}},"extent_utf16":{"start":{"line_number":459,"utf16_col":4},"end":{"line_number":463,"utf16_col":21}}},{"name":"__repr__","kind":"function","ident_start":16022,"ident_end":16030,"extent_start":16018,"extent_end":16152,"fully_qualified_name":"__repr__","ident_utf16":{"start":{"line_number":468,"utf16_col":8},"end":{"line_number":468,"utf16_col":16}},"extent_utf16":{"start":{"line_number":468,"utf16_col":4},"end":{"line_number":470,"utf16_col":56}}},{"name":"_asdict","kind":"function","ident_start":16162,"ident_end":16169,"extent_start":16158,"extent_end":16291,"fully_qualified_name":"_asdict","ident_utf16":{"start":{"line_number":472,"utf16_col":8},"end":{"line_number":472,"utf16_col":15}},"extent_utf16":{"start":{"line_number":472,"utf16_col":4},"end":{"line_number":474,"utf16_col":46}}},{"name":"__getnewargs__","kind":"function","ident_start":16301,"ident_end":16315,"extent_start":16297,"extent_end":16416,"fully_qualified_name":"__getnewargs__","ident_utf16":{"start":{"line_number":476,"utf16_col":8},"end":{"line_number":476,"utf16_col":22}},"extent_utf16":{"start":{"line_number":476,"utf16_col":4},"end":{"line_number":478,"utf16_col":27}}},{"name":"_count_elements","kind":"function","ident_start":18345,"ident_end":18360,"extent_start":18341,"extent_end":18525,"fully_qualified_name":"_count_elements","ident_utf16":{"start":{"line_number":536,"utf16_col":4},"end":{"line_number":536,"utf16_col":19}},"extent_utf16":{"start":{"line_number":536,"utf16_col":0},"end":{"line_number":540,"utf16_col":48}}},{"name":"Counter","kind":"class","ident_start":18686,"ident_end":18693,"extent_start":18680,"extent_end":34563,"fully_qualified_name":"Counter","ident_utf16":{"start":{"line_number":547,"utf16_col":6},"end":{"line_number":547,"utf16_col":13}},"extent_utf16":{"start":{"line_number":547,"utf16_col":0},"end":{"line_number":981,"utf16_col":36}}},{"name":"__init__","kind":"function","ident_start":20744,"ident_end":20752,"extent_start":20740,"extent_end":21386,"fully_qualified_name":"Counter.__init__","ident_utf16":{"start":{"line_number":598,"utf16_col":8},"end":{"line_number":598,"utf16_col":16}},"extent_utf16":{"start":{"line_number":598,"utf16_col":4},"end":{"line_number":610,"utf16_col":37}}},{"name":"__missing__","kind":"function","ident_start":21396,"ident_end":21407,"extent_start":21392,"extent_end":21564,"fully_qualified_name":"Counter.__missing__","ident_utf16":{"start":{"line_number":612,"utf16_col":8},"end":{"line_number":612,"utf16_col":19}},"extent_utf16":{"start":{"line_number":612,"utf16_col":4},"end":{"line_number":615,"utf16_col":16}}},{"name":"total","kind":"function","ident_start":21574,"ident_end":21579,"extent_start":21570,"extent_end":21648,"fully_qualified_name":"Counter.total","ident_utf16":{"start":{"line_number":617,"utf16_col":8},"end":{"line_number":617,"utf16_col":13}},"extent_utf16":{"start":{"line_number":617,"utf16_col":4},"end":{"line_number":619,"utf16_col":33}}},{"name":"most_common","kind":"function","ident_start":21658,"ident_end":21669,"extent_start":21654,"extent_end":22224,"fully_qualified_name":"Counter.most_common","ident_utf16":{"start":{"line_number":621,"utf16_col":8},"end":{"line_number":621,"utf16_col":19}},"extent_utf16":{"start":{"line_number":621,"utf16_col":4},"end":{"line_number":635,"utf16_col":66}}},{"name":"elements","kind":"function","ident_start":22234,"ident_end":22242,"extent_start":22230,"extent_end":22918,"fully_qualified_name":"Counter.elements","ident_utf16":{"start":{"line_number":637,"utf16_col":8},"end":{"line_number":637,"utf16_col":16}},"extent_utf16":{"start":{"line_number":637,"utf16_col":4},"end":{"line_number":656,"utf16_col":68}}},{"name":"fromkeys","kind":"function","ident_start":22990,"ident_end":22998,"extent_start":22986,"extent_end":23633,"fully_qualified_name":"Counter.fromkeys","ident_utf16":{"start":{"line_number":661,"utf16_col":8},"end":{"line_number":661,"utf16_col":16}},"extent_utf16":{"start":{"line_number":661,"utf16_col":4},"end":{"line_number":670,"utf16_col":79}}},{"name":"update","kind":"function","ident_start":23643,"ident_end":23649,"extent_start":23639,"extent_end":25121,"fully_qualified_name":"Counter.update","ident_utf16":{"start":{"line_number":672,"utf16_col":8},"end":{"line_number":672,"utf16_col":14}},"extent_utf16":{"start":{"line_number":672,"utf16_col":4},"end":{"line_number":704,"utf16_col":29}}},{"name":"subtract","kind":"function","ident_start":25131,"ident_end":25139,"extent_start":25127,"extent_end":26282,"fully_qualified_name":"Counter.subtract","ident_utf16":{"start":{"line_number":706,"utf16_col":8},"end":{"line_number":706,"utf16_col":16}},"extent_utf16":{"start":{"line_number":706,"utf16_col":4},"end":{"line_number":731,"utf16_col":31}}},{"name":"copy","kind":"function","ident_start":26292,"ident_end":26296,"extent_start":26288,"extent_end":26372,"fully_qualified_name":"Counter.copy","ident_utf16":{"start":{"line_number":733,"utf16_col":8},"end":{"line_number":733,"utf16_col":12}},"extent_utf16":{"start":{"line_number":733,"utf16_col":4},"end":{"line_number":735,"utf16_col":35}}},{"name":"__reduce__","kind":"function","ident_start":26382,"ident_end":26392,"extent_start":26378,"extent_end":26444,"fully_qualified_name":"Counter.__reduce__","ident_utf16":{"start":{"line_number":737,"utf16_col":8},"end":{"line_number":737,"utf16_col":18}},"extent_utf16":{"start":{"line_number":737,"utf16_col":4},"end":{"line_number":738,"utf16_col":44}}},{"name":"__delitem__","kind":"function","ident_start":26454,"ident_end":26465,"extent_start":26450,"extent_end":26623,"fully_qualified_name":"Counter.__delitem__","ident_utf16":{"start":{"line_number":740,"utf16_col":8},"end":{"line_number":740,"utf16_col":19}},"extent_utf16":{"start":{"line_number":740,"utf16_col":4},"end":{"line_number":743,"utf16_col":37}}},{"name":"__repr__","kind":"function","ident_start":26633,"ident_end":26641,"extent_start":26629,"extent_end":27004,"fully_qualified_name":"Counter.__repr__","ident_utf16":{"start":{"line_number":745,"utf16_col":8},"end":{"line_number":745,"utf16_col":16}},"extent_utf16":{"start":{"line_number":745,"utf16_col":4},"end":{"line_number":754,"utf16_col":50}}},{"name":"__eq__","kind":"function","ident_start":28368,"ident_end":28374,"extent_start":28364,"extent_end":28611,"fully_qualified_name":"Counter.__eq__","ident_utf16":{"start":{"line_number":790,"utf16_col":8},"end":{"line_number":790,"utf16_col":14}},"extent_utf16":{"start":{"line_number":790,"utf16_col":4},"end":{"line_number":794,"utf16_col":73}}},{"name":"__ne__","kind":"function","ident_start":28621,"ident_end":28627,"extent_start":28617,"extent_end":28826,"fully_qualified_name":"Counter.__ne__","ident_utf16":{"start":{"line_number":796,"utf16_col":8},"end":{"line_number":796,"utf16_col":14}},"extent_utf16":{"start":{"line_number":796,"utf16_col":4},"end":{"line_number":800,"utf16_col":32}}},{"name":"__le__","kind":"function","ident_start":28836,"ident_end":28842,"extent_start":28832,"extent_end":29076,"fully_qualified_name":"Counter.__le__","ident_utf16":{"start":{"line_number":802,"utf16_col":8},"end":{"line_number":802,"utf16_col":14}},"extent_utf16":{"start":{"line_number":802,"utf16_col":4},"end":{"line_number":806,"utf16_col":73}}},{"name":"__lt__","kind":"function","ident_start":29086,"ident_end":29092,"extent_start":29082,"extent_end":29306,"fully_qualified_name":"Counter.__lt__","ident_utf16":{"start":{"line_number":808,"utf16_col":8},"end":{"line_number":808,"utf16_col":14}},"extent_utf16":{"start":{"line_number":808,"utf16_col":4},"end":{"line_number":812,"utf16_col":46}}},{"name":"__ge__","kind":"function","ident_start":29316,"ident_end":29322,"extent_start":29312,"extent_end":29558,"fully_qualified_name":"Counter.__ge__","ident_utf16":{"start":{"line_number":814,"utf16_col":8},"end":{"line_number":814,"utf16_col":14}},"extent_utf16":{"start":{"line_number":814,"utf16_col":4},"end":{"line_number":818,"utf16_col":73}}},{"name":"__gt__","kind":"function","ident_start":29568,"ident_end":29574,"extent_start":29564,"extent_end":29790,"fully_qualified_name":"Counter.__gt__","ident_utf16":{"start":{"line_number":820,"utf16_col":8},"end":{"line_number":820,"utf16_col":14}},"extent_utf16":{"start":{"line_number":820,"utf16_col":4},"end":{"line_number":824,"utf16_col":46}}},{"name":"__add__","kind":"function","ident_start":29800,"ident_end":29807,"extent_start":29796,"extent_end":30368,"fully_qualified_name":"Counter.__add__","ident_utf16":{"start":{"line_number":826,"utf16_col":8},"end":{"line_number":826,"utf16_col":15}},"extent_utf16":{"start":{"line_number":826,"utf16_col":4},"end":{"line_number":843,"utf16_col":21}}},{"name":"__sub__","kind":"function","ident_start":30378,"ident_end":30385,"extent_start":30374,"extent_end":30975,"fully_qualified_name":"Counter.__s 8000 ub__","ident_utf16":{"start":{"line_number":845,"utf16_col":8},"end":{"line_number":845,"utf16_col":15}},"extent_utf16":{"start":{"line_number":845,"utf16_col":4},"end":{"line_number":862,"utf16_col":21}}},{"name":"__or__","kind":"function","ident_start":30985,"ident_end":30991,"extent_start":30981,"extent_end":31649,"fully_qualified_name":"Counter.__or__","ident_utf16":{"start":{"line_number":864,"utf16_col":8},"end":{"line_number":864,"utf16_col":14}},"extent_utf16":{"start":{"line_number":864,"utf16_col":4},"end":{"line_number":882,"utf16_col":21}}},{"name":"__and__","kind":"function","ident_start":31659,"ident_end":31666,"extent_start":31655,"extent_end":32173,"fully_qualified_name":"Counter.__and__","ident_utf16":{"start":{"line_number":884,"utf16_col":8},"end":{"line_number":884,"utf16_col":15}},"extent_utf16":{"start":{"line_number":884,"utf16_col":4},"end":{"line_number":899,"utf16_col":21}}},{"name":"__pos__","kind":"function","ident_start":32183,"ident_end":32190,"extent_start":32179,"extent_end":32430,"fully_qualified_name":"Counter.__pos__","ident_utf16":{"start":{"line_number":901,"utf16_col":8},"end":{"line_number":901,"utf16_col":15}},"extent_utf16":{"start":{"line_number":901,"utf16_col":4},"end":{"line_number":907,"utf16_col":21}}},{"name":"__neg__","kind":"function","ident_start":32440,"ident_end":32447,"extent_start":32436,"extent_end":32749,"fully_qualified_name":"Counter.__neg__","ident_utf16":{"start":{"line_number":909,"utf16_col":8},"end":{"line_number":909,"utf16_col":15}},"extent_utf16":{"start":{"line_number":909,"utf16_col":4},"end":{"line_number":918,"utf16_col":21}}},{"name":"_keep_positive","kind":"function","ident_start":32759,"ident_end":32773,"extent_start":32755,"extent_end":33016,"fully_qualified_name":"Counter._keep_positive","ident_utf16":{"start":{"line_number":920,"utf16_col":8},"end":{"line_number":920,"utf16_col":22}},"extent_utf16":{"start":{"line_number":920,"utf16_col":4},"end":{"line_number":925,"utf16_col":19}}},{"name":"__iadd__","kind":"function","ident_start":33026,"ident_end":33034,"extent_start":33022,"extent_end":33368,"fully_qualified_name":"Counter.__iadd__","ident_utf16":{"start":{"line_number":927,"utf16_col":8},"end":{"line_number":927,"utf16_col":16}},"extent_utf16":{"start":{"line_number":927,"utf16_col":4},"end":{"line_number":938,"utf16_col":36}}},{"name":"__isub__","kind":"function","ident_start":33378,"ident_end":33386,"extent_start":33374,"extent_end":33720,"fully_qualified_name":"Counter.__isub__","ident_utf16":{"start":{"line_number":940,"utf16_col":8},"end":{"line_number":940,"utf16_col":16}},"extent_utf16":{"start":{"line_number":940,"utf16_col":4},"end":{"line_number":951,"utf16_col":36}}},{"name":"__ior__","kind":"function","ident_start":33730,"ident_end":33737,"extent_start":33726,"extent_end":34148,"fully_qualified_name":"Counter.__ior__","ident_utf16":{"start":{"line_number":953,"utf16_col":8},"end":{"line_number":953,"utf16_col":15}},"extent_utf16":{"start":{"line_number":953,"utf16_col":4},"end":{"line_number":966,"utf16_col":36}}},{"name":"__iand__","kind":"function","ident_start":34158,"ident_end":34166,"extent_start":34154,"extent_end":34563,"fully_qualified_name":"Counter.__iand__","ident_utf16":{"start":{"line_number":968,"utf16_col":8},"end":{"line_number":968,"utf16_col":16}},"extent_utf16":{"start":{"line_number":968,"utf16_col":4},"end":{"line_number":981,"utf16_col":36}}},{"name":"ChainMap","kind":"class","ident_start":34733,"ident_end":34741,"extent_start":34727,"extent_end":38981,"fully_qualified_name":"ChainMap","ident_utf16":{"start":{"line_number":988,"utf16_col":6},"end":{"line_number":988,"utf16_col":14}},"extent_utf16":{"start":{"line_number":988,"utf16_col":0},"end":{"line_number":1113,"utf16_col":32}}},{"name":"__init__","kind":"function","ident_start":35236,"ident_end":35244,"extent_start":35232,"extent_end":35491,"fully_qualified_name":"ChainMap.__init__","ident_utf16":{"start":{"line_number":1002,"utf16_col":8},"end":{"line_number":1002,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1002,"utf16_col":4},"end":{"line_number":1007,"utf16_col":73}}},{"name":"__missing__","kind":"function","ident_start":35501,"ident_end":35512,"extent_start":35497,"extent_end":35552,"fully_qualified_name":"ChainMap.__missing__","ident_utf16":{"start":{"line_number":1009,"utf16_col":8},"end":{"line_number":1009,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1009,"utf16_col":4},"end":{"line_number":1010,"utf16_col":27}}},{"name":"__getitem__","kind":"function","ident_start":35562,"ident_end":35573,"extent_start":35558,"extent_end":35873,"fully_qualified_name":"ChainMap.__getitem__","ident_utf16":{"start":{"line_number":1012,"utf16_col":8},"end":{"line_number":1012,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1012,"utf16_col":4},"end":{"line_number":1018,"utf16_col":92}}},{"name":"get","kind":"function","ident_start":35883,"ident_end":35886,"extent_start":35879,"extent_end":35965,"fully_qualified_name":"ChainMap.get","ident_utf16":{"start":{"line_number":1020,"utf16_col":8},"end":{"line_number":1020,"utf16_col":11}},"extent_utf16":{"start":{"line_number":1020,"utf16_col":4},"end":{"line_number":1021,"utf16_col":52}}},{"name":"__len__","kind":"function","ident_start":35975,"ident_end":35982,"extent_start":35971,"extent_end":36077,"fully_qualified_name":"ChainMap.__len__","ident_utf16":{"start":{"line_number":1023,"utf16_col":8},"end":{"line_number":1023,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1023,"utf16_col":4},"end":{"line_number":1024,"utf16_col":87}}},{"name":"__iter__","kind":"function","ident_start":36087,"ident_end":36095,"extent_start":36083,"extent_end":36292,"fully_qualified_name":"ChainMap.__iter__","ident_utf16":{"start":{"line_number":1026,"utf16_col":8},"end":{"line_number":1026,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1026,"utf16_col":4},"end":{"line_number":1030,"utf16_col":22}}},{"name":"__contains__","kind":"function","ident_start":36302,"ident_end":36314,"extent_start":36298,"extent_end":36374,"fully_qualified_name":"ChainMap.__contains__","ident_utf16":{"start":{"line_number":1032,"utf16_col":8},"end":{"line_number":1032,"utf16_col":20}},"extent_utf16":{"start":{"line_number":1032,"utf16_col":4},"end":{"line_number":1033,"utf16_col":47}}},{"name":"__bool__","kind":"function","ident_start":36384,"ident_end":36392,"extent_start":36380,"extent_end":36429,"fully_qualified_name":"ChainMap.__bool__","ident_utf16":{"start":{"line_number":1035,"utf16_col":8},"end":{"line_number":1035,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1035,"utf16_col":4},"end":{"line_number":1036,"utf16_col":29}}},{"name":"__repr__","kind":"function","ident_start":36462,"ident_end":36470,"extent_start":36458,"extent_end":36556,"fully_qualified_name":"ChainMap.__repr__","ident_utf16":{"start":{"line_number":1039,"utf16_col":8},"end":{"line_number":1039,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1039,"utf16_col":4},"end":{"line_number":1040,"utf16_col":78}}},{"name":"fromkeys","kind":"function","ident_start":36583,"ident_end":36591,"extent_start":36579,"extent_end":36754,"fully_qualified_name":"ChainMap.fromkeys","ident_utf16":{"start":{"line_number":1043,"utf16_col":8},"end":{"line_number":1043,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1043,"utf16_col":4},"end":{"line_number":1045,"utf16_col":50}}},{"name":"copy","kind":"function","ident_start":36764,"ident_end":36768,"extent_start":36760,"extent_end":36925,"fully_qualified_name":"ChainMap.copy","ident_utf16":{"start":{"line_number":1047,"utf16_col":8},"end":{"line_number":1047,"utf16_col":12}},"extent_utf16":{"start":{"line_number":1047,"utf16_col":4},"end":{"line_number":1049,"utf16_col":66}}},{"name":"__copy__","kind":"constant","ident_start":36931,"ident_end":36939,"extent_start":36931,"extent_end":36946,"fully_qualified_name":"ChainMap.__copy__","ident_utf16":{"start":{"line_number":1051,"utf16_col":4},"end":{"line_number":1051,"utf16_col":12}},"extent_utf16":{"start":{"line_number":1051,"utf16_col":4},"end":{"line_number":1051,"utf16_col":19}}},{"name":"new_child","kind":"function","ident_start":36956,"ident_end":36965,"extent_start":36952,"extent_end":37362,"fully_qualified_name":"ChainMap.new_child","ident_utf16":{"start":{"line_number":1053,"utf16_col":8},"end":{"line_number":1053,"utf16_col":17}},"extent_utf16":{"start":{"line_number":1053,"utf16_col":4},"end":{"line_number":1062,"utf16_col":44}}},{"name":"parents","kind":"function","ident_start":37386,"ident_end":37393,"extent_start":37382,"extent_end":37539,"fully_qualified_name":"ChainMap.parents","ident_utf16":{"start":{"line_number":1065,"utf16_col":8},"end":{"line_number":1065,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1065,"utf16_col":4},"end":{"line_number":1067,"utf16_col":45}}},{"name":"__setitem__","kind":"function","ident_start":37549,"ident_end":37560,"extent_start":37545,"extent_end":37613,"fully_qualified_name":"ChainMap.__setitem__","ident_utf16":{"start":{"line_number":1069,"utf16_col":8},"end":{"line_number":1069,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1069,"utf16_col":4},"end":{"line_number":1070,"utf16_col":33}}},{"name":"__delitem__","kind":"function","ident_start":37623,"ident_end":37634,"extent_start":37619,"extent_end":37793,"fully_qualified_name":"ChainMap.__delitem__","ident_utf16":{"start":{"line_number":1072,"utf16_col":8},"end":{"line_number":1072,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1072,"utf16_col":4},"end":{"line_number":1076,"utf16_col":74}}},{"name":"popitem","kind":"function","ident_start":37803,"ident_end":37810,"extent_start":37799,"extent_end":38054,"fully_qualified_name":"ChainMap.popitem","ident_utf16":{"start":{"line_number":1078,"utf16_col":8},"end":{"line_number":1078,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1078,"utf16_col":4},"end":{"line_number":1083,"utf16_col":65}}},{"name":"pop","kind":"function","ident_start":38064,"ident_end":38067,"extent_start":38060,"extent_end":38345,"fully_qualified_name":"ChainMap.pop","ident_utf16":{"start":{"line_number":1085,"utf16_col":8},"end":{"line_number":1085,"utf16_col":11}},"extent_utf16":{"start":{"line_number":1085,"utf16_col":4},"end":{"line_number":1090,"utf16_col":74}}},{"name":"clear","kind":"function","ident_start":38355,"ident_end":38360,"extent_start":38351,"extent_end":38446,"fully_qualified_name":"ChainMap.clear","ident_utf16":{"start":{"line_number":1092,"utf16_col":8},"end":{"line_number":1092,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1092,"utf16_col":4},"end":{"line_number":1094,"utf16_col":28}}},{"name":"__ior__","kind":"function","ident_start":38456,"ident_end":38463,"extent_start":38452,"extent_end":38532,"fully_qualified_name":"ChainMap.__ior__","ident_utf16":{"start":{"line_number":1096,"utf16_col":8},"end":{"line_number":1096,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1096,"utf16_col":4},"end":{"line_number":1098,"utf16_col":19}}},{"name":"__or__","kind":"function","ident_start":38542,"ident_end":38548,"extent_start":38538,"extent_end":38729,"fully_qualified_name":"ChainMap.__or__","ident_utf16":{"start":{"line_number":1100,"utf16_col":8},"end":{"line_number":1100,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1100,"utf16_col":4},"end":{"line_number":1105,"utf16_col":16}}},{"name":"__ror__","kind":"function","ident_start":38739,"ident_end":38746,"extent_start":38735,"extent_end":38981,"fully_qualified_name":"ChainMap.__ror__","ident_utf16":{"start":{"line_number":1107,"utf16_col":8},"end":{"line_number":1107,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1107,"utf16_col":4},"end":{"line_number":1113,"utf16_col":32}}},{"name":"UserDict","kind":"class","ident_start":39166,"ident_end":39174,"extent_start":39160,"extent_end":41694,"fully_qualified_name":"UserDict","ident_utf16":{"start":{"line_number":1120,"utf16_col":6},"end":{"line_number":1120,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1120,"utf16_col":0},"end":{"line_number":1210,"utf16_col":16}}},{"name":"__init__","kind":"function","ident_start":39266,"ident_end":39274,"extent_start":39262,"extent_end":39438,"fully_qualified_name":"UserDict.__init__","ident_utf16":{"start":{"line_number":1123,"utf16_col":8},"end":{"line_number":1123,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1123,"utf16_col":4},"end":{"line_number":1128,"utf16_col":31}}},{"name":"__len__","kind":"function","ident_start":39448,"ident_end":39455,"extent_start":39444,"extent_end":39492,"fully_qualified_name":"UserDict.__len__","ident_utf16":{"start":{"line_number":1130,"utf16_col":8},"end":{"line_number":1130,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1130,"utf16_col":4},"end":{"line_number":1131,"utf16_col":29}}},{"name":"__getitem__","kind":"function","ident_start":39502,"ident_end":39513,"extent_start":39498,"extent_end":39724,"fully_qualified_name":"UserDict.__getitem__","ident_utf16":{"start":{"line_number":1133,"utf16_col":8},"end":{"line_number":1133,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1133,"utf16_col":4},"end":{"line_number":1138,"utf16_col":27}}},{"name":"__setitem__","kind":"function","ident_start":39734,"ident_end":39745,"extent_start":39730,"extent_end":39793,"fully_qualified_name":"UserDict.__setitem__","ident_utf16":{"start":{"line_number":1140,"utf16_col":8},"end":{"line_number":1140,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1140,"utf16_col":4},"end":{"line_number":1141,"utf16_col":29}}},{"name":"__delitem__","kind":"function","ident_start":39803,"ident_end":39814,"extent_start":39799,"extent_end":39853,"fully_qualified_name":"UserDict.__delitem__","ident_utf16":{"start":{"line_number":1143,"utf16_col":8},"end":{"line_number":1143,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1143,"utf16_col":4},"end":{"line_number":1144,"utf16_col":26}}},{"name":"__iter__","kind":"function","ident_start":39863,"ident_end":39871,"extent_start":39859,"extent_end":39909,"fully_qualified_name":"UserDict.__iter__","ident_utf16":{"start":{"line_number":1146,"utf16_col":8},"end":{"line_number":1146,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1146,"utf16_col":4},"end":{"line_number":1147,"utf16_col":30}}},{"name":"__contains__","kind":"function","ident_start":40013,"ident_end":40025,"extent_start":40009,"extent_end":40069,"fully_qualified_name":"UserDict.__contains__","ident_utf16":{"start":{"line_number":1151,"utf16_col":8},"end":{"line_number":1151,"utf16_col":20}},"extent_utf16":{"start":{"line_number":1151,"utf16_col":4},"end":{"line_number":1152,"utf16_col":31}}},{"name":"get","kind":"function","ident_start":40079,"ident_end":40082,"extent_start":40075,"extent_end":40184,"fully_qualified_name":"UserDict.get","ident_utf16":{"start":{"line_number":1154,"utf16_col":8},"end":{"line_number":1154,"utf16_col":11}},"extent_utf16":{"start":{"line_number":1154,"utf16_col":4},"end":{"line_number":1157,"utf16_col":22}}},{"name":"__repr__","kind":"function","ident_start":40257,"ident_end":40265,"extent_start":40253,"extent_end":40303,"fully_qualified_name":"UserDict.__repr__","ident_utf16":{"start":{"line_number":1161,"utf16_col":8},"end":{"line_number":1161,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1161,"utf16_col":4},"end":{"line_number":1162,"utf16_col":30}}},{"name":"__or__","kind":"function","ident_start":40313,"ident_end":40319,"extent_start":40309,"extent_end":40550,"fully_qualified_name":"UserDict.__or__","ident_utf16":{"start":{"line_number":1164,"utf16_col":8},"end":{"line_number":1164,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1164,"utf16_col":4},"end":{"line_number":1169,"utf16_col":29}}},{"name":"__ror__","kind":"function","ident_start":40560,"ident_end":40567,"extent_start":40556,"extent_end":40798,"fully_qualified_name":"UserDict.__ror__","ident_utf16":{"start":{"line_number":1171,"utf16_col":8},"end":{"line_number":1171,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1171,"utf16_col":4},"end":{"line_number":1176,"utf16_col":29}}},{"name":"__ior__","kind":"function","ident_start":40808,"ident_end":40815,"extent_start":40804,"extent_end":40970,"fully_qualified_name":"UserDict.__ior__","ident_utf16":{"start":{"line_number":1178,"utf16_col":8},"end":{"line_number":1178,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1178,"utf16_col":4},"end":{"line_number":1183,"utf16_col":19}}},{"name":"__copy__","kind":"function","ident_start":40980,"ident_end":40988,"extent_start":40976,"extent_end":41231,"fully_qualified_name":"UserDict.__copy__","ident_utf16":{"start":{"line_number":1185,"utf16_col":8},"end":{"line_number":1185,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1185,"utf16_col":4},"end":{"line_number":1190,"utf16_col":19}}},{"name":"copy","kind":"function","ident_start":41241,"ident_end":41245,"extent_start":41237,"extent_end":41540,"fully_qualified_name":"UserDict.copy","ident_utf16":{"start":{"line_number":1192,"utf16_col":8},"end":{"line_number":1192,"utf16_col":12}},"extent_utf16":{"start":{"line_number":1192,"utf16_col":4},"end":{"line_number":1203,"utf16_col":16}}},{"name":"fromkeys","kind":"function","ident_start":41567,"ident_end":41575,"extent_start":41563,"extent_end":41694,"fully_qualified_name":"UserDict.fromkeys","ident_utf16":{"start":{"line_number":1206,"utf16_col":8},"end":{"line_number":1206,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1206,"utf16_col":4},"end":{"line_number":1210,"utf16_col":16}}},{"name":"UserList","kind":"class","ident_start":41879,"ident_end":41887,"extent_start":41873,"extent_end":45379,"fully_qualified_name":"UserList","ident_utf16":{"start":{"line_number":1217,"utf16_col":6},"end":{"line_number":1217,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1217,"utf16_col":0},"end":{"line_number":1343,"utf16_col":35}}},{"name":"__init__","kind":"function","ident_start":42008,"ident_end":42016,"extent_start":42004,"extent_end":42402,"fully_qualified_name":"UserList.__init__","ident_utf16":{"start":{"line_number":1220,"utf16_col":8},"end":{"line_number":1220,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1220,"utf16_col":4},"end":{"line_number":1229,"utf16_col":42}}},{"name":"__repr__","kind":"function","ident_start":42412,"ident_end":42420,"extent_start":42408,"extent_end":42458,"fully_qualified_name":"UserList.__repr__","ident_utf16":{"start":{"line_number":1231,"utf16_col":8},"end":{"line_number":1231,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1231,"utf16_col":4},"end":{"line_number":1232,"utf16_col":30}}},{"name":"__lt__","kind":"function","ident_start":42468,"ident_end":42474,"extent_start":42464,"extent_end":42534,"fully_qualified_name":"UserList.__lt__","ident_utf16":{"start":{"line_number":1234,"utf16_col":8},"end":{"line_number":1234,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1234,"utf16_col":4},"end":{"line_number":1235,"utf16_col":45}}},{"name":"__le__","kind":"function","ident_start":42544,"ident_end":42550,"extent_start":42540,"extent_end":42611,"fully_qualified_name":"UserList.__le__","ident_utf16":{"start":{"line_number":1237,"utf16_col":8},"end":{"line_number":1237,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1237,"utf16_col":4},"end":{"line_number":1238,"utf16_col":46}}},{"name":"__eq__","kind":"function","ident_start":42621,"ident_end":42627,"extent_start":42617,"extent_end":42688,"fully_qualified_name":"UserList.__eq__","ident_utf16":{"start":{"line_number":1240,"utf16_col":8},"end":{"line_number":1240,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1240,"utf16_col":4},"end":{"line_number":1241,"utf16_col":46}}},{"name":"__gt__","kind":"function","ident_start":42698,"ident_end":42704,"extent_start":42694,"extent_end":42764,"fully_qualified_name":"UserList.__gt__","ident_utf16":{"start":{"line_number":1243,"utf16_col":8},"end":{"line_number":1243,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1243,"utf16_col":4},"end":{"line_number":1244,"utf16_col":45}}},{"name":"__ge__","kind":"function","ident_start":42774,"ident_end":42780,"extent_start":42770,"extent_end":42841,"fully_qualified_name":"UserList.__ge__","ident_utf16":{"start":{"line_number":1246,"utf16_col":8},"end":{"line_number":1246,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1246,"utf16_col":4},"end":{"line_number":1247,"utf16_col":46}}},{"name":"__cast","kind":"function","ident_start":42851,"ident_end":42857,"extent_start":42847,"extent_end":42939,"fully_qualified_name":"UserList.__cast","ident_utf16":{"start":{"line_number":1249,"utf16_col":8},"end":{"line_number":1249,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1249,"utf16_col":4},"end":{"line_number":1250,"utf16_col":67}}},{"name":"__contains__","kind":"function","ident_start":42949,"ident_end":42961,"extent_start":42945,"extent_end":43007,"fully_qualified_name":"UserList.__contains__","ident_utf16":{"start":{"line_number":1252,"utf16_col":8},"end":{"line_number":1252,"utf16_col":20}},"extent_utf16":{"start":{"line_number":1252,"utf16_col":4},"end":{"line_number":1253,"utf16_col":32}}},{"name":"__len__","kind":"function","ident_start":43017,"ident_end":43024,"extent_start":43013,"extent_end":43061,"fully_qualified_name":"UserList.__len__","ident_utf16":{"start":{"line_number":1255,"utf16_col":8},"end":{"line_number":1255,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1255,"utf16_col":4},"end":{"line_number":1256,"utf16_col":29}}},{"name":"__getitem__","kind":"function","ident_start":43071,"ident_end":43082,"extent_start":43067,"extent_end":43219,"fully_qualified_name":"UserList.__getitem__","ident_utf16":{"start":{"line_number":1258,"utf16_col":8},"end":{"line_number":1258,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1258,"utf16_col":4},"end":{"line_number":1262,"utf16_col":31}}},{"name":"__setitem__","kind":"function","ident_start":43229,"ident_end":43240,"extent_start":43225,"extent_end":43284,"fully_qualified_name":"UserList.__setitem__","ident_utf16":{"start":{"line_number":1264,"utf16_col":8},"end":{"line_number":1264,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1264,"utf16_col":4},"end":{"line_number":1265,"utf16_col":27}}},{"name":"__delitem__","kind":"function","ident_start":43294,"ident_end":43305,"extent_start":43290,"extent_end":43340,"fully_qualified_name":"UserList.__delitem__","ident_utf16":{"start":{"line_number":1267,"utf16_col":8},"end":{"line_number":1267,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1267,"utf16_col":4},"end":{"line_number":1268,"utf16_col":24}}},{"name":"__add__","kind":"function","ident_start":43350,"ident_end":43357,"extent_start":43346,"extent_end":43626,"fully_qualified_name":"UserList.__add__","ident_utf16":{"start":{"line_number":1270,"utf16_col":8},"end":{"line_number":1270,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1270,"utf16_col":4},"end":{"line_number":1275,"utf16_col":54}}},{"name":"__radd__","kind":"function","ident_start":43636,"ident_end":43644,"extent_start":43632,"extent_end":43913,"fully_qualified_name":"UserList.__radd__","ident_utf16":{"start":{"line_number":1277,"utf16_col":8},"end":{"line_number":1277,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1277,"utf16_col":4},"end":{"line_number":1282,"utf16_col":54}}},{"name":"__iadd__","kind":"function","ident_start":43923,"ident_end":43931,"extent_start":43919,"extent_end":44172,"fully_qualified_name":"UserList.__iadd__","ident_utf16":{"start":{"line_number":1284,"utf16_col":8},"end":{"line_number":1284,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1284,"utf16_col":4},"end":{"line_number":1291,"utf16_col":19}}},{"name":"__mul__","kind":"function","ident_start":44182,"ident_end":44189,"extent_start":44178,"extent_end":44244,"fully_qualified_name":"UserList.__mul__","ident_utf16":{"start":{"line_number":1293,"utf16_col":8},"end":{"line_number":1293,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1293,"utf16_col":4},"end":{"line_number":1294,"utf16_col":44}}},{"name":"__rmul__","kind":"constant","ident_start":44250,"ident_end":44258,"extent_start":44250,"extent_end":44268,"fully_qualified_name":"UserList.__rmul__","ident_utf16":{"start":{"line_number":1296,"utf16_col":4},"end":{"line_number":1296,"utf16_col":12}},"extent_utf16":{"start":{"line_number":1296,"utf16_col":4},"end":{"line_number":1296,"utf16_col":22}}},{"name":"__imul__","kind":"function","ident_start":44278,"ident_end":44286,"extent_start":44274,"extent_end":44339,"fully_qualified_name":"UserList.__imul__","ident_utf16":{"start":{"line_number":1298,"utf16_col":8},"end":{"line_number":1298,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1298,"utf16_col":4},"end":{"line_number":1300,"utf16_col":19}}},{"name":"__copy__","kind":"function","ident_start":44349,"ident_end":44357,"extent_start":44345,"extent_end":44596,"fully_qualified_name":"UserList.__copy__","ident_utf16":{"start":{"line_number":1302,"utf16_col":8},"end":{"line_number":1302,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1302,"utf16_col":4},"end":{"line_number":1307,"utf16_col":19}}},{"name":"append","kind":"function","ident_start":44606,"ident_end":44612,"extent_start":44602,"extent_end":44656,"fully_qualified_name":"UserList.append","ident_utf16":{"start":{"line_number":1309,"utf16_col":8},"end":{"line_number":1309,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1309,"utf16_col":4},"end":{"line_number":1310,"utf16_col":30}}},{"name":"insert","kind":"function","ident_start":44666,"ident_end":44672,"extent_start":44662,"extent_end":44722,"fully_qualified_name":"UserList.insert","ident_utf16":{"start":{"line_number":1312,"utf16_col":8},"end":{"line_number":1312,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1312,"utf16_col":4},"end":{"line_number":1313,"utf16_col":33}}},{"name":"pop","kind":"function","ident_start":44732,"ident_end":44735,"extent_start":44728,"extent_end":44780,"fully_qualified_name":"UserList.pop","ident_utf16":{"start":{"line_number":1315,"utf16_col":8},"end":{"line_number":1315,"utf16_col":11}},"extent_utf16":{"start":{"line_number":1315,"utf16_col":4},"end":{"line_number":1316,"utf16_col":31}}},{"name":"remove","kind":"function","ident_start":44790,"ident_end":44796,"extent_start":44786,"extent_end":44840,"fully_qualified_name":"UserList.remove","ident_utf16":{"start":{"line_number":1318,"utf16_col":8},"end":{"line_number":1318,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1318,"utf16_col":4},"end":{"line_number":1319,"utf16_col":30}}},{"name":"clear","kind":"function","ident_start":44850,"ident_end":44855,"extent_start":44846,"extent_end":44888,"fully_qualified_name":"UserList.clear","ident_utf16":{"start":{"line_number":1321,"utf16_col":8},"end":{"line_number":1321,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1321,"utf16_col":4},"end":{"line_number":1322,"utf16_col":25}}},{"name":"copy","kind":"function","ident_start":44898,"ident_end":44902,"extent_start":44894,"extent_end":44945,"fully_qualified_name":"UserList.copy","ident_utf16":{"start":{"line_number":1324,"utf16_col":8},"end":{"line_number":1324,"utf16_col":12}},"extent_utf16":{"start":{"line_number":1324,"utf16_col":4},"end":{"line_number":1325,"utf16_col":35}}},{"name":"count","kind":"function","ident_start":44955,"ident_end":44960,"extent_start":44951,"extent_end":45010,"fully_qualified_name":"UserList.count","ident_utf16":{"start":{"line_number":1327,"utf16_col":8},"end":{"line_number":1327,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1327,"utf16_col":4},"end":{"line_number":1328,"utf16_col":36}}},{"name":"index","kind":"function","ident_start":45020,"ident_end":45025,"extent_start":45016,"extent_end":45089,"fully_qualified_name":"UserList.index","ident_utf16":{"start":{"line_number":1330,"utf16_col":8},"end":{"line_number":1330,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1330,"utf16_col":4},"end":{"line_number":1331,"utf16_col":43}}},{"name":"reverse","kind":"function","ident_start":45099,"ident_end":45106,"extent_start":45095,"extent_end":45141,"fully_qualified_name":"UserList.reverse","ident_utf16":{"start":{"line_number":1333,"utf16_col":8},"end":{"line_number":1333,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1333,"utf16_col":4},"end":{"line_number":1334,"utf16_col":27}}},{"name":"sort","kind":"function","ident_start":45151,"ident_end":45155,"extent_start":45147,"extent_end":45218,"fully_qualified_name":"UserList.sort","ident_utf16":{"start":{"line_number":1336,"utf16_col":8},"end":{"line_number":1336,"utf16_col":12}},"extent_utf16":{"start":{"line_number":1336,"utf16_col":4},"end":{"line_number":1337,"utf16_col":37}}},{"name":"extend","kind":"function","ident_start":45228,"ident_end":45234,"extent_start":45224,"extent_end":45379,"fully_qualified_name":"UserList.extend","ident_utf16":{"start":{"line_number":1339,"utf16_col":8},"end":{"line_number":1339,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1339,"utf16_col":4},"end":{"line_number":1343,"utf16_col":35}}},{"name":"UserString","kind":"class","ident_start":45566,"ident_end":45576,"extent_start":45560,"extent_end":52499,"fully_qualified_name":"UserString","ident_utf16":{"start":{"line_number":1350,"utf16_col":6},"end":{"line_number":1350,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1350,"utf16_col":0},"end":{"line_number":1595,"utf16_col":53}}},{"name":"__init__","kind":"function","ident_start":45614,"ident_end":45622,"extent_start":45610,"extent_end":45820,"fully_qualified_name":"UserString.__init__","ident_utf16":{"start":{"line_number":1352,"utf16_col":8},"end":{"line_number":1352,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1352,"utf16_col":4},"end":{"line_number":1358,"utf16_col":32}}},{"name":"__str__","kind":"function","ident_start":45830,"ident_end":45837,"extent_start":45826,"extent_end":45874,"fully_qualified_name":"UserString.__str__","ident_utf16":{"start":{"line_number":1360,"utf16_col":8},"end":{"line_number":1360,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1360,"utf16_col":4},"end":{"line_number":1361,"utf16_col":29}}},{"name":"__repr__","kind":"function","ident_start":45884,"ident_end":45892,"extent_start":45880,"extent_end":45930,"fully_qualified_name":"UserString.__repr__","ident_utf16":{"start":{"line_number":1363,"utf16_col":8},"end":{"line_number":1363,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1363,"utf16_col":4},"end":{"line_number":1364,"utf16_col":30}}},{"name":"__int__","kind":"function","ident_start":45940,"ident_end":45947,"extent_start":45936,"extent_end":45984,"fully_qualified_name":"UserString.__int__","ident_utf16":{"start":{"line_number":1366,"utf16_col":8},"end":{"line_number":1366,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1366,"utf16_col":4},"end":{"line_number":1367,"utf16_col":29}}},{"name":"__float__","kind":"function","ident_start":45994,"ident_end":46003,"extent_start":45990,"extent_end":46042,"fully_qualified_name":"UserString.__float__","ident_utf16":{"start":{"line_number":1369,"utf16_col":8},"end":{"line_number":1369,"utf16_col":17}},"extent_utf16":{"start":{"line_number":1369,"utf16_col":4},"end":{"line_number":1370,"utf16_col":31}}},{"name":"__complex__","kind":"function","ident_start":46052,"ident_end":46063,"extent_start":46048,"extent_end":46104,"fully_qualified_name":"UserString.__complex__","ident_utf16":{"start":{"line_number":1372,"utf16_col":8},"end":{"line_number":1372,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1372,"utf16_col":4},"end":{"line_number":1373,"utf16_col":33}}},{"name":"__hash__","kind":"function","ident_start":46114,"ident_end":46122,"extent_start":46110,"extent_end":46160,"fully_qualified_name":"UserString.__hash__","ident_utf16":{"start":{"line_number":1375,"utf16_col":8},"end":{"line_number":1375,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1375,"utf16_col":4},"end":{"line_number":1376,"utf16_col":30}}},{"name":"__getnewargs__","kind":"function","ident_start":46170,"ident_end":46184,"extent_start":46166,"extent_end":46222,"fully_qualified_name":"UserString.__getnewargs__","ident_utf16":{"start":{"line_number":1378,"utf16_col":8},"end":{"line_number":1378,"utf16_col":22}},"extent_utf16":{"start":{"line_number":1378,"utf16_col":4},"end":{"line_number":1379,"utf16_col":30}}},{"name":"__eq__","kind":"function","ident_start":46232,"ident_end":46238,"extent_start":46228,"extent_end":46375,"fully_qualified_name":"UserString.__eq__","ident_utf16":{"start":{"line_number":1381,"utf16_col":8},"end":{"line_number":1381,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1381,"utf16_col":4},"end":{"line_number":1384,"utf16_col":34}}},{"name":"__lt__","kind":"function","ident_start":46385,"ident_end":46391,"extent_start":46381,"extent_end":46526,"fully_qualif 8000 ied_name":"UserString.__lt__","ident_utf16":{"start":{"line_number":1386,"utf16_col":8},"end":{"line_number":1386,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1386,"utf16_col":4},"end":{"line_number":1389,"utf16_col":33}}},{"name":"__le__","kind":"function","ident_start":46536,"ident_end":46542,"extent_start":46532,"extent_end":46679,"fully_qualified_name":"UserString.__le__","ident_utf16":{"start":{"line_number":1391,"utf16_col":8},"end":{"line_number":1391,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1391,"utf16_col":4},"end":{"line_number":1394,"utf16_col":34}}},{"name":"__gt__","kind":"function","ident_start":46689,"ident_end":46695,"extent_start":46685,"extent_end":46830,"fully_qualified_name":"UserString.__gt__","ident_utf16":{"start":{"line_number":1396,"utf16_col":8},"end":{"line_number":1396,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1396,"utf16_col":4},"end":{"line_number":1399,"utf16_col":33}}},{"name":"__ge__","kind":"function","ident_start":46840,"ident_end":46846,"extent_start":46836,"extent_end":46983,"fully_qualified_name":"UserString.__ge__","ident_utf16":{"start":{"line_number":1401,"utf16_col":8},"end":{"line_number":1401,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1401,"utf16_col":4},"end":{"line_number":1404,"utf16_col":34}}},{"name":"__contains__","kind":"function","ident_start":46993,"ident_end":47005,"extent_start":46989,"extent_end":47121,"fully_qualified_name":"UserString.__contains__","ident_utf16":{"start":{"line_number":1406,"utf16_col":8},"end":{"line_number":1406,"utf16_col":20}},"extent_utf16":{"start":{"line_number":1406,"utf16_col":4},"end":{"line_number":1409,"utf16_col":32}}},{"name":"__len__","kind":"function","ident_start":47131,"ident_end":47138,"extent_start":47127,"extent_end":47175,"fully_qualified_name":"UserString.__len__","ident_utf16":{"start":{"line_number":1411,"utf16_col":8},"end":{"line_number":1411,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1411,"utf16_col":4},"end":{"line_number":1412,"utf16_col":29}}},{"name":"__getitem__","kind":"function","ident_start":47185,"ident_end":47196,"extent_start":47181,"extent_end":47258,"fully_qualified_name":"UserString.__getitem__","ident_utf16":{"start":{"line_number":1414,"utf16_col":8},"end":{"line_number":1414,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1414,"utf16_col":4},"end":{"line_number":1415,"utf16_col":47}}},{"name":"__add__","kind":"function","ident_start":47268,"ident_end":47275,"extent_start":47264,"extent_end":47533,"fully_qualified_name":"UserString.__add__","ident_utf16":{"start":{"line_number":1417,"utf16_col":8},"end":{"line_number":1417,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1417,"utf16_col":4},"end":{"line_number":1422,"utf16_col":53}}},{"name":"__radd__","kind":"function","ident_start":47543,"ident_end":47551,"extent_start":47539,"extent_end":47707,"fully_qualified_name":"UserString.__radd__","ident_utf16":{"start":{"line_number":1424,"utf16_col":8},"end":{"line_number":1424,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1424,"utf16_col":4},"end":{"line_number":1427,"utf16_col":53}}},{"name":"__mul__","kind":"function","ident_start":47717,"ident_end":47724,"extent_start":47713,"extent_end":47779,"fully_qualified_name":"UserString.__mul__","ident_utf16":{"start":{"line_number":1429,"utf16_col":8},"end":{"line_number":1429,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1429,"utf16_col":4},"end":{"line_number":1430,"utf16_col":44}}},{"name":"__rmul__","kind":"constant","ident_start":47785,"ident_end":47793,"extent_start":47785,"extent_end":47803,"fully_qualified_name":"UserString.__rmul__","ident_utf16":{"start":{"line_number":1432,"utf16_col":4},"end":{"line_number":1432,"utf16_col":12}},"extent_utf16":{"start":{"line_number":1432,"utf16_col":4},"end":{"line_number":1432,"utf16_col":22}}},{"name":"__mod__","kind":"function","ident_start":47813,"ident_end":47820,"extent_start":47809,"extent_end":47881,"fully_qualified_name":"UserString.__mod__","ident_utf16":{"start":{"line_number":1434,"utf16_col":8},"end":{"line_number":1434,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1434,"utf16_col":4},"end":{"line_number":1435,"utf16_col":47}}},{"name":"__rmod__","kind":"function","ident_start":47891,"ident_end":47899,"extent_start":47887,"extent_end":47968,"fully_qualified_name":"UserString.__rmod__","ident_utf16":{"start":{"line_number":1437,"utf16_col":8},"end":{"line_number":1437,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1437,"utf16_col":4},"end":{"line_number":1438,"utf16_col":51}}},{"name":"capitalize","kind":"function","ident_start":48041,"ident_end":48051,"extent_start":48037,"extent_end":48112,"fully_qualified_name":"UserString.capitalize","ident_utf16":{"start":{"line_number":1441,"utf16_col":8},"end":{"line_number":1441,"utf16_col":18}},"extent_utf16":{"start":{"line_number":1441,"utf16_col":4},"end":{"line_number":1442,"utf16_col":53}}},{"name":"casefold","kind":"function","ident_start":48122,"ident_end":48130,"extent_start":48118,"extent_end":48189,"fully_qualified_name":"UserString.casefold","ident_utf16":{"start":{"line_number":1444,"utf16_col":8},"end":{"line_number":1444,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1444,"utf16_col":4},"end":{"line_number":1445,"utf16_col":51}}},{"name":"center","kind":"function","ident_start":48199,"ident_end":48205,"extent_start":48195,"extent_end":48288,"fully_qualified_name":"UserString.center","ident_utf16":{"start":{"line_number":1447,"utf16_col":8},"end":{"line_number":1447,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1447,"utf16_col":4},"end":{"line_number":1448,"utf16_col":61}}},{"name":"count","kind":"function","ident_start":48298,"ident_end":48303,"extent_start":48294,"extent_end":48457,"fully_qualified_name":"UserString.count","ident_utf16":{"start":{"line_number":1450,"utf16_col":8},"end":{"line_number":1450,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1450,"utf16_col":4},"end":{"line_number":1453,"utf16_col":47}}},{"name":"removeprefix","kind":"function","ident_start":48467,"ident_end":48479,"extent_start":48463,"extent_end":48635,"fully_qualified_name":"UserString.removeprefix","ident_utf16":{"start":{"line_number":1455,"utf16_col":8},"end":{"line_number":1455,"utf16_col":20}},"extent_utf16":{"start":{"line_number":1455,"utf16_col":4},"end":{"line_number":1458,"utf16_col":61}}},{"name":"removesuffix","kind":"function","ident_start":48645,"ident_end":48657,"extent_start":48641,"extent_end":48813,"fully_qualified_name":"UserString.removesuffix","ident_utf16":{"start":{"line_number":1460,"utf16_col":8},"end":{"line_number":1460,"utf16_col":20}},"extent_utf16":{"start":{"line_number":1460,"utf16_col":4},"end":{"line_number":1463,"utf16_col":61}}},{"name":"encode","kind":"function","ident_start":48823,"ident_end":48829,"extent_start":48819,"extent_end":49038,"fully_qualified_name":"UserString.encode","ident_utf16":{"start":{"line_number":1465,"utf16_col":8},"end":{"line_number":1465,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1465,"utf16_col":4},"end":{"line_number":1468,"utf16_col":49}}},{"name":"endswith","kind":"function","ident_start":49048,"ident_end":49056,"extent_start":49044,"extent_end":49152,"fully_qualified_name":"UserString.endswith","ident_utf16":{"start":{"line_number":1470,"utf16_col":8},"end":{"line_number":1470,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1470,"utf16_col":4},"end":{"line_number":1471,"utf16_col":53}}},{"name":"expandtabs","kind":"function","ident_start":49162,"ident_end":49172,"extent_start":49158,"extent_end":49251,"fully_qualified_name":"UserString.expandtabs","ident_utf16":{"start":{"line_number":1473,"utf16_col":8},"end":{"line_number":1473,"utf16_col":18}},"extent_utf16":{"start":{"line_number":1473,"utf16_col":4},"end":{"line_number":1474,"utf16_col":60}}},{"name":"find","kind":"function","ident_start":49261,"ident_end":49265,"extent_start":49257,"extent_end":49418,"fully_qualified_name":"UserString.find","ident_utf16":{"start":{"line_number":1476,"utf16_col":8},"end":{"line_number":1476,"utf16_col":12}},"extent_utf16":{"start":{"line_number":1476,"utf16_col":4},"end":{"line_number":1479,"utf16_col":46}}},{"name":"format","kind":"function","ident_start":49428,"ident_end":49434,"extent_start":49424,"extent_end":49506,"fully_qualified_name":"UserString.format","ident_utf16":{"start":{"line_number":1481,"utf16_col":8},"end":{"line_number":1481,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1481,"utf16_col":4},"end":{"line_number":1482,"utf16_col":46}}},{"name":"format_map","kind":"function","ident_start":49516,"ident_end":49526,"extent_start":49512,"extent_end":49587,"fully_qualified_name":"UserString.format_map","ident_utf16":{"start":{"line_number":1484,"utf16_col":8},"end":{"line_number":1484,"utf16_col":18}},"extent_utf16":{"start":{"line_number":1484,"utf16_col":4},"end":{"line_number":1485,"utf16_col":44}}},{"name":"index","kind":"function","ident_start":49597,"ident_end":49602,"extent_start":49593,"extent_end":49689,"fully_qualified_name":"UserString.index","ident_utf16":{"start":{"line_number":1487,"utf16_col":8},"end":{"line_number":1487,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1487,"utf16_col":4},"end":{"line_number":1488,"utf16_col":47}}},{"name":"isalpha","kind":"function","ident_start":49699,"ident_end":49706,"extent_start":49695,"extent_end":49748,"fully_qualified_name":"UserString.isalpha","ident_utf16":{"start":{"line_number":1490,"utf16_col":8},"end":{"line_number":1490,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1490,"utf16_col":4},"end":{"line_number":1491,"utf16_col":34}}},{"name":"isalnum","kind":"function","ident_start":49758,"ident_end":49765,"extent_start":49754,"extent_end":49807,"fully_qualified_name":"UserString.isalnum","ident_utf16":{"start":{"line_number":1493,"utf16_col":8},"end":{"line_number":1493,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1493,"utf16_col":4},"end":{"line_number":1494,"utf16_col":34}}},{"name":"isascii","kind":"function","ident_start":49817,"ident_end":49824,"extent_start":49813,"extent_end":49866,"fully_qualified_name":"UserString.isascii","ident_utf16":{"start":{"line_number":1496,"utf16_col":8},"end":{"line_number":1496,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1496,"utf16_col":4},"end":{"line_number":1497,"utf16_col":34}}},{"name":"isdecimal","kind":"function","ident_start":49876,"ident_end":49885,"extent_start":49872,"extent_end":49929,"fully_qualified_name":"UserString.isdecimal","ident_utf16":{"start":{"line_number":1499,"utf16_col":8},"end":{"line_number":1499,"utf16_col":17}},"extent_utf16":{"start":{"line_number":1499,"utf16_col":4},"end":{"line_number":1500,"utf16_col":36}}},{"name":"isdigit","kind":"function","ident_start":49939,"ident_end":49946,"extent_start":49935,"extent_end":49988,"fully_qualified_name":"UserString.isdigit","ident_utf16":{"start":{"line_number":1502,"utf16_col":8},"end":{"line_number":1502,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1502,"utf16_col":4},"end":{"line_number":1503,"utf16_col":34}}},{"name":"isidentifier","kind":"function","ident_start":49998,"ident_end":50010,"extent_start":49994,"extent_end":50057,"fully_qualified_name":"UserString.isidentifier","ident_utf16":{"start":{"line_number":1505,"utf16_col":8},"end":{"line_number":1505,"utf16_col":20}},"extent_utf16":{"start":{"line_number":1505,"utf16_col":4},"end":{"line_number":1506,"utf16_col":39}}},{"name":"islower","kind":"function","ident_start":50067,"ident_end":50074,"extent_start":50063,"extent_end":50116,"fully_qualified_name":"UserString.islower","ident_utf16":{"start":{"line_number":1508,"utf16_col":8},"end":{"line_number":1508,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1508,"utf16_col":4},"end":{"line_number":1509,"utf16_col":34}}},{"name":"isnumeric","kind":"function","ident_start":50126,"ident_end":50135,"extent_start":50122,"extent_end":50179,"fully_qualified_name":"UserString.isnumeric","ident_utf16":{"start":{"line_number":1511,"utf16_col":8},"end":{"line_number":1511,"utf16_col":17}},"extent_utf16":{"start":{"line_number":1511,"utf16_col":4},"end":{"line_number":1512,"utf16_col":36}}},{"name":"isprintable","kind":"function","ident_start":50189,"ident_end":50200,"extent_start":50185,"extent_end":50246,"fully_qualified_name":"UserString.isprintable","ident_utf16":{"start":{"line_number":1514,"utf16_col":8},"end":{"line_number":1514,"utf16_col":19}},"extent_utf16":{"start":{"line_number":1514,"utf16_col":4},"end":{"line_number":1515,"utf16_col":38}}},{"name":"isspace","kind":"function","ident_start":50256,"ident_end":50263,"extent_start":50252,"extent_end":50305,"fully_qualified_name":"UserString.isspace","ident_utf16":{"start":{"line_number":1517,"utf16_col":8},"end":{"line_number":1517,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1517,"utf16_col":4},"end":{"line_number":1518,"utf16_col":34}}},{"name":"istitle","kind":"function","ident_start":50315,"ident_end":50322,"extent_start":50311,"extent_end":50364,"fully_qualified_name":"UserString.istitle","ident_utf16":{"start":{"line_number":1520,"utf16_col":8},"end":{"line_number":1520,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1520,"utf16_col":4},"end":{"line_number":1521,"utf16_col":34}}},{"name":"isupper","kind":"function","ident_start":50374,"ident_end":50381,"extent_start":50370,"extent_end":50423,"fully_qualified_name":"UserString.isupper","ident_utf16":{"start":{"line_number":1523,"utf16_col":8},"end":{"line_number":1523,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1523,"utf16_col":4},"end":{"line_number":1524,"utf16_col":34}}},{"name":"join","kind":"function","ident_start":50433,"ident_end":50437,"extent_start":50429,"extent_end":50484,"fully_qualified_name":"UserString.join","ident_utf16":{"start":{"line_number":1526,"utf16_col":8},"end":{"line_number":1526,"utf16_col":12}},"extent_utf16":{"start":{"line_number":1526,"utf16_col":4},"end":{"line_number":1527,"utf16_col":34}}},{"name":"ljust","kind":"function","ident_start":50494,"ident_end":50499,"extent_start":50490,"extent_end":50581,"fully_qualified_name":"UserString.ljust","ident_utf16":{"start":{"line_number":1529,"utf16_col":8},"end":{"line_number":1529,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1529,"utf16_col":4},"end":{"line_number":1530,"utf16_col":60}}},{"name":"lower","kind":"function","ident_start":50591,"ident_end":50596,"extent_start":50587,"extent_end":50652,"fully_qualified_name":"UserString.lower","ident_utf16":{"start":{"line_number":1532,"utf16_col":8},"end":{"line_number":1532,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1532,"utf16_col":4},"end":{"line_number":1533,"utf16_col":48}}},{"name":"lstrip","kind":"function","ident_start":50662,"ident_end":50668,"extent_start":50658,"extent_end":50742,"fully_qualified_name":"UserString.lstrip","ident_utf16":{"start":{"line_number":1535,"utf16_col":8},"end":{"line_number":1535,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1535,"utf16_col":4},"end":{"line_number":1536,"utf16_col":54}}},{"name":"maketrans","kind":"constant","ident_start":50748,"ident_end":50757,"extent_start":50748,"extent_end":50773,"fully_qualified_name":"UserString.maketrans","ident_utf16":{"start":{"line_number":1538,"utf16_col":4},"end":{"line_number":1538,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1538,"utf16_col":4},"end":{"line_number":1538,"utf16_col":29}}},{"name":"partition","kind":"function","ident_start":50783,"ident_end":50792,"extent_start":50779,"extent_end":50844,"fully_qualified_name":"UserString.partition","ident_utf16":{"start":{"line_number":1540,"utf16_col":8},"end":{"line_number":1540,"utf16_col":17}},"extent_utf16":{"start":{"line_number":1540,"utf16_col":4},"end":{"line_number":1541,"utf16_col":39}}},{"name":"replace","kind":"function","ident_start":50854,"ident_end":50861,"extent_start":50850,"extent_end":51094,"fully_qualified_name":"UserString.replace","ident_utf16":{"start":{"line_number":1543,"utf16_col":8},"end":{"line_number":1543,"utf16_col":15}},"extent_utf16":{"start":{"line_number":1543,"utf16_col":4},"end":{"line_number":1548,"utf16_col":68}}},{"name":"rfind","kind":"function","ident_start":51104,"ident_end":51109,"extent_start":51100,"extent_end":51263,"fully_qualified_name":"UserString.rfind","ident_utf16":{"start":{"line_number":1550,"utf16_col":8},"end":{"line_number":1550,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1550,"utf16_col":4},"end":{"line_number":1553,"utf16_col":47}}},{"name":"rindex","kind":"function","ident_start":51273,"ident_end":51279,"extent_start":51269,"extent_end":51367,"fully_qualified_name":"UserString.rindex","ident_utf16":{"start":{"line_number":1555,"utf16_col":8},"end":{"line_number":1555,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1555,"utf16_col":4},"end":{"line_number":1556,"utf16_col":48}}},{"name":"rjust","kind":"function","ident_start":51377,"ident_end":51382,"extent_start":51373,"extent_end":51464,"fully_qualified_name":"UserString.rjust","ident_utf16":{"start":{"line_number":1558,"utf16_col":8},"end":{"line_number":1558,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1558,"utf16_col":4},"end":{"line_number":1559,"utf16_col":60}}},{"name":"rpartition","kind":"function","ident_start":51474,"ident_end":51484,"extent_start":51470,"extent_end":51537,"fully_qualified_name":"UserString.rpartition","ident_utf16":{"start":{"line_number":1561,"utf16_col":8},"end":{"line_number":1561,"utf16_col":18}},"extent_utf16":{"start":{"line_number":1561,"utf16_col":4},"end":{"line_number":1562,"utf16_col":40}}},{"name":"rstrip","kind":"function","ident_start":51547,"ident_end":51553,"extent_start":51543,"extent_end":51627,"fully_qualified_name":"UserString.rstrip","ident_utf16":{"start":{"line_number":1564,"utf16_col":8},"end":{"line_number":1564,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1564,"utf16_col":4},"end":{"line_number":1565,"utf16_col":54}}},{"name":"split","kind":"function","ident_start":51637,"ident_end":51642,"extent_start":51633,"extent_end":51718,"fully_qualified_name":"UserString.split","ident_utf16":{"start":{"line_number":1567,"utf16_col":8},"end":{"line_number":1567,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1567,"utf16_col":4},"end":{"line_number":1568,"utf16_col":45}}},{"name":"rsplit","kind":"function","ident_start":51728,"ident_end":51734,"extent_start":51724,"extent_end":51811,"fully_qualified_name":"UserString.rsplit","ident_utf16":{"start":{"line_number":1570,"utf16_col":8},"end":{"line_number":1570,"utf16_col":14}},"extent_utf16":{"start":{"line_number":1570,"utf16_col":4},"end":{"line_number":1571,"utf16_col":46}}},{"name":"splitlines","kind":"function","ident_start":51821,"ident_end":51831,"extent_start":51817,"extent_end":51900,"fully_qualified_name":"UserString.splitlines","ident_utf16":{"start":{"line_number":1573,"utf16_col":8},"end":{"line_number":1573,"utf16_col":18}},"extent_utf16":{"start":{"line_number":1573,"utf16_col":4},"end":{"line_number":1574,"utf16_col":45}}},{"name":"startswith","kind":"function","ident_start":51910,"ident_end":51920,"extent_start":51906,"extent_end":52018,"fully_qualified_name":"UserString.startswith","ident_utf16":{"start":{"line_number":1576,"utf16_col":8},"end":{"line_number":1576,"utf16_col":18}},"extent_utf16":{"start":{"line_number":1576,"utf16_col":4},"end":{"line_number":1577,"utf16_col":55}}},{"name":"strip","kind":"function","ident_start":52028,"ident_end":52033,"extent_start":52024,"extent_end":52106,"fully_qualified_name":"UserString.strip","ident_utf16":{"start":{"line_number":1579,"utf16_col":8},"end":{"line_number":1579,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1579,"utf16_col":4},"end":{"line_number":1580,"utf16_col":53}}},{"name":"swapcase","kind":"function","ident_start":52116,"ident_end":52124,"extent_start":52112,"extent_end":52183,"fully_qualified_name":"UserString.swapcase","ident_utf16":{"start":{"line_number":1582,"utf16_col":8},"end":{"line_number":1582,"utf16_col":16}},"extent_utf16":{"start":{"line_number":1582,"utf16_col":4},"end":{"line_number":1583,"utf16_col":51}}},{"name":"title","kind":"function","ident_start":52193,"ident_end":52198,"extent_start":52189,"extent_end":52254,"fully_qualified_name":"UserString.title","ident_utf16":{"start":{"line_number":1585,"utf16_col":8},"end":{"line_number":1585,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1585,"utf16_col":4},"end":{"line_number":1586,"utf16_col":48}}},{"name":"translate","kind":"function","ident_start":52264,"ident_end":52273,"extent_start":52260,"extent_end":52345,"fully_qualified_name":"UserString.translate","ident_utf16":{"start":{"line_number":1588,"utf16_col":8},"end":{"line_number":1588,"utf16_col":17}},"extent_utf16":{"start":{"line_number":1588,"utf16_col":4},"end":{"line_number":1589,"utf16_col":57}}},{"name":"upper","kind":"function","ident_start":52355,"ident_end":52360,"extent_start":52351,"extent_end":52416,"fully_qualified_name":"UserString.upper","ident_utf16":{"start":{"line_number":1591,"utf16_col":8},"end":{"line_number":1591,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1591,"utf16_col":4},"end":{"line_number":1592,"utf16_col":48}}},{"name":"zfill","kind":"function","ident_start":52426,"ident_end":52431,"extent_start":52422,"extent_end":52499,"fully_qualified_name":"UserString.zfill","ident_utf16":{"start":{"line_number":1594,"utf16_col":8},"end":{"line_number":1594,"utf16_col":13}},"extent_utf16":{"start":{"line_number":1594,"utf16_col":4},"end":{"line_number":1595,"utf16_col":53}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/python/cpython/branches":{"post":"9T7akS1-4lU7pvgh3EyhfT4OnpN8PY4ZABHRVMsRtjY898ljrpc0q3qyAX_xZp0xCFsLq4wZKajFXnzilQ9AvQ"},"/repos/preferences":{"post":"7BtzFfrHThDJq0EWy8Kl3MJB_hllx3WvXEfmYthtQt6FW8DUO9GLyJ5_PRkYk2vOKWC1j0nix1wMklnm88uJLA"}}},"title":"cpython/Lib/collections/__init__.py at 3.13 · python/cpython","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0