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
12,200
util.py
SirVer_ultisnips/test/util.py
import platform try: import unidecode UNIDECODE_IMPORTED = True except ImportError: UNIDECODE_IMPORTED = False def running_on_windows(): if platform.system() == "Windows": return "Does not work on Windows." def no_unidecode_available(): if not UNIDECODE_IMPORTED: return "unidec...
343
Python
.py
12
24.083333
44
0.72
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,201
test_SnippetActions.py
SirVer_ultisnips/test/test_SnippetActions.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class SnippetActions_PreActionModifiesBuffer(_VimTest): files = { "us/all.snippets": r""" pre_expand "snip.buffer[snip.line:snip.line] = ['\n']" snippet a "desc" "True" e abc endsnippet ...
10,116
Python
.py
381
19.265092
95
0.517998
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,202
test_Choices.py
SirVer_ultisnips/test/test_Choices.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class Choices_WillBeExpandedToInlineSelection(_VimTest): snippets = ("test", "${1|red,gray|}") keys = "test" + EX wanted = "1.red|2.gray" class Choices_ExpectCorrectResult(_VimTest): snippets = ("test", "${1|red,gray|...
3,393
Python
.py
77
38.883117
84
0.641176
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,203
test_Visual.py
SirVer_ultisnips/test/test_Visual.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class Visual_NoVisualSelection_Ignore(_VimTest): snippets = ("test", "h${VISUAL}b") keys = "test" + EX + "abc" wanted = "hbabc" class Visual_SelectOneWord(_VimTest): snippets = ("test", "h${VISUAL}b") keys = "blab...
7,548
Python
.py
165
40.618182
88
0.616079
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,204
test_Autocommands.py
SirVer_ultisnips/test/test_Autocommands.py
# encoding: utf-8 from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class Autocommands(_VimTest): snippets = ("test", "[ ${1:foo} ]") args = "" keys = ( "test" + EX + "test" + EX + "bar" + JF + JF + " done " ...
1,334
Python
.py
35
30.571429
88
0.601236
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,205
vim_interface.py
SirVer_ultisnips/test/vim_interface.py
# encoding: utf-8 import os import re import shutil import subprocess import tempfile import textwrap import time from test.constant import ARR_D, ARR_L, ARR_R, ARR_U, BS, ESC, SEQUENCES def wait_until_file_exists(file_path, times=None, interval=0.01): while times is None or times: if os.path.exists(fil...
8,664
Python
.py
222
30.531532
103
0.573421
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,206
test_ContextSnippets.py
SirVer_ultisnips/test/test_ContextSnippets.py
from test.constant import * from test.vim_test_case import VimTestCase as _VimTest class ContextSnippets_SimpleSnippet(_VimTest): files = { "us/all.snippets": r""" snippet a "desc" "True" e abc endsnippet """ } keys = "a" + EX wanted = "abc" class ContextSnipp...
5,438
Python
.py
216
17.685185
88
0.514114
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,207
test_Selection.py
SirVer_ultisnips/test/test_Selection.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * # Test for bug 427298 # class _SelectModeMappings(_VimTest): snippets = ("test", "${1:World}") keys = "test" + EX + "Hello" wanted = "Hello" maps = ("", "") buffer_maps = ("", "") do_unmapping = True ignore...
3,006
Python
.py
86
29.139535
85
0.584083
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,208
test_Fixes.py
SirVer_ultisnips/test/test_Fixes.py
import unittest from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class Bug1251994(_VimTest): snippets = ("test", "${2:#2} ${1:#1};$0") keys = " test" + EX + "hello" + JF + "world" + JF + "blub" wanted = " world hello;blub" # Test for https://github.com/SirVer/ultisni...
3,712
Python
.py
106
28.056604
81
0.571308
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,209
test_Completion.py
SirVer_ultisnips/test/test_Completion.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class Completion_SimpleExample_ECR(_VimTest): snippets = ("test", "$1 ${1:blah}") keys = ( "superkallifragilistik\ntest" + EX + "sup" + COMPL_KW + COMPL_ACCEPT + " some more" ...
1,280
Python
.py
31
36.032258
88
0.679291
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,210
test_Mirror.py
SirVer_ultisnips/test/test_Mirror.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class TextTabStopTextAfterTab_ExpectCorrectResult(_VimTest): snippets = ("test", "$1 Hinten\n$1") keys = "test" + EX + "hallo" wanted = "hallo Hinten\nhallo" class TextTabStopTextBeforeTab_ExpectCorrectResult(_VimTest): ...
9,709
Python
.py
222
38.662162
87
0.647259
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,211
test_SnippetPriorities.py
SirVer_ultisnips/test/test_SnippetPriorities.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import EX, ESC class SnippetPriorities_MultiWordTriggerOverwriteExisting(_VimTest): snippets = ( ("test me", "${1:Hallo}", "Types Hallo"), ("test me", "${1:World}", "Types World"), ("test me", "We overwrite", "Overwr...
4,205
Python
.py
141
22.921986
78
0.552475
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,212
test_Movement.py
SirVer_ultisnips/test/test_Movement.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class CursorMovement_Multiline_ECR(_VimTest): snippets = ("test", r"$1 ${1:a tab}") keys = "test" + EX + "this is something\nvery nice\nnot" + JF + "more text" wanted = ( "this is something\nvery nice\nnot " ...
2,712
Python
.py
55
44.472727
88
0.599468
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,213
test_Recursive.py
SirVer_ultisnips/test/test_Recursive.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class RecTabStops_SimpleCase_ExpectCorrectResult(_VimTest): snippets = ("m", "[ ${1:first} ${2:sec} ]") keys = "m" + EX + "m" + EX + "hello" + JF + "world" + JF + "ups" + JF + "end" wanted = "[ [ hello world ]ups end ]" ...
9,313
Python
.py
286
26.108392
96
0.49013
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,214
test_Editing.py
SirVer_ultisnips/test/test_Editing.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class Undo_RemoveMultilineSnippet(_VimTest): snippets = ("test", "Hello\naaa ${1} bbb\nWorld") keys = "test" + EX + ESC + "u" wanted = "test" class Undo_RemoveEditInTabstop(_VimTest): snippets = ("test", "$1 Hello\naa...
3,718
Python
.py
95
34.852632
85
0.588613
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,215
test_Interpolation.py
SirVer_ultisnips/test/test_Interpolation.py
# encoding: utf-8 import os from test.vim_test_case import VimTestCase as _VimTest from test.constant import EX, JF, ESC from test.util import running_on_windows class TabStop_Shell_SimpleExample(_VimTest): skip_if = lambda self: running_on_windows() snippets = ("test", "hi `echo hallo` you!") keys = "te...
11,984
Python
.py
445
22.476404
83
0.569641
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,216
test_Expand.py
SirVer_ultisnips/test/test_Expand.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class _SimpleExpands(_VimTest): snippets = ("hallo", "Hallo Welt!") class SimpleExpand_ExpectCorrectResult(_SimpleExpands): keys = "hallo" + EX wanted = "Hallo Welt!" class SimpleExpandTwice_ExpectCorrectResult(_SimpleE...
3,548
Python
.py
77
41.116883
73
0.684903
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,217
test_ParseSnippets.py
SirVer_ultisnips/test/test_ParseSnippets.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class ParseSnippets_SimpleSnippet(_VimTest): files = { "us/all.snippets": r""" snippet testsnip "Test Snippet" b! This is a test snippet! endsnippet """ } keys = "testsnip" + EX w...
8,557
Python
.py
313
20.635783
75
0.573528
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,218
test_Transformation.py
SirVer_ultisnips/test/test_Transformation.py
# encoding: utf-8 from test.vim_test_case import VimTestCase as _VimTest from test.constant import * from test.util import no_unidecode_available class Transformation_SimpleCase_ExpectCorrectResult(_VimTest): snippets = ("test", "$1 ${1/foo/batzl/}") keys = "test" + EX + "hallo foo boy" wanted = "hallo fo...
9,114
Python
.py
194
41.85567
87
0.617084
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,219
test_TabStop.py
SirVer_ultisnips/test/test_TabStop.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class TabStopSimpleReplace_ExpectCorrectResult(_VimTest): snippets = ("hallo", "hallo ${0:End} ${1:Beginning}") keys = "hallo" + EX + "na" + JF + "Du Nase" wanted = "hallo Du Nase na" class TabStopSimpleReplaceZeroLengthT...
14,443
Python
.py
358
34.796089
95
0.603425
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,220
test_ListSnippets.py
SirVer_ultisnips/test/test_ListSnippets.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class _ListAllSnippets(_VimTest): snippets = ( ("testblah", "BLAAH", "Say BLAH"), ("test", "TEST ONE", "Say tst one"), ("aloha", "OHEEEE", "Say OHEE"), ) class ListAllAvailable_NothingTyped_ExpectCorre...
1,344
Python
.py
31
38.580645
80
0.695216
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,221
constant.py
SirVer_ultisnips/test/constant.py
# Some constants for better reading BS = "\x7f" ESC = "\x1b" ARR_L = "\x1bOD" ARR_R = "\x1bOC" ARR_U = "\x1bOA" ARR_D = "\x1bOB" # multi-key sequences generating a single key press SEQUENCES = [ARR_L, ARR_R, ARR_U, ARR_D] # Defined Constants JF = "?" # Jump forwards JB = "+" # Jump backwards LS = "@" # List snippe...
443
Python
.py
18
23.388889
51
0.643705
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,222
test_SnippetOptions.py
SirVer_ultisnips/test/test_SnippetOptions.py
# encoding: utf-8 from test.vim_test_case import VimTestCase as _VimTest from test.constant import * from test.util import running_on_windows class SnippetOptions_OnlyExpandWhenWSInFront_Expand(_VimTest): snippets = ("test", "Expand me!", "", "b") keys = "test" + EX wanted = "Expand me!" class SnippetOp...
9,210
Python
.py
250
32.352
86
0.643035
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,223
test_Format.py
SirVer_ultisnips/test/test_Format.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * from test.util import running_on_windows class _ExpandTabs(_VimTest): def _extra_vim_config(self, vim_config): vim_config.append("set sw=3") vim_config.append("set expandtab") class RecTabStopsWithExpandtab_Simple...
4,553
Python
.py
120
33.516667
121
0.67015
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,224
test_Chars.py
SirVer_ultisnips/test/test_Chars.py
# encoding: utf-8 from test.vim_test_case import VimTestCase as _VimTest from test.constant import * from test.util import running_on_windows def _snip_quote(qt): return ( ("te" + qt + "st", "Expand me" + qt + "!", "test: " + qt), ("te", "Bad", ""), ) class Snippet_With_SingleQuote(_VimTest)...
5,420
Python
.py
204
22.122549
70
0.590503
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,225
test_UltiSnipFunc.py
SirVer_ultisnips/test/test_UltiSnipFunc.py
# encoding: utf-8 from test.vim_test_case import VimTestCase as _VimTest from test.constant import * from test.util import running_on_windows class _AddFuncBase(_VimTest): args = "" def _before_test(self): self.vim.send_to_vim(":call UltiSnips#AddSnippetWithPriority(%s)\n" % self.args) class AddFun...
4,743
Python
.py
133
29.556391
228
0.611086
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,226
test_MultipleMatches.py
SirVer_ultisnips/test/test_MultipleMatches.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class _MultipleMatches(_VimTest): snippets = ( ("test", "Case1", "This is Case 1"), ("test", "Case2", "This is Case 2"), ) class Multiple_SimpleCaseSelectFirst_ECR(_MultipleMatches): keys = "test" + EX + "...
2,322
Python
.py
56
34.642857
69
0.550622
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,227
test_AnonymousExpansion.py
SirVer_ultisnips/test/test_AnonymousExpansion.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class _AnonBase(_VimTest): args = "" def _extra_vim_config(self, vim_config): vim_config.append( "inoremap <silent> %s <C-R>=UltiSnips#Anon(%s)<cr>" % (EA, self.args) ) class Anon_NoTrigger_Simple...
1,638
Python
.py
44
32.477273
81
0.617292
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,228
test_Autotrigger.py
SirVer_ultisnips/test/test_Autotrigger.py
from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class Autotrigger_CanMatchSimpleTrigger(_VimTest): files = { "us/all.snippets": r""" snippet a "desc" A autotriggered endsnippet """ } keys = "a" wanted = "autotriggered" class ...
2,361
Python
.py
89
19.640449
68
0.569912
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,229
test_SnipMate.py
SirVer_ultisnips/test/test_SnipMate.py
# encoding: utf-8 from test.vim_test_case import VimTestCase as _VimTest from test.constant import * class snipMate_SimpleSnippet(_VimTest): files = { "snippets/_.snippets": """ snippet hello \tThis is a test snippet \t# With a comment""" } keys = "hello" + EX wanted = "This is a test snippet\...
5,354
Python
.py
203
22.369458
84
0.598431
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,230
compatibility.py
SirVer_ultisnips/pythonx/UltiSnips/compatibility.py
#!/usr/bin/env python3 # encoding: utf-8 """This file contains compatibility code to stay compatible with as many python versions as possible.""" import vim def _vim_dec(string): """Decode 'string' using &encoding.""" # We don't have the luxury here of failing, everything # falls apart if we don't retur...
1,218
Python
.py
29
37.896552
79
0.693808
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,231
error.py
SirVer_ultisnips/pythonx/UltiSnips/error.py
#!/usr/bin/env python # encoding: utf-8 class PebkacError(RuntimeError): """An error that was caused by a misconfiguration or error in a snippet, i.e. caused by the user. Hence: "Problem exists between keyboard and chair". """ pass
255
Python
.py
8
28
76
0.709016
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,232
snippet_manager.py
SirVer_ultisnips/pythonx/UltiSnips/snippet_manager.py
#!/usr/bin/env python3 # encoding: utf-8 """Contains the SnippetManager facade used by all Vim Functions.""" from collections import defaultdict from contextlib import contextmanager import os from typing import Set from pathlib import Path import vim from UltiSnips import vim_helper from UltiSnips import err_to_scr...
37,641
Python
.py
846
32.425532
95
0.574454
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,233
err_to_scratch_buffer.py
SirVer_ultisnips/pythonx/UltiSnips/err_to_scratch_buffer.py
# coding=utf8 from functools import wraps import traceback import re import sys import time from bdb import BdbQuit from UltiSnips import vim_helper from UltiSnips.error import PebkacError from UltiSnips.remote_pdb import RemotePDB def _report_exception(self, msg, e): if hasattr(e, "snippet_info"): msg ...
2,919
Python
.py
70
33.057143
132
0.606765
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,234
test_position.py
SirVer_ultisnips/pythonx/UltiSnips/test_position.py
#!/usr/bin/env python3 # encoding: utf-8 # pylint: skip-file import unittest from position import Position class _MPBase: def runTest(self): obj = Position(*self.obj) for pivot, delta, wanted in self.steps: obj.move(Position(*pivot), Position(*delta)) self.assertEqual(Po...
1,740
Python
.py
52
28.096154
69
0.524865
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,235
buffer_proxy.py
SirVer_ultisnips/pythonx/UltiSnips/buffer_proxy.py
# coding=utf8 import vim from UltiSnips import vim_helper from UltiSnips.diff import diff from UltiSnips.error import PebkacError from UltiSnips.position import Position from contextlib import contextmanager @contextmanager def use_proxy_buffer(snippets_stack, vstate): """ Forward all changes made in the bu...
7,234
Python
.py
186
29.811828
85
0.601027
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,236
remote_pdb.py
SirVer_ultisnips/pythonx/UltiSnips/remote_pdb.py
import sys import threading from bdb import BdbQuit from UltiSnips import vim_helper class RemotePDB(object): """ Launch a pdb instance listening on (host, port). Used to provide debug facilities you can access with netcat or telnet. """ singleton = None def __init__(self, host, port): ...
3,199
Python
.py
93
25.505376
116
0.595331
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,237
position.py
SirVer_ultisnips/pythonx/UltiSnips/position.py
#!/usr/bin/env python3 # encoding: utf-8 from enum import Enum class JumpDirection(Enum): FORWARD = 1 BACKWARD = 2 class Position: """Represents a Position in a text file: (0 based line index, 0 based column index) and provides methods for moving them around.""" def __init__(self, line, col): ...
2,308
Python
.py
60
29.733333
84
0.572581
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,238
vim_helper.py
SirVer_ultisnips/pythonx/UltiSnips/vim_helper.py
#!/usr/bin/env python3 # encoding: utf-8 """Wrapper functionality around the functions we need from Vim.""" from contextlib import contextmanager import os import platform from UltiSnips.compatibility import col2byte, byte2col from UltiSnips.error import PebkacError from UltiSnips.position import Position from UltiS...
10,908
Python
.py
272
30.834559
87
0.573974
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,239
indent_util.py
SirVer_ultisnips/pythonx/UltiSnips/indent_util.py
#!/usr/bin/env python3 # encoding: utf-8 """See module doc.""" from UltiSnips import vim_helper class IndentUtil: """Utility class for dealing properly with indentation.""" def __init__(self): self.reset() def reset(self): """Gets the spacing properties from Vim.""" self.shift...
1,428
Python
.py
33
35.666667
81
0.616606
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,240
vim_state.py
SirVer_ultisnips/pythonx/UltiSnips/vim_state.py
#!/usr/bin/env python3 # encoding: utf-8 """Some classes to conserve Vim's state for comparing over time.""" from collections import deque, namedtuple from UltiSnips import vim_helper from UltiSnips.compatibility import byte2col from UltiSnips.position import Position _Placeholder = namedtuple("_FrozenPlaceholder",...
5,616
Python
.py
132
34.348485
86
0.613294
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,241
text.py
SirVer_ultisnips/pythonx/UltiSnips/text.py
#!/usr/bin/env python3 # encoding: utf-8 """Utilities to deal with text.""" def unescape(text): """Removes '\\' escaping from 'text'.""" rv = "" i = 0 while i < len(text): if i + 1 < len(text) and text[i] == "\\": rv += text[i + 1] i += 1 else: rv +...
2,086
Python
.py
66
24.712121
78
0.565652
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,242
__init__.py
SirVer_ultisnips/pythonx/UltiSnips/__init__.py
#!/usr/bin/env python3 # encoding: utf-8 """Entry point for all things UltiSnips.""" from UltiSnips.snippet_manager import UltiSnips_Manager
143
Python
.py
4
34.25
55
0.788321
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,243
test_diff.py
SirVer_ultisnips/pythonx/UltiSnips/test_diff.py
#!/usr/bin/env python3 # encoding: utf-8 # pylint: skip-file import unittest from diff import diff, guess_edit from position import Position from typing import List def transform(a, cmds): buf = a.split("\n") for cmd in cmds: ctype, line, col, char = cmd if ctype == "D": if cha...
4,539
Python
.py
128
29.640625
88
0.564649
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,244
debug.py
SirVer_ultisnips/pythonx/UltiSnips/debug.py
#!/usr/bin/env python3 # encoding: utf-8 """Convenience methods that help with debugging. They should never be used in production code. """ import sys DUMP_FILENAME = ( "/tmp/file.txt" if not sys.platform.lower().startswith("win") else "C:/windows/temp/ultisnips.txt" ) with open(DUMP_FILENAME, "w"): ...
1,303
Python
.py
38
28.710526
84
0.644285
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,245
diff.py
SirVer_ultisnips/pythonx/UltiSnips/diff.py
#!/usr/bin/env python3 # encoding: utf-8 """Commands to compare text objects and to guess how to transform from one to another.""" from collections import defaultdict import sys from UltiSnips import vim_helper from UltiSnips.position import Position def is_complete_edit(initial_line, original, wanted, cmds): ...
10,562
Python
.py
247
27.174089
86
0.435218
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,246
lexer.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/parsing/lexer.py
#!/usr/bin/env python3 # encoding: utf-8 """Not really a lexer in the classical sense, but code to convert snippet definitions into logical units called Tokens.""" import string import re from UltiSnips.error import PebkacError from UltiSnips.position import Position from UltiSnips.text import unescape class _Text...
11,998
Python
.py
324
28.070988
86
0.56918
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,247
ulti_snips.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/parsing/ulti_snips.py
#!/usr/bin/env python3 # encoding: utf-8 """Parses a UltiSnips snippet definition and launches it into Vim.""" from UltiSnips.snippet.parsing.base import ( tokenize_snippet_text, finalize, resolve_ambiguity, ) from UltiSnips.snippet.parsing.lexer import ( EscapeCharToken, VisualToken, Transfor...
2,155
Python
.py
77
22.38961
79
0.688588
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,248
snipmate.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/parsing/snipmate.py
#!/usr/bin/env python3 # encoding: utf-8 """Parses a snipMate snippet definition and launches it into Vim.""" from UltiSnips.snippet.parsing.base import ( tokenize_snippet_text, finalize, resolve_ambiguity, ) from UltiSnips.snippet.parsing.lexer import ( EscapeCharToken, VisualToken, TabStopTo...
1,381
Python
.py
50
23.16
78
0.711044
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,249
base.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/parsing/base.py
#!/usr/bin/env python3 # encoding: utf-8 """Common functionality of the snippet parsing codes.""" from UltiSnips.position import Position from UltiSnips.snippet.parsing.lexer import tokenize, TabStopToken from UltiSnips.text_objects import TabStop from UltiSnips.text_objects import Mirror from UltiSnips.snippet.pars...
2,612
Python
.py
60
35.4
77
0.655757
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,250
ulti_snips.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/definition/ulti_snips.py
#!/usr/bin/env python3 # encoding: utf-8 """A UltiSnips snippet after parsing.""" from UltiSnips.snippet.definition.base import SnippetDefinition from UltiSnips.snippet.parsing.ulti_snips import parse_and_instantiate class UltiSnipsSnippetDefinition(SnippetDefinition): """See module doc.""" def instantiat...
446
Python
.py
9
46.111111
76
0.793503
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,251
__init__.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/definition/__init__.py
"""In memory representation of snippet definitions.""" from UltiSnips.snippet.definition.ulti_snips import UltiSnipsSnippetDefinition from UltiSnips.snippet.definition.snipmate import SnipMateSnippetDefinition
211
Python
.py
3
69
78
0.879227
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,252
snipmate.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/definition/snipmate.py
#!/usr/bin/env python3 # encoding: utf-8 """A snipMate snippet after parsing.""" from UltiSnips.snippet.definition.base import SnippetDefinition from UltiSnips.snippet.parsing.snipmate import parse_and_instantiate class SnipMateSnippetDefinition(SnippetDefinition): """See module doc.""" SNIPMATE_SNIPPET_P...
800
Python
.py
23
26.478261
69
0.637191
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,253
base.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/definition/base.py
#!/usr/bin/env python3 # encoding: utf-8 """Snippet representation after parsing.""" import re import vim import textwrap from UltiSnips import vim_helper from UltiSnips.error import PebkacError from UltiSnips.indent_util import IndentUtil from UltiSnips.position import Position from UltiSnips.text import escape fr...
17,050
Python
.py
436
27.961009
87
0.548592
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,254
added.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/source/added.py
#!/usr/bin/env python3 # encoding: utf-8 """Handles manually added snippets UltiSnips_Manager.add_snippet().""" from UltiSnips.snippet.source.base import SnippetSource class AddedSnippetsSource(SnippetSource): """See module docstring.""" def add_snippet(self, ft, snippet): """Adds the given 'snipp...
385
Python
.py
9
38.444444
70
0.721622
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,255
snippet_dictionary.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/source/snippet_dictionary.py
#!/usr/bin/env python3 # encoding: utf-8 """Implements a container for parsed snippets.""" class SnippetDictionary: """See module docstring.""" def __init__(self): self._snippets = [] self._cleared = {} self._clear_priority = float("-inf") def add_snippet(self, snippet): ...
2,026
Python
.py
47
34.106383
85
0.62863
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,256
__init__.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/source/__init__.py
#!/usr/bin/env python3 # encoding: utf-8 """Sources of snippet definitions.""" from UltiSnips.snippet.source.base import SnippetSource from UltiSnips.snippet.source.added import AddedSnippetsSource from UltiSnips.snippet.source.file.snipmate import SnipMateFileSource from UltiSnips.snippet.source.file.ulti_snips impo...
438
Python
.py
12
34
69
0.816038
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,257
base.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/source/base.py
#!/usr/bin/env python3 # encoding: utf-8 """Base class for snippet sources.""" from collections import defaultdict from UltiSnips.snippet.source.snippet_dictionary import SnippetDictionary class SnippetSource: """See module docstring.""" def __init__(self): self._snippets = defaultdict(SnippetDic...
3,359
Python
.py
77
34.246753
87
0.636308
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,258
ulti_snips.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/source/file/ulti_snips.py
#!/usr/bin/env python3 # encoding: utf-8 """Parsing of snippet files.""" from collections import defaultdict import glob import os from typing import Set, List from UltiSnips import vim_helper from UltiSnips.error import PebkacError from UltiSnips.snippet.definition import UltiSnipsSnippetDefinition from UltiSnips.s...
7,199
Python
.py
187
29.609626
88
0.588648
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,259
snipmate.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/source/file/snipmate.py
#!/usr/bin/env python3 # encoding: utf-8 """Parses snipMate files.""" import os import glob from UltiSnips import vim_helper from UltiSnips.snippet.definition import SnipMateSnippetDefinition from UltiSnips.snippet.source.file.base import SnippetFileSource from UltiSnips.snippet.source.file.common import handle_exte...
4,173
Python
.py
110
30.290909
85
0.619554
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,260
base.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/source/file/base.py
#!/usr/bin/env python3 # encoding: utf-8 """Code to provide access to UltiSnips files from disk.""" from collections import defaultdict import os from UltiSnips import compatibility from UltiSnips import vim_helper from UltiSnips.error import PebkacError from UltiSnips.snippet.source.base import SnippetSource clas...
3,319
Python
.py
72
36.083333
80
0.606502
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,261
common.py
SirVer_ultisnips/pythonx/UltiSnips/snippet/source/file/common.py
#!/usr/bin/env python3 # encoding: utf-8 """Common code for snipMate and UltiSnips snippet files.""" import os.path def normalize_file_path(path: str) -> str: """Calls normpath and normcase on path""" path = os.path.realpath(path) return os.path.normcase(os.path.normpath(path)) def handle_extends(tail...
1,012
Python
.py
25
35.24
85
0.623337
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,262
snippet_instance.py
SirVer_ultisnips/pythonx/UltiSnips/text_objects/snippet_instance.py
#!/usr/bin/env python3 # encoding: utf-8 """A Snippet instance is an instance of a Snippet Definition. That is, when the user expands a snippet, a SnippetInstance is created to keep track of the corresponding TextObjects. The Snippet itself is also a TextObject. """ from UltiSnips import vim_helper from UltiSnips.e...
6,302
Python
.py
154
30.357143
85
0.59722
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,263
mirror.py
SirVer_ultisnips/pythonx/UltiSnips/text_objects/mirror.py
#!/usr/bin/env python3 # encoding: utf-8 """A Mirror object contains the same text as its related tabstop.""" from UltiSnips.text_objects.base import NoneditableTextObject class Mirror(NoneditableTextObject): """See module docstring.""" def __init__(self, parent, tabstop, token): NoneditableTextOb...
873
Python
.py
23
30.173913
76
0.637232
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,264
choices.py
SirVer_ultisnips/pythonx/UltiSnips/text_objects/choices.py
#!/usr/bin/env python3 # encoding: utf-8 """Choices are enumeration values you can choose, by selecting index number. It is a special TabStop, its content are taken literally, thus said, they will not be parsed recursively. """ from UltiSnips import vim_helper from UltiSnips.position import Position from UltiSnips.te...
5,621
Python
.py
128
32.867188
105
0.578014
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,265
tabstop.py
SirVer_ultisnips/pythonx/UltiSnips/text_objects/tabstop.py
#!/usr/bin/env python3 # encoding: utf-8 """This is the most important TextObject. A TabStop is were the cursor comes to rest when the user taps through the Snippet. """ from UltiSnips.text_objects.base import EditableTextObject class TabStop(EditableTextObject): """See module docstring.""" def __init__...
1,191
Python
.py
32
30
84
0.631533
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,266
viml_code.py
SirVer_ultisnips/pythonx/UltiSnips/text_objects/viml_code.py
#!/usr/bin/env python3 # encoding: utf-8 """Implements `!v ` VimL interpolation.""" from UltiSnips import vim_helper from UltiSnips.text_objects.base import NoneditableTextObject class VimLCode(NoneditableTextObject): """See module docstring.""" def __init__(self, parent, token): self._code = toke...
528
Python
.py
13
35.615385
61
0.688363
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,267
escaped_char.py
SirVer_ultisnips/pythonx/UltiSnips/text_objects/escaped_char.py
#!/usr/bin/env python3 # encoding: utf-8 """See module comment.""" from UltiSnips.text_objects.base import NoneditableTextObject class EscapedChar(NoneditableTextObject): r""" This class is a escape char like \$. It is handled in a text object to make sure that siblings are correctly moved after repla...
420
Python
.py
10
38.4
80
0.75495
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,268
__init__.py
SirVer_ultisnips/pythonx/UltiSnips/text_objects/__init__.py
#!/usr/bin/env python3 # encoding: utf-8 """Public facing classes for TextObjects.""" from UltiSnips.text_objects.escaped_char import EscapedChar from UltiSnips.text_objects.mirror import Mirror from UltiSnips.text_objects.python_code import PythonCode from UltiSnips.text_objects.shell_code import ShellCode from Ulti...
649
Python
.py
13
48.769231
67
0.862776
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,269
base.py
SirVer_ultisnips/pythonx/UltiSnips/text_objects/base.py
#!/usr/bin/env python3 # encoding: utf-8 """Base classes for all text objects.""" from UltiSnips import vim_helper from UltiSnips.position import Position def _calc_end(text, start): """Calculate the end position of the 'text' starting at 'start.""" if len(text) == 1: new_end = start + Position(0, l...
13,258
Python
.py
334
28.362275
88
0.53256
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,270
shell_code.py
SirVer_ultisnips/pythonx/UltiSnips/text_objects/shell_code.py
#!/usr/bin/env python3 # encoding: utf-8 """Implements `echo hi` shell code interpolation.""" import os import platform from subprocess import Popen, PIPE import stat import tempfile from UltiSnips.text_objects.base import NoneditableTextObject def _chomp(string): """Rather than rstrip(), remove only the last ...
2,266
Python
.py
65
28.523077
84
0.628545
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,271
transformation.py
SirVer_ultisnips/pythonx/UltiSnips/text_objects/transformation.py
#!/usr/bin/env python3 # encoding: utf-8 """Implements TabStop transformations.""" import re import sys from UltiSnips.text import unescape, fill_in_whitespace from UltiSnips.text_objects.mirror import Mirror def _find_closing_brace(string, start_pos): """Finds the corresponding closing brace after start_pos."...
5,641
Python
.py
142
30.021127
88
0.582281
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,272
visual.py
SirVer_ultisnips/pythonx/UltiSnips/text_objects/visual.py
#!/usr/bin/env python3 # encoding: utf-8 """A ${VISUAL} placeholder that will use the text that was last visually selected and insert it here. If there was no text visually selected, this will be the empty string. """ import re import textwrap from UltiSnips.indent_util import IndentUtil from UltiSnips.text_objec...
2,037
Python
.py
48
33.229167
85
0.623797
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,273
python_code.py
SirVer_ultisnips/pythonx/UltiSnips/text_objects/python_code.py
#!/usr/bin/env python3 # encoding: utf-8 """Implements `!p ` interpolation.""" import os from collections import namedtuple from UltiSnips import vim_helper from UltiSnips.indent_util import IndentUtil from UltiSnips.text_objects.base import NoneditableTextObject from UltiSnips.vim_state import _Placeholder import U...
8,507
Python
.py
230
27.934783
88
0.582217
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,274
ultisnips.py
SirVer_ultisnips/rplugin/python3/deoplete/sources/ultisnips.py
from deoplete.base.source import Base class Source(Base): def __init__(self, vim): Base.__init__(self, vim) self.name = "ultisnips" self.mark = "[US]" self.rank = 8 self.is_volatile = True def gather_candidates(self, context): suggestions = [] snippets...
696
Python
.py
21
21.666667
72
0.493294
SirVer/ultisnips
7,501
688
112
GPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,275
setup.py
gaubert_gmvault/setup.py
""" Gmvault: a tool to backup and restore your gmail account. Copyright (C) <2011-2012> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Softw...
2,792
Python
.py
60
39.85
113
0.648659
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,276
.pydevproject
gaubert_gmvault/.pydevproject
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?eclipse-pydev version="1.0"?> <pydev_project> <pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property> <pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property> <pydev_pathproperty name="org.pyt...
417
Python
.py
9
45.222222
91
0.773956
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,277
add_version.py
gaubert_gmvault/etc/utils/add_version.py
""" Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Fr...
1,808
Python
.py
39
39.564103
89
0.654328
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,278
find_version.py
gaubert_gmvault/etc/utils/find_version.py
""" Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Fr...
1,383
Python
.py
30
39.233333
89
0.663684
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,279
flask_stats.py
gaubert_gmvault/etc/utils/flask_stats.py
from flask import Flask import scrapping import json import datetime app = Flask(__name__) @app.route("/") def hello(): return "error 404" @app.route("/stats") def stats(): return scrapping.get_stats("JSON") if __name__ == "__main__": app.run(debug=False, host='0.0.0.0', port=8181) #app.run(debug=...
336
Python
.py
14
21.428571
51
0.674051
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,280
scrapping.py
gaubert_gmvault/etc/utils/scrapping.py
''' Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Fr...
6,526
Python
.py
154
34.383117
157
0.590447
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,281
memdebug.py
gaubert_gmvault/etc/utils/mem-profiling-tools/memdebug.py
# memdebug.py import cherrypy import dowser def start(port): cherrypy.tree.mount(dowser.Root()) cherrypy.config.update({ 'environment': 'embedded', 'server.socket_port': port }) #cherrypy.quickstart() cherrypy.engine.start()
263
Python
.py
11
19.454545
38
0.684
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,282
__init__.py
gaubert_gmvault/etc/utils/mem-profiling-tools/dowser/__init__.py
import cgi import gc import os localDir = os.path.join(os.getcwd(), os.path.dirname(__file__)) from StringIO import StringIO import sys import threading import time from types import FrameType, ModuleType import Image import ImageDraw import cherrypy import reftree def get_repr(obj, limit=250): return cgi.esca...
11,705
Python
.py
281
28.078292
84
0.504841
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,283
reftree.py
gaubert_gmvault/etc/utils/mem-profiling-tools/dowser/reftree.py
import gc import sys from types import FrameType class Tree: def __init__(self, obj): self.obj = obj self.filename = sys._getframe().f_code.co_filename self._ignore = {} def ignore(self, *objects): for obj in objects: self._ignore[id(obj)] = None ...
5,892
Python
.py
145
29.503448
81
0.560261
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,284
reftree.py.svn-base
gaubert_gmvault/etc/utils/mem-profiling-tools/dowser/.svn/text-base/reftree.py.svn-base
import gc import sys from types import FrameType class Tree: def __init__(self, obj): self.obj = obj self.filename = sys._getframe().f_code.co_filename self._ignore = {} def ignore(self, *objects): for obj in objects: self._ignore[id(obj)] = None ...
5,892
Python
.py
145
29.503448
81
0.560261
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,285
__init__.py.svn-base
gaubert_gmvault/etc/utils/mem-profiling-tools/dowser/.svn/text-base/__init__.py.svn-base
import cgi import gc import os localDir = os.path.join(os.getcwd(), os.path.dirname(__file__)) from StringIO import StringIO import sys import threading import time from types import FrameType, ModuleType import Image import ImageDraw import cherrypy import reftree def get_repr(obj, limit=250): return cgi.esca...
11,705
Python
.py
281
28.078292
84
0.504841
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,286
gmv_runner.py
gaubert_gmvault/src/gmv_runner.py
''' Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Fr...
884
Python
.py
16
50.875
89
0.75406
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,287
setup_win.py
gaubert_gmvault/src/setup_win.py
''' Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft...
1,321
Python
.py
21
59.380952
149
0.742085
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,288
validation_tests.py
gaubert_gmvault/src/validation_tests.py
''' Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft...
4,177
Python
.py
101
33.039604
138
0.653896
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,289
gmvault_essential_tests.py
gaubert_gmvault/src/gmvault_essential_tests.py
''' Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft...
6,808
Python
.py
113
49.230088
144
0.641973
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,290
gmv_cmd_tests.py
gaubert_gmvault/src/gmv_cmd_tests.py
''' Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft...
22,488
Python
.py
469
35.45629
163
0.569562
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,291
gmvault_tests.py
gaubert_gmvault/src/gmvault_tests.py
''' Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft...
27,099
Python
.py
494
41.117409
558
0.616895
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,292
setup_mac.py
gaubert_gmvault/src/setup_mac.py
""" This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup #APP = ['./gmv/gmv_cmd.py'] APP = ['./gmv_runner.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True, 'includes':['argparse', 'logbook','imapclient','chardet'],} setup( app=APP, data_fi...
402
Python
.py
16
22.625
94
0.675393
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,293
sandbox_tests.py
gaubert_gmvault/src/sandbox_tests.py
''' Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft...
8,841
Python
.py
209
31.334928
137
0.610859
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,294
perf_tests.py
gaubert_gmvault/src/perf_tests.py
''' Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft...
4,267
Python
.py
87
37.643678
137
0.591546
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,295
gmv_cmd.py
gaubert_gmvault/src/gmv/gmv_cmd.py
# -*- coding: utf-8 -*- ''' Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as...
38,345
Python
.py
645
43.778295
128
0.576171
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,296
cmdline_utils.py
gaubert_gmvault/src/gmv/cmdline_utils.py
''' Gmvault: a tool to backup and restore your gmail account. Copyright (C) <2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Sof...
7,686
Python
.py
151
40.284768
130
0.615788
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,297
credential_utils.py
gaubert_gmvault/src/gmv/credential_utils.py
''' Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Fr...
18,384
Python
.py
328
45.320122
181
0.639221
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,298
gmvault_db.py
gaubert_gmvault/src/gmv/gmvault_db.py
""" Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Fr...
26,381
Python
.py
585
33.4
127
0.557194
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)
12,299
validation_tests.py
gaubert_gmvault/src/gmv/validation_tests.py
''' Gmvault: a tool to backup and restore your gmail account. Copyright (C) <since 2011> <guillaume Aubert (guillaume dot aubert at gmail do com)> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft...
3,481
Python
.py
78
36.217949
103
0.670646
gaubert/gmvault
3,572
285
144
AGPL-3.0
9/5/2024, 5:11:34 PM (Europe/Amsterdam)