id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
29,900
utils.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/utils.py
""" A universal module with functions / classes without dependencies. """ import functools import re import os _sep = os.path.sep if os.path.altsep is not None: _sep += os.path.altsep _path_re = re.compile(r'(?:\.[^{0}]+|[{0}]__init__\.py)$'.format(re.escape(_sep))) del _sep def to_list(func): def wrapper(*...
2,706
Python
.py
68
34.176471
82
0.683104
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,901
cache.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/cache.py
""" - the popular ``_memoize_default`` works like a typical memoize and returns the default otherwise. - ``CachedMetaClass`` uses ``_memoize_default`` to do the same with classes. """ from functools import wraps from jedi import debug _NO_DEFAULT = object() _RECURSION_SENTINEL = object() def _memoize_default(defa...
4,191
Python
.py
101
30.475248
89
0.589422
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,902
recursion.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/recursion.py
""" Recursions are the recipe of |jedi| to conquer Python code. However, someone must stop recursions going mad. Some settings are here to make |jedi| stop at the right time. You can read more about them :ref:`here <settings-recursion>`. Next to the internal ``jedi.inference.cache`` this module also makes |jedi| not t...
4,932
Python
.py
124
32.266129
98
0.663528
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,903
__init__.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/__init__.py
""" Type inference of Python code in |jedi| is based on three assumptions: * The code uses as least side effects as possible. Jedi understands certain list/tuple/set modifications, but there's no guarantee that Jedi detects everything (list.append in different modules for example). * No magic is being used: - m...
8,441
Python
.py
165
43.806061
92
0.679243
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,904
parser_cache.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/parser_cache.py
from jedi.inference.cache import inference_state_function_cache @inference_state_function_cache() def get_yield_exprs(inference_state, funcdef): return list(funcdef.iter_yield_exprs())
191
Python
.py
4
45.25
63
0.810811
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,905
docstrings.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/docstrings.py
""" Docstrings are another source of information for functions and classes. :mod:`jedi.inference.dynamic_params` tries to find all executions of functions, while the docstring parsing is much easier. There are three different types of docstrings that |jedi| understands: - `Sphinx <http://sphinx-doc.org/markup/desc.htm...
9,824
Python
.py
238
34.142857
91
0.634305
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,906
sys_path.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/sys_path.py
import os import re from pathlib import Path from importlib.machinery import all_suffixes from jedi.inference.cache import inference_state_method_cache from jedi.inference.base_value import ContextualizedNode from jedi.inference.helpers import is_string, get_str_or_none from jedi.parser_utils import get_cached_code_li...
10,218
Python
.py
229
35.065502
100
0.616228
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,907
docstring_utils.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/docstring_utils.py
from jedi.inference.value import ModuleValue from jedi.inference.context import ModuleContext class DocstringModule(ModuleValue): def __init__(self, in_module_context, **kwargs): super().__init__(**kwargs) self._in_module_context = in_module_context def _as_context(self): return Docst...
759
Python
.py
15
44.4
69
0.716802
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,908
signature.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/signature.py
from inspect import Parameter from jedi.cache import memoize_method from jedi import debug from jedi import parser_utils class _SignatureMixin: def to_string(self): def param_strings(): is_positional = False is_kw_only = False for n in self.get_param_names(resolve_star...
4,859
Python
.py
121
30.157025
91
0.599958
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,909
star_args.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/star_args.py
""" This module is responsible for inferring *args and **kwargs for signatures. This means for example in this case:: def foo(a, b, c): ... def bar(*args): return foo(1, *args) The signature here for bar should be `bar(b, c)` instead of bar(*args). """ from inspect import Parameter from parso impor...
7,895
Python
.py
188
30.984043
84
0.589055
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,910
base_value.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/base_value.py
""" Values are the "values" that Python would return. However Values are at the same time also the "values" that a user is currently sitting in. A ValueSet is typically used to specify the return of a function or any other static analysis operation. In jedi there are always multiple returns and not just one. """ from ...
18,221
Python
.py
436
32.830275
93
0.620053
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,911
imports.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/imports.py
""" :mod:`jedi.inference.imports` is here to resolve import statements and return the modules/classes/functions/whatever, which they stand for. However there's not any actual importing done. This module is about finding modules in the filesystem. This can be quite tricky sometimes, because Python imports are not always...
23,082
Python
.py
520
33.725
94
0.603068
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,912
helpers.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/helpers.py
import copy import sys import re import os from itertools import chain from contextlib import contextmanager from parso.python import tree def is_stdlib_path(path): # Python standard library paths look like this: # /usr/lib/python3.9/... # TODO The implementation below is probably incorrect and not compl...
5,943
Python
.py
157
30.477707
92
0.634558
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,913
syntax_tree.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/syntax_tree.py
""" Functions inferring the syntax tree. """ import copy from parso.python import tree from jedi import debug from jedi import parser_utils from jedi.inference.base_value import ValueSet, NO_VALUES, ContextualizedNode, \ iterator_to_value_set, iterate_values from jedi.inference.lazy_value import LazyTreeValue fro...
35,356
Python
.py
783
34.810983
97
0.597047
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,914
module.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/value/module.py
import os from pathlib import Path from typing import Optional from jedi.inference.cache import inference_state_method_cache from jedi.inference.names import AbstractNameDefinition, ModuleName from jedi.inference.filters import GlobalNameFilter, ParserTreeFilter, DictFilter, MergedFilter from jedi.inference import com...
8,118
Python
.py
194
32.242268
95
0.607378
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,915
iterable.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/value/iterable.py
""" Contains all classes and functions to deal with lists, dicts, generators and iterators in general. """ from jedi.inference import compiled from jedi.inference import analysis from jedi.inference.lazy_value import LazyKnownValue, LazyKnownValues, \ LazyTreeValue from jedi.inference.helpers import get_int_or_none...
23,305
Python
.py
520
35.048077
100
0.614044
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,916
decorator.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/value/decorator.py
''' Decorators are not really values, however we need some wrappers to improve docstrings and other things around decorators. ''' from jedi.inference.base_value import ValueWrapper, ValueSet class Decoratee(ValueWrapper): def __init__(self, wrapped_value, original_value): super().__init__(wrapped_value) ...
1,207
Python
.py
28
35.607143
76
0.658142
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,917
function.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/value/function.py
from parso.python import tree from jedi import debug from jedi.inference.cache import inference_state_method_cache, CachedMetaClass from jedi.inference import compiled from jedi.inference import recursion from jedi.inference import docstrings from jedi.inference import flow_analysis from jedi.inference.signature impor...
17,424
Python
.py
385
33.787013
96
0.607499
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,918
dynamic_arrays.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/value/dynamic_arrays.py
""" A module to deal with stuff like `list.append` and `set.add`. Array modifications ******************* If the content of an array (``set``/``list``) is requested somewhere, the current module will be checked for appearances of ``arr.append``, ``arr.insert``, etc. If the ``arr`` name points to an actual array, the...
7,526
Python
.py
162
36.82716
98
0.631177
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,919
klass.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/value/klass.py
""" Like described in the :mod:`parso.python.tree` module, there's a need for an ast like module to represent the states of parsed modules. But now there are also structures in Python that need a little bit more than that. An ``Instance`` for example is only a ``Class`` before it is instantiated. This class represents...
16,685
Python
.py
351
35.900285
99
0.581992
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,920
namespace.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/value/namespace.py
from pathlib import Path from typing import Optional from jedi.inference.cache import inference_state_method_cache from jedi.inference.filters import DictFilter from jedi.inference.names import ValueNameMixin, AbstractNameDefinition from jedi.inference.base_value import Value from jedi.inference.value.module import Su...
2,101
Python
.py
56
31.410714
76
0.686236
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,921
__init__.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/value/__init__.py
# Re-export symbols for wider use. We configure mypy and flake8 to be aware that # this file does this. from jedi.inference.value.module import ModuleValue from jedi.inference.value.klass import ClassValue from jedi.inference.value.function import FunctionValue, \ MethodValue from jedi.inference.value.instance imp...
416
Python
.py
8
49.875
80
0.835381
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,922
instance.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/value/instance.py
from abc import abstractproperty from parso.tree import search_ancestor from jedi import debug from jedi import settings from jedi.inference import compiled from jedi.inference.compiled.value import CompiledValueFilter from jedi.inference.helpers import values_from_qualified_names, is_big_annoying_library from jedi.i...
22,511
Python
.py
497
35.036217
96
0.61883
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,923
access.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/compiled/access.py
import inspect import types import traceback import sys import operator as op from collections import namedtuple import warnings import re import builtins import typing from pathlib import Path from typing import Optional from jedi.inference.compiled.getattr_static import getattr_static ALLOWED_GETITEM_TYPES = (str, ...
18,442
Python
.py
470
29.293617
99
0.590696
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,924
getattr_static.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/compiled/getattr_static.py
""" A static version of getattr. This is a backport of the Python 3 code with a little bit of additional information returned to enable Jedi to make decisions. """ import types from jedi import debug _sentinel = object() def _check_instance(obj, attr): instance_dict = {} try: instance_dict = object...
3,862
Python
.py
96
32.229167
85
0.631382
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,925
__init__.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/compiled/__init__.py
# This file also re-exports symbols for wider use. We configure mypy and flake8 # to be aware that this file does this. from jedi.inference.compiled.value import CompiledValue, CompiledName, \ CompiledValueFilter, CompiledValueName, create_from_access_path from jedi.inference.base_value import LazyValueWrapper d...
2,651
Python
.py
56
41.160714
100
0.699341
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,926
value.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/compiled/value.py
""" Imitate the parser representation. """ import re from functools import partial from inspect import Parameter from pathlib import Path from typing import Optional from jedi import debug from jedi.inference.utils import to_list from jedi.cache import memoize_method from jedi.inference.filters import AbstractFilter f...
20,526
Python
.py
499
32.0501
96
0.622477
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,927
mixed.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/compiled/mixed.py
""" Used only for REPL Completion. """ import inspect from pathlib import Path from jedi.parser_utils import get_cached_code_lines from jedi import settings from jedi.cache import memoize_method from jedi.inference import compiled from jedi.file_io import FileIO from jedi.inference.names import NameWrapper from jedi...
11,355
Python
.py
257
36.431907
88
0.664222
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,928
__main__.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/compiled/subprocess/__main__.py
import os import sys from importlib.abc import MetaPathFinder from importlib.machinery import PathFinder # Remove the first entry, because it's simply a directory entry that equals # this directory. del sys.path[0] def _get_paths(): # Get the path to jedi. _d = os.path.dirname _jedi_path = _d(_d(_d(_d(_d...
1,167
Python
.py
31
33.387097
75
0.689441
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,929
__init__.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/compiled/subprocess/__init__.py
""" Makes it possible to do the compiled analysis in a subprocess. This has two goals: 1. Making it safer - Segfaults and RuntimeErrors as well as stdout/stderr can be ignored and dealt with. 2. Make it possible to handle different Python versions as well as virtualenvs. """ import collections import os import sys...
13,490
Python
.py
325
31.44
97
0.607069
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,930
functions.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/compiled/subprocess/functions.py
import sys import os import inspect import importlib import warnings from pathlib import Path from zipfile import ZipFile from zipimport import zipimporter, ZipImportError from importlib.machinery import all_suffixes from jedi.inference.compiled import access from jedi import debug from jedi import parser_utils from j...
8,666
Python
.py
206
33.674757
99
0.649269
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,931
annotation.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/gradual/annotation.py
""" PEP 0484 ( https://www.python.org/dev/peps/pep-0484/ ) describes type hints through function annotations. There is a strong suggestion in this document that only the type of type hinting defined in PEP0484 should be allowed as annotations in future python versions. """ import re from inspect import Parameter from...
15,932
Python
.py
380
33.878947
97
0.650498
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,932
generics.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/gradual/generics.py
""" This module is about generics, like the `int` in `List[int]`. It's not about the Generic class. """ from jedi import debug from jedi.cache import memoize_method from jedi.inference.utils import to_tuple from jedi.inference.base_value import ValueSet, NO_VALUES from jedi.inference.value.iterable import SequenceLite...
3,144
Python
.py
79
31.329114
97
0.621755
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,933
typeshed.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/gradual/typeshed.py
import os import re from functools import wraps from collections import namedtuple from typing import Dict, Mapping, Tuple from pathlib import Path from jedi import settings from jedi.file_io import FileIO from jedi.parser_utils import get_cached_code_lines from jedi.inference.base_value import ValueSet, NO_VALUES fro...
11,467
Python
.py
264
33.356061
97
0.603926
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,934
type_var.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/gradual/type_var.py
from jedi import debug from jedi.inference.base_value import ValueSet, NO_VALUES, ValueWrapper from jedi.inference.gradual.base import BaseTypingValue class TypeVarClass(ValueWrapper): def py__call__(self, arguments): unpacked = arguments.unpack() key, lazy_value = next(unpacked, (None, None)) ...
4,139
Python
.py
104
29.346154
91
0.583998
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,935
utils.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/gradual/utils.py
from pathlib import Path from jedi.inference.gradual.typeshed import TYPESHED_PATH, create_stub_module def load_proper_stub_module(inference_state, grammar, file_io, import_names, module_node): """ This function is given a random .pyi file and should return the proper module. """ path = file_io.p...
1,147
Python
.py
30
31.066667
90
0.641187
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,936
stub_value.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/gradual/stub_value.py
from jedi.inference.base_value import ValueWrapper from jedi.inference.value.module import ModuleValue from jedi.inference.filters import ParserTreeFilter from jedi.inference.names import StubName, StubModuleName from jedi.inference.gradual.typing import TypingModuleFilterWrapper from jedi.inference.context import Modu...
3,329
Python
.py
79
33.987342
82
0.659957
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,937
__init__.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/gradual/__init__.py
""" It is unfortunately not well documented how stubs and annotations work in Jedi. If somebody needs an introduction, please let me know. """
143
Python
.py
4
34.75
79
0.791367
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,938
base.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/gradual/base.py
from jedi.inference.cache import inference_state_method_cache from jedi.inference.base_value import ValueSet, NO_VALUES, Value, \ iterator_to_value_set, LazyValueWrapper, ValueWrapper from jedi.inference.compiled import builtin_from_name from jedi.inference.value.klass import ClassFilter from jedi.inference.value.k...
15,554
Python
.py
350
33.471429
99
0.593254
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,939
conversion.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/gradual/conversion.py
from jedi import debug from jedi.inference.base_value import ValueSet, \ NO_VALUES from jedi.inference.utils import to_list from jedi.inference.gradual.stub_value import StubModuleValue from jedi.inference.gradual.typeshed import try_to_load_stub_cached from jedi.inference.value.decorator import Decoratee def _st...
7,601
Python
.py
180
31.311111
97
0.600785
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,940
typing.py
DamnWidget_anaconda/anaconda_lib/jedi/inference/gradual/typing.py
""" We need to somehow work with the typing objects. Since the typing objects are pretty bare we need to add all the Jedi customizations to make them work as values. This file deals with all the typing.py cases. """ import itertools from jedi import debug from jedi.inference.compiled import builtin_from_name, create_...
17,230
Python
.py
397
33.596977
99
0.627464
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,941
completion_cache.py
DamnWidget_anaconda/anaconda_lib/jedi/api/completion_cache.py
from typing import Dict, Tuple, Callable CacheValues = Tuple[str, str, str] CacheValuesCallback = Callable[[], CacheValues] _cache: Dict[str, Dict[str, CacheValues]] = {} def save_entry(module_name: str, name: str, cache: CacheValues) -> None: try: module_cache = _cache[module_name] except KeyError...
954
Python
.py
22
37.409091
99
0.670639
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,942
project.py
DamnWidget_anaconda/anaconda_lib/jedi/api/project.py
""" Projects are a way to handle Python projects within Jedi. For simpler plugins you might not want to deal with projects, but if you want to give the user more flexibility to define sys paths and Python interpreters for a project, :class:`.Project` is the perfect way to allow for that. Projects can be saved to disk ...
16,613
Python
.py
386
32.406736
97
0.59729
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,943
errors.py
DamnWidget_anaconda/anaconda_lib/jedi/api/errors.py
""" This file is about errors in Python files and not about exception handling in Jedi. """ def parso_to_jedi_errors(grammar, module_node): return [SyntaxError(e) for e in grammar.iter_errors(module_node)] class SyntaxError: """ Syntax errors are generated by :meth:`.Script.get_syntax_errors`. """ ...
1,253
Python
.py
36
28.194444
77
0.622204
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,944
keywords.py
DamnWidget_anaconda/anaconda_lib/jedi/api/keywords.py
import pydoc from contextlib import suppress from typing import Dict, Optional from jedi.inference.names import AbstractArbitraryName try: # https://github.com/python/typeshed/pull/4351 adds pydoc_data from pydoc_data import topics # type: ignore[import] pydoc_topics: Optional[Dict[str, str]] = topics.to...
1,283
Python
.py
40
26.375
76
0.674249
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,945
file_name.py
DamnWidget_anaconda/anaconda_lib/jedi/api/file_name.py
import os from jedi.api import classes from jedi.api.strings import StringName, get_quote_ending from jedi.api.helpers import match from jedi.inference.helpers import get_str_or_none class PathName(StringName): api_type = 'path' def complete_file_name(inference_state, module_context, start_leaf, quote, string,...
5,620
Python
.py
132
33.287879
92
0.614273
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,946
strings.py
DamnWidget_anaconda/anaconda_lib/jedi/api/strings.py
""" This module is here for string completions. This means mostly stuff where strings are returned, like `foo = dict(bar=3); foo["ba` would complete to `"bar"]`. It however does the same for numbers. The difference between string completions and other completions is mostly that this module doesn't return defined names...
3,616
Python
.py
84
35.428571
90
0.649658
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,947
interpreter.py
DamnWidget_anaconda/anaconda_lib/jedi/api/interpreter.py
""" TODO Some parts of this module are still not well documented. """ from jedi.inference import compiled from jedi.inference.base_value import ValueSet from jedi.inference.filters import ParserTreeFilter, MergedFilter from jedi.inference.names import TreeNameDefinition from jedi.inference.compiled import mixed from j...
2,415
Python
.py
60
31.15
80
0.651858
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,948
environment.py
DamnWidget_anaconda/anaconda_lib/jedi/api/environment.py
""" Environments are a way to activate different Python versions or Virtualenvs for static analysis. The Python binary in that environment is going to be executed. """ import os import sys import hashlib import filecmp from collections import namedtuple from shutil import which from jedi.cache import memoize_method, t...
16,956
Python
.py
382
36.489529
85
0.659773
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,949
__init__.py
DamnWidget_anaconda/anaconda_lib/jedi/api/__init__.py
""" The API basically only provides one class. You can create a :class:`Script` and use its methods. Additionally you can add a debug function with :func:`set_debug_function`. Alternatively, if you don't need a custom function and are happy with printing debug messages to stdout, simply call :func:`set_debug_function`...
31,270
Python
.py
657
37.410959
98
0.621979
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,950
classes.py
DamnWidget_anaconda/anaconda_lib/jedi/api/classes.py
""" There are a couple of classes documented in here: - :class:`.BaseName` as an abstact base class for almost everything. - :class:`.Name` used in a lot of places - :class:`.Completion` for completions - :class:`.BaseSignature` as a base class for signatures - :class:`.Signature` for :meth:`.Script.get_signatures` on...
29,637
Python
.py
740
30.927027
95
0.589193
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,951
exceptions.py
DamnWidget_anaconda/anaconda_lib/jedi/api/exceptions.py
class _JediError(Exception): pass class InternalError(_JediError): """ This error might happen a subprocess is crashing. The reason for this is usually broken C code in third party libraries. This is not a very common thing and it is safe to use Jedi again. However using the same calls might r...
991
Python
.py
24
36.666667
79
0.725
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,952
completion.py
DamnWidget_anaconda/anaconda_lib/jedi/api/completion.py
import re from textwrap import dedent from inspect import Parameter from parso.python.token import PythonTokenTypes from parso.python import tree from parso.tree import search_ancestor, Leaf from parso import split_lines from jedi import debug from jedi import settings from jedi.api import classes from jedi.api impor...
27,191
Python
.py
570
35.077193
98
0.578888
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,953
helpers.py
DamnWidget_anaconda/anaconda_lib/jedi/api/helpers.py
""" Helpers for the API """ import re from collections import namedtuple from textwrap import dedent from itertools import chain from functools import wraps from inspect import Parameter from parso.python.parser import Parser from parso.python import tree from jedi.inference.base_value import NO_VALUES from jedi.infe...
18,944
Python
.py
437
32.826087
88
0.586364
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,954
replstartup.py
DamnWidget_anaconda/anaconda_lib/jedi/api/replstartup.py
""" To use Jedi completion in Python interpreter, add the following in your shell setup (e.g., ``.bashrc``). This works only on Linux/Mac, because readline is not available on Windows. If you still want Jedi autocompletion in your REPL, just use IPython instead:: export PYTHONSTARTUP="$(python -m jedi repl)" Then...
950
Python
.py
22
40.409091
77
0.704669
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,955
__init__.py
DamnWidget_anaconda/anaconda_lib/jedi/api/refactoring/__init__.py
import difflib from pathlib import Path from typing import Dict, Iterable, Tuple from parso import split_lines from jedi.api.exceptions import RefactoringError EXPRESSION_PARTS = ( 'or_test and_test not_test comparison ' 'expr xor_expr and_expr shift_expr arith_expr term factor power atom_expr' ).split() c...
8,820
Python
.py
201
34.651741
95
0.59944
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,956
extract.py
DamnWidget_anaconda/anaconda_lib/jedi/api/refactoring/extract.py
from textwrap import dedent from parso import split_lines from jedi import debug from jedi.api.exceptions import RefactoringError from jedi.api.refactoring import Refactoring, EXPRESSION_PARTS from jedi.common import indent_block from jedi.parser_utils import function_is_classmethod, function_is_staticmethod _DEFIN...
13,933
Python
.py
313
35.71246
93
0.626633
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,957
pytest.py
DamnWidget_anaconda/anaconda_lib/jedi/plugins/pytest.py
from pathlib import Path from parso.tree import search_ancestor from jedi.inference.cache import inference_state_method_cache from jedi.inference.imports import load_module_from_path from jedi.inference.filters import ParserTreeFilter from jedi.inference.base_value import NO_VALUES, ValueSet from jedi.inference.helper...
7,730
Python
.py
173
33.369942
96
0.601701
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,958
flask.py
DamnWidget_anaconda/anaconda_lib/jedi/plugins/flask.py
def import_module(callback): """ Handle "magic" Flask extension imports: ``flask.ext.foo`` is really ``flask_foo`` or ``flaskext.foo``. """ def wrapper(inference_state, import_names, module_context, *args, **kwargs): if len(import_names) == 3 and import_names[:2] == ('flask', 'ext'): ...
916
Python
.py
21
32.904762
87
0.555307
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,959
stdlib.py
DamnWidget_anaconda/anaconda_lib/jedi/plugins/stdlib.py
""" Implementations of standard library functions, because it's not possible to understand them with Jedi. To add a new implementation, create a function and add it to the ``_implemented`` dict at the bottom of this module. Note that this module exists only to implement very specific functionality in the standard lib...
29,917
Python
.py
713
33.13885
99
0.627629
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,960
__init__.py
DamnWidget_anaconda/anaconda_lib/jedi/plugins/__init__.py
from functools import wraps class _PluginManager: def __init__(self): self._registered_plugins = [] self._cached_base_callbacks = {} self._built_functions = {} def register(self, *plugins): """ Makes it possible to register your plugin. """ self._regist...
1,445
Python
.py
36
28.722222
68
0.581545
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,961
django.py
DamnWidget_anaconda/anaconda_lib/jedi/plugins/django.py
""" Module is used to infer Django model fields. """ from inspect import Parameter from jedi import debug from jedi.inference.cache import inference_state_function_cache from jedi.inference.base_value import ValueSet, iterator_to_value_set, ValueWrapper from jedi.inference.filters import DictFilter, AttributeOverwrite...
10,895
Python
.py
233
38.008584
88
0.6444
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,962
registry.py
DamnWidget_anaconda/anaconda_lib/jedi/plugins/registry.py
""" This is not a plugin, this is just the place were plugins are registered. """ from jedi.plugins import stdlib from jedi.plugins import flask from jedi.plugins import pytest from jedi.plugins import django from jedi.plugins import plugin_manager plugin_manager.register(stdlib, flask, pytest, django)
307
Python
.py
9
32.777778
73
0.823729
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,963
basestemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/basestemmer.py
class BaseStemmer(object): def __init__(self): self.set_current("") self.maxCacheSize = 10000 self._cache = {} self._counter = 0 def set_current(self, value): ''' Set the self.current string. ''' self.current = value self.cursor = 0 ...
10,107
Python
.py
313
21.022364
106
0.473145
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,964
norwegian_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/norwegian_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class NorwegianStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a...
8,854
Python
.py
286
20.468531
84
0.482206
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,965
romanian_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/romanian_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class RomanianStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a ...
30,431
Python
.py
868
20.381336
98
0.409625
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,966
turkish_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/turkish_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class TurkishStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a s...
95,322
Python
.py
2,480
20.390726
99
0.390435
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,967
among.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/among.py
class Among(object): def __init__(self, s, substring_i, result, method=None): """ @ivar s_size search string size @ivar s search string @ivar substring index to longest matching substring @ivar result of the lookup @ivar method method to use if substring matches ...
473
Python
.py
14
25.571429
60
0.600437
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,968
russian_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/russian_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class RussianStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a s...
20,090
Python
.py
593
21.689713
81
0.459434
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,969
spanish_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/spanish_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class SpanishStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a s...
33,490
Python
.py
982
19.745418
93
0.407746
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,970
english_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/english_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class EnglishStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a s...
35,043
Python
.py
1,065
18.550235
93
0.404758
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,971
porter_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/porter_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class PorterStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a sn...
24,625
Python
.py
753
18.863214
92
0.420485
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,972
french_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/french_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class FrenchStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a sn...
45,794
Python
.py
1,247
18.844427
104
0.366365
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,973
dutch_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/dutch_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class DutchStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a sno...
23,184
Python
.py
660
18.619697
95
0.383924
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,974
hungarian_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/hungarian_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class HungarianStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a...
30,026
Python
.py
983
19.19532
84
0.439453
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,975
__init__.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/__init__.py
__all__ = ('language', 'stemmer') from .danish_stemmer import DanishStemmer from .dutch_stemmer import DutchStemmer from .english_stemmer import EnglishStemmer from .finnish_stemmer import FinnishStemmer from .french_stemmer import FrenchStemmer from .german_stemmer import GermanStemmer from .hungarian_stemmer import ...
1,718
Python
.py
52
29.326923
66
0.763998
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,976
italian_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/italian_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class ItalianStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a s...
34,904
Python
.py
986
19.353955
97
0.383825
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,977
finnish_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/finnish_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class FinnishStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a s...
25,600
Python
.py
802
20.387781
82
0.460292
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,978
portuguese_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/portuguese_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class PortugueseStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by ...
32,115
Python
.py
921
19.65038
96
0.399024
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,979
danish_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/danish_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class DanishStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a sn...
10,457
Python
.py
339
20.522124
78
0.48429
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,980
swedish_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/swedish_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class SwedishStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a s...
8,673
Python
.py
282
20.599291
78
0.484519
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,981
german_stemmer.py
DamnWidget_anaconda/anaconda_lib/snowballstemmer/german_stemmer.py
# self file was generated automatically by the Snowball to Python interpreter from .basestemmer import BaseStemmer from .among import Among class GermanStemmer(BaseStemmer): ''' self class was automatically generated by a Snowball to Python interpreter It implements the stemming algorithm defined by a sn...
21,402
Python
.py
583
18.331046
96
0.362818
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,982
local_process.py
DamnWidget_anaconda/anaconda_lib/workers/local_process.py
# Copyright (C) 2013 - 2016 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os from ..helpers import create_subprocess from ..helpers import debug_enabled, active_view class LocalProcess(object): """Starts a new local instance of the JsonServer ...
2,422
Python
.py
63
29.079365
79
0.603419
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,983
worker.py
DamnWidget_anaconda/anaconda_lib/workers/worker.py
# Copyright (C) 2013 - 2016 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import errno import socket import sublime from ..logger import Log from ..helpers import get_settings from ..jsonclient import AsynClient from ..constants import WorkerStatus from .....
5,709
Python
.py
144
28.159722
80
0.57241
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,984
remote_worker.py
DamnWidget_anaconda/anaconda_lib/workers/remote_worker.py
# Copyright (C) 2013 - 2016 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from ..logger import Log from .worker import Worker from ..helpers import project_name from ..constants import WorkerStatus class RemoteWorker(Worker): """This class implements a...
2,508
Python
.py
59
32.322034
74
0.617441
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,985
vagrant_worker.py
DamnWidget_anaconda/anaconda_lib/workers/vagrant_worker.py
# Copyright (C) 2013 - 2016 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import time import sublime from .worker import Worker from ..helpers import project_name from ..constants import WorkerStatus from ..progress_bar import ProgressBar from ..vagrant im...
6,485
Python
.py
156
28.544872
79
0.554743
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,986
interpreter.py
DamnWidget_anaconda/anaconda_lib/workers/interpreter.py
# Copyright (C) 2013 - 2016 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os import socket from urllib.parse import urlparse, parse_qs import sublime from ..logger import Log from ..unix_socket import UnixSocketPath from ..helpers import project_na...
8,127
Python
.py
202
29.514851
87
0.558944
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,987
remote_process.py
DamnWidget_anaconda/anaconda_lib/workers/remote_process.py
# Copyright (C) 2013 - 2016 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details class StubProcess(object): """Self descriptive class name, right? """ def __init__(self, interpreter): self._process = None self._interpreter = None ...
416
Python
.py
12
28.5
72
0.650754
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,988
process.py
DamnWidget_anaconda/anaconda_lib/workers/process.py
# Copyright (C) 2013 - 2016 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from .local_process import LocalProcess from .remote_process import StubProcess from .vagrant_process import VagrantProcess class WorkerProcess(object): """Return a right process...
636
Python
.py
14
40.785714
76
0.739837
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,989
vagrant_process.py
DamnWidget_anaconda/anaconda_lib/workers/vagrant_process.py
# Copyright (C) 2013 - 2016 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os import time import shlex import socket import subprocess from ..logger import Log from ..helpers import create_subprocess from ..helpers import debug_enabled, active_view, g...
4,501
Python
.py
110
30.518182
79
0.580527
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,990
local_worker.py
DamnWidget_anaconda/anaconda_lib/workers/local_worker.py
# Copyright (C) 2013 - 2016 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import time import platform import sublime from ..logger import Log from .worker import Worker from ..helpers import project_name, get_socket_timeout from ..constants import WorkerSt...
4,332
Python
.py
102
32.27451
78
0.604424
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,991
market.py
DamnWidget_anaconda/anaconda_lib/workers/market.py
# Copyright (C) 2013 - 2016 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import threading import sublime from ..info import Repr from ..logger import Log from ..constants import WorkerStatus from .interpreter import Interpreter from .local_worker import L...
3,927
Python
.py
100
29.31
79
0.590155
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,992
tree.py
DamnWidget_anaconda/anaconda_lib/parso/tree.py
from abc import abstractmethod, abstractproperty from typing import List, Optional, Tuple, Union from parso.utils import split_lines def search_ancestor(node: 'NodeOrLeaf', *node_types: str) -> 'Optional[BaseNode]': """ Recursively looks at the parents of a node and returns the first found node that matc...
16,153
Python
.py
413
28.835351
99
0.553272
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,993
file_io.py
DamnWidget_anaconda/anaconda_lib/parso/file_io.py
import os from pathlib import Path from typing import Union class FileIO: def __init__(self, path: Union[os.PathLike, str]): if isinstance(path, str): path = Path(path) self.path = path def read(self): # Returns bytes/str # We would like to read unicode here, but we canno...
1,023
Python
.py
30
26.433333
79
0.595939
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,994
utils.py
DamnWidget_anaconda/anaconda_lib/parso/utils.py
import re import sys from ast import literal_eval from functools import total_ordering from typing import NamedTuple, Sequence, Union # The following is a list in Python that are line breaks in str.splitlines, but # not in Python. In Python only \r (Carriage Return, 0xD) and \n (Line Feed, # 0xA) are allowed to split ...
6,620
Python
.py
164
32.109756
96
0.599751
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,995
cache.py
DamnWidget_anaconda/anaconda_lib/parso/cache.py
import time import os import sys import hashlib import gc import shutil import platform import logging import warnings import pickle from pathlib import Path from typing import Dict, Any LOG = logging.getLogger(__name__) _CACHED_FILE_MINIMUM_SURVIVAL = 60 * 10 # 10 minutes """ Cached files should survive at least a ...
8,452
Python
.py
223
31.394619
95
0.654274
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,996
__init__.py
DamnWidget_anaconda/anaconda_lib/parso/__init__.py
r""" Parso is a Python parser that supports error recovery and round-trip parsing for different Python versions (in multiple Python versions). Parso is also able to list multiple syntax errors in your python file. Parso has been battle-tested by jedi_. It was pulled out of jedi to be useful for other projects as well....
1,607
Python
.py
45
33.711111
79
0.728857
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,997
grammar.py
DamnWidget_anaconda/anaconda_lib/parso/grammar.py
import hashlib import os from typing import Generic, TypeVar, Union, Dict, Optional, Any from pathlib import Path from parso._compatibility import is_pypy from parso.pgen2 import generate_grammar from parso.utils import split_lines, python_bytes_to_unicode, \ PythonVersionInfo, parse_version_string from parso.pyth...
10,483
Python
.py
222
36.603604
88
0.622272
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,998
parser.py
DamnWidget_anaconda/anaconda_lib/parso/parser.py
# Copyright 2004-2005 Elemental Security, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. # Modifications: # Copyright David Halter and Contributors # Modifications are dual-licensed: MIT and PSF. # 99% of the code is different from pgen2, now. """ The ``Parser`` tries to convert the availa...
7,182
Python
.py
166
34.295181
91
0.630952
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
29,999
normalizer.py
DamnWidget_anaconda/anaconda_lib/parso/normalizer.py
from contextlib import contextmanager from typing import Dict, List class _NormalizerMeta(type): def __new__(cls, name, bases, dct): new_cls = type.__new__(cls, name, bases, dct) new_cls.rule_value_classes = {} new_cls.rule_type_classes = {} return new_cls class Normalizer(metacl...
5,597
Python
.py
152
27.677632
82
0.588072
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)