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
600
ssh_gss.py
paramiko_paramiko/paramiko/ssh_gss.py
# Copyright (C) 2013-2014 science + computing ag # Author: Sebastian Deiss <sebastian.deiss@t-online.de> # # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation;...
28,887
Python
.py
681
31.839941
79
0.590451
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
601
ed25519key.py
paramiko_paramiko/paramiko/ed25519key.py
# This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (at your option) # any later version. # # Paramiko is distributed in t...
7,457
Python
.py
181
31.232044
79
0.600138
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
602
kex_group16.py
paramiko_paramiko/paramiko/kex_group16.py
# Copyright (C) 2019 Edgar Sousa <https://github.com/edgsousa> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (at y...
2,288
Python
.py
30
74.3
1,042
0.869507
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
603
ssh_exception.py
paramiko_paramiko/paramiko/ssh_exception.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
7,494
Python
.py
184
34.804348
88
0.679597
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
604
primes.py
paramiko_paramiko/paramiko/primes.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
5,107
Python
.py
134
29.365672
79
0.578342
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
605
auth_handler.py
paramiko_paramiko/paramiko/auth_handler.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
43,006
Python
.py
1,012
30.618577
171
0.575703
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
606
sftp_client.py
paramiko_paramiko/paramiko/sftp_client.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of Paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
35,855
Python
.py
845
32.19645
85
0.588593
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
607
win_pageant.py
paramiko_paramiko/paramiko/win_pageant.py
# Copyright (C) 2005 John Arbash-Meinel <john@arbash-meinel.com> # Modified up by: Todd Whiteman <ToddW@ActiveState.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Softwa...
4,177
Python
.py
110
32.718182
86
0.69126
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
608
rsakey.py
paramiko_paramiko/paramiko/rsakey.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
7,546
Python
.py
199
28.979899
79
0.611422
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
609
pipe.py
paramiko_paramiko/paramiko/pipe.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
3,902
Python
.py
120
26.283333
79
0.628663
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
610
transport.py
paramiko_paramiko/paramiko/transport.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Fr...
135,632
Python
.py
3,132
32.076948
90
0.584187
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
611
kex_gex.py
paramiko_paramiko/paramiko/kex_gex.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
10,320
Python
.py
267
30.037453
95
0.59061
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
612
_winapi.py
paramiko_paramiko/paramiko/_winapi.py
""" Windows API functions implemented as ctypes functions and classes as found in jaraco.windows (3.4.1). If you encounter issues with this module, please consider reporting the issues in jaraco.windows and asking the author to port the fixes back here. """ import builtins import ctypes.wintypes from paramiko.util i...
11,204
Python
.py
336
27.66369
78
0.683533
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
613
file.py
paramiko_paramiko/paramiko/file.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
19,063
Python
.py
473
29.934461
79
0.569193
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
614
dsskey.py
paramiko_paramiko/paramiko/dsskey.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
8,248
Python
.py
229
26.716157
79
0.587735
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
615
auth_strategy.py
paramiko_paramiko/paramiko/auth_strategy.py
""" Modern, adaptable authentication machinery. Replaces certain parts of `.SSHClient`. For a concrete implementation, see the ``OpenSSHAuthStrategy`` class in `Fabric <https://fabfile.org>`_. """ from collections import namedtuple from .agent import AgentKey from .util import get_logger from .ssh_exception import A...
11,437
Python
.py
243
39.584362
79
0.665888
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
616
kex_curve25519.py
paramiko_paramiko/paramiko/kex_curve25519.py
import binascii import hashlib from cryptography.exceptions import UnsupportedAlgorithm from cryptography.hazmat.primitives import constant_time, serialization from cryptography.hazmat.primitives.asymmetric.x25519 import ( X25519PrivateKey, X25519PublicKey, ) from paramiko.message import Message from paramiko...
4,436
Python
.py
115
29.608696
78
0.629036
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
617
__init__.py
paramiko_paramiko/paramiko/__init__.py
# Copyright (C) 2003-2011 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
4,446
Python
.py
156
25.083333
79
0.761271
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
618
pkey.py
paramiko_paramiko/paramiko/pkey.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
36,581
Python
.py
827
34.564692
113
0.60883
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
619
hostkeys.py
paramiko_paramiko/paramiko/hostkeys.py
# Copyright (C) 2006-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
13,208
Python
.py
326
29.570552
79
0.561291
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
620
sftp_file.py
paramiko_paramiko/paramiko/sftp_file.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
21,820
Python
.py
523
31.774379
79
0.595166
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
621
sftp_server.py
paramiko_paramiko/paramiko/sftp_server.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
19,492
Python
.py
506
27.626482
79
0.562121
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
622
kex_group1.py
paramiko_paramiko/paramiko/kex_group1.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
5,740
Python
.py
138
33.891304
274
0.625604
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
623
sftp_si.py
paramiko_paramiko/paramiko/sftp_si.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
12,544
Python
.py
267
38.142322
79
0.64017
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
624
packet.py
paramiko_paramiko/paramiko/packet.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
24,314
Python
.py
624
28.060897
79
0.548438
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
625
ecdsakey.py
paramiko_paramiko/paramiko/ecdsakey.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
11,653
Python
.py
288
30.909722
79
0.611455
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
626
kex_gss.py
paramiko_paramiko/paramiko/kex_gss.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # Copyright (C) 2013-2014 science + computing ag # Author: Sebastian Deiss <sebastian.deiss@t-online.de> # # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser Gene...
24,562
Python
.py
626
29.929712
530
0.594027
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
627
kex_ecdh_nist.py
paramiko_paramiko/paramiko/kex_ecdh_nist.py
""" Ephemeral Elliptic Curve Diffie-Hellman (ECDH) key exchange RFC 5656, Section 4 """ from hashlib import sha256, sha384, sha512 from paramiko.common import byte_chr from paramiko.message import Message from paramiko.ssh_exception import SSHException from cryptography.hazmat.backends import default_backend from cryp...
5,012
Python
.py
136
27.948529
78
0.610985
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
628
ber.py
paramiko_paramiko/paramiko/ber.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
4,369
Python
.py
124
26.241935
79
0.571395
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
629
win_openssh.py
paramiko_paramiko/paramiko/win_openssh.py
# Copyright (C) 2021 Lew Gordon <lew.gordon@genesys.com> # Copyright (C) 2022 Patrick Spendrin <ps_ml@gmx.de> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundati...
1,918
Python
.py
47
34.93617
79
0.671858
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
630
sftp_handle.py
paramiko_paramiko/paramiko/sftp_handle.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
7,424
Python
.py
168
35.761905
79
0.637521
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
631
sftp_attr.py
paramiko_paramiko/paramiko/sftp_attr.py
# Copyright (C) 2003-2006 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (at...
8,258
Python
.py
220
27.959091
79
0.547824
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
632
common.py
paramiko_paramiko/paramiko/common.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
7,756
Python
.py
216
33.106481
79
0.745174
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
633
server.py
paramiko_paramiko/paramiko/server.py
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
30,457
Python
.py
618
39.953074
79
0.653322
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
634
agent.py
paramiko_paramiko/paramiko/agent.py
# Copyright (C) 2003-2007 John Rochester <john@jrochester.org> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (at ...
15,877
Python
.py
414
30.130435
79
0.620156
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
635
buffered_pipe.py
paramiko_paramiko/paramiko/buffered_pipe.py
# Copyright (C) 2006-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
7,225
Python
.py
185
29.281081
79
0.581206
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
636
contact.rst
paramiko_paramiko/sites/www/contact.rst
======= Contact ======= You can get in touch with the developer & user community in any of the following ways: * Submit contributions on Github - see the :doc:`contributing` page. * Follow ``@bitprophet`` on Twitter, though it's not a dedicated account and mostly just retweets funny pictures. * Subscribe to the ``p...
409
Python
.tac
10
39.3
76
0.753149
paramiko/paramiko
9,017
1,999
1,074
LGPL-2.1
9/5/2024, 5:07:36 PM (Europe/Amsterdam)
637
conftest.py
Knio_dominate/conftest.py
# used by pytest to test against the local copy of dominate # (this file is important even though it is empty)
111
Python
.py
2
54.5
59
0.779817
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
638
setup.py
Knio_dominate/setup/setup.py
__license__ = ''' This file is part of Dominate. Dominate is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Dominate is distributed in...
2,371
Python
.py
54
40.851852
123
0.709705
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
639
svg.py
Knio_dominate/dominate/svg.py
''' This module consists of classes specific to HTML5-SVG Elements. In general this module does not include - Elements that are not specific to SVG (eg. <a>) - Elements that are deprecated ''' from dominate.tags import html_tag from dominate.dom_tag import dom_tag import numbers __license__ = ''' This file is part of...
9,121
Python
.py
269
31.126394
159
0.733189
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
640
util.py
Knio_dominate/dominate/util.py
''' Utility classes for creating dynamic html documents ''' __license__ = ''' This file is part of Dominate. Dominate is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (a...
4,311
Python
.py
145
26.310345
86
0.664727
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
641
tags.py
Knio_dominate/dominate/tags.py
''' HTML tag classes. ''' __license__ = ''' This file is part of Dominate. Dominate is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
28,662
Python
.py
879
29.583618
90
0.725935
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
642
dom_tag.py
Knio_dominate/dominate/dom_tag.py
__license__ = ''' This file is part of Dominate. Dominate is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Dominate is distributed in...
14,131
Python
.py
393
30.603053
118
0.658814
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
643
__init__.py
Knio_dominate/dominate/__init__.py
from ._version import __version__ version = __version__ from .document import document
88
Python
.py
3
28
33
0.761905
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
644
document.py
Knio_dominate/dominate/document.py
__license__ = ''' This file is part of Dominate. Dominate is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Dominate is distributed in...
2,243
Python
.py
64
31.078125
76
0.686664
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
645
dom1core.py
Knio_dominate/dominate/dom1core.py
__license__ = ''' This file is part of Dominate. Dominate is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Dominate is distributed in...
1,734
Python
.py
54
28.555556
72
0.719162
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
646
test_document.py
Knio_dominate/tests/test_document.py
from dominate import document from dominate.tags import * def test_doc(): d = document() assert d.render() == \ '''<!DOCTYPE html> <html> <head> <title>Dominate</title> </head> <body></body> </html>''' def test_decorator(): @document() def foo(): p('Hello World') f = foo() assert f.render(...
1,857
Python
.py
101
15.366337
52
0.590334
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
647
test_dom1core.py
Knio_dominate/tests/test_dom1core.py
import pytest from dominate.tags import * def test_dom(): container = div() with container.add(div(id='base')) as dom: s1 = span('Hello', id='span1') s2 = span('World', id='span2') s3 = span('foobar', id='span3') dom.appendChild(s3) assert container.getElementById('base') is dom assert container....
898
Python
.py
28
28.857143
63
0.706019
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
648
test_dom_tag_async.py
Knio_dominate/tests/test_dom_tag_async.py
from asyncio import gather, run, Semaphore from dominate.dom_tag import async_context_id from textwrap import dedent from dominate import tags # To simulate sleep without making the tests take a hella long time to complete # lets use a pair of semaphores to explicitly control when our coroutines run. # The order of e...
2,374
Python
.py
65
29.138462
101
0.571242
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
649
test_utils.py
Knio_dominate/tests/test_utils.py
import dominate from dominate.tags import * from dominate import util def test_context(): id1 = dominate.dom_tag._get_thread_context() id2 = dominate.dom_tag._get_thread_context() assert id1 == id2 def test_include(): import os try: f = open('_test_include.deleteme', 'w') f.write('Hello World') ...
1,129
Python
.py
44
22
71
0.617757
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
650
test_html.py
Knio_dominate/tests/test_html.py
import dominate from dominate.tags import * import pytest from dominate.util import raw try: xrange = xrange except NameError: xrange = range def test_arguments(): assert html(body(h1('Hello, pyy!'))).render() == \ '''<html> <body> <h1>Hello, pyy!</h1> </body> </html>''' def test_kwargs(): assert d...
7,237
Python
.py
270
23.3
94
0.576912
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
651
test_dom_tag.py
Knio_dominate/tests/test_dom_tag.py
import pytest try: import mock except ImportError: import unittest.mock as mock from dominate.tags import * def test___get_thread_context(monkeypatch): from dominate import dom_tag as sut greenlet = mock.Mock() greenlet.getcurrent.return_value = 100 monkeypatch.setattr(sut, 'greenlet', greenl...
1,813
Python
.py
60
25.183333
82
0.655908
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
652
test_svg.py
Knio_dominate/tests/test_svg.py
import dominate.svg from dominate.tags import * from dominate.svg import * import pytest def base(): return svg( width=120, height=120, viewBox="0 0 120 120", version="1.1", xmlns="http://www.w3.org/2000/svg", xmlns_xlink="http://www.w3.org/1999/xlink" ) def get_expected(func): return func.__doc_...
10,000
Python
.py
231
38.87013
149
0.622366
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
653
test_dominate.py
Knio_dominate/tests/test_dominate.py
def test_version(): import dominate version = '2.9.1' assert dominate.version == version assert dominate.__version__ == version
137
Python
.py
5
24.6
40
0.717557
Knio/dominate
1,689
109
18
LGPL-3.0
9/5/2024, 5:07:54 PM (Europe/Amsterdam)
654
setup.py
ranger_ranger/setup.py
#!/usr/bin/env python # This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from __future__ import (absolute_import, division, print_function) from hashlib import sha512 import os import shutil from setuptools import setup from setuptools.command.i...
4,454
Python
.py
118
27.483051
91
0.549479
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
655
.pylintrc
ranger_ranger/.pylintrc
[MASTER] init-hook='import sys; sys.path.append("tests/pylint")' load-plugins=py2_compat,python3 [BASIC] good-names=i,j,k,n,x,y,ex,Run,_,fm,ui,fg,bg bad-names=foo,baz,toto,tutu,tata [DESIGN] max-args=6 max-branches=16 [FORMAT] max-line-length = 99 enable=no-absolute-import,old-division disable=consider-using-f-strin...
685
Python
.py
15
44.4
293
0.825826
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
656
ranger.py
ranger_ranger/ranger.py
#!/usr/bin/python -O # This file is part of ranger, the console file manager. (coding: utf-8) # License: GNU GPL version 3, see the file "AUTHORS" for details. # ===================== # This embedded bash script can be executed by sourcing this file. # It will cd to ranger's last location after you exit it. # The fir...
1,314
Python
.py
32
39.65625
99
0.681284
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
657
plugin_new_macro.py
ranger_ranger/examples/plugin_new_macro.py
# Compatible with ranger 1.6.0 through 1.7.* # # This plugin adds the new macro %date which is substituted with the current # date in commands that allow macros. You can test it with the command # ":shell echo %date; read" from __future__ import (absolute_import, division, print_function) import time import ranger....
676
Python
.py
17
37.588235
76
0.761905
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
658
plugin_hello_world.py
ranger_ranger/examples/plugin_hello_world.py
# Compatible with ranger 1.6.0 through 1.7.* # # This is a sample plugin that displays "Hello World" in ranger's console after # it started. from __future__ import (absolute_import, division, print_function) # We are going to extend the hook "ranger.api.hook_ready", so first we need # to import ranger.api: import ran...
921
Python
.py
20
43.65
80
0.74804
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
659
plugin_new_sorting_method.py
ranger_ranger/examples/plugin_new_sorting_method.py
# Compatible with ranger 1.6.0 through 1.7.* # # This plugin adds the sorting algorithm called 'random'. To enable it, type # ":set sort=random" or create a key binding with ":map oz set sort=random" from __future__ import (absolute_import, division, print_function) from random import random from ranger.container.d...
401
Python
.py
8
48.625
77
0.771208
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
660
plugin_fasd_add.py
ranger_ranger/examples/plugin_fasd_add.py
# This plugin adds opened files to `fasd` from __future__ import (absolute_import, division, print_function) import subprocess import ranger.api from ranger.ext.spawn import check_output HOOK_INIT_OLD = ranger.api.hook_init def hook_init(fm): def fasd_add(): for fobj in fm.thistab.get_selection(): ...
576
Python
.py
16
29.6875
66
0.675136
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
661
plugin_pmount_dynamic.py
ranger_ranger/examples/plugin_pmount_dynamic.py
# Tested with ranger 1.7.2 # # This plugin creates a bunch of keybindings used to mount and unmount # the devices using pmount(1). # # (multiple partitions): alt+m <letter> <digit> : mount /dev/sd<letter><digit> # (one partition): alt+m <letter> : mount /dev/sd<letter>1 # (no partitions): alt+m <l...
2,674
Python
.py
56
39.5
95
0.578725
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
662
plugin_chmod_keybindings.py
ranger_ranger/examples/plugin_chmod_keybindings.py
# Compatible with ranger 1.6.0 through ranger 1.7.* # # This plugin serves as an example for adding key bindings through a plugin. # It could replace the ten lines in the rc.conf that create the key bindings # for the "chmod" command. from __future__ import (absolute_import, division, print_function) import ranger.ap...
743
Python
.py
17
39.352941
76
0.687587
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
663
plugin_ipc.py
ranger_ranger/examples/plugin_ipc.py
# Tested with ranger 1.7.0 through ranger 1.7.* # # This plugin creates a FIFO in /tmp/ranger-ipc.<PID> to which any # other program may write. Lines written to this file are evaluated by # ranger as the ranger :commands. # # Example: # $ echo tab_new ~/images > /tmp/ranger-ipc.1234 from __future__ import (absolute_...
1,516
Python
.py
45
24.977778
75
0.593151
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
664
plugin_linemode.py
ranger_ranger/examples/plugin_linemode.py
# Compatible since ranger 1.7.0 # # This sample plugin adds a new linemode displaying the filename in rot13. # Load this plugin by copying it to ~/.config/ranger/plugins/ and activate # the linemode by typing ":linemode rot13" in ranger. Type Mf to restore # the default linemode. from __future__ import (absolute_impo...
691
Python
.py
17
37.588235
74
0.769115
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
665
plugin_pmount.py
ranger_ranger/examples/plugin_pmount.py
# Tested with ranger 1.7.2 # # This plugin creates a bunch of keybindings used to mount and unmount # the devices using pmount(1). # # alt+m <letter> <digit>: mount /dev/sd<letter><digit> # alt+m <uppercase letter> : mount /dev/sd<letter> # alt+shift+m <letter> <digit>: unmount...
1,487
Python
.py
32
40.53125
91
0.606228
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
666
plugin_file_filter.py
ranger_ranger/examples/plugin_file_filter.py
# Compatible since ranger 1.7.0 (git commit c82a8a76989c) # # This plugin hides the directories "/boot", "/sbin", "/proc" and "/sys" unless # the "show_hidden" option is activated. # Save the original filter function from __future__ import (absolute_import, division, print_function) import ranger.container.directory...
713
Python
.py
16
41.9375
79
0.752547
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
667
plugin_avfs.py
ranger_ranger/examples/plugin_avfs.py
# Tested with ranger 1.9.1 # # A very simple and possibly buggy support for AVFS # (http://avf.sourceforge.net/), that allows ranger to handle # archives. # # Run `:avfs' to browse the selected archive. from __future__ import (absolute_import, division, print_function) import os import os.path from ranger.api.comman...
991
Python
.py
27
29.259259
81
0.624217
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
668
pypy.yml
ranger_ranger/.github/workflows/pypy.yml
name: Pypy tests on: push: paths: - '.github/workflows/pypy.yml' - '**.py' - 'requirements.txt' jobs: test_pypy: runs-on: ubuntu-latest strategy: max-parallel: 4 matrix: python-version: [pypy2.7, pypy3.9] env: TERM: dumb steps: - uses: actions/ch...
735
Python
.py
29
19.448276
72
0.613636
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
669
manpage_completion_test.py
ranger_ranger/tests/manpage_completion_test.py
#!/usr/bin/env python from __future__ import (absolute_import, division, print_function) import os.path import re import sys # Add relevant ranger module to PATH... there surely is a better way to do this... sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) def report(boolean, errormessage): i...
1,640
Python
.py
43
32.325581
82
0.655281
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
670
python3.py
ranger_ranger/tests/pylint/python3.py
# Copyright (c) 2014-2020 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014-2015 Brett Cannon <brett@python.org> # Copyright (c) 2015 Simu Toni <simutoni@gmail.com> # Copyright (c) 2015 Pavel Roskin <proski@gnu.org> # Copyright (c) 2015 Ionel Cristian Maries <contact@ionelmc.ro> # Copyright (c) 2015 Cosmin Poie...
53,422
Python
.py
1,347
26.956199
95
0.52401
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
671
py2_compat.py
ranger_ranger/tests/pylint/py2_compat.py
from __future__ import absolute_import import astroid from pylint.checkers import BaseChecker from pylint.interfaces import HIGH from pylint.checkers import utils class Py2CompatibilityChecker(BaseChecker): """Verify some simple properties of code compatible with both 2 and 3""" # The name defines a custo...
6,700
Python
.py
134
35.634328
80
0.553435
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
672
test_py2_compat.py
ranger_ranger/tests/pylint/test_py2_compat.py
from __future__ import absolute_import import py2_compat import astroid import pylint.testutils from pylint.interfaces import HIGH from sys import version_info PY2 = version_info[0] < 3 class TestPy2CompatibilityChecker(pylint.testutils.CheckerTestCase): CHECKER_CLASS = py2_compat.Py2CompatibilityChecker ...
6,767
Python
.py
187
26.379679
82
0.556184
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
673
test_container.py
ranger_ranger/tests/ranger/container/test_container.py
from __future__ import (absolute_import, division, print_function) from ranger.container import history HISTORY_TEST_ENTRIES = [str(k) for k in range(20)] OTHER_TEST_ENTRIES = [str(k) for k in range(40, 45)] def testhistorybasic(): # A history is a buffer of limited size that stores the last `maxlen` # ite...
3,101
Python
.py
81
32.91358
80
0.656771
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
674
test_fsobject.py
ranger_ranger/tests/ranger/container/test_fsobject.py
from __future__ import (absolute_import, division, print_function) import operator from ranger.container.fsobject import FileSystemObject class MockFM(object): # pylint: disable=too-few-public-methods """Used to fulfill the dependency by FileSystemObject.""" default_linemodes = [] def create_filesystem_...
1,757
Python
.py
42
34.190476
88
0.606221
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
675
test_bookmarks.py
ranger_ranger/tests/ranger/container/test_bookmarks.py
from __future__ import (absolute_import, division, print_function) import os import time import pytest from ranger.container.bookmarks import Bookmarks class NotValidatedBookmarks(Bookmarks): def _validate(self, value): return True def testbookmarks(tmpdir): # Bookmarks point to directory locatio...
2,510
Python
.py
59
37.457627
94
0.730453
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
676
test_main.py
ranger_ranger/tests/ranger/core/test_main.py
from __future__ import absolute_import import collections import os from ranger.core import main def test_get_paths(): args_tuple = collections.namedtuple('args', 'paths') args = args_tuple(paths=None) paths = main.get_paths(args) for path in paths: assert os.path.exists(path) if __name__...
357
Python
.py
12
25.833333
56
0.692308
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
677
convert_papermode_to_metadata.py
ranger_ranger/doc/tools/convert_papermode_to_metadata.py
#!/usr/bin/env python """ usage: ./convert_papermode_to_metadata.py This script converts the .paperinfo CSV file in the current directory to an equivalent .metadata.json file. ranger used to store metadata in .paperinfo files, but that format was rather limited, so .metadata.json files were introduced. """ from __fu...
2,434
Python
.py
59
33.728814
95
0.625106
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
678
print_colors.py
ranger_ranger/doc/tools/print_colors.py
#!/usr/bin/env python """ You can use this tool to display all supported colors and their color number. It will exit after a keypress. """ from __future__ import (absolute_import, division, print_function) import curses @curses.wrapper def main(win): def print_all_colors(attr): for color in range(-1, cu...
835
Python
.py
28
23.392857
77
0.62391
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
679
performance_test.py
ranger_ranger/doc/tools/performance_test.py
#!/usr/bin/env python from __future__ import (absolute_import, division, print_function) import sys import time sys.path.insert(0, '../..') sys.path.insert(0, '.') def main(): import ranger.container.directory import ranger.core.shared import ranger.container.settings import ranger.core.fm from...
1,065
Python
.py
33
26.878788
66
0.673509
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
680
print_keys.py
ranger_ranger/doc/tools/print_keys.py
#!/usr/bin/env python """ You can use this tool to find out values of keypresses """ from __future__ import (absolute_import, division, print_function) import curses SEPARATOR = '; ' @curses.wrapper def main(window): curses.mousemask(curses.ALL_MOUSE_EVENTS) curses.mouseinterval(0) while True: ...
506
Python
.py
17
24.882353
66
0.677019
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
681
commands.py
ranger_ranger/doc/config/commands.py
# -*- coding: utf-8 -*- # This file is part of ranger, the console file manager. # This configuration file is licensed under the same terms as ranger. # =================================================================== # # NOTE: If you copied this file to /etc/ranger/commands_full.py or # ~/.config/ranger/commands_fu...
66,598
Python
.py
1,686
29.956702
99
0.581115
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
682
default.py
ranger_ranger/doc/config/colorschemes/default.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from __future__ import (absolute_import, division, print_function) from ranger.gui.colorscheme import ColorScheme from ranger.gui.color import ( black, blue, cyan, green, magenta, red, white,...
5,864
Python
.py
169
19.674556
84
0.457908
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
683
jungle.py
ranger_ranger/doc/config/colorschemes/jungle.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from __future__ import (absolute_import, division, print_function) from ranger.colorschemes.default import Default from ranger.gui.color import green, red, blue, bold class Scheme(Default): ...
845
Python
.py
18
39.222222
74
0.679707
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
684
snow.py
ranger_ranger/doc/config/colorschemes/snow.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from __future__ import (absolute_import, division, print_function) from ranger.gui.colorscheme import ColorScheme from ranger.gui.color import default_colors, reverse, bold, BRIGHT class Snow(C...
1,290
Python
.py
35
25.571429
66
0.570394
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
685
__init__.py
ranger_ranger/ranger/__init__.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. """A console file manager with VI key bindings. It provides a minimalistic and nice curses interface with a view on the directory hierarchy. The secondary task of ranger is to figure out which p...
2,105
Python
.py
54
34.12963
79
0.687102
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
686
commands.py
ranger_ranger/ranger/config/commands.py
# -*- coding: utf-8 -*- # This file is part of ranger, the console file manager. # This configuration file is licensed under the same terms as ranger. # =================================================================== # # NOTE: If you copied this file to /etc/ranger/commands_full.py or # ~/.config/ranger/commands_fu...
66,598
Python
.py
1,686
29.956702
99
0.581115
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
687
commands_sample.py
ranger_ranger/ranger/config/commands_sample.py
# This is a sample commands.py. You can add your own commands here. # # Please refer to commands_full.py for all the default commands and a complete # documentation. Do NOT add them all here, or you may end up with defunct # commands when upgrading ranger. # A simple command for demonstration purposes follows. # ---...
2,763
Python
.py
50
48.58
79
0.674935
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
688
bookmarks.py
ranger_ranger/ranger/container/bookmarks.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from __future__ import (absolute_import, division, print_function) import string import re import os from io import open from ranger import PY3 from ranger.core.shared import FileManagerAware A...
8,408
Python
.py
216
27.777778
93
0.553372
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
689
settings.py
ranger_ranger/ranger/container/settings.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from __future__ import (absolute_import, division, print_function) import re import os.path from inspect import isfunction import ranger from ranger.ext.signals import SignalDispatcher from rang...
11,873
Python
.py
304
29.759868
98
0.57159
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
690
tags.py
ranger_ranger/ranger/container/tags.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. # TODO: add a __getitem__ method to get the tag of a file from __future__ import (absolute_import, division, print_function) import string from io import open from os.path import exists, abspath...
4,718
Python
.py
137
24.306569
79
0.543555
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
691
history.py
ranger_ranger/ranger/container/history.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. # TODO: rewrite to use deque instead of list from __future__ import (absolute_import, division, print_function) class HistoryEmptyException(Exception): pass class History(object): de...
4,481
Python
.py
124
25.580645
79
0.556787
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
692
file.py
ranger_ranger/ranger/container/file.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from __future__ import (absolute_import, division, print_function) import re from ranger import PY3 from ranger.container.fsobject import FileSystemObject N_FIRST_BYTES = 256 CONTROL_CHARACTERS...
3,491
Python
.py
95
28
72
0.597929
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
693
fsobject.py
ranger_ranger/ranger/container/fsobject.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from __future__ import (absolute_import, division, print_function) import re from grp import getgrgid from os import lstat, stat from os.path import abspath, basename, dirname, realpath, relpath,...
12,251
Python
.py
318
29.113208
95
0.592031
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
694
directory.py
ranger_ranger/ranger/container/directory.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from __future__ import (absolute_import, division, print_function) import locale import os.path from os import stat as os_stat, lstat as os_lstat import random import re from collections import d...
26,135
Python
.py
621
29.276973
99
0.555407
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
695
ansi.py
ranger_ranger/ranger/gui/ansi.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. # Author: David Barnett <davidbarnett2@gmail.com>, 2010 """A library to help to convert ANSI codes to curses instructions.""" from __future__ import (absolute_import, division, print_function) i...
5,692
Python
.py
150
26.593333
93
0.497914
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
696
context.py
ranger_ranger/ranger/gui/context.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from __future__ import (absolute_import, division, print_function) CONTEXT_KEYS = [ 'reset', 'error', 'badinfo', 'in_browser', 'in_statusbar', 'in_titlebar', 'in_console', 'in_pager'...
1,610
Python
.py
37
38.459459
77
0.618682
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
697
ui.py
ranger_ranger/ranger/gui/ui.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from __future__ import (absolute_import, division, print_function) import os import sys import threading import curses from subprocess import CalledProcessError from ranger.ext.get_executables i...
20,665
Python
.py
502
29.171315
97
0.562768
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
698
bar.py
ranger_ranger/ranger/gui/bar.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from __future__ import (absolute_import, division, print_function) from ranger import PY3 from ranger.ext.widestring import WideString, utf_char_width class Bar(object): left = None rig...
4,225
Python
.py
111
27.936937
80
0.562852
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)
699
mouse_event.py
ranger_ranger/ranger/gui/mouse_event.py
# This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. from __future__ import (absolute_import, division, print_function) import curses class MouseEvent(object): PRESSED = [ 0, curses.BUTTON1_PRESSED, curses.BUTTON2_PRES...
2,155
Python
.py
50
34.64
79
0.637667
ranger/ranger
15,344
881
907
GPL-3.0
9/5/2024, 5:08:02 PM (Europe/Amsterdam)