code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
@implementer(interfaces.IMulticastTransport) <NEW_LINE> class MulticastPort(MulticastMixin, Port): <NEW_LINE> <INDENT> def __init__(self, port, proto, interface='', maxPacketSize=8192, reactor=None, listenMultiple=False): <NEW_LINE> <INDENT> Port.__init__(self, port, proto, interface, maxPacketSize, reactor) <NEW_LINE>... | UDP Port that supports multicasting. | 62599043507cdc57c63a6089 |
class EngineClient(base.Engine): <NEW_LINE> <INDENT> def __init__(self, transport): <NEW_LINE> <INDENT> serializer = auth_ctx.RpcContextSerializer( auth_ctx.JsonPayloadSerializer()) <NEW_LINE> self._client = messaging.RPCClient( transport, messaging.Target(topic=cfg.CONF.engine.topic), serializer=serializer ) <NEW_LINE... | RPC Engine client. | 625990436e29344779b0193e |
class itkTernaryAddImageFilterIF2IF2IF2IF2(itkTernaryAddImageFilterIF2IF2IF2IF2_Superclass): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") <NEW_LIN... | Proxy of C++ itkTernaryAddImageFilterIF2IF2IF2IF2 class | 625990431d351010ab8f4e0c |
class NormalDistribution(TweedieDistribution): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__(power=0) | Class for the Normal (aka Gaussian) distribution | 625990438e71fb1e983bcdbc |
class SBArduinoSerialCommentResponse(SBArduinoSerial): <NEW_LINE> <INDENT> def respond_to_write(self, data: bytes) -> None: <NEW_LINE> <INDENT> self.append_received_data(b"# Comment", newline=True) <NEW_LINE> self.append_received_data(b"+ OK", newline=True) | Like SBArduinoSerial, but returns a failure response rather than success. | 6259904307d97122c4217f8d |
class ConnectionMonitorListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[ConnectionMonitorResult]'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["ConnectionMonitorResult"]] = None, **kwargs ): <NEW_LINE> <INDENT> super(ConnectionMonitorListRe... | List of connection monitors.
:param value: Information about connection monitors.
:type value: list[~azure.mgmt.network.v2020_07_01.models.ConnectionMonitorResult] | 6259904350485f2cf55dc273 |
class Resize2DImage(DetectionAugmentation): <NEW_LINE> <INDENT> def __init__(self, pResize): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.p = pResize <NEW_LINE> <DEDENT> def apply(self, input_record): <NEW_LINE> <INDENT> p = self.p <NEW_LINE> image = input_record["image"] <NEW_LINE> short = min(image.shape[:2... | input: image, ndarray(h, w, rgb)
gt_bbox, ndarry(n, 5)
output: image, ndarray(h', w', rgb)
im_info, tuple(h', w', scale)
gt_bbox, ndarray(n, 5) | 6259904324f1403a92686243 |
class Sink(PipelineElement): <NEW_LINE> <INDENT> def __init__(self, handler, args, kwargs): <NEW_LINE> <INDENT> super().__init__(handler, args, kwargs) <NEW_LINE> <DEDENT> def process(self, frame): <NEW_LINE> <INDENT> self.call_handler(frame) | A sink draws from a stream and stores/displays the frames. | 625990430a366e3fb87ddcd3 |
class HelloViewSet(viewsets.ViewSet): <NEW_LINE> <INDENT> serializer_class = serializers.HelloSerializer <NEW_LINE> def list(self, request): <NEW_LINE> <INDENT> a_viewset = [ 'Uses action (list, create, retrieve, update, partial_update)', 'Automatically maps to URLs using Routers', 'Provides more functionality with les... | Test API ViewSet | 62599043e76e3b2f99fd9cf9 |
class WebAPIResponseFormError(WebAPIResponseError): <NEW_LINE> <INDENT> def __init__(self, request, form, *args, **kwargs): <NEW_LINE> <INDENT> fields = {} <NEW_LINE> for field in form.errors: <NEW_LINE> <INDENT> fields[field] = [force_text(e) for e in form.errors[field]] <NEW_LINE> <DEDENT> super(WebAPIResponseFormErr... | An error response designed to return all errors from a form. | 62599043097d151d1a2c2357 |
class IMAPUtil(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> path = os.path.expanduser('~/.imap-utils') <NEW_LINE> self._config = ConfigParser.ConfigParser() <NEW_LINE> self._config.optionxform = str <NEW_LINE> self._config.read(path) <NEW_LINE> self._imap = None <NEW_LINE> try: <NEW_LINE> <INDEN... | Wrapper class for IMAP utilities. It takes care about configuration
and connecting to IMAP. | 6259904307d97122c4217f8e |
class FullyPackedLoops(Parent, UniqueRepresentation): <NEW_LINE> <INDENT> def __init__(self, n): <NEW_LINE> <INDENT> self._n = n <NEW_LINE> Parent.__init__(self, category=FiniteEnumeratedSets()) <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> for X in SixVertexModel(self._n, boundary_conditions='ice'): <NEW... | Class of all fully packed loops on an `n \times n` grid.
They are known to be in bijection with alternating sign matrices.
.. SEEALSO::
:class:`AlternatingSignMatrices`
INPUT:
- ``n`` -- the number of row (and column) or grid
EXAMPLES:
This will create an instance to manipulate the fully packed loops of siz... | 625990438e05c05ec3f6f7d2 |
class ExternalLoader(TestLoader): <NEW_LINE> <INDENT> name = 'external' <NEW_LINE> def __init__(self, args, extra_params): <NEW_LINE> <INDENT> loader_options = extra_params.pop('loader_options', None) <NEW_LINE> super(ExternalLoader, self).__init__(args, extra_params) <NEW_LINE> if loader_options == '?': <NEW_LINE> <IN... | External-runner loader class | 6259904326238365f5fade48 |
class TextAnalysisTests(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.filename = "text_analysis_test_file.txt" <NEW_LINE> with open(self.filename, 'w') as f: <NEW_LINE> <INDENT> f.write("Python is a great tool") <NEW_LINE> <DEDENT> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> try... | Tests for the `analyze_text()` function | 6259904323849d37ff8523a9 |
class UserRegistrationForm(UserCreationForm): <NEW_LINE> <INDENT> password1 = forms.CharField(label="Password", widget=forms.PasswordInput) <NEW_LINE> password2 = forms.CharField( label="Password Confirmation", widget=forms.PasswordInput) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = User <NEW_LINE> fields = ['ema... | Form used to register a new user | 6259904307f4c71912bb0721 |
class Application(web.Application): <NEW_LINE> <INDENT> def __init__(self, handlers, config='settings.py', **kwargs): <NEW_LINE> <INDENT> options.config = config <NEW_LINE> settings = options.group_dict('app') <NEW_LINE> settings.update(kwargs) <NEW_LINE> super(Application, self).__init__(handlers,**settings) <NEW_LINE... | Extension for `tornado.web.Application` with config support.
| 6259904323e79379d538d7ed |
class StatusLogCombiner(): <NEW_LINE> <INDENT> def __init__(self, archiveType, issueArchiveDir): <NEW_LINE> <INDENT> self._statusLogHeader = "" <NEW_LINE> self._type = "unknown" <NEW_LINE> if archiveType == ARCHIVE_TYPE_EXTENDED: <NEW_LINE> <INDENT> issueArchivePath = Path(issueArchiveDir) <NEW_LINE> if issueArchivePat... | classdocs | 62599043b57a9660fecd2d6b |
class TestConfig(unittest.TestCase): <NEW_LINE> <INDENT> test_dir = None <NEW_LINE> cfg_path = None <NEW_LINE> @classmethod <NEW_LINE> def setUpClass(cls) -> None: <NEW_LINE> <INDENT> cls.test_dir = os.path.join(TEST_DIR, 'config') <NEW_LINE> cls.cfg_path = os.path.join(cls.test_dir, 'smd.cfg') <NEW_LINE> os.mkdir(cls.... | Tests :class:`smd.utils.Config` class. | 62599043ec188e330fdf9b8a |
class GoalType(object): <NEW_LINE> <INDENT> _definitions = list() <NEW_LINE> def __init__(self, value): <NEW_LINE> <INDENT> self._value = value <NEW_LINE> GoalType._definitions.append(self) <NEW_LINE> <DEDENT> def _getValue(self): <NEW_LINE> <INDENT> return self._value | Under the current Monaco implimentation,
The possibilities have been exaustively created and
no new instances of this class should be made | 6259904373bcbd0ca4bcb57b |
class TestPrim(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.graph = Graph() <NEW_LINE> self.graph.add_edge('A', 'B', 4) <NEW_LINE> self.graph.add_edge('A', 'H', 8) <NEW_LINE> self.graph.add_edge('B', 'C', 8) <NEW_LINE> self.graph.add_edge('B', 'H', 11) <NEW_LINE> self.graph.add_edge... | "Test case taken from Cormen, Chapter 23.2, Figure 23.5 | 62599043d53ae8145f91974d |
@gin.configurable <NEW_LINE> class SimpleScene(scene_base.SceneBase): <NEW_LINE> <INDENT> def build_scene(self, pybullet_client): <NEW_LINE> <INDENT> super().build_scene(pybullet_client) <NEW_LINE> visual_shape_id = self._pybullet_client.createVisualShape( shapeType=self._pybullet_client.GEOM_PLANE) <NEW_LINE> collisio... | A scene containing only a planar floor. | 6259904307d97122c4217f8f |
class DoItUnderflowError(DoItError): <NEW_LINE> <INDENT> __slots__ = [] <NEW_LINE> def __init__(self, emsg): <NEW_LINE> <INDENT> DoItError.__init__(self, ERROR_UNDERFLOW, emsg) | Raised when arithmetic operation underflows.
| 625990430fa83653e46f61ca |
class ContentsCollection(list): <NEW_LINE> <INDENT> def __init__(self, item_type, view, *contents): <NEW_LINE> <INDENT> self.item_type = item_type <NEW_LINE> self.info = ProjectContentsView.needed_values[item_type] <NEW_LINE> self.info.collection = self <NEW_LINE> self.editable = view.editable <NEW_LINE> self.extend(co... | each item in the list should have a .collection attribute
which references the Collection itself. doing this by overriding
methods on the Collection to stick the attribute in when
adding the item.
NOTE THAT I AM only overriding select methods so if any other
method is called the template rendering will break mysterious... | 6259904394891a1f408ba06e |
class ToggleNumberColumnAction(gaupol.ToggleAction): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> gaupol.ToggleAction.__init__(self, "toggle_number_column") <NEW_LINE> fields = gaupol.conf.editor.visible_fields <NEW_LINE> self.props.active = gaupol.fields.NUMBER in fields <NEW_LINE> self.props.label = _(... | Show or hide the number column. | 6259904310dbd63aa1c71ec9 |
class NinjaAnt(Ant): <NEW_LINE> <INDENT> name = 'Ninja' <NEW_LINE> damage = 1 <NEW_LINE> food_cost = 5 <NEW_LINE> blocks_path = False <NEW_LINE> implemented = False <NEW_LINE> def action(self, colony): <NEW_LINE> <INDENT> Insect_place = self.place <NEW_LINE> bees_in_place = Insect_place.bees[:] <NEW_LINE> for bee in be... | NinjaAnt does not block the path and damages all bees in its place. | 625990436fece00bbacccca3 |
class Driver(base.DriverBase): <NEW_LINE> <INDENT> def __init__(self, conf, storage): <NEW_LINE> <INDENT> super(Driver, self).__init__(conf) <NEW_LINE> self._storage = storage <NEW_LINE> <DEDENT> @decorators.lazy_property(write=False) <NEW_LINE> def queue_controller(self): <NEW_LINE> <INDENT> stages = _get_storage_pipe... | Meta-driver for injecting pipelines in front of controllers.
:param storage_conf: For real drivers, this would be used to
configure the storage, but in this case it is simply ignored.
:param conf: Configuration from which to load pipeline settings
:param storage: Storage driver that will service requests as the
... | 625990438c3a8732951f784b |
class CompressedStaticFilesMixin(object): <NEW_LINE> <INDENT> _new_files = None <NEW_LINE> def post_process(self, *args, **kwargs): <NEW_LINE> <INDENT> files = super(CompressedStaticFilesMixin, self).post_process(*args, **kwargs) <NEW_LINE> if not kwargs.get('dry_run'): <NEW_LINE> <INDENT> files = self.post_process_wit... | Wraps a StaticFilesStorage instance to create compressed versions of its
output files and, optionally, to delete the non-hashed files (i.e. those
without the hash in their name) | 62599043e64d504609df9d49 |
class Client(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=128) <NEW_LINE> email = models.EmailField(max_length=128) <NEW_LINE> phone = models.CharField(max_length=20) <NEW_LINE> comments = models.TextField(blank=True) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.name | Creating a client instance
>>> a_client = Client.objects.create(name='david', email='david6116@yahoo.com', phone=7706338574, comments='optional')
>>> a_client.name
'david'
>>> | 625990431d351010ab8f4e10 |
class SimpleRenderer(Renderer): <NEW_LINE> <INDENT> _template = ViewPageTemplateFile('simple.pt') <NEW_LINE> def __init__(self, *args): <NEW_LINE> <INDENT> Renderer.__init__(self, *args) <NEW_LINE> context = aq_inner(self.context) <NEW_LINE> <DEDENT> def render(self): <NEW_LINE> <INDENT> return self._template() <NEW_LI... | The renderer will prepare the portlet HTML. | 6259904307d97122c4217f91 |
class EvalPrediction(NamedTuple): <NEW_LINE> <INDENT> predictions: np.ndarray <NEW_LINE> label_ids: np.ndarray | Evaluation eval_model_dir (always contains labels), to be used
to compute metrics. | 6259904363b5f9789fe8645d |
class SupportingFunctionsTests(unittest.TestCase): <NEW_LINE> <INDENT> def test_check_config(self): <NEW_LINE> <INDENT> settings = { "language": 1, "spreadsheet_name": "tests/test_data/good_data.ods", "sheet_name": "Sheet1", "target_folder": "tests/", "log_file": "tests/test_log", "sort": "phonetics", } <NEW_LINE> with... | Tests the functions supporting read_lexicon() | 62599043004d5f362081f95e |
class CheckSingleStoreAction(argparse.Action): <NEW_LINE> <INDENT> def __call__(self, parser, namespace, values, option_string=None): <NEW_LINE> <INDENT> if getattr(namespace, self.dest, None) is not None: <NEW_LINE> <INDENT> print( 'WARNING: previous optional argument "' + option_string + ' ' + str(getattr(namespace, ... | issue a warning when the store action is called multiple times | 62599043cad5886f8bdc59f6 |
class RNNEncoder(AbsEncoder): <NEW_LINE> <INDENT> def __init__( self, input_size: int, rnn_type: str = "lstm", bidirectional: bool = True, use_projection: bool = True, num_layers: int = 4, hidden_size: int = 320, output_size: int = 320, dropout: float = 0.0, subsample: Optional[Sequence[int]] = (2, 2, 1, 1), ): <NEW_LI... | RNNEncoder class.
Args:
input_size: The number of expected features in the input
output_size: The number of output features
hidden_size: The number of hidden features
bidirectional: If ``True`` becomes a bidirectional LSTM
use_projection: Use projection layer or not
num_layers: Number of recurr... | 625990431f5feb6acb163ee6 |
@BenchBuild.subcommand("log") <NEW_LINE> class BenchBuildLog(cli.Application): <NEW_LINE> <INDENT> @cli.switch(["-E", "--experiment"], str, list=True, help="Experiments to fetch the log for.") <NEW_LINE> def experiment(self, experiments): <NEW_LINE> <INDENT> self._experiments = experiments <NEW_LINE> <DEDENT> @cli.swit... | Frontend command to the benchbuild database. | 62599043a8ecb03325872502 |
class U3(KaitaiStruct): <NEW_LINE> <INDENT> SEQ_FIELDS = ["b1", "b2", "b3"] <NEW_LINE> def __init__(self, _io, _parent=None, _root=None): <NEW_LINE> <INDENT> self._io = _io <NEW_LINE> self._parent = _parent <NEW_LINE> self._root = _root if _root else self <NEW_LINE> self._debug = collections.defaultdict(dict) <NEW_LINE... | Implements unsigned 24-bit (3 byte) integer.
| 625990430a366e3fb87ddcd7 |
class User(db.Model): <NEW_LINE> <INDENT> __tablename__ = constTablePrefix + 'user' <NEW_LINE> id = db.Column(db.Integer, db.Sequence(__tablename__ + '_id_seq'), autoincrement=True, primary_key=True) <NEW_LINE> create_time = db.Column(db.DateTime, default=datetime.utcnow) <NEW_LINE> machine_id = db.Column(db.String(255... | 资源专区的用户 | 625990430fa83653e46f61cd |
class Form: <NEW_LINE> <INDENT> def __init__(self, form_obj, server, user, api_key): <NEW_LINE> <INDENT> self.form_obj = form_obj <NEW_LINE> self._api_key = api_key <NEW_LINE> self.server = server <NEW_LINE> self.user = user <NEW_LINE> self.form_id = self.form_obj.attrib['id'] <NEW_LINE> self.name = self.form_obj.find(... | pythonic interface for individual forms | 6259904394891a1f408ba06f |
class UserAddonAccountDetail(JSONAPIBaseView, generics.RetrieveAPIView, UserMixin, AddonSettingsMixin): <NEW_LINE> <INDENT> permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, base_permissions.TokenHasScope, CurrentUser, ) <NEW_LINE> required_read_scopes = [CoreScopes.USER_ADDON_READ] <NEW_LINE> required_... | Detail of an individual external_account authorized by this user *Read-only*
##Permissions
ExternalAccounts are visible only to the user that has ownership of them.
## ExternalAccount Attributes
OSF ExternalAccount entities have the "external_accounts" `type`, with `id` indicating the
`external_account_id` accordin... | 6259904307d97122c4217f92 |
class RuleTrie(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.root = DomainNode("", [], 0) <NEW_LINE> <DEDENT> def matchingRulesets(self, fqdn): <NEW_LINE> <INDENT> return self.root.matchingRulesets(fqdn) <NEW_LINE> <DEDENT> def addRuleset(self, ruleset): <NEW_LINE> <INDENT> for target in rul... | Suffix trie for rulesets. | 62599043d99f1b3c44d06991 |
class GetScanHistory(Action): <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> self.config = config <NEW_LINE> self.logger = logging.getLogger() <NEW_LINE> self.validate_config() <NEW_LINE> <DEDENT> def validate_config(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.config[NEXT_ACTION] <NEW_... | A class to retrieve scan history from the file system. | 62599043596a897236128f28 |
class HookspecMarker(object): <NEW_LINE> <INDENT> def __init__(self, project_name): <NEW_LINE> <INDENT> self.project_name = project_name <NEW_LINE> <DEDENT> def __call__(self, function, *args, **kwargs): <NEW_LINE> <INDENT> if any(args) or any(kwargs): <NEW_LINE> <INDENT> raise NotImplementedError( "This is a minimal i... | Dummy implementation. No spec validation. | 6259904350485f2cf55dc278 |
class Downsample(Filter): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.start_index: int = 0 <NEW_LINE> self.step: int = 1 <NEW_LINE> <DEDENT> def transform(self, predictors: Matrix) -> Matrix: <NEW_LINE> <INDENT> columns = [i for i in range(self.start_index, predictors.num_columns(), self.step)] <NE... | Filter which gets every Nth column from a matrix, starting at a given index. | 6259904323849d37ff8523ad |
class ConfigurationManager(object): <NEW_LINE> <INDENT> def __init__(self, interactions_file_name: str): <NEW_LINE> <INDENT> self.interactions = file_utilities.get_file_dict(interactions_file_name) <NEW_LINE> <DEDENT> def get_interaction_details(self, interaction_name: str) -> dict: <NEW_LINE> <INDENT> return copy.deep... | A utility used to obtain configuration details for the current application. | 625990433eb6a72ae038b953 |
class BearerAuth(requests.auth.AuthBase): <NEW_LINE> <INDENT> def __init__(self, consumer_key, consumer_secret, proxies=None, user_agent=None): <NEW_LINE> <INDENT> self._consumer_key = consumer_key <NEW_LINE> self._consumer_secret = consumer_secret <NEW_LINE> self.proxies = proxies <NEW_LINE> self.user_agent = user_age... | Request bearer access token for oAuth2 authentication.
:param consumer_key: Twitter application consumer key
:param consumer_secret: Twitter application consumer secret
:param proxies: Dictionary of proxy URLs (see documentation for python-requests). | 62599043a79ad1619776b372 |
class globals: <NEW_LINE> <INDENT> match = False <NEW_LINE> matchedString = "" <NEW_LINE> matchedVendor = "" <NEW_LINE> partials = False | class providing global accessible variables | 62599043287bf620b6272eda |
class S2TRule(object): <NEW_LINE> <INDENT> def __init__(self, ruleNum): <NEW_LINE> <INDENT> self.id = "%s" % (ruleNum) <NEW_LINE> self.attrs = {} <NEW_LINE> <DEDENT> def set_attribute(self, attr, val): <NEW_LINE> <INDENT> self.attrs[attr] = val <NEW_LINE> <DEDENT> def get_attribute(self, attr): <NEW_LINE> <INDENT> self... | Implements the S2T rule object. An S2T rule consists of an ID
number and a set of conditions including:
-- Optional Conditions: tense, aspect, reltype.
-- Mandatory Condition: relation (the reltype for the new TLINK). | 625990436e29344779b01944 |
class EEPBin(DataReader): <NEW_LINE> <INDENT> def __init__(self, source): <NEW_LINE> <INDENT> DataReader.__init__(self) <NEW_LINE> nsamples = None <NEW_LINE> hdr = {} <NEW_LINE> infile = open(source, "r") <NEW_LINE> while True: <NEW_LINE> <INDENT> line = infile.readline() <NEW_LINE> if not line or line.startswith(';EOH... | Read-access to binary EEP files.
EEP files are used by *eeprobe* a software for analysing even-related
potentials (ERP), which was developed at the Max-Planck Institute for
Cognitive Neuroscience in Leipzig, Germany.
http://www.ant-neuro.com/products/eeprobe
EEP files consist of a plain text header and a binary da... | 6259904321bff66bcd723f5e |
class AbstractSendVoiceAllOf(object): <NEW_LINE> <INDENT> openapi_types = { 'destination_field': 'str' } <NEW_LINE> attribute_map = { 'destination_field': 'destination_field' } <NEW_LINE> def __init__(self, destination_field=None, local_vars_configuration=None): <NEW_LINE> <INDENT> if local_vars_configuration is None: ... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 625990431d351010ab8f4e12 |
class SecurityGroupServerRpcApiMixin(object): <NEW_LINE> <INDENT> def security_group_rules_for_devices(self, context, devices): <NEW_LINE> <INDENT> LOG.debug("Get security group rules " "for devices via rpc %r", devices) <NEW_LINE> return self.call(context, self.make_msg('security_group_rules_for_devices', devices=devi... | A mix-in that enable SecurityGroup support in plugin rpc. | 62599043d53ae8145f919751 |
class Class(object): <NEW_LINE> <INDENT> def __init__(self, name, value=0, ranks=[]): <NEW_LINE> <INDENT> misc.checkTypeAgainst(type(name), StringType, __file__) <NEW_LINE> misc.checkTypeAgainst(type(value), IntType, __file__) <NEW_LINE> misc.checkTypeAgainst(type(ranks), ListType, __file__) <NEW_LINE> self._name = nam... | Class class is used to group all the relevant ranks together.
Attributes:
_name (str): name of the Class instance
_value (int): value / weight of the instance
_ranks (dict<str, Rank>): list of Rank objects | 625990438e71fb1e983bcdc2 |
class TableNamespace(AssertionNamespace): <NEW_LINE> <INDENT> @assertion <NEW_LINE> def column_contain( self, table, values, column, description=None, category=None, limit=None, report_fails_only=False, ): <NEW_LINE> <INDENT> entry = assertions.ColumnContain( table=table, values=values, column=column, limit=limit, repo... | Contains logic for regular expression assertions. | 62599043b57a9660fecd2d70 |
class Brew(BaseAdapter): <NEW_LINE> <INDENT> def search(self, query): <NEW_LINE> <INDENT> response = self.command('search', query)[0] <NEW_LINE> if 'No formula found' not in response and 'Error:' not in response: <NEW_LINE> <INDENT> return dict([( self.package_name(line), self.search_info(self.package_name(line)) ) for... | Homebrew adapter. | 625990433617ad0b5ee0742d |
class IpFilter(CommandFilter): <NEW_LINE> <INDENT> def match(self, userargs): <NEW_LINE> <INDENT> if userargs[0] == 'ip': <NEW_LINE> <INDENT> for a, b in zip(userargs[1:], userargs[2:]): <NEW_LINE> <INDENT> if a == 'netns': <NEW_LINE> <INDENT> return (b != 'exec') <NEW_LINE> <DEDENT> <DEDENT> else: <NEW_LINE> <INDENT> ... | Specific filter for the ip utility to that does not match exec. | 62599043379a373c97d9a31d |
class LxList(sdb.Command): <NEW_LINE> <INDENT> names = ["linux_list", "lxlist"] <NEW_LINE> @classmethod <NEW_LINE> def _init_parser(cls, name: str) -> argparse.ArgumentParser: <NEW_LINE> <INDENT> parser = super()._init_parser(name) <NEW_LINE> parser.add_argument( "struct_name", help="name of the struct used for entries... | Walk a standard Linux doubly-linked list
DESCRIPTION
Given the type of its nodes and the name of its list_node
member, walk a doubly-linked list as defined in the Linux
kernel ('struct list_head' type in include/linux/list.h).
EXAMPLES
Walk all modules in the system:
sdb> addr modules | lxlis... | 625990438a43f66fc4bf3487 |
class Transform: <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> self.filed = config['field'] <NEW_LINE> self.lenMode = config['len'] if 'len' in config else False <NEW_LINE> self.value = config['value'] <NEW_LINE> self.config = config <NEW_LINE> <DEDENT> def do(self, rows): <NEW_LINE> <INDENT> data... | 某个字段的值大于某个值,则删除该行数据
field: 字段名
value: 用来比较的数值
len: (可选参数)默认值 false 数值比较; 若设置成 true , 则比较字段的长度
配置样例,该配置表示 age 大于 20 则丢弃该行数据:
transfrom:
- type: filter
name: gt
field: age
value: 20
len: false | 62599043e76e3b2f99fd9cff |
class CommandSlice: <NEW_LINE> <INDENT> def GetResources(self): <NEW_LINE> <INDENT> return {'Pixmap' : getIconPath("Part_Slice.svg"), 'MenuText': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Slice"), 'Accel': "", 'ToolTip': QtCore.QT_TRANSLATE_NOOP("Part_SplitFeatures","Part_Slice: split object by intersections with... | Command to create Slice feature | 62599043097d151d1a2c235d |
class ImageChunk(InstanceOrExpr, DelegatingMixin): <NEW_LINE> <INDENT> widget2d = Arg(Widget2D) <NEW_LINE> filename = Arg(str) <NEW_LINE> need_redraw = State(bool, True) <NEW_LINE> def usagetrack_draw(self, draw_method, *args, **kws): <NEW_LINE> <INDENT> res = draw_method(*args, **kws) <NEW_LINE> return res <NEW_LINE> ... | ImageChunk(widget2d) draws widget2d normally, but also captures an image to use
for faster redrawing. In some cases, it can significantly speed up drawing of certain
constant pictures or text, at least for now while our text drawing is inefficient
and we don't yet have the display-list equivalent of ImageChunk.
WARN... | 62599043b5575c28eb713643 |
class PinInvalidBounce(PinError, ValueError): <NEW_LINE> <INDENT> pass | Error raised when attempting to assign an invalid bounce time to a pin | 6259904326068e7796d4dc3a |
class Kalman: <NEW_LINE> <INDENT> def __init__(self, x, u, P, A, B, Q, H, R): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.u = u <NEW_LINE> self.P = P <NEW_LINE> self.A = A <NEW_LINE> self.B = B <NEW_LINE> self.Q = Q <NEW_LINE> self.H = H <NEW_LINE> self.R = R <NEW_LINE> self.state = [] <NEW_LINE> self.residual = [] ... | Kalman filter object. | 62599043d99f1b3c44d06993 |
class SqlSaver(StateSaver): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(SqlSaver, self).__init__() <NEW_LINE> self.__writeCache = {} <NEW_LINE> self.table = None <NEW_LINE> self.db = None <NEW_LINE> self.metadata = MetaData() <NEW_LINE> self.engine = None <NEW_LINE> self.firstTime = True <NEW_LINE... | sql saver | 6259904323e79379d538d7f3 |
class Square(Rectangle): <NEW_LINE> <INDENT> def __init__(self, size): <NEW_LINE> <INDENT> self.integer_validator("Value", size) <NEW_LINE> super().__init__(size, size) <NEW_LINE> self.__size = size <NEW_LINE> <DEDENT> def area(self): <NEW_LINE> <INDENT> return self.__size**2 <NEW_LINE> <DEDENT> def __str__(self): <NEW... | Sets a Square. | 625990431d351010ab8f4e14 |
class IterableItems: <NEW_LINE> <INDENT> def __init__(self, fetch_method, id=None, mask=None, limit=10): <NEW_LINE> <INDENT> self.fetch_method = fetch_method <NEW_LINE> self.mask = mask <NEW_LINE> self.id = id <NEW_LINE> self.offset = 0 <NEW_LINE> self.limit = limit <NEW_LINE> self.fetched = [] <NEW_LINE> <DEDENT> def ... | Iterator for Pagenated list | 625990431f5feb6acb163eea |
class EvacPlan: <NEW_LINE> <INDENT> def __init__(self, s): <NEW_LINE> <INDENT> class __Party: <NEW_LINE> <INDENT> def __init__(self, name, num): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.num = num <NEW_LINE> <DEDENT> def __lt__(self, other): <NEW_LINE> <INDENT> return self.num > other.num <NEW_LINE> <DEDENT>... | If total number of people is odd, pop 1 from the largest party, make that
the first instruction (just evacuate 1 people in that round)
Then for the remaining even number of people We will always pop from the
current largest party. Then group instructions into pairs of two to minimize
rounds and avoid breaking in situa... | 62599043b57a9660fecd2d72 |
class FileIOPluginTestMixin(PluginIOTestMixin): <NEW_LINE> <INDENT> def test_empty(self): <NEW_LINE> <INDENT> self.assertEqual(IOPlugin.EMPTY_DATA, self.plugin.load()) <NEW_LINE> <DEDENT> def test_save_ignore_unpersisted(self): <NEW_LINE> <INDENT> self.plugin.save(self.all_data) <NEW_LINE> self.assertEqual(self.plugin.... | Common FileIO plugins tests. | 62599043a8ecb03325872506 |
class Test(namespaceable): <NEW_LINE> <INDENT> with namespace() as namespace_: <NEW_LINE> <INDENT> with pytest.raises( NameError, message="name 'footer' is not defined"): <NEW_LINE> <INDENT> del footer | Throwaway test class, for testing failing delete. | 6259904307f4c71912bb0728 |
@view_defaults(route_name="katfud", renderer="json") <NEW_LINE> class KatFud(object): <NEW_LINE> <INDENT> def __init__(self, request): <NEW_LINE> <INDENT> self.request = request <NEW_LINE> <DEDENT> @view_config(request_method='GET') <NEW_LINE> def stats(self): <NEW_LINE> <INDENT> cur_settings = runtime.runtime <NEW_LIN... | KatFud REST
| 6259904330dc7b76659a0b26 |
class AccountInvoiceLine(models.Model): <NEW_LINE> <INDENT> _inherit = 'account.invoice.line' <NEW_LINE> move_id = fields.Many2one('stock.move', 'Stock Move', ondelete='set null', index=True, readonly=True) <NEW_LINE> picking_id = fields.Many2one('stock.picking', related='move_id.picking_id', string='Stock Picking', st... | Override AccountInvoice_line to add the link to the purchase order line it is related to | 62599043d164cc617582226d |
class Image(SolidShape): <NEW_LINE> <INDENT> _attrMap = AttrMap(BASE=SolidShape, x = AttrMapValue(isNumber), y = AttrMapValue(isNumber), width = AttrMapValue(isNumberOrNone,desc="width of the object in points"), height = AttrMapValue(isNumberOrNone,desc="height of the objects in points"), path = AttrMapValue(None), ) <... | Bitmap image. | 6259904326068e7796d4dc3c |
class BufferSetRequest(Request): <NEW_LINE> <INDENT> request_id = RequestId.BUFFER_SET <NEW_LINE> def __init__(self, buffer_id=None, index_value_pairs=None): <NEW_LINE> <INDENT> Request.__init__(self) <NEW_LINE> self._buffer_id = int(buffer_id) <NEW_LINE> if index_value_pairs: <NEW_LINE> <INDENT> pairs = [] <NEW_LINE> ... | A /b_set request.
::
>>> import supriya.commands
>>> request = supriya.commands.BufferSetRequest(
... buffer_id=23,
... index_value_pairs=(
... (0, 1.0),
... (10, 13.2),
... (17, 19.3),
... ),
... )
>>> request
BufferSetRequest(
b... | 625990436fece00bbacccca9 |
class UserListView(ListView): <NEW_LINE> <INDENT> model = User <NEW_LINE> context_object_name = 'users' <NEW_LINE> template_name = 'users/user_list.html' <NEW_LINE> ordering = 'id' | Вывод всех пользователей | 62599043baa26c4b54d5059f |
class SExtractorBackground(BackgroundBase): <NEW_LINE> <INDENT> def calc_background(self, data, axis=None): <NEW_LINE> <INDENT> if self.sigma_clip is not None: <NEW_LINE> <INDENT> data = self.sigma_clip(data, axis=axis) <NEW_LINE> <DEDENT> _median = np.atleast_1d(_masked_median(data, axis=axis)) <NEW_LINE> _mean = np.a... | Class to calculate the background in an array using the
SExtractor algorithm.
The background is calculated using a mode estimator of the form
``(2.5 * median) - (1.5 * mean)``.
If ``(mean - median) / std > 0.3`` then the median is used instead.
Despite what the `SExtractor`_ User's Manual says, this is the
method it ... | 625990433eb6a72ae038b957 |
class VirtualMachineScaleSetUpdateVMProfile(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'os_profile': {'key': 'osProfile', 'type': 'VirtualMachineScaleSetUpdateOSProfile'}, 'storage_profile': {'key': 'storageProfile', 'type': 'VirtualMachineScaleSetUpdateStorageProfile'}, 'network_profile': {'ke... | Describes a virtual machine scale set virtual machine profile.
:ivar os_profile: The virtual machine scale set OS profile.
:vartype os_profile:
~azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetUpdateOSProfile
:ivar storage_profile: The virtual machine scale set storage profile.
:vartype storage_profile:
... | 6259904323e79379d538d7f5 |
class PessoaJuridica(Pessoa): <NEW_LINE> <INDENT> def __init__(self, cnpj, nome, idade): <NEW_LINE> <INDENT> super().__init__(nome, idade) <NEW_LINE> self.cnpj = cnpj <NEW_LINE> <DEDENT> def get_cnpj(self): <NEW_LINE> <INDENT> return self.cnpj <NEW_LINE> <DEDENT> def set_cnpj(self, cnpj): <NEW_LINE> <INDENT> self.cnpj ... | Classe para definição de pessoas jurídicas.
A classe ``PessoaJuridica`` é uma especialização da classe básica ``Pessoa``. As *pessoas jurídicas* são
associadas a entidades tais como empresas, associações, fundações.
As *pessoas jurídicas* são identificados por um número único
gerado pela Receita Federal e conhecido po... | 62599043e64d504609df9d4c |
class BaseController(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.proxy_admin_user = CONFIG.get('reddwarf_proxy_admin_user', 'admin') <NEW_LINE> self.proxy_admin_pass = CONFIG.get('reddwarf_proxy_admin_pass', '3de4922d8b6ac5a1aad9') <NEW_LINE> self.proxy_admin_tenant_name = CONFIG.get( 'red... | Base controller class. | 625990436e29344779b01948 |
class LanguageServiceServicer(object): <NEW_LINE> <INDENT> def AnalyzeSentiment(self, request, context): <NEW_LINE> <INDENT> context.set_code(grpc.StatusCode.UNIMPLEMENTED) <NEW_LINE> context.set_details("Method not implemented!") <NEW_LINE> raise NotImplementedError("Method not implemented!") <NEW_LINE> <DEDENT> def A... | Provides text analysis operations such as sentiment analysis and entity
recognition. | 62599043a4f1c619b294f803 |
class SyncClient(Base): <NEW_LINE> <INDENT> __tablename__ = 'sync_client' <NEW_LINE> __table_args__ = ( UniqueConstraint('service_provider_gateway_id', 'token'), ) <NEW_LINE> token = Column(String, nullable=False, default=gen_token) <NEW_LINE> description = Column(String) <NEW_LINE> enabled = Column(Boolean, nullable=F... | Cliente de Sincronismo | 62599043004d5f362081f961 |
class Out: <NEW_LINE> <INDENT> def __init__(self, out_file="output.txt"): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> sys.stdout = self.out_file = open(out_file, "w") <NEW_LINE> self.initialized = True <NEW_LINE> <DEDENT> except Exception: <NEW_LINE> <INDENT> print("could not create or write to file", out_file) <NEW_L... | maps std out to files
default filname :
stdout = tc_output.txt | 6259904329b78933be26aa3e |
class LmkMetric(mx.metric.EvalMetric): <NEW_LINE> <INDENT> def __init__(self, lmk_count, pt_ind1, pt_ind2): <NEW_LINE> <INDENT> assert pt_ind1 < lmk_count, "pt_ind1 should be less than lmk_count" <NEW_LINE> assert pt_ind2 < lmk_count, "pt_ind2 should be less than lmk_count" <NEW_LINE> self.lmk_count = lmk_count <NEW_LI... | This metric is used for lower mxnet version.
Calculate the mean error of landmarks. The mean error is measured by
the distances between estimated landmarks and the ground truths, and
normalized with respect to the inter-ocular distance. | 62599043498bea3a75a58e15 |
class CreateEntity(object): <NEW_LINE> <INDENT> def __init__(self, entity, description=None, metadata=None, values=None, fuzzy_match=None): <NEW_LINE> <INDENT> self.entity = entity <NEW_LINE> self.description = description <NEW_LINE> self.metadata = metadata <NEW_LINE> self.values = values <NEW_LINE> self.fuzzy_match =... | CreateEntity.
:attr str entity: The name of the entity. This string must conform to the following
restrictions:
- It can contain only Unicode alphanumeric, underscore, and hyphen characters.
- It must be no longer than 64 characters.
If you specify an entity name beginning with the reserved prefix `sys-`, it must be
t... | 62599043a8ecb03325872508 |
class ContactFormHandleView(FormView): <NEW_LINE> <INDENT> form_class = ContactForm <NEW_LINE> success_url = reverse_lazy('contact-success') <NEW_LINE> template_name = 'contact.html' <NEW_LINE> def form_valid(self, form): <NEW_LINE> <INDENT> form.send_mail() <NEW_LINE> return super(ContactFormHandleView, self).form_val... | View pour traiter le contenu du formulaire de contact | 6259904330c21e258be99afe |
@attr.s <NEW_LINE> class StatMapping(object): <NEW_LINE> <INDENT> text = attr.ib() <NEW_LINE> mapValue = attr.ib(default="", validator=instance_of(str)) <NEW_LINE> startValue = attr.ib(default="", validator=instance_of(str)) <NEW_LINE> endValue = attr.ib(default="", validator=instance_of(str)) <NEW_LINE> id = attr.ib(d... | Deprecated Grafana v8
Generates json structure for the value mapping for the Stat panel:
:param text: Sting that will replace input value
:param value: Value to be replaced
:param startValue: When using a range, the start value of the range
:param endValue: When using a range, the end value of the range
:param id: pan... | 6259904363b5f9789fe86463 |
class CustomLanguageCode(SQLBase): <NEW_LINE> <INDENT> implements(ICustomLanguageCode) <NEW_LINE> _table = 'CustomLanguageCode' <NEW_LINE> product = ForeignKey( dbName='product', foreignKey='Product', notNull=False, default=None) <NEW_LINE> distribution = ForeignKey( dbName='distribution', foreignKey='Distribution', no... | See `ICustomLanguageCode`. | 62599043d7e4931a7ef3d36e |
class Model(Supermodel): <NEW_LINE> <INDENT> def __init__(self, uuid, name: str): <NEW_LINE> <INDENT> super(Model, self).__init__(uuid, name) <NEW_LINE> self.step = 0 <NEW_LINE> self.current_time = 0 <NEW_LINE> self.future = 0 <NEW_LINE> self.async_future = None <NEW_LINE> self.outputs['time'] = Output('Time', unit='s'... | schedules the func gates of the agent
sets the number of elapsed rounds as output | 62599043d99f1b3c44d06996 |
class Engine(ABC): <NEW_LINE> <INDENT> def __init__(self, game): <NEW_LINE> <INDENT> self.game = game <NEW_LINE> <DEDENT> def isTalkative(self): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def placeShips(self): <NEW_LINE> <INDENT> raise NotImplementedError("Override me") <NEW_LINE> <... | Base class for different implementations designed to play Battleships | 6259904323849d37ff8523b3 |
class ElVatRules(EuVatRulesMixin): <NEW_LINE> <INDENT> def get_vat_rate(self, item_type): <NEW_LINE> <INDENT> return Decimal(24) | VAT rules for Greece.
| 62599043a79ad1619776b378 |
class WithdrawVirtualMoneyViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> authentication_classes = (TokenAuthentication,) <NEW_LINE> permission_classes = (IsAuthenticated,) <NEW_LINE> serializer_class = TransactionSerializer <NEW_LINE> queryset = Transaction.objects.all() <NEW_LINE> def create(self, request, *args,... | Viewset for money withdrawal from wallet | 6259904323e79379d538d7f7 |
class BusLine(object): <NEW_LINE> <INDENT> def __init__(self, stop_list = [], bus_id = None): <NEW_LINE> <INDENT> self.stop_list = stop_list <NEW_LINE> self.bus_id = bus_id <NEW_LINE> <DEDENT> def append(self, stop_obj): <NEW_LINE> <INDENT> self.stop_list.append(stop_obj) <NEW_LINE> <DEDENT> def set_BusID(self, newid):... | This BusLine class is supposed to hold basic info about a bus and all its stops | 625990431f5feb6acb163eee |
class AnonymousOrg(object): <NEW_LINE> <INDENT> def __init__(self, org): <NEW_LINE> <INDENT> self.org = org <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> self.org.is_anon = True <NEW_LINE> self.org.save() <NEW_LINE> <DEDENT> def __exit__(self, exc_type, exc_val, exc_tb): <NEW_LINE> <INDENT> self.org.is_a... | Makes the given org temporarily anonymous | 62599043b57a9660fecd2d76 |
class QCommonStyle(QStyle): <NEW_LINE> <INDENT> def childEvent(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def connectNotify(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def customEvent(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def disconnectNo... | QCommonStyle() | 62599043d6c5a102081e341f |
class NeuroM_SomaDiamTest_Range(sciunit.Test): <NEW_LINE> <INDENT> score_type = morphounit.scores.RangeScore <NEW_LINE> id = "/tests/7?version=11" <NEW_LINE> def __init__(self, observation={}, name="NeuroM soma diameter - range"): <NEW_LINE> <INDENT> description = ("Tests the soma diameter for morphologies loaded via N... | Tests the soma diameter for morphologies loaded via NeuroM
Compares against Min, Max allowed range;
Score = True if within range, False otherwise | 6259904366673b3332c316f3 |
class General404Tests(SeleniumTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.visit('/i-am-so/long-that/I-probably/dont-exist') <NEW_LINE> <DEDENT> def test_has_correct_title(self): <NEW_LINE> <INDENT> self.assert_title_equals("Page Not Found") <NEW_LINE> <DEDENT> def test_has_correct_page_head... | Test General Expectations for the Custom 404 Page. | 625990438da39b475be044e9 |
class ThreadedServer: <NEW_LINE> <INDENT> def __init__( self, port: int, scenarios_dir: pathlib.Path, stdout: TextIO, stderr: TextIO ) -> None: <NEW_LINE> <INDENT> self.port = port <NEW_LINE> self.scenarios_dir = scenarios_dir <NEW_LINE> self.stdout = stdout <NEW_LINE> self.stderr = stderr <NEW_LINE> class Handler(http... | Encapsulate a HTTP server running in a separate thread. | 62599043d7e4931a7ef3d370 |
class ScraperNotFoundError(ScraperError): <NEW_LINE> <INDENT> pass | No se encuentra el scraper solicitado | 62599043379a373c97d9a324 |
class TextInput(FormControlMixin, widgets.TextInput): <NEW_LINE> <INDENT> pass | Add css class 'form-control' to input-tag | 62599043dc8b845886d548b3 |
class EditProfileView(mixins.LoggedInOnlyView, SuccessMessageMixin, UpdateView): <NEW_LINE> <INDENT> model = models.User <NEW_LINE> template_name = "users/edit-profile.html" <NEW_LINE> fields = [ "first_name", "last_name", "gender", "bio", "birthday", "language", "currency", ] <NEW_LINE> success_message = "Profile Upda... | EditProfile View Definition | 62599043b5575c28eb713646 |
class PagerdutyTestCase(TestCase, LoaderModuleMockMixin): <NEW_LINE> <INDENT> def setup_loader_modules(self): <NEW_LINE> <INDENT> return {pagerduty: {}} <NEW_LINE> <DEDENT> def test_create_event(self): <NEW_LINE> <INDENT> name = "This is a server warning message" <NEW_LINE> details = "This is a much more detailed messa... | Test cases for salt.states.pagerduty | 62599043a79ad1619776b37a |
class Create(Command): <NEW_LINE> <INDENT> name = 'create' <NEW_LINE> def setup_parser(self, parser): <NEW_LINE> <INDENT> self.parser = parser <NEW_LINE> template_url = settings.get('project_template_url', MASTER_TEMPLATE_URL) <NEW_LINE> self.parser.add_argument( 'path', metavar='PATH', type=str, help='The path to crea... | Create a new template | 62599043c432627299fa427f |
class CensysTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> load_dotenv(find_dotenv()) <NEW_LINE> self.ipaddr = getenv('IPADDR') <NEW_LINE> self.ip_info = censys.CensysLookup(self.ipaddr) <NEW_LINE> <DEDENT> def test_get_openports(self): <NEW_LINE> <INDENT> portlist = self.ip_info.get_... | Testing for censys.py module | 62599043d10714528d69f00a |
class ApiListClientApprovalsHandler(ApiListApprovalsHandlerBase): <NEW_LINE> <INDENT> args_type = ApiListClientApprovalsArgs <NEW_LINE> result_type = ApiListClientApprovalsResult <NEW_LINE> def _CheckClientId(self, client_id, approval): <NEW_LINE> <INDENT> subject = approval.Get(approval.Schema.SUBJECT) <NEW_LINE> retu... | Returns list of user's clients approvals. | 6259904382261d6c52730842 |
class ILDAPServer(IContained, ILDAPServerConfiguration): <NEW_LINE> <INDENT> pass | A LDAP server
| 625990438a349b6b43687545 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.