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
30,000
generator.py
DamnWidget_anaconda/anaconda_lib/parso/pgen2/generator.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. """ This module defines the data structures used to represent a grammar. Specifying grammars ...
14,570
Python
.py
322
35.108696
97
0.607133
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,001
__init__.py
DamnWidget_anaconda/anaconda_lib/parso/pgen2/__init__.py
# Copyright 2004-2005 Elemental Security, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. # Modifications: # Copyright 2006 Google, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. # Copyright 2014 David Halter and Contributors # Modifications are dual-licensed: MIT...
382
Python
.py
8
46.5
67
0.817204
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,002
grammar_parser.py
DamnWidget_anaconda/anaconda_lib/parso/pgen2/grammar_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. from typing import Optional, Iterator, Tuple, List from parso.python.tokenize import tokenize ...
5,515
Python
.py
137
29.364964
86
0.54267
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,003
errors.py
DamnWidget_anaconda/anaconda_lib/parso/python/errors.py
# -*- coding: utf-8 -*- import codecs import warnings import re from contextlib import contextmanager from parso.normalizer import Normalizer, NormalizerConfig, Issue, Rule from parso.python.tokenize import _get_token_collection _BLOCK_STMTS = ('if_stmt', 'while_stmt', 'for_stmt', 'try_stmt', 'with_stmt') _STAR_EXPR_...
47,955
Python
.py
1,083
32.210526
99
0.559859
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,004
tree.py
DamnWidget_anaconda/anaconda_lib/parso/python/tree.py
""" This is the syntax tree for Python 3 syntaxes. The classes represent syntax elements like functions and imports. All of the nodes can be traced back to the `Python grammar file <https://docs.python.org/3/reference/grammar.html>`_. If you want to know how a tree is structured, just analyse that file (for each Pytho...
37,187
Python
.py
1,005
27.769154
95
0.569064
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,005
token.py
DamnWidget_anaconda/anaconda_lib/parso/python/token.py
from __future__ import absolute_import from enum import Enum class TokenType: name: str contains_syntax: bool def __init__(self, name: str, contains_syntax: bool = False): self.name = name self.contains_syntax = contains_syntax def __repr__(self): return '%s(%s)' % (self.__c...
909
Python
.py
24
32.75
65
0.676538
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,006
pep8.py
DamnWidget_anaconda/anaconda_lib/parso/python/pep8.py
import re from contextlib import contextmanager from typing import Tuple from parso.python.errors import ErrorFinder, ErrorFinderConfig from parso.normalizer import Rule from parso.python.tree import Flow, Scope _IMPORT_TYPES = ('import_name', 'import_from') _SUITE_INTRODUCERS = ('classdef', 'funcdef', 'if_stmt', 'w...
33,779
Python
.py
682
33.175953
99
0.506089
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,007
prefix.py
DamnWidget_anaconda/anaconda_lib/parso/python/prefix.py
import re from codecs import BOM_UTF8 from typing import Tuple from parso.python.tokenize import group unicode_bom = BOM_UTF8.decode('utf-8') class PrefixPart: def __init__(self, leaf, typ, value, spacing='', start_pos=None): assert start_pos is not None self.parent = leaf self.type = ty...
2,743
Python
.py
89
23.47191
74
0.557072
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,008
parser.py
DamnWidget_anaconda/anaconda_lib/parso/python/parser.py
from parso.python import tree from parso.python.token import PythonTokenTypes from parso.parser import BaseParser NAME = PythonTokenTypes.NAME INDENT = PythonTokenTypes.INDENT DEDENT = PythonTokenTypes.DEDENT class Parser(BaseParser): """ This class is used to parse a Python file, it then divides them into ...
8,108
Python
.py
177
33.892655
98
0.588206
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,009
diff.py
DamnWidget_anaconda/anaconda_lib/parso/python/diff.py
""" The diff parser is trying to be a faster version of the normal parser by trying to reuse the nodes of a previous pass over the same file. This is also called incremental parsing in parser literature. The difference is mostly that with incremental parsing you get a range that needs to be reparsed. Here we calculate ...
34,206
Python
.py
747
33.904953
98
0.57473
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,010
tokenize.py
DamnWidget_anaconda/anaconda_lib/parso/python/tokenize.py
# -*- coding: utf-8 -*- """ This tokenizer has been copied from the ``tokenize.py`` standard library tokenizer. The reason was simple: The standard library tokenizer fails if the indentation is not right. To make it possible to do error recovery the tokenizer needed to be rewritten. Basically this is a stripped do...
25,795
Python
.py
592
32.440878
98
0.552175
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,011
python_builder.py
DamnWidget_anaconda/anaconda_lib/builder/python_builder.py
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os from string import Template import sublime from ..helpers import get_settings, active_view, is_remote_session class AnacondaSetPythonBuilder(object): """Sets or modifies the...
2,545
Python
.py
65
27.815385
76
0.558537
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,012
linting.py
DamnWidget_anaconda/listeners/linting.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import time import sublime import sublime_plugin from ..anaconda_lib._typing import Callable, Dict, Any from ..anaconda_lib.helpers import ( check_linting, get_settings, check_linting_b...
5,657
Python
.py
122
36.155738
119
0.605124
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,013
signatures.py
DamnWidget_anaconda/listeners/signatures.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import logging from functools import partial import sublime import sublime_plugin from ..anaconda_lib.worker import Worker from ..anaconda_lib.tooltips import Tooltip from ..anaconda_lib.ki...
5,181
Python
.py
115
34.191304
82
0.572677
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,014
autopep8.py
DamnWidget_anaconda/listeners/autopep8.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sublime_plugin from ..anaconda_lib.helpers import get_settings, is_python class AnacondaAutoformatPEP8EventListener(sublime_plugin.EventListener): """Anaconda AutoPEP8 formatter...
617
Python
.py
12
45.833333
72
0.730769
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,015
__init__.py
DamnWidget_anaconda/listeners/__init__.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from .linting import BackgroundLinter from .completion import AnacondaCompletionEventListener from .signatures import AnacondaSignaturesEventListener from .autopep8 import AnacondaAutoformatP...
497
Python
.py
12
38.75
65
0.83368
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,016
completion.py
DamnWidget_anaconda/listeners/completion.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sublime import sublime_plugin from ..anaconda_lib.worker import Worker from ..anaconda_lib.helpers import ( prepare_send_data, get_settings, active_view, is_python, completion...
4,194
Python
.py
90
36.1
137
0.599558
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,017
minserver.py
DamnWidget_anaconda/anaconda_server/minserver.py
# -*- coding: utf8 -*- # Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os import sys import time import socket import logging import asyncore import asynchat import traceback from logging import handlers from optparse import OptionP...
7,096
Python
.py
194
28.675258
79
0.619173
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,018
autoreload.py
DamnWidget_anaconda/anaconda_server/autoreload.py
#!/usr/bin/env python # # Autoreloader for jsonserver for development. # Run with: # python3 autoreload.py python3 jsonserver.py -p<project_name> 9999 DEBUG # import os import sys import subprocess import time from pathlib import Path def file_filter(path): return (not path.name.startswith(".")) and (path.suffix...
1,496
Python
.py
48
26.791667
84
0.691771
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,019
process.py
DamnWidget_anaconda/anaconda_server/process.py
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os import logging import subprocess def spawn(args, **kwargs): """Spawn a subprocess and return it back """ if 'cwd' not in kwargs: kwargs['cwd'] = os.path.dirna...
826
Python
.py
23
29.73913
72
0.657035
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,020
__init__.py
DamnWidget_anaconda/anaconda_server/__init__.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details
128
Python
.py
2
62.5
65
0.776
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,021
jsonserver.py
DamnWidget_anaconda/anaconda_server/jsonserver.py
#!/usr/bin/env python # -*- coding: utf8 -*- # Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os import sys import time import socket import logging import platform import asyncore import asynchat import threading import traceback im...
11,544
Python
.py
316
27.183544
79
0.588847
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,022
anaconda_handler.py
DamnWidget_anaconda/anaconda_server/lib/anaconda_handler.py
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import inspect from .compat import AnacondaHandlerProvider class AnacondaHandler(AnacondaHandlerProvider): """All anaconda handlers should inherit from this class The constructor ...
1,740
Python
.py
42
33.642857
85
0.663501
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,023
path.py
DamnWidget_anaconda/anaconda_server/lib/path.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os import platform logpath = { 'linux': os.path.join('~', '.local', 'share', 'anaconda', 'logs'), 'darwin': os.path.join('~', 'Library', 'Logs', 'anaconda'), 'windows': os...
464
Python
.py
12
36
76
0.671875
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,024
meta_handler.py
DamnWidget_anaconda/anaconda_server/lib/meta_handler.py
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from .registry import HandlerRegistry class AnacondaHandlerMeta(type): """Register new anaconda handlers """ def __init__(cls, name, bases, attrs): if not hasattr(cls, ...
466
Python
.py
11
36.090909
65
0.674833
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,025
__init__.py
DamnWidget_anaconda/anaconda_server/lib/__init__.py
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details
128
Python
.py
2
62.5
65
0.776
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,026
contexts.py
DamnWidget_anaconda/anaconda_server/lib/contexts.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details """Anaconda JsonServer contexts """ import sys import json from contextlib import contextmanager @contextmanager def json_decode(data): PY26 = False data = data.replace(b'\t', b'\\...
766
Python
.py
26
22.730769
68
0.609524
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,027
registry.py
DamnWidget_anaconda/anaconda_server/lib/registry.py
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os import sys import logging class HandlerRegistry(object): """Register anaconda JsonServer handlers """ initialized = False def __init__(self): self._handl...
1,594
Python
.py
44
27.409091
73
0.588657
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,028
__init__.py
DamnWidget_anaconda/anaconda_server/lib/compat/__init__.py
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sys if sys.version_info >= (3, 0): from .python3 import AnacondaHandlerProvider else: from python2 import AnacondaHandlerProvider __all__ = ['AnacondaHandlerProvider']
315
Python
.py
8
36.75
65
0.774834
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,029
python2.py
DamnWidget_anaconda/anaconda_server/lib/compat/python2.py
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from ..meta_handler import AnacondaHandlerMeta class AnacondaHandlerProvider: """Just a convenience wrapper """ __metaclass__ = AnacondaHandlerMeta
292
Python
.py
7
38.285714
65
0.771429
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,030
python3.py
DamnWidget_anaconda/anaconda_server/lib/compat/python3.py
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from ..meta_handler import AnacondaHandlerMeta class AnacondaHandlerProvider(metaclass=AnacondaHandlerMeta): """Just a convenience wrapper """
282
Python
.py
6
44
65
0.794118
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,031
jedi_handler.py
DamnWidget_anaconda/anaconda_server/handlers/jedi_handler.py
# -*- coding: utf8 -*- # Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import logging import jedi from lib.anaconda_handler import AnacondaHandler from jedi.api import refactoring as jedi_refactor from commands import Doc, Goto, GotoAssig...
3,381
Python
.py
103
23.524272
76
0.575823
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,032
qa_handler.py
DamnWidget_anaconda/anaconda_server/handlers/qa_handler.py
# -*- coding: utf8 -*- # Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from commands import McCabe from lib.anaconda_handler import AnacondaHandler from linting.anaconda_mccabe import AnacondaMcCabe class QAHandler(AnacondaHandler): ...
646
Python
.py
16
34.75
79
0.716346
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,033
python_lint_handler.py
DamnWidget_anaconda/anaconda_server/handlers/python_lint_handler.py
# -*- coding: utf8 -*- # Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os import sys from functools import partial sys.path.append(os.path.join(os.path.dirname(__file__), '../../anaconda_lib')) sys.path.append(os.path.join(os.path....
6,816
Python
.py
188
25.12766
79
0.544144
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,034
__init__.py
DamnWidget_anaconda/anaconda_server/handlers/__init__.py
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), '../../anaconda_lib')) from .qa_handler import QAHandler from .jedi_handler import JediHandler from .autoformat_ha...
663
Python
.py
19
32.368421
78
0.757433
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,035
autoformat_handler.py
DamnWidget_anaconda/anaconda_server/handlers/autoformat_handler.py
# -*- coding: utf8 -*- # Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from commands import AutoPep8 from lib.anaconda_handler import AnacondaHandler class AutoFormatHandler(AnacondaHandler): """Handle request to execute auto format ...
510
Python
.py
12
38
73
0.729675
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,036
autocomplete.py
DamnWidget_anaconda/anaconda_server/commands/autocomplete.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import logging import traceback from .base import Command DEBUG_MODE = False class AutoComplete(Command): """Return Jedi completions""" def __init__(self, callback, line, col, uid...
1,352
Python
.py
36
27.416667
79
0.573068
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,037
autoformat.py
DamnWidget_anaconda/anaconda_server/commands/autoformat.py
# -*- coding: utf8 -*- # Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details """ This file is a wrapper for autopep8 library. """ import sys import logging import traceback from .base import Command from autopep.autopep8_lib import autopep8 ...
2,167
Python
.py
59
27.067797
73
0.547062
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,038
lint.py
DamnWidget_anaconda/anaconda_server/commands/lint.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import logging import traceback from .base import Command class Lint(Command): """Run PyFlakes and Pep8 linters and return back results """ def __init__(self, callback, uid, v...
1,192
Python
.py
35
23.8
77
0.547433
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,039
pep257.py
DamnWidget_anaconda/anaconda_server/commands/pep257.py
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import logging import traceback from .base import Command class PEP257(Command): """Run pep257 linter and return back results """ def __init__(self, callback, uid, vid, linter...
1,167
Python
.py
35
23.085714
75
0.540036
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,040
complete_parameters.py
DamnWidget_anaconda/anaconda_server/commands/complete_parameters.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from .base import Command, get_function_parameters class CompleteParameters(Command): """Get back a python definition where to go""" def __init__(self, callback, line, col, uid, sc...
1,537
Python
.py
41
26.268293
76
0.53468
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,041
goto.py
DamnWidget_anaconda/anaconda_server/commands/goto.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from .base import Command class Goto(Command): """Get back a python definition where to go""" def __init__(self, callback, line, col, uid, script): self.script = script ...
1,479
Python
.py
41
26.097561
71
0.561711
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,042
__init__.py
DamnWidget_anaconda/anaconda_server/commands/__init__.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from .doc import Doc from .mypy import MyPy from .lint import Lint from .goto import Goto, GotoAssignment from .pep8 import PEP8 from .pep257 import PEP257 from .mccabe import McCabe from .re...
874
Python
.py
35
22.028571
65
0.74491
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,043
base.py
DamnWidget_anaconda/anaconda_server/commands/base.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details class Command(object): """Base class for every command that runs on Json Server """ def __init__(self, callback, uid): self.uid = uid self.callback = callback ...
820
Python
.py
23
29.304348
69
0.656489
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,044
doc.py
DamnWidget_anaconda/anaconda_server/commands/doc.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sys import logging from .base import Command # We are forced to use this not Pythonic import approach as the incomplete # module `future.moves.html` distributed by https://github.com/...
3,173
Python
.py
84
26.714286
77
0.551432
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,045
rename.py
DamnWidget_anaconda/anaconda_server/commands/rename.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os import logging import traceback from .base import Command class Rename(Command): """Get back a python definition where to go """ def __init__(self, callback, uid, sc...
1,940
Python
.py
50
27.2
79
0.554904
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,046
pep8.py
DamnWidget_anaconda/anaconda_server/commands/pep8.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import logging import traceback from .base import Command class PEP8(Command): """Run PEP8 linter and return back results """ def __init__(self, callback, uid, vid, linter, se...
1,165
Python
.py
35
23.028571
77
0.540107
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,047
mccabe.py
DamnWidget_anaconda/anaconda_server/commands/mccabe.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import logging import traceback from .base import Command class McCabe(Command): """Run McCabe complexity checker and return back results """ def __init__(self, callback, uid,...
1,241
Python
.py
35
25.428571
78
0.564274
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,048
find_usages.py
DamnWidget_anaconda/anaconda_server/commands/find_usages.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from .base import Command class FindUsages(Command): """Get back a python usages for the given object""" def __init__(self, callback, line, col, uid, script): self.script = ...
1,625
Python
.py
48
19.041667
70
0.429299
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,049
pylint.py
DamnWidget_anaconda/anaconda_server/commands/pylint.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import logging import traceback from .base import Command class PyLint(Command): """Run PyLint and return back results """ def __init__(self, callback, uid, vid, linter, rcfil...
1,122
Python
.py
34
22.705882
69
0.537963
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,050
pyflakes.py
DamnWidget_anaconda/anaconda_server/commands/pyflakes.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import logging import traceback from .base import Command class PyFlakes(Command): """Run PyFlakes linter and return back results """ def __init__(self, callback, uid, vid, li...
1,177
Python
.py
35
23.371429
77
0.544974
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,051
mypy.py
DamnWidget_anaconda/anaconda_server/commands/mypy.py
# Copyright (C) 2013 - 2016 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import logging import traceback from .base import Command class MyPy(Command): """Run mypy linter and return back results """ def __init__( self, callback, ...
1,280
Python
.py
39
22.282051
74
0.531225
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,052
import_validator.py
DamnWidget_anaconda/anaconda_server/commands/import_validator.py
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import logging import traceback from .base import Command class ImportValidator(Command): """Run the ImportValidate to detect invalid imports """ def __init__(self, callback, ...
1,744
Python
.py
50
23.92
77
0.523753
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,053
prev_lint_error.py
DamnWidget_anaconda/commands/prev_lint_error.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sublime import sublime_plugin from ..anaconda_lib.helpers import get_settings from ..anaconda_lib.helpers import valid_languages from ..anaconda_lib.linting.sublime import ANACONDA, u...
2,264
Python
.py
53
33.886792
69
0.612226
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,054
autoformat.py
DamnWidget_anaconda/commands/autoformat.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import logging import traceback import sublime import sublime_plugin from ..anaconda_lib.worker import Worker from ..anaconda_lib._typing import Dict, Any from ..anaconda_lib.progress_bar i...
3,913
Python
.py
94
30.829787
75
0.578462
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,055
next_lint_error.py
DamnWidget_anaconda/commands/next_lint_error.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sublime import sublime_plugin from ..anaconda_lib.helpers import get_settings from ..anaconda_lib.helpers import valid_languages from ..anaconda_lib.linting.sublime import ANACONDA, u...
2,260
Python
.py
53
33.811321
69
0.611517
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,056
autoimport.py
DamnWidget_anaconda/commands/autoimport.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import re import sublime import sublime_plugin from ..anaconda_lib.helpers import is_python from ..anaconda_lib._typing import Tuple, Any # noqa from ..anaconda_lib.linting.sublime import ...
2,530
Python
.py
52
39
79
0.60935
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,057
set_python_interpreter.py
DamnWidget_anaconda/commands/set_python_interpreter.py
import logging import traceback import sublime import sublime_plugin from ..anaconda_lib._typing import Dict, Any from ..anaconda_lib.helpers import is_python from ..anaconda_lib.builder.python_builder import AnacondaSetPythonBuilder class AnacondaSetPythonInterpreter(sublime_plugin.TextCommand): """Sets or mod...
2,761
Python
.py
61
34.557377
79
0.617188
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,058
complete_func_args.py
DamnWidget_anaconda/commands/complete_func_args.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sublime import sublime_plugin from ..anaconda_lib.worker import Worker from ..anaconda_lib._typing import Dict, Any from ..anaconda_lib.callback import Callback from ..anaconda_lib.he...
4,180
Python
.py
97
33.247423
77
0.613485
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,059
goto.py
DamnWidget_anaconda/commands/goto.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sublime import sublime_plugin from ..anaconda_lib.worker import Worker from ..anaconda_lib.workers.market import Market from ..anaconda_lib.helpers import is_remote_session from ..ana...
3,916
Python
.py
99
28.818182
77
0.561824
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,060
__init__.py
DamnWidget_anaconda/commands/__init__.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from .doc import AnacondaDoc from .rename import AnacondaRename from .mccabe import AnacondaMcCabe from .get_lines import AnacondaGetLines from .autoimport import AnacondaAutoImport from .auto...
1,988
Python
.py
57
31.526316
78
0.812338
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,061
vagrant.py
DamnWidget_anaconda/commands/vagrant.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from functools import partial import sublime import sublime_plugin from ..anaconda_lib import worker, vagrant from ..anaconda_lib._typing import Dict, Any class AnacondaVagrantEnable(subl...
6,022
Python
.py
148
30.912162
79
0.600069
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,062
python_build.py
DamnWidget_anaconda/commands/python_build.py
# Copyright (C) 2014 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sublime import sublime_plugin from ..anaconda_lib import worker, callback class AnacondaBaseBuild(object): """Base class for all anaconda builders """ def __init__(self...
571
Python
.py
15
33.666667
71
0.735883
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,063
doc.py
DamnWidget_anaconda/commands/doc.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details from functools import partial import sublime import sublime_plugin from ..anaconda_lib.worker import Worker from ..anaconda_lib._typing import Dict, Any from ..anaconda_lib.tooltips import ...
3,698
Python
.py
89
31.146067
92
0.582938
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,064
rename.py
DamnWidget_anaconda/commands/rename.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import time import logging import traceback import sublime import sublime_plugin from ..anaconda_lib.worker import Worker from ..anaconda_lib._typing import Dict, Any from ..anaconda_lib.cal...
2,518
Python
.py
59
32.254237
75
0.588621
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,065
test_runner.py
DamnWidget_anaconda/commands/test_runner.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import os import re import functools import sublime import sublime_plugin from ..anaconda_lib._typing import List, Tuple from ..anaconda_lib.helpers import get_settings, git_installation, i...
10,020
Python
.py
252
30.611111
79
0.601918
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,066
mccabe.py
DamnWidget_anaconda/commands/mccabe.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sublime import sublime_plugin from ..anaconda_lib.worker import Worker from ..anaconda_lib._typing import Dict, Any from ..anaconda_lib.callback import Callback from ..anaconda_lib.he...
2,570
Python
.py
61
33.262295
74
0.601045
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,067
enable_linting.py
DamnWidget_anaconda/commands/enable_linting.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sublime_plugin from ..anaconda_lib.helpers import get_settings from ..anaconda_lib.helpers import valid_languages from ..anaconda_lib.linting.sublime import ANACONDA, run_linter cla...
1,544
Python
.py
33
38.30303
78
0.652
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,068
get_lines.py
DamnWidget_anaconda/commands/get_lines.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sublime import sublime_plugin from ..anaconda_lib._typing import Dict, Any from ..anaconda_lib.helpers import get_settings from ..anaconda_lib.helpers import valid_languages from ..an...
2,366
Python
.py
52
36.288462
90
0.612636
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,069
find_usages.py
DamnWidget_anaconda/commands/find_usages.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sublime_plugin from ..anaconda_lib.worker import Worker from ..anaconda_lib.callback import Callback from ..anaconda_lib.explore_panel import ExplorerPanel from ..anaconda_lib.helpers...
1,615
Python
.py
40
30.8
76
0.587596
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,070
disable_linting.py
DamnWidget_anaconda/commands/disable_linting.py
# Copyright (C) 2013 - Oscar Campos <oscar.campos@member.fsf.org> # This program is Free Software see LICENSE file for details import sublime_plugin from ..anaconda_lib.helpers import get_settings from ..anaconda_lib.helpers import valid_languages from ..anaconda_lib.linting.sublime import ANACONDA, erase_lint_marks...
1,318
Python
.py
30
35.5
78
0.643696
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,071
_pydecimal.pyi
DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/stdlib/3/_pydecimal.pyi
# This is a slight lie, the implementations aren't exactly identical # However, in all likelihood, the differences are inconsequential from decimal import *
157
Python
.pyde
3
51.333333
68
0.818182
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,072
set_python_interpreter.py
DamnWidget_anaconda/commands/set_python_interpreter.py
import logging import traceback import sublime import sublime_plugin from ..anaconda_lib._typing import Dict, Any from ..anaconda_lib.helpers import is_python from ..anaconda_lib.builder.python_builder import AnacondaSetPythonBuilder class AnacondaSetPythonInterpreter(sublime_plugin.TextCommand): """Sets or mod...
2,761
Python
.pyt
61
34.557377
79
0.617188
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,073
fix_metaclass.py
DamnWidget_anaconda/anaconda_lib/autopep/autopep8_lib/lib2to3/fixes/fix_metaclass.py
"""Fixer for __metaclass__ = X -> (metaclass=X) methods. The various forms of classef (inherits nothing, inherits once, inherints many) don't parse the same in the CST so we look at ALL classes for a __metaclass__ and if we find one normalize the inherits to all be an arglist. For one-liner classes ('c...
8,201
Python
.tac
190
33.768421
80
0.583971
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,074
dataclasses.pyi
DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/third_party/3/dataclasses.pyi
import sys from typing import Any, Callable, Dict, Generic, Iterable, List, Mapping, Optional, Tuple, Type, TypeVar, Union, overload if sys.version_info >= (3, 9): from types import GenericAlias _T = TypeVar("_T") class _MISSING_TYPE: ... MISSING: _MISSING_TYPE @overload def asdict(obj: Any) -> Dict[str, Any]: ...
2,737
Python
.tac
86
28.488372
121
0.588569
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,075
dataclasses.pyi
DamnWidget_anaconda/anaconda_lib/jedi/third_party/typeshed/stdlib/3.7/dataclasses.pyi
import sys from typing import Any, Callable, Dict, Generic, Iterable, List, Mapping, Optional, Tuple, Type, TypeVar, Union, overload if sys.version_info >= (3, 9): from types import GenericAlias _T = TypeVar("_T") class _MISSING_TYPE: ... MISSING: _MISSING_TYPE @overload def asdict(obj: Any) -> Dict[str, Any]: ...
2,737
Python
.tac
86
28.488372
121
0.588569
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,076
modwsgi.pyi
DamnWidget_anaconda/anaconda_lib/jedi/third_party/django-stubs/django-stubs/contrib/auth/handlers/modwsgi.pyi
from typing import Any, Dict UserModel: Any def check_password(environ: Dict[Any, Any], username: str, password: str) -> Any: ... def groups_for_user(environ: Dict[Any, Any], username: str) -> Any: ...
204
Python
.wsgi
4
49.5
85
0.707071
DamnWidget/anaconda
2,213
260
184
GPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,077
analyze.py
mozilla_cipherscan/analyze.py
#!/usr/bin/env python # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # Contributor: Julien Vehent jvehent@mozilla.com [:ulfr] from __future__ import print_function ...
20,759
Python
.py
451
37.339246
145
0.62402
mozilla/cipherscan
1,953
265
34
MPL-2.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,078
cscan.py
mozilla_cipherscan/cscan.py
# Copyright 2016(c) Hubert Kario # This work is released under the Mozilla Public License Version 2.0 """tlslite-ng based server configuration (and bug) scanner.""" from __future__ import print_function from tlslite.messages import ClientHello, ServerHello, ServerHelloDone, Alert from tlslite.constants import CipherSu...
9,233
Python
.py
226
30.588496
77
0.571588
mozilla/cipherscan
1,953
265
34
MPL-2.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,079
modifiers.py
mozilla_cipherscan/cscan/modifiers.py
# Copyright (c) 2016 Hubert Kario # Released under Mozilla Public License 2.0 """Methods for modifying the scan configurations on the fly.""" from __future__ import print_function proto_versions = {(3, 0): "SSLv3", (3, 1): "TLSv1.0", (3, 2): "TLSv1.1", (3, 3): "T...
883
Python
.py
22
32.090909
63
0.590164
mozilla/cipherscan
1,953
265
34
MPL-2.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,080
messages.py
mozilla_cipherscan/cscan/messages.py
# Copyright (c) 2016 Hubert Kario # Released under Mozilla Public License 2.0 """Extensions and modification of the tlslite-ng messages classes.""" import tlslite.messages as messages from tlslite.utils.compat import b2a_hex from tlslite.constants import ContentType, CertificateType, ECCurveType, \ HashAlgori...
9,289
Python
.py
214
33.485981
79
0.607756
mozilla/cipherscan
1,953
265
34
MPL-2.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,081
extensions.py
mozilla_cipherscan/cscan/extensions.py
# Copyright 2016(c) Hubert Kario # This work is released under the Mozilla Public License Version 2.0 """Extra TLS extensions.""" import tlslite.extensions from tlslite.utils.codec import Writer from tlslite.utils.compat import b2a_hex from .constants import ExtensionType, GroupName import .messages # make TLSExtens...
6,685
Python
.py
156
33.282051
79
0.634037
mozilla/cipherscan
1,953
265
34
MPL-2.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,082
config.py
mozilla_cipherscan/cscan/config.py
# Copyright (c) 2016 Hubert Kario <hkario@redhat.com> # Released under Mozilla Public License Version 2.0 """Typical Client Hello messages sent by different clients.""" import random from tlslite.messages import ClientHello from tlslite.constants import \ ECPointFormat, HashAlgorithm, SignatureAlgorithm from ...
5,861
Python
.py
121
33.438017
79
0.55055
mozilla/cipherscan
1,953
265
34
MPL-2.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,083
constants.py
mozilla_cipherscan/cscan/constants.py
# Copyright 2016(c) Hubert Kario # This work is released under the Mozilla Public License Version 2.0 """Extend the tlslite-ng constants with values it does not support.""" import tlslite.constants from tlslite.constants import CipherSuite CipherSuite.ecdheEcdsaSuites = [] # RFC 5289 CipherSuite.TLS_ECDHE_ECDSA_WIT...
6,385
Python
.py
125
44.128
76
0.718489
mozilla/cipherscan
1,953
265
34
MPL-2.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,084
scanner.py
mozilla_cipherscan/cscan/scanner.py
# Copyright (c) 2016 Hubert Kario # Released under the Mozilla Public License 2.0 """Classes used for scanning servers and getting their responses.""" import socket from .constants import CipherSuite, HandshakeType from .messages import Certificate, ServerHello, Message, NewSessionTicket, \ CertificateStatus...
6,035
Python
.py
134
33.761194
78
0.616366
mozilla/cipherscan
1,953
265
34
MPL-2.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,085
test_extensions.py
mozilla_cipherscan/cscan_tests/test_extensions.py
# Copyright (c) 2015 Hubert Kario # Released under Mozilla Public License Version 2.0 try: import unittest2 as unittest except ImportError: import unittest from tlslite.utils.codec import Parser from cscan.extensions import KeyShareExtension from cscan.constants import GroupName class TestKeyShareExtension(u...
2,158
Python
.py
54
29.722222
75
0.585495
mozilla/cipherscan
1,953
265
34
MPL-2.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,086
test_config.py
mozilla_cipherscan/cscan_tests/test_config.py
# Copyright (c) 2015 Hubert Kario # Released under Mozilla Public License Version 2.0 try: import unittest2 as unittest except ImportError: import unittest from tlslite.messages import ClientHello from tlslite.extensions import SNIExtension, SupportedGroupsExtension, \ ECPointFormatsExtension, NPNExte...
2,020
Python
.py
44
36.272727
76
0.671066
mozilla/cipherscan
1,953
265
34
MPL-2.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,087
parse_CAs.py
mozilla_cipherscan/top1m/parse_CAs.py
#!/usr/bin/env python # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Author: Hubert Kario - 2014 from __future__ import division, print_function path = "./results/...
11,097
Python
.py
267
33.629213
120
0.561408
mozilla/cipherscan
1,953
265
34
MPL-2.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,088
parse_results.py
mozilla_cipherscan/top1m/parse_results.py
#!/usr/bin/env python # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Author: Julien Vehent [:ulfr] - 2013 # Contributors: Hubert Kario - 2014 from __future__ import...
41,143
Python
.py
867
34.982699
146
0.518307
mozilla/cipherscan
1,953
265
34
MPL-2.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,089
setup.py
MTG_sms-tools/setup.py
import sys import numpy from Cython.Build import cythonize from setuptools import Extension, setup sourcefiles = [ "smstools/models/utilFunctions_C/utilFunctions.c", "smstools/models/utilFunctions_C/cutilFunctions.pyx", ] if sys.platform == "win32": library = "msvcrt" else: library = "m" extensions =...
570
Python
.py
24
19.958333
58
0.709024
MTG/sms-tools
1,630
751
12
AGPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,090
harmonicTransformations.py
MTG_sms-tools/smstools/transformations/harmonicTransformations.py
# transformations applied to the harmonics of a sound import numpy as np from scipy.interpolate import interp1d def harmonicFreqScaling( hfreq, hmag, freqScaling, freqStretching, timbrePreservation, fs ): """ Frequency scaling of the harmonics of a sound hfreq, hmag: frequencies and magnitudes of inp...
2,913
Python
.py
55
45.109091
88
0.66211
MTG/sms-tools
1,630
751
12
AGPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,091
stftTransformations.py
MTG_sms-tools/smstools/transformations/stftTransformations.py
# functions that implement transformations using the stft import math import os import sys import numpy as np from scipy.signal import resample from smstools.models import dftModel as DFT def stftFiltering(x, fs, w, N, H, filter): """ Apply a filter to a sound by using the STFT x: input sound, w: analy...
5,016
Python
.py
102
42.95098
92
0.635381
MTG/sms-tools
1,630
751
12
AGPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,092
hpsTransformations.py
MTG_sms-tools/smstools/transformations/hpsTransformations.py
# functions that implement transformations using the hpsModel import numpy as np from scipy.interpolate import interp1d def hpsTimeScale(hfreq, hmag, stocEnv, timeScaling): """ Time scaling of the harmonic plus stochastic representation hfreq, hmag: harmonic frequencies and magnitudes, stocEnv: residual ...
5,401
Python
.py
94
50.925532
141
0.681398
MTG/sms-tools
1,630
751
12
AGPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,093
sineTransformations.py
MTG_sms-tools/smstools/transformations/sineTransformations.py
# functions that implement transformations using the sineModel import numpy as np from scipy.interpolate import interp1d def sineTimeScaling(sfreq, smag, timeScaling): """ Time scaling of sinusoidal tracks sfreq, smag: frequencies and magnitudes of input sinusoidal tracks timeScaling: scaling factors...
2,788
Python
.py
55
44.472727
88
0.682685
MTG/sms-tools
1,630
751
12
AGPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,094
stochasticTransformations.py
MTG_sms-tools/smstools/transformations/stochasticTransformations.py
# functions that implement transformations using the hpsModel import numpy as np from scipy.interpolate import interp1d def stochasticTimeScale(stocEnv, timeScaling): """ Time scaling of the stochastic representation of a sound stocEnv: stochastic envelope timeScaling: scaling factors, in time-value ...
1,233
Python
.py
27
40.074074
83
0.693844
MTG/sms-tools
1,630
751
12
AGPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,095
utilFunctions.py
MTG_sms-tools/smstools/models/utilFunctions.py
import copy import os import subprocess import sys import numpy as np from scipy.fft import fft, fftshift, ifft from scipy.io.wavfile import read, write from scipy.signal import resample from scipy.signal.windows import blackmanharris, triang try: from smstools.models.utilFunctions_C import utilFunctions_C as UF_...
18,324
Python
.py
420
36.766667
119
0.612681
MTG/sms-tools
1,630
751
12
AGPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,096
harmonicModel.py
MTG_sms-tools/smstools/models/harmonicModel.py
# functions that implement analysis and synthesis of sounds using the Harmonic Model # (for example usage check the interface directory) import math import numpy as np from scipy.fft import ifft from scipy.signal.windows import blackmanharris, triang from smstools.models import dftModel as DFT from smstools.models i...
10,736
Python
.py
216
42.805556
114
0.633022
MTG/sms-tools
1,630
751
12
AGPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,097
dftModel.py
MTG_sms-tools/smstools/models/dftModel.py
# functions that implement analysis and synthesis of sounds using the Discrete Fourier Transform # (for example usage check dftModel_function.py in the interface directory) import math import numpy as np from scipy.fft import fft, ifft from smstools.models import utilFunctions as UF tol = 1e-14 # threshold used to...
4,809
Python
.py
99
43.313131
96
0.644501
MTG/sms-tools
1,630
751
12
AGPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,098
spsModel.py
MTG_sms-tools/smstools/models/spsModel.py
# functions that implement analysis and synthesis of sounds using the Sinusoidal plus Stochastic Model # (for example usage check the interface directory) import math import numpy as np from scipy.fft import fft, ifft from scipy.signal import resample from scipy.signal.windows import blackmanharris, hann, triang fro...
6,206
Python
.py
119
45.92437
114
0.658263
MTG/sms-tools
1,630
751
12
AGPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)
30,099
stft.py
MTG_sms-tools/smstools/models/stft.py
# functions that implement analysis and synthesis of sounds using the Short-Time Fourier Transform # (for example usage check stft_function.py in the interface directory) import numpy as np from smstools.models import dftModel as DFT def stft(x, w, N, H): """ Analysis/synthesis of a sound using the short-ti...
4,173
Python
.py
89
41.044944
98
0.634667
MTG/sms-tools
1,630
751
12
AGPL-3.0
9/5/2024, 5:14:06 PM (Europe/Amsterdam)