code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Payment(models.Model): <NEW_LINE> <INDENT> from_user = models.ForeignKey('auth.User', on_delete=models.CASCADE, related_name='payments_done') <NEW_LINE> to_user = models.ForeignKey('auth.User', on_delete=models.CASCADE, related_name='payments_recived') <NEW_LINE> group = models.ForeignKey(TelegramGroup, on_delete... | Payment from a user to another user in the same group. | 62598fdd50812a4eaa620ee2 |
class AISEstimator(BaseEstimator): <NEW_LINE> <INDENT> def __init__(self, measure: BaseMeasure) -> None: <NEW_LINE> <INDENT> super().__init__(measure) <NEW_LINE> self._risk_numerator = np.zeros(measure.n_dim_risk, dtype=float) <NEW_LINE> <DEDENT> def update(self, idx: Union[int, ndarray, Iterable], y: Union[int, float,... | Adaptive Importance Sampling (AIS) Estimator
This estimator is suitable for adaptive, biased proposals. It corrects
for the bias using simple importance re-weighting. After :math:`J`
samples, the estimate for the target measure :math:`G` is given by:
.. math::
G^{\mathrm{AIS}} = g(\hat{R}^{\mathrm{AIS}})
\m... | 62598fddd8ef3951e32c815e |
class AddMemberMessageRTQInputSet(InputSet): <NEW_LINE> <INDENT> def set_Body(self, value): <NEW_LINE> <INDENT> super(AddMemberMessageRTQInputSet, self)._set_input('Body', value) <NEW_LINE> <DEDENT> def set_DisplayToPublic(self, value): <NEW_LINE> <INDENT> super(AddMemberMessageRTQInputSet, self)._set_input('DisplayToP... | An InputSet with methods appropriate for specifying the inputs to the AddMemberMessageRTQ
Choreo. The InputSet object is used to specify input parameters when executing this Choreo. | 62598fde3617ad0b5ee06752 |
class TestCRC16XModem(unittest.TestCase): <NEW_LINE> <INDENT> def doBasics(self, module): <NEW_LINE> <INDENT> self.assertEqual(module.crc16xmodem('123456789'), 0x31c3) <NEW_LINE> self.assertNotEqual(module.crc16xmodem('123456'), 0x31c3) <NEW_LINE> crc = module.crc16xmodem('12345') <NEW_LINE> crc = module.crc16xmodem('6... | Test CRC16 CRC-CCITT (XModem) variant.
| 62598fdeab23a570cc2d5074 |
class Topotagcreaterequest(object): <NEW_LINE> <INDENT> openapi_types = { 'name': 'str', 'description': 'str' } <NEW_LINE> attribute_map = { 'name': 'name', 'description': 'description' } <NEW_LINE> def __init__(self, name=None, description=None): <NEW_LINE> <INDENT> self._name = None <NEW_LINE> self._description = Non... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 62598fdead47b63b2c5a7e5c |
class YouTubeVideoDemographicsAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> list_display = [ "youtube_video", "age_range", "gender", "views_percentage", "last_updated", ] <NEW_LINE> list_display_links = ["youtube_video"] <NEW_LINE> list_filter = ["youtube_video__youtube", "age_range", "gender"] <NEW_LINE> search_fields ... | List for choosing existing YouTube video demographics data to edit. | 62598fdead47b63b2c5a7e5e |
class CMAPSSBinaryClassifier(nn.Module): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(CMAPSSBinaryClassifier, self).__init__() <NEW_LINE> self.fc1 = nn.Linear(26, 16) <NEW_LINE> self.fc2 = nn.Linear(16, 4) <NEW_LINE> self.fc3 = nn.Linear(4, 1) <NEW_LINE> <DEDENT> def forward(self, x): <NEW_LINE> <I... | This class performs binary classification using a simple fully-connected neural network
(i.e. healthy/faulty engines) by assuming first and last x samples belonging to each
engine correspond to healthy and faulty states respectively. | 62598fdec4546d3d9def758c |
class TestMlpContainer(unittest.TestCase): <NEW_LINE> <INDENT> def test_init_where_iterable_is_default(self): <NEW_LINE> <INDENT> container = MlpContainer() <NEW_LINE> self.assertEqual(container, []) <NEW_LINE> <DEDENT> def test_init_where_iterable_is_sequence(self): <NEW_LINE> <INDENT> container = MlpContainer([2, 5, ... | Tests for Container class, currently a list subclass | 62598fde099cdd3c636756e6 |
class TestPlansApi(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.api = esp_sdk.apis.plans_api.PlansApi() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_list(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_show(self): <NEW_LI... | PlansApi unit test stubs | 62598fdead47b63b2c5a7e62 |
class MinterSendCoinTx(MinterTx): <NEW_LINE> <INDENT> TYPE = 1 <NEW_LINE> COMMISSION = 10 <NEW_LINE> def __init__(self, coin, to, value, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self.coin = coin.upper() <NEW_LINE> self.to = to <NEW_LINE> self.value = value <NEW_LINE> <DEDENT> def _structure_... | Send coin transaction | 62598fdec4546d3d9def7590 |
class System(): <NEW_LINE> <INDENT> def __init__(self, name=None, source=None, supercell_size=None, structdir=None, folded = True, real_or_complex='Real', mindistance=16): <NEW_LINE> <INDENT> assert isinstance(name, str), error("System settings are wrong") <NEW_LINE> assert isinstance(source, str), error("System settin... | Input file locations | 62598fde4c3428357761a8c7 |
class TestHt(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.ht = ht.Ht() <NEW_LINE> <DEDENT> def testCount(self): <NEW_LINE> <INDENT> self.assertEquals(0, len(self.ht)) <NEW_LINE> for i in range(99, -1, -1): <NEW_LINE> <INDENT> self.ht.insert(i) <NEW_LINE> <DEDENT> self.assertEquals(1... | A test class for the ht module.
| 62598fdefbf16365ca7946dc |
class State(BaseModel): <NEW_LINE> <INDENT> name = "" | A State in the world. | 62598fdead47b63b2c5a7e69 |
class JouvenceDocument: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.title_values = {} <NEW_LINE> self.scenes = [] <NEW_LINE> <DEDENT> def addScene(self, header=None): <NEW_LINE> <INDENT> s = JouvenceScene() <NEW_LINE> if header: <NEW_LINE> <INDENT> s.header = header <NEW_LINE> <DEDENT> self.scenes.... | Represents a Fountain screenplay in a structured way.
A screenplay contains:
* A title page (optional) with a key/value dictionary of settings.
* A list of scenes.
* Each scene contains a list of paragraphs of various types. | 62598fde26238365f5fad17f |
class Destinations(models.Model): <NEW_LINE> <INDENT> destination = models.CharField(max_length=200, default='N/A') <NEW_LINE> url = models.TextField(max_length=1000, default='N/A') <NEW_LINE> site_name = models.CharField(max_length=200, default='N/A') <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.site_... | Model representing destinations page. | 62598fde4c3428357761a8c9 |
class DayOfWeekCondition(BaseCronCondition): <NEW_LINE> <INDENT> WEEKDAY_CHOICES = ( (1, 'Monday'), (2, 'Tuesday'), (3, 'Wednesday'), (4, 'Thursday'), (5, 'Friday'), (6, 'Sunday'), (7, 'Saturday'), ) <NEW_LINE> weekday = models.PositiveSmallIntegerField( verbose_name='day of the week', choices=WEEKDAY_CHOICES, help_tex... | Class representation of a day of week condition
It allows for date based conditions like 'every Monday'. | 62598fdec4546d3d9def7592 |
class Anewnote(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> desired_caps = { 'platformName' : 'Android', 'platformVersion' : '4.4.2', 'deviceName' : '127.0.0.1:22515', 'appPackage' : 'com.youdao.note', 'appActivity' : '.activity2.SplashActivity', 'unicodeKeyboard' : 'True', 'resetKeyboar... | 新建云笔记 | 62598fde50812a4eaa620eef |
class Wheel(BodyPart): <NEW_LINE> <INDENT> def __init__(self, config, robot): <NEW_LINE> <INDENT> dims = get_simulation_settings()['body_part_sizes']['wheel'] <NEW_LINE> super().__init__(config, robot, Dimensions(dims['width'], dims['height']), 'motor', driver_name='lego-ev3-l-motor') <NEW_LINE> <DEDENT> def setup_visu... | Class representing a Wheel of the simulated robot. | 62598fdead47b63b2c5a7e6d |
class Environment2: <NEW_LINE> <INDENT> def outcome(self, action): <NEW_LINE> <INDENT> if action == 0: <NEW_LINE> <INDENT> return 1 <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return 0 | In Environment 2, action 0 yields outcome 1, action 1 yields outcome 0 | 62598fde656771135c489c92 |
class RolesApi(object): <NEW_LINE> <INDENT> def __init__(self, api_client=None): <NEW_LINE> <INDENT> config = Configuration() <NEW_LINE> if api_client: <NEW_LINE> <INDENT> self.api_client = api_client <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> if not config.api_client: <NEW_LINE> <INDENT> config.api_client = ApiClie... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen | 62598fde26238365f5fad183 |
class Enviroment: <NEW_LINE> <INDENT> stack = Stack() <NEW_LINE> words = { '!': forth_dictionary.ForthWord(primitives.store), '@': forth_dictionary.ForthWord(primitives.fetch), } <NEW_LINE> storage = {} <NEW_LINE> inbuffer = [] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def fetch_word(s... | Interpretation enviroment for monkeyforth.
Holds all data about the enviroment. | 62598fde50812a4eaa620ef1 |
class Repos(APIView): <NEW_LINE> <INDENT> def get(self, request, format=None): <NEW_LINE> <INDENT> username = request.user.get_username() <NEW_LINE> repo_base = username <NEW_LINE> serializer = RepoSerializer(username, repo_base, request) <NEW_LINE> return Response(serializer.user_accessible_repos()) | Repos visible to the logged in user. | 62598fdeab23a570cc2d507e |
class ToggleColumn(tables.CheckBoxColumn): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> default = kwargs.pop('default', '') <NEW_LINE> visible = kwargs.pop('visible', False) <NEW_LINE> super().__init__(*args, default=default, visible=visible, **kwargs) <NEW_LINE> <DEDENT> @property <NEW_... | Extend CheckBoxColumn to add a "toggle all" checkbox in the column header. | 62598fde50812a4eaa620ef2 |
class ExcBase(Model): <NEW_LINE> <INDENT> def __init__(self, system, config): <NEW_LINE> <INDENT> Model.__init__(self, system, config) <NEW_LINE> self.group = 'Exciter' <NEW_LINE> self.flags.tds = True <NEW_LINE> self.VoltComp = BackRef() <NEW_LINE> self.ug = ExtParam(src='u', model='SynGen', indexer=self.syn, tex_name... | Base model for exciters.
Notes
-----
As of v1.4.5, the input voltage Eterm (variable ``self.v``)
is converted to type ``Algeb``.
Since variables are evaluated after services,
``ConstService`` of exciters can no longer depend on ``v``.
TODO: programmatically disallow ``ConstService`` use uninitialized variables. | 62598fded8ef3951e32c816d |
class SqlAlchemyMiddleware(object): <NEW_LINE> <INDENT> def process_response(self, request, response): <NEW_LINE> <INDENT> Session.remove() <NEW_LINE> return response <NEW_LINE> <DEDENT> def process_exception(self, request, exception): <NEW_LINE> <INDENT> Session.remove() | dispose sqlalchemy Session at the end of each request | 62598fde26238365f5fad187 |
class quadNG(object): <NEW_LINE> <INDENT> def __init__(self, xInp, yInp): <NEW_LINE> <INDENT> x = list(map(float, xInp)) <NEW_LINE> y = list(map(float, yInp)) <NEW_LINE> c = list(zip(x,y)) <NEW_LINE> c.sort() <NEW_LINE> x = [] <NEW_LINE> y = [] <NEW_LINE> aLast = None <NEW_LINE> for aa,bb in c: <NEW_LINE> <INDENT> if a... | quadratic Newton-Gregory Interpolation
assume a formula of:
f = a + b(x-x0) + c(x-x0)(x-x1) | 62598fdf50812a4eaa620ef4 |
class DUMPP(TypeKeyword): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__("DUMPP", (float,), comment="Dumping period, in sec") <NEW_LINE> <DEDENT> def set(self, dumpp): <NEW_LINE> <INDENT> super().set(dumpp) | Dump interval.
When the DUMPTO option is activated, simulation results are written in the
output files every DUMPP seconds.
This option is useful to check the progress of long simulations.
It also allows the program to be run with a long execution time and to be
stopped when the required statistical uncertainty has be... | 62598fdf091ae35668705242 |
class RGdata(RPackage): <NEW_LINE> <INDENT> homepage = "https://cloud.r-project.org/package=gdata" <NEW_LINE> url = "https://cloud.r-project.org/src/contrib/gdata_2.18.0.tar.gz" <NEW_LINE> list_url = "https://cloud.r-project.org/src/contrib/Archive/gdata" <NEW_LINE> version('2.18.0', sha256='4b287f59f5bbf5fcbf18db... | Various R programming tools for data manipulation, including: - medical
unit conversions ('ConvertMedUnits', 'MedUnits'), - combining objects
('bindData', 'cbindX', 'combine', 'interleave'), - character vector
operations ('centerText', 'startsWith', 'trim'), - factor manipulation
('levels', 'reorder.factor', 'mapLevels... | 62598fdfab23a570cc2d5081 |
class EveStatus: <NEW_LINE> <INDENT> def __init__(self, bot): <NEW_LINE> <INDENT> self.bot = bot <NEW_LINE> self.config = bot.config <NEW_LINE> self.logger = bot.logger <NEW_LINE> <DEDENT> @commands.command(name='status', aliases=["tq", "eve"]) <NEW_LINE> @checks.spam_check() <NEW_LINE> @checks.is_whitelist() <NEW_LINE... | This extension handles the status command. | 62598fdf099cdd3c636756f1 |
class TransitionBlock(object): <NEW_LINE> <INDENT> def __init__(self, components, start_time=None): <NEW_LINE> <INDENT> self.start_time = start_time <NEW_LINE> self.components = components <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> orig_repr = object.__repr__(self) <NEW_LINE> comp_info = ', '.join(['{0... | An object that represents "dead time" between observations, while the
telescope is slewing, instrument is reconfiguring, etc.
Parameters
----------
components : dict
A dictionary mapping the reason for an observation's dead time to
`Quantity`s with time units
start_time : Quantity with time units | 62598fdfd8ef3951e32c816f |
class Stack: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._top = None <NEW_LINE> self._bottom = None <NEW_LINE> self._size = 0 <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> iterator = self._top <NEW_LINE> while True: <NEW_LINE> <INDENT> if iterator is None: <NEW_LINE> <INDENT> return <... | Stack data structure. | 62598fdf4c3428357761a8d5 |
class BatchNormalizedMLP(Sequence, Initializable, Feedforward): <NEW_LINE> <INDENT> @lazy(allocation=['dims']) <NEW_LINE> def __init__(self, activations, dims, bn_init=None, **kwargs): <NEW_LINE> <INDENT> if bn_init is None: <NEW_LINE> <INDENT> bn_init = IsotropicGaussian(0.1) <NEW_LINE> <DEDENT> self.bn_init = bn_init... | A simple multi-layer perceptron.
Parameters
----------
activations : list of :class:`.Brick`, :class:`.BoundApplication`,
or ``None``
A list of activations to apply after each linear transformation.
Give ``None`` to not apply any activation. It is assumed that the
application method to use is... | 62598fdf3617ad0b5ee06770 |
class ParameterizedVariableScope(object): <NEW_LINE> <INDENT> def __init__(self, template, name, parameter=None, *args, **kwargs): <NEW_LINE> <INDENT> assert template.variables is not None <NEW_LINE> self._template = template <NEW_LINE> self._name = name <NEW_LINE> self._variable_scope = tf.variable_scope( name, custom... | Parameterized variable scope from template.
Create a variable scope with custom variable getter to get variable from the
single parameter vector. | 62598fdfadb09d7d5dc0aba3 |
class ColourSettings(SettingsMenu): <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> super().__init__(parent, MenuList) <NEW_LINE> self.parent = parent <NEW_LINE> self.loadTitle(getResourcePath("assets/settings/colourTitle.png")) <NEW_LINE> self.loadWidgets() <NEW_LINE> <DEDENT> def loadWidgets(self)... | Class for the applications Colour Menu | 62598fdf656771135c489c9f |
class Retrosheet(object): <NEW_LINE> <INDENT> record_types: ClassVar[FrozenSet[Text]] = make_frozen( 'id', 'version', 'info', 'start', 'play', 'sub', 'com', 'data', 'badj', 'padj', ) <NEW_LINE> info_types: ClassVar[FrozenSet[Text]] = make_frozen( 'visteam', 'hometeam', 'date', 'number', 'starttime', 'daynight', 'usedh'... | Constants associated with Retrosheet event file parsing
id: id,<team:3><year:3><month:2><day:2><num:1> | 62598fdf4c3428357761a8da |
class MissingRequiredInstanceGroupsError(EmrError, ParamValidationError): <NEW_LINE> <INDENT> fmt = ('aws: error: Must specify either --instance-groups or ' '--instance-type with --instance-count(optional) to ' 'configure instance groups.') | In create-cluster command, none of --instance-group,
--instance-count nor --instance-type were not supplied. | 62598fdf656771135c489ca0 |
class InvalidFileTypeError(OSError): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__("This file extension is not supported. " "Supported extension is a enum value in file_handler.FileExtensions") | Exception which will be raised when the file extension of the data file does not match what is in the
FileExtension Enum. | 62598fdf187af65679d29f0c |
class ProductsTestCase(TestCase): <NEW_LINE> <INDENT> def _create_fixture(self): <NEW_LINE> <INDENT> Product.objects.create( name='product 1', active=True, unit_price=42) <NEW_LINE> Product.objects.create( name='product 2', active=True, unit_price=42) <NEW_LINE> Product.objects.create( name='product 3', active=False, u... | Tests for the Products templatetag. | 62598fdf50812a4eaa620ef8 |
class OfferBadgeCampaign(object): <NEW_LINE> <INDENT> openapi_types = { 'id': 'str', 'name': 'str' } <NEW_LINE> attribute_map = { 'id': 'id', 'name': 'name' } <NEW_LINE> def __init__(self, id=None, name=None, local_vars_configuration=None): <NEW_LINE> <INDENT> if local_vars_configuration is None: <NEW_LINE> <INDENT> lo... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 62598fdf099cdd3c636756f5 |
class triByteFlags(treedict.Tree_dict): <NEW_LINE> <INDENT> def __init__(self, flagClass, **kwargs): <NEW_LINE> <INDENT> self.flagClass=flagClass <NEW_LINE> self.curval=self.flagClass.NONE <NEW_LINE> super().__init__(**kwargs) <NEW_LINE> <DEDENT> def loadByte(self, abyte): <NEW_LINE> <INDENT> self.curval=self.flagClass... | a special version for the status byte returned on every spi transfer - makes it look like another register to the app | 62598fdfd8ef3951e32c8173 |
class AbstractStatEventHandler(metaclass=ABCMeta): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def on_statistics(self, nodes: list, metrics: ParseMetrics, quality: ParseQuality) -> None: <NEW_LINE> <INDENT> pass | Base class for statistics event handlers | 62598fdfc4546d3d9def759c |
class Employee: <NEW_LINE> <INDENT> def __init__(self, emp_name, emp_salary, emp_type, emp_id): <NEW_LINE> <INDENT> self.emp_name = emp_name <NEW_LINE> self.emp_salary = emp_salary <NEW_LINE> self.emp_type = emp_type <NEW_LINE> self.emp_id = emp_id | object to represent employee | 62598fdf50812a4eaa620ef9 |
class SMSGateway(MethodsMixin, db.Model): <NEW_LINE> <INDENT> __tablename__ = 'smsgateway' <NEW_LINE> __table_args__ = {'mysql_row_format': 'DYNAMIC'} <NEW_LINE> id = db.Column(db.Integer, Sequence("smsgateway_seq"), primary_key=True) <NEW_LINE> identifier = db.Column(db.Unicode(255), nullable=False, unique=True) <NEW_... | This table stores the SMS Gateway definitions.
See
https://github.com/privacyidea/privacyidea/wiki/concept:-Delivery-Gateway
It saves the
* unique name
* a description
* the SMS provider module
All options and parameters are saved in other tables. | 62598fdfd8ef3951e32c8174 |
class StoreItem(Domain): <NEW_LINE> <INDENT> pass | Object containing store items attributes | 62598fdf656771135c489ca4 |
class SecureCookieSessionInterface(SessionInterface): <NEW_LINE> <INDENT> salt = "cookie-session" <NEW_LINE> digest_method = staticmethod(hashlib.sha1) <NEW_LINE> key_derivation = "hmac" <NEW_LINE> serializer = session_json_serializer <NEW_LINE> session_class = SecureCookieSession <NEW_LINE> def get_signing_serializer(... | The default session interface that stores sessions in signed cookies
through the :mod:`itsdangerous` module. | 62598fdf099cdd3c636756f9 |
class PollPoller(_PollerBase): <NEW_LINE> <INDENT> POLL_TIMEOUT_MULT = 1000 <NEW_LINE> def __init__(self, get_wait_seconds, process_timeouts): <NEW_LINE> <INDENT> self._poll = None <NEW_LINE> super(PollPoller, self).__init__(get_wait_seconds, process_timeouts) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def _create_po... | Poll works on Linux and can have better performance than EPoll in
certain scenarios. Both are faster than select. | 62598fdf187af65679d29f11 |
class CourseGraderUpdatesTest(CourseTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(CourseGraderUpdatesTest, self).setUp() <NEW_LINE> self.url = get_url(self.course.id, 'grading_handler') <NEW_LINE> self.starting_graders = CourseGradingModel(self.course).graders <NEW_LINE> <DEDENT> def test_ge... | Test getting, deleting, adding, & updating graders | 62598fdf091ae35668705254 |
class Solution(object): <NEW_LINE> <INDENT> def solve(self, board): <NEW_LINE> <INDENT> if not board: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> row, column = len(board), len(board[0]) <NEW_LINE> def dfs(x, y): <NEW_LINE> <INDENT> que = [(x, y)] <NEW_LINE> while que: <NEW_LINE> <INDENT> x, y = que.pop() <NEW_L... | 给定一个二维的矩阵,包含 'X' 和 'O'(字母 O)。
找到所有被 'X' 围绕的区域,并将这些区域里所有的 'O' 用 'X' 填充。
示例:
X X X X
X O O X
X X O X
X O X X
运行你的函数后,矩阵变为:
X X X X
X X X X
X X X X
X O X X
解释:
被围绕的区间不会存在于边界上,换句话说,任何边界上的 'O' 都不会被填充为 'X'。
任何不在边界上,或不与边界上的 'O' 相连的 'O' 最终都会被填充为 'X'。
如果两个元素在水平或垂直方向相邻,则称它们是“相连”的。
链接:https://leetcode-cn.com/problems/surrounded-r... | 62598fdf26238365f5fad19b |
class ThreadPool: <NEW_LINE> <INDENT> def __init__(self, threads): <NEW_LINE> <INDENT> self._thread_queues = queue.LifoQueue() <NEW_LINE> for i in range(threads): <NEW_LINE> <INDENT> task = queue.Queue() <NEW_LINE> result = queue.Queue() <NEW_LINE> q = AttrDict( dict(task=task, result=result) ) <NEW_LINE> thread = thre... | Pool of threads used to perform connections | 62598fdf187af65679d29f13 |
class CKYParser: <NEW_LINE> <INDENT> def __init__(self, path): <NEW_LINE> <INDENT> self.grammar = CNFGrammar(path) <NEW_LINE> <DEDENT> def parse(self, sentence): <NEW_LINE> <INDENT> N = len(sentence) <NEW_LINE> self.chart = [(N+1)*[None] for row_label in xrange(N+1)] <NEW_LINE> for j in xrange(1, N+1): <NEW_LINE> <INDE... | CKY parsing algorithm class | 62598fdf4c3428357761a8ea |
class EndpointServicesListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[EndpointServiceResult]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(EndpointServicesListResult, self).__i... | Response for the ListAvailableEndpointServices API service call.
:param value: List of available endpoint services in a region.
:type value: list[~azure.mgmt.network.v2019_04_01.models.EndpointServiceResult]
:param next_link: The URL to get the next set of results.
:type next_link: str | 62598fdfd8ef3951e32c817a |
class ClassName(object): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> <DEDENT> def my_function(self): <NEW_LINE> <INDENT> print(F"Hello my function {self.name}") <NEW_LINE> <DEDENT> def my_function_2(self): <NEW_LINE> <INDENT> print(F"Hello {self.name}") | Class level doc string | 62598fdfadb09d7d5dc0abb5 |
class Meta: <NEW_LINE> <INDENT> app_label: str = "mcadmin" <NEW_LINE> unique_together: List[str] = [ "command", "user", ] <NEW_LINE> verbose_name: str = _("management command permission") <NEW_LINE> verbose_name_plural: str = _("management commands permissions") <NEW_LINE> ordering: List[str] = [ "command", ] | Model settings. | 62598fdfd8ef3951e32c817b |
class Connectivity(enum.Enum): <NEW_LINE> <INDENT> FOUR=4, <NEW_LINE> SIX=6 | Two-dimensional 4-connectivity | 62598fdfadb09d7d5dc0abb7 |
class ExtentTest(shared_test_lib.BaseTestCase): <NEW_LINE> <INDENT> def testInitialize(self): <NEW_LINE> <INDENT> test_extent = extent.Extent() <NEW_LINE> self.assertIsNotNone(test_extent) | Tests the VFS extent. | 62598fdfc4546d3d9def75a5 |
class OvsStub(NetworkmanagerStub): <NEW_LINE> <INDENT> __next_id = 0 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(OvsStub, self).__init__('OvsStub') <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def __generate_id(cls): <NEW_LINE> <INDENT> cls.__next_id += 1 <NEW_LINE> return cls.__next_id <NEW_LINE> <DEDENT> ... | RPC stub for openvswitch
Attributes:
logger (logging.Logger): Classes logger object
config (dict): Dictionary with configuration entries
__next_id (int): currently highest id | 62598fdffbf16365ca794703 |
class GameClient: <NEW_LINE> <INDENT> def __init__(self, server, token, player): <NEW_LINE> <INDENT> path = "ws://{}/galaxy".format(server) <NEW_LINE> self.galaxy = None <NEW_LINE> self.actions = [] <NEW_LINE> self.player = player <NEW_LINE> self.socket = websocket.WebSocketApp(path, header=['token: {}'.format(token)],... | Основной объект клиента для взаимодействия с сервером. | 62598fdf50812a4eaa620f02 |
class Revision_tag(db.Model): <NEW_LINE> <INDENT> tag_id = db.Column(db.Integer, primary_key = True) <NEW_LINE> name = db.Column(db.String(64)) <NEW_LINE> rev_id = db.Column(db.Integer, db.ForeignKey('revision_type.rev_id')) | Table for storing the revision tag (e.g. Definition) and the relative type of revision | 62598fdfd8ef3951e32c817d |
class Solution: <NEW_LINE> <INDENT> def fibonacci(self, n): <NEW_LINE> <INDENT> a = [0, 1] <NEW_LINE> for i in range(2, n): <NEW_LINE> <INDENT> a.append(a[i - 2] + a[i - 1]) <NEW_LINE> <DEDENT> return a[n - 1] | @param: n: an integer
@return: an ineger f(n) | 62598fdf26238365f5fad1a7 |
class BaseContentSummaryHook(hook.Hook): <NEW_LINE> <INDENT> __regid__ = "frarchives_edition.base_content.toc" <NEW_LINE> __select__ = hook.Hook.__select__ & is_instance("BaseContent") <NEW_LINE> events = ("before_add_entity", "before_update_entity") <NEW_LINE> def __call__(self): <NEW_LINE> <INDENT> entity = self.enti... | summary | 62598fdf4c3428357761a8f2 |
class IService(object): <NEW_LINE> <INDENT> pass | An interface for services. | 62598fdfd8ef3951e32c817e |
class OperatorField(Field): <NEW_LINE> <INDENT> def __init__(self, name, *operators): <NEW_LINE> <INDENT> super(OperatorField, self).__init__(name) <NEW_LINE> self._name_to_op = dict() <NEW_LINE> for op in [op for op in operators]: <NEW_LINE> <INDENT> self._name_to_op[op.get_name()] = op <NEW_LINE> <DEDENT> <DEDENT> de... | A field that support multiple operators.
The first argument to the apply method should always be the operator name. | 62598fdfc4546d3d9def75a7 |
class CORMap(Map): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def get_properties(cls, header): <NEW_LINE> <INDENT> properties = Map.get_properties(header) <NEW_LINE> properties.update({ "date": parse_time(header.get('date_obs')), "detector": header.get('detector'), "instrument": "SECCHI", "observatory": header.get('ob... | COR Image Map definition | 62598fe0d8ef3951e32c8181 |
class RatingReducer(Reducer): <NEW_LINE> <INDENT> def reduce(self, key, values): <NEW_LINE> <INDENT> raise NotImplementedError | Example Reducer that does nothing at the moment.
Your task is to implement the reduce method which will return the average film rating. | 62598fe0187af65679d29f1b |
class KeyValue(CIMXMLTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(KeyValue, self).setUp() <NEW_LINE> self.xml.append(cim_xml.KEYVALUE('dog', 'string')) <NEW_LINE> self.xml.append(cim_xml.KEYVALUE('2', 'numeric')) <NEW_LINE> self.xml.append(cim_xml.KEYVALUE('FALSE', 'boolean')) <NEW_LINE> self.x... | <!ELEMENT KEYVALUE (#PCDATA)>
<!ATTLIST KEYVALUE
VALUETYPE (string|boolean|numeric) 'string'
%CIMType; #IMPLIED> | 62598fe0091ae35668705269 |
class NurbsSurfaceBilinear: <NEW_LINE> <INDENT> def __init__(self, P00, P01, P10, P11): <NEW_LINE> <INDENT> self.P00 = P00 <NEW_LINE> self.P01 = P01 <NEW_LINE> self.P10 = P10 <NEW_LINE> self.P11 = P11 <NEW_LINE> self.ndim = 3 <NEW_LINE> ndims = [np.shape(P00)[0], np.shape(P01)[0], np.shape(P10)[0], np.shape(P11)[0]] <N... | Create a NURBS representation of the bilinear patch defined by corners P00, P01, P10, and P11
Create a NURBS representation of the bilinear patch
S(u,v) = (1-v)*[(1-u)*P00 + u*P01] + v*[(1-u)*P10 + u*P11]
Note that a bilinear patch is a ruled surface with segments (P00, P01) and (P10, P11) as generati... | 62598fe0adb09d7d5dc0abc9 |
class Media: <NEW_LINE> <INDENT> css = { "all": ("admin/mixing/styles.css",), } <NEW_LINE> js = ("admin/mixing/scripts.js",) | Include our style and script customizations for the Project admin. | 62598fe026238365f5fad1b5 |
class MyDocuments(Documents): <NEW_LINE> <INDENT> search_options = {'Creator': authenticated_member, 'trashed': False} <NEW_LINE> enabled_actions = [ 'zip_selected', 'export_documents', ] <NEW_LINE> major_actions = [] <NEW_LINE> @property <NEW_LINE> def columns(self): <NEW_LINE> <INDENT> remove_columns = ['containing_s... | List the documents created by the current user. | 62598fe0d8ef3951e32c8185 |
class ClothesTweak_MaxWeight(ClothesTweak): <NEW_LINE> <INDENT> def buildPatch(self,patchFile,keep,log): <NEW_LINE> <INDENT> tweakCount = 0 <NEW_LINE> maxWeight = self.choiceValues[self.chosen][0] <NEW_LINE> superWeight = max(10,5*maxWeight) <NEW_LINE> for record in patchFile.CLOT.records: <NEW_LINE> <INDENT> weight = ... | Enforce a max weight for specified clothes. | 62598fe0c4546d3d9def75ae |
class _RowFormatter(): <NEW_LINE> <INDENT> def __init__(self, mcls: List[int]) -> None: <NEW_LINE> <INDENT> self.colpad = 2 <NEW_LINE> self.mcls = list(map(lambda x: x + self.colpad, mcls)) <NEW_LINE> self.fmts = str() <NEW_LINE> for mcl in self.mcls: <NEW_LINE> <INDENT> self.fmts += f'{{:<{mcl}s}}' <NEW_LINE> <DEDENT>... | Private class used for row formatting. | 62598fe0adb09d7d5dc0abcb |
class ExpressionCaptcha(object): <NEW_LINE> <INDENT> is_captcha = True <NEW_LINE> def __init__(self, config): <NEW_LINE> <INDENT> self.config = config <NEW_LINE> self.terms = config.get('captcha_expression_terms', 3) <NEW_LINE> self.ceiling = config.get('captcha_expression_ceiling', 10) <NEW_LINE> if self.ceiling > 100... | captcha in the form of a human readable numeric expression
Initial implementation by sergeych@tancher.com. | 62598fe0fbf16365ca794715 |
class PAFeedParser(NITFFeedParser): <NEW_LINE> <INDENT> NAME = 'pa_nitf' <NEW_LINE> label = 'PA NITF' <NEW_LINE> def _category_mapping(self, elem): <NEW_LINE> <INDENT> if elem.get('content') is not None: <NEW_LINE> <INDENT> category = elem.get('content')[:1].upper() <NEW_LINE> if category in {'S', 'R', 'F'}: <NEW_LINE>... | NITF Parser extension for Press Association, it maps the category meta tag to an anpa category | 62598fe026238365f5fad1b7 |
class StackedCells(object): <NEW_LINE> <INDENT> def __init__(self, input_size, celltype=RNN, layers = [], activation = lambda x:x): <NEW_LINE> <INDENT> self.input_size = input_size <NEW_LINE> self.create_layers(layers, activation, celltype) <NEW_LINE> <DEDENT> def create_layers(self, layer_sizes, activation_type, cellt... | Sequentially connect several recurrent layers.
celltypes can be RNN or LSTM. | 62598fe0c4546d3d9def75af |
@dataclass <NEW_LINE> class ResNetModelOutput(ModelOutput): <NEW_LINE> <INDENT> last_hidden_state: torch.FloatTensor = None <NEW_LINE> pooler_output: torch.FloatTensor = None <NEW_LINE> hidden_states: Optional[Tuple[torch.FloatTensor]] = None | ResNet model's output, with potential hidden states.
Args:
last_hidden_state (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)`):
Sequence of hidden-states at the output of the last layer of the model.
pooler_output (`torch.FloatTensor` of shape `(batch_size, config.hidden_sizes[... | 62598fe0c4546d3d9def75b0 |
class User(AbstractBaseUser, PermissionsMixin): <NEW_LINE> <INDENT> email = models.EmailField( unique=True, error_messages={ 'unique': _("そのEメールアドレスはすでに使用されています"), }, verbose_name='Eメール' ) <NEW_LINE> username_validator = UnicodeUsernameValidator() <NEW_LINE> username = models.CharField( max_length=150, validators=[user... | An abstract base class implementing a fully featured User model with
admin-compliant permissions.
Username and password are required. Other fields are optional. | 62598fe0187af65679d29f21 |
class FileVariables(object): <NEW_LINE> <INDENT> _filename = None <NEW_LINE> def __init__(self, filename=None): <NEW_LINE> <INDENT> self._filename = filename <NEW_LINE> self._local_vars = dict() <NEW_LINE> self._load_variables() <NEW_LINE> <DEDENT> def get_value(self, key): <NEW_LINE> <INDENT> return self._local_vars.g... | Emacs local variables format parser for Mamba.
We don't use twisted self implementation because we need extra stuff. | 62598fe0d8ef3951e32c8188 |
class IconData(IniFile): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> IniFile.__init__(self) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return self.getDisplayName() <NEW_LINE> <DEDENT> def parse(self, file): <NEW_LINE> <INDENT> IniFile.parse(self, file, ["Icon Data"]) <NEW_LINE> <DEDENT>... | Class to parse and validate IconData Files | 62598fe050812a4eaa620f0d |
class ResidualBlock(nn.Module): <NEW_LINE> <INDENT> def __init__(self, inchannel, outchannel, stride=1, shortcut=None): <NEW_LINE> <INDENT> super(ResidualBlock, self).__init__() <NEW_LINE> self.left = nn.Sequential( nn.Conv2d(inchannel, outchannel, 3, stride, 1, bias=False), nn.BatchNorm2d(outchannel), nn.ReLU(inplace=... | sub module: the residual block | 62598fe0d8ef3951e32c8189 |
class MultiOptionField(Field): <NEW_LINE> <INDENT> def custom_default(self): <NEW_LINE> <INDENT> return self.values[0] <NEW_LINE> <DEDENT> def allowed_types(self): <NEW_LINE> <INDENT> return 'unicode-strings in %s' % self.values <NEW_LINE> <DEDENT> def on_initialized(self, sender, kwargs): <NEW_LINE> <INDENT> self.opti... | A (typically dropdown) selection field.
Takes an extra argument ``options`` which is a tuple of two-tuples (or any
other iterable datatype in this form) where the first item of the two-tuple
holds a value and the second item the label for entry.
The value item might be of any type, the label item has to be a string.
... | 62598fe0c4546d3d9def75b3 |
class UserDetailView(LoginRequiredMixin, View): <NEW_LINE> <INDENT> def get(self, request): <NEW_LINE> <INDENT> user = get_object_or_404(User, pk=int(request.GET['id'])) <NEW_LINE> users = User.objects.exclude(Q(id=int(request.GET['id'])) | Q(username='admin')) <NEW_LINE> structures = Structure.objects.values() <NEW_LI... | 用户详情视图 | 62598fe050812a4eaa620f0f |
class Node(object): <NEW_LINE> <INDENT> def __init__(self, value=None): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> self.next = None <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return str(self.value) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return str(self.value) | Defines a class for Queue Node | 62598fe0fbf16365ca79471f |
class Repository: <NEW_LINE> <INDENT> def __init__(self, root=None, *args, **kwargs): <NEW_LINE> <INDENT> self.root = root <NEW_LINE> self.config = confutils.ConfigFile() <NEW_LINE> self.actions_config = self.config.section_view('actions') <NEW_LINE> self.files_config = self.config.section_view('files', True) <NEW_LINE... | Holds repository configuration.
Attributes:
categories (str set): all categories
files (str list): all managed files
file_actions (dict(str => FileConfig)): actions for files
rule_lexer (rule_parser.RuleLexer): lexer to use for rule parsing | 62598fe0187af65679d29f25 |
class PageBlockTable(Object): <NEW_LINE> <INDENT> ID = 0xbf4dea82 <NEW_LINE> def __init__(self, title, rows: list, bordered: bool = None, striped: bool = None): <NEW_LINE> <INDENT> self.bordered = bordered <NEW_LINE> self.striped = striped <NEW_LINE> self.title = title <NEW_LINE> self.rows = rows <NEW_LINE> <DEDENT> @s... | Attributes:
ID: ``0xbf4dea82``
Args:
title: Either :obj:`TextEmpty <pyrogram.api.types.TextEmpty>`, :obj:`TextPlain <pyrogram.api.types.TextPlain>`, :obj:`TextBold <pyrogram.api.types.TextBold>`, :obj:`TextItalic <pyrogram.api.types.TextItalic>`, :obj:`TextUnderline <pyrogram.api.types.TextUnderline>`, :obj:`T... | 62598fe026238365f5fad1c3 |
class RandomKeyError(PotteryError, RuntimeError): <NEW_LINE> <INDENT> pass | Can't create a random Redis key; all of our attempts already exist. | 62598fe0d8ef3951e32c818c |
class NonAsciiUnicodeDictationTestCase(ElementTestCase): <NEW_LINE> <INDENT> def _build_element(self): <NEW_LINE> <INDENT> def value_func(node, extras): <NEW_LINE> <INDENT> return text_type(extras["text"]) <NEW_LINE> <DEDENT> return Compound("test <text>", extras=[Dictation(name="text")], value_func=value_func) <NEW_LI... | Verify handling of non-ASCII characters in unicode dictation. | 62598fe0ab23a570cc2d509f |
class UserProfileSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = models.UserProfile <NEW_LINE> fields = ('id','email','name','password') <NEW_LINE> extra_kwargs = { 'password':{ 'write_only' :True, 'style':{'input_type':'password'} } } <NEW_LINE> <DEDENT> def create(... | Serializes a user profile object | 62598fe04c3428357761a910 |
class ContainerRegistryManagementClientConfiguration(Configuration): <NEW_LINE> <INDENT> def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any ) -> None: <NEW_LINE> <INDENT> super(ContainerRegistryManagementClientConfiguration, self).__init__(**kwargs) <NEW_LINE> if credential is N... | Configuration for ContainerRegistryManagementClient.
Note that all parameters used to create this instance are saved as instance
attributes.
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The Microso... | 62598fe0d8ef3951e32c818d |
class query_result: <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.LIST, b'success', (TType.STRUCT,(Property, Property.thrift_spec)), None, ), ) <NEW_LINE> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TB... | Attributes:
- success | 62598fe0091ae3566870527f |
class Address(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def address_factory(addr): <NEW_LINE> <INDENT> split = addr.split(':', 1) <NEW_LINE> if 'pipe' == split[0]: <NEW_LINE> <INDENT> addressObj = _AbstractPipeAddress._factory(addr, split) <NEW_LINE> <DEDENT> elif 'tcp' == split[0]: <NEW_LINE> <INDENT> addr... | Base class for a addressable endpoint. This class can create the
underlying sockets as needed based on the communication endpoint type. | 62598fe0ad47b63b2c5a7eb3 |
class EvolinoSubMutation(SimpleMutation): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> SimpleMutation.__init__(self) <NEW_LINE> ap = KWArgsProcessor(self, kwargs) <NEW_LINE> ap.add('mutationVariate', default=CauchyVariate()) <NEW_LINE> self.mutationVariate.alpha = 0.001 | Mutation operator for EvolinoSubPopulation objects.
Like SimpleMutation, except, that CauchyVariate is used by default. | 62598fe04c3428357761a912 |
class JarRules(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def skip_signatures_and_duplicates_concat_well_known_metadata(cls, default_dup_action=None, additional_rules=None): <NEW_LINE> <INDENT> default_dup_action = Duplicate.validate_action(default_dup_action or Duplicate.SKIP) <NEW_LINE> additional_rules = a... | A set of rules for packaging up a deploy jar.
Deploy jars are executable jars with fully self-contained classpaths and as such, assembling them
presents problems given jar semantics.
One issue is signed jars that must be included on the
classpath. These have a signature that depends on the jar contents and assembly ... | 62598fe0d8ef3951e32c818e |
class AvailableProducts(enum.IntEnum): <NEW_LINE> <INDENT> JUMPER = 1 <NEW_LINE> T_SHIRT = 2 <NEW_LINE> SOCKS = 3 <NEW_LINE> JEANS = 4 | Class of available products. | 62598fe0fbf16365ca794727 |
class Libro(models.Model): <NEW_LINE> <INDENT> nombre = models.CharField(max_length=50) <NEW_LINE> fecha = models.DateField() | docstring for Libro. | 62598fe0d8ef3951e32c818f |
class Str(Variable): <NEW_LINE> <INDENT> def __init__(self, default_value='', iotype=None, desc=None, **metadata): <NEW_LINE> <INDENT> if not isinstance(default_value, str): <NEW_LINE> <INDENT> raise ValueError("Default value for a Str must be a string") <NEW_LINE> <DEDENT> if iotype is not None: <NEW_LINE> <INDENT> me... | A variable wrapper for a string variable.
| 62598fe0187af65679d29f29 |
class ConohaProviderTests(TestCase, IntegrationTestsV2): <NEW_LINE> <INDENT> provider_name = "conoha" <NEW_LINE> domain = "narusejun.com" <NEW_LINE> def _test_parameters_overrides(self): <NEW_LINE> <INDENT> return {"auth_region": "tyo1"} <NEW_LINE> <DEDENT> def _test_fallback_fn(self): <NEW_LINE> <INDENT> return lambda... | TestCase for Conoha | 62598fe1ad47b63b2c5a7eb7 |
class InputStack(jsl.Document): <NEW_LINE> <INDENT> class Options: <NEW_LINE> <INDENT> description = "Input stack for generating recommendations" <NEW_LINE> definition_id = "input_stack" <NEW_LINE> <DEDENT> appstack_id = jsl.StringField(required=True) <NEW_LINE> uri = jsl.StringField(required=True) | Class with the schema definition based on JSL domain specific language. | 62598fe126238365f5fad1cb |
class Writer(ABC): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> async def flush(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def write_candles(self, candles): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def write_t... | A write handle to market history data
:ivar int newest_timestamp: Number of seconds between the Epoch and the most recent data written. | 62598fe1c4546d3d9def75b9 |
class HcDriverInfoItem(ManagedObject): <NEW_LINE> <INDENT> consts = HcDriverInfoItemConsts() <NEW_LINE> naming_props = set([u'id']) <NEW_LINE> mo_meta = MoMeta("HcDriverInfoItem", "hcDriverInfoItem", "driver-[id]", VersionMeta.Version151a, "InputOutput", 0x1ff, [], ["admin"], [u'hcHolder'], [], [None]) <NEW_LINE> prop_... | This is HcDriverInfoItem class. | 62598fe150812a4eaa620f15 |
class Figure: <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = y <NEW_LINE> <DEDENT> def move(figure, point): <NEW_LINE> <INDENT> figure.x = point.x <NEW_LINE> figure.y = point.y <NEW_LINE> <DEDENT> def square(self): <NEW_LINE> <INDENT> pass <NEW_LINE> print('У абстрактно... | Документация for Figure | 62598fe1fbf16365ca79472c |
class ModifyAlert(graphene.Mutation): <NEW_LINE> <INDENT> class Arguments: <NEW_LINE> <INDENT> input_object = ModifyAlertInput( required=True, name='input', description="Input ObjectType for modifying an alert", ) <NEW_LINE> <DEDENT> ok = graphene.Boolean( description="True on success. Otherwise the response contains a... | Modify an alert | 62598fe14c3428357761a918 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.