code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class StructureError(Exception): <NEW_LINE> <INDENT> pass | Represents cases in which an algebraic structure was expected to have a
certain property, or be of a certain type, but was not. | 6259904e30dc7b76659a0c99 |
class super_aes(object): <NEW_LINE> <INDENT> def __init__(self, key): <NEW_LINE> <INDENT> self.key = key <NEW_LINE> <DEDENT> def encrypt(self, in_path, out_path): <NEW_LINE> <INDENT> os.system(r".\Script\openssl.exe enc -aes-256-cbc -e -k {} -in {} -out {}".format(self.key, in_path, out_path) ) <NEW_LINE> os.remove(in_... | AES加密解密类,因为调用的是系统的openssl,如果不存在可以下载它并添加到系统环境变量
或者使用绝对、相对路径来指定具体位置 | 6259904e0a50d4780f7067ef |
class Entry(models.Model): <NEW_LINE> <INDENT> topic = models.ForeignKey(Topic, on_delete=models.CASCADE) <NEW_LINE> text = models.TextField() <NEW_LINE> date_added = models.DateTimeField(auto_now_add=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> verbose_name_plural = 'entries' <NEW_LINE> <DEDENT> def __str__(self):... | Something specific learned about a topic. Each entry needs to be
associated with a particular topic. This is a many to one relationship because
many entries will need to be associated with one Topic | 6259904e4428ac0f6e659997 |
class PrivateIngredientsApiTests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.client = APIClient() <NEW_LINE> self.user = get_user_model().objects.create_user( 'test@test.com', 'testpass' ) <NEW_LINE> self.client.force_authenticate(self.user) <NEW_LINE> <DEDENT> def test_retrieve_ingredient_... | Test the private ingredients API | 6259904e82261d6c527308f9 |
class AttachmentType(Enum): <NEW_LINE> <INDENT> FILE = 1 <NEW_LINE> ITEM = 2 <NEW_LINE> REFERENCE = 3 | OData attachment type. | 6259904e7d847024c075d838 |
class ZDT1to3_g: <NEW_LINE> <INDENT> def __init__(self, num_variables): <NEW_LINE> <INDENT> self.num_variables = num_variables <NEW_LINE> <DEDENT> def __call__(self, phenome): <NEW_LINE> <INDENT> n = len(phenome) <NEW_LINE> assert n == self.num_variables <NEW_LINE> temp_sum = 0.0 <NEW_LINE> for i in range(1, n): <NEW_L... | The g function for ZDT1, ZDT2 and ZDT3. | 6259904ee76e3b2f99fd9e65 |
class Repo(object): <NEW_LINE> <INDENT> def __init__(self, repo_uri): <NEW_LINE> <INDENT> self.repo_uri = repo_uri <NEW_LINE> cachedir = os.path.join(__opts__['cachedir'], 'hg_pillar') <NEW_LINE> hash_type = getattr(hashlib, __opts__.get('hash_type', 'md5')) <NEW_LINE> if six.PY2: <NEW_LINE> <INDENT> repo_hash = hash_t... | Deal with remote hg (mercurial) repository for Pillar | 6259904eac7a0e7691f73940 |
class Plugin(CommandLookupMixin): <NEW_LINE> <INDENT> implements(IEridanusPlugin) <NEW_LINE> name = _NameDescriptor() <NEW_LINE> pluginName = _PluginNameDescriptor() <NEW_LINE> axiomCommands = () | Simple plugin mixin. | 6259904e498bea3a75a58f85 |
class WarpCTC(chainer.Chain): <NEW_LINE> <INDENT> def __init__(self, odim, eprojs, dropout_rate): <NEW_LINE> <INDENT> super(WarpCTC, self).__init__() <NEW_LINE> self.dropout_rate = dropout_rate <NEW_LINE> self.loss = None <NEW_LINE> with self.init_scope(): <NEW_LINE> <INDENT> self.ctc_lo = L.Linear(eprojs, odim) <NEW_L... | Chainer implementation of warp-ctc layer.
Args:
odim (int): The output dimension.
eproj (int | None): Dimension of input vector from encoder.
dropout_rate (float): Dropout rate. | 6259904e45492302aabfd938 |
class TubPublisher(BaseClient): <NEW_LINE> <INDENT> def __init__(self, config_path='mqtt/brokers.yml', stage='test', debug=False): <NEW_LINE> <INDENT> config = BrokerConfig(BROKER, stage) <NEW_LINE> client_id = config.get_value(BROKER, stage, KEY_CLIENT_ID) <NEW_LINE> host = config.get_value(BROKER, stage, KEY_HOST) <N... | tubデータのJSON分のみMQTTサーバへpublishするクライアントクラス。
Vehiecleフレームワークへadd可能なpartクラスでもある。 | 6259904e004d5f362081fa1b |
class Wrapper(object): <NEW_LINE> <INDENT> def __init__(self, picklefile=None): <NEW_LINE> <INDENT> if picklefile is None: <NEW_LINE> <INDENT> with open(DEFAULT_MODEL, 'rb') as infile: <NEW_LINE> <INDENT> self.model = pickle.load(infile) <NEW_LINE> <DEDENT> <DEDENT> else: <NEW_LINE> <INDENT> self.model = pickle.load(pi... | A wrapper class for pickled Learners. | 6259904e435de62698e9d26c |
class ExpectimaxAgent(MultiAgentSearchAgent): <NEW_LINE> <INDENT> def expectimax(self, gameState, agent, depth): <NEW_LINE> <INDENT> from decimal import Decimal <NEW_LINE> neg_inf = Decimal('-Infinity') <NEW_LINE> if agent==gameState.getNumAgents(): <NEW_LINE> <INDENT> return self.expectimax(gameState, 0, depth-1) <NEW... | Your expectimax agent (question 4) | 6259904e29b78933be26aaf5 |
class AesBlumenthal256(aesbase.AbstractAesBlumenthal): <NEW_LINE> <INDENT> serviceID = (1, 3, 6, 1, 4, 1, 9, 12, 6, 1, 2) <NEW_LINE> keySize = 32 | AES 256 bit encryption (Internet draft)
http://tools.ietf.org/html/draft-blumenthal-aes-usm-04 | 6259904ebaa26c4b54d50710 |
class JSONEncoder(BaseJSONEncoder): <NEW_LINE> <INDENT> default_model_iter = ModelFormatterIter <NEW_LINE> def default(self, obj): <NEW_LINE> <INDENT> if isinstance(obj, BaseModel): <NEW_LINE> <INDENT> return self.default(self.default_model_iter(obj)) <NEW_LINE> <DEDENT> elif isinstance(obj, BaseFormatterIter): <NEW_LI... | Json encoder for Dirty Models | 6259904eb57a9660fecd2ee2 |
class SentimentBatchResultItem(Model): <NEW_LINE> <INDENT> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'score': {'key': 'score', 'type': 'float'}, 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(SentimentBatchResultItem, ... | SentimentBatchResultItem.
:param id: Unique, non-empty document identifier.
:type id: str
:param score: A decimal number between 0 and 1 denoting the sentiment of
the document. A score above 0.7 usually refers to a positive document
while a score below 0.3 normally has a negative connotation. Mid values
refer to ne... | 6259904e30dc7b76659a0c9b |
class FakeTTYStdout(StringIO.StringIO): <NEW_LINE> <INDENT> def isatty(self): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> def write(self, data): <NEW_LINE> <INDENT> if data.startswith('\r'): <NEW_LINE> <INDENT> self.seek(0) <NEW_LINE> data = data[1:] <NEW_LINE> <DEDENT> return StringIO.StringIO.write(self, data... | A Fake stdout that try to emulate a TTY device as much as possible. | 6259904ecad5886f8bdc5ab1 |
class WorkerPool(object): <NEW_LINE> <INDENT> def __init__(self, queues, *args, **kwargs): <NEW_LINE> <INDENT> self._args = args <NEW_LINE> self._kwargs = kwargs <NEW_LINE> self._queues = queues <NEW_LINE> self._sentinel_worker = None <NEW_LINE> self.waiting_time = kwargs.pop("waiting_time", 10) <NEW_LINE> <DEDENT> def... | Manage a set of workers and recreate worker when worker dead.
| 6259904e1f037a2d8b9e529f |
class HeadFootBorder(Border): <NEW_LINE> <INDENT> WIDTH_MAXIMUM = 100 <NEW_LINE> def head(self, width): <NEW_LINE> <INDENT> spacing = " " * int((self.WIDTH_MAXIMUM - width) / 2) <NEW_LINE> draw = '{}{}{}{}{}'.format( spacing, self.up_border['ul'], self.up_border['up'] * (width - 2), self.up_border['ur'], spacing) <NEW_... | Building the head and the foot of a border | 6259904ee5267d203ee6cd51 |
class BaseModel(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def _get_param_names(cls): <NEW_LINE> <INDENT> init = getattr(cls.__init__, 'deprecated_original', cls.__init__) <NEW_LINE> if init is object.__init__: <NEW_LINE> <INDENT> return [] <NEW_LINE> <DEDENT> init_signature = signature(init) <NEW_LINE> param... | Base class for all Models in DIG
Notes
-----
All Models should specify all the parameters that can be set
at the class level in their ``__init__`` as explicit keyword
arguments (no ``*args`` or ``**kwargs``). | 6259904e6e29344779b01aa9 |
class Control: <NEW_LINE> <INDENT> def __init__(self, widget, name=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.widget = widget | A control which can be placed in a Tweak.List | 6259904ef7d966606f7492eb |
class FileAttributes(FSLocation): <NEW_LINE> <INDENT> __file_attributes__ = [] <NEW_LINE> def __getattribute__(self, name): <NEW_LINE> <INDENT> if name in object.__getattribute__(self, '__file_attributes__'): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> with open(os.path.join(self.fs_path, name), 'r') as file: <NEW_LIN... | Mixin for objects handling attributes stored in files. A single file
represents a single attribute where the file name is the attribute name
and the file content is the attribute value. | 6259904e4428ac0f6e659999 |
class Party: <NEW_LINE> <INDENT> pass | A political party with a platform, pointer to jurisdiction, and heuristic for adaptation. | 6259904ee64d504609df9e02 |
class Wapi(Flask): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__(__name__) <NEW_LINE> self.config_json = config().json <NEW_LINE> self.setup_routes() <NEW_LINE> self.reload() <NEW_LINE> <DEDENT> def reload(self): <NEW_LINE> <INDENT> self.config['SERVER_NAME'] = self.config_json['server'][... | docstring for AdminRouter | 6259904e8da39b475be0464c |
class InputStreamLength(object): <NEW_LINE> <INDENT> swagger_types = { 'stream': 'InputStream', 'length': 'int', 'name': 'str', 'character_encoding': 'str', 'extension': 'str' } <NEW_LINE> attribute_map = { 'stream': 'stream', 'length': 'length', 'name': 'name', 'character_encoding': 'characterEncoding', 'extension': '... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259904e24f1403a92686301 |
class ProductMethodTests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_model_can_create_a_product(self): <NEW_LINE> <INDENT> pass | This class defines the test suite for the Product model. | 6259904e26068e7796d4ddab |
class CrispyFormMixin(object): <NEW_LINE> <INDENT> def get_form(self, form_class=None): <NEW_LINE> <INDENT> form = super(CrispyFormMixin, self).get_form(form_class) <NEW_LINE> form.helper = default_crispy_helper() <NEW_LINE> return form | Mixin to add Crispy form helper. | 6259904e507cdc57c63a6207 |
class TuyaFanDevice(TuyaDevice, FanEntity): <NEW_LINE> <INDENT> def __init__(self, tuya, platform): <NEW_LINE> <INDENT> super().__init__(tuya, platform) <NEW_LINE> self.entity_id = ENTITY_ID_FORMAT.format(tuya.object_id()) <NEW_LINE> self.speeds = [] <NEW_LINE> <DEDENT> async def async_added_to_hass(self): <NEW_LINE> <... | Tuya fan devices. | 6259904e29b78933be26aaf6 |
class Obliteration(Rule): <NEW_LINE> <INDENT> kind = 'obliteration' <NEW_LINE> def __init__(self, **kwcontexts): <NEW_LINE> <INDENT> self.contexts = self.Contexts(**kwcontexts) <NEW_LINE> if not self.contexts: <NEW_LINE> <INDENT> raise ValueError(f'{self!r} no context.') <NEW_LINE> <DEDENT> <DEDENT> def __repr__(self):... | Delete the first context matching head, if applicable delete the resulting empty slot. | 6259904e76d4e153a661dcac |
class WeixinService(business_model.Model): <NEW_LINE> <INDENT> __slots__ = ( 'id', 'authorizer_appid', 'authorizer_access_token', 'user_id', 'access_token', 'weixin_api' ) <NEW_LINE> def __init__(self, model): <NEW_LINE> <INDENT> business_model.Model.__init__(self) <NEW_LINE> self.context['db_model'] = model <NEW_LINE>... | 微信service | 6259904e7cff6e4e811b6ea3 |
class PyrUnit(nn.Layer): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels, strides, bottleneck, data_format="channels_last", **kwargs): <NEW_LINE> <INDENT> super(PyrUnit, self).__init__(**kwargs) <NEW_LINE> assert (out_channels >= in_channels) <NEW_LINE> self.data_format = data_format <NEW_LINE> self.re... | PyramidNet unit with residual connection.
Parameters:
----------
in_channels : int
Number of input channels.
out_channels : int
Number of output channels.
strides : int or tuple/list of 2 int
Strides of the convolution.
bottleneck : bool
Whether to use a bottleneck or simple block in units.
data_format... | 6259904e30dc7b76659a0c9d |
class Session: <NEW_LINE> <INDENT> def __init__(self, conn): <NEW_LINE> <INDENT> self._cfg_ = ConfigObj("ipall.cfg") <NEW_LINE> self._url_ = self._cfg_['Server']['web_dir'] <NEW_LINE> self._conn_ = conn <NEW_LINE> <DEDENT> def check_user(self): <NEW_LINE> <INDENT> if os.environ.has_key('HTTP_COOKIE') and os.environ['HT... | helper class for handling session cookies and users | 6259904e3539df3088ecd70b |
class Gist(msgs.Message): <NEW_LINE> <INDENT> id = msgs.IntegerField(1, default=0) <NEW_LINE> url = msgs.StringField(2) <NEW_LINE> description = msgs.StringField(3) <NEW_LINE> public = msgs.BooleanField(4, default=True) <NEW_LINE> user = msgs.MessageField('User', 5) <NEW_LINE> comments = msgs.IntegerField(6, default=0)... | {
"files": {
"ring.erl": {
"size": 932,
"filename": "ring.erl",
"raw_url": "https://gist.github.com/raw/365370/8c4d2d43d178df44f4c03a7f2ac0ff512853564e/ring.erl"
}
}
"history": [
{
"url": "https://api.github.com/gists/14a2302d4083e5331759",
"version": "57a7f021a713b1c5a6a199b54cc514735d2d462f"... | 6259904e55399d3f05627983 |
class Deprecated: <NEW_LINE> <INDENT> _warn = functools.partial( warnings.warn, "SelectableGroups dict interface is deprecated. Use select.", DeprecationWarning, stacklevel=2, ) <NEW_LINE> def __getitem__(self, name): <NEW_LINE> <INDENT> self._warn() <NEW_LINE> return super().__getitem__(name) <NEW_LINE> <DEDENT> def g... | Compatibility add-in for mapping to indicate that
mapping behavior is deprecated.
>>> recwarn = getfixture('recwarn')
>>> class DeprecatedDict(Deprecated, dict): pass
>>> dd = DeprecatedDict(foo='bar')
>>> dd.get('baz', None)
>>> dd['foo']
'bar'
>>> list(dd)
['foo']
>>> list(dd.keys())
['foo']
>>> 'foo' in dd
True
>>>... | 6259904e91af0d3eaad3b28d |
class NumArray: <NEW_LINE> <INDENT> def __init__(self, nums: List[int]): <NEW_LINE> <INDENT> self.nums = nums <NEW_LINE> <DEDENT> def sumRange(self, left: int, right: int) -> int: <NEW_LINE> <INDENT> return sum(self.nums[left:right + 1]) | 15 / 15 test cases passed.
Status: Accepted
Runtime: 1100 ms
Memory Usage: 17.7 MB | 6259904ee64d504609df9e03 |
class recalculate_commision_wizard(orm.TransientModel): <NEW_LINE> <INDENT> _name = 'recalculate.commission.wizard' <NEW_LINE> _columns = { 'date_from': fields.date('From', required=True), 'date_to': fields.date('To', required=True), } <NEW_LINE> _defaults = { 'date_from': lambda *a: time.strftime('%Y-%m-01'), 'date_to... | settled.wizard | 6259904ed6c5a102081e3587 |
class GeoFeatureModelSerializerOptions(ModelSerializerOptions): <NEW_LINE> <INDENT> def __init__(self, meta): <NEW_LINE> <INDENT> super(GeoFeatureModelSerializerOptions, self).__init__(meta) <NEW_LINE> self.geo_field = getattr(meta, 'geo_field', None) <NEW_LINE> self.id_field = getattr(meta, 'id_field', meta.model._met... | Options for GeoFeatureModelSerializer | 6259904e45492302aabfd93c |
class IP3366Fetcher(BaseFetcher): <NEW_LINE> <INDENT> def fetch(self): <NEW_LINE> <INDENT> urls = [] <NEW_LINE> for stype in ['1', '2']: <NEW_LINE> <INDENT> for page in range(1, 6): <NEW_LINE> <INDENT> url = f'http://www.ip3366.net/free/?stype={stype}&page={page}' <NEW_LINE> urls.append(url) <NEW_LINE> <DEDENT> <DEDENT... | http://www.ip3366.net/free/?stype=1 | 6259904ed53ae8145f9198cc |
class _ConsoleWriter(object): <NEW_LINE> <INDENT> def __init__(self, logger, output_filter, stream_wrapper, always_flush=False): <NEW_LINE> <INDENT> self.__logger = logger <NEW_LINE> self.__filter = output_filter <NEW_LINE> self.__stream_wrapper = stream_wrapper <NEW_LINE> self.__always_flush = always_flush <NEW_LINE> ... | A class that wraps stdout or stderr so we can control how it gets logged.
This class is a stripped down file-like object that provides the basic
writing methods. When you write to this stream, if it is enabled, it will be
written to stdout. All strings will also be logged at DEBUG level so they
can be captured by th... | 6259904ea79ad1619776b4e9 |
class TestRecursionLimit(object): <NEW_LINE> <INDENT> def setup_method(self, method): <NEW_LINE> <INDENT> self._oldlimit = sys.getrecursionlimit() <NEW_LINE> sys.setrecursionlimit(100) <NEW_LINE> size = 10000 <NEW_LINE> self._make_data(size) <NEW_LINE> <DEDENT> def _make_data(self, size): <NEW_LINE> <INDENT> data1 = np... | Test that we can efficiently compute deep dendrogram trees
without hitting the recursion limit.
Note: plot() uses recursion but we should be able to *compute*
dendrograms without using deep recursion, even if we aren't
yet able to plot them without using recursion. | 6259904e3617ad0b5ee075a9 |
class ShowLacpNeighbor(ShowLacpNeighbor_iosxe): <NEW_LINE> <INDENT> pass | Parser for :
show lacp neighbor | 6259904e16aa5153ce401957 |
class User(ModelBase): <NEW_LINE> <INDENT> __dump_attributes__ = ["name", "address", "send_newsletter", "language"] <NEW_LINE> user_id = None <NEW_LINE> name = None <NEW_LINE> email = None <NEW_LINE> address = None <NEW_LINE> verified_email = None <NEW_LINE> send_newsletter = None <NEW_LINE> language = None <NEW_LINE> ... | Object representing an user | 6259904ed486a94d0ba2d42f |
class KeepAliveRPCProvider(RPCProvider): <NEW_LINE> <INDENT> def __init__(self, host="127.0.0.1", port=8545, path="/", **kwargs): <NEW_LINE> <INDENT> super(KeepAliveRPCProvider, self).__init__( host, port, path, **kwargs ) | Deprecated: Use HTTPProvider instead. | 6259904e73bcbd0ca4bcb6f3 |
class StandardParser(BaseParser): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def _parse_row(cls, row): <NEW_LINE> <INDENT> line_strip = row.split('=') <NEW_LINE> if not line_strip[0].startswith('#') and row.strip() != '': <NEW_LINE> <INDENT> return line_strip[0], cls._parse_value(line_strip[1].strip()) <NEW_LINE> <DED... | Дефолтный простой пасрер.
Преобразует булевы значения и числа. | 6259904e07f4c71912bb089f |
class InternalAPIError(WalkScoreError): <NEW_LINE> <INDENT> pass | Internal error within the WalkScore API itself. Inherits from
:class:`WalkScoreError`. | 6259904e8da39b475be0464f |
class Rule(models.Model): <NEW_LINE> <INDENT> SKILL_RULE = 'SkillRule' <NEW_LINE> HEADER_RULE = 'HeaderRule' <NEW_LINE> ORIGIN_RULE = 'OriginRule' <NEW_LINE> GRANT_RULE = 'GrantRule' <NEW_LINE> RULE_REQUIREMENT_CHOICES = ( (SKILL_RULE, 'Skill Rule'), (HEADER_RULE, 'Header Rule'), (ORIGIN_RULE, 'Origin Rule'), (GRANT_RU... | Rules that change what skills/headers cost.
Origins or other attributes may change what a skill costs.
Rules track those changes and should be run when adding up
character point changes/totals.
Grant skills are skills that have the Boolean "free" field set to true:
When a character fulfills the requirement,
they get... | 6259904e009cb60464d029a3 |
class LogTransformer(BaseTransformer): <NEW_LINE> <INDENT> _tags = { "scitype:transform-input": "Series", "scitype:transform-output": "Series", "scitype:instancewise": True, "X_inner_mtype": "np.ndarray", "y_inner_mtype": "None", "transform-returns-same-time-index": True, "fit_is_empty": True, "univariate-only": False,... | Natural logarithm transformation.
The natural log transformation can used to make data more normally
distributed and stabilize its variance.
See Also
--------
BoxCoxTransformer :
Applies Box-Cox power transformation. Can help normalize data and
compress variance of the series.
sktime.transformations.series.ex... | 6259904edc8b845886d54a28 |
class AbstractPlayer: <NEW_LINE> <INDENT> def __init__(self, setup_time, player_color, time_per_k_turns, k): <NEW_LINE> <INDENT> self.setup_time = setup_time <NEW_LINE> self.color = player_color <NEW_LINE> self.time_per_k_turns = time_per_k_turns <NEW_LINE> self.k = k <NEW_LINE> <DEDENT> def get_move(self, game_state, ... | Your player must inherit from this class, and your player class name must be 'Player', as in the given examples.
Like this: 'class Player(abstract.AbstractPlayer):'
| 6259904e3cc13d1c6d466ba4 |
class ButlerClient(object): <NEW_LINE> <INDENT> def __init__(self, butler, url, *args, **kwargs): <NEW_LINE> <INDENT> self.url = url.rstrip('/') <NEW_LINE> self.butler = butler(*args, **kwargs) <NEW_LINE> self.functions = {} <NEW_LINE> self.session = requests.Session() <NEW_LINE> self.response = None <NEW_LINE> self.bu... | ButlerClient is function factory for a Butler server.
for each function in the Butler server, there is equvivalent function in the client
with the same parameters, and can send the request to the Butler instance | 6259904ed6c5a102081e3588 |
class NaluTaskCLI: <NEW_LINE> <INDENT> def __init__(self, subparsers, subcmd_name="tasks"): <NEW_LINE> <INDENT> parser = subparsers.add_parser( subcmd_name, description="Run pre/post-processing tasks as defined in YAML file", help="run pre/post processing tasks", epilog=get_epilog()) <NEW_LINE> parser.add_argument( '-l... | Nalu-Wind Tasks sub-command | 6259904e3539df3088ecd70d |
class BetaProtocolStub(object): <NEW_LINE> <INDENT> def Run(self, request_iterator, timeout, metadata=None, with_call=False, protocol_options=None): <NEW_LINE> <INDENT> pass <NEW_LINE> raise NotImplementedError() | The Beta API is deprecated for 0.15.0 and later.
It is recommended to use the GA API (classes and functions in this
file not marked beta) for all further purposes. This class was generated
only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0. | 6259904e82261d6c527308fc |
class DatabaseManagementTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.arango = Arango() <NEW_LINE> self.db_name = generate_db_name(self.arango) <NEW_LINE> self.addCleanup(self.arango.delete_database, name=self.db_name, safe_delete=True) <NEW_LINE> <DEDENT> def test_database_crea... | Tests for managing ArangoDB databases. | 6259904e91af0d3eaad3b28f |
class TestWords(unittest.TestCase): <NEW_LINE> <INDENT> def test_word_occurance1(self): <NEW_LINE> <INDENT> self.assertDictEqual( {'word': 1}, words('word'), msg='should count one word' ) <NEW_LINE> <DEDENT> def test_word_occurance2(self): <NEW_LINE> <INDENT> self.assertDictEqual( {'one': 1, 'of': 1, 'each': 1}, words(... | Test cases for the words function | 6259904eb830903b9686eeb0 |
class UploadImageForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = UserProfile <NEW_LINE> fields = ['image'] | 用户更改图像 | 6259904e8e7ae83300eea4ff |
class OaiSetMask(Transparent): <NEW_LINE> <INDENT> def __init__(self, setsMask, name=None): <NEW_LINE> <INDENT> Transparent.__init__(self, name=name) <NEW_LINE> self._setsMask = set(setsMask) <NEW_LINE> <DEDENT> def oaiSelect(self, setsMask=None, *args, **kwargs): <NEW_LINE> <INDENT> return self.call.oaiSelect(setsMask... | A setsMask needs to be specified as a list or set of setSpecs.
If more than one setSpec is specified (in a single instance or by chaining),
the mask takes the form of the intersection of these setSpecs. | 6259904ee64d504609df9e04 |
class TempsViewSet(ReadOnlyModelViewSetWithCountModified): <NEW_LINE> <INDENT> queryset = Temps.objects.all() <NEW_LINE> serializer_class = TempsSerializer | Example API Model View Set - Read Only.
API's included with the ReadOnlyModelViewSetWithCountModified base ViewSet:
1) '/api/api_example/temps/' - This is the base api that returns all detail.
2) '/api/api_example/temps/count/' - Returns the record count.
3) '/api/api_example/temps/modified/' - Returns only the PK an... | 6259904ed53ae8145f9198cd |
class NLTKCollocations: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> nltk.data.find('corpora/brown') <NEW_LINE> <DEDENT> except LookupError: <NEW_LINE> <INDENT> if license_prompt('brown data set', 'http://www.nltk.org/nltk_data/') is False: <NEW_LINE> <INDENT> raise Exception("ca... | NLTKCollocations score using NLTK framework on Brown dataset | 6259904e507cdc57c63a620b |
class TestBug690154(unittest.TestCase): <NEW_LINE> <INDENT> def make_test(self): <NEW_LINE> <INDENT> test = """1 = foo""" <NEW_LINE> fd, path = tempfile.mkstemp() <NEW_LINE> os.write(fd, test) <NEW_LINE> os.close(fd) <NEW_LINE> return path <NEW_LINE> <DEDENT> def test_JSON_structure(self): <NEW_LINE> <INDENT> passes = ... | JSON structure when test throws a global exception:
https://bugzilla.mozilla.org/show_bug.cgi?id=690154 | 6259904e07f4c71912bb08a0 |
class CowrieDailyLogFile(logfile.DailyLogFile): <NEW_LINE> <INDENT> def suffix(self, tupledate): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return "{:02d}-{:02d}-{:02d}".format(tupledate[0], tupledate[1], tupledate[2]) <NEW_LINE> <DEDENT> except Exception: <NEW_LINE> <INDENT> return '_'.join(map(str, self.toDate(tupl... | Overload original Twisted with improved date formatting | 6259904fbaa26c4b54d50716 |
class TipsFromVenueResultSet(ResultSet): <NEW_LINE> <INDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None) | Retrieve the value for the "Response" output from this choreography execution. (The response from Foursquare. Corresponds to the ResponseFormat input. Defaults to JSON.) | 6259904f4e696a045264e856 |
class CustomSources(CAMB_Structure): <NEW_LINE> <INDENT> _fields_ = [("num_custom_sources", c_int, "number of sources set"), ("c_source_func", c_void_p, "Don't directly change this"), ("custom_source_ell_scales", AllocatableArrayInt, "scaling in L for outputs")] | Structure containing symoblic-compiled custom CMB angular power spectrum source functions.
Don't change this directly, instead call :meth:`.model.CAMBparams.set_custom_scalar_sources`. | 6259904f23e79379d538d969 |
class Model: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.property_int = 1 <NEW_LINE> self.property_str = "value 1" <NEW_LINE> self.property_repr = mock.MagicMock( spec=["__repr__"], __repr__=lambda _: "open_alchemy.models.RefModel()" ) | Model class for testing. | 6259904fb57a9660fecd2ee8 |
class ImageBannerSet(BannerSet): <NEW_LINE> <INDENT> banners = models.ManyToManyField(ImageBanner, related_name='banner_sets') | Containing Model for Image Banners | 6259904fd99f1b3c44d06b06 |
class ErrorDefinitionProperties(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'message': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'message': {'key': 'message', 'type': 'str'}, 'code': {'key': 'code', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(Err... | Error description and code explaining why an operation failed.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar message: Description of the error.
:vartype message: str
:param code: Error code of list gateway.
:type code: str | 6259904f009cb60464d029a5 |
class WebLogHelper(): <NEW_LINE> <INDENT> def __init__(self, filter_ip, log_file): <NEW_LINE> <INDENT> self.convert_ip_to_list(filter_ip) <NEW_LINE> self.set_log_file(log_file) <NEW_LINE> <DEDENT> def convert_ip_to_list(self, ip_or_cidr): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.filter_ip_list = [str(ipaddress... | Provides functionality to filter a given webserver logfile
based on a given IP address or a CIDR
Note:
This utility class works with common websever log formats where IP address
logged as the first string of the log line and do not support log formats
such as JSON or XML | 6259904f7cff6e4e811b6ea7 |
class TftpPacket(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.opcode = 0 <NEW_LINE> self.buffer = None <NEW_LINE> <DEDENT> def encode(self): <NEW_LINE> <INDENT> raise NotImplementedError("Abstract method") <NEW_LINE> <DEDENT> def decode(self): <NEW_LINE> <INDENT> raise NotImplementedError("... | This class is the parent class of all tftp packet classes. It is an
abstract class, providing an interface, and should not be instantiated
directly. | 6259904fcad5886f8bdc5ab4 |
class MLP(nn.Module): <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> super(MLP, self).__init__() <NEW_LINE> self.fc1 = nn.Linear(784, 256) <NEW_LINE> self.fc2 = nn.Linear(256, 128) <NEW_LINE> self.fc3 = nn.Linear(128, 64) <NEW_LINE> self.fc4 = nn.Linear(64, 10) <NEW_LINE> self.a1 = BSplineActivatio... | Simple fully-connected classifier model to demonstrate activation. | 6259904fa8ecb0332587267f |
class ArnetParseError(Exception): <NEW_LINE> <INDENT> pass | Raised if an error is encountered during parsing the arnet DBLP data | 6259904f596a897236128fe5 |
class UpdateAgent(standard.ExecuteBinaryCommand): <NEW_LINE> <INDENT> def ProcessFile(self, path, args): <NEW_LINE> <INDENT> cmd = "/usr/sbin/installer" <NEW_LINE> cmd_args = ["-pkg", path, "-target", "/"] <NEW_LINE> time_limit = args.time_limit <NEW_LINE> res = client_utils_common.Execute( cmd, cmd_args, time_limit=ti... | Updates the GRR agent to a new version. | 6259904fe76e3b2f99fd9e6d |
class StorageInterface(object): <NEW_LINE> <INDENT> @property <NEW_LINE> def analysis_backlog(self): <NEW_LINE> <INDENT> return <NEW_LINE> yield <NEW_LINE> <DEDENT> def analysis_backlog_for_path(self, path=None): <NEW_LINE> <INDENT> return <NEW_LINE> yield <NEW_LINE> <DEDENT> def last_modified(self, path=None, recursiv... | Interface of storage adapters for OctoPrint. | 6259904f3c8af77a43b68974 |
class Repository(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=255) <NEW_LINE> campus = models.ManyToManyField(Campus, blank=True) <NEW_LINE> slug = AutoSlugField(max_length=50, populate_from=('name'), editable=True) <NEW_LINE> ark = models.CharField(max_length=255, blank=True) <NEW_LINE> aeon_p... | Representation of a holding "repository" for UCLDC | 6259904f004d5f362081fa1f |
class HeadshotForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = UserProfile <NEW_LINE> fields = ['headshot'] | 修改用户头像 | 6259904fd53ae8145f9198d0 |
class HappyCat(Benchmark): <NEW_LINE> <INDENT> Name = ['HappyCat'] <NEW_LINE> def __init__(self, Lower=-100.0, Upper=100.0): <NEW_LINE> <INDENT> Benchmark.__init__(self, Lower, Upper) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def function(cls): <NEW_LINE> <INDENT> def evaluate(D, sol): <NEW_LINE> <INDENT> val1 = 0.0 ... | Implementation of Happy cat function.
Date: 2018
Author: Lucija Brezočnik
License: MIT
Function: **Happy cat function**
:math:`f(\mathbf{x}) = {\left |\sum_{i = 1}^D {x_i}^2 - D \right|}^{1/4} + (0.5 \sum_{i = 1}^D {x_i}^2 + \sum_{i = 1}^D x_i) / D + 0.5`
**Input domain:**
The function can be defined ... | 6259904fd7e4931a7ef3d4e5 |
class OptionChainData: <NEW_LINE> <INDENT> __slots__ = ['underline', 'open_spot_price', 'all_contracts', 'all_contracts_fetched'] <NEW_LINE> def __init__(self, underline: str): <NEW_LINE> <INDENT> self.underline = underline <NEW_LINE> self.open_spot_price = -1 <NEW_LINE> self.all_contracts = defaultdict(lambda: {}) <NE... | When handling options data, we keep the entire options chain, with the contract for each specific option | 6259904f99cbb53fe6832352 |
class VBScriptMode(FundamentalMode): <NEW_LINE> <INDENT> keyword = 'VBScript' <NEW_LINE> editra_synonym = 'VBScript' <NEW_LINE> stc_lexer_id = wx.stc.STC_LEX_VBSCRIPT <NEW_LINE> start_line_comment = u"'" <NEW_LINE> end_line_comment = '' <NEW_LINE> icon = 'icons/page_white.png' <NEW_LINE> default_classprefs = ( StrParam... | Stub major mode for editing VBScript files.
This major mode has been automatically generated and is a boilerplate/
placeholder major mode. Enhancements to this mode are appreciated! | 6259904f3617ad0b5ee075ad |
class NotFound(ClientError): <NEW_LINE> <INDENT> status_code = 404 | Exception mapping a ``404 Not Found`` response. | 6259904f23e79379d538d96a |
class LogisticRegression(object): <NEW_LINE> <INDENT> def __init__(self, _input, n_in, n_out): <NEW_LINE> <INDENT> self.W = shared(value=numpy.zeros((n_in, n_out), dtype=config.floatX), name='W', borrow=True) <NEW_LINE> self.b = shared(value=numpy.zeros((n_out,), dtype=config.floatX), name='b', borrow=True) <NEW_LINE> ... | Multi-class Logistic Regression Class
The logistic regression is fully described by a weight matrix :math:`W`
and bias vector :math:`b`. Classification is done by projecting data
points onto a set of hyperplanes, the distance to which is used to
determine a class membership probability. | 6259904fd486a94d0ba2d433 |
class BankAccount: <NEW_LINE> <INDENT> def __init__(self, name, balance): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.balance = balance <NEW_LINE> <DEDENT> def withdraw(self, amount): <NEW_LINE> <INDENT> self.balance -= amount <NEW_LINE> <DEDENT> def deposit(self, amount): <NEW_LINE> <INDENT> self.balance += a... | 은행 계좌 클래스 | 6259904f3eb6a72ae038bac9 |
class LocationFieldFunctionalTestCase(ptc.FunctionalTestCase): <NEW_LINE> <INDENT> pass | Common functional test base class | 6259904f7b25080760ed8714 |
class ConcatDataset(Dataset): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def cumsum(sequence): <NEW_LINE> <INDENT> r, s = [], 0 <NEW_LINE> for e in sequence: <NEW_LINE> <INDENT> l = len(e) <NEW_LINE> r.append(l + s) <NEW_LINE> s += l <NEW_LINE> <DEDENT> return r <NEW_LINE> <DEDENT> def __init__(self, datasets): <NEW_... | Dataset as a concatenation of multiple datasets.
This class is useful to assemble different existing datasets.
Arguments:
datasets (sequence): List of datasets to be concatenated | 6259904f6fece00bbaccce28 |
class SaleComplaintTestCase(ModuleTestCase): <NEW_LINE> <INDENT> module = 'sale_complaint' | Test Sale Complaint module | 6259904f30c21e258be99c73 |
class MaterielViewTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.client = Client() <NEW_LINE> <DEDENT> def test_list_materiel(self): <NEW_LINE> <INDENT> url = reverse('app_name_materiel_list') <NEW_LINE> response = self.client.get(url) <NEW_LINE> self.assertEqual(response.status_... | Tests for Materiel | 6259904f8da39b475be04653 |
class KodiProtocol(asyncio.Protocol): <NEW_LINE> <INDENT> @asyncio.coroutine <NEW_LINE> def notify(self, notification, async_notifier): <NEW_LINE> <INDENT> request = _NotificationRequest(notification) <NEW_LINE> response = yield from self._send_request(request, self.target) <NEW_LINE> return response <NEW_LINE> <DEDENT... | Kodi JSON Protocol.
Uses :mod:`aiohttp` to communicate with Kodi | 6259904f15baa723494633fb |
class TestTimestampedObject(test.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(TestTimestampedObject, self).setUp() <NEW_LINE> @base.VersionedObjectRegistry.register_if(False) <NEW_LINE> class MyTimestampedObject(base.VersionedObject, base.TimestampedObject): <NEW_LINE> <INDENT> fields = { '... | Test TimestampedObject mixin.
Do this by creating an object that uses the mixin and confirm that the
added fields are there and in fact behaves as the DateTimeFields we desire. | 6259904f009cb60464d029a7 |
class StringTable: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.table = [] <NEW_LINE> self.length = 0 <NEW_LINE> <DEDENT> def add(self, string): <NEW_LINE> <INDENT> for te in self.table: <NEW_LINE> <INDENT> if te[0].endswith(string): <NEW_LINE> <INDENT> idx = te[1] + len(te[0]) - len(string) <NEW_LI... | A class for collecting multiple strings in a single larger string that is
used by indexing (to avoid relocations in the resulting binary) | 6259904f30dc7b76659a0ca3 |
@pytest.mark.components <NEW_LINE> @pytest.allure.story('Clients') <NEW_LINE> @pytest.allure.feature('PATCH') <NEW_LINE> class Test_PFE_Components(object): <NEW_LINE> <INDENT> @pytest.allure.link('https://jira.qumu.com/browse/TC-43395') <NEW_LINE> @pytest.mark.Clients <NEW_LINE> @pytest.mark.PATCH <NEW_LINE> def test_T... | PFE Clients test cases. | 6259904f7cff6e4e811b6eaa |
class EmptyMailSubjectOrBody(ExceptionWhitoutTraceBack): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> msg = "Neither e-mail subject nor e-mail body can be left blank." <NEW_LINE> super().__init__(msg) | EmptyMailSubjectOrBody
| 6259904f4428ac0f6e6599a1 |
class MinuteQuery(QueryBase): <NEW_LINE> <INDENT> def __init__(self, symbol, start_time, end_time): <NEW_LINE> <INDENT> QueryBase.__init__(self, symbol) <NEW_LINE> if time_delta_seconds(start_time, end_time) <= 0: <NEW_LINE> <INDENT> raise RuntimeError("Supplied time range is negative.") <NEW_LINE> <DEDENT> self.start_... | This returns 1-minute resolution data for a supplied symbol.
The data should ideally be 1-minute resolution, but there may be missing minutes here and there.
Returned are timestamp (HH:MM), Price, and Volume | 6259904fa8ecb03325872681 |
class ShowPlatformFedActiveIfmMappingSchema(MetaParser): <NEW_LINE> <INDENT> schema = {'interface': {Any(): {'IF_ID': str, 'Inst': str, 'Asic': str, 'Core': str, 'IFG_ID': str, 'Port': str, 'SubPort': str, 'Mac': str, 'First_Serdes': str, 'Last_Serdes': str, 'Cntx': str, 'LPN': str, 'GPN': str, 'Type': str, 'Active': s... | Schema for show platform software fed active ifm mappings | 6259904fe76e3b2f99fd9e6f |
class DownloadPython(threading.Thread): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> log(INFO, 'Downloading embeddable Python...') <NEW_LINE> ver = '3.8.1' <NEW_LINE> arch = 'amd64' if platform.architecture()[0] == '64bit' else 'win32' <NEW_LINE> url = 'https://www.python.org/ftp/python/{ver}/python-{ver}-emb... | Non-blocking thread for extracting embeddable Python on Windows machines.
| 6259904f8da39b475be04654 |
class ExecutionError(Error): <NEW_LINE> <INDENT> def __init__(self, step, msg): <NEW_LINE> <INDENT> self.step = step <NEW_LINE> self.msg = msg <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return 'error in step {0} - {1}'.format( self.step , self.msg ) | Exception raised for errors during execution.
Attributes:
expr -- execution item in which the error occurred
msg -- explanation of the error | 6259904fa219f33f346c7c70 |
class TestError(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testError(self): <NEW_LINE> <INDENT> model = ProcessMaker_PMIO.models.error.Error() | Error unit test stubs | 6259904fd53ae8145f9198d1 |
class RoleTestCase(UITestCase): <NEW_LINE> <INDENT> @tier1 <NEW_LINE> def test_positive_create_with_name(self): <NEW_LINE> <INDENT> with Session(self.browser) as session: <NEW_LINE> <INDENT> for name in generate_strings_list(length=10): <NEW_LINE> <INDENT> with self.subTest(name): <NEW_LINE> <INDENT> make_role(session,... | Implements Roles tests from UI | 6259904fe64d504609df9e06 |
class DefConfig(object): <NEW_LINE> <INDENT> DEBUG = False <NEW_LINE> LISTEN = '0.0.0.0' <NEW_LINE> SUTEKH_PREFS = prefs_dir("Sutekh") <NEW_LINE> DATABASE_URI = sqlite_uri(os.path.join(SUTEKH_PREFS, "sutekh.db")) <NEW_LINE> ICONS = False | Default config for the web app | 6259904f379a373c97d9a49a |
class SimpleLBP(nn.Module): <NEW_LINE> <INDENT> def __init__(self, n_classes=2): <NEW_LINE> <INDENT> super(SimpleLBP, self).__init__() <NEW_LINE> self.pool = nn.MaxPool3d(2, 2) <NEW_LINE> self.conv1 = ConvLBP(1, 8, 4) <NEW_LINE> self.conv2 = nn.Conv3d(8, 8, 5) <NEW_LINE> self.conv3 = ConvLBP(8, 16, 4) <NEW_LINE> self.c... | Classifier for a binary classification task | 6259904f462c4b4f79dbce6e |
class GenericClass(): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> pass | Generic class for init of MambuMapObj | 6259904f71ff763f4b5e8c17 |
class GetM3u8HlsJob(Queueable): <NEW_LINE> <INDENT> hls_id = None <NEW_LINE> def __init__(self, hls_id): <NEW_LINE> <INDENT> self.hls_id = hls_id <NEW_LINE> <DEDENT> @func_timeout.func_set_timeout(3) <NEW_LINE> def fetch(self, qiniu, url, key): <NEW_LINE> <INDENT> bucket = qiniu.bucket() <NEW_LINE> fetch, ret = bucket.... | A GetM3u8HlsJob Job. | 6259904f0a366e3fb87dde55 |
class ParamAndHeaderTest(LimitTestBase): <NEW_LINE> <INDENT> handler_class = ParamAndHeaderHandler <NEW_LINE> def testHeaderAndParam(self): <NEW_LINE> <INDENT> os.environ['REMOTE_ADDR'] = '10.1.1.3' <NEW_LINE> for i in xrange(3): <NEW_LINE> <INDENT> self.handle('post', ('foo', 'meep')) <NEW_LINE> self.assertEquals(200,... | Tests for limiting by parameters and headers. | 6259904f07d97122c4218113 |
class ParamMeta(type): <NEW_LINE> <INDENT> def __new__(cls, classname, bases, classdict): <NEW_LINE> <INDENT> if '_params' not in classdict: <NEW_LINE> <INDENT> classdict['_params'] = {} <NEW_LINE> <DEDENT> params = classdict['_params'] <NEW_LINE> for base in bases: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> basepara... | A metaclass that lets you define params.
When creating a new class of type ParamMeta, add a dictionary named
params into the class namespace. Add Param objects to the dictionary
with the key being the name of the parameter. Now, each object of the
class will have an attribute with the appropriate name. The value wi... | 6259904f8a43f66fc4bf3607 |
class ActiveSecurityAdminRulesListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[ActiveBaseSecurityAdminRule]'}, 'skip_token': {'key': 'skipToken', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["ActiveBaseSecurityAdminRule"]] = N... | Result of the request to list active security admin rules. It contains a list of active security admin rules and a skiptoken to get the next set of results.
:param value: Gets a page of active security admin rules.
:type value: list[~azure.mgmt.network.v2021_02_01_preview.models.ActiveBaseSecurityAdminRule]
:param ski... | 6259904fe76e3b2f99fd9e70 |
class NetworkDeviceResource(Resource): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> @swag_from('../swagger/networkDevice/GET.yml') <NEW_LINE> def get(_id): <NEW_LINE> <INDENT> networkDevice = NetworkDeviceRepository.get(deviceId=deviceId) <NEW_LINE> return jsonify({'networkDevice': networkDevice.json}) <NEW_LINE> <DEDE... | Verbs relative to the users | 6259904f76d4e153a661dcb0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.