id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
⌀
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
19,900
saltstack/salt
saltstack_salt/salt/utils/etcd_util.py
salt.utils.etcd_util.IncompatibleEtcdRequirements
from salt.exceptions import SaltException class IncompatibleEtcdRequirements(SaltException): """ A user is explicitly creating a client class, but requires a different version """
class IncompatibleEtcdRequirements(SaltException): ''' A user is explicitly creating a client class, but requires a different version ''' pass
1
1
0
0
0
0
0
3
1
0
0
0
0
0
0
12
4
0
1
1
0
3
1
1
0
0
4
0
0
19,901
saltstack/salt
saltstack_salt/salt/utils/event.py
salt.utils.event.AsyncEventPublisher
from salt.utils.versions import warn_until import tornado.iostream import os import salt.payload import salt.utils.zeromq import salt.config import salt.utils.asynchronous import salt.utils.files import salt.channel.client import salt.utils.platform import salt.defaults.exitcodes import salt.utils.dicttrim import hashl...
class AsyncEventPublisher: ''' An event publisher class intended to run in an ioloop (within a single process) TODO: remove references to "minion_event" whenever we need to use this for other things ''' def __init__(self, opts, io_loop=None): pass def handle_publish(self, package, _):...
4
2
32
4
25
4
5
0.21
0
6
2
0
3
5
3
3
106
15
76
19
71
16
61
18
56
9
0
4
15
19,902
saltstack/salt
saltstack_salt/salt/utils/event.py
salt.utils.event.EventPublisher
import salt.utils.process import salt.utils.dicttrim import salt.payload from salt.utils.versions import warn_until import tornado.ioloop import tornado.iostream import salt.utils.cache import salt.config import salt.utils.stringutils import salt.utils.asynchronous import salt.utils.files import salt.utils.zeromq impor...
class EventPublisher(salt.utils.process.SignalHandlingProcess): ''' The interface that takes master events and republishes them out to anyone who wants to listen ''' def __init__(self, opts, **kwargs): pass def run(self): ''' Bind the pub and pull sockets for events ...
6
3
19
1
16
2
3
0.19
1
8
2
0
5
5
5
15
105
11
81
14
74
15
58
14
51
5
3
3
13
19,903
saltstack/salt
saltstack_salt/salt/utils/event.py
salt.utils.event.EventReturn
import datetime import salt.utils.cache import salt.channel.client import salt.config import salt.payload import salt.utils.stringutils import salt.utils.zeromq import salt.utils.asynchronous import salt.defaults.exitcodes import salt.utils.process import fnmatch import os import salt.utils.files import logging import ...
class EventReturn(salt.utils.process.SignalHandlingProcess): ''' A dedicated process which listens to the master event bus and queues and forwards events to the specified returner. ''' def __init__(self, opts, **kwargs): ''' Initialize the EventReturn system Return an Event...
8
4
29
3
21
6
5
0.32
1
5
1
0
5
7
6
16
185
21
126
30
117
40
93
28
85
13
3
4
32
19,904
saltstack/salt
saltstack_salt/salt/utils/event.py
salt.utils.event.LocalClientEvent
class LocalClientEvent(MasterEvent): """ Warning! Use the get_event function or the code will not be RAET compatible This class is just used to differentiate who is handling the events, specially on logs, but it's the same as MasterEvent. """
class LocalClientEvent(MasterEvent): ''' Warning! Use the get_event function or the code will not be RAET compatible This class is just used to differentiate who is handling the events, specially on logs, but it's the same as MasterEvent. ''' pass
1
1
0
0
0
0
0
6
1
0
0
0
0
0
0
34
7
0
1
1
0
6
1
1
0
0
2
0
0
19,905
saltstack/salt
saltstack_salt/salt/utils/event.py
salt.utils.event.MasterEvent
class MasterEvent(SaltEvent): """ Warning! Use the get_event function or the code will not be RAET compatible Create a master event management object """ def __init__(self, sock_dir, opts=None, listen=True, io_loop=None, keep_loop=False, raise_errors=False): super().__init__('master', s...
class MasterEvent(SaltEvent): ''' Warning! Use the get_event function or the code will not be RAET compatible Create a master event management object ''' def __init__(self, sock_dir, opts=None, listen=True, io_loop=None, keep_loop=False, raise_errors=False): pass
2
1
18
0
18
0
1
0.26
1
1
0
1
1
0
1
34
25
1
19
10
9
5
3
2
1
1
1
0
1
19,906
saltstack/salt
saltstack_salt/salt/utils/event.py
salt.utils.event.MinionEvent
class MinionEvent(SaltEvent): """ Warning! Use the get_event function or the code will not be RAET compatible Create a master event management object """ def __init__(self, opts, listen=True, io_loop=None, raise_errors=False): super().__init__('minion', sock_dir=opts.get('sock_dir'), op...
class MinionEvent(SaltEvent): ''' Warning! Use the get_event function or the code will not be RAET compatible Create a master event management object ''' def __init__(self, opts, listen=True, io_loop=None, raise_errors=False): pass
2
1
9
0
9
0
1
0.5
1
1
0
0
1
0
1
34
16
1
10
2
8
5
3
2
1
1
1
0
1
19,907
saltstack/salt
saltstack_salt/salt/utils/event.py
salt.utils.event.NamespacedEvent
class NamespacedEvent: """ A wrapper for sending events within a specific base namespace """ def __init__(self, event, base, print_func=None): self.event = event self.base = base self.print_func = print_func def fire_event(self, data, tag): self.event.fire_event(dat...
class NamespacedEvent: ''' A wrapper for sending events within a specific base namespace ''' def __init__(self, event, base, print_func=None): pass def fire_event(self, data, tag): pass def destroy(self): pass def __enter__(self): pass def __exit__(se...
6
1
3
0
3
0
1
0.2
0
0
0
0
5
3
5
5
23
5
15
9
9
3
15
9
9
2
0
1
6
19,908
saltstack/salt
saltstack_salt/salt/utils/event.py
salt.utils.event.SaltEvent
import salt.config import asyncio import salt.utils.zeromq import salt.utils.stringutils import tornado.ioloop import errno import salt.utils.files import salt.utils.dicttrim import datetime import fnmatch import salt.utils.platform import logging import salt.payload import salt.defaults.exitcodes from salt.exceptions ...
class SaltEvent: ''' Warning! Use the get_event function or the code will not be RAET compatible The base class used to manage salt events ''' def __init__(self, node, sock_dir=None, opts=None, listen=True, io_loop=None, keep_loop=False, raise_errors=False): ''' :param IOLo...
40
25
21
1
14
5
4
0.39
0
16
3
2
27
12
33
33
727
74
478
113
421
187
357
86
323
17
0
5
134
19,909
saltstack/salt
saltstack_salt/salt/utils/event.py
salt.utils.event.StateFire
import salt.utils.cache import salt.utils.zeromq import salt.utils.platform import logging import salt.config import salt.utils.files import salt.defaults.exitcodes import salt.utils.process import salt.payload import salt.utils.dicttrim import salt.channel.client import salt.utils.stringutils import salt.utils.asynchr...
class StateFire: ''' Evaluate the data from a state run and fire events on the master and minion for each returned chunk that is not "green" This object is made to only run on a minion ''' def __init__(self, opts, auth=None): pass def fire_master(self, data, tag, preload=None): ...
4
3
22
2
16
5
3
0.38
0
3
1
0
3
2
3
3
76
9
50
14
46
19
30
10
26
5
0
2
10
19,910
saltstack/salt
saltstack_salt/salt/utils/filebuffer.py
salt.utils.filebuffer.BufferedReader
import salt.utils.stringutils import salt.utils.files class BufferedReader: """ This object allows iterating through the contents of a file keeping X configurable bytes in memory which can be used to, for example, do regex search/matching on more than a single line. So, **an imaginary, non accurat...
class BufferedReader: ''' This object allows iterating through the contents of a file keeping X configurable bytes in memory which can be used to, for example, do regex search/matching on more than a single line. So, **an imaginary, non accurate**, example could be: 1 - Initiate the Buffere...
8
2
8
1
5
2
2
1.03
0
2
1
0
6
5
6
6
88
19
34
16
26
35
32
15
25
3
0
1
10
19,911
saltstack/salt
saltstack_salt/salt/utils/filebuffer.py
salt.utils.filebuffer.InvalidFileMode
from salt.exceptions import SaltException class InvalidFileMode(SaltException): """ An invalid file mode was used to open the file passed to the buffer """
class InvalidFileMode(SaltException): ''' An invalid file mode was used to open the file passed to the buffer ''' pass
1
1
0
0
0
0
0
3
1
0
0
0
0
0
0
12
4
0
1
1
0
3
1
1
0
0
4
0
0
19,912
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.DeleteOption
import shutil import os class DeleteOption(TypeOption): """ Deletes matched file. Delete options are one or more of the following: a: all file types b: block device c: character device d: directory p: FIFO (named pipe) f: plain file l: symlink ...
class DeleteOption(TypeOption): ''' Deletes matched file. Delete options are one or more of the following: a: all file types b: block device c: character device d: directory p: FIFO (named pipe) f: plain file l: symlink s: socket ''' ...
3
1
8
0
8
0
4
0.75
1
2
0
0
2
0
2
6
30
2
16
4
13
12
15
3
12
5
2
2
7
19,913
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.ExecOption
from subprocess import PIPE, Popen import salt.utils.hashutils import salt.utils.stringutils import salt.utils.args import salt.defaults.exitcodes import salt.utils.path class ExecOption(Option): """ Execute the given command, {} replaced by filename. Quote the {} if commands might include whitespace. ...
class ExecOption(Option): ''' Execute the given command, {} replaced by filename. Quote the {} if commands might include whitespace. ''' def __init__(self, key, value): pass def execute(self, fullpath, fstat, test=False): pass
3
1
10
1
9
1
2
0.26
1
2
0
0
2
1
2
3
26
3
19
8
16
5
15
7
12
3
1
2
4
19,914
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.Finder
import salt.utils.hashutils import salt.utils.args import salt.utils.stringutils import os import salt.defaults.exitcodes import salt.utils.path class Finder: def __init__(self, options): self.actions = [] self.maxdepth = None self.mindepth = 0 self.test = False criteria = ...
class Finder: def __init__(self, options): pass def find(self, path): ''' Generate filenames in path that satisfy criteria specified in the constructor. This method is a generator and should be repeatedly called until there are no more results. ''' ...
5
1
24
1
22
2
8
0.09
0
5
1
0
4
5
4
4
100
5
87
24
82
8
75
24
70
13
0
4
31
19,915
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.GrepOption
from salt.utils.filebuffer import BufferedReader import re import stat import os class GrepOption(Option): """Match files when a pattern occurs within the file. The option name is 'grep', e.g. {'grep' : '(foo)|(bar}'}. """ def __init__(self, key, value): try: self.regex = re.compil...
class GrepOption(Option): '''Match files when a pattern occurs within the file. The option name is 'grep', e.g. {'grep' : '(foo)|(bar}'}. ''' def __init__(self, key, value): pass def requires(self): pass def match(self, dirname, filename, fstat): pass
4
1
5
0
5
0
2
0.18
1
2
1
0
3
1
3
4
23
3
17
8
13
3
17
7
13
4
1
3
7
19,916
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.GroupOption
import stat class GroupOption(Option): """ Match files by their group name(s) and/or uid(s), e.g. 'admin'. The names are a space and/or comma separated list of names and/or integers. A match occurs when the file's gid matches any group specified. The option name is 'group', e.g. {'group' : 'admin'}...
class GroupOption(Option): ''' Match files by their group name(s) and/or uid(s), e.g. 'admin'. The names are a space and/or comma separated list of names and/or integers. A match occurs when the file's gid matches any group specified. The option name is 'group', e.g. {'group' : 'admin'}. ''' ...
4
1
5
0
5
0
2
0.4
1
4
0
0
3
1
3
4
24
3
15
6
11
6
14
6
10
4
1
3
6
19,917
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.InameOption
import re class InameOption(Option): """ Match files with a case-insensitive glob filename pattern. Note: this is the 'basename' portion of a pathname. The option name is 'iname', e.g. {'iname' : '*.TXT'}. """ def __init__(self, key, value): self.regex = re.compile(value.replace('.', '...
class InameOption(Option): ''' Match files with a case-insensitive glob filename pattern. Note: this is the 'basename' portion of a pathname. The option name is 'iname', e.g. {'iname' : '*.TXT'}. ''' def __init__(self, key, value): pass def match(self, dirname, filename, fstat): ...
3
1
4
0
4
0
1
0.63
1
0
0
0
2
1
2
3
15
2
8
4
5
5
5
4
2
1
1
0
2
19,918
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.IregexOption
import re class IregexOption(Option): """ Match files with a case-insensitive regular expression. Note: this is the 'basename' portion of a pathname. The option name is 'iregex', e.g. {'iregex' : '.*\\.txt'}. """ def __init__(self, key, value): try: self.regex = re.compile(...
class IregexOption(Option): ''' Match files with a case-insensitive regular expression. Note: this is the 'basename' portion of a pathname. The option name is 'iregex', e.g. {'iregex' : '.*\.txt'}. ''' def __init__(self, key, value): pass def match(self, dirname, filename, fstat):...
3
1
4
0
4
0
2
0.63
1
1
0
0
2
1
2
3
15
2
8
4
5
5
8
4
5
2
1
1
3
19,919
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.MtimeOption
import time import stat class MtimeOption(Option): """ Match files modified since the specified time. The option name is 'mtime', e.g. {'mtime' : '3d'}. The value format is [<num>w] [<num>[d]] [<num>h] [<num>m] [<num>s] where num is an integer or float and the case-insensitive suffixes are: ...
class MtimeOption(Option): ''' Match files modified since the specified time. The option name is 'mtime', e.g. {'mtime' : '3d'}. The value format is [<num>w] [<num>[d]] [<num>h] [<num>m] [<num>s] where num is an integer or float and the case-insensitive suffixes are: w = week d = da...
4
1
4
0
4
0
1
1
1
1
0
0
3
2
3
4
27
3
12
7
8
12
11
7
7
2
1
1
4
19,920
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.NameOption
import re class NameOption(Option): """ Match files with a case-sensitive glob filename pattern. Note: this is the 'basename' portion of a pathname. The option name is 'name', e.g. {'name' : '*.txt'}. """ def __init__(self, key, value): self.regex = re.compile(value.replace('.', '\\.')...
class NameOption(Option): ''' Match files with a case-sensitive glob filename pattern. Note: this is the 'basename' portion of a pathname. The option name is 'name', e.g. {'name' : '*.txt'}. ''' def __init__(self, key, value): pass def match(self, dirname, filename, fstat): ...
3
1
3
0
3
0
1
0.71
1
0
0
0
2
1
2
3
14
2
7
4
4
5
5
4
2
1
1
0
2
19,921
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.Option
class Option: """ Abstract base class for all find options. """ def requires(self): return _REQUIRES_PATH
class Option: ''' Abstract base class for all find options. ''' def requires(self): pass
2
1
2
0
2
0
1
1
0
0
0
12
1
0
1
1
7
1
3
2
1
3
3
2
1
1
0
0
1
19,922
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.OwnerOption
import stat class OwnerOption(Option): """ Match files by their owner name(s) and/or uid(s), e.g. 'root'. The names are a space and/or comma separated list of names and/or integers. A match occurs when the file's uid matches any user specified. The option name is 'owner', e.g. {'owner' : 'root'}. ...
class OwnerOption(Option): ''' Match files by their owner name(s) and/or uid(s), e.g. 'root'. The names are a space and/or comma separated list of names and/or integers. A match occurs when the file's uid matches any user specified. The option name is 'owner', e.g. {'owner' : 'root'}. ''' ...
4
1
5
0
5
0
2
0.4
1
4
0
0
3
1
3
4
24
3
15
6
11
6
14
6
10
4
1
3
6
19,923
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.PrintOption
import salt.defaults.exitcodes import stat import os import salt.utils.path import salt.utils.args import salt.utils.stringutils import salt.utils.hashutils class PrintOption(Option): """ Return information about a matched file. Print options are specified as a comma and/or space separated list of one ...
class PrintOption(Option): ''' Return information about a matched file. Print options are specified as a comma and/or space separated list of one or more of the following: group = group name md5 = MD5 digest of file contents mode = file mode (as integer) mtime = l...
4
1
17
0
16
0
7
0.3
1
2
0
0
3
3
3
4
69
4
50
13
46
15
40
13
36
15
1
3
21
19,924
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.RegexOption
import re class RegexOption(Option): """ Match files with a case-sensitive regular expression. Note: this is the 'basename' portion of a pathname. The option name is 'regex', e.g. {'regex' : '.*\\.txt'}. """ def __init__(self, key, value): try: self.regex = re.compile(value...
class RegexOption(Option): ''' Match files with a case-sensitive regular expression. Note: this is the 'basename' portion of a pathname. The option name is 'regex', e.g. {'regex' : '.*\.txt'}. ''' def __init__(self, key, value): pass def match(self, dirname, filename, fstat): ...
3
1
4
0
4
0
2
0.63
1
1
0
0
2
1
2
3
15
2
8
4
5
5
8
4
5
2
1
1
3
19,925
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.SizeOption
import stat class SizeOption(Option): """ Match files by their size. Prefix the size with '-' to find files the specified size and smaller. Prefix the size with '+' to find files the specified size and larger. Without the +/- prefix, match the exact file size. The size can be suffixed with (cas...
class SizeOption(Option): ''' Match files by their size. Prefix the size with '-' to find files the specified size and smaller. Prefix the size with '+' to find files the specified size and larger. Without the +/- prefix, match the exact file size. The size can be suffixed with (case-insensitiv...
4
1
2
0
2
0
1
1.86
1
0
0
0
3
2
3
4
23
3
7
5
3
13
7
5
3
1
1
0
3
19,926
saltstack/salt
saltstack_salt/salt/utils/find.py
salt.utils.find.TypeOption
import stat class TypeOption(Option): """ Match files by their file type(s). The file type(s) are specified as an optionally comma and/or space separated list of letters. b = block device c = character device d = directory f = regular (plain) file l = symbolic li...
class TypeOption(Option): ''' Match files by their file type(s). The file type(s) are specified as an optionally comma and/or space separated list of letters. b = block device c = character device d = directory f = regular (plain) file l = symbolic link p...
4
1
4
0
4
0
2
1.08
1
3
0
1
3
1
3
4
30
3
13
6
9
14
13
6
9
3
1
2
5
19,927
saltstack/salt
saltstack_salt/salt/utils/gitfs.py
salt.utils.gitfs.GitBase
import salt.fileserver from datetime import datetime from salt.utils.event import tagify import time from salt.exceptions import FileserverConfigError, GitLockError, get_error_message import shutil import salt.utils.versions import salt.utils.user import re import salt.utils.url import salt.utils.stringutils import os ...
class GitBase: ''' Base class for gitfs/git_pillar ''' def __init__(self, opts, remotes=None, per_remote_overrides=(), per_remote_only=PER_REMOTE_ONLY, global_only=GLOBAL_ONLY, git_providers=None, cache_root=None, init_remotes=True): ''' IMPORTANT: If specifying a cache_root, under...
25
18
34
2
25
7
6
0.3
0
9
1
3
16
10
16
16
618
54
437
104
402
130
280
79
261
20
0
7
111
19,928
saltstack/salt
saltstack_salt/salt/utils/gitfs.py
salt.utils.gitfs.GitFS
import salt.fileserver import tornado.ioloop import weakref import time import salt.utils.versions import salt.utils.user import salt.utils.url import salt.utils.stringutils import os import salt.utils.process import salt.utils.platform import salt.utils.path import salt.utils.itertools import salt.utils.hashutils impo...
class GitFS(GitBase): ''' Functionality specific to the git fileserver backend ''' def __new__(cls, opts, remotes=None, per_remote_overrides=(), per_remote_only=PER_REMOTE_ONLY, git_providers=None, cache_root=None, init_remotes=True): ''' If we are not initializing remotes (such as in ...
13
12
29
1
22
7
5
0.28
1
6
0
0
11
0
11
27
360
28
261
77
230
74
193
54
180
17
1
4
61
19,929
saltstack/salt
saltstack_salt/salt/utils/gitfs.py
salt.utils.gitfs.GitPillar
import salt.fileserver from salt.utils.odict import OrderedDict from salt.exceptions import FileserverConfigError, GitLockError, get_error_message import shutil import salt.utils.versions import salt.utils.user import salt.utils.url import salt.utils.stringutils import os import salt.utils.process import salt.utils.pla...
class GitPillar(GitBase): ''' Functionality specific to the git external pillar ''' def checkout(self, fetch_on_fail=True): ''' Checkout the targeted branches/tags from the git_pillar remotes fetch_on_fail If checkout fails perform a fetch then try to checkout again. ...
3
3
78
2
68
10
12
0.17
1
5
1
0
2
2
2
18
164
6
137
18
134
23
78
17
75
14
1
8
23
19,930
saltstack/salt
saltstack_salt/salt/utils/gitfs.py
salt.utils.gitfs.GitProvider
import salt.fileserver from salt.utils.platform import get_machine_identifier as _get_machine_identifier import time from salt.exceptions import FileserverConfigError, GitLockError, get_error_message import subprocess from salt.config import DEFAULT_MASTER_OPTS as _DEFAULT_MASTER_OPTS from salt.config import DEFAULT_HA...
class GitProvider: ''' Base class for gitfs/git_pillar provider classes. Should never be used directly. self.provider should be set in the sub-class' __init__ function before invoking the parent class' __init__. ''' def __init__(self, opts, remote, per_remote_defaults, per_remote_only,...
47
29
28
2
22
4
4
0.21
0
23
3
5
36
21
37
37
1,148
101
865
158
809
185
518
135
474
38
0
7
174
19,931
saltstack/salt
saltstack_salt/salt/utils/gitfs.py
salt.utils.gitfs.GitPython
import salt.fileserver from salt.exceptions import FileserverConfigError, GitLockError, get_error_message import stat import salt.utils.versions import salt.utils.user import salt.utils.url import salt.utils.stringutils import os import salt.utils.process import salt.utils.platform import salt.utils.path import io impo...
class GitPython(GitProvider): ''' Interface to GitPython ''' def __init__(self, opts, remote, per_remote_defaults, per_remote_only, override_params, cache_root, role='gitfs'): pass def checkout(self, fetch_on_fail=True): ''' Checkout the configured branch/tag. We catch an ...
19
12
19
1
15
4
3
0.28
1
8
1
0
12
3
12
49
340
29
246
61
218
68
171
50
152
11
1
4
58
19,932
saltstack/salt
saltstack_salt/salt/utils/gitfs.py
salt.utils.gitfs.Pygit2
import salt.fileserver from salt.exceptions import FileserverConfigError, GitLockError, get_error_message import stat import salt.utils.versions import salt.utils.user import salt.utils.url import salt.utils.stringutils import os import salt.utils.process import salt.utils.platform import salt.utils.path import salt.ut...
class Pygit2(GitProvider): ''' Interface to Pygit2 ''' def __init__(self, opts, remote, per_remote_defaults, per_remote_only, override_params, cache_root, role='gitfs'): pass def peel(self, obj): ''' Compatibility function for pygit2.Reference objects. Older versions of ...
29
21
30
1
23
6
4
0.29
1
12
2
0
16
8
16
53
752
57
540
109
502
158
344
94
315
22
1
6
119
19,933
saltstack/salt
saltstack_salt/salt/utils/gitfs.py
salt.utils.gitfs.WinRepo
class WinRepo(GitBase): """ Functionality specific to the winrepo runner fetch_on_fail If checkout fails perform a fetch then try to checkout again. """ role = 'winrepo' winrepo_dirs = {} def checkout(self, fetch_on_fail=True): """ Checkout the targeted branches/t...
class WinRepo(GitBase): ''' Functionality specific to the winrepo runner fetch_on_fail If checkout fails perform a fetch then try to checkout again. ''' def checkout(self, fetch_on_fail=True): ''' Checkout the targeted branches/tags from the winrepo remotes ''' ...
2
2
9
0
6
3
3
1.11
1
0
0
0
1
0
1
17
22
3
9
6
7
10
9
6
7
3
1
2
3
19,934
saltstack/salt
saltstack_salt/salt/utils/gzip_util.py
salt.utils.gzip_util.GzipFile
import gzip class GzipFile(gzip.GzipFile): def __init__(self, filename=None, mode=None, compresslevel=9, fileobj=None): gzip.GzipFile.__init__(self, filename, mode, compresslevel, fileobj) def __enter__(self): """Context management protocol. Returns self.""" return self def __ex...
class GzipFile(gzip.GzipFile): def __init__(self, filename=None, mode=None, compresslevel=9, fileobj=None): pass def __enter__(self): '''Context management protocol. Returns self.''' pass def __exit__(self, *args): '''Context management protocol. Calls close()''' ...
4
2
3
0
2
1
1
0.43
1
0
0
0
3
0
3
47
12
2
7
4
3
3
7
4
3
1
7
0
3
19,935
saltstack/salt
saltstack_salt/salt/utils/hashutils.py
salt.utils.hashutils.DigestCollector
import os import hashlib import salt.utils.stringutils import salt.utils.files import salt.utils.platform class DigestCollector: """ Class to collect digest of the file tree. """ def __init__(self, form='sha256', buff=65536): """ Constructor of the class. :param form: "...
class DigestCollector: ''' Class to collect digest of the file tree. ''' def __init__(self, form='sha256', buff=65536): ''' Constructor of the class. :param form: ''' pass def add(self, path): ''' Update digest with the file content by path....
5
5
10
1
4
5
2
1.17
0
2
0
0
4
2
4
4
47
8
18
9
13
21
18
8
13
2
0
2
7
19,936
saltstack/salt
saltstack_salt/salt/utils/immutabletypes.py
salt.utils.immutabletypes.ImmutableDict
from collections.abc import Mapping, Sequence, Set import copy class ImmutableDict(Mapping): """ An immutable dictionary implementation """ def __init__(self, obj): self.__obj = obj def __len__(self): return len(self.__obj) def __iter__(self): return iter(self.__obj) ...
class ImmutableDict(Mapping): ''' An immutable dictionary implementation ''' def __init__(self, obj): pass def __len__(self): pass def __iter__(self): pass def __getitem__(self, key): pass def __repr__(self): pass def __deepcopy__(self, ...
8
2
2
0
2
0
1
0.4
1
0
0
0
7
1
7
41
28
7
15
9
7
6
15
9
7
1
6
0
7
19,937
saltstack/salt
saltstack_salt/salt/utils/immutabletypes.py
salt.utils.immutabletypes.ImmutableList
from collections.abc import Mapping, Sequence, Set import copy class ImmutableList(Sequence): """ An immutable list implementation """ def __init__(self, obj): self.__obj = obj def __len__(self): return len(self.__obj) def __iter__(self): return iter(self.__obj) ...
class ImmutableList(Sequence): ''' An immutable list implementation ''' def __init__(self, obj): pass def __len__(self): pass def __iter__(self): pass def __add__(self, other): pass def __radd__(self, other): pass def __getitem__(self, k...
10
2
2
0
2
0
1
0.32
1
0
0
0
9
1
9
44
34
9
19
11
9
6
19
11
9
1
6
0
9
19,938
saltstack/salt
saltstack_salt/salt/utils/immutabletypes.py
salt.utils.immutabletypes.ImmutableSet
from collections.abc import Mapping, Sequence, Set import copy class ImmutableSet(Set): """ An immutable set implementation """ def __init__(self, obj): self.__obj = obj def __len__(self): return len(self.__obj) def __iter__(self): return iter(self.__obj) def __c...
class ImmutableSet(Set): ''' An immutable set implementation ''' def __init__(self, obj): pass def __len__(self): pass def __iter__(self): pass def __contains__(self, key): pass def __repr__(self): pass def __deepcopy__(self, memo): ...
8
2
2
0
2
0
1
0.4
1
0
0
0
7
1
7
47
28
7
15
9
7
6
15
9
7
1
6
0
7
19,939
saltstack/salt
saltstack_salt/salt/utils/jinja.py
salt.utils.jinja.PrintableDict
from salt.utils.odict import OrderedDict class PrintableDict(OrderedDict): """ Ensures that dict str() and repr() are YAML friendly. .. code-block:: python mapping = OrderedDict([('a', 'b'), ('c', None)]) print mapping # OrderedDict([('a', 'b'), ('c', None)]) decorated = ...
class PrintableDict(OrderedDict): ''' Ensures that dict str() and repr() are YAML friendly. .. code-block:: python mapping = OrderedDict([('a', 'b'), ('c', None)]) print mapping # OrderedDict([('a', 'b'), ('c', None)]) decorated = PrintableDict(mapping) print decorat...
3
1
9
0
7
3
3
1.07
1
1
0
0
2
0
2
52
33
5
14
7
11
15
13
7
10
3
3
2
5
19,940
saltstack/salt
saltstack_salt/salt/utils/jinja.py
salt.utils.jinja.SaltCacheLoader
import salt.utils.json import salt.utils.data import salt.utils.yaml import salt.utils.stringutils from jinja2 import BaseLoader, TemplateNotFound, nodes import salt.utils.files import salt.utils.url import os.path class SaltCacheLoader(BaseLoader): """ A special jinja Template Loader for salt. Requested t...
class SaltCacheLoader(BaseLoader): ''' A special jinja Template Loader for salt. Requested templates are always fetched from the server to guarantee that the file is up to date. Templates are cached like regular salt states and only loaded once per loader instance. ''' def __init__(sel...
10
5
18
1
13
3
3
0.32
1
2
0
1
8
8
8
11
171
18
116
41
98
37
87
33
76
12
1
4
29
19,941
saltstack/salt
saltstack_salt/salt/utils/jinja.py
salt.utils.jinja.SerializerExtension
import salt.utils.url import time import salt.utils.yaml from functools import wraps from xml.dom import minidom import salt.utils.data import itertools from jinja2.exceptions import TemplateRuntimeError import pprint import salt.utils.files from xml.etree.ElementTree import Element, SubElement, tostring import salt.ut...
class SerializerExtension(Extension): ''' Yaml and Json manipulation. **Format filters** Allows jsonifying or yamlifying any data structure. For example, this dataset: .. code-block:: python data = { 'foo': True, 'bar': 42, 'baz': [1, 2, 3], '...
24
4
15
1
13
1
2
0.61
1
21
1
0
18
0
18
26
516
104
256
53
232
156
132
51
109
8
1
3
49
19,942
saltstack/salt
saltstack_salt/salt/utils/lazy.py
salt.utils.lazy.LazyDict
from collections.abc import MutableMapping class LazyDict(MutableMapping): """ A base class of dict which will lazily load keys once they are needed TODO: negative caching? If you ask for 'foo' and it doesn't exist it will look EVERY time unless someone calls load_all() As of now this is left to t...
class LazyDict(MutableMapping): ''' A base class of dict which will lazily load keys once they are needed TODO: negative caching? If you ask for 'foo' and it doesn't exist it will look EVERY time unless someone calls load_all() As of now this is left to the class which inherits from this base ...
14
7
5
0
3
2
1
0.7
1
4
0
2
13
2
13
54
92
17
44
16
30
31
40
16
26
4
7
2
18
19,943
saltstack/salt
saltstack_salt/salt/utils/listdiffer.py
salt.utils.listdiffer.ListDictDiffer
from salt.utils.dictdiffer import recursive_diff class ListDictDiffer: """ Calculates the differences between two lists of dictionaries. It matches the items based on a given key and uses the recursive_diff to diff the two values. """ def __init__(self, current_list, next_list, key): ...
class ListDictDiffer: ''' Calculates the differences between two lists of dictionaries. It matches the items based on a given key and uses the recursive_diff to diff the two values. ''' def __init__(self, current_list, next_list, key): pass def _get_recursive_difference(self, type...
27
12
16
1
13
2
4
0.18
0
3
0
0
14
6
14
14
276
24
214
50
187
38
118
40
101
11
0
4
59
19,944
saltstack/salt
saltstack_salt/salt/utils/master.py
salt.utils.master.CacheTimer
import salt.cache import salt.utils.atomicfile import salt.utils.minions import salt.utils.stringutils from salt.utils.zeromq import zmq import salt.utils.files import salt.utils.platform import salt.pillar import salt.utils.verify import salt.payload import salt.config import salt.client from threading import Event, T...
class CacheTimer(Thread): ''' A basic timer class the fires timer-events every second. This is used for cleanup by the ConnectedCache() ''' def __init__(self, opts, event): pass def run(self): ''' main loop that fires the event every second ''' pass
3
2
12
1
9
3
2
0.47
1
0
0
0
2
4
2
27
31
4
19
10
16
9
19
10
16
3
1
2
4
19,945
saltstack/salt
saltstack_salt/salt/utils/master.py
salt.utils.master.CacheWorker
from salt.utils.cache import CacheCli as cache_cli import salt.utils.platform import salt.client import salt.pillar import salt.utils.minions from salt.utils.process import Process import salt.utils.atomicfile import salt.utils.stringutils import salt.payload import salt.utils.files import salt.utils.verify import salt...
class CacheWorker(Process): ''' Worker for ConnectedCache which runs in its own process to prevent blocking of ConnectedCache main-loop when refreshing minion-list ''' def __init__(self, opts, **kwargs): ''' Sets up the zmq-connection to the ConCache ''' pass ...
3
3
8
0
5
3
1
1.1
1
3
1
0
2
1
2
8
23
2
10
6
7
11
10
6
7
1
2
0
2
19,946
saltstack/salt
saltstack_salt/salt/utils/master.py
salt.utils.master.ConnectedCache
import salt.utils.atomicfile import salt.pillar import os import salt.utils.minions import salt.cache import salt.utils.files import salt.utils.verify from salt.utils.process import Process from threading import Event, Thread import salt.utils.stringutils from salt.utils.zeromq import zmq import signal import salt.util...
class ConnectedCache(Process): ''' Provides access to all minions ids that the master has successfully authenticated. The cache is cleaned up regularly by comparing it to the IPs that have open connections to the master publisher port. ''' def __init__(self, opts, **kwargs): ''' ...
7
7
30
5
18
8
5
0.48
1
10
2
0
6
8
6
12
193
33
109
28
102
52
106
27
99
16
2
5
28
19,947
saltstack/salt
saltstack_salt/salt/utils/master.py
salt.utils.master.MasterPillarUtil
import salt.utils.platform import salt.utils.stringutils import salt.payload import salt.utils.atomicfile import salt.config import salt.utils.minions import salt.cache import salt.pillar import salt.utils.verify import salt.utils.files import salt.client from salt.exceptions import SaltException class MasterPillarUti...
class MasterPillarUtil: ''' Helper utility for easy access to targeted minion grain and pillar data, either from cached data on the master or retrieved on demand, or (by default) both. The minion pillar data returned in get_minion_pillar() is compiled directly from salt.pillar.Pillar on the mas...
13
5
32
1
27
5
5
0.23
0
7
3
0
12
9
12
12
422
22
326
79
297
74
190
62
177
18
0
5
55
19,948
saltstack/salt
saltstack_salt/salt/utils/minions.py
salt.utils.minions.CkMinions
import re from salt.defaults import DEFAULT_TARGET_DELIM import salt.utils.network from salt.exceptions import CommandExecutionError, SaltCacheError import salt.payload import salt.roster import salt.cache from salt._compat import ipaddress import salt.utils.stringutils import salt.utils.versions import fnmatch import ...
class CkMinions: ''' Used to check what minions should respond from a target Note: This is a best-effort set of the minions that would match a target. Depending on master configuration (grains caching, etc.) and topology (syndics) the list may be a subset-- but we err on the side of too-many minion...
33
29
29
1
21
7
7
0.31
0
16
3
0
30
5
30
30
929
74
664
170
602
209
510
136
478
28
0
6
212
19,949
saltstack/salt
saltstack_salt/salt/utils/msgpack.py
salt.utils.msgpack.Unpacker
class Unpacker(msgpack.Unpacker): """ Wraps the msgpack.Unpacker and removes non-relevant arguments """ def __init__(self, *args, **kwargs): msgpack.Unpacker.__init__(self, *args, **_sanitize_msgpack_unpack_kwargs(kwargs))
class Unpacker(msgpack.Unpacker): ''' Wraps the msgpack.Unpacker and removes non-relevant arguments ''' def __init__(self, *args, **kwargs): pass
2
1
4
0
4
0
1
0.6
1
0
0
1
1
0
1
1
9
1
5
2
3
3
3
2
1
1
1
0
1
19,950
saltstack/salt
saltstack_salt/salt/utils/nb_popen.py
salt.utils.nb_popen.NonBlockingPopen
import tempfile import errno import time import sys import subprocess import select import os import logging class NonBlockingPopen(subprocess.Popen): _stdout_logger_name_ = 'salt.utils.nb_popen.STDOUT.PID-{pid}' _stderr_logger_name_ = 'salt.utils.nb_popen.STDERR.PID-{pid}' def __init__(self, *args, **kwa...
class NonBlockingPopen(subprocess.Popen): def __init__(self, *args, **kwargs): pass def recv(self, maxsize=None): pass def recv_err(self, maxsize=None): pass def send_recv(self, input='', maxsize=None): pass def get_conn_maxsize(self, which, maxsize): pa...
13
0
15
2
12
1
4
0.1
1
5
0
0
12
6
12
51
200
41
147
39
133
14
131
36
117
9
1
3
45
19,951
saltstack/salt
saltstack_salt/salt/utils/network.py
salt.utils.network.Interfaces
class Interfaces: __slots__ = ('interfaces',) def __init__(self, interfaces=None): if interfaces is None: interfaces = {} self.interfaces = interfaces def __call__(self, *args, **kwargs): if not self.interfaces: self.interfaces = interfaces() return ...
class Interfaces: def __init__(self, interfaces=None): pass def __call__(self, *args, **kwargs): pass def clear(self): pass
4
0
3
0
3
0
2
0
0
0
0
0
3
1
3
3
15
3
12
6
8
0
12
6
8
2
0
1
5
19,952
saltstack/salt
saltstack_salt/salt/utils/nxos.py
salt.utils.nxos.NxapiClient
import json from collections.abc import Iterable import collections import salt.utils.http from salt.utils.args import clean_kwargs from salt.exceptions import CommandExecutionError, NxosClientError, NxosError, NxosRequestNotSupported import os class NxapiClient: """ Class representing an NX-API client that co...
class NxapiClient: ''' Class representing an NX-API client that connects over http(s) or unix domain socket (UDS). ''' def __init__(self, **nxos_kwargs): ''' Initialize NxapiClient() connection object. By default this connects to the local unix domain socket (UDS). If htt...
7
7
32
2
24
7
5
0.34
0
13
5
0
6
2
6
6
213
18
146
26
139
49
105
26
98
15
0
2
29
19,953
saltstack/salt
saltstack_salt/salt/utils/nxos.py
salt.utils.nxos.UHTTPConnection
import http.client import socket class UHTTPConnection(http.client.HTTPConnection): """ Subclass of Python library HTTPConnection that uses a unix-domain socket. """ def __init__(self, path): http.client.HTTPConnection.__init__(self, 'localhost') self.path = path def connect(self)...
class UHTTPConnection(http.client.HTTPConnection): ''' Subclass of Python library HTTPConnection that uses a unix-domain socket. ''' def __init__(self, path): pass def connect(self): pass
3
1
4
0
4
0
1
0.38
1
1
0
0
2
2
2
26
13
2
8
6
5
3
8
6
5
1
1
0
2
19,954
saltstack/salt
saltstack_salt/salt/utils/odict.py
salt.utils.odict.DefaultOrderedDict
import copy from collections.abc import Callable from collections import OrderedDict class DefaultOrderedDict(OrderedDict): """ Dictionary that remembers insertion order """ def __init__(self, default_factory=None, *a, **kw): if default_factory is not None and (not isinstance(default_factory, ...
class DefaultOrderedDict(OrderedDict): ''' Dictionary that remembers insertion order ''' def __init__(self, default_factory=None, *a, **kw): pass def __getitem__(self, key): pass def __missing__(self, key): pass def __reduce__(self): pass def copy(se...
9
1
4
0
4
0
2
0.12
1
6
0
0
8
1
8
58
45
9
33
13
23
4
30
12
20
2
3
1
12
19,955
saltstack/salt
saltstack_salt/salt/utils/openstack/neutron.py
salt.utils.openstack.neutron.SaltNeutron
from salt import exceptions import salt.utils.versions class SaltNeutron(NeutronShell): """ Class for all neutronclient functions """ def __init__(self, username, tenant_name, auth_url, password=None, region_name=None, service_type='network', os_auth_plugin=None, use_keystoneauth=False, **kwargs): ...
null
97
72
9
0
7
2
2
0.35
1
1
1
0
94
4
95
95
954
106
630
275
443
218
450
184
354
12
1
2
182
19,956
saltstack/salt
saltstack_salt/salt/utils/openstack/nova.py
salt.utils.openstack.nova.KwargsStruct
class KwargsStruct: def __init__(self, **entries): self.__dict__.update(entries)
class KwargsStruct: def __init__(self, **entries): pass
2
0
2
0
2
0
1
0
0
0
0
0
1
0
1
1
3
0
3
2
1
0
3
2
1
1
0
0
1
19,957
saltstack/salt
saltstack_salt/salt/utils/openstack/nova.py
salt.utils.openstack.nova.NovaServer
import salt.utils.cloud import salt.utils.files class NovaServer: def __init__(self, name, server, password=None): """ Make output look like libcloud output for consistency """ self.name = name self.id = server['id'] self.image = server.get('image', {}).get('id', 'B...
class NovaServer: def __init__(self, name, server, password=None): ''' Make output look like libcloud output for consistency ''' pass def __str__(self): pass
3
1
15
1
13
2
4
0.12
0
1
0
0
2
12
2
2
32
3
26
15
23
3
24
15
21
6
0
3
7
19,958
saltstack/salt
saltstack_salt/salt/utils/openstack/nova.py
salt.utils.openstack.nova.SaltNova
import inspect from salt.exceptions import SaltCloudSystemExit import salt.utils.cloud import time import salt.utils.files class SaltNova: """ Class for all novaclient functions """ extensions = [] def __init__(self, username, project_id, auth_url, region_name=None, password=None, os_auth_plugin=N...
null
57
52
17
1
14
3
3
0.23
0
9
3
0
56
10
56
56
1,043
101
772
265
672
181
514
217
457
13
0
5
168
19,959
saltstack/salt
saltstack_salt/salt/utils/openstack/pyrax/authenticate.py
salt.utils.openstack.pyrax.authenticate.Authenticate
import pyrax class Authenticate: def __init__(self, username, password, region, **kwargs): cloud_kwargs = {'password': password, 'region': region} pyrax.settings.set('identity_type', kwargs.get('identity_type', 'rackspace')) pyrax.settings.set('auth_endpoint', kwargs.get('auth_endpoint', '...
class Authenticate: def __init__(self, username, password, region, **kwargs):
2
0
10
1
9
0
1
0
0
0
0
0
1
1
1
1
11
1
10
4
8
0
7
4
5
1
0
0
1
19,960
saltstack/salt
saltstack_salt/salt/utils/openstack/pyrax/queues.py
salt.utils.openstack.pyrax.queues.RackspaceQueues
from salt.utils.openstack.pyrax import authenticate import pyrax.exceptions import pyrax class RackspaceQueues: def __init__(self, username, password, region, **kwargs): self.auth = authenticate.Authenticate(username, password, region, **kwargs) self.conn = self.auth.conn.queues def create(se...
null
6
4
13
1
10
3
3
0.3
0
1
1
0
5
2
5
5
72
7
50
15
44
15
44
11
38
5
0
3
16
19,961
saltstack/salt
saltstack_salt/salt/utils/openstack/swift.py
salt.utils.openstack.swift.SaltSwift
import sys import salt.utils.files from os.path import dirname, isdir class SaltSwift: """ Class for all swiftclient functions """ def __init__(self, user, tenant_name, auth_url, password=None, auth_version=2, **kwargs): """ Set up openstack credentials """ if not HAS_S...
class SaltSwift: ''' Class for all swiftclient functions ''' def __init__(self, user, tenant_name, auth_url, password=None, auth_version=2, **kwargs): ''' Set up openstack credentials ''' pass def get_account(self): ''' List Swift containers ...
13
13
13
1
9
4
3
0.46
0
2
0
0
12
2
12
12
171
19
109
32
94
50
103
22
90
7
0
3
32
19,962
saltstack/salt
saltstack_salt/salt/utils/oset.py
salt.utils.oset.OrderedSet
from collections.abc import MutableSet class OrderedSet(MutableSet): """ An OrderedSet is a custom MutableSet that remembers its order, so that every entry has an index that can be looked up. """ def __init__(self, iterable=None): self.items = [] self.map = {} if iterable i...
class OrderedSet(MutableSet): ''' An OrderedSet is a custom MutableSet that remembers its order, so that every entry has an index that can be looked up. ''' def __init__(self, iterable=None): pass def __len__(self): pass def __getitem__(self, index): ''' G...
18
8
8
0
5
3
2
0.56
1
7
0
0
17
2
17
66
160
25
88
28
70
49
82
28
64
5
7
3
35
19,963
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.ArgsStdinMixIn
class ArgsStdinMixIn(metaclass=MixInMeta): _mixin_prio_ = 10 def _mixin_setup(self): self.add_option('--args-stdin', default=False, dest='args_stdin', action='store_true', help='Read additional options and/or arguments from stdin. Each entry is newline separated.')
class ArgsStdinMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass
2
0
11
0
11
0
1
0
1
0
0
3
1
0
1
15
14
1
13
3
11
0
4
3
2
1
3
0
1
19,964
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.CacheDirMixIn
class CacheDirMixIn(metaclass=MixInMeta): _mixin_prio = 40 def _mixin_setup(self): self.add_option('--cachedir', default='/var/cache/salt/', dest='cachedir', help='Cache Directory')
class CacheDirMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass
2
0
7
0
7
0
1
0
1
0
0
1
1
0
1
15
10
1
9
3
7
0
4
3
2
1
3
0
1
19,965
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.CloudCredentialsMixIn
import optparse class CloudCredentialsMixIn(metaclass=MixInMeta): _mixin_prio_ = 30 def _mixin_setup(self): group = self.cloud_credentials_group = optparse.OptionGroup(self, 'Cloud Credentials') group.add_option('--set-password', default=None, nargs=2, metavar='<USERNAME> <PROVIDER>', help='Co...
class CloudCredentialsMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass def process_set_password(self):
3
0
13
1
12
1
2
0.04
1
2
0
1
2
1
2
16
30
4
25
5
22
1
9
5
6
2
3
1
3
19,966
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.CloudProvidersListsMixIn
import optparse class CloudProvidersListsMixIn(metaclass=MixInMeta): _mixin_prio_ = 30 def _mixin_setup(self): group = self.providers_listings_group = optparse.OptionGroup(self, 'Cloud Providers Listings') group.add_option('--list-locations', default=None, help='Display a list of locations ava...
class CloudProvidersListsMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass def _mixin_after_parsed(self): pass
3
0
26
0
26
1
2
0.02
1
1
0
1
2
1
2
16
56
2
53
6
50
1
12
6
9
2
3
1
3
19,967
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.CloudQueriesMixIn
from functools import partial import optparse class CloudQueriesMixIn(metaclass=MixInMeta): _mixin_prio_ = 20 selected_query_option = None def _mixin_setup(self): group = self.cloud_queries_group = optparse.OptionGroup(self, 'Query Options') group.add_option('-Q', '--query', default=False,...
class CloudQueriesMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass def _create_process_functions(self): pass def process(opt): pass def _mixin_after_parsed(self): pass
5
0
31
1
30
0
4
0.01
1
1
0
1
3
1
3
17
108
6
101
13
96
1
36
13
31
8
3
3
14
19,968
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.ConfigDirMixIn
import salt.syspaths as syspaths import os import sys class ConfigDirMixIn(metaclass=MixInMeta): _mixin_prio_ = -10 _config_filename_ = None _default_config_dir_ = syspaths.CONFIG_DIR _default_config_dir_env_var_ = 'SALT_CONFIG_DIR' def _mixin_setup(self): config_dir = os.environ.get(self....
class ConfigDirMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass def process_config_dir(self): pass def get_config_file_path(self, configfile=None): pass
4
0
12
1
10
1
3
0.06
1
1
0
12
3
1
3
17
43
5
36
11
32
2
27
10
23
5
3
2
9
19,969
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.CustomOption
import optparse class CustomOption(optparse.Option): def take_action(self, action, dest, *args, **kwargs): self.explicit = True return optparse.Option.take_action(self, action, dest, *args, **kwargs)
class CustomOption(optparse.Option): def take_action(self, action, dest, *args, **kwargs): pass
2
0
6
0
5
2
1
0.33
1
0
0
0
1
1
1
19
7
0
6
5
2
2
4
3
2
1
1
0
1
19,970
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.DaemonMixIn
import salt.defaults.exitcodes import salt.config as config import salt._logging import signal import salt.version as version import os import salt.utils.yaml import salt.utils.xdg import logging import salt.utils.win_functions import salt.utils.user import salt.utils.stringutils import salt.utils.process import salt.u...
class DaemonMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass def _mixin_before_exit(self): pass def set_pidfile(self): pass def check_pidfile(self): ''' Report whether a pidfile exists ''' pass def get_pidfile(self): ''' ...
15
4
9
0
7
2
2
0.24
1
1
0
4
14
0
14
28
141
20
98
26
79
24
69
25
50
8
3
5
28
19,971
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.EAuthMixIn
import optparse class EAuthMixIn(metaclass=MixInMeta): _mixin_prio_ = 30 def _mixin_setup(self): group = self.eauth_group = optparse.OptionGroup(self, 'External Authentication') group.add_option('-a', '--auth', '--eauth', '--external-auth', default='', dest='eauth', help='Specify an external a...
class EAuthMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass
2
0
40
0
39
1
1
0.02
1
1
0
3
1
1
1
15
43
1
41
4
39
1
9
4
7
1
3
0
1
19,972
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.ExecutionOptionsMixIn
import optparse class ExecutionOptionsMixIn(metaclass=MixInMeta): _mixin_prio_ = 10 def _mixin_setup(self): group = self.execution_group = optparse.OptionGroup(self, 'Execution Options') group.add_option('-L', '--location', default=None, help='Specify which region to connect to.') grou...
class ExecutionOptionsMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass def process_function(self): pass
3
0
65
0
65
1
2
0.01
1
1
0
1
2
3
2
16
134
2
131
6
128
1
25
6
22
3
3
2
4
19,973
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.ExecutorsMixIn
class ExecutorsMixIn(metaclass=MixInMeta): _mixin_prio = 10 def _mixin_setup(self): self.add_option('--module-executors', dest='module_executors', default=None, metavar='EXECUTOR_LIST', help='Set an alternative list of executors to override the one set in minion config.') self.add_option('--exe...
class ExecutorsMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass
2
0
21
0
21
0
1
0
1
0
0
2
1
0
1
15
24
1
23
3
21
0
5
3
3
1
3
0
1
19,974
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.ExtendedTargetOptionsMixIn
class ExtendedTargetOptionsMixIn(TargetOptionsMixIn): def _mixin_setup(self): TargetOptionsMixIn._mixin_setup(self) group = self.target_options_group group.add_option('-C', '--compound', default=False, action='store_true', help="The compound target option allows for multiple target types to...
class ExtendedTargetOptionsMixIn(TargetOptionsMixIn): def _mixin_setup(self): pass def process_pillar_target(self): pass
3
0
27
1
27
0
2
0
1
0
0
1
2
1
2
19
56
2
54
5
51
0
12
5
9
2
4
1
3
19,975
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.HardCrashMixin
import os class HardCrashMixin(metaclass=MixInMeta): _mixin_prio_ = 40 _config_filename_ = None def _mixin_setup(self): hard_crash = os.environ.get('SALT_HARD_CRASH', False) self.add_option('--hard-crash', action='store_true', default=hard_crash, help='Raise any original exception rather t...
class HardCrashMixin(metaclass=MixInMeta): def _mixin_setup(self): pass
2
0
11
0
11
0
1
0
1
0
0
7
1
0
1
15
15
1
14
5
12
0
6
5
4
1
3
0
1
19,976
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.JIDMixin
import salt.utils.win_functions import salt.defaults.exitcodes import salt.utils.files import salt.utils.user import salt.config as config import salt.utils.data import salt.utils.stringutils import salt._logging import salt.version as version import salt.utils.args import salt.utils.process import salt.utils.yaml impo...
class JIDMixin: def _mixin_setup(self): pass def process_jid(self): pass
3
0
5
0
5
0
2
0
0
0
0
2
2
0
2
2
15
3
12
4
9
0
8
4
5
3
0
2
4
19,977
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.LogLevelMixIn
import salt.defaults.exitcodes import salt.config as config import salt._logging from salt.utils.verify import insecure_log, verify_log, verify_log_files from salt.utils.validate.path import is_writeable import sys import salt.version as version import os import salt.utils.yaml import optparse import salt.utils.xdg imp...
class LogLevelMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass def _logfile_callback(option, opt, value, parser, *args, **kwargs): pass def __setup_logging_routines(self): pass def process_log_level(self): pass def __shutdown_logging(self): ...
13
0
26
2
20
5
4
0.22
1
5
1
12
11
1
11
25
334
36
245
38
232
55
128
37
115
20
3
4
44
19,978
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.MasterOptionParser
import salt.config as config class MasterOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn, LogLevelMixIn, RunUserMixin, DaemonMixIn, SaltfileMixIn, metaclass=OptionParserMeta): description = 'The Salt Master, used to control the Salt Minions' _config_filename_ = 'master' _default_logging_logfile...
class MasterOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn, LogLevelMixIn, RunUserMixin, DaemonMixIn, SaltfileMixIn, metaclass=OptionParserMeta): def setup_config(self): pass
2
0
2
0
2
0
1
0.13
8
0
0
2
1
0
1
110
20
3
15
14
4
2
6
5
4
1
4
0
1
19,979
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.MergeConfigMixIn
import sys class MergeConfigMixIn(metaclass=MixInMeta): """ This mix-in will simply merge the CLI-passed options, by overriding the configuration file loaded settings. This mix-in should run last. """ _mixin_prio_ = sys.maxsize def _mixin_setup(self): if not hasattr(self, 'setup_c...
class MergeConfigMixIn(metaclass=MixInMeta): ''' This mix-in will simply merge the CLI-passed options, by overriding the configuration file loaded settings. This mix-in should run last. ''' def _mixin_setup(self): pass def __merge_config_with_cli(self): pass
3
1
32
2
15
15
8
1.09
1
0
0
12
2
0
2
16
75
8
32
8
29
35
28
8
25
14
3
4
16
19,980
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.MinionOptionParser
import salt.config as config class MinionOptionParser(MasterOptionParser, metaclass=OptionParserMeta): description = 'The Salt Minion, receives commands from a remote Salt Master' _config_filename_ = 'minion' _default_logging_logfile_ = config.DEFAULT_MINION_OPTS['log_file'] def setup_config(self): ...
class MinionOptionParser(MasterOptionParser, metaclass=OptionParserMeta): def setup_config(self): pass
2
0
6
0
6
1
1
0.33
2
0
0
1
1
0
1
111
17
3
12
7
8
4
6
5
4
1
5
0
1
19,981
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.MixInMeta
class MixInMeta(type): _mixin_prio_ = 0 def __new__(mcs, name, bases, attrs): instance = super().__new__(mcs, name, bases, attrs) if not hasattr(instance, '_mixin_setup'): raise RuntimeError("Don't subclass {} in {} if you're not going to use it as a salt parser mix-in.".format(mcs....
class MixInMeta(type): def __new__(mcs, name, bases, attrs): pass
2
0
8
0
8
0
2
0.3
1
2
0
22
1
0
1
14
14
1
10
4
8
3
7
4
5
2
2
1
2
19,982
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.MixinFuncsContainer
import types class MixinFuncsContainer(list): def append(self, func): if isinstance(func, types.MethodType): func = func.__func__ if func not in self: list.append(self, func)
class MixinFuncsContainer(list): def append(self, func): pass
2
0
7
0
5
2
3
0.33
1
0
0
0
1
0
1
34
8
0
6
2
4
2
6
2
4
3
2
1
3
19,983
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.NoParseMixin
import os class NoParseMixin(metaclass=MixInMeta): _mixin_prio_ = 50 def _mixin_setup(self): no_parse = os.environ.get('SALT_NO_PARSE', '') self.add_option('--no-parse', default=no_parse, help='Comma-separated list of named CLI arguments (i.e. argname=value) which should not be parsed as Pytho...
class NoParseMixin(metaclass=MixInMeta): def _mixin_setup(self): pass def process_no_parse(self): pass
3
0
11
0
11
0
2
0
1
1
0
4
2
0
2
16
25
2
23
5
20
0
12
5
9
3
3
2
4
19,984
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.OptionParser
import salt.defaults.exitcodes import salt.config as config import salt._logging import traceback import sys import salt.version as version import salt.utils.yaml import optparse import salt.utils.xdg import logging import salt.utils.win_functions import salt.utils.user import salt.utils.stringutils import salt.utils.p...
class OptionParser(optparse.OptionParser): def __init__(self, *args, **kwargs): pass def add_option_group(self, *args, **kwargs): pass def parse_args(self, args=None, values=None): pass def _populate_option_list(self, option_list, add_help=True): pass def _add_v...
9
1
18
2
14
3
3
0.21
1
3
1
13
8
2
8
61
164
24
123
31
112
26
86
27
77
11
2
2
26
19,985
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.OptionParserMeta
class OptionParserMeta(MixInMeta): def __new__(mcs, name, bases, attrs): instance = super().__new__(mcs, name, bases, attrs) if not hasattr(instance, '_mixin_setup_funcs'): instance._mixin_setup_funcs = MixinFuncsContainer() if not hasattr(instance, '_mixin_process_funcs'): ...
class OptionParserMeta(MixInMeta): def __new__(mcs, name, bases, attrs): pass
2
0
37
7
28
2
12
0.07
1
2
1
14
1
0
1
15
38
7
29
5
27
2
29
5
27
12
3
3
12
19,986
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.OutputOptionsMixIn
import salt.defaults.exitcodes import salt.config as config import salt._logging from functools import partial import salt.version as version import os import salt.utils.yaml import optparse import salt.utils.xdg import salt.utils.win_functions import salt.utils.user import salt.utils.stringutils import salt.utils.proc...
class OutputOptionsMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass def process(opt): pass def process_output(self): pass def process_output_file(self): pass def process_state_verbose(self): pass def _mixin_after_pars...
7
0
23
1
22
0
3
0.02
1
3
0
7
5
1
5
19
142
11
129
16
122
2
43
15
36
4
3
4
15
19,987
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.ProfilingPMixIn
import optparse class ProfilingPMixIn(metaclass=MixInMeta): _mixin_prio_ = 130 def _mixin_setup(self): group = self.profiling_group = optparse.OptionGroup(self, 'Profiling support') group.add_option('--profiling-path', dest='profiling_path', default='/tmp/stats', help="Folder that will hold al...
class ProfilingPMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass
2
0
23
1
21
1
1
0.04
1
1
0
2
1
1
1
15
26
2
23
4
21
1
7
4
5
1
3
0
1
19,988
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.ProxyIdMixIn
class ProxyIdMixIn(metaclass=MixInMeta): _mixin_prio = 40 def _mixin_setup(self): self.add_option('--proxyid', default=None, dest='proxyid', help='Id for this proxy.')
class ProxyIdMixIn(metaclass=MixInMeta): def _mixin_setup(self): pass
2
0
4
0
4
0
1
0
1
0
0
2
1
0
1
15
7
1
6
3
4
0
4
3
2
1
3
0
1
19,989
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.ProxyMinionOptionParser
import salt.config as config class ProxyMinionOptionParser(OptionParser, ProxyIdMixIn, ConfigDirMixIn, MergeConfigMixIn, LogLevelMixIn, RunUserMixin, DaemonMixIn, SaltfileMixIn, metaclass=OptionParserMeta): description = 'The Salt Proxy Minion, connects to and controls devices not able to run a minion.\nReceives c...
class ProxyMinionOptionParser(OptionParser, ProxyIdMixIn, ConfigDirMixIn, MergeConfigMixIn, LogLevelMixIn, RunUserMixin, DaemonMixIn, SaltfileMixIn, metaclass=OptionParserMeta): def setup_config(self): pass
2
0
9
1
8
0
2
0.12
9
1
0
1
1
0
1
111
31
4
25
16
13
3
10
6
8
2
4
1
2
19,990
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.RunUserMixin
class RunUserMixin(metaclass=MixInMeta): _mixin_prio_ = 20 def _mixin_setup(self): self.add_option('-u', '--user', help=f'Specify user to run {self.get_prog_name()}.')
class RunUserMixin(metaclass=MixInMeta): def _mixin_setup(self): pass
2
0
4
0
4
0
1
0
1
0
0
4
1
0
1
15
7
1
6
3
4
0
4
3
2
1
3
0
1
19,991
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.SPMParser
import salt._logging import salt.version as version import salt.utils.args import salt.utils.process import salt.utils.yaml import salt.syspaths as syspaths import salt.utils.platform import salt.utils.xdg import salt.exceptions import salt.utils.jid import salt.utils.win_functions import salt.defaults.exitcodes import...
class SPMParser(OptionParser, ConfigDirMixIn, LogLevelMixIn, MergeConfigMixIn, SaltfileMixIn, metaclass=OptionParserMeta): ''' The CLI parser object used to fire up the Salt SPM system. ''' def _mixin_setup(self): pass def _mixin_after_parsed(self): pass def setup_config(self...
4
1
10
0
10
0
2
0.14
6
0
0
1
3
0
3
97
54
6
42
16
31
6
17
9
13
3
4
2
5
19,992
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.SaltAPIParser
import salt.utils.stringutils import salt._logging import salt.version as version import salt.utils.args import salt.utils.process import salt.utils.yaml import salt.syspaths as syspaths import salt.utils.platform import salt.utils.xdg import salt.exceptions import salt.utils.jid import salt.utils.win_functions import ...
class SaltAPIParser(OptionParser, ConfigDirMixIn, LogLevelMixIn, DaemonMixIn, MergeConfigMixIn, metaclass=OptionParserMeta): ''' The CLI parser object used to fire up the Salt API system. ''' def setup_config(self): pass
2
1
4
0
4
1
1
0.33
6
0
0
1
1
0
1
107
26
3
18
13
9
6
7
6
5
1
4
0
1
19,993
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.SaltCMDOptionParser
import salt._logging import sys import salt.version as version import os import salt.utils.yaml import salt.utils.xdg import salt.utils.win_functions import salt.utils.user import salt.utils.stringutils import salt.utils.process import salt.utils.platform import salt.utils.jid import salt.utils.files import salt.utils....
class SaltCMDOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn, TimeoutMixIn, ExtendedTargetOptionsMixIn, OutputOptionsMixIn, LogLevelMixIn, ExecutorsMixIn, HardCrashMixin, SaltfileMixIn, ArgsStdinMixIn, EAuthMixIn, NoParseMixin, metaclass=OptionParserMeta): def _mixin_setup(self): pass def...
4
0
99
1
93
5
10
0.06
14
6
0
1
3
0
3
114
337
13
308
31
289
18
101
16
97
28
5
8
30
19,994
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.SaltCPOptionParser
import salt.config as config import optparse import os class SaltCPOptionParser(OptionParser, OutputOptionsMixIn, ConfigDirMixIn, MergeConfigMixIn, TimeoutMixIn, TargetOptionsMixIn, LogLevelMixIn, HardCrashMixin, SaltfileMixIn, metaclass=OptionParserMeta): description = 'salt-cp is NOT intended to broadcast large ...
class SaltCPOptionParser(OptionParser, OutputOptionsMixIn, ConfigDirMixIn, MergeConfigMixIn, TimeoutMixIn, TargetOptionsMixIn, LogLevelMixIn, HardCrashMixin, SaltfileMixIn, metaclass=OptionParserMeta): def _mixin_setup(self): pass def _mixin_after_parsed(self): pass def setup_config(self...
4
0
13
0
12
0
2
0.05
10
1
0
1
3
0
3
107
69
8
58
22
43
3
25
11
21
4
4
2
6
19,995
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.SaltCallOptionParser
import salt.config as config import os class SaltCallOptionParser(OptionParser, ProxyIdMixIn, ConfigDirMixIn, ExecutorsMixIn, MergeConfigMixIn, LogLevelMixIn, OutputOptionsMixIn, HardCrashMixin, SaltfileMixIn, ArgsStdinMixIn, ProfilingPMixIn, NoParseMixin, CacheDirMixIn, metaclass=OptionParserMeta): description = ...
class SaltCallOptionParser(OptionParser, ProxyIdMixIn, ConfigDirMixIn, ExecutorsMixIn, MergeConfigMixIn, LogLevelMixIn, OutputOptionsMixIn, HardCrashMixin, SaltfileMixIn, ArgsStdinMixIn, ProfilingPMixIn, NoParseMixin, CacheDirMixIn, metaclass=OptionParserMeta): def _mixin_setup(self): pass def _mixin...
5
0
45
1
44
1
3
0.02
14
1
0
1
4
0
4
111
214
11
199
27
179
4
46
12
41
5
4
2
11
19,996
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.SaltCloudParser
import salt.exceptions import salt.defaults.exitcodes import salt.config as config import salt._logging import sys import salt.version as version import os import salt.utils.yaml import salt.utils.xdg import salt.utils.win_functions import salt.utils.user import salt.utils.stringutils import salt.utils.process import s...
class SaltCloudParser(OptionParser, LogLevelMixIn, MergeConfigMixIn, OutputOptionsMixIn, ConfigDirMixIn, CloudQueriesMixIn, ExecutionOptionsMixIn, CloudProvidersListsMixIn, CloudCredentialsMixIn, HardCrashMixin, SaltfileMixIn, metaclass=OptionParserMeta): def print_versions_report(self, file=sys.stdout): ...
5
0
7
1
6
1
2
0.09
12
3
1
1
4
0
4
113
61
11
47
29
25
4
29
12
22
3
4
1
8
19,997
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.SaltKeyOptionParser
import optparse import os import salt.config as config class SaltKeyOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn, LogLevelMixIn, OutputOptionsMixIn, RunUserMixin, HardCrashMixin, SaltfileMixIn, EAuthMixIn, metaclass=OptionParserMeta): description = 'salt-key is used to manage Salt authentication key...
class SaltKeyOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn, LogLevelMixIn, OutputOptionsMixIn, RunUserMixin, HardCrashMixin, SaltfileMixIn, EAuthMixIn, metaclass=OptionParserMeta): def _mixin_setup(self): pass def process_config_dir(self): pass def setup_config(self): ...
10
0
33
3
29
1
3
0.05
10
4
0
1
9
0
9
111
333
40
280
29
259
14
78
18
68
4
4
3
25
19,998
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.SaltRunOptionParser
import optparse import salt.config as config class SaltRunOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn, TimeoutMixIn, LogLevelMixIn, HardCrashMixin, SaltfileMixIn, OutputOptionsMixIn, ArgsStdinMixIn, ProfilingPMixIn, EAuthMixIn, NoParseMixin, JIDMixin, metaclass=OptionParserMeta): default_timeout = ...
class SaltRunOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn, TimeoutMixIn, LogLevelMixIn, HardCrashMixin, SaltfileMixIn, OutputOptionsMixIn, ArgsStdinMixIn, ProfilingPMixIn, EAuthMixIn, NoParseMixin, JIDMixin, metaclass=OptionParserMeta): def _mixin_setup(self): pass def _mixin_after_par...
4
0
17
1
16
0
2
0.03
14
1
0
1
3
1
3
111
86
10
74
26
55
2
25
11
21
4
4
1
6
19,999
saltstack/salt
saltstack_salt/salt/utils/parsers.py
salt.utils.parsers.SaltSSHOptionParser
import optparse import getpass import salt.config as config class SaltSSHOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn, LogLevelMixIn, TargetOptionsMixIn, OutputOptionsMixIn, SaltfileMixIn, HardCrashMixin, NoParseMixin, JIDMixin, metaclass=OptionParserMeta): usage = "%prog [options] '<target>' <funct...
class SaltSSHOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn, LogLevelMixIn, TargetOptionsMixIn, OutputOptionsMixIn, SaltfileMixIn, HardCrashMixin, NoParseMixin, JIDMixin, metaclass=OptionParserMeta): def _mixin_setup(self): pass def _mixin_after_parsed(self): pass def setup_...
4
0
110
3
106
1
4
0.01
11
2
0
1
3
0
3
110
359
15
339
26
323
5
72
14
68
11
4
4
13