code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class IRCBot(pywikibot.Bot, SingleServerIRCBot): <NEW_LINE> <INDENT> availableOptions = { } <NEW_LINE> def __init__(self, site, channel, nickname, server, port=6667, **kwargs): <NEW_LINE> <INDENT> pywikibot.Bot.__init__(self, **kwargs) <NEW_LINE> SingleServerIRCBot.__init__(self, [(server, port)], nickname, nickname) <... | Generic IRC Bot to be subclassed
A Bot that displays the ordinal number of the new articles being created
visible on the Recent Changes list. The Bot doesn't make any edits, no
account needed. | 62598f8e26068e7796d4c552 |
class TestMakeSentence(unittest.TestCase): <NEW_LINE> <INDENT> def test_make_sentence(self): <NEW_LINE> <INDENT> dictionarys = ["", "app", "let", "t", "apple", "applet"] <NEW_LINE> word = "applet" <NEW_LINE> self.assertTrue(make_sentence(word, dictionarys)) | [summary]
Test for the file make_sentence.py
Arguments:
unittest {[type]} -- [description] | 62598f8e23e79379d538c0f5 |
class PacienteList(generics.ListCreateAPIView): <NEW_LINE> <INDENT> queryset = Paciente.objects.all() <NEW_LINE> model = Paciente <NEW_LINE> serializer_class = PacienteSerializer | API endpoint that represents a list of users | 62598f8e0383005118f6d2ee |
class HttpNER(NER): <NEW_LINE> <INDENT> def __init__(self, host='localhost', port=1234, location='/stanford-ner/ner', classifier=None, output_format='inlineXML', preserve_spacing=True, collapse=True): <NEW_LINE> <INDENT> if output_format not in ('slashTags', 'xml', 'inlineXML'): <NEW_LINE> <INDENT> raise ValueError('Ou... | Stanford NER using HTTP protocol. | 62598f8e66656f66f7d59fed |
class Suplente(Pessoa): <NEW_LINE> <INDENT> pass | Suplente do parlamentar | 62598f8ea17c0f6771d5be2d |
class SAGE(torch.nn.Module): <NEW_LINE> <INDENT> def __init__(self, num_node_features=100, num_class=18, hidden=16, dropout_rate=0.5, num_layers=2): <NEW_LINE> <INDENT> super(SAGE, self).__init__() <NEW_LINE> self.first_lin = Linear(num_node_features, hidden) <NEW_LINE> self.convs = torch.nn.ModuleList() <NEW_LINE> fo... | 多層化対応モデル(AutoGraphで使われていたモデル)
※ Conv層を(hidden→hidden)にするため前後をLinear層で挟んでいる | 62598f8e63b5f9789fe84d67 |
class CliExtension(object): <NEW_LINE> <INDENT> COMMAND_NAME: Optional[str] = None <NEW_LINE> COMMAND_DESCRIPTION: Optional[str] = None <NEW_LINE> def __init__( self, parser: argparse.ArgumentParser, device_manager: PranaDeviceManager, loop: AbstractEventLoop, ): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.p... | Allows to extend CLI interface | 62598f8ec432627299fa2bc2 |
class Place(models.base_model.BaseModel): <NEW_LINE> <INDENT> city_id = "" <NEW_LINE> user_id = "" <NEW_LINE> name = "" <NEW_LINE> description = "" <NEW_LINE> number_rooms = 0 <NEW_LINE> number_bathrooms = 0 <NEW_LINE> max_guest = 0 <NEW_LINE> price_by_night = 0 <NEW_LINE> latitude = 0.0 <NEW_LINE> longitude = 0.0 <NEW... | Place class
| 62598f8ee64d504609df91ae |
class Solution: <NEW_LINE> <INDENT> def permute(self, nums): <NEW_LINE> <INDENT> if len(nums) == 0: <NEW_LINE> <INDENT> return [] <NEW_LINE> <DEDENT> elif len(nums) == 1: <NEW_LINE> <INDENT> return [[nums[0]]] <NEW_LINE> <DEDENT> res = [] <NEW_LINE> for i in range(len(nums)): <NEW_LINE> <INDENT> temp = self.permute(num... | Given a collection of distinct integers, return all possible permutations.
Input: [1,2,3]
Output:
[
[1,2,3],
[1,3,2],
[2,1,3],
[2,3,1],
[3,1,2],
[3,2,1]
] | 62598f8ecb5e8a47e493bf6a |
class HorizontalLine(object): <NEW_LINE> <INDENT> def __init__(self, text): <NEW_LINE> <INDENT> super(HorizontalLine, self).__init__() <NEW_LINE> self.text = text <NEW_LINE> <DEDENT> def run_to_output(self): <NEW_LINE> <INDENT> return | HorizontalLine
==============
Information
-----------
Inserts a horizontal line into the text, not sure if this is supported in LaTeX | 62598f8eb57a9660fecd1673 |
class ConfirmForgotPasswordHandlerView(APIView): <NEW_LINE> <INDENT> @method_decorator(ensure_csrf_cookie) <NEW_LINE> @method_decorator(never_cache) <NEW_LINE> def post(self, request): <NEW_LINE> <INDENT> request_serializer = PasswordResetConfirmationRequestSerializerPost( data=request.data) <NEW_LINE> request_serializ... | Provides the ability to reset password. | 62598f8e8e7ae83300ee8c97 |
@skipIf(not win_timezone.HAS_PYTZ, 'This test requires pytz') <NEW_LINE> class WinTimezoneTestCase(TestCase, LoaderModuleMockMixin): <NEW_LINE> <INDENT> def setup_loader_modules(self): <NEW_LINE> <INDENT> return {win_timezone: {}} <NEW_LINE> <DEDENT> def test_get_zone(self): <NEW_LINE> <INDENT> mock_read_ok = MagicMock... | Test cases for salt.modules.win_timezone | 62598f8ed6c5a102081e1d3a |
class Param(object): <NEW_LINE> <INDENT> def __init__(self, type, **kwargs): <NEW_LINE> <INDENT> self._type = type <NEW_LINE> self.kwargs = kwargs <NEW_LINE> <DEDENT> def setup(self, target, name): <NEW_LINE> <INDENT> delattr(target, name) <NEW_LINE> setattr(target, u"_{}".format(name), self) <NEW_LINE> <DEDENT> def va... | Argument declarations for Mediators.
Params offer a way to validate the arguments passed to a Mediator as well
as set defaults.
Example Usage:
>>> class Creator(Mediator):
>>> name = Param(six.binary_type, default='example')
>>>
>>> c = Creator(name='foo')
>>> c.name
'foo'
>>> c = Cre... | 62598f8ee5267d203ee6b50d |
class Train: <NEW_LINE> <INDENT> image_processor = ImageProcessor() <NEW_LINE> training_dataset_path = root + './datasets/training/*' <NEW_LINE> def train(self): <NEW_LINE> <INDENT> network = Network() <NEW_LINE> d_input, g_input, g_output, g_output_patch_only, d_optimizer, g_optimizer, surrounding_region, p... | Train
Train is responsible for carrying out the training process. This includes:
- Loading of the dataset
- Calling methods to carry out any necessary pre-processing steps such as masking the training images
- Saving and restoring the learnt models
- Running the specified number of epochs to optimise b... | 62598f8e3eb6a72ae038a22b |
class IObjectCheckoutCanceledEvent(IObjectEvent): <NEW_LINE> <INDENT> pass | Event interface for events.ObjectCheckoutCanceledEvent
| 62598f8eb57a9660fecd1674 |
class Input: <NEW_LINE> <INDENT> __slots__ = ('name', 'type', 'hasDefault', 'default') <NEW_LINE> def __init__(self, name, type, hasDefault=False, default=None): <NEW_LINE> <INDENT> assert isinstance(name, str), 'Invalid name %s' % name <NEW_LINE> assert isinstance(type, Type), 'Invalid type %s' % type <NEW_LINE> self.... | Provides an input entry for a call, this is used for keeping the name and also the type of a call parameter. | 62598f8ea8ecb03325870df9 |
class KeyCredentialDeletedAuditEvent(KeyCredentialAuditEvent): <NEW_LINE> <INDENT> def __init__(self, sourcenode=None, message=None, severity=1, emitting_node=ua.ObjectIds.Server): <NEW_LINE> <INDENT> super(KeyCredentialDeletedAuditEvent, self).__init__(sourcenode, message, severity, emitting_node=emitting_node) <NEW_L... | KeyCredentialDeletedAuditEvent: | 62598f8e10dbd63aa1c707af |
class Project(models.Model): <NEW_LINE> <INDENT> plan = models.ForeignKey('Plan', null=True) <NEW_LINE> program = models.ForeignKey('Program', null=True) <NEW_LINE> ref_no = models.CharField(max_length=100) <NEW_LINE> contract_no = models.CharField(max_length=100, null=True) <NEW_LINE> name = models.CharField(max_lengt... | if plan is present, this project is under the plan's master_plan.
if program is present, this project is under the program. | 62598f8e76e4537e8c3ef1a3 |
class SimpleMLPMergeModel(Model): <NEW_LINE> <INDENT> def __init__(self, output_dim, name=None, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(name) <NEW_LINE> self.output_dim = output_dim <NEW_LINE> <DEDENT> def network_input_spec(self): <NEW_LINE> <INDENT> return ['input_var1', 'input_var2'] <NEW_LINE> <DEDEN... | Simple MLPMergeModel for testing. | 62598f8eb7558d589546322b |
class Location(object): <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> self._x = x <NEW_LINE> self._y = y <NEW_LINE> <DEDENT> def X(self): <NEW_LINE> <INDENT> return self._x <NEW_LINE> <DEDENT> def Y(self): <NEW_LINE> <INDENT> return self._y <NEW_LINE> <DEDENT> def DistanceTo(self, other): <NEW_LINE>... | Location simply specifies and X and Y position in space. | 62598f8ecad5886f8bdc4e88 |
class TestRandom(object): <NEW_LINE> <INDENT> def testRandomString(self): <NEW_LINE> <INDENT> length = 8 <NEW_LINE> result1 = crypto.random_string(length) <NEW_LINE> result2 = crypto.random_string(length) <NEW_LINE> assert result1 != result2, 'Expected different random strings, but got "%(result1)s" and "%(result2)s"' ... | crypto: random tests | 62598f8e004d5f362081edf5 |
class Gggg: <NEW_LINE> <INDENT> pass | yo | 62598f8e26068e7796d4c554 |
class EmailAuth: <NEW_LINE> <INDENT> def authenticate(self, username=None, password=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> user = User.objects.get(email=username) <NEW_LINE> if user.check_password(password): <NEW_LINE> <INDENT> return user <NEW_LINE> <DEDENT> return None <NEW_LINE> <DEDENT> except User.Doe... | Authenticate a user by an exact matcu on the email and password | 62598f8e596a89723612786f |
class Fellow(Person): <NEW_LINE> <INDENT> person_type = 'FELLOW' | This will be the data model for fellow | 62598f8e3cc13d1c6d46535f |
class ConstructorCachingChange(Simple): <NEW_LINE> <INDENT> def _initialize(self): <NEW_LINE> <INDENT> Simple._initialize(self) <NEW_LINE> self.get_value.set_caching(False) | Changes a connectors caching behavior within the constructor, which prevents
calling other connectors from the same line as the instantiation of the object. | 62598f8eac7a0e7691f72100 |
class AuraOfProtection(Feature): <NEW_LINE> <INDENT> name = "Aura of Protection" <NEW_LINE> source = "Paladin" | Starting at 6th level, whenever you or a friendly creature within 10 feet
of you must make a saving throw, the creature gains a bonus to the saving
throw equal to your Charisma modifier (with a minimum bonus of +1). You
must be conscious to grant this bonus.
At 18th level, the range of this aura increases to 30 feet. | 62598f8ea4f1c619b294e1df |
class FolderSubscriptionLevel(bb.Union): <NEW_LINE> <INDENT> _catch_all = None <NEW_LINE> none = None <NEW_LINE> activity_only = None <NEW_LINE> daily_emails = None <NEW_LINE> weekly_emails = None <NEW_LINE> def is_none(self): <NEW_LINE> <INDENT> return self._tag == 'none' <NEW_LINE> <DEDENT> def is_activity_only(self)... | The subscription level of a Paper folder.
This class acts as a tagged union. Only one of the ``is_*`` methods will
return true. To get the associated value of a tag (if one exists), use the
corresponding ``get_*`` method.
:ivar paper.FolderSubscriptionLevel.none: Not shown in activity, no email
messages.
:ivar pa... | 62598f8e99cbb53fe6830ac9 |
class Mediator(object): <NEW_LINE> <INDENT> pass | Defines an interface for communicating with Colleague objects. | 62598f8ea219f33f346c6410 |
@attr.s(slots=True, auto_exc=True) <NEW_LINE> class HTTPError(FacebookError): <NEW_LINE> <INDENT> status_code = attr.ib(None, type=Optional[int]) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> if not self.status_code: <NEW_LINE> <INDENT> return self.message <NEW_LINE> <DEDENT> return "Got {} response: {}".format(sel... | Base class for errors with the HTTP(s) connection to Facebook. | 62598f8e24f1403a926856aa |
class PartnerLink(models.Model): <NEW_LINE> <INDENT> object_id = models.PositiveIntegerField(verbose_name='ID объекта', db_index=True) <NEW_LINE> content_type = models.ForeignKey( ContentType, verbose_name='Тип содержимого', related_name='%(class)s_partner_links', on_delete=models.CASCADE) <NEW_LINE> partner_alias = mo... | Модель партнёрских ссылок. Ссылки могут быть привязаны к любым сущностям сайта.
Логику формирования и отображения ссылок предоставляют классы из модуля partners. | 62598f8e63d6d428bbee23b0 |
class List(base.Command): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def Args(parser): <NEW_LINE> <INDENT> parser.add_argument( '--instance', '-i', required=True, help='Cloud SQL instance ID.') <NEW_LINE> <DEDENT> def Run(self, args): <NEW_LINE> <INDENT> sql = self.context['sql'] <NEW_LINE> instance_id = util.GetInst... | Lists all SSL certs for a Cloud SQL instance. | 62598f8e090684286d5934d1 |
class EmbedFooter(Model): <NEW_LINE> <INDENT> text: str <NEW_LINE> icon_url: Optional[str] <NEW_LINE> icon_proxy_url: Optional[str] | This footer model is used to represent a discord embed's footer
This will be linked under EMBED_FOOTER. Footers are the small text you see at the bottom of an embed.
:ivar text: The footer text. Unlike many other embed properties, this will always be a string.
:vartype text: str
:ivar icon_url: A url that links to a ... | 62598f8e0a50d4780f704fc8 |
class Rel(PronType): <NEW_LINE> <INDENT> pass | relative pronoun, determiner, numeral or adverb | 62598f8e8da39b475be02dd5 |
class Meta: <NEW_LINE> <INDENT> model = UserRegistration <NEW_LINE> exclude = ('user', 'lbw_user', 'lbw') <NEW_LINE> widgets = { 'arrival_date': forms.TextInput(attrs={'class': 'datetimepicker'}), 'departure_date': forms.TextInput(attrs={'class': 'datetimepicker'}), } | Meta. | 62598f8e29b78933be269ed7 |
class AnswerWidget(RadioWidget): <NEW_LINE> <INDENT> implements(IAnswerWidget) <NEW_LINE> def updateTerms(self): <NEW_LINE> <INDENT> if self.terms is None: <NEW_LINE> <INDENT> self.terms = getMultiAdapter( (self.context, self.request, self.form, self.field, self), interfaces.ITerms) <NEW_LINE> <DEDENT> required_terms =... | This is a Choice widget constructed from the answer dictionary,
but with the answer removed, which are not childrens of the current questions. | 62598f8eb57a9660fecd1676 |
class LoggedInHandler(webapp2.RequestHandler): <NEW_LINE> <INDENT> def __init__(self, *args, **kw): <NEW_LINE> <INDENT> super(LoggedInHandler, self).__init__(*args, **kw) <NEW_LINE> self.user_bundle = UserBundle() <NEW_LINE> self.template_values = { "user_bundle": self.user_bundle } <NEW_LINE> self.response.headers['Ca... | Provides a base set of functionality for pages that need logins.
Currently does not support caching as easily as CacheableHandler. | 62598f8e0fa83653e46f4add |
class std_streams: <NEW_LINE> <INDENT> def __init__(self, stdin: IO, stdout: IO) -> None: <NEW_LINE> <INDENT> self.stdin: IO = stdin <NEW_LINE> self.stdout: IO = stdout <NEW_LINE> <DEDENT> def __enter__(self) -> Tuple[IO, IO]: <NEW_LINE> <INDENT> return self.stdin, self.stdout <NEW_LINE> <DEDENT> def __exit__(self, err... | An object to wrap around two file like objects, and provide boilerplate
methods to release these files to a with statement, and clean up afterwards. | 62598f8ea05bb46b3848a474 |
class itkRescaleIntensityImageFilterIF2IF2_Superclass(itkInPlaceImageFilterAPython.itkInPlaceImageFilterIF2IF2): <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 constructo... | Proxy of C++ itkRescaleIntensityImageFilterIF2IF2_Superclass class | 62598f8e82261d6c5272fcd1 |
class ImagingWCS(object): <NEW_LINE> <INDENT> def __new__(cls, wcs_linear, projection=None, sky_rotation=None, distortion=None): <NEW_LINE> <INDENT> transforms = [distortion, wcs_linear, projection, sky_rotation] <NEW_LINE> for transform in transforms[::-1]: <NEW_LINE> <INDENT> if transform is None: <NEW_LINE> <INDENT... | A convenience object to concatenate a distortion transformation with
WCSLinear transformation, projection and sky rotation. | 62598f8edc8b845886d531b2 |
class Solution: <NEW_LINE> <INDENT> @timeit <NEW_LINE> def canJump(self, nums: List[int]) -> bool: <NEW_LINE> <INDENT> n = len(nums) <NEW_LINE> r = 0 <NEW_LINE> for i in range(n): <NEW_LINE> <INDENT> if i > r: return False <NEW_LINE> r = max(r, i + nums[i]) <NEW_LINE> <DEDENT> return True | [55. 跳跃游戏](https://leetcode-cn.com/problems/jump-game/) | 62598f8ed7e4931a7ef3bc96 |
class Source(A10BaseClass): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.ERROR_MSG = "" <NEW_LINE> self.b_key = "source" <NEW_LINE> self.DeviceProxy = "" <NEW_LINE> self.class_list = "" <NEW_LINE> for keys, value in kwargs.items(): <NEW_LINE> <INDENT> setattr(self,keys, value) | This class does not support CRUD Operations please use parent.
:param class_list: {"minLength": 1, "maxLength": 63, "type": "string", "description": "Class-list to match for NAT64", "format": "string-rlx"}
:param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py` | 62598f8ecad5886f8bdc4e89 |
class HTMLDocumentationGenerator(object): <NEW_LINE> <INDENT> def __init__(self, doc_data, tag_settings, filepaths): <NEW_LINE> <INDENT> self.doc_data = doc_data <NEW_LINE> self.filepaths = filepaths <NEW_LINE> self.tag_settings = tag_settings <NEW_LINE> self._template_settings = {} <NEW_LINE> self._template_generator ... | * HTML format generator.
@class jscribe.core.htmldocgenerator.HTMLDocumentationGenerator | 62598f8ee76e3b2f99fd862a |
class DVB_Demuxer(Axon.AdaptiveCommsComponent.AdaptiveCommsComponent): <NEW_LINE> <INDENT> Inboxes = { "inbox" : "This is where we expect to recieve a transport stream", "control" : "We will receive shutdown messages here", } <NEW_LINE> def __init__(self, pidmap): <NEW_LINE> <INDENT> super(DVB_Demuxer, self).__init__()... | This demuxer expects to recieve the output from a DVB_Multiplex
component on its primary inbox. It is also provided with a number
of pids. For each pid that it knows about, it forwards the data
received on that PID to an appropriate outbox. Data associated with
unknown PIDs in the datastream is thrown away.
The output... | 62598f8ef7d966606f747bd8 |
class ComputeTargetTcpProxy(resource_class_factory('compute_targettcpproxy', 'id')): <NEW_LINE> <INDENT> pass | The Resource implementation for Compute TargetTcpProxy. | 62598f8e596a897236127871 |
class _RequestMatcher(object): <NEW_LINE> <INDENT> SOAP_ENV_NS = 'http://schemas.xmlsoap.org/soap/envelope/' <NEW_LINE> def __init__(self, expected_xml): <NEW_LINE> <INDENT> self.expected_xml = expected_xml <NEW_LINE> <DEDENT> def __eq__(self, actual_xml): <NEW_LINE> <INDENT> actual_tree = ElementTree.fromstring(actual... | Ensures that a SOAP request is equivalent to the expected request.
For a definition of what we mean by equivalence, see the __eq__ function. | 62598f8eac7a0e7691f72102 |
class GroupResource(WebAPIResource): <NEW_LINE> <INDENT> model = Group <NEW_LINE> fields = ('id', 'name') <NEW_LINE> uri_object_key = 'group_name' <NEW_LINE> uri_object_key_regex = '[A-Za-z0-9_-]+' <NEW_LINE> model_object_key = 'name' <NEW_LINE> allowed_methods = ('GET',) | A default resource for representing a Django Group model. | 62598f8e3cc13d1c6d465361 |
class TableGenerate(IGenerate): <NEW_LINE> <INDENT> def __init__(self,rule): <NEW_LINE> <INDENT> super().__init__(rule) <NEW_LINE> self.operator = MysqlC() <NEW_LINE> <DEDENT> def generateValue(self): <NEW_LINE> <INDENT> self._currValue = self.operator.queryScalar({ 'table':self._metas['tbl'], 'select':self._metas['pro... | 查询数据表生成数据 | 62598f8e99cbb53fe6830acb |
class ResourceController(object): <NEW_LINE> <INDENT> REQUEST_SCOPE = 'resources' <NEW_LINE> def __init__(self, options): <NEW_LINE> <INDENT> self.options = options <NEW_LINE> self.rpc_client = rpc_client.EngineClient() <NEW_LINE> <DEDENT> @util.policy_enforce <NEW_LINE> def index(self, req): <NEW_LINE> <INDENT> filter... | WSGI controller for Resources in Bilean v1 API
Implements the API actions, cause action 'create' and 'delete' is
triggered by notification, it's not necessary to provide here. | 62598f8e63b5f9789fe84d6b |
class WebDictionary(ResourceDict): <NEW_LINE> <INDENT> def __init__(self, language="en", lowercasing=False, path="helpers/generic_files/web_domains.vocab", resource="domain"): <NEW_LINE> <INDENT> dir_path = os.path.dirname(os.path.realpath(__file__)).strip("dicts") <NEW_LINE> full_path=os.path.join(dir_path, path) <NEW... | A class for language-specific name resources. | 62598f8ec432627299fa2bc6 |
class ForeignDTDTests(unittest.TestCase): <NEW_LINE> <INDENT> def test_use_foreign_dtd(self): <NEW_LINE> <INDENT> handler_call_args = [] <NEW_LINE> def resolve_entity(context, base, system_id, public_id): <NEW_LINE> <INDENT> handler_call_args.append((public_id, system_id)) <NEW_LINE> return 1 <NEW_LINE> <DEDENT> parser... | Tests for the UseForeignDTD method of expat parser objects. | 62598f8e23e79379d538c0f9 |
class Family(Model): <NEW_LINE> <INDENT> kids = cells.makecell(celltype=ListCell, kid_overrides=False) <NEW_LINE> kid_slots = cells.makecell(value=Model, kid_overrides=False) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> Model.__init__(self, *args, **kwargs) <NEW_LINE> <DEDENT> def _kid_instance(s... | Family
A specialized C{L{Model}} which has C{kids}, C{kid_slots}, and a
number of convenience functions for traversing the parent/child
graph.
@ivar kids: A list of Models which are guaranteed to have the
attribute overrides defined in C{L{kid_slots}}
@ivar kid_slots: An override definition for the Cells inserte... | 62598f8e85dfad0860cbf86d |
class FloodFill (Command): <NEW_LINE> <INDENT> display_name = _("Flood Fill") <NEW_LINE> def __init__(self, doc, x, y, color, bbox, tolerance, sample_merged, make_new_layer, **kwds): <NEW_LINE> <INDENT> super(FloodFill, self).__init__(doc, **kwds) <NEW_LINE> self.x = x <NEW_LINE> self.y = y <NEW_LINE> self.color = colo... | Flood-fill on the current layer | 62598f8e097d151d1a2c0c21 |
class TestPackVal(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.obj = fpga.MemType() <NEW_LINE> <DEDENT> def test_8bit(self): <NEW_LINE> <INDENT> self.obj.fmt = "B" <NEW_LINE> val = 1 <NEW_LINE> self.assertEqual('\x01',self.obj.pack_val(val)) <NEW_LINE> val = 255 <NEW_LINE> self.asse... | Tests that a value of various types is correctly converted
to binary. | 62598f8e8e7ae83300ee8c9b |
class KNN(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.kernel = None <NEW_LINE> self.gram = None <NEW_LINE> self.data = None <NEW_LINE> self.label = None <NEW_LINE> <DEDENT> def train(self, X, y, kernel): <NEW_LINE> <INDENT> self.kernel = kernel <NEW_LINE> self.data = X <NEW_LINE> self.label = y ... | K nearest-neighbors | 62598f8e8e71fb1e983bb6ab |
class RpcContext(object): <NEW_LINE> <INDENT> token = None <NEW_LINE> username = None <NEW_LINE> def __init__(self, token=None, username=None): <NEW_LINE> <INDENT> self.token = token <NEW_LINE> self.username = username | RpcContext provide RPC session information.
Paramenters:
token: User session token received from the request sent by the data node.
username: User name. | 62598f8e462c4b4f79dbb5fc |
class ModelNotFoundException(ThothGlyphException): <NEW_LINE> <INDENT> pass | An exception raised when classification model cannot be found. | 62598f8e29b78933be269ed8 |
class KSPMU_OT_ColliderCapsule(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "mucollider.capsule" <NEW_LINE> bl_label = "Add Capsule Collider" <NEW_LINE> bl_options = {'REGISTER', 'UNDO'} <NEW_LINE> fitSelected: BoolProperty(name = "Fit Selected", description="Fit collider to selection. Uses active " "object as ... | Add Capsule Collider | 62598f8e3eb6a72ae038a22f |
class SpecieJson(object): <NEW_LINE> <INDENT> def __init__(self, id = None, designation = '', genus = None, strains=[]): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.designation = designation <NEW_LINE> self.genus = genus <NEW_LINE> self.strains = strains <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> r... | This class manage the object and is used to map them into json format | 62598f8e7cff6e4e811b560f |
class DecodingBlock(nn.Module): <NEW_LINE> <INDENT> def __init__(self, low_channels, in_channels, out_channels): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.input_conv = nn.Sequential( nn.Conv2d(in_channels, low_channels, kernel_size=1, bias=False), nn.BatchNorm2d(low_channels), nn.ReLU(inplace=True), ) <NEW... | Decoding Block
| 62598f8eeab8aa0e5d30b975 |
class DeletePersonSampleRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.PersonId = None <NEW_LINE> self.SubAppId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.PersonId = params.get("PersonId") <NEW_LINE> self.SubAppId = params.get("SubAppId"... | DeletePersonSample请求参数结构体
| 62598f8e8a43f66fc4bf1d80 |
class override_system_checks(TestContextDecorator): <NEW_LINE> <INDENT> def __init__(self, new_checks, deployment_checks=None): <NEW_LINE> <INDENT> from django.core.checks.registry import registry <NEW_LINE> self.registry = registry <NEW_LINE> self.new_checks = new_checks <NEW_LINE> self.deployment_checks = deployment_... | Act as a decorator. Override list of registered system checks.
Useful when you override `INSTALLED_APPS`, e.g. if you exclude `auth` app,
you also need to exclude its system checks. | 62598f8ef7d966606f747bd9 |
class CachedCredentialsProvider(SynapseCredentialsProvider): <NEW_LINE> <INDENT> def _get_auth_info(self, syn, user_login_args): <NEW_LINE> <INDENT> if not user_login_args.skip_cache: <NEW_LINE> <INDENT> username = user_login_args.username or cached_sessions.get_most_recent_user() <NEW_LINE> return username, None, cach... | Retrieves auth info from cached_sessions | 62598f8e55399d3f05626115 |
class Parameter(DriverParameter): <NEW_LINE> <INDENT> SAMPLE_INTERVAL = 'output_period' <NEW_LINE> CHANNEL_ADDRESS = 'channel_address' <NEW_LINE> LINEFEED = 'linefeed' <NEW_LINE> PARITY_TYPE = 'parity_type' <NEW_LINE> PARITY_ENABLE = 'parity_enable' <NEW_LINE> EXTENDED_ADDRESSING = 'addressing_mode' <NEW_LINE> BAUD_RAT... | Device specific parameters. | 62598f8e26068e7796d4c558 |
class TestUninstall(unittest.TestCase): <NEW_LINE> <INDENT> layer = EIONET_THEME_INTEGRATION_TESTING <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.portal = self.layer['portal'] <NEW_LINE> self.installer = get_installer(self.portal) <NEW_LINE> self.installer.uninstallProducts(['eionet.theme']) <NEW_LINE> <DEDENT>... | TestUninstall. | 62598f8e4e696a045264dc03 |
class PublishedDefinition(Definition): <NEW_LINE> <INDENT> @property <NEW_LINE> def not_found(self): <NEW_LINE> <INDENT> return f"NO PUBLISHED DEFINITION FOUND" | Provides custom display for missing definition. | 62598f8e3cc13d1c6d465363 |
class SuggestionHandler(BaseMessageHandler): <NEW_LINE> <INDENT> def __init__(self, message_handler): <NEW_LINE> <INDENT> message_handler.register_handler("suggestion", self) <NEW_LINE> self.__log = logging.getLogger(__name__) <NEW_LINE> <DEDENT> def handle_message(self, message, response_queue): <NEW_LINE> <INDENT> st... | Handle suggestions | 62598f8e442bda511e95c05a |
@serializable <NEW_LINE> class Bot(object): <NEW_LINE> <INDENT> def __init__(self, index, initial_pos, team_index, homezone, current_pos=None, noisy=False): <NEW_LINE> <INDENT> self.index = index <NEW_LINE> self.initial_pos = initial_pos <NEW_LINE> self.team_index = team_index <NEW_LINE> self.homezone = homezone <NEW_L... | A bot on a team.
Parameters
----------
index : int
the index of this bot within the Universe
initial_pos : tuple of int (x, y)
the initial position for this bot
team_index : int
the index of the team that this bot is on
homezone : tuple of int (x_min, x_max)
the homezone of this team
current_pos : tupl... | 62598f8e94891a1f408b94ec |
@deconstructible <NEW_LINE> class InMemoryStorage(Storage): <NEW_LINE> <INDENT> def __init__(self, filesystem=None, base_url=None): <NEW_LINE> <INDENT> if not filesystem and getattr(settings, "INMEMORYSTORAGE_PERSIST", False): <NEW_LINE> <INDENT> self.filesystem = _filesystem <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDEN... | Django storage class for in-memory filesystem. | 62598f8e6aa9bd52df0d4ac7 |
class Range(models.Model): <NEW_LINE> <INDENT> start = models.CharField(max_length=128) <NEW_LINE> end = models.CharField(max_length=128) <NEW_LINE> startOffset = models.IntegerField() <NEW_LINE> endOffset = models.IntegerField() <NEW_LINE> annotation = models.ForeignKey(Annotation, related_name="ranges", on_delete=mod... | Follows the *Annotation*
`format <http://docs.annotatorjs.org/en/v1.2.x/annotation-format.html>`_,
of ``annotatorjs``.
:param start:
(relative) XPath to start element
:param end:
(relative) XPath to end element
:param startOffset:
character offset within start element
:param endOffset:
character offset... | 62598f8ea79ad16197769c61 |
class EntityDisplayLayer(DisplayLayer): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self.entities = {} <NEW_LINE> <DEDENT> def add_entity(self, entity): <NEW_LINE> <INDENT> entity.add_component(LayerComponent(layer=self)) <NEW_LINE> self.entities[entity.id... | Entity display layer.
A layer for rendering and displaying entities. | 62598f8ef8510a7c17d7df74 |
class ProtobufEventTagSerializer(interface.EventTagSerializer): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def ReadSerializedObject(cls, proto): <NEW_LINE> <INDENT> event_tag = event.EventTag() <NEW_LINE> for proto_attribute, attribute_value in proto.ListFields(): <NEW_LINE> <INDENT> if proto_attribute.name == 'tags':... | Class that implements the protobuf event tag serializer. | 62598f8edd821e528d6d8b2c |
class MSG(Enum): <NEW_LINE> <INDENT> SERVER_CONFIRMATION = 0 <NEW_LINE> SERVER_MOVE = 1 <NEW_LINE> SERVER_TURN_LEFT = 2 <NEW_LINE> SERVER_TURN_RIGHT = 3 <NEW_LINE> SERVER_PICK_UP = 4 <NEW_LINE> SERVER_LOGOUT = 5 <NEW_LINE> SERVER_OK = 6 <NEW_LINE> SERVER_LOGIN_FAILED = 7 <NEW_LINE> SERVER_SYNTAX_ERROR = 8 <NEW_LINE> SE... | Enum containing all possible types of messages that are used in the communication | 62598f8e8e71fb1e983bb6ac |
class TocFrame(Frame): <NEW_LINE> <INDENT> TOP_LEVEL_FLAG_BIT = 6 <NEW_LINE> ORDERED_FLAG_BIT = 7 <NEW_LINE> @requireBytes(1, 2) <NEW_LINE> def __init__(self, id=TOC_FID, element_id=None, toplevel=True, ordered=True, child_ids=None, description=None): <NEW_LINE> <INDENT> assert id == TOC_FID <NEW_LINE> super().__init__... | Table of content frame. There may be more than one, but only one may
have the top-level flag set.
Data format:
Element ID: <string>
TOC flags: %000000ab
Entry count: %xx
Child elem IDs: <string> (... num entry count)
Description: TIT2 frame (optional) | 62598f8ee64d504609df91b1 |
class FBCompiler(sql.compiler.DefaultCompiler): <NEW_LINE> <INDENT> operators = sql.compiler.DefaultCompiler.operators.copy() <NEW_LINE> operators.update({ sql.operators.mod : lambda x, y:"mod(%s, %s)" % (x, y) }) <NEW_LINE> def visit_alias(self, alias, asfrom=False, **kwargs): <NEW_LINE> <INDENT> if asfrom: <NEW_LINE>... | Firebird specific idiosincrasies | 62598f8e4428ac0f6e658120 |
class BaseView(View): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> sub_pages = SubPage.objects.filter(visible=True).all() <NEW_LINE> self.params = { "sub_pages": sub_pages, "title": "Fágun", "sub_title": "" } | An "abstract view" to manage the elements all of the site's
pages have in common | 62598f8e3c8af77a43b67d35 |
class tree_height: <NEW_LINE> <INDENT> def read(self): <NEW_LINE> <INDENT> self.n = int(sys.stdin.readline()) <NEW_LINE> self.parents = list(map(int, sys.stdin.readline().split())) <NEW_LINE> <DEDENT> def height(self): <NEW_LINE> <INDENT> self.children = {} <NEW_LINE> for i in range(self.n): <NEW_LINE> <INDENT> self.ch... | This class is to form the tree and calculate its height based on the given inputs | 62598f8ee76e3b2f99fd862d |
class CatalogMenuLink(): <NEW_LINE> <INDENT> @skip('manual') <NEW_LINE> @priority("Low") <NEW_LINE> def test_catalog_menu_page_link_to_category(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @skip('manual') <NEW_LINE> @priority("Low") <NEW_LINE> def test_catalog_menu_page_link_to_subcategory(self): <NEW_LINE> <IND... | Story: Секция "Верхние баннеры" на странице раздела | 62598f8e07f4c71912baf041 |
class Domain( Entity, EntityCreateMixin, EntityDeleteMixin, EntityReadMixin, EntitySearchMixin, EntityUpdateMixin, ): <NEW_LINE> <INDENT> def __init__(self, server_config=None, **kwargs): <NEW_LINE> <INDENT> self._fields = { 'dns': entity_fields.OneToOneField(SmartProxy), 'domain_parameters_attributes': entity_fields.L... | A representation of a Domain entity. | 62598f8e596a897236127874 |
class OptionsRegistry(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._contexts = {} <NEW_LINE> <DEDENT> def register_command(self, name, options_context): <NEW_LINE> <INDENT> if name in self._contexts: <NEW_LINE> <INDENT> raise ValueError("options context for command %r already registered !" ... | Registry for command -> option context | 62598f8e8e7ae83300ee8c9d |
class SnippetViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Snippet.objects.all() <NEW_LINE> serializer_class = SnippetSerializer <NEW_LINE> permission_classes = (permissions.IsAuthenticatedOrReadOnly, IsOwnerOrReadOnly,) <NEW_LINE> @detail_route(renderer_classes=[renderers.StaticHTMLRend... | This viewset automatacally provides 'list', 'create', 'retrieve', 'update' & 'destroy' actions
Additionally we also provide an extra 'highlight' action. | 62598f8ed6c5a102081e1d40 |
class ScipyUmfpack(ScipyDirect): <NEW_LINE> <INDENT> name = 'ls.scipy_umfpack' <NEW_LINE> _parameters = [ ('use_presolve', 'bool', False, False, 'If True, pre-factorize the matrix.'), ] <NEW_LINE> def __init__(self, conf, **kwargs): <NEW_LINE> <INDENT> ScipyDirect.__init__(self, conf, method='umfpack', **kwargs) | UMFPACK - direct sparse solver from SciPy. | 62598f8ebaa26c4b54d4eeb0 |
class MysqlManager(AbstractDatabaseManager): <NEW_LINE> <INDENT> def __enter__(self): <NEW_LINE> <INDENT> super().__enter__() <NEW_LINE> self.connection.execute("commit") <NEW_LINE> return self <NEW_LINE> <DEDENT> def database_exists(self): <NEW_LINE> <INDENT> r = self.connection.execute("SHOW DATABASES LIKE '%s'" % se... | MySQL database manager | 62598f8e1f037a2d8b9e3cd7 |
class Domain(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> raise NotImplementedError("Domain is a base class only.") <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> comm = mpi_comm_world() <NEW_LINE> hmin = MPI.min(comm, self.mesh.hmin()) <NEW_LINE> hmax = MPI.max(comm, self.mesh.hmax(... | An abstract domain class. | 62598f8e435de62698e9b9eb |
class ShortThrower(ThrowerAnt): <NEW_LINE> <INDENT> name = 'Short' <NEW_LINE> food_cost = 2 <NEW_LINE> max_range = 3 <NEW_LINE> "*** REPLACE THIS LINE ***" <NEW_LINE> implemented = True | A ThrowerAnt that only throws leaves at Bees at most 3 places away. | 62598f8e7d847024c075bfcc |
class xvimage_bin(gst.Bin): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> gst.Bin.__init__(self) <NEW_LINE> self.set_name('xvimage_bin') <NEW_LINE> queue = gst.element_factory_make('queue', "queue") <NEW_LINE> queue.set_property("max-size-buffers", 1000) <NEW_LINE> queue.set_property("max-size-bytes", 0) ... | Salida de video a pantalla. | 62598f8e0fa83653e46f4ae2 |
class PyNetworkx(PythonPackage): <NEW_LINE> <INDENT> homepage = "http://networkx.github.io/" <NEW_LINE> pypi = "networkx/networkx-2.4.tar.gz" <NEW_LINE> version('2.5.1', sha256='109cd585cac41297f71103c3c42ac6ef7379f29788eb54cb751be5a663bb235a') <NEW_LINE> version('2.4', sha256='f8f4ff0b6f96e4f9b16af6b84622597b5334bf9c... | NetworkX is a Python package for the creation, manipulation, and study
of the structure, dynamics, and functions of complex networks. | 62598f8e76e4537e8c3ef1a9 |
class Lfunction_CMF(Lfunction_from_db): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> constructor_logger(self, kwargs) <NEW_LINE> validate_required_args('Unable to construct classical modular form L-function.', kwargs, 'weight','level','character','hecke_orbit','number') <NEW_LINE> validate_inte... | Class representing an classical modular form L-function
Compulsory parameters: weight
level
character
hecke_orbit
number | 62598f8e6fece00bbaccb588 |
class TestHartreeFock(HartreeFockTestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> if test_constants.RUN_EXPENSIVE: <NEW_LINE> <INDENT> pred = predicates.all() <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> pred = predicates.is_not_expensive() <NEW_LINE> <DEDENT> cls.cases =... | This test should assure that molsturm results stay the same
between code changes or algorithm updates | 62598f8e9b70327d1c57e99a |
class ThumbnailerImageField(ThumbnailerField, ImageField): <NEW_LINE> <INDENT> attr_class = files.ThumbnailerImageFieldFile <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.resize_source = kwargs.pop('resize_source', None) <NEW_LINE> super(ThumbnailerImageField, self).__init__(*args, **kwargs) <... | An image field which provides easier access for retrieving (and generating)
thumbnails.
To use a different file storage for thumbnails, provide the
``thumbnail_storage`` keyword argument.
To thumbnail the original source image before saving, provide the
``resize_source`` keyword argument, passing it a usual thumbnail... | 62598f8e82261d6c5272fcd3 |
class ActionError(Exception): <NEW_LINE> <INDENT> def __init__(self, message, supported_actions): <NEW_LINE> <INDENT> self.message = message <NEW_LINE> self.supported_actions = supported_actions | Exception is being raised when unsupported action is detected. | 62598f8edc8b845886d531b6 |
class ObjectSelectInput(ObjectChoiceMixin, SelectInput): <NEW_LINE> <INDENT> pass | Variant of L{SelectInput} for arbitrary Python objects.
Deprecated. Use L{SelectInput} with L{methanal.enums.ObjectEnum}. | 62598f8e2ae34c7f260aace1 |
class DepthFirstIterator(object): <NEW_LINE> <INDENT> def __init__(self, start_node): <NEW_LINE> <INDENT> self._node = start_node <NEW_LINE> self._children_iter = None <NEW_LINE> self._child_iter = None <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def __next__(self): <NEW_... | Depth-first traversal | 62598f8e23e79379d538c0fc |
class MixedInk(Swatch): <NEW_LINE> <INDENT> BaseColor = StringField(required=True) <NEW_LINE> InkList = SpaceSeparatedListField(StringField()) <NEW_LINE> InkNameList = SpaceSeparatedListField(StringField()) <NEW_LINE> InkPercentages = SpaceSeparatedListField(FloatField()) <NEW_LINE> MixedInkSpotColorList = SpaceSeparat... | A mixed ink is a swatch created by mixing inks - you can combine up to
sixteen spot inks, or mix one spot ink with one or more process inks. | 62598f8e3539df3088ecbeb8 |
class Comparable(genericJavaObj,Object): <NEW_LINE> <INDENT> _java_name = java_imports['Comparable'] <NEW_LINE> @javaConstructorOverload(java_imports['Comparable']) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(Comparable,self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> @javaGenericOverlo... | This interface imposes a total ordering on the objects of each class that implements it. This ordering is referred to as the class's natural ordering, and the class's compareTo method is referred to as its natural comparison method.
Lists (and arrays) of objects that implement this interface can be sorted automatically... | 62598f8ea79ad16197769c62 |
class BoLassoFeatureSelector(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def check_pos_int(x, arg_type): <NEW_LINE> <INDENT> if int(x) != x: <NEW_LINE> <INDENT> raise ValueError( 'BoLassoFeatureSelector must receive an integer for arg' ' {}'.format(arg_type)) <NEW_LINE> <DEDENT> if x < 1: <NEW_LINE> <INDENT> ... | This yields a length k list of column names which are the most
significant according to lasso fits to n_sample bootstrapped
samples. | 62598f8e07d97122c42168a7 |
class ChocolateyPackageReference(PackageReferenceBase): <NEW_LINE> <INDENT> _validation = { 'type': {'required': True}, 'id': {'required': True}, } <NEW_LINE> _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'version': {'key': 'version', 'type': 'str'}, 'allow_empty_checksu... | A reference to a package to be installed using the Chocolatey package
manager on a Windows node.
:param str id: The name of the package.
:param str version: The version of the package to be installed. If omitted,
the latest version (according to the package repository) will be installed.
:param bool allow_empty_check... | 62598f8e0a50d4780f704fcd |
class ListDataset(Dataset): <NEW_LINE> <INDENT> def __init__(self, examples, name=None): <NEW_LINE> <INDENT> assert isinstance(examples, (tuple, list)), (type(examples), examples) <NEW_LINE> self.examples = examples <NEW_LINE> self.name = name <NEW_LINE> <DEDENT> def copy(self, freeze=False): <NEW_LINE> <INDENT> return... | Dataset to iterate over a list of examples with each example being a dict
according to the json structure as outline in the top of this file. | 62598f8e6fb2d068a7693c2f |
class CloudErrorBody(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, } <NEW_LINE> def __init__( self, **kwargs ... | An error response from the service.
:param code: An identifier for the error. Codes are invariant and are intended to be consumed
programmatically.
:type code: str
:param message: A message describing the error, intended to be suitable for display in a user
interface.
:type message: str
:param target: The target of ... | 62598f8e1f037a2d8b9e3cd9 |
class PeakFindingProblem(Problem): <NEW_LINE> <INDENT> def __init__(self, initial, grid, defined_actions=directions4): <NEW_LINE> <INDENT> Problem.__init__(self, initial) <NEW_LINE> self.grid = grid <NEW_LINE> self.defined_actions = defined_actions <NEW_LINE> self.n = len(grid) <NEW_LINE> assert self.n > 0 <NEW_LINE> s... | Problem of finding the highest peak in a limited grid | 62598f8e507cdc57c63a498d |
class Registered_Device(db.Model, CRUDMixin): <NEW_LINE> <INDENT> id = db.Column(db.Integer(), primary_key=True) <NEW_LINE> device_id = db.Column(db.String(16)) <NEW_LINE> time_stamp = db.Column(db.DateTime) <NEW_LINE> client_hash = db.Column(db.String(64)) | A Registered device is allowed to create Temperatures | 62598f8e8a43f66fc4bf1d84 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.