code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class PoMessage: <NEW_LINE> <INDENT> def __init__(self, id, msg, default, fuzzy=False, comments=[], niceDefault=False): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.msg = msg <NEW_LINE> self.default = default <NEW_LINE> if niceDefault: self.produceNiceDefault() <NEW_LINE> self.fuzzy = fuzzy <NEW_LINE> self.comments... | Represents a i18n message (po format). | 6259903830c21e258be999a9 |
class ModularParameterization: <NEW_LINE> <INDENT> def __init__(self, E): <NEW_LINE> <INDENT> self._E = E <NEW_LINE> <DEDENT> def curve(self): <NEW_LINE> <INDENT> return self._E <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "Modular parameterization from the upper half plane to %s" % self._E <NEW_L... | This class represents the modular parametrization of an elliptic curve
.. math::
\phi_E: X_0(N) \rightarrow E.
Evaluation is done by passing through the lattice representation of `E`.
EXAMPLES::
sage: phi = EllipticCurve('11a1').modular_parametrization()
sage: phi
Modular parameterization from the ... | 6259903876d4e153a661db40 |
class AnswerForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = models.Answer <NEW_LINE> fields = [ 'order', 'text', 'correct' ] | The form for a question | 6259903821bff66bcd723e04 |
class AccountCSV(ExportCSV): <NEW_LINE> <INDENT> filename = 'rich_account_list.csv' <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> return Account.objects.filter(balance__gt=600000) <NEW_LINE> <DEDENT> def get_field_names(self): <NEW_LINE> <INDENT> return ['account_no', 'owner'] | View for creating and rendering CSV of Account instances returned by
custom queryset. | 625990386e29344779b017ed |
class Results(QWidget): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(Results, self).__init__(*args, **kwargs) <NEW_LINE> self.setProperty("id", "results") <NEW_LINE> self.vbox = QVBoxLayout(self) <NEW_LINE> self.vbox.setAlignment(Qt.AlignCenter) <NEW_LINE> self.vbox.setSpacing(4) <... | Shows the results for the session that just finished
Tells whether the score entered is greater than the previous score | 6259903807d97122c4217e39 |
class FSMonitorPolling(FSMonitor): <NEW_LINE> <INDENT> interval = 10 <NEW_LINE> def __init__(self, callback, persistent=True, trigger_events_for_initial_scan=False, ignored_dirs=[], dbfile="fsmonitor.db", parent_logger=None): <NEW_LINE> <INDENT> FSMonitor.__init__(self, callback, True, trigger_events_for_initial_scan, ... | polling support for FSMonitor | 6259903871ff763f4b5e8936 |
class PutAppend(BinaryOperator): <NEW_LINE> <INDENT> operator = '>>>' <NEW_LINE> precedence = 30 <NEW_LINE> attributes = ('Protected') <NEW_LINE> def apply(self, exprs, filename, evaluation): <NEW_LINE> <INDENT> instream = Expression('OpenAppend', filename).evaluate(evaluation) <NEW_LINE> if len(instream.leaves) == 2: ... | <dl>
<dt>'$expr$ >>> $filename$'
<dd>append $expr$ to a file.
<dt>'PutAppend[$expr1$, $expr2$, ..., $"filename"$]'
<dd>write a sequence of expressions to a file.
</dl>
>> Put[50!, "factorials"]
>> FilePrint["factorials"]
| 30414093201713378043612608166064768844377641568960512000000000000
>> PutAppend[10!, 20!, 3... | 625990385e10d32532ce41d1 |
class LogFoodResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None) | A ResultSet with methods tailored to the values returned by the LogFood Choreo.
The ResultSet object is used to retrieve the results of a Choreo execution. | 6259903810dbd63aa1c71d71 |
class Solution: <NEW_LINE> <INDENT> def findAnagrams(self, s, p): <NEW_LINE> <INDENT> ret = [] <NEW_LINE> len_p = len(p) <NEW_LINE> if len(s) < len_p: <NEW_LINE> <INDENT> return ret <NEW_LINE> <DEDENT> di_p = build_di(p, 0, len_p) <NEW_LINE> di_s = build_di(s, 0, len_p) <NEW_LINE> if di_s == di_p: <NEW_LINE> <INDENT> r... | @param s: a string
@param p: a string
@return: a list of index | 62599038a4f1c619b294f755 |
class Permission(object): <NEW_LINE> <INDENT> READ = "read" <NEW_LINE> CREATE = "create" <NEW_LINE> UPDATE = "update" <NEW_LINE> DELETE = "delete" <NEW_LINE> @classmethod <NEW_LINE> def all_permissions(cls): <NEW_LINE> <INDENT> return [val for perm, val in inspect.getmembers(cls, lambda memb: not inspect.isroutine(memb... | Scope permissions types | 6259903830dc7b76659a09cf |
class HttpdAirOs(AirOs): <NEW_LINE> <INDENT> converters = [ Httpd, ] | Mock backend with converter for web server | 625990388c3a8732951f76f3 |
@view_defaults(context=Engagement, permission='view') <NEW_LINE> class EngagementViews(BaseView): <NEW_LINE> <INDENT> @view_config(name='view', permission='view', renderer='episkopos:templates/engagement.pt') <NEW_LINE> def default_view(self): <NEW_LINE> <INDENT> return { 'foo': _(u'bar'), } | Views for :class:`episkopos.resources.Engagement` | 62599038c432627299fa4195 |
@implementer(IPended) <NEW_LINE> class Pended(Model): <NEW_LINE> <INDENT> __tablename__ = 'pended' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> token = Column(Unicode) <NEW_LINE> expiration_date = Column(DateTime) <NEW_LINE> key_values = relationship('PendedKeyValue') <NEW_LINE> def __init__(self, token... | A pended event, tied to a token. | 6259903873bcbd0ca4bcb426 |
class Config(ElementBase): <NEW_LINE> <INDENT> name = "config" <NEW_LINE> namespace = "weld:config" <NEW_LINE> interfaces = set(('jid', 'password', 'server', 'port', 'clients')) <NEW_LINE> sub_interfaces = interfaces <NEW_LINE> subitem = (ConfigClient,) <NEW_LINE> def get_clients(self): <NEW_LINE> <INDENT> clients = []... | Connection information for the gateway, and config data
for all monitored email addresses.
Example stanza:
<config>
<jid>email.localhost</jid>
<server>localhost</server>
<port>8888</port>
<client>....</client>
<client>....</client>
</config>
Stanza Interface:
jid -- Com... | 62599038b5575c28eb713598 |
class TestReceiver(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def echo(context, value): <NEW_LINE> <INDENT> LOG.debug(_("Received %s"), value) <NEW_LINE> return value <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def context(context, value): <NEW_LINE> <INDENT> LOG.debug(_("Received %s"), context) <NEW_LINE> ... | Simple Proxy class so the consumer has methods to call.
Uses static methods because we aren't actually storing any state. | 6259903807d97122c4217e3a |
class AnyFoodSearchProblem(PositionSearchProblem): <NEW_LINE> <INDENT> def __init__(self, gameState): <NEW_LINE> <INDENT> print("PROBLEM INITIALIZED") <NEW_LINE> self.food = gameState.getFood() <NEW_LINE> self.walls = gameState.getWalls() <NEW_LINE> self.startState = gameState.getPacmanPosition() <NEW_LINE> self.costFn... | A search problem for finding a path to any food.
This search problem is just like the PositionSearchProblem, but has a
different goal test, which you need to fill in below. The state space and
successor function do not need to be changed.
The class definition above, AnyFoodSearchProblem(PositionSearchProblem),
inher... | 62599039cad5886f8bdc594b |
class Meta(object): <NEW_LINE> <INDENT> db_table = 'strike' | meta information for database | 625990396e29344779b017ef |
class DateFieldCategorizer(NumericFieldCategorizer): <NEW_LINE> <INDENT> def key_to_name(self, key): <NEW_LINE> <INDENT> if key == DEFAULT_LONG: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return long_to_datetime(key) | Categorizer for date fields. Same as NumericFieldCategorizer, but
converts the numeric keys back to dates for better labels. | 62599039baa26c4b54d50446 |
class exponential_weibull(SimpleDistribution): <NEW_LINE> <INDENT> def __init__(self, a=1, c=1): <NEW_LINE> <INDENT> super(exponential_weibull, self).__init__(dict(a=a, c=c)) <NEW_LINE> <DEDENT> def _pdf(self, x, a, c): <NEW_LINE> <INDENT> exc = numpy.exp(-x**c) <NEW_LINE> return a*c*(1-exc)**(a-1)*exc*x**(c-1) <NEW_LI... | Exponential Weibull distribution. | 6259903916aa5153ce40168b |
class PastasEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, o): <NEW_LINE> <INDENT> if isinstance(o, Timestamp): <NEW_LINE> <INDENT> return o.isoformat() <NEW_LINE> <DEDENT> elif isinstance(o, Series): <NEW_LINE> <INDENT> return o.to_json(date_format="iso", orient="split") <NEW_LINE> <DEDENT> elif isin... | Enhanced encoder to deal with the pandas formats used throughout Pastas.
Notes
-----
Currently supported formats are: DataFrame, Series,
Timedelta, TimeStamps.
see: https://docs.python.org/3/library/json.html | 62599039e76e3b2f99fd9baa |
class SQLError(Exception): <NEW_LINE> <INDENT> def __init__(self, code, message=None, response=None): <NEW_LINE> <INDENT> self.code = code <NEW_LINE> self.message = message or 'Unknown' <NEW_LINE> self.response = response <NEW_LINE> super(SQLError, self).__init__(code, message, response) <NEW_LINE> <DEDENT> def __str__... | Exception thrown for an unsuccessful sql.
Attributes:
* ``code`` - HTTP error integer error code, e.g. 404. Error code 599 is
used when no HTTP response was received, e.g. for a timeout.
* ``response`` - `HTTPResponse` object, if any.
Note that if ``follow_redirects`` is False, redirects become HTTPErrors,
and y... | 625990395e10d32532ce41d2 |
class Infobox(): <NEW_LINE> <INDENT> def __init__(self, screen, fFont, title=None, info={}, order=[]): <NEW_LINE> <INDENT> numLines = len(info) <NEW_LINE> if title is not None: <NEW_LINE> <INDENT> numLines += 1 <NEW_LINE> <DEDENT> self.height = ((fFont.height+LINEBUFFER)*numLines)-LINEBUFFER+(BORDER*2) <NEW_LINE> self.... | Class used to show information on the game select screen. | 6259903926068e7796d4dae6 |
class CloudSigmaUploadResource (ResourceBase): <NEW_LINE> <INDENT> resource_name = 'initupload' <NEW_LINE> def __init__(self , **generic_client_kwargs): <NEW_LINE> <INDENT> self.generic_client_kwargs = generic_client_kwargs or {} <NEW_LINE> super(CloudSigmaUploadResource, self).__init__(**self.generic_client_kwargs) | auxillary class to make pycloudsigma happy | 6259903973bcbd0ca4bcb428 |
class L3AgentSchedulerPluginBase(object): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def add_router_to_l3_agent(self, context, id, router_id): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def remove_router_from_l3_agent(self, context, id, router_id): <NEW_LINE> <INDENT> pass <NEW_LINE> <D... | REST API to operate the l3 agent scheduler.
All of method must be in an admin context. | 625990398a43f66fc4bf332c |
class JogadorXPStatus: <NEW_LINE> <INDENT> fonte = None <NEW_LINE> last_xp = -1 <NEW_LINE> fgcolor = None <NEW_LINE> bgcolor = None <NEW_LINE> imagem = None <NEW_LINE> def __init__( self, jogador, posicao=None, fonte=None, ptsize=30, fgcolor="0xffff00", bgcolor=None ): <NEW_LINE> <INDENT> self.jogador = jogador <NEW... | Esta classe representa a experiência do usuário | 625990396fece00bbacccb4b |
class AdaptorFcFnicProfile(ManagedObject): <NEW_LINE> <INDENT> consts = AdaptorFcFnicProfileConsts() <NEW_LINE> naming_props = set([]) <NEW_LINE> mo_meta = MoMeta("AdaptorFcFnicProfile", "adaptorFcFnicProfile", "fc-fnic", VersionMeta.Version151a, "InputOutput", 0x3f, [], ["admin", "ls-config-policy", "ls-server-policy"... | This is AdaptorFcFnicProfile class. | 6259903982261d6c52730794 |
class BiLSTMChar(object): <NEW_LINE> <INDENT> def __init__(self, char_domain_size, char_embedding_dim, hidden_dim, embeddings=None): <NEW_LINE> <INDENT> self.char_domain_size = char_domain_size <NEW_LINE> self.embedding_size = char_embedding_dim <NEW_LINE> self.hidden_dim = hidden_dim <NEW_LINE> self.input_chars = tf.p... | A bidirectional LSTM for embedding tokens. | 6259903976d4e153a661db42 |
class PollsConfig(AppConfig): <NEW_LINE> <INDENT> name = 'polls' | A class for poll configuration. | 6259903991af0d3eaad3afd2 |
class Color4D(Structure): <NEW_LINE> <INDENT> _fields_ = [ ("r", c_float),("g", c_float),("b", c_float),("a", c_float), ] | See 'aiColor4D.h' for details. | 62599039596a897236128e3e |
class HeatColorGradient(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.alpha = 1.0 <NEW_LINE> <DEDENT> def get_color_value(self, value): <NEW_LINE> <INDENT> colors = [[0,0,1,1], [0,1,0,1], [1,1,0,1], [1,0,0,1]] <NEW_LINE> num_colors = len(colors) <NEW_LINE> idx1 = 0 <NEW_LINE> idx2 = 0 <NEW_L... | Calculate a heat gradient color based on the specified value
:param value the value for the gradient, between 0.0 - 1.0
:type value float | 62599039cad5886f8bdc594c |
class PostUniverseNamesInternalServerError(object): <NEW_LINE> <INDENT> def __init__(self, error=None): <NEW_LINE> <INDENT> self.swagger_types = { 'error': 'str' } <NEW_LINE> self.attribute_map = { 'error': 'error' } <NEW_LINE> self._error = error <NEW_LINE> <DEDENT> @property <NEW_LINE> def error(self): <NEW_LINE> <IN... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 625990396e29344779b017f1 |
class JaccardLoss(nn.Module): <NEW_LINE> <INDENT> def __init__( self, apply_sigmoid: bool = True, smooth: float = 0., eps: float = 1e-7, ): <NEW_LINE> <INDENT> super(JaccardLoss, self).__init__() <NEW_LINE> self.apply_sigmoid = apply_sigmoid <NEW_LINE> self.smooth = smooth <NEW_LINE> self.eps = eps <NEW_LINE> <DEDENT> ... | Calculates Jaccard( alsow known as Intersection over Union (IoU))
loss by each y_pred map from batch and returns the average.
Note, that y_true is expected to be Binary
Paper: https://arxiv.org/pdf/2006.14822.pdf
Implementation inspired by
https://www.kaggle.com/bigironsphere/loss-function-library-keras-pytorch#Jacca... | 625990391f5feb6acb163d92 |
class LocalOrRemote(Command): <NEW_LINE> <INDENT> takes_options = ( Flag('server?', doc=_('Forward to server instead of running locally'), ), ) <NEW_LINE> def run(self, *args, **options): <NEW_LINE> <INDENT> if options.get('server', False) and not self.env.in_server: <NEW_LINE> <INDENT> return self.forward(*args, **opt... | A command that is explicitly executed locally or remotely.
This is for commands that makes sense to execute either locally or
remotely to return a perhaps different result. The best example of
this is the `ipalib.plugins.f_misc.env` plugin which returns the
key/value pairs describing the configuration state: it can b... | 6259903916aa5153ce40168d |
class Pool_Systems(BeakerCommand): <NEW_LINE> <INDENT> enabled = True <NEW_LINE> def options(self): <NEW_LINE> <INDENT> self.parser.usage = "%%prog %s <pool-name>" % self.normalized_name <NEW_LINE> self.parser.add_option( '--format', type='choice', choices=['list', 'json'], default='list', help='Results display format:... | List systems in a pool | 6259903973bcbd0ca4bcb429 |
class OEB2HTMLNoCSSizer(OEB2HTML): <NEW_LINE> <INDENT> def dump_text(self, elem, stylizer, page): <NEW_LINE> <INDENT> if not isinstance(elem.tag, string_or_bytes) or namespace(elem.tag) not in (XHTML_NS, SVG_NS): <NEW_LINE> <INDENT> p = elem.getparent() <NEW_LINE> if p is not None and isinstance(p.tag, string... | This will remap a small number of CSS styles to equivalent HTML tags. | 6259903930c21e258be999ae |
class AbstractMelonOrder(): <NEW_LINE> <INDENT> def __init__(self, species, qty, country_code=None, passed_inspection=None): <NEW_LINE> <INDENT> self.species = species <NEW_LINE> self.qty = qty <NEW_LINE> self.shipped = False <NEW_LINE> if passed_inspection: <NEW_LINE> <INDENT> self.passed_inspection = passed_inspectio... | An abstract base class that other Melon Orders inherit from. | 62599039dc8b845886d54755 |
class XTP_FUND_TRANSFER_TYPE(IntEnum): <NEW_LINE> <INDENT> XTP_FUND_TRANSFER_OUT = 0 <NEW_LINE> XTP_FUND_TRANSFER_IN = auto() <NEW_LINE> XTP_FUND_TRANSFER_UNKNOWN = auto() | XTP_FUND_TRANSFER_TYPE是资金流转方向类型 | 62599039287bf620b6272d8b |
class SymbolicProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin): <NEW_LINE> <INDENT> problem_name = 'SYMBOLIC TEST PROBLEM' <NEW_LINE> problem_type = 'symbolicresponse' <NEW_LINE> partially_correct = False <NEW_LINE> factory = SymbolicResponseXMLFactory() <NEW_LINE> factory_kwargs = { 'expect': '2*x+3*y', 'que... | TestCase Class for Symbolic Problem Type | 6259903907d97122c4217e3e |
class TerminationNotice(Exception): <NEW_LINE> <INDENT> pass | This exception is raised inside a thread when it's time for it to die. | 6259903991af0d3eaad3afd4 |
class WizardLinkOrder( LoginRequiredMixin, StaffuserRequiredMixin, WizardLinkMixin, FormView): <NEW_LINE> <INDENT> form_class = EmptyForm <NEW_LINE> template_name = 'block/wizard_link_order.html' <NEW_LINE> def _move_up_down(self, up, down): <NEW_LINE> <INDENT> pk = int(up) if up else int(down) <NEW_LINE> idx = None <N... | set the order of multiple links | 6259903994891a1f408b9fc8 |
class Comment(models.Model): <NEW_LINE> <INDENT> post = models.ForeignKey('blog.Post', related_name='comments', on_delete=models.CASCADE) <NEW_LINE> author = models.CharField(max_length=200) <NEW_LINE> text = models.TextField() <NEW_LINE> create_date = models.DateTimeField(default=timezone.now()) <NEW_LINE> approved_co... | Comments on certain blog posts.
Anyone can comment, but they will have to be approved to be shown. | 625990398da39b475be04391 |
class DAPLinkServer(object): <NEW_LINE> <INDENT> def __init__(self, address=None, socket=None, interface=None): <NEW_LINE> <INDENT> if interface: <NEW_LINE> <INDENT> self._interface = INTERFACE[interface] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self._interface = default_interface <NEW_LINE> <DEDENT> if socket: <N... | This class provides the DAPLink interface as a streaming socket
based server. Communication is performed by sending commands
formed as JSON dictionaries. | 6259903907d97122c4217e3f |
class TemplateIncludeError(TemplateError): <NEW_LINE> <INDENT> pass | Raised by the `ControlledLoader` if recursive includes where
detected. | 6259903966673b3332c31597 |
class DictQueryset(AbstractQueryset): <NEW_LINE> <INDENT> def __init__(self, **kw): <NEW_LINE> <INDENT> super(DictQueryset, self).__init__(db_conn=dict(), **kw) <NEW_LINE> <DEDENT> def create_one(self, shield): <NEW_LINE> <INDENT> if shield.id in self.db_conn: <NEW_LINE> <INDENT> status = self.MSG_UPDATED <NEW_LINE> <D... | This class exists as an example of how one could implement a Queryset.
This model is an in-memory dictionary and uses the model's id as the key.
The data stored is the result of calling model's `to_python()` function. | 62599039ec188e330fdf9a3a |
class CheckSkuAvailabilityOperations(object): <NEW_LINE> <INDENT> def __init__(self, client, config, serializer, deserializer): <NEW_LINE> <INDENT> self._client = client <NEW_LINE> self._serialize = serializer <NEW_LINE> self._deserialize = deserializer <NEW_LINE> self.api_version = "2017-04-18" <NEW_LINE> self.config ... | CheckSkuAvailabilityOperations operations.
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An objec model deserializer.
:ivar api_version: Version of the API to be used with the client request. Current versi... | 62599039a4f1c619b294f758 |
class DiagnosticStatusClass(object): <NEW_LINE> <INDENT> OK = "OK" <NEW_LINE> WAITING = "WAITING" <NEW_LINE> FAIL = "FAIL" <NEW_LINE> swagger_types = { } <NEW_LINE> attribute_map = { } <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.discriminator = None <NEW_LINE> <DEDENT> def to_dict(self): <NEW_LINE> <INDENT>... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62599039d6c5a102081e32c9 |
class creatverfattr(BaseObj): <NEW_LINE> <INDENT> _attrlist = ("verifier", "attrs") <NEW_LINE> def __init__(self, unpack): <NEW_LINE> <INDENT> self.verifier = verifier4(unpack) <NEW_LINE> self.attrs = fattr4(unpack) | struct creatverfattr {
verifier4 verifier;
fattr4 attrs;
}; | 6259903926238365f5fadcf8 |
class GovFileInput(GovInput, FileInput): <NEW_LINE> <INDENT> template = "govuk_frontend_wtf/file-upload.html" <NEW_LINE> def __call__(self, field, **kwargs): <NEW_LINE> <INDENT> kwargs["value"] = False <NEW_LINE> if self.multiple: <NEW_LINE> <INDENT> kwargs["multiple"] = True <NEW_LINE> <DEDENT> return super().__call__... | Render a file chooser input.
:param multiple: allow choosing multiple files | 62599039b57a9660fecd2c1e |
class MooseFigure(MooseImageFile): <NEW_LINE> <INDENT> RE = r'^!figure\s+(.*?)(?:$|\s+)(.*)' <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(MooseFigure, self).__init__(*args, **kwargs) <NEW_LINE> self._settings['prefix'] = 'Figure' <NEW_LINE> self._settings['id'] = None <NEW_LINE> self._figur... | Defines syntax for adding images as numbered figures with labels that can be referenced (see MooseFigureReference) | 62599039be383301e02549ba |
@implementer(schemas.ICloudWatchLogging) <NEW_LINE> class CloudWatchLogging(Named, CloudWatchLogRetention): <NEW_LINE> <INDENT> log_sets = FieldProperty(schemas.ICloudWatchLogging["log_sets"]) | Contains global defaults for all CloudWatch logging and log sets | 62599039a8ecb033258723c2 |
class xep_0092(base_plugin): <NEW_LINE> <INDENT> def plugin_init(self): <NEW_LINE> <INDENT> self.xep = "0092" <NEW_LINE> self.description = "Software Version" <NEW_LINE> self.stanza = sleekxmpp.plugins.xep_0092.stanza <NEW_LINE> self.name = self.config.get('name', 'SleekXMPP') <NEW_LINE> self.version = self.config.get(... | XEP-0092: Software Version | 6259903963f4b57ef0086645 |
class TestContains(MemoryLeakMixin, TestCase): <NEW_LINE> <INDENT> def test_list_contains_empty(self): <NEW_LINE> <INDENT> @njit <NEW_LINE> def foo(i): <NEW_LINE> <INDENT> l = listobject.new_list(int32) <NEW_LINE> return i in l <NEW_LINE> <DEDENT> self.assertFalse(foo(0)) <NEW_LINE> self.assertFalse(foo(1)) <NEW_LINE> ... | Test list contains. | 625990398da39b475be04393 |
class GravimetryModelling(pg.ModellingBase): <NEW_LINE> <INDENT> def __init__(self, verbose=True): <NEW_LINE> <INDENT> super(GravimetryModelling, self).__init__(verbose) <NEW_LINE> self._J = pg.RMatrix() <NEW_LINE> self.sensorPositions = None <NEW_LINE> self.setJacobian(self._J) <NEW_LINE> <DEDENT> def createStartmodel... | Gravimetry modelling operator. | 6259903971ff763f4b5e893e |
class Solution2: <NEW_LINE> <INDENT> def hasCycle(self, head: ListNode) -> bool: <NEW_LINE> <INDENT> visited = set() <NEW_LINE> while head: <NEW_LINE> <INDENT> if head in visited: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> visited.add(head) <NEW_LINE> head = head.next <NEW_LINE> <DEDENT> return False | 哈希表
时间复杂度:O(1),空间复杂度:O(n), | 6259903916aa5153ce401691 |
class GoogleCloudVisionV1p2beta1ImageAnnotationContext(_messages.Message): <NEW_LINE> <INDENT> pageNumber = _messages.IntegerField(1, variant=_messages.Variant.INT32) <NEW_LINE> uri = _messages.StringField(2) | If an image was produced from a file (e.g. a PDF), this message gives
information about the source of that image.
Fields:
pageNumber: If the file was a PDF or TIFF, this field gives the page
number within the file used to produce the image.
uri: The URI of the file used to produce the image. | 6259903923e79379d538d6a5 |
class SlackPMAppTokenError(SlackPMErrorBase): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(SlackPMAppTokenError, self).__init__('Invalid Application Token') | Invalid Application Token. | 6259903930dc7b76659a09d7 |
class TestSimpleSignalOrderFillCycleForPortfolioHandler(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> initial_cash = Decimal("500000.00") <NEW_LINE> events_queue = EventsQueue() <NEW_LINE> price_handler = PriceHandlerMock() <NEW_LINE> position_sizer = PositionSizerMock() <NEW_LINE> risk_m... | Tests a simple Signal, Order and Fill cycle for the
PortfolioHandler. This is, in effect, a sanity check. | 62599039507cdc57c63a5f3e |
class Simple: <NEW_LINE> <INDENT> def decide_action(self, target, game): <NEW_LINE> <INDENT> actor = self.owner <NEW_LINE> distance = actor.distance_to_ent(target) <NEW_LINE> results = [] <NEW_LINE> if distance >= 2: <NEW_LINE> <INDENT> actor.move_astar(target, game) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> result... | Simple behavior moves the npc straight towards the player, attack if next to them and use a skill if available. | 62599039a4f1c619b294f759 |
class Proxy(Model): <NEW_LINE> <INDENT> proxy = CharField(primary_key=True) <NEW_LINE> check_time = DateTimeField(null=True) <NEW_LINE> response_time = FloatField(null=True) <NEW_LINE> status_code = IntegerField(null=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> database = db | 数据库model | 6259903973bcbd0ca4bcb42d |
class SEResNet(Chain): <NEW_LINE> <INDENT> def __init__(self, channels, init_block_channels, bottleneck, conv1_stride, in_channels=3, in_size=(224, 224), classes=1000): <NEW_LINE> <INDENT> super(SEResNet, self).__init__() <NEW_LINE> self.in_size = in_size <NEW_LINE> self.classes = classes <NEW_LINE> with self.init_scop... | SE-ResNet model from 'Squeeze-and-Excitation Networks,' https://arxiv.org/abs/1709.01507.
Parameters:
----------
channels : list of list of int
Number of output channels for each unit.
init_block_channels : int
Number of output channels for the initial unit.
bottleneck : bool
Whether to use a bottleneck or... | 62599039d6c5a102081e32cb |
class Error(XC): <NEW_LINE> <INDENT> pass | This is the base class for exceptions that may be recoverable.
Packages should create subclasses of this. | 625990396fece00bbacccb51 |
class EventPageGroup(models.Model): <NEW_LINE> <INDENT> eventpage = ParentalKey( "events.EventPage", on_delete=models.CASCADE, related_name="related_groups" ) <NEW_LINE> group = models.ForeignKey( "core.Group", on_delete=models.CASCADE, related_name="event_pages" ) <NEW_LINE> panels = [ PageChooserPanel("group"), ] <NE... | model that saves the relation from EventPages to Groups, showing a PageChooserPanel | 625990391d351010ab8f4cc0 |
class Observable(metaclass=ABCMeta): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.observers = [] <NEW_LINE> <DEDENT> def register(self, observer): <NEW_LINE> <INDENT> self.observers.append(observer) <NEW_LINE> <DEDENT> def notify_observers(self, message): <NEW_LINE> <INDENT> for observer in self.obs... | Абстрактный наблюдаемый | 6259903921bff66bcd723e0e |
class CSOR(SFS): <NEW_LINE> <INDENT> DIVISION = FixedCharField(4, default='CSOR') <NEW_LINE> _training_pay = IntegerField() <NEW_LINE> _deployment_pay = IntegerField() <NEW_LINE> _section_call_sign = FixedCharField(3) <NEW_LINE> _kill_count = IntegerField(default=0) <NEW_LINE> def expire_training(self, training): <NEW_... | CSOR Class | 6259903994891a1f408b9fca |
class MockTest(DropUploadTestMixin, unittest.TestCase): <NEW_LINE> <INDENT> def test_errors(self): <NEW_LINE> <INDENT> self.basedir = "drop_upload.MockTest.test_errors" <NEW_LINE> self.set_up_grid() <NEW_LINE> errors_dir = os.path.join(self.basedir, "errors_dir") <NEW_LINE> os.mkdir(errors_dir) <NEW_LINE> client = self... | This can run on any platform, and even if twisted.internet.inotify can't be imported. | 625990398da39b475be04395 |
class describe_token_map_result(object): <NEW_LINE> <INDENT> def __init__(self, success=None, ire=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> self.ire = ire <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadable... | Attributes:
- success
- ire | 625990391f5feb6acb163d98 |
class SambaProtocolEntities(View): <NEW_LINE> <INDENT> samba_username = Input(id='log_userid') <NEW_LINE> samba_password = Input(id='log_password') <NEW_LINE> samba_confirm_password = Input(id='log_verify') | Samba Protocol fields on the shedule configuration page | 6259903907d97122c4217e43 |
class OcrdZipValidator(): <NEW_LINE> <INDENT> def __init__(self, resolver, path_to_zip): <NEW_LINE> <INDENT> self.resolver = resolver <NEW_LINE> self.path_to_zip = path_to_zip <NEW_LINE> self.report = ValidationReport() <NEW_LINE> self.profile_validator = Profile(OCRD_BAGIT_PROFILE_URL, profile=OCRD_BAGIT_PROFILE) <NEW... | Validate conformance with BagIt and OCR-D bagit profile.
See:
- https://ocr-d.github.io/ocrd_zip
- https://ocr-d.github.io/bagit-profile.json
- https://ocr-d.github.io/bagit-profile.yml | 6259903971ff763f4b5e8940 |
class WaveformStreamID(QPCore.QPPublicObject): <NEW_LINE> <INDENT> addElements = QPElement.QPElementList(( QPElement.QPElement('networkCode', 'networkCode', 'attribute', unicode, 'basic'), QPElement.QPElement('stationCode', 'stationCode', 'attribute', unicode, 'basic'), QPElement.QPElement('channelCode', 'channelCode',... | QuakePy: WaveformStreamID | 62599039baa26c4b54d5044e |
class Transmitter: <NEW_LINE> <INDENT> streaming = 1 <NEW_LINE> gcode=[] <NEW_LINE> i = 0 <NEW_LINE> port="COM3" <NEW_LINE> board=57600 <NEW_LINE> ser="" <NEW_LINE> def __init__(self, port="COM3",board=57600): <NEW_LINE> <INDENT> self.board=board <NEW_LINE> self.port=port <NEW_LINE> self.filename="" <NEW_LINE> self.gco... | A class to ranmit the data to the dvd plotter | 6259903923e79379d538d6a7 |
class TestValidateBoolTests: <NEW_LINE> <INDENT> def test_bool(self): <NEW_LINE> <INDENT> assert not config._validate_bool(False) <NEW_LINE> assert config._validate_bool(True) <NEW_LINE> <DEDENT> def test_other(self): <NEW_LINE> <INDENT> with pytest.raises(ValueError) as exc: <NEW_LINE> <INDENT> config._validate_bool({... | This class contains tests for the _validate_bool() function. | 6259903910dbd63aa1c71d7b |
class Sensor(models.Model): <NEW_LINE> <INDENT> TEMPERATURE = "T" <NEW_LINE> HUMIDITY = "Hu" <NEW_LINE> PRESSURE = "P" <NEW_LINE> SENSOR_TYPE_CHOICE = [ (TEMPERATURE, "Temperature"), (HUMIDITY, "Humidity"), (PRESSURE, "Pressure"), ] <NEW_LINE> name = models.CharField(max_length=150) <NEW_LINE> timestamp = models.DateTi... | The sensor and its measurement | 62599039a4f1c619b294f75a |
class CTCP(BaseExtension): <NEW_LINE> <INDENT> DEFAULT_VERSION = "Powered by PyIRC v{}".format(VERSIONSTR) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self.version = kwargs.get("ctcp_version", self.DEFAULT_VERSION) <NEW_LINE> <DEDENT> def ctcp(self, t... | Add CTCP dispatch functionaltiy.
Hooks may be added by having a commands_ctcp or commands_nctcp
mapping in your base class. | 62599039c432627299fa419f |
class CreateUser(Command): <NEW_LINE> <INDENT> def create_auth0_user(self, name, email, pwd): <NEW_LINE> <INDENT> return requests.post( AUTH0_API_URL, headers={ 'Authorization': 'Bearer {token}'.format(AUTH0_CREATE_USER_JWT), 'Content-Type': 'application/json'}, json={ 'username': name, 'email': email, 'password': pwd}... | Creates a user for this app | 625990398a43f66fc4bf3334 |
class SigLenField(FieldLenField): <NEW_LINE> <INDENT> def getfield(self, pkt, s): <NEW_LINE> <INDENT> v = pkt.tls_session.tls_version <NEW_LINE> if v and v < 0x0300: <NEW_LINE> <INDENT> return s, None <NEW_LINE> <DEDENT> return super(SigLenField, self).getfield(pkt, s) <NEW_LINE> <DEDENT> def addfield(self, pkt, s, val... | There is a trick for SSLv2, which uses implicit lengths... | 6259903976d4e153a661db46 |
class AddProjectToClient(generics.CreateAPIView): <NEW_LINE> <INDENT> authentication_classes = (authentication.TokenAuthentication,) <NEW_LINE> permission_classes = (permissions.IsAuthenticated,) <NEW_LINE> serializer_class = EmpS <NEW_LINE> def post(self, request, *args, **kwargs): <NEW_LINE> <INDENT> client = self.kw... | Add Project to Client | 6259903907d97122c4217e44 |
class PerformanceCounter(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._count = 0 <NEW_LINE> self._jobs = 0 <NEW_LINE> self._lock = threading.Lock() <NEW_LINE> <DEDENT> def add(self, n): <NEW_LINE> <INDENT> with self._lock: <NEW_LINE> <INDENT> self._count += n <NEW_LINE> self._jobs += 1 <NEW... | This is a simple counter to record execution time and number of jobs. It's unique to each
poller instance, so does not need to be globally syncronised, just locally. | 62599039d164cc617582211b |
class TagCheckBox(QCheckBox): <NEW_LINE> <INDENT> def __init__(self, text, rightPanel): <NEW_LINE> <INDENT> QCheckBox.__init__(self, text) <NEW_LINE> self.rightPanel = rightPanel <NEW_LINE> self.stateChanged.connect(self.changeState) <NEW_LINE> <DEDENT> def changeState(self): <NEW_LINE> <INDENT> self.rightPanel.changeT... | Class for the Tag checkboxes that will go in the right panel.
This is only needed as a separate class to implement the changeState correctly. | 625990391d351010ab8f4cc2 |
class TypesUpdateTestCase(BaseTestGenerator): <NEW_LINE> <INDENT> scenarios = [ ('Update type under schema node', dict(url='/browser/type/obj/')) ] <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.db_name = parent_node_dict["database"][-1]["db_name"] <NEW_LINE> schema_info = parent_node_dict["schema"][-1] <NEW_LINE... | This class will update type under schema node. | 62599039507cdc57c63a5f42 |
class ChangeProposalAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> list_display = ['content_short', 'actiontype', 'contenttype', 'user', 'document', 'refitem'] | Model:
document = models.ForeignKey(Document) # Document to reference
user = models.ForeignKey(User) # Who proposed it
timestamp = models.DateTimeField(auto_now_add=True) # When
actiontype = models.Integer... | 625990390a366e3fb87ddb8e |
@dataclass(frozen=True) <NEW_LINE> class Await(UnlabeledStmt): <NEW_LINE> <INDENT> value: Expr <NEW_LINE> def render(self, indent: int = 0) -> Iterable[Line]: <NEW_LINE> <INDENT> yield Line(f"await {str(self.value)};", indent) <NEW_LINE> <DEDENT> def validate(self) -> None: <NEW_LINE> <INDENT> self.value.validate() | Await ::= [await | when] <Expr>; | 62599039b57a9660fecd2c24 |
class CurrencyField(models.DecimalField): <NEW_LINE> <INDENT> __metaclass__ = models.SubfieldBase <NEW_LINE> def to_python(self, value): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return float(super(CurrencyField, self).to_python( value).quantize(Decimal("0.01"))) <NEW_LINE> <DEDENT> except AttributeError: <NEW_LINE>... | Custom field for a proper working with currencies. Using Decimal is not
enough because it returns the value as a normal Python float, which
is problematic when doing a lot of operations. | 6259903907d97122c4217e46 |
class DaosAgentYamlParameters(YamlParameters): <NEW_LINE> <INDENT> def __init__(self, filename, common_yaml): <NEW_LINE> <INDENT> super(DaosAgentYamlParameters, self).__init__( "/run/agent_config/*", filename, None, common_yaml) <NEW_LINE> log_dir = os.environ.get("DAOS_TEST_LOG_DIR", "/tmp") <NEW_LINE> self.runtime_di... | Defines the daos_agent configuration yaml parameters. | 62599039b5575c28eb71359e |
class ActorFaultManager(object): <NEW_LINE> <INDENT> def __init__(self,parent,actorName,actorDef): <NEW_LINE> <INDENT> self.logger = logging.getLogger(__name__) <NEW_LINE> self.parent = parent <NEW_LINE> self.context = self.parent.context <NEW_LINE> self.actorName = actorName <NEW_LINE> self.proc = None <NEW_LINE> sel... | Fault manager for an actor | 62599039596a897236128e48 |
class ConfigurationFileRequest(object): <NEW_LINE> <INDENT> swagger_types = { 'path': 'str', 'last_read_hash': 'str' } <NEW_LINE> attribute_map = { 'path': 'path', 'last_read_hash': 'lastReadHash' } <NEW_LINE> def __init__(self, path=None, last_read_hash=None): <NEW_LINE> <INDENT> self._path = None <NEW_LINE> self._las... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259903991af0d3eaad3afdc |
class Chassis(base.APIBase): <NEW_LINE> <INDENT> uuid = wtypes.text <NEW_LINE> description = wtypes.text <NEW_LINE> extra = {wtypes.text: wtypes.text} <NEW_LINE> links = [link.Link] <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.fields = objects.Chassis.fields.keys() <NEW_LINE> for k in self.fields: ... | API representation of a chassis.
This class enforces type checking and value constraints, and converts
between the internal object model and the API representation of
a chassis. | 625990398da39b475be04399 |
class CourseComments(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(UserProfile, verbose_name=u'用户') <NEW_LINE> course = models.ForeignKey(Course, verbose_name=u'课程') <NEW_LINE> comments = models.CharField(max_length=200, verbose_name=u'评论') <NEW_LINE> add_time = models.DateTimeField(default=datetime.now, ... | 课程评论 | 6259903916aa5153ce401697 |
class SearchByAddressInputSet(InputSet): <NEW_LINE> <INDENT> def set_Address(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'Address', value) <NEW_LINE> <DEDENT> def set_BusinessType(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'BusinessType', value) <NEW_LINE> <DEDENT> def set_ConsumerKey(s... | An InputSet with methods appropriate for specifying the inputs to the SearchByAddress
Choreo. The InputSet object is used to specify input parameters when executing this Choreo. | 6259903966673b3332c3159f |
class BoundingBox(object): <NEW_LINE> <INDENT> def __init__(self, coordinates: Tuple[int, int, int, int], score: float, color: int): <NEW_LINE> <INDENT> self.coordinates = coordinates <NEW_LINE> self.score = score <NEW_LINE> self.color = color <NEW_LINE> assert color != 0, 'Bounding box should not be related to the bac... | A class which represents bounding box.
| 62599039ec188e330fdf9a42 |
class TypedFileField(forms.FileField): <NEW_LINE> <INDENT> default_error_messages = { 'extension': _('File extension is not supported.'), 'mimetype': _('File mimetype is not supported.') } <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> ext_whitelist = kwargs.pop('ext_whitelist', []) <NEW_LINE> type... | Typed FileField which allows to make sure the uploaded file has
the appropriate type.
File type can be verified either by extension and/or mimetype.
This field accepts all the parameters as FileField, however in addition
it accepts some additional parameters as documented below.
Examples
--------
::
TypedFileF... | 62599039507cdc57c63a5f44 |
class MinefieldResponseNackPdu( MinefieldFamilyPdu ): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(MinefieldResponseNackPdu, self).__init__() <NEW_LINE> self.minefieldID = EntityID(); <NEW_LINE> self.requestingEntityID = EntityID(); <NEW_LINE> self.requestID = 0 <NEW_LINE> self.numberOfMissingPdus ... | proivde the means to request a retransmit of a minefield data pdu. Section 7.9.5 COMPLETE | 625990398a349b6b436873ee |
class _CppLintState(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.verbose_level = 1 <NEW_LINE> self.error_count = 0 <NEW_LINE> self.filters = _DEFAULT_FILTERS[:] <NEW_LINE> self._filters_backup = self.filters[:] <NEW_LINE> self.counting = 'total' <NEW_LINE> self.errors_by_category = {} <NEW_... | Maintains module-wide state.. | 625990396fece00bbacccb57 |
class ComparisonTestFramework(Real_E_CoinTestFramework): <NEW_LINE> <INDENT> def set_test_params(self): <NEW_LINE> <INDENT> self.num_nodes = 2 <NEW_LINE> self.setup_clean_chain = True <NEW_LINE> <DEDENT> def add_options(self, parser): <NEW_LINE> <INDENT> parser.add_option("--testbinary", dest="testbinary", default=os.g... | Test framework for doing p2p comparison testing
Sets up some real_e_coind binaries:
- 1 binary: test binary
- 2 binaries: 1 test binary, 1 ref binary
- n>2 binaries: 1 test binary, n-1 ref binaries | 6259903982261d6c5273079a |
class TestPagureInit: <NEW_LINE> <INDENT> def test_init(self): <NEW_LINE> <INDENT> url = "http://testing.url" <NEW_LINE> timeout = (5, 20) <NEW_LINE> requests_session = mock.Mock() <NEW_LINE> validator = Pagure(url, requests_session, timeout) <NEW_LINE> assert validator.url == url <NEW_LINE> assert validator.requests_s... | Test class for `hotness.validators.Pagure.__init__` method. | 625990394e696a045264e6f7 |
class LongBinValidator(LongValidator): <NEW_LINE> <INDENT> def _format(self, value): <NEW_LINE> <INDENT> return self.locale.from_long(value, base=2) <NEW_LINE> <DEDENT> def _convert(self, text): <NEW_LINE> <INDENT> return self.locale.to_long(text, base=2) | A LongValidator which converts and displays as a binary string
and uses the given locale object to perform conversion. | 62599039d4950a0f3b111715 |
class _MetaIxTclApi(type): <NEW_LINE> <INDENT> def __new__(cls, clsname, clsbases, clsdict): <NEW_LINE> <INDENT> members = clsdict.get('__tcl_members__', list()) <NEW_LINE> command = clsdict.get('__tcl_command__', None) <NEW_LINE> for (n,m) in enumerate(members): <NEW_LINE> <INDENT> if not isinstance(m, TclMember): <NE... | Dynamically creates properties, which wraps the IxTclHAL API.
The `__tcl_members__` attribute is a list of tuples of one of the following
forms: TBD
If no attribute name is given, it is derived from the tclMemberName by
replacing every uppercase letter with the lowercase variant prepended with
a '_', eg. 'portMode' w... | 625990391d351010ab8f4cc6 |
class LogsTableModel(QAbstractTableModel): <NEW_LINE> <INDENT> def __init__(self, parent=None, memory_handler=None): <NEW_LINE> <INDENT> super().__init__(parent) <NEW_LINE> self.records = [] <NEW_LINE> memory_handler.setTarget(self) <NEW_LINE> memory_handler.flush() <NEW_LINE> <DEDENT> def handle(self, record): <NEW_LI... | Table model that retrieves log records from Python logging module and
uses them as model data. | 62599039287bf620b6272d96 |
class UserLoginSerializer(JSONWebTokenSerializer): <NEW_LINE> <INDENT> def create(self, validated_data): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def update(self, instance, validated_data): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def validate(self, attrs): <NEW_LINE> <INDENT> credentials = { self.username_fiel... | 用户登陆获取JWT serializer | 625990399b70327d1c57ff2b |
class Ne(NpPairOperator): <NEW_LINE> <INDENT> def __init__(self, feature_left, feature_right): <NEW_LINE> <INDENT> super(Ne, self).__init__(feature_left, feature_right, "not_equal") | Not Equal Operator
Parameters
----------
feature_left : Expression
feature instance
feature_right : Expression
feature instance
Returns
----------
Feature:
bool series indicate `left != right` | 625990398da39b475be0439b |
class V1beta3_Capabilities(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swaggerTypes = { 'add': 'list[v1beta3_CapabilityType]', 'drop': 'list[v1beta3_CapabilityType]' } <NEW_LINE> self.attributeMap = { 'add': 'add', 'drop': 'drop' } <NEW_LINE> self.add = None <NEW_LINE> self.drop = None | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62599039ac7a0e7691f73694 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.