code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
@inherit_doc <NEW_LINE> class StringIndexer(JavaEstimator, HasInputCol, HasOutputCol, HasHandleInvalid, JavaMLReadable, JavaMLWritable): <NEW_LINE> <INDENT> @keyword_only <NEW_LINE> def __init__(self, inputCol=None, outputCol=None, handleInvalid="error"): <NEW_LINE> <INDENT> super(StringIndexer, self).__init__() <NEW_L... | A label indexer that maps a string column of labels to an ML column of label indices.
If the input column is numeric, we cast it to string and index the string values.
The indices are in [0, numLabels), ordered by label frequencies.
So the most frequent label gets index 0.
>>> stringIndexer = StringIndexer(inputCol="l... | 62598fa5a8ecb033258710d4 |
class Singleton(ManagedProperties): <NEW_LINE> <INDENT> def __init__(cls, name, bases, dict_): <NEW_LINE> <INDENT> super(Singleton, cls).__init__(cls, name, bases, dict_) <NEW_LINE> for ancestor in cls.mro(): <NEW_LINE> <INDENT> if '__new__' in ancestor.__dict__: <NEW_LINE> <INDENT> break <NEW_LINE> <DEDENT> <DEDENT> i... | Metaclass for singleton classes.
A singleton class has only one instance which is returned every time the
class is instantiated. Additionally, this instance can be accessed through
the global registry object S as S.<class_name>.
Examples
========
>>> from sympy import S, Basic
>>> from sympy.core.singleton i... | 62598fa53539df3088ecc17a |
class APITestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> API.config['TESTING'] = True <NEW_LINE> self.API = API.test_client() <NEW_LINE> <DEDENT> def test_index(self): <NEW_LINE> <INDENT> expected = b'Infoset API v1.0 Operational.\n' <NEW_LINE> response = self.API.get('/infoset/api... | Checks all functions and methods. | 62598fa58e71fb1e983bb978 |
class toy(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> f = open('toy.txt') <NEW_LINE> self.f_content = json.loads(f.read()) <NEW_LINE> self.state = self.f_content['state'] <NEW_LINE> f.close() <NEW_LINE> <DEDENT> def on(self): <NEW_LINE> <INDENT> f = open('toy.txt','w') <NEW_LINE> self.f_content... | this class manages the state of the toy, that is simply a json | 62598fa510dbd63aa1c70a77 |
class ForwarderCode(Forwarder): <NEW_LINE> <INDENT> name = 'use-code-string' <NEW_LINE> args_joiner = ':' <NEW_LINE> def __init__(self, script, func, *, modifier=None): <NEW_LINE> <INDENT> modifier = modifier or ModifierWsgi <NEW_LINE> super().__init__(modifier.code, script, func) | Forwards requests to nodes returned by a function.
This allows using user defined functions to calculate.
Function must accept key (domain).
* http://uwsgi.readthedocs.io/en/latest/Fastrouter.html#way-5-fastrouter-use-code-string
.. warning:: Remember to not put blocking code in your functions.
The router is tot... | 62598fa545492302aabfc396 |
class reify(object): <NEW_LINE> <INDENT> def __init__(self, wrapped): <NEW_LINE> <INDENT> self.wrapped = wrapped <NEW_LINE> try: <NEW_LINE> <INDENT> self.__doc__ = wrapped.__doc__ <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> <DEDENT> def __get__(self, inst, objtype=None): <NEW_LINE> <INDENT>... | Use as a class method decorator. It operates almost exactly like the
Python ``@property`` decorator, but it puts the result of the method it
decorates into the instance dict after the first call, effectively
replacing the function it decorates with an instance variable. It is, in
Python parlance, a non-data descripto... | 62598fa52ae34c7f260aafa8 |
class DownloadZipError(bb.Union): <NEW_LINE> <INDENT> _catch_all = 'other' <NEW_LINE> too_large = None <NEW_LINE> too_many_files = None <NEW_LINE> other = None <NEW_LINE> @classmethod <NEW_LINE> def path(cls, val): <NEW_LINE> <INDENT> return cls('path', val) <NEW_LINE> <DEDENT> def is_path(self): <NEW_LINE> <INDENT> re... | This class acts as a tagged union. Only one of the ``is_*`` methods will
return true. To get the associated value of a tag (if one exists), use the
corresponding ``get_*`` method.
:ivar files.DownloadZipError.too_large: The folder or a file is too large to
download.
:ivar files.DownloadZipError.too_many_files: The... | 62598fa5435de62698e9bcbb |
class SelectionInitInterval(VegaLiteSchema): <NEW_LINE> <INDENT> _schema = {'$ref': '#/definitions/SelectionInitInterval'} <NEW_LINE> def __init__(self, *args, **kwds): <NEW_LINE> <INDENT> super(SelectionInitInterval, self).__init__(*args, **kwds) | SelectionInitInterval schema wrapper
anyOf(List([boolean, boolean]), List([float, float]), List([string, string]),
List([:class:`DateTime`, :class:`DateTime`])) | 62598fa54e4d5625663722eb |
class PodSecurityPolicyList(_kuber_definitions.Collection): <NEW_LINE> <INDENT> def __init__( self, items: typing.List["PodSecurityPolicy"] = None, metadata: "ListMeta" = None, ): <NEW_LINE> <INDENT> super(PodSecurityPolicyList, self).__init__( api_version="policy/v1beta1", kind="PodSecurityPolicyList" ) <NEW_LINE> sel... | PodSecurityPolicyList is a list of PodSecurityPolicy
objects. | 62598fa57b25080760ed7371 |
class UnknownCommandError(ParserException): <NEW_LINE> <INDENT> pass | Called when an unknown command is used. | 62598fa5a219f33f346c66df |
class UpdateBarStatus(ql.QuerySpec): <NEW_LINE> <INDENT> args_spec = [ ('barID', ID), ('statusUpdate', StatusUpdate), ('authToken', str) ] <NEW_LINE> result_spec = [ ('bar_status', BarStatusResult), ] <NEW_LINE> @classmethod <NEW_LINE> def resolve(cls, args, result_fields): <NEW_LINE> <INDENT> userID = auth... | Change the bar status:
- disable/enable order taking
- disable/enable table service
specify whether table service is available for food, drinks, or both
- add a bar (for pickup)
- open/close a bar (for pickup) | 62598fa5e64d504609df931c |
class BlendingTransformer: <NEW_LINE> <INDENT> def __init__(self, metric, maximize, optimizer='greedy'): <NEW_LINE> <INDENT> self.metric = metric <NEW_LINE> self.X = None <NEW_LINE> self.y = None <NEW_LINE> def _func(*weights): <NEW_LINE> <INDENT> return self.metric(self.y, np.average(self.X, axis=0, weights=weights)) ... | Optimizer to minimize or maximize an objective metric using Particle Swarm Optimization.
:param metric: Callable function to optimize.
:param maximize: Boolean indicating whether `metric` wants to be maximized or minimized.
:param optimizer: Optimizer to use for optimizing blending weights. Can be either `greedy`, `ps... | 62598fa51b99ca400228f492 |
class AlphaBetaAgent(MultiAgentSearchAgent): <NEW_LINE> <INDENT> def getAction(self, gameState): <NEW_LINE> <INDENT> def min_value(state, depth, agent, alpha, beta): <NEW_LINE> <INDENT> if agent == state.getNumAgents(): <NEW_LINE> <INDENT> return max_value(state, depth + 1, 0, alpha, beta) <NEW_LINE> <DEDENT> val = Non... | Your minimax agent with alpha-beta pruning (question 3) | 62598fa52c8b7c6e89bd368b |
class GreedyHeuristic(Heuristic): <NEW_LINE> <INDENT> def __init__(self, decoder_args, cache_estimates = True): <NEW_LINE> <INDENT> super(GreedyHeuristic, self).__init__() <NEW_LINE> self.cache_estimates = cache_estimates <NEW_LINE> self.decoder = GreedyDecoder(decoder_args) <NEW_LINE> self.cache = SimpleTrie() <NEW_LI... | This heuristic performs greedy decoding to get future cost
estimates. This is expensive but can lead to very close estimates. | 62598fa597e22403b383add2 |
class Agent(object): <NEW_LINE> <INDENT> def __init__(self, agent_id,agent_type=None): <NEW_LINE> <INDENT> self.disposition=randint(low=0,high=2) <NEW_LINE> self.wealth=pareto(3.) <NEW_LINE> if type(agent_id) is not int: <NEW_LINE> <INDENT> raise ValueError("Agent IDs must be integers") <NEW_LINE> <DEDENT> else: <NEW_L... | Agent objet
Parameters
agent_id: Unique integer identifier for each agent | 62598fa50c0af96317c56249 |
class AudioEncoding(object): <NEW_LINE> <INDENT> ENCODING_UNSPECIFIED = 0 <NEW_LINE> LINEAR16 = 1 <NEW_LINE> FLAC = 2 <NEW_LINE> MULAW = 3 <NEW_LINE> AMR = 4 <NEW_LINE> AMR_WB = 5 | Audio encoding of the data sent in the audio message. All encodings support
only 1 channel (mono) audio. Only ``FLAC`` includes a header that describes
the bytes of audio that follow the header. The other encodings are raw
audio bytes with no header.
For best results, the audio source should be captured and transmitte... | 62598fa532920d7e50bc5f1d |
class ManagementPolicyVersion(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'tier_to_cool': {'key': 'tierToCool', 'type': 'DateAfterCreation'}, 'tier_to_archive': {'key': 'tierToArchive', 'type': 'DateAfterCreation'}, 'delete': {'key': 'delete', 'type': 'DateAfterCreation'}, } <NEW_LINE> def __ini... | Management policy action for blob version.
:ivar tier_to_cool: The function to tier blob version to cool storage. Support blob version
currently at Hot tier.
:vartype tier_to_cool: ~azure.mgmt.storage.v2019_06_01.models.DateAfterCreation
:ivar tier_to_archive: The function to tier blob version to archive storage. Sup... | 62598fa5b7558d58954634f6 |
class Account: <NEW_LINE> <INDENT> def __init__(self, name, balance): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.balance = balance <NEW_LINE> print("Account created for " + self.name) <NEW_LINE> <DEDENT> def deposit(self, amount): <NEW_LINE> <INDENT> if amount > 0: <NEW_LINE> <INDENT> self.balance += amount <... | Simple account class with balance | 62598fa556b00c62f0fb2779 |
class Object(AvenewObject, EventObject): <NEW_LINE> <INDENT> repr = "representations.objects.ObjectRepr" <NEW_LINE> @lazy_property <NEW_LINE> def attributes(self): <NEW_LINE> <INDENT> return SharedAttributeHandler(self) <NEW_LINE> <DEDENT> @lazy_property <NEW_LINE> def types(self): <NEW_LINE> <INDENT> return TypeHandle... | Default objects. | 62598fa5097d151d1a2c0eee |
class Struct(_Object): <NEW_LINE> <INDENT> _keys = ("name", "body") <NEW_LINE> def __init__(self, name, body): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._body = body <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self._name <NEW_LINE> <DEDENT> @property <NEW_LINE> def bo... | struct. | 62598fa5cb5e8a47e493c0db |
class Actor(nn.Module): <NEW_LINE> <INDENT> def __init__(self, state_size, action_size, seed, fc1_units=400, fc2_units=300): <NEW_LINE> <INDENT> super(Actor, self).__init__() <NEW_LINE> self.seed = torch.manual_seed(seed) <NEW_LINE> self.fc1 = nn.Linear(state_size, fc1_units) <NEW_LINE> self.fc2 = nn.Linear(fc1_units, ... | Actor (Policy) Model. | 62598fa556ac1b37e63020b4 |
class Corpora(Fragment): <NEW_LINE> <INDENT> def __init__(self, text, kind=""): <NEW_LINE> <INDENT> Fragment.PATTERN[Agregator.WORD_PATTERN] = Pattern() <NEW_LINE> super().__init__(text, kind) <NEW_LINE> <DEDENT> def tokenize(self): <NEW_LINE> <INDENT> gen_cnt, text_types = Z.GEN_CNT, Z.TXT_TYPES <NEW_LINE> self._kind ... | Collection of texts representing a literate language | 62598fa5d6c5a102081e200e |
class UpnpStatusBinarySensor(UpnpEntity, BinarySensorEntity): <NEW_LINE> <INDENT> _attr_device_class = DEVICE_CLASS_CONNECTIVITY <NEW_LINE> def __init__( self, coordinator: UpnpDataUpdateCoordinator, ) -> None: <NEW_LINE> <INDENT> super().__init__(coordinator) <NEW_LINE> self._attr_name = f"{coordinator.device.name} wa... | Class for UPnP/IGD binary sensors. | 62598fa585dfad0860cbf9d8 |
class EnMob: <NEW_LINE> <INDENT> def __init__(self,lvl,health,a,d,g,iX,iY): <NEW_LINE> <INDENT> self.level = lvl <NEW_LINE> self.hp = health <NEW_LINE> self.attack = a <NEW_LINE> self.deff = d <NEW_LINE> self.gold = g <NEW_LINE> self.x = iX*32 <NEW_LINE> self.y = iY*32 <NEW_LINE> self.rect = pygame.Rect(self.x,self... | This should be the class all other mobs inherit from:
Level : lvl
HP : health
Attack : a
Defense: d
Gold : g
Initial X: iX
Initial Y: iY | 62598fa591af0d3eaad39cd6 |
class VersionMismatchError(Error): <NEW_LINE> <INDENT> MDB_NAME = 'MDB_VERSION_MISMATCH' | Database environment version mismatch. | 62598fa5009cb60464d013ec |
class TilixExtension(Extension): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(TilixExtension, self).__init__() <NEW_LINE> self.subscribe(KeywordQueryEvent, KeywordQueryEventListener()) <NEW_LINE> self.subscribe(ItemEnterEvent, ItemEnterEventListener()) | Main Extension Class | 62598fa58e71fb1e983bb97a |
class Update(db.Model): <NEW_LINE> <INDENT> query_class = VectorQuery <NEW_LINE> __tablename__ = 'updates' <NEW_LINE> pk_id = db.Column(db.Text(), primary_key=True) <NEW_LINE> date_created = db.Column(db.Date()) <NEW_LINE> title = db.Column(db.Text()) <NEW_LINE> tag = db.Column(db.Text()) <NEW_LINE> body = db.Column(db... | Project class with initializer to document models | 62598fa5f548e778e596b46c |
class Projectile(Sprite): <NEW_LINE> <INDENT> def __init__(self, screen, hero, direc, current_spell): <NEW_LINE> <INDENT> pygame.sprite.Sprite.__init__(self) <NEW_LINE> self.screen = screen <NEW_LINE> self.direction = direc <NEW_LINE> self.fire = pygame.image.load('data/spells/Fire.png').convert_alpha() <NEW_LINE> self... | A class to manage projectiles fired from the hero | 62598fa510dbd63aa1c70a79 |
class FizzBuzz: <NEW_LINE> <INDENT> FIZZ = 'fizz' <NEW_LINE> BUZZ = 'buzz' <NEW_LINE> FIZZ_MULTIPLE = 3 <NEW_LINE> BUZZ_MULTIPLE = 5 <NEW_LINE> def get(self, number): <NEW_LINE> <INDENT> return self._calculate_output(number) <NEW_LINE> <DEDENT> def _calculate_output(self, number): <NEW_LINE> <INDENT> output = number <N... | The FizzBuzz Game Class. | 62598fa5b7558d58954634f7 |
class CellTimings ( object ): <NEW_LINE> <INDENT> def __init__ ( self, cell ): <NEW_LINE> <INDENT> self.cell = cell <NEW_LINE> self.drive = 0.0 <NEW_LINE> <DEDENT> @property <NEW_LINE> def name ( self ): return self.cell.getName() <NEW_LINE> def __str__ ( self ): <NEW_LINE> <INDENT> return '<CellTimings "{}" drive:{}>... | Contains the timing data related to a Cell. | 62598fa52c8b7c6e89bd368d |
class Xml2Obj(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.root = None <NEW_LINE> self.nodeStack = [] <NEW_LINE> self.elementInventory=[] <NEW_LINE> <DEDENT> def StartElement(self, name, attributes): <NEW_LINE> <INDENT> import CC3DXML <NEW_LINE> element = CC3DXML.CC3DXMLElement(name.encode(... | XML to Object converter | 62598fa5796e427e5384e65b |
class Orbital(object): <NEW_LINE> <INDENT> def __init__(self, onsite, label): <NEW_LINE> <INDENT> self.onsite = onsite <NEW_LINE> self.label = label <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "{} with onsite {}\n".format(self.label, self.onsite) | Orbital object with a onsite energy | 62598fa5236d856c2adc939f |
class GeneratorAvailabilityRebid(GeneratorAvailabilityBid): <NEW_LINE> <INDENT> def __init__(self, sender_id, settlement_date, rebid_explanation='N/A', availability_bid_by_trading_interval_date=None): <NEW_LINE> <INDENT> super(GeneratorAvailabilityRebid, self).__init__(sender_id, settlement_date, availability_bid_by_tr... | Defines a modification to a generator's availabilities per trading interval for
a specified trading day, with an explanation of why the modification was made. The
trading day is identified by the settlement day of the bid. | 62598fa501c39578d7f12c48 |
class Rescale(object): <NEW_LINE> <INDENT> def __init__(self, output_size): <NEW_LINE> <INDENT> assert isinstance(output_size, (int, tuple)) <NEW_LINE> self.output_size = output_size <NEW_LINE> <DEDENT> def __call__(self, sample): <NEW_LINE> <INDENT> image, cls, label = sample['image'],sample['class'], sample['label'] ... | Rescale the image in a sample to a given size.
Args:
output_size (tuple or int): Desired output size. If tuple, output is
matched to output_size. If int, smaller of image edges is matched
to output_size keeping aspect ratio the same. | 62598fa5379a373c97d98ed9 |
class PluginInterface: <NEW_LINE> <INDENT> def create_context(self): <NEW_LINE> <INDENT> return Context() <NEW_LINE> <DEDENT> def validate_args(self, args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_commands(self): <NEW_LINE> <INDENT> return [] <NEW_LINE> <DEDENT> def get_listeners(self): <NEW_LINE> <INDENT>... | The PluginInterface class is a way to customize nubia for every customer
use case. It allowes custom argument validation, control over command
loading, custom context objects, and much more. | 62598fa5435de62698e9bcbd |
class Graph: <NEW_LINE> <INDENT> __slots__ = 'vertList', 'numVertices' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.vertList = {} <NEW_LINE> self.numVertices = 0 <NEW_LINE> <DEDENT> def addVertex(self, vertex): <NEW_LINE> <INDENT> if self.getVertex(vertex.id) == None: <NEW_LINE> <INDENT> self.numVertices += ... | A graph implemented as an adjacency list of vertices.
:slot: vertList (dict): A dictionary that maps a vertex key to a Vertex
object
:slot: numVertices (int): The total number of vertices in the graph | 62598fa5d486a94d0ba2be96 |
class Movie(): <NEW_LINE> <INDENT> def __init__(self, movie_title, movie_poster, movie_trailer): <NEW_LINE> <INDENT> self.title = movie_title <NEW_LINE> self.poster_image_url = movie_poster <NEW_LINE> self.trailer_youtube_url = movie_trailer | A class representing a movie
Attributes:
Title
Poster
Trailer URL | 62598fa57047854f4633f2a1 |
class UnloggedinCmdSet(default_cmds.UnloggedinCmdSet): <NEW_LINE> <INDENT> key = "DefaultUnloggedin" <NEW_LINE> def at_cmdset_creation(self): <NEW_LINE> <INDENT> super(UnloggedinCmdSet, self).at_cmdset_creation() | Command set available to the Session before being logged in. This
holds commands like creating a new account, logging in, etc. | 62598fa5aad79263cf42e69d |
class WeChatComponentClient(WeChatClient): <NEW_LINE> <INDENT> def __init__(self, appid, component, access_token=None, refresh_token=None, session=None, timeout=None): <NEW_LINE> <INDENT> super(WeChatComponentClient, self).__init__( appid, '', access_token, session, timeout ) <NEW_LINE> self.appid = appid <NEW_LINE> se... | 开放平台代公众号调用客户端 | 62598fa556ac1b37e63020b5 |
class OutputRedirector(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, fileno, bufsize = 8192): <NEW_LINE> <INDENT> threading.Thread.__init__(self) <NEW_LINE> self.setDaemon(True) <NEW_LINE> self.__fileno = fileno <NEW_LINE> self.__bufsize = bufsize <NEW_LINE> <DEDENT> def getfile(self): <NEW_LINE> <INDENT> r... | A class for reading data from a file and passing it to the "write" method
of an object. | 62598fa53539df3088ecc17d |
class HostReachProtocolEnum(Enum): <NEW_LINE> <INDENT> bgp = 1 <NEW_LINE> @staticmethod <NEW_LINE> def _meta_info(): <NEW_LINE> <INDENT> from ydk.models.cisco_ios_xr._meta import _Cisco_IOS_XR_tunnel_nve_cfg as meta <NEW_LINE> return meta._meta_table['HostReachProtocolEnum'] | HostReachProtocolEnum
Host reach protocol
.. data:: bgp = 1
Use BGP EVPN for VxLAN tunnel endpoint
reachability | 62598fa56e29344779b00525 |
class FormCriterion(object): <NEW_LINE> <INDENT> interface.implements(interfaces.IFormCriterion) <NEW_LINE> schema = atapi.Schema(( schemata.ATContentTypeSchema['title'], schemata.ATContentTypeSchema['description'], atapi.LinesField( 'formFields', widget=atapi.MultiSelectionWidget( label=u'Form Fields', description=( u... | A criterion that generates a search form field. | 62598fa5aad79263cf42e69e |
class Die(): <NEW_LINE> <INDENT> def __init__(self, num_sides=8): <NEW_LINE> <INDENT> self.num_sides = num_sides <NEW_LINE> <DEDENT> def roll(self): <NEW_LINE> <INDENT> return randint(1, self.num_sides) | A class representing a single die. | 62598fa5435de62698e9bcbe |
class ValidationError(SpecError): <NEW_LINE> <INDENT> def __init__(self, spec, *parts): <NEW_LINE> <INDENT> self.spec = spec <NEW_LINE> super().__init__(f'invalid value for {typename(spec)}', *parts) | Error raised when a value fails Spec validation. | 62598fa58e7ae83300ee8f6a |
class Subscriptionattr(object): <NEW_LINE> <INDENT> swagger_types = { 'msisdn': 'str', 'events': 'list[str]', 'carrier_name': 'str' } <NEW_LINE> attribute_map = { 'msisdn': 'msisdn', 'events': 'events', 'carrier_name': 'carrierName' } <NEW_LINE> def __init__(self, msisdn=None, events=None, carrier_name=None): <NEW_LINE... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fa5eab8aa0e5d30bc52 |
class SuspicionOfHiding(Belief): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return "我觉得有人把 %s 藏起来了" % ( self.subject.render() ) | This character suspects some other character of hiding this thing. | 62598fa56fb2d068a7693d9a |
class Robot(object): <NEW_LINE> <INDENT> def __init__(self, room, speed): <NEW_LINE> <INDENT> self.room = room <NEW_LINE> self.speed = speed <NEW_LINE> self.position = room.getRandomPosition() <NEW_LINE> self.d = random.randint(0, 359) <NEW_LINE> <DEDENT> def getRobotPosition(self): <NEW_LINE> <INDENT> return self.posi... | Represents a robot cleaning a particular room.
At all times the robot has a particular position and direction in the room.
The robot also has a fixed speed.
Subclasses of Robot should provide movement strategies by implementing
updatePositionAndClean(), which simulates a single time-step. | 62598fa5a79ad16197769f2b |
class fhb(Base): <NEW_LINE> <INDENT> __tablename__ = 'fhb' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> data = Column(String) | SQLAlchemy Model DB Model | 62598fa53eb6a72ae038a50e |
class NotWithRule(Rule): <NEW_LINE> <INDENT> name = "not_with" <NEW_LINE> stop = True <NEW_LINE> def passes(self, field: str, value: Any, parameters: List[str], validator) -> bool: <NEW_LINE> <INDENT> other = parameters[0] <NEW_LINE> data = validator.data <NEW_LINE> self.message_fields = dict(field=field, other=other) ... | Not with other field | 62598fa55f7d997b871f9345 |
class ThreadedHTTPServer(object): <NEW_LINE> <INDENT> def __init__(self, host, port, request_handler=SimpleHTTPRequestHandler): <NEW_LINE> <INDENT> socketserver.TCPServer.allow_reuse_address = True <NEW_LINE> self.server = socketserver.TCPServer((host, int(port)), request_handler) <NEW_LINE> self.server_thread = thread... | Runs SimpleHTTPServer in a thread
Lets you start and stop an instance of SimpleHTTPServer. | 62598fa5e5267d203ee6b7d7 |
class MapStdOut(MapStdX): <NEW_LINE> <INDENT> _func = "stdout" | An object that helps implement a map's sequence over its ``stdout``.
Don't both instantiating one yourself: use the ``Map.stdout``
attribute instead. | 62598fa53539df3088ecc17e |
class Pvector(_Common): <NEW_LINE> <INDENT> _NAMES = ('pvector', 'frame', 'scalar') <NEW_LINE> def __init__(self, pvector, frame, scalar=None): <NEW_LINE> <INDENT> if scalar is None: <NEW_LINE> <INDENT> scalar = np.shape(pvector)[1] == 1 <NEW_LINE> <DEDENT> self.pvector = pvector <NEW_LINE> self.frame = frame <NEW_LINE... | Geographical position given as cartesian position vector in a frame. | 62598fa58c0ade5d55dc35f5 |
class NoAuthProvider(BaseProvider, abc.ABC): <NEW_LINE> <INDENT> async def authorize(self, *args, **kwargs): <NEW_LINE> <INDENT> pass | Provider that does not perform any global authorization (implementation must handle on each request) | 62598fa576e4537e8c3ef476 |
class Zvijezda(RegularanIzraz): <NEW_LINE> <INDENT> def __init__(self, ri): <NEW_LINE> <INDENT> assert isinstance(ri, RegularanIzraz) <NEW_LINE> self.ispod = ri <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return '{}*'.format(self.ispod) <NEW_LINE> <DEDENT> def prazan(self): <NEW_LINE> <INDENT> return Fal... | L* := ε ∪ L ∪ LL ∪ LLL ∪ .... | 62598fa530dc7b766599f717 |
class TCWrongControllingSensorNumber(TemperatureControllerErrors): <NEW_LINE> <INDENT> def __init__(self, sensor_number): <NEW_LINE> <INDENT> self.code = 'ITCERROR5' <NEW_LINE> self.name = 'ITC_WRONG_SENSOR_NUMBER' <NEW_LINE> self.message = 'ERROR: The given value ({0:G}) for the controlling sensor number is out of the... | This error will be rised when the user tries to set the heater controlling sensor to a number outside the available sensor number range (integers from 1 to 3). | 62598fa54e4d5625663722ee |
class UnitCategoricalSample(CategoricalSample): <NEW_LINE> <INDENT> def __init__(self, k=1, seed=1): <NEW_LINE> <INDENT> super(UnitCategoricalSample, self).__init__(seed=seed) <NEW_LINE> self.k = k <NEW_LINE> <DEDENT> def sample(self, shape): <NEW_LINE> <INDENT> if self.k == shape[-1]: <NEW_LINE> <INDENT> return super(... | Unit Categorical distribution | 62598fa5e5267d203ee6b7d8 |
class ConvLSTMCell(tf.nn.rnn_cell.RNNCell): <NEW_LINE> <INDENT> def __init__(self, shape, filters, kernel, forget_bias=1.0, activation=tf.tanh, normalize=True, peephole=True, data_format='channels_last', reuse=None): <NEW_LINE> <INDENT> super(ConvLSTMCell, self).__init__(_reuse=reuse) <NEW_LINE> self._kernel = kernel <... | From: https://github.com/carlthome/tensorflow-convlstm-cell/blob/master/cell.py
A LSTM cell with convolutions instead of multiplications.
Reference:
Xingjian, S. H. I., et al. "Convolutional LSTM network: A machine learning approach for precipitation nowcasting." Advances in Neural Information Processing Systems. 20... | 62598fa5379a373c97d98edc |
class ChimeraLoss(nn.Module): <NEW_LINE> <INDENT> def __init__(self, alpha=0.1): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> assert alpha >= 0, "Negative alpha values don't make sense." <NEW_LINE> assert alpha <= 1, "Alpha values above 1 don't make sense." <NEW_LINE> self.src_mse = PITLossWrapper(pairwise_mse, pi... | Combines Deep clustering loss and mask inference loss for ChimeraNet.
Args:
alpha (float): loss weight. Total loss will be :
`alpha` * dc_loss + (1 - `alpha`) * mask_mse_loss. | 62598fa5fff4ab517ebcd6af |
class SecurityProfile(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'uefi_settings': {'key': 'uefiSettings', 'type': 'UefiSettings'}, 'encryption_at_host': {'key': 'encryptionAtHost', 'type': 'bool'}, 'security_type': {'key': 'securityType', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, uefi... | Specifies the Security profile settings for the virtual machine or virtual machine scale set.
:ivar uefi_settings: Specifies the security settings like secure boot and vTPM used while
creating the virtual machine. :code:`<br>`:code:`<br>`Minimum api-version: 2020-12-01.
:vartype uefi_settings: ~azure.mgmt.compute.v20... | 62598fa51b99ca400228f494 |
class RoleListView(SuperPermissionsMixin, DokumenListView): <NEW_LINE> <INDENT> template_name = 'role/list.html' <NEW_LINE> model = Role <NEW_LINE> context_object_name = 'role_data' <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> queryset = super(RoleListView, self).get_queryset() <NEW_LINE> return queryset | Role List View.
Attributes:
context_object_name (str): Description
model (TYPE): Description
template_name (str): Description | 62598fa524f1403a92685818 |
class Quaggan: <NEW_LINE> <INDENT> def __init__(self, bot): <NEW_LINE> <INDENT> self.bot = bot; <NEW_LINE> self.settings = dataIO.load_json(SETTINGS) <NEW_LINE> <DEDENT> @commands.command(pass_context=True) <NEW_LINE> async def quaggan(self, ctx, *quag): <NEW_LINE> <INDENT> link = "https://api.guildwars2.com/v2/quaggan... | Cog to give the calling user a specified or otherwise random picture of a quaggan | 62598fa5adb09d7d5dc0a455 |
class trellis_paths(object): <NEW_LINE> <INDENT> def __init__(self,Ns,D): <NEW_LINE> <INDENT> self.Ns = Ns <NEW_LINE> self.decision_depth = D <NEW_LINE> self.traceback_states = np.zeros((Ns,self.decision_depth),dtype=int) <NEW_LINE> self.cumulative_metric = np.zeros((Ns,self.decision_depth),dtype=float) <NEW_LINE> self... | A structure to hold the trellis paths in terms of traceback_states,
cumulative_metrics, and traceback_bits. A full decision depth history
of all this infomation is not essential, but does allow the graphical
depiction created by the method traceback_plot().
Ns is the number of states = 2**(K-1) and D is the decision de... | 62598fa556ac1b37e63020b7 |
class OutputRegister(Register): <NEW_LINE> <INDENT> pass | Semantic class for object generation | 62598fa5ac7a0e7691f723d5 |
class WDBPunch: <NEW_LINE> <INDENT> def __init__(self, code=0, time=0): <NEW_LINE> <INDENT> self.code = code <NEW_LINE> self.time = time <NEW_LINE> <DEDENT> def parse_bytes(self, byte_array): <NEW_LINE> <INDENT> byteorder = get_wdb_byteorder() <NEW_LINE> self.code = int.from_bytes(byte_array[0:1], byteorder) <NEW_LINE>... | Class, describing 1 punch - code and time.
Used for start, finish, check, clear and control point. | 62598fa51f037a2d8b9e3fb5 |
class IsOwnerOrReadOnly(permissions.BasePermission): <NEW_LINE> <INDENT> def has_object_permission(self, request, view, obj): <NEW_LINE> <INDENT> if request.method in permissions.SAFE_METHODS: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> if request.user.user_type == 'SystemAdmin': <NEW_LINE> <INDENT> return True... | Object-level permission to only allow owners of an object to edit it.
Assumes the model instance has an `created_by` attribute. | 62598fa56e29344779b00527 |
class point_pillars_net(nn.Module): <NEW_LINE> <INDENT> def __init__(self, device=None): <NEW_LINE> <INDENT> super(point_pillars_net, self).__init__() <NEW_LINE> self.pillar_feature_net = pillar_feature_net() <NEW_LINE> self.backbone = backbone() <NEW_LINE> self.detection_head = detection_head() <NEW_LINE> if device: <... | overall model
return: occ, loc, angle, size, heading, clf
return shape: 4*252*252*(4, 4*3, 4, 4*3, 4, 4*4) | 62598fa5b7558d58954634fa |
class finalProcessedTweets(ndb.Model): <NEW_LINE> <INDENT> Tweet = ndb.StringProperty() <NEW_LINE> Job_List = ndb.StringProperty(repeated=True) <NEW_LINE> Company_Name = ndb.StringProperty() <NEW_LINE> Location = ndb.StringProperty() <NEW_LINE> Job_Url = ndb.StringProperty(repeated=True) <NEW_LINE> created_at = ndb.Dat... | Define the Tweet model. | 62598fa5d7e4931a7ef3bf66 |
class MatrixProductOperator(scipy.sparse.linalg.LinearOperator): <NEW_LINE> <INDENT> def __init__(self, A, B): <NEW_LINE> <INDENT> if A.ndim != 2 or B.ndim != 2: <NEW_LINE> <INDENT> raise ValueError('expected ndarrays representing matrices') <NEW_LINE> <DEDENT> if A.shape[1] != B.shape[0]: <NEW_LINE> <INDENT> raise Val... | This is purely for onenormest testing. | 62598fa599cbb53fe6830da0 |
class FakeMetrics(object): <NEW_LINE> <INDENT> connection = None <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.calls = [] <NEW_LINE> <DEDENT> def meter(self, name, count): <NEW_LINE> <INDENT> self.calls.append(("meter", name, count)) <NEW_LINE> <DEDENT> def gauge(self, name, value): <NEW_LINE> <INDENT> self.c... | Fake Metrics object that records calls. | 62598fa56fb2d068a7693d9b |
class EmptyAnalysis(actions.Step): <NEW_LINE> <INDENT> NAME = "EmptyAnalysis" <NEW_LINE> DESCRIPTION = "Analyses nothing." <NEW_LINE> def __init__(self, project: Project, experiment_handle: ExperimentHandle): <NEW_LINE> <INDENT> super().__init__(obj=project, action_fn=self.analyze) <NEW_LINE> self.__experiment_handle =... | Empty analysis step for testing. | 62598fa556ac1b37e63020b8 |
class HomepageUI1(QWidget): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(HomepageUI1, self).__init__(*args, **kwargs) <NEW_LINE> layout = QVBoxLayout() <NEW_LINE> label = QLabel("期货分析助手", self) <NEW_LINE> label.setAlignment(Qt.AlignCenter) <NEW_LINE> label.setStyleSheet("color:rgb(... | 首页UI | 62598fa526068e7796d4c824 |
class RunDeviceStreamRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Tids = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Tids = params.get("Tids") | RunDeviceStream请求参数结构体
| 62598fa56aa9bd52df0d4d95 |
class AkismetAPIError(Exception): <NEW_LINE> <INDENT> pass | Raised when there's an error with the Akismet API. | 62598fa55fdd1c0f98e5de63 |
class Zip: <NEW_LINE> <INDENT> def create_zip(self, db, submission, request, logger, passwd=None, mat_dir=None, no_subdirs=None): <NEW_LINE> <INDENT> if db(db.material.leak_id==submission.id).select().first(): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> filedir = str(db(db.submission.leak_id==submission.id).select( db... | Class that creates the material archive. | 62598fa58a43f66fc4bf2048 |
class rule_103(single_space_between_tokens): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> single_space_between_tokens.__init__(self, 'loop_statement', '103', token.loop_label, token.label_colon) <NEW_LINE> self.solution = 'Ensure a single space between label and :.' | This rule checks if a label exists that a single space exists between the label and the colon.
**Violation**
.. code-block:: vhdl
label: for index in 4 to 23 loop
label : for index in 0 to 100 loop
**Fix**
.. code-block:: vhdl
label : for index in 4 to 23 loop
label : for index in 0 to 100 ... | 62598fa53cc13d1c6d465637 |
class JsonResModelFormMixin(ModelFormMixin, JsonResponseMixin): <NEW_LINE> <INDENT> def form_valid(self, form): <NEW_LINE> <INDENT> self.object = form.save() <NEW_LINE> return self.render_json_to_response(status=1, msg='success') <NEW_LINE> <DEDENT> def form_invalid(self, form): <NEW_LINE> <INDENT> return self.render_j... | 与 JsonResFormMixin 不同的是,这里封装的 form_valid 默认会调用 ModelForm 的 save() 方法做数据保存操作 | 62598fa5e5267d203ee6b7d9 |
class ClouderApplication(models.Model): <NEW_LINE> <INDENT> _name = 'clouder.application' <NEW_LINE> container_price_partner_month = fields.Float('Price partner/month') <NEW_LINE> container_price_user_month = fields.Float('Price partner/month') <NEW_LINE> container_price_user_payer = fields.Selection( [('partner', 'Par... | Add the default price configuration in application. | 62598fa5498bea3a75a579ee |
class Camp(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=256) <NEW_LINE> start_at = models.DateTimeField() <NEW_LINE> end_at = models.DateTimeField() <NEW_LINE> created_at = models.DateTimeField(auto_now_add=True, null=True) <NEW_LINE> updated_at = models.DateTimeField(auto_now=True, null=True) ... | Camp is the thing everyone goes to in the summer to have fun | 62598fa54428ac0f6e6583ed |
class ASPathList(object): <NEW_LINE> <INDENT> def __init__(self, list_id, access, as_paths): <NEW_LINE> <INDENT> assert isinstance(list_id, int) <NEW_LINE> assert isinstance(as_paths, Iterable) <NEW_LINE> assert isinstance(access, Access) <NEW_LINE> if not is_empty(as_paths): <NEW_LINE> <INDENT> for as_path in as_paths... | Represents a list of as paths in a match | 62598fa52ae34c7f260aafad |
class MultiHeadAttention(nn.Module): <NEW_LINE> <INDENT> def __init__(self,d_model=512,n_heads=8,d_k=32,d_v=32,drop_out=0.): <NEW_LINE> <INDENT> super(MultiHeadAttention,self).__init__() <NEW_LINE> self.n_heads = n_heads <NEW_LINE> self.d_k = d_k <NEW_LINE> self.d_v = d_v <NEW_LINE> self.projections = nn.ModuleDict(dic... | implementation multihead attention | 62598fa53d592f4c4edbad99 |
class Chain(_msys.Chain): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> def __init__(self, ptr, id): <NEW_LINE> <INDENT> super().__init__(ptr, id) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "<Chain %s>" % self.name <NEW_LINE> <DEDENT> @property <NEW_LINE> def system(self): <NEW_LINE> <INDENT> re... | Represents a chain (of Residues) in a System | 62598fa5d268445f26639ae9 |
class HumanAgent(Agent): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(HumanAgent).__init__() <NEW_LINE> self._is_on_reverse = False <NEW_LINE> <DEDENT> def _get_keyboard_control(self, keys): <NEW_LINE> <INDENT> control = VehicleControl() <NEW_LINE> if keys[K_LEFT] or keys[K_a]: <NEW_LINE> <INDENT> ... | Derivation of Agent Class for human control, | 62598fa510dbd63aa1c70a7c |
class RestrictedCharFieldAccessor(FieldAccessor): <NEW_LINE> <INDENT> def __set__(self, instance: Model, value: Optional[str]): <NEW_LINE> <INDENT> if value is None: <NEW_LINE> <INDENT> return super().__set__(instance, value) <NEW_LINE> <DEDENT> return super().__set__(instance, self.field.check(value)) | Accessor class for HTML data. | 62598fa5236d856c2adc93a1 |
class disable(): <NEW_LINE> <INDENT> def __init__(self, region_name=""): <NEW_LINE> <INDENT> self.region_name = region_name <NEW_LINE> if region_name == "": <NEW_LINE> <INDENT> self.user_region_name = False <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.user_region_name = True <NEW_LINE> <DEDENT> self.module_name =... | Context manager to disable tracing in a certain region:
```
with disable():
do stuff
```
This overides --noinstrumenter (--nopython legacy)
If a region name is given, the region the contextmanager is active will be marked in the trace or profile | 62598fa530dc7b766599f719 |
class KNACSource(PersonSource): <NEW_LINE> <INDENT> pass | An automobile club | 62598fa54e4d5625663722f0 |
class Singleton(object): <NEW_LINE> <INDENT> _instance = None <NEW_LINE> def __new__(cls, *args, **kwargs): <NEW_LINE> <INDENT> if not Singleton._instance: <NEW_LINE> <INDENT> Singleton._instance = super(Singleton, cls).__new__(cls, *args, **kwargs) <NEW_LINE> <DEDENT> return Singleton._instance | Classic Singleton | 62598fa57b25080760ed7377 |
class create_prod_dict: <NEW_LINE> <INDENT> def __init__(self, df, key_colName='ProductId', val_colName='ProductName', val_colName_2='CSPC', val_colName_3='UnitSizeML', val_colName_4='RetailPrice'): <NEW_LINE> <INDENT> self.df = df <NEW_LINE> self.key = key_colName <NEW_LINE> self.val = val_colName <NEW_LINE> self.val_... | Create a dictionary based on a dataframe, key, and value column names | 62598fa5be8e80087fbbef2e |
class MeasureS21(MeasureActiveReactive): <NEW_LINE> <INDENT> @property <NEW_LINE> def values(self): <NEW_LINE> <INDENT> values = {} <NEW_LINE> try: <NEW_LINE> <INDENT> get = self.objectified.get <NEW_LINE> values = self.active_reactive(self.objectified, 'a') <NEW_LINE> values.update( { 'timestamp': self._get_timestamp(... | Class for a set of measures of report S21. | 62598fa5e5267d203ee6b7da |
class OpenImagesDetectionEvaluator(ObjectDetectionEvaluator): <NEW_LINE> <INDENT> def __init__(self, categories, matching_iou_threshold=0.5, evaluate_corlocs=False, metric_prefix='OpenImagesV2', group_of_weight=0.0): <NEW_LINE> <INDENT> super(OpenImagesDetectionEvaluator, self).__init__( categories, matching_iou_thresh... | A class to evaluate detections using Open Images V2 metrics.
Open Images V2 introduce group_of type of bounding boxes and this metric
handles those boxes appropriately. | 62598fa5d7e4931a7ef3bf67 |
class UserSecretStoreFragment(Model): <NEW_LINE> <INDENT> _attribute_map = { 'key_vault_uri': {'key': 'keyVaultUri', 'type': 'str'}, 'key_vault_id': {'key': 'keyVaultId', 'type': 'str'}, } <NEW_LINE> def __init__(self, key_vault_uri=None, key_vault_id=None): <NEW_LINE> <INDENT> super(UserSecretStoreFragment, self).__in... | Properties of a user's secret store.
:param key_vault_uri: The URI of the user's Key vault.
:type key_vault_uri: str
:param key_vault_id: The ID of the user's Key vault.
:type key_vault_id: str | 62598fa52ae34c7f260aafae |
class Card(QtCore.QObject): <NEW_LINE> <INDENT> SUITE_LOOKUP = dict(d='diamonds', s='spades', c='clubs', h='hearts') <NEW_LINE> SUITES = ['s', 'd', 'h', 'c'] <NEW_LINE> FACES = range(2,11) + list('jqka') <NEW_LINE> def __init__(self, face, suite): <NEW_LINE> <INDENT> super(Card, self).__init__() <NEW_LINE> self.face = ... | Wrapper around a QGraphicsPixmapItem representing a playing card | 62598fa5a219f33f346c66e5 |
class Meta: <NEW_LINE> <INDENT> model = UserSecurityToken <NEW_LINE> fields = ('email', 'otp') | Meta information for OTP validation serializer | 62598fa5009cb60464d013f1 |
class guard(object): <NEW_LINE> <INDENT> def __init__(self, message, payload=None): <NEW_LINE> <INDENT> self.message = message <NEW_LINE> self.payload = payload <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __exit__(self, exc_type, exc_value, exc_traceback): <NEW_LINE> <INDEN... | Adds a paragraph to exceptions leaving the wrapped ``with`` block. | 62598fa51f5feb6acb162aee |
class MinimaxPlayer(IsolationPlayer): <NEW_LINE> <INDENT> def get_move(self, game, time_left): <NEW_LINE> <INDENT> self.time_left = time_left <NEW_LINE> best_move = (-1, -1) <NEW_LINE> try: <NEW_LINE> <INDENT> return self.minimax(game, self.search_depth) <NEW_LINE> <DEDENT> except SearchTimeout: <NEW_LINE> <INDENT> pas... | Game-playing agent that chooses a move using depth-limited minimax
search. You must finish and test this player to make sure it properly uses
minimax to return a good move before the search time limit expires. | 62598fa5ac7a0e7691f723d7 |
class MachineMap_Item(models.Model): <NEW_LINE> <INDENT> ORIENTATION_CHOICES = ( ('H', 'Horizontal'), ('V', 'Vertical'), ) <NEW_LINE> machine = models.ForeignKey(c_models.Item) <NEW_LINE> view = models.ForeignKey(MachineMap) <NEW_LINE> size = models.ForeignKey(MachineMap_Size) <NEW_LINE> xpos = models.IntegerField() <N... | This table is used by the machine map view to determine where computers are
located | 62598fa599fddb7c1ca62d4e |
class nginx_conf(nginx_conf_base): <NEW_LINE> <INDENT> name = "${PRJ_NAME}_${SYS_NAME}_${USER}.conf" <NEW_LINE> src = "${PRJ_ROOT}/conf/used/nginx.conf" <NEW_LINE> tpl = "${PRJ_ROOT}/conf/options/nginx.conf" <NEW_LINE> dst = "/usr/local/nginx/conf/include/" <NEW_LINE> bin = "/sbin/service nginx" | !R.nginx_conf
tpl : "${PRJ_ROOT}/conf/options/nginx.conf" | 62598fa53539df3088ecc181 |
class absolute_SSS_difference_from_DDD(abstract_absolute_SSS_difference_from_DDD): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> abstract_absolute_SSS_difference_from_DDD.__init__(self, *args, package_name='urbansim') | difference of variable SSS (current year - baseyear) | 62598fa53317a56b869be4b0 |
class ImageListQueryDemo(object): <NEW_LINE> <INDENT> API_URL = "http://as.dun.163.com/v1/image/list/pageQuery" <NEW_LINE> VERSION = "v1.0" <NEW_LINE> def __init__(self, secret_id, secret_key, business_id): <NEW_LINE> <INDENT> self.secret_id = secret_id <NEW_LINE> self.secret_key = secret_key <NEW_LINE> self.business_i... | 易盾反垃圾云服务图片名单查询接口python示例代码 | 62598fa544b2445a339b68d5 |
class EvalString(Evaluator): <NEW_LINE> <INDENT> __slots__ = ["value", "eval"] <NEW_LINE> def build(self, tokens, _decode=decode_string): <NEW_LINE> <INDENT> value = self.value = _decode(tokens[0][1:-1]) <NEW_LINE> self.eval = lambda context: value | Class to evaluate a string | 62598fa5d6c5a102081e2014 |
class Job(resource.Resource, display.Display): <NEW_LINE> <INDENT> show_column_names = [ "Id", "Type", "Begin Time", "End Time", "Entities", "Status", ] <NEW_LINE> column_2_property = { "Id": "job_id", "Type": "job_type", } <NEW_LINE> formatter = { "Entities": utils.format_dict } <NEW_LINE> def get_show_column_names(se... | Volume Backup Job resource instance | 62598fa5f548e778e596b471 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.