code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Command(BaseCommand): <NEW_LINE> <INDENT> help = ( "Install the Hubspot Ecommerce Bridge if it is not already installed and configure the settings based on " "the given file. Make sure a HUBSPOT_API_KEY is set in settings and HUBSPOT_ECOMMERCE_SETTINGS are " "configured in ecommerce/management/commands/configure_... | Command to configure the Hubspot ecommerce bridge which will handle syncing Hubspot Products, Deals, Line Items,
and Contacts with the MITxPro Products, Orders, and Users | 62599058379a373c97d9a5bd |
class _ArgTemplateBuilder(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._arg_accumulator = [] <NEW_LINE> self._argspec = [] <NEW_LINE> self._finalized = False <NEW_LINE> <DEDENT> def _consume_args(self): <NEW_LINE> <INDENT> if self._arg_accumulator: <NEW_LINE> <INDENT> self._argspec.append( ... | Constructs a tuple representing the positional arguments in a call.
Example (yes, it's legal Python 3):
f(*args1, b, *args2, c, d) -> args1 + (b,) + args2 + (c, d) | 6259905829b78933be26ab91 |
class UnknownError(TypeError): <NEW_LINE> <INDENT> pass | Raised whenever :class:`Unknown` is used in a boolean operation.
EXAMPLES::
sage: not Unknown
Traceback (most recent call last):
...
UnknownError: Unknown does not evaluate in boolean context | 625990582c8b7c6e89bd4d87 |
class OPCD_D_spr_XO_1(MachineInstruction): <NEW_LINE> <INDENT> signature = (D, spr) <NEW_LINE> def _render(params, operands): <NEW_LINE> <INDENT> return OPCD.render(params['OPCD']) | D.render(operands['D']) | spr.render(operands['spr']) | XO_1.render(params['XO']) <NEW_LINE> <DEDENT> render = staticmethod(_render) | Instructions: (1) mfspr | 62599058d6c5a102081e36b9 |
class TestAsset(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.name = 'test' <NEW_LINE> self.var_name = 'test_var' <NEW_LINE> self.component = Mock(length=1) <NEW_LINE> self.solution = Mock() <NEW_LINE> self.motion_func = Mock() <NEW_LINE> <DEDENT> def test_motion(self): <NEW_LINE> <INDENT> fu... | Unit test for class Asset. | 625990589c8ee82313040c57 |
class ServiceAssociationLink(SubResource): <NEW_LINE> <INDENT> _validation = { 'etag': {'readonly': True}, 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'st... | ServiceAssociationLink resource.
Variables are only populated by the server, and will be ignored when sending a request.
:param id: Resource ID.
:type id: str
:param name: Name of the resource that is unique within a resource group. This name can be used
to access the resource.
:type name: str
:ivar etag: A unique r... | 6259905807d97122c4218244 |
class Form(view.View): <NEW_LINE> <INDENT> fields = Fieldset() <NEW_LINE> buttons = None <NEW_LINE> label = None <NEW_LINE> description = '' <NEW_LINE> prefix = 'form.' <NEW_LINE> actions = None <NEW_LINE> widgets = None <NEW_LINE> content = None <NEW_LINE> mode = FORM_INPUT <NEW_LINE> method = 'post' <NEW_LINE> enctyp... | A form
| 625990587d847024c075d975 |
class TradeMonitor(BasicMonitor): <NEW_LINE> <INDENT> def __init__(self, mainEngine, eventEngine, parent=None): <NEW_LINE> <INDENT> super(TradeMonitor, self).__init__(mainEngine, eventEngine, parent) <NEW_LINE> d = OrderedDict() <NEW_LINE> d['gatewayName'] = {'chinese':vtText.GATEWAY, 'cellType':BasicCell} <NEW_LINE> d... | 成交监控 | 62599058d99f1b3c44d06c3a |
class ApplicationGatewaySslCertificate(SubResource): <NEW_LINE> <INDENT> _validation = { 'etag': {'readonly': True}, 'type': {'readonly': True}, 'public_cert_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', '... | SSL certificates of an application gateway.
Variables are only populated by the server, and will be ignored when sending a request.
:param id: Resource ID.
:type id: str
:param name: Name of the SSL certificate that is unique within an Application Gateway.
:type name: str
:ivar etag: A unique read-only string that ch... | 6259905882261d6c52730997 |
class ReverseProxied: <NEW_LINE> <INDENT> def __init__(self, app): <NEW_LINE> <INDENT> self.app = app <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def _extract_prefix(environ: dict) -> str: <NEW_LINE> <INDENT> path = environ.get("HTTP_X_SCRIPT_NAME", "") <NEW_LINE> if not path: <NEW_LINE> <INDENT> path = environ.get("H... | Create a Proxy pattern https://microservices.io/patterns/apigateway.html.
You can run the microservice A in your local machine in http://localhost:5000/my-endpoint/
If you deploy your microservice, in some cases this microservice run behind a cluster, a gateway... and this
gateway redirect traffic to the microservice w... | 6259905899cbb53fe6832478 |
class PuchaseReportDetails(object): <NEW_LINE> <INDENT> def __init__(self, vendorName, vendorAddress, vendorGstin, vendorStateCode, billNo, billDate, dueDate, payBy, total, tax, amountPaid, remarks, status, cancel): <NEW_LINE> <INDENT> self.vendorName = _constants.valueWrapper(vendorName, False) <NEW_LINE> self.vendorA... | Wrapper class for adding purchase information | 6259905845492302aabfda71 |
class PlayersViewSet(FiltersMixin, viewsets.ModelViewSet): <NEW_LINE> <INDENT> serializer_class = PlayerSerializer <NEW_LINE> pagination_class = ResultSetPagination <NEW_LINE> filter_backends = (filters.OrderingFilter,) <NEW_LINE> ordering_fields = ('id', 'name', 'update_ts') <NEW_LINE> ordering = ('id',) <NEW_LINE> fi... | This viewset automatically provides `list`, `create`, `retrieve`,
`update` and `destroy` actions. | 625990584428ac0f6e659ad5 |
class NsemPsaVariableSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = NsemPsaVariable <NEW_LINE> fields = '__all__' | Named Storm Event Model PSA Variable Serializer | 62599058cc0a2c111447c586 |
class Passage2Number(): <NEW_LINE> <INDENT> pass | To be used as mapping function in COMPARATIVE | 6259905807d97122c4218245 |
class EmailHandlerTests(SimpleTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> prep_db() <NEW_LINE> self.factory = RequestFactory() <NEW_LINE> self.user = CRITsUser.objects(username=TUSER_NAME).first() <NEW_LINE> self.user.sources.append(TSRC) <NEW_LINE> self.user.save() <NEW_LINE> <DEDENT> def tearD... | Email test class. | 62599058009cb60464d02acf |
class Characteristic(BaseMFDfromSlip): <NEW_LINE> <INDENT> def setUp(self, mfd_conf): <NEW_LINE> <INDENT> self.mfd_model = 'Characteristic' <NEW_LINE> self.mfd_weight = mfd_conf['Model_Weight'] <NEW_LINE> self.bin_width = mfd_conf['MFD_spacing'] <NEW_LINE> self.mmin = None <NEW_LINE> self.mmax = None <NEW_LINE> self.mm... | Class to implement the characteristic earthquake model assuming a truncated
Gaussian distribution
:param str mfd_model:
Type of magnitude frequency distribution
:param float mfd_weight:
Weight of the mfd distribution (for subsequent logic tree processing)
:param float bin_width:
Width of the magnitude bi... | 625990587b25080760ed87ac |
class PrivateEndpointListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[PrivateEndpoint]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Optional[L... | Response for the ListPrivateEndpoints API service call.
Variables are only populated by the server, and will be ignored when sending a request.
:param value: A list of private endpoint resources in a resource group.
:type value: list[~azure.mgmt.network.v2020_03_01.models.PrivateEndpoint]
:ivar next_link: The URL to ... | 62599058a8ecb033258727b2 |
class BloomFilter(): <NEW_LINE> <INDENT> def __init__(self, items_count): <NEW_LINE> <INDENT> self.size = self.get_size(items_count, ERR_RATE) <NEW_LINE> self.hash_count = self.get_hash_count(self.size,items_count) <NEW_LINE> self.bit_array = bitarray(self.size) <NEW_LINE> self.bit_array.setall(0) <NEW_LINE> <DEDENT> d... | Class for Bloom filter, using murmur3 hash function | 62599058dd821e528d6da44d |
class Conv2d_same_leaky(_ConvNd): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bias=True, relu=True): <NEW_LINE> <INDENT> kernel_size = _pair(kernel_size) <NEW_LINE> stride = _pair(stride) <NEW_LINE> padding = _pair(padding) <NEW_LINE> dilatio... | from CSDN | 6259905876e4537e8c3f0b26 |
class Plant(Biology): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Biology, self).__init__() <NEW_LINE> <DEDENT> def collect_sunshine(self): <NEW_LINE> <INDENT> con = "%s %s" % (self.__class__.__name__,sys._getframe().f_code.co_name) <NEW_LINE> pylog.info(con) <NEW_LINE> return con | a class Plant | 62599058a17c0f6771d5d66e |
class OrderBook(Model): <NEW_LINE> <INDENT> def __init__(self, instrument: InstrumentName = sentinel, time: DateTime = sentinel, unix_time: DateTime = sentinel, price: PriceValue = sentinel, bucket_width: PriceValue = sentinel, buckets: ArrayOrderBookBucket = sentinel): <NEW_LINE> <INDENT> Model.__init__(**locals()) | The representation of an instrument's order book at a point in time
Attributes:
instrument: :class:`~async_v20.InstrumentName`
The order book's instrument
time: :class:`~async_v20.DateTime`
The time when the order book snapshot was created.
unix_time: :class:`~async_v20.DateTime`
Th... | 62599058ac7a0e7691f73a7b |
class Result(Store): <NEW_LINE> <INDENT> code = Field(target='resultCode') <NEW_LINE> basket = EmbeddedStoreField(target='basket', store_class='Basket') | Helper class to abstract `BasketModificationResult` reaktor object. | 62599058b57a9660fecd3015 |
class DataprocProjectsRegionsJobsPatchRequest(_messages.Message): <NEW_LINE> <INDENT> job = _messages.MessageField('Job', 1) <NEW_LINE> jobId = _messages.StringField(2, required=True) <NEW_LINE> projectId = _messages.StringField(3, required=True) <NEW_LINE> region = _messages.StringField(4, required=True) <NEW_LINE> up... | A DataprocProjectsRegionsJobsPatchRequest object.
Fields:
job: A Job resource to be passed as the request body.
jobId: Required The job ID.
projectId: Required The ID of the Google Cloud Platform project that the
job belongs to.
region: Required The Cloud Dataproc region in which to handle the request.
u... | 62599058b7558d58954649f8 |
class BaseDatatableView(JSONResponseMixin, TemplateView): <NEW_LINE> <INDENT> model = None <NEW_LINE> columns = [] <NEW_LINE> order_columns = [] <NEW_LINE> max_display_length = 100 <NEW_LINE> def initialize(*args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_order_columns(self): <NEW_LINE> <INDENT> r... | JSON data for datatables
| 6259905801c39578d7f14204 |
class TrainableHanoi(Hanoi, base.TrainableDenseToDenseEnv): <NEW_LINE> <INDENT> def __init__(self, n_disks=None, modeled_env=None, predict_delta=True, done_threshold=0.5, reward_threshold=0.5): <NEW_LINE> <INDENT> super().__init__(n_disks=modeled_env.n_disks, reward_for_solved=modeled_env._reward_for_solved, reward_for... | Hanoi tower environment based on Neural Network. | 625990584a966d76dd5f048c |
class fixFormatter(argparse.HelpFormatter): <NEW_LINE> <INDENT> def _split_lines(self, text, width): <NEW_LINE> <INDENT> if text.startswith("M|"): <NEW_LINE> <INDENT> return text[2:].splitlines() <NEW_LINE> <DEDENT> return argparse.HelpFormatter._split_lines(self, text, width) | Class to allow multi line help statements in argparse | 6259905832920d7e50bc75e1 |
class Cache: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._redis = redis.Redis() <NEW_LINE> self._redis.flushdb() <NEW_LINE> <DEDENT> @call_history <NEW_LINE> @count_calls <NEW_LINE> def store(self, data: UnionOfTypes) -> str: <NEW_LINE> <INDENT> key = str(uuid4()) <NEW_LINE> self._redis.mset({key: ... | Represents a class called Cache with a protected instance
attribute called redis | 6259905829b78933be26ab92 |
class ComputeTargetInstancesListRequest(messages.Message): <NEW_LINE> <INDENT> filter = messages.StringField(1) <NEW_LINE> maxResults = messages.IntegerField(2, variant=messages.Variant.UINT32, default=500) <NEW_LINE> pageToken = messages.StringField(3) <NEW_LINE> project = messages.StringField(4, required=True) <NEW_L... | A ComputeTargetInstancesListRequest object.
Fields:
filter: Filter expression for filtering listed resources.
maxResults: Maximum count of results to be returned.
pageToken: Tag returned by a previous list request when that list was
truncated to maxResults. Used to continue a previous list request.
project... | 62599058462c4b4f79dbcfa0 |
class MediaProcessTaskResult(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Type = None <NEW_LINE> self.TranscodeTask = None <NEW_LINE> self.AnimatedGraphicTask = None <NEW_LINE> self.SnapshotByTimeOffsetTask = None <NEW_LINE> self.SampleSnapshotTask = None <NEW_LINE> self.ImageSpriteT... | 任务查询结果类型
| 625990581f037a2d8b9e5339 |
class Exporter(Process): <NEW_LINE> <INDENT> def __init__(self, file, input_queue): <NEW_LINE> <INDENT> self.file = open(file, 'w') <NEW_LINE> self.input_q = input_queue <NEW_LINE> super().__init__() <NEW_LINE> <DEDENT> def export(self, item): <NEW_LINE> <INDENT> line = ','.join(item) + '\n' <NEW_LINE> self.file.write(... | 导出类实现
| 625990582c8b7c6e89bd4d89 |
class SecureHTTPServer(HTTPServer, object): <NEW_LINE> <INDENT> def __init__(self, address, handler, cert_file): <NEW_LINE> <INDENT> super(SecureHTTPServer, self).__init__(address, handler) <NEW_LINE> self.socket = ssl.wrap_socket(self.socket, certfile=cert_file) | A HTTP Server object that support HTTPS | 625990580a50d4780f70688c |
class Parser(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def from_spec(spec): <NEW_LINE> <INDENT> if isinstance(spec, Parser): <NEW_LINE> <INDENT> return spec <NEW_LINE> <DEDENT> elif isinstance(spec, dict): <NEW_LINE> <INDENT> return SpecParser(spec) <NEW_LINE> <DEDENT> elif callable(spec): <NEW_LINE> <INDEN... | Base for config parsers. | 625990587cff6e4e811b6fde |
class outgoing(object): <NEW_LINE> <INDENT> def __init__(self, repo, commonheads=None, missingheads=None, missingroots=None): <NEW_LINE> <INDENT> assert None in (commonheads, missingroots) <NEW_LINE> cl = repo.changelog <NEW_LINE> if missingheads is None: <NEW_LINE> <INDENT> missingheads = cl.heads() <NEW_LINE> <DEDENT... | Represents the set of nodes present in a local repo but not in a
(possibly) remote one.
Members:
missing is a list of all nodes present in local but not in remote.
common is a list of all nodes shared between the two repos.
excluded is the list of missing changeset that shouldn't be sent remotely.
missinghead... | 62599058e64d504609df9e9d |
class TaskParamWidget(BasicDialog): <NEW_LINE> <INDENT> index = 0 <NEW_LINE> name = '' <NEW_LINE> paramDict = {} <NEW_LINE> valueEdit = {} <NEW_LINE> def __init__(self, paramDict, parent=None): <NEW_LINE> <INDENT> super(TaskParamWidget, self).__init__(parent) <NEW_LINE> self.valueEdit = {} <NEW_LINE> self.para... | 策略配置对话框 | 62599058097d151d1a2c2607 |
class Offset(BaseType): <NEW_LINE> <INDENT> size = 4 <NEW_LINE> fmt = 'I' <NEW_LINE> def tostring(self, val): <NEW_LINE> <INDENT> return '%10d (%08X)' % (val, val) | An offset in an FRES file. | 6259905807f4c71912bb09d6 |
class SMSMessage: <NEW_LINE> <INDENT> __PHONE_NUMBER_PATTERN = "^\+?\d+$" <NEW_LINE> def __init__(self, phone_number, data): <NEW_LINE> <INDENT> if phone_number is None: <NEW_LINE> <INDENT> raise ValueError("Phone number cannot be None") <NEW_LINE> <DEDENT> if data is None: <NEW_LINE> <INDENT> raise ValueError("Data ca... | This class represents an SMS message containing the phone number that sent
the message and the content (data) of the message.
This class is used within the library to read SMS sent to Cellular devices. | 625990587b25080760ed87ad |
class TestIntegerColumn(unittest.TestCase): <NEW_LINE> <INDENT> def test_create(self): <NEW_LINE> <INDENT> self.assertRaises(TypeError, IntegerColumn, -1) <NEW_LINE> self.assertRaises(TypeError, IntegerColumn, maxvalue=-1) <NEW_LINE> <DEDENT> def test_check(self): <NEW_LINE> <INDENT> col = IntegerColumn(maxvalue=5) <NE... | Test that the IntegerColumn class correctly operates | 6259905807f4c71912bb09d7 |
class StepSchedule(Schedule): <NEW_LINE> <INDENT> def __init__(self, step_config, change): <NEW_LINE> <INDENT> assert isinstance(step_config, list) and isinstance(change, list), "The arguments change and step_config must be lists." <NEW_LINE> assert len(step_config) == len(change), "The arguments ... | Steps the learning rate over training time.
To set a step schedule, pass as arguments ``step_config`` and ``change``. The schedule
will set the learning rate at ``step[i]`` to ``change[i]``. For example, the call:
.. code-block:: python
schedule = Schedule(step_config=[2, 6], change=[0.6, 0.4])
will set the lea... | 6259905816aa5153ce401a80 |
class IndentedHelpFormatter (HelpFormatter): <NEW_LINE> <INDENT> def __init__(self, indent_increment=2, max_help_position=24, width=None, short_first=1): <NEW_LINE> <INDENT> HelpFormatter.__init__( self, indent_increment, max_help_position, width, short_first) <NEW_LINE> <DEDENT> def format_usage(self, usage): <NEW_LIN... | Format help with indented section bodies.
| 625990588e7ae83300eea629 |
class FakeSlicer(object): <NEW_LINE> <INDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> return FakeMetadata(), np.random.standard_normal((3, 3)) <NEW_LINE> <DEDENT> def __call__(self, *args): <NEW_LINE> <INDENT> return FakeMetadata(), np.random.standard_normal((3, 3)) | Fake slicer for mipp.
| 6259905824f1403a9268639d |
class ProtocolError(WMR300Error): <NEW_LINE> <INDENT> pass | communication protocol error | 62599058004d5f362081fabb |
class mod_layer(object): <NEW_LINE> <INDENT> def __init__(self, l): <NEW_LINE> <INDENT> assert valid_layer(l), 'invalid layer %s' % l <NEW_LINE> self.layer = l <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return '(layer %s)' % self.layer | single footprint layer | 62599058435de62698e9d3a0 |
class HTMLField(models.TextField): <NEW_LINE> <INDENT> def formfield(self, **kwargs): <NEW_LINE> <INDENT> defaults = {'widget': mercury_widgets.TextareaMercury} <NEW_LINE> defaults.update(kwargs) <NEW_LINE> if defaults['widget'] == admin_widgets.AdminTextareaWidget: <NEW_LINE> <INDENT> defaults['widget'] = mercury_widg... | A large string field for HTML content. It uses the mercury widget in
forms. | 625990586e29344779b01be8 |
class ptuple(object): <NEW_LINE> <INDENT> h=femSpace.mesh.hMin <NEW_LINE> def __init__(self,p): <NEW_LINE> <INDENT> self.p=p <NEW_LINE> <DEDENT> def __hash__(self): <NEW_LINE> <INDENT> return hash(tuple(self.p)) <NEW_LINE> <DEDENT> def __eq__(self,other): <NEW_LINE> <INDENT> return enorm(self.p - other.p) <= self.h | define a dictionary key that defines points as equal if they're "close" | 625990581b99ca4002290006 |
class ComputedStaves(BaseStaffDetector): <NEW_LINE> <INDENT> def __init__(self, staves, staffline_distance, staffline_thickness, staves_interpolated_y): <NEW_LINE> <INDENT> super(ComputedStaves, self).__init__() <NEW_LINE> self.staves = np.asarray(staves) <NEW_LINE> self.staffline_distance = np.asarray(staffline_distan... | Computed staves holder.
The result of `BaseStaffDetector.compute()`. Holds NumPy arrays with the
result of staff detection. | 625990588a43f66fc4bf372a |
class TestVelCtrlVsPosCtrl(DualAxisTest): <NEW_LINE> <INDENT> def run_test(self, axis0_ctx: AxisTestContext, axis1_ctx: AxisTestContext, logger): <NEW_LINE> <INDENT> load_ctx = axis0_ctx <NEW_LINE> driver_ctx = axis1_ctx <NEW_LINE> logger.debug("activating load on {}...".format(load_ctx.name)) <NEW_LINE> load_ctx.handl... | Uses one ODrive as a load operating in velocity control mode.
The other ODrive tries to "fight" against the load in position mode. | 62599058e5267d203ee6ce8c |
class RobotsCrawler(grab.spider.Spider): <NEW_LINE> <INDENT> def __init__(self, db, domainfile, *args, **kwargs): <NEW_LINE> <INDENT> self.domainfile = domainfile <NEW_LINE> self.db = db <NEW_LINE> super(RobotsCrawler, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def valid_response_code(self, code, task): <NEW_L... | Simple grab spider to iterate through a list of urls, and store in
sqllite database | 6259905891af0d3eaad3b3c5 |
class IbmPerfTool(object): <NEW_LINE> <INDENT> def __init__(self, ibmperf_dir=DEFAULT_DIR): <NEW_LINE> <INDENT> self._ibmperf_dir = os.path.abspath(ibmperf_dir) <NEW_LINE> try: <NEW_LINE> <INDENT> _LOGGER.info("Checking if driver installed.") <NEW_LINE> self._Run(_DDQ, []) <NEW_LINE> _LOGGER.info("Driver already instal... | Base class wrapper for IBM Performance Inspector tools.
Provides utility functions for accessing the toolkit, and automatically
checks if it is installed, trying to install it if necessary. | 625990587cff6e4e811b6fe0 |
class Login(Page): <NEW_LINE> <INDENT> url = "xxxxx" <NEW_LINE> login_username_loc = (By.ID, "idToken1") <NEW_LINE> login_password_loc = (By.ID, "idToken2") <NEW_LINE> login_button_loc = (By.ID, "loginButton_0") <NEW_LINE> def login_username(self, username): <NEW_LINE> <INDENT> self.find_element(*self.login_username_lo... | 用户登录 | 625990587d847024c075d979 |
class UserCreationForm(forms.ModelForm): <NEW_LINE> <INDENT> password1 = forms.CharField(label='Password', widget=forms.PasswordInput, required=False) <NEW_LINE> password2 = forms.CharField(label='Password confirmation', widget=forms.PasswordInput, required=False) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = User... | Форма для создания новых пользователей. Включает все требуемые поля, а также повторение пароля. | 6259905816aa5153ce401a81 |
class YancPlugin(Plugin): <NEW_LINE> <INDENT> name = "yanc" <NEW_LINE> def options(self, parser, env): <NEW_LINE> <INDENT> super(YancPlugin, self).options(parser, env) <NEW_LINE> parser.add_option( "--yanc-color", action="store", dest="yanc_color", default=env.get("NOSE_YANC_COLOR"), help="YANC color override - one of ... | Yet another nose colorer | 6259905863d6d428bbee3d56 |
class RepFormatter(Formatter): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(RepFormatter, self).__init__(*args, **kwargs) <NEW_LINE> self.repeats = {} <NEW_LINE> self.repindex = 0 <NEW_LINE> <DEDENT> def format(self, *args, **kwargs): <NEW_LINE> <INDENT> self.repindex = 0 <NEW_LINE... | Extend Formatter to support a {_repindex} placeholder.
| 6259905882261d6c52730999 |
class CircularQueue: <NEW_LINE> <INDENT> class _Node: <NEW_LINE> <INDENT> __slots__ = '_element', '_next' <NEW_LINE> def __init__(self, element, next): <NEW_LINE> <INDENT> self._element = element <NEW_LINE> self._next = next <NEW_LINE> <DEDENT> <DEDENT> def __init__(self): <NEW_LINE> <INDENT> self._tail = None <NEW_LIN... | Queue implementation using a singly linked list for storage. | 62599058e64d504609df9e9e |
class Tournament: <NEW_LINE> <INDENT> registered_tournament_types = {} <NEW_LINE> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> <DEDENT> def __init_subclass__(cls, **kwargs): <NEW_LINE> <INDENT> tournament_type = cls.__name__ <NEW_LINE> Tournament.registered_tournament_types[tournament_type]... | Base class for a tournament model | 62599058097d151d1a2c2609 |
class Operator(Entity): <NEW_LINE> <INDENT> onestop_type = 'o' <NEW_LINE> def init(self, **data): <NEW_LINE> <INDENT> self.timezone = data.pop('timezone', None) <NEW_LINE> <DEDENT> def geohash(self): <NEW_LINE> <INDENT> return geom.geohash_features(self.stops()) <NEW_LINE> <DEDENT> def _cache_onestop(self): <NEW_LINE> ... | Transitland Operator Entity. | 62599058507cdc57c63a6343 |
@Role.filter_registry.register('no-specific-managed-policy') <NEW_LINE> class NoSpecificIamRoleManagedPolicy(Filter): <NEW_LINE> <INDENT> schema = type_schema('no-specific-managed-policy', value={'type': 'string'}) <NEW_LINE> permissions = ('iam:ListAttachedRolePolicies',) <NEW_LINE> def _managed_policies(self, client,... | Filter IAM roles that do not have a specific policy attached
For example, if the user wants to check all roles without 'ip-restriction':
.. code-block: yaml
- name: iam-roles-no-ip-restriction
resource: iam-role
filters:
- type: no-specific-managed-policy
value: ip-restriction | 62599058d7e4931a7ef3d61d |
class InputStreamSource(object): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> @abstractmethod <NEW_LINE> def get_input_stream(self): <NEW_LINE> <INDENT> pass | Simple interface for objects that are sources for an {@link InputStream}.
<p>This is the base interface for Spring's more extensive {@link Resource} interface.
<p>For single-use streams, {@link InputStreamResource} can be used for any
given {@code InputStream}. Spring's {@link ByteArrayResource} or any
file-based {@cod... | 62599058379a373c97d9a5c2 |
class TestDeleteHardwareTypeHandler(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> interactor_factory = Mock(factory.InteractorFactory) <NEW_LINE> self.__interactor = Mock(hi.DeleteHardwareTypeInteractor) <NEW_LINE> interactor_factory.create = Mock(return_value=self.__interactor) <NEW_LINE... | Unit tests for the DeleteHardwareTypeHandler class | 62599058596a89723612907f |
class String80Type (pyxb.binding.datatypes.normalizedString): <NEW_LINE> <INDENT> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'String80Type') <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location( 'http://www.fatturapa.gov.it/export/fatturazione/sdi/fatturapa/v1.2/' 'Schema_del_file_xml_FatturaPA_versione_1.... | An atomic simple type. | 625990582ae34c7f260ac685 |
class AbstractTestFunction(): <NEW_LINE> <INDENT> def __call__(self, x): <NEW_LINE> <INDENT> return self.evaluate(x) <NEW_LINE> <DEDENT> def evaluate(self, x): <NEW_LINE> <INDENT> return self._evalfull(x)[0] <NEW_LINE> <DEDENT> def _evalfull(self, x): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> de... | Abstract class for test functions.
Defines methods to be implemented in test functions which are to be
provided to method setfun of class Logger.
In particular, (a) the attribute fopt and (b) the method _evalfull.
The _evalfull method returns two values, the possibly noisy value and
the noise-free value. The latter ... | 6259905863b5f9789fe86710 |
class BarcodeSetMetadataType (DataSetMetadataType): <NEW_LINE> <INDENT> _TypeDefinition = None <NEW_LINE> _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY <NEW_LINE> _Abstract = False <NEW_LINE> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'BarcodeSetMetadataType') <NEW_LINE> _XSDLo... | Complex type {http://pacificbiosciences.com/PacBioDatasets.xsd}BarcodeSetMetadataType with content type ELEMENT_ONLY | 625990588e71fb1e983bd068 |
class JaroSimilarity: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def jaroSimilarity(s1,s2): <NEW_LINE> <INDENT> nLen1 = len(s1) <NEW_LINE> nLen2 = len(s2) <NEW_LINE> if nLen1 == 0 or nLen2 == 0: <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> nMatch = 0 <NEW_LINE> nTransposition = 0 <NEW_LINE> nMatchRange = max(max(... | to calculate the jaro distance between two strings | 62599058435de62698e9d3a2 |
class ExponentialLR(_LRScheduler): <NEW_LINE> <INDENT> def __init__(self, optimizer, init_lr, num_steps, last_epoch=-1): <NEW_LINE> <INDENT> self.init_lr = init_lr <NEW_LINE> self.num_steps = num_steps <NEW_LINE> super(ExponentialLR, self).__init__(optimizer, last_epoch) <NEW_LINE> <DEDENT> def get_lr(self): <NEW_LINE>... | Exponentially increases the learning rate between two boundaries over a number of iterations.
Arguments:
optimizer (torch.optim.Optimizer): wrapped optimizer.
init_lr (float): the initial learning rate which is the lower boundary of the test.
num_steps (int): the number of steps over which the test occurs.... | 625990583cc13d1c6d466cde |
class BaseCommit(ShellMixin): <NEW_LINE> <INDENT> id = None <NEW_LINE> tree = None <NEW_LINE> parents = [] <NEW_LINE> message = None <NEW_LINE> short_message = None <NEW_LINE> author = None <NEW_LINE> author_email = None <NEW_LINE> committer = None <NEW_LINE> commiter_email = None <NEW_LINE> commit_date = None <NEW_LIN... | Base Commit class to inherit from. | 625990588e7ae83300eea62c |
class RangePartitionAssignor(AbstractPartitionAssignor): <NEW_LINE> <INDENT> name = 'range' <NEW_LINE> version = 0 <NEW_LINE> @classmethod <NEW_LINE> def assign(cls, cluster, member_metadata): <NEW_LINE> <INDENT> consumers_per_topic = collections.defaultdict(list) <NEW_LINE> for member, metadata in six.iteritems(member... | The range assignor works on a per-topic basis. For each topic, we lay out
the available partitions in numeric order and the consumers in
lexicographic order. We then divide the number of partitions by the total
number of consumers to determine the number of partitions to assign to each
consumer. If it does not evenly d... | 625990581b99ca4002290007 |
class MySQLDB(object): <NEW_LINE> <INDENT> _instance = None <NEW_LINE> def __new__(cls,*args,**kargv): <NEW_LINE> <INDENT> if not cls._instance: <NEW_LINE> <INDENT> cls._instance = super(MySQLDB, cls).__new__(cls, *args, **kargv) <NEW_LINE> <DEDENT> return cls._instance <NEW_LINE> <DEDENT> def __init__(self): <NEW_LINE... | docstring for MySQLDB | 62599058d486a94d0ba2d567 |
class ClientConnectionJob(object): <NEW_LINE> <INDENT> def __init__(self, clientSocket, clientAddr, daemon): <NEW_LINE> <INDENT> self.csock = socketutil.SocketConnection(clientSocket) <NEW_LINE> self.caddr = clientAddr <NEW_LINE> self.daemon = daemon <NEW_LINE> <DEDENT> def __call__(self): <NEW_LINE> <INDENT> if self.h... | Takes care of a single client connection and all requests
that may arrive during its life span. | 62599058460517430c432b21 |
class AddPlaceholderInstruction(Instruction): <NEW_LINE> <INDENT> @Overrides(Instruction) <NEW_LINE> def _execute(self): <NEW_LINE> <INDENT> super(AddPlaceholderInstruction, self).add_placeholder() | add placeholder ( PLACEHOLDER | STRING )
Example 1: add placeholder (About, "About|Om") | 62599058a79ad1619776b58d |
class Attribute(BaseReportElement): <NEW_LINE> <INDENT> def __init__(self, id_, value, name=None): <NEW_LINE> <INDENT> BaseReportElement.__init__(self, id_) <NEW_LINE> if value is None: <NEW_LINE> <INDENT> raise PbReportError("value cannot be None. {n} given.".format(n=value)) <NEW_LINE> <DEDENT> self._value = value <N... | An attribute always has an id and a value. A name is optional. | 6259905807d97122c4218249 |
class RBFDivergenceFreeKernelReparametrised(Kernel): <NEW_LINE> <INDENT> def __init__(self, dim, log_length_scale, sigma_var=1): <NEW_LINE> <INDENT> super().__init__(dim, dim) <NEW_LINE> self.log_length_scale = log_length_scale <NEW_LINE> self.sigma_var = sigma_var <NEW_LINE> <DEDENT> def forward(self, X, Y=None, flatt... | Based on the kernels defined in equation (24) in
"Kernels for Vector-Valued Functions: a Review" by Alvarez et al | 62599058097d151d1a2c260b |
class VipServerNameList(A10BaseClass): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.ERROR_MSG = "" <NEW_LINE> self.b_key = "vip-server-name-list" <NEW_LINE> self.DeviceProxy = "" <NEW_LINE> self.oper = {} <NEW_LINE> self.vip_name = "" <NEW_LINE> for keys, value in kwargs.items(): <NEW_LINE... | This class does not support CRUD Operations please use parent.
:param vip_name: {"description": "Specify a VIP name for the SLB device", "format": "string", "minLength": 1, "oid": "1001", "optional": false, "maxLength": 63, "type": "string"}
:param DeviceProxy: The device proxy for REST operations and session handling... | 625990588e71fb1e983bd069 |
class DefaultDesignRule(DesignContentRule): <NEW_LINE> <INDENT> grok.implements(interfaces.IDefaultDesignRule) | Default design for a content type.
| 6259905821bff66bcd724204 |
class AlphaBetaAgent(MultiAgentSearchAgent): <NEW_LINE> <INDENT> def getAction(self, gameState): <NEW_LINE> <INDENT> depth = self.depth <NEW_LINE> move = self.alphaBetaMinimax(gameState, 0, True, 1, float("-inf"), float("inf"))[1] <NEW_LINE> return move <NEW_LINE> <DEDENT> def alphaBetaMinimax(self, gameState, depth, i... | Your minimax agent with alpha-beta pruning (question 3) | 625990584428ac0f6e659adb |
class NSNitroNserrSslDupSnicertBrklink(NSNitroSsl2Errors): <NEW_LINE> <INDENT> pass | Nitro error code 3637
Some of the existing SNI cert bindings are broken due to
presence of certificate with duplicate Common Name. | 62599058e76e3b2f99fd9f9f |
class HalfAdder(): <NEW_LINE> <INDENT> def __init__(self, *inputs): <NEW_LINE> <INDENT> if len(inputs) is not 2: <NEW_LINE> <INDENT> raise Exception("ERROR: Number of arguments not consistent") <NEW_LINE> <DEDENT> self.inputs = list(inputs[:]) <NEW_LINE> self.S = XOR(self.inputs[0], self.inputs[1]) <NEW_LINE> self.C = ... | This Class implements Half Adder, Arithmetic sum of two bits and return its
Sum and Carry
Output: [CARRY, SUM]
Example:
>>> from BinPy import *
>>> ha = HalfAdder(0, 1)
>>> ha.output()
[0, 1] | 625990588da39b475be0478a |
@attr('UNIT', group='mi') <NEW_LINE> class FLORTTelemeteredGliderTest(GliderParserUnitTestCase): <NEW_LINE> <INDENT> config = { DataSetDriverConfigKeys.PARTICLE_MODULE: 'mi.dataset.parser.glider', DataSetDriverConfigKeys.PARTICLE_CLASS: 'FlortTelemeteredDataParticle' } <NEW_LINE> def test_flort_telemetered_particle(sel... | Test cases for flort glider data | 6259905873bcbd0ca4bcb833 |
class EndpointEnumerationServiceClient(BaseServiceClient): <NEW_LINE> <INDENT> def __init__(self, api_configuration): <NEW_LINE> <INDENT> super(EndpointEnumerationServiceClient, self).__init__(api_configuration) <NEW_LINE> <DEDENT> def get_endpoints(self, **kwargs): <NEW_LINE> <INDENT> operation_name = "get_endpoints" ... | ServiceClient for calling the EndpointEnumerationService APIs.
:param api_configuration: Instance of ApiConfiguration
:type api_configuration: ask_sdk_model.services.api_configuration.ApiConfiguration | 625990584e4d5625663739a8 |
class Scheduling(messages.Message): <NEW_LINE> <INDENT> class OnHostMaintenanceValueValuesEnum(messages.Enum): <NEW_LINE> <INDENT> MIGRATE = 0 <NEW_LINE> TERMINATE = 1 <NEW_LINE> <DEDENT> automaticRestart = messages.BooleanField(1) <NEW_LINE> onHostMaintenance = messages.EnumField('OnHostMaintenanceValueValuesEnum', 2)... | Sets the scheduling options for an Instance.
Enums:
OnHostMaintenanceValueValuesEnum: Defines the maintenance behavior for
this instance. The default behavior is MIGRATE. For more information,
see Setting maintenance behavior.
Fields:
automaticRestart: Specifies whether the instance should be automaticall... | 62599058ac7a0e7691f73a81 |
@global_scope <NEW_LINE> class ProviderFirewallRule(BASE, NovaBase): <NEW_LINE> <INDENT> __tablename__ = 'provider_fw_rules' <NEW_LINE> __table_args__ = () <NEW_LINE> id = Column(Integer, primary_key=True, nullable=False) <NEW_LINE> protocol = Column(String(5)) <NEW_LINE> from_port = Column(Integer) <NEW_LINE> to_port ... | Represents a rule in a security group. | 62599058b5575c28eb71379c |
class BagDataCollatePretrain(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __call__(self, batch): <NEW_LINE> <INDENT> imgs_basic1, imgs_basic2, imgs_aux, anns = batch <NEW_LINE> return imgs_basic1, imgs_basic2, imgs_aux, anns | collect bag data on pretrain stage | 625990586e29344779b01bec |
class CursesWindow(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.screen = curses.initscr() <NEW_LINE> curses.start_color() <NEW_LINE> curses.use_default_colors() <NEW_LINE> curses.curs_set(0) <NEW_LINE> self.use_black_text() <NEW_LINE> self.shape = (curses.COLS - 1, curses.LINES - 1) <NEW_LI... | An interface for drawing to curses | 62599058379a373c97d9a5c5 |
class Caster: <NEW_LINE> <INDENT> def __init__(self, target: Type[Any]): <NEW_LINE> <INDENT> self.dest: Type[Any] <NEW_LINE> self.args: List[Caster] <NEW_LINE> if hasattr(target, "__origin__"): <NEW_LINE> <INDENT> self.dest = target.__origin__ <NEW_LINE> args = target.__args__ <NEW_LINE> self.args = ( [Caster(args[0])]... | Generic type-caster generator. | 625990584a966d76dd5f0492 |
class TestViewsFailureCondition(BaseTest): <NEW_LINE> <INDENT> def test_individual_blog_post_route_404_wrong_id(self): <NEW_LINE> <INDENT> response = self.testapp.get('/blog/2', status=404) <NEW_LINE> self.assertEqual(response.status_code, 404) <NEW_LINE> <DEDENT> def test_api_individual_blog_posts_404_wrong_id(self): ... | Test Views Failure Condition. | 6259905829b78933be26ab95 |
class Raumbuch_elektro(Verantwortung): <NEW_LINE> <INDENT> wohnung = models.OneToOneField(Wohnung, on_delete=models.CASCADE, null=True, blank=True) <NEW_LINE> bad = models.TextField(null=True, blank=True) <NEW_LINE> kueche = models.TextField(null=True, blank=True) <NEW_LINE> flur = models.TextField(null=True, blank=Tru... | electric fitting per room
ForeignKey of wohnung | 62599058e5267d203ee6ce90 |
class IRestrictKeywords(Interface): <NEW_LINE> <INDENT> pass | Marker interface for restricting the keyword vocabulary | 62599058009cb60464d02ad6 |
class RequestHistory(ModelSQL, ModelView): <NEW_LINE> <INDENT> __name__ = 'res.request.history' <NEW_LINE> name = fields.Char('Summary', required=True, readonly=True) <NEW_LINE> request = fields.Many2One('res.request', 'Request', required=True, ondelete='CASCADE', select=True, readonly=True) <NEW_LINE> act_from = field... | Request history | 625990589c8ee82313040c5b |
class NoSolutionError(Exception): <NEW_LINE> <INDENT> pass | Return this error if no solution exists to some set of x, y inputs | 6259905863d6d428bbee3d58 |
class ConfigurationSettings(SearchCommand.ConfigurationSettings): <NEW_LINE> <INDENT> @property <NEW_LINE> def clear_required_fields(self): <NEW_LINE> <INDENT> return type(self)._clear_required_fields <NEW_LINE> <DEDENT> _clear_required_fields = True <NEW_LINE> @property <NEW_LINE> def requires_preop(self): <NEW_LINE> ... | Represents the configuration settings for a :code:`ReportingCommand`.
| 62599058097d151d1a2c260d |
class TripletSelector: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_triplets(self, embeddings, labels): <NEW_LINE> <INDENT> raise NotImplementedError | Implementation should return indices of anchors, positive and negative samples
return np array of shape [N_triplets x 3] | 625990583539df3088ecd83e |
class ListMembersCommand(LoadBalancerBalancerListCommand): <NEW_LINE> <INDENT> log = logging.getLogger(__name__) <NEW_LINE> def take_action(self, parsed_args): <NEW_LINE> <INDENT> client = get_client(parsed_args) <NEW_LINE> balancer = Placeholder(parsed_args.balancer_id) <NEW_LINE> members = client.balancer_list_member... | Output a list of the members attached to the provided loadbalancer. | 62599058596a897236129081 |
class FileBotToolProcessingErrorEvent(DelugeEvent): <NEW_LINE> <INDENT> def __init__(self, torrent_id, handler_name, error): <NEW_LINE> <INDENT> if error: <NEW_LINE> <INDENT> if isinstance(error, Exception): <NEW_LINE> <INDENT> msg = "Exception {0} encountered during processing:\n {1}" <NEW_LINE> msg = msg.format(error... | emitted when a torrent FileBotTool was processing errored out | 625990583c8af77a43b68a11 |
class Dispatcher(collections.MutableMapping): <NEW_LINE> <INDENT> def __init__(self, prototype=None): <NEW_LINE> <INDENT> self.method_map = dict() <NEW_LINE> if prototype is not None: <NEW_LINE> <INDENT> self.build_method_map(prototype) <NEW_LINE> <DEDENT> <DEDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> return... | Dictionary like object which maps method_name to method. | 62599058cc0a2c111447c58e |
class TestDebugApi(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.api = isi_sdk_8_2_2.api.debug_api.DebugApi() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_delete_debug_stats(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_... | DebugApi unit test stubs | 62599058e76e3b2f99fd9fa1 |
class SingleGEANTSimulation(GroundParticlesGEANT4Simulation): <NEW_LINE> <INDENT> def __init__(self, progress): <NEW_LINE> <INDENT> self.progress = progress <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def singleGEANTsim(self, particletype, particleenergy, xdetcoord, ydetcoord, px... | This class inherits from GroundParticlesGEANT4Simulation in order to use the
_simulate_pmt function | 6259905873bcbd0ca4bcb835 |
class AudioConfig(): <NEW_LINE> <INDENT> def __init__(self, use_default_microphone: bool = False, filename: OptionalStr = None, stream: Optional[AudioInputStream] = None, device_name: OptionalStr = None): <NEW_LINE> <INDENT> if not isinstance(use_default_microphone, bool): <NEW_LINE> <INDENT> raise ValueError('use_defa... | Represents specific audio configuration, such as microphone, file, or custom audio streams
Generates an audio configuration for the various recognizers. Only one argument can be
passed at a time.
:param use_default_microphone: Specifies to use the default system microphone for audio
input.
:param device_name: Spe... | 625990582ae34c7f260ac689 |
class BaseModel(models.Model): <NEW_LINE> <INDENT> id = models.AutoField(primary_key=True) <NEW_LINE> uuid = models.UUIDField(unique=True, default=uuid.uuid4, editable=False) <NEW_LINE> created_at = models.DateTimeField(auto_now_add=True) <NEW_LINE> updated_at = models.DateTimeField(auto_now=True) <NEW_LINE> DATE_FORMA... | BaseModel
Base model that handles ids, uuid, and both the created_at
and updated_at fields. Add methods here that all models in
the project will share. This is an abstract model, all models
in the project should extend it. | 6259905807f4c71912bb09dd |
class Genre(models.Model): <NEW_LINE> <INDENT> name = models.CharField('Genre', max_length=100) <NEW_LINE> description = models.CharField('Description', max_length=255) <NEW_LINE> url = models.SlugField(max_length=100, unique=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> c... | genre | 625990583539df3088ecd83f |
class AllRange(EkteloMatrix): <NEW_LINE> <INDENT> def __init__(self, n, dtype=np.float64): <NEW_LINE> <INDENT> self.n = n <NEW_LINE> self.shape = ((n*(n+1) // 2), n) <NEW_LINE> self.dtype = dtype <NEW_LINE> self._prefix = Prefix(n, dtype) <NEW_LINE> <DEDENT> def _matmat(self, V): <NEW_LINE> <INDENT> m = self.shape[0] <... | The AllRange workload encodes range queries of the form [i,j] for 0 <= i <= j <= n-1 | 6259905816aa5153ce401a86 |
class ZoozRequestBase(object): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.requests = requests.Session() <NEW_LINE> <DEDENT> @property <NEW_LINE> def get_url(self): <NEW_LINE> <INDENT> global ZOOZ_SANDBOX <NEW_LINE> global ZOOZ_URLS <NEW_LINE> if ZOOZ_SANDBOX: <NEW_LINE> <INDENT> r... | Base client for the Zooz API | 625990588e7ae83300eea62f |
class TestModel_WorkspaceActivityTemplate(): <NEW_LINE> <INDENT> def test_workspace_activity_template_serialization(self): <NEW_LINE> <INDENT> log_summary_model = {} <NEW_LINE> log_summary_model['activity_status'] = 'testString' <NEW_LINE> log_summary_model['detected_template_type'] = 'testString' <NEW_LINE> log_summar... | Test Class for WorkspaceActivityTemplate | 6259905823849d37ff852668 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.