code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class UsecaseList(ListResource): <NEW_LINE> <INDENT> def __init__(self, version): <NEW_LINE> <INDENT> super(UsecaseList, self).__init__(version) <NEW_LINE> self._solution = {} <NEW_LINE> self._uri = '/Services/Usecases'.format(**self._solution) <NEW_LINE> <DEDENT> def fetch(self): <NEW_LINE> <INDENT> payload = self._ve...
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
625990573539df3088ecd81d
class ChromePreferencesParser(interface.SingleFileBaseParser): <NEW_LINE> <INDENT> NAME = 'chrome_preferences' <NEW_LINE> DESCRIPTION = u'Parser for Chrome Preferences files.' <NEW_LINE> REQUIRED_KEYS = frozenset(('browser', 'extensions')) <NEW_LINE> def _ExtractExtensionInstallationEvents(self, settings_dict): <NEW_LI...
Parses Chrome Preferences files.
62599057dd821e528d6da43b
class UDPTracer(pyuavcan.transport.Tracer): <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> self._sessions: typing.Dict[AlienSessionSpecifier, _AlienSession] = {} <NEW_LINE> <DEDENT> def update(self, cap: Capture) -> typing.Optional[Trace]: <NEW_LINE> <INDENT> if not isinstance(cap, UDPCapture): <NE...
This is like a Wireshark dissector but UAVCAN-focused. Return types from :meth:`update`: - :class:`pyuavcan.transport.TransferTrace` - :class:`UDPErrorTrace`
62599057b57a9660fecd2ff2
class JdxCreateOrderRequest(JDCloudRequest): <NEW_LINE> <INDENT> def __init__(self, parameters, header=None, version="v1"): <NEW_LINE> <INDENT> super(JdxCreateOrderRequest, self).__init__( '/regions/{regionId}/jdxCreateOrder', 'POST', header, version) <NEW_LINE> self.parameters = parameters
下单接口
625990578e71fb1e983bd040
class mep_abs24(mep_imm): <NEW_LINE> <INDENT> parser = abs24_deref_parser <NEW_LINE> def decode(self, v): <NEW_LINE> <INDENT> v = v & self.lmask <NEW_LINE> abs24 = (v << 8) + ((self.parent.imm6.value & 0x3F) << 2) <NEW_LINE> self.expr = ExprMem(ExprInt(abs24, 32), 32) <NEW_LINE> return True <NEW_LINE> <DEDENT> def enco...
Toshiba MeP-c4 abs24 immediate
62599057a17c0f6771d5d65c
class RenderArgs(UnityIntrospectionObject): <NEW_LINE> <INDENT> pass
An emulator class for interacting with the RenderArgs class.
6259905773bcbd0ca4bcb809
class UserRegister(Resource): <NEW_LINE> <INDENT> parser = reqparse.RequestParser() <NEW_LINE> parser.add_argument( 'username', type=str, required=True, help="This field cannot be blank." ) <NEW_LINE> parser.add_argument( 'password', type=str, required=True, help="This field cannot be blank." ) <NEW_LINE> def post(self...
This resource allows user to register by sending a POST request with their username and password.
62599057be8e80087fbc05fa
class TestONONOSConfig(object): <NEW_LINE> <INDENT> def __init__(self, label, address, port, intent_ip=None, intent_port=None, intent_url=None): <NEW_LINE> <INDENT> self.label = label <NEW_LINE> self.address = address <NEW_LINE> self.port = port <NEW_LINE> self.cid = self.label <NEW_LINE> self.intent_ip = intent_ip <NE...
TestON ONOS specific configurations
625990573cc13d1c6d466cb6
class MacroDef: <NEW_LINE> <INDENT> def __init__(self, name, elems=None, eqs=None): <NEW_LINE> <INDENT> self.all_elems = dict() <NEW_LINE> self.all_eqs = dict() <NEW_LINE> self.macname = name <NEW_LINE> if elems: <NEW_LINE> <INDENT> self.add(elems) <NEW_LINE> <DEDENT> if eqs: <NEW_LINE> <INDENT> self.add_eqs(eqs) <NEW_...
Macros are subgraphs, expanded when instantiated.
625990577047854f46340936
class OntologyID(Base): <NEW_LINE> <INDENT> def __init__(self, text): <NEW_LINE> <INDENT> assert text.count(":") <= 1, "ID {} is misformatted!".format(text) <NEW_LINE> assert "|" not in text <NEW_LINE> if ":" in text: <NEW_LINE> <INDENT> self.uid_type, self.uid = text.split(":") <NEW_LINE> if self.uid_type == "MESH": <...
A single identifier from an existing biomedical ontology. Training PMID 7265370 has the chemical D014527+D012492, but since it doesn't show up in any gold standard relation we will ignore it.
6259905710dbd63aa1c72135
class StandardPassword(Password): <NEW_LINE> <INDENT> host = "host" <NEW_LINE> username = "username"
A subclass of `Password` in which ``host`` is set to ``"host"`` and ``username`` is set to ``"username"``
62599057d6c5a102081e3697
class RequestRenderable(object): <NEW_LINE> <INDENT> implements(IRenderable) <NEW_LINE> def __init__(self, renderable, request): <NEW_LINE> <INDENT> self.renderable = renderable <NEW_LINE> self.request = request <NEW_LINE> <DEDENT> def render(self, request=None): <NEW_LINE> <INDENT> request = request <NEW_LINE> if requ...
Provides a renderable that doesn't require a request.
62599057460517430c432b0d
class PatternAnalyzer(BaseSentimentAnalyzer): <NEW_LINE> <INDENT> kind = CONTINUOUS <NEW_LINE> RETURN_TYPE = namedtuple('Sentiment', ['polarity', 'subjectivity']) <NEW_LINE> def analyze(self, text, keep_assessments=False): <NEW_LINE> <INDENT> if keep_assessments: <NEW_LINE> <INDENT> Sentiment = namedtuple('Sentiment', ...
Sentiment analyzer that uses the same implementation as the pattern library. Returns results as a named tuple of the form: ``Sentiment(polarity, subjectivity, [assessments])`` where [assessments] is a list of the assessed tokens and their polarity and subjectivity scores
6259905707d97122c4218222
class TestConfig(Configuration): <NEW_LINE> <INDENT> TESTING = True <NEW_LINE> DEBUG = True <NEW_LINE> SQLALCHEMY_DATABASE_URI = os.getenv("TEST_DATABASE_URI")
Testing instance configuration class
6259905782261d6c52730986
@inherit_doc <NEW_LINE> class PredictionModel(Model, _PredictorParams): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> @since("3.0.0") <NEW_LINE> def setFeaturesCol(self, value): <NEW_LINE> <INDENT> return self._set(featuresCol=value) <NEW_LINE> <DEDENT> @since("3.0.0") <NEW_LINE> def setPredictionCol(self, val...
Model for prediction tasks (regression and classification).
62599057a8ecb0332587278f
class StationBasin(Garea, GGRS87Mixin, BasinMixin): <NEW_LINE> <INDENT> river_basin = models.ForeignKey(RiverBasin, on_delete=models.CASCADE) <NEW_LINE> station = models.OneToOneField(Station, on_delete=models.CASCADE)
A subbasin defined by a measuring station.
6259905763b5f9789fe866eb
class FailSubscriberTest(TestCase): <NEW_LINE> <INDENT> def assertFailSubscribe(self, j, m=''): <NEW_LINE> <INDENT> u = FauxUserInfo() <NEW_LINE> with self.assertRaises(CannotJoin) as e: <NEW_LINE> <INDENT> j.subscribe(u, 'person@example.com', None) <NEW_LINE> <DEDENT> if m: <NEW_LINE> <INDENT> msg = str(e.exception) <...
Test the Subscribers that always prevent joining.
6259905799cbb53fe6832457
class JoinAPI(View, API): <NEW_LINE> <INDENT> def post(self, request): <NEW_LINE> <INDENT> if request.method == 'POST': <NEW_LINE> <INDENT> game_id = request.POST.get('game_id') <NEW_LINE> player_id = request.POST.get('player_id') <NEW_LINE> game = self._check_game_id_valid(game_id) <NEW_LINE> session = self._get_or_cr...
Class based viewed for /join endpoint
6259905776e4537e8c3f0b04
class Confyg(object): <NEW_LINE> <INDENT> __source__ = None <NEW_LINE> __config_store__ = None <NEW_LINE> __transformation__ = None <NEW_LINE> @classmethod <NEW_LINE> def load(cls): <NEW_LINE> <INDENT> cls.__config_store__ = cls.load_store() <NEW_LINE> for k, vk in confyg_attributes_values(cls): <NEW_LINE> <INDENT> v =...
The base configuration class implementing the common functionality. Subclassing this class should make it easy to add new configuration sources.
62599057ac7a0e7691f73a59
class ModifyPublicIPSwitchStatusRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.FireWallPublicIP = None <NEW_LINE> self.Status = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.FireWallPublicIP = params.get("FireWallPublicIP") <NEW_LINE> self.St...
ModifyPublicIPSwitchStatus请求参数结构体
62599057e76e3b2f99fd9f77
class ExplicitEuler(PricingWithPDEs): <NEW_LINE> <INDENT> def __init__(self, dx, dt, xmin, xmax, tmax, r, sigma, payoff, functionLeft, functionRight): <NEW_LINE> <INDENT> self.sigma = sigma <NEW_LINE> self.r = r <NEW_LINE> super().__init__(dx, dt, xmin, xmax, tmax, payoff, functionLeft, functionRight) <NEW_LINE> self._...
This class is devoted to numerically solve the PDE U_t(x,t) - 1/2 x^2 sigma^2(x,t)U_{xx}(x,t) - r U_{x}(x,t) + r U(x,t) = 0, via Explicit Euler. This is the PDE corresponding to a local volatility model. Boundary conditions given as attributes of the class are applied at both ends of the domain. An initial con...
6259905721bff66bcd7241dd
class RBNode(object): <NEW_LINE> <INDENT> def __init__(self,data): <NEW_LINE> <INDENT> self.red = False <NEW_LINE> self.parent = None <NEW_LINE> self.data = data <NEW_LINE> self.left = NIL <NEW_LINE> self.right = NIL
Class for implementing the nodes that the tree will use For self.color: red == False black == True If the node is a leaf it will either
625990574e4d562566373980
class AnchorLabeler(object): <NEW_LINE> <INDENT> def __init__(self, anchor, match_threshold=0.5, unmatched_threshold=0.5): <NEW_LINE> <INDENT> similarity_calc = keras_cv.ops.IouSimilarity() <NEW_LINE> matcher = argmax_matcher.ArgMaxMatcher( match_threshold, unmatched_threshold=unmatched_threshold, negatives_lower_than_...
Labeler for dense object detector.
625990577b25080760ed879b
class TestBooleanEnum(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_BooleanEnum(self): <NEW_LINE> <INDENT> pass
BooleanEnum unit test stubs
62599057507cdc57c63a631d
class ParseBatcher(ParseBase): <NEW_LINE> <INDENT> ENDPOINT_ROOT = '/'.join((API_ROOT, 'batch')) <NEW_LINE> def batch(self, methods): <NEW_LINE> <INDENT> methods = list(methods) <NEW_LINE> if not methods: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> queries, callbacks = list(zip(*[m(batch=True) for m in methods])) <N...
Batch together create, update or delete operations
625990578e71fb1e983bd042
class MLPDecoder(nn.Module): <NEW_LINE> <INDENT> def __init__(self, n_in_node, edge_types, msg_hid, msg_out, n_hid, do_prob=0., skip_first=False): <NEW_LINE> <INDENT> super(MLPDecoder, self).__init__() <NEW_LINE> self.msg_fc1 = nn.Linear(2 * n_in_node, msg_hid) <NEW_LINE> self.msg_fc2 = nn.Linear(msg_hid, msg_out) <NEW...
MLP decoder module.
62599057adb09d7d5dc0bae3
class TestLoadPluginModules: <NEW_LINE> <INDENT> def test_load_default_plugins(self): <NEW_LINE> <INDENT> default_plugin_qualnames = plugin.get_qualified_module_names( _repobee.ext.defaults ) <NEW_LINE> modules = plugin.load_plugin_modules( default_plugin_qualnames, allow_qualified=True ) <NEW_LINE> module_names = [mod...
Tests for load_plugin_modules.
6259905773bcbd0ca4bcb80b
class UserSharedItem(object): <NEW_LINE> <INDENT> swagger_types = { 'error_details': 'ErrorDetails', 'shared': 'str', 'user': 'UserInfo' } <NEW_LINE> attribute_map = { 'error_details': 'errorDetails', 'shared': 'shared', 'user': 'user' } <NEW_LINE> def __init__(self, _configuration=None, **kwargs): <NEW_LINE> <INDENT> ...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62599057e5267d203ee6ce68
class Installator(object): <NEW_LINE> <INDENT> def install(self, url, targetPath, key=None, ui=None): <NEW_LINE> <INDENT> if ui: <NEW_LINE> <INDENT> ui.progressText.append('Starting downloading files...') <NEW_LINE> <DEDENT> download = Download.Download(url, key, ui=ui) <NEW_LINE> download.download() <NEW_LINE> downloa...
Main class.
625990577047854f46340938
class UniqueAppendConstAction(UniqueAppendAction): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> kwargs['nargs'] = 0 <NEW_LINE> super().__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def _get_values(self, values): <NEW_LINE> <INDENT> return self.const
Append const value to a list and make sure there are no duplicates. .. code-block:: python :caption: Example usage parser = argparse.ArgumentParser() parser.add_argument( '-f', '--failed', const='failed', dest='filter', action=UniqueAppendConstAction, help='Show failed items.' ) ...
62599057d6c5a102081e3699
class VLANManager: <NEW_LINE> <INDENT> def __init__(self, zone: str): <NEW_LINE> <INDENT> ibmcloud_oc_vlan_ls_command_args = ["oc", "vlan", "ls", "--json", "--zone", zone] <NEW_LINE> ibmcloud_oc_vlan_ls_command_result = execute_ibmcloud_command( ibmcloud_oc_vlan_ls_command_args, capture_output=True ) <NEW_LINE> ibmclou...
Determines available public and private VLANs for a zone in IBM Cloud
625990573617ad0b5ee076c3
class Nettle(Package): <NEW_LINE> <INDENT> homepage = "http://www.example.com" <NEW_LINE> url = "http://ftp.gnu.org/gnu/nettle/nettle-2.7.1.tar.gz" <NEW_LINE> version('2.7', '2caa1bd667c35db71becb93c5d89737f') <NEW_LINE> depends_on('gmp') <NEW_LINE> def install(self, spec, prefix): <NEW_LINE> <INDENT> configure("-...
The Nettle package contains the low-level cryptographic library that is designed to fit easily in many contexts.
6259905730dc7b76659a0d3c
class IChargeData(Interface): <NEW_LINE> <INDENT> title = Attribute( """unicode: the title of the charge""") <NEW_LINE> price = Attribute( """flaot: the price""")
An additional charge for an order
6259905791af0d3eaad3b3a3
class MoleProTest(unittest.TestCase): <NEW_LINE> <INDENT> def testLoadDzFromMoleProLog_F12(self): <NEW_LINE> <INDENT> log=MoleProLog(os.path.join(os.path.dirname(__file__),'test','ethylene_f12_dz.out')) <NEW_LINE> E0=log.loadCCSDEnergy() <NEW_LINE> self.assertAlmostEqual(E0 / constants.Na / constants.E_h, -78.474353559...
Contains unit tests for the chempy.io.gaussian module, used for reading and writing Molepro files.
62599057baa26c4b54d5081f
class PlainText(sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, font_name, font_size, text, font_color, pos) -> None: <NEW_LINE> <INDENT> self._font = font.Font(font_name, font_size) <NEW_LINE> self._text = text <NEW_LINE> self._font_color = font_color <NEW_LINE> self._pos = pos <NEW_LINE> super().__init__() <NE...
Handle on-screen texts as sprites.
625990573c8af77a43b689fd
class silk_meta_profiler: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.start_time = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def _should_meta_profile(self): <NEW_LINE> <INDENT> return SilkyConfig().SILKY_META <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <IND...
Used in the profiling of Silk itself.
62599057ac7a0e7691f73a5b
class ConvBN(nn.Module): <NEW_LINE> <INDENT> def __init__(self, nIn, nOut, norm_layer, kernel_size, padding=0, stride=1): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.norm_layer = norm_layer <NEW_LINE> if norm_layer == 'none' or norm_layer == 'instance': <NEW_LINE> <INDENT> self.cb = nn.Sequential(nn.Conv2d(n...
This class defines the convolution layer with batch normalization
62599057b57a9660fecd2ff6
class Solution: <NEW_LINE> <INDENT> def removeElement(self, A, elem): <NEW_LINE> <INDENT> cur = 0 <NEW_LINE> for i in A: <NEW_LINE> <INDENT> if i != elem: <NEW_LINE> <INDENT> A[cur] = i <NEW_LINE> cur += 1 <NEW_LINE> <DEDENT> <DEDENT> return cur
@param A: A list of integers @param elem: An integer @return: The new length after remove
6259905794891a1f408ba1b3
class MessageType(Enum): <NEW_LINE> <INDENT> GENERIC = 1 <NEW_LINE> ERROR = 2 <NEW_LINE> DEBUG = 3
Enum for message logging
62599057b5575c28eb713789
class TransformedBbox(BboxBase): <NEW_LINE> <INDENT> def __init__(self, bbox, transform): <NEW_LINE> <INDENT> assert bbox.is_bbox <NEW_LINE> assert isinstance(transform, Transform) <NEW_LINE> assert transform.input_dims == 2 <NEW_LINE> assert transform.output_dims == 2 <NEW_LINE> BboxBase.__init__(self) <NEW_LINE> self...
A :class:`Bbox` that is automatically transformed by a given transform. When either the child bounding box or transform changes, the bounds of this bbox will update accordingly.
62599057379a373c97d9a59f
@attr.s <NEW_LINE> class QuantifiedGraph(Graph): <NEW_LINE> <INDENT> quantifiers: List[Quantifier] = attr.ib(factory=list)
A graph which is quantified over as in predicate logic :attribute universal_quantification_variables: variables over which the whole graph, as a statement, is universally quantified. For a concrete range of quantification, the QuantifiedGraph is a cartesian product of loops over the quantification variables. Howe...
625990571f037a2d8b9e5329
class LookupChannel(object): <NEW_LINE> <INDENT> model = None <NEW_LINE> plugin_options = {} <NEW_LINE> min_length = 1 <NEW_LINE> def get_query(self, object_id , q, request): <NEW_LINE> <INDENT> kwargs = { "%s__icontains" % self.search_field : q } <NEW_LINE> if object_id: <NEW_LINE> <INDENT> kwargs = {'pk':object_id} <...
Subclass this, setting model and overiding the methods below to taste
62599057be383301e0254d4a
class InternalCollector(Collector): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.buf = [] <NEW_LINE> <DEDENT> def collect(self, a: Any): <NEW_LINE> <INDENT> self.buf.append((2, a)) <NEW_LINE> <DEDENT> def clear(self): <NEW_LINE> <INDENT> self.buf.clear()
Internal implementation of the Collector. It uses a buffer list to store data to be emitted. There will be a header flag for each data type. 0 means it is a proc time timer registering request, while 1 means it is an event time timer and 2 means it is a normal data. When registering a timer, it must take along with the...
62599057379a373c97d9a5a0
class Entity(object): <NEW_LINE> <INDENT> def __init__(self, shape, speed): <NEW_LINE> <INDENT> self._shape = shape <NEW_LINE> self.setSpeed(speed) <NEW_LINE> self._last_direction = "" <NEW_LINE> <DEDENT> def move(self, direction): <NEW_LINE> <INDENT> self._last_direction = direction <NEW_LINE> self._shape.move(directi...
An entity in the simulation.
62599057d486a94d0ba2d543
class NodeMan(object): <NEW_LINE> <INDENT> def __init__(self, grid_obj): <NEW_LINE> <INDENT> if grid_obj.grid is None: <NEW_LINE> <INDENT> raise Exception('Grid object is not initialized!') <NEW_LINE> <DEDENT> self.grid = grid_obj <NEW_LINE> self.nodevals = {} <NEW_LINE> self.metadata = {} <NEW_LINE> self.index = -1 <N...
manage one or more node value sets for a given :class:`crtomo.grid.crt_grid` object
62599057e5267d203ee6ce6a
class HacsOptionsFlowHandler(config_entries.OptionsFlow): <NEW_LINE> <INDENT> def __init__(self, config_entry): <NEW_LINE> <INDENT> self.config_entry = config_entry <NEW_LINE> <DEDENT> async def async_step_init(self, user_input=None): <NEW_LINE> <INDENT> return await self.async_step_user() <NEW_LINE> <DEDENT> async def...
HACS config flow options handler.
6259905715baa7234946350e
class AMQPObject(object): <NEW_LINE> <INDENT> NAME = 'AMQPObject' <NEW_LINE> INDEX = None <NEW_LINE> def __repr__(self): <NEW_LINE> <INDENT> items = list() <NEW_LINE> for key, value in self.__dict__.items(): <NEW_LINE> <INDENT> if getattr(self.__class__, key, None) != value: <NEW_LINE> <INDENT> items.append('%s=%s' % (...
Base object that is extended by AMQP low level frames and AMQP classes and methods.
62599057be8e80087fbc05fe
class tcMensagemRetorno (pyxb.binding.basis.complexTypeDefinition): <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, 'tcMensagemRetorno') <NEW_L...
Complex type {http://www.betha.com.br/e-nota-contribuinte-ws}tcMensagemRetorno with content type ELEMENT_ONLY
625990577cff6e4e811b6fbe
class NoModuleNameError(Error): <NEW_LINE> <INDENT> def __init__(self, moduleName): <NEW_LINE> <INDENT> Error.__init__(self, 'No module name: %r' % (moduleName,)) <NEW_LINE> self.moduleName = moduleName
Raised when no module name matches
6259905763d6d428bbee3d45
class AssociationControl(object): <NEW_LINE> <INDENT> changeAP = False <NEW_LINE> def __init__(self, intf, ap_intf, ac): <NEW_LINE> <INDENT> if ac in dir(self): <NEW_LINE> <INDENT> self.__getattribute__(ac)(intf, ap_intf) <NEW_LINE> <DEDENT> <DEDENT> def llf(self, intf, ap_intf): <NEW_LINE> <INDENT> apref = intf.associ...
Mechanisms that optimize the use of the APs
625990578e71fb1e983bd045
class RectangularArenaTwoByOne(RectangularArena): <NEW_LINE> <INDENT> def __init__(self, x_range: range, y_range: range, z: int, dist_type: str) -> None: <NEW_LINE> <INDENT> super().__init__([ArenaExtent(Vector3D(x, y, z)) for x in x_range for y in y_range], dist_type=dist_type)
Define arenas that vary in size for each combination of extents in the specified X range and Y range, where the X dimension is always twices as large as the Y dimension.
6259905707f4c71912bb09b6
class ClasseFonction(Fonction): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def init_types(cls): <NEW_LINE> <INDENT> cls.ajouter_types(cls.niveau_principal, "Personnage") <NEW_LINE> cls.ajouter_types(cls.niveau_secondaire, "Personnage", "str") <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def niveau_principal(personnage...
Retourne le niveau d'un personnage.
6259905763b5f9789fe866ef
@six.add_metaclass(abc.ABCMeta) <NEW_LINE> class Service(service.Service): <NEW_LINE> <INDENT> def __init__(self, threads=None): <NEW_LINE> <INDENT> threads = threads or 1000 <NEW_LINE> super(Service, self).__init__(threads) <NEW_LINE> self._host = CONF.host <NEW_LINE> self._service_config = CONF['service:%s' % self.se...
Service class to be shared among the diverse service inside of Designate.
62599057097d151d1a2c25e7
class Cell: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.northwest = None <NEW_LINE> self.north = None <NEW_LINE> self.northeast = None <NEW_LINE> self.east = None <NEW_LINE> self.southeast = None <NEW_LINE> self.south = None <NEW_LINE> self.southwest = None <NEW_LINE> self.west = None <NEW_LINE> <D...
A generic Hall of Mirrors cell.
6259905799cbb53fe683245b
class DelimiterToken(SimpleTokenClass, Enum): <NEW_LINE> <INDENT> QUOTE = '"' <NEW_LINE> COLON = ":" <NEW_LINE> COMMA = "," <NEW_LINE> AT = "@" <NEW_LINE> EQUALS = "=" <NEW_LINE> EXCLAMATION_MARK = "!" <NEW_LINE> RANGE = ".." <NEW_LINE> SEMICOLON = ";" <NEW_LINE> NUMBER_SIGN = "#" <NEW_LINE> OPEN_PARENTHESES = "(" <NEW...
Contains the type and value
62599057009cb60464d02ab1
class Templater(L.NodeTransformer): <NEW_LINE> <INDENT> def __init__(self, subst): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.name_subst = {} <NEW_LINE> self.ident_subst = {} <NEW_LINE> self.code_subst = {} <NEW_LINE> for k, v in subst.items(): <NEW_LINE> <INDENT> if k.startswith('<c>'): <NEW_LINE> <INDENT>...
Transformer for instantiating placeholders with different names or arbitrary code. Analogous to iast.python.python34.Templater. The templater takes in a mapping whose keys are strings. The following kinds of entries are recognized: IDENT -> EXPR Replace Name nodes having IDENT as their id with an arbi...
6259905755399d3f05627a9b
class SimpleSCardAppEventObserver: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.selectedcard = None <NEW_LINE> self.selectedreader = None <NEW_LINE> <DEDENT> def OnActivateCard(self, card): <NEW_LINE> <INDENT> self.selectedcard = card <NEW_LINE> <DEDENT> def OnActivateReader(self, reader): <NEW_LINE...
This interface defines the event handlers called by the SimpleSCardApp.
6259905721a7993f00c674e9
class UnknownLocation(Location): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__(name='Unknown Location', entitytype=UNKNOWN_LOCATION) <NEW_LINE> <DEDENT> def visit(self): <NEW_LINE> <INDENT> assert False, "Should never be able to visit() the (conceptual, abstract) UnknownLocation" <NEW_LIN...
Holder for entities that we know about, but don't (yet) know where they are.
62599057b57a9660fecd2ff7
class DefaultNodeDoesNotExistError(NodeDoesNotExistError): <NEW_LINE> <INDENT> pass
Missing default node for currency.
625990572ae34c7f260ac663
class IImportStepDirective(Interface): <NEW_LINE> <INDENT> name = zope.schema.TextLine( title=u'Name', description=u'', required=True) <NEW_LINE> title = MessageID( title=u'Title', description=u'', required=True) <NEW_LINE> description = MessageID( title=u'Description', description=u'', required=True) <NEW_LINE> handle...
Register import steps with the global registry.
6259905707f4c71912bb09b7
class Parser(): <NEW_LINE> <INDENT> def __init__(self, raw_string): <NEW_LINE> <INDENT> self.raw_string = raw_string <NEW_LINE> <DEDENT> def format_lrs(self, legacy_format=False): <NEW_LINE> <INDENT> equilibria = [] <NEW_LINE> from sage.misc.sage_eval import sage_eval <NEW_LINE> from itertools import groupby, dropwhile...
A class for parsing the outputs of different algorithms called in other software packages. Two parsers are included, one for the ``'lrs'`` algorithm and another for the ``'LCP'`` algorithm.
62599057cb5e8a47e493cc45
class BooleanArrayIndexer(Indexer): <NEW_LINE> <INDENT> def __init__(self, context, builder, idxty, idxary): <NEW_LINE> <INDENT> self.context = context <NEW_LINE> self.builder = builder <NEW_LINE> self.idxty = idxty <NEW_LINE> self.idxary = idxary <NEW_LINE> assert idxty.ndim == 1 <NEW_LINE> self.ll_intp = self.context...
Compute indices from an array of boolean predicates.
6259905710dbd63aa1c72138
class Output: <NEW_LINE> <INDENT> plot = FileField(label="QC multiplot") <NEW_LINE> summary = FileField(label="QC summary") <NEW_LINE> qorts_data = FileField(label="QoRTs report data")
Output fields.
625990578a43f66fc4bf370b
class MalformattedLocationKeyError(BaseException): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return(u"Malformatted location key: the location key must be an integer number and must be " u"entered as such.")
The location key is malformatted. This is raised when a primary (non-POI) location key is entered that does not fit the formal specifications.
62599057462c4b4f79dbcf82
class Pipelines(cli_base.Group): <NEW_LINE> <INDENT> commands = [ (_ListPipeline, "actions") ] <NEW_LINE> def setup(self): <NEW_LINE> <INDENT> parser = self._parser.add_parser( "pipeline", help="Operations related to pipeline management.") <NEW_LINE> actions = parser.add_subparsers() <NEW_LINE> self._register_parser("a...
Group for all the available pipelines actions.
62599057d6c5a102081e369d
class EventViewer(urwid.WidgetWrap): <NEW_LINE> <INDENT> def __init__(self, conf, collection): <NEW_LINE> <INDENT> self.conf = conf <NEW_LINE> self.collection = collection <NEW_LINE> pile = CPile([]) <NEW_LINE> urwid.WidgetWrap.__init__(self, pile)
Base Class for EventEditor and EventDisplay
62599057460517430c432b10
class ActivateUserForm1(forms.Form): <NEW_LINE> <INDENT> username = forms.CharField(max_length=30, label=_("Username"), required=True) <NEW_LINE> new_password1 = forms.CharField(label=_("New password"), widget=forms.PasswordInput) <NEW_LINE> new_password2 = forms.CharField( label=_("New password confirmation"), widget=...
Form used by a user to activate his/her account.
62599057d99f1b3c44d06c1e
class TwoLayerNet(object): <NEW_LINE> <INDENT> def __init__(self, input_dim=3*32*32, hidden_dim=100, num_classes=10, weight_scale=1e-3, reg=0.0): <NEW_LINE> <INDENT> self.params = {} <NEW_LINE> self.reg = reg <NEW_LINE> self.params['W1'] = weight_scale * np.random.randn(input_dim, hidden_dim) <NEW_LINE> self.params['b1...
A two-layer fully-connected neural network with ReLU nonlinearity and softmax loss that uses a modular layer design. We assume an input dimension of D, a hidden dimension of H, and perform classification over C classes. The architecure should be affine - relu - affine - softmax. Note that this class does not implemen...
625990578e7ae83300eea60b
class Perceptron: <NEW_LINE> <INDENT> def __init__(self, input_size, output_size): <NEW_LINE> <INDENT> self.h1 = tf.Variable(tf.truncated_normal([input_size, output_size])) <NEW_LINE> self.b1 = tf.Variable(tf.zeros([output_size])) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "h1%s b1%s" % (self.h1....
Single layer perceptron network
62599057baa26c4b54d50823
class FlipLR(Scale): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__([-1, 1], 1)
Flip left-right.
62599057f7d966606f749377
class Menu: <NEW_LINE> <INDENT> def prompt_valid(self, reverseorder=False, definedquestion='',allowlong=False): <NEW_LINE> <INDENT> if definedquestion: <NEW_LINE> <INDENT> self.question = definedquestion <NEW_LINE> <DEDENT> options = '\n '.join("{!s}: {!s}".format(key,val) for (key,val) in sorted(self.va...
Any command line menus that are used to ask the user for input
6259905763b5f9789fe866f1
class rpmvalidation(module_framework.AvocadoTest): <NEW_LINE> <INDENT> fhs_base_paths_workaound = [ '/var/kerberos', '/var/db' ] <NEW_LINE> fhs_base_paths = [ '/bin', '/boot', '/dev', '/etc', '/home', '/lib', '/lib64', '/media', '/mnt', '/opt', '/proc', '/root', '/run', '/sbin', '/sys', '/srv', '/tmp', '/usr/bin', '/us...
Provide a list of acceptable file paths based on http://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html :avocado: enable
625990574e4d562566373985
class edi_company_importation(orm.Model): <NEW_LINE> <INDENT> _name = 'edi.company.importation' <NEW_LINE> _description = 'EDI Company importation' <NEW_LINE> _columns = { 'name': fields.char('Importation type', size=20, required=True), 'code': fields.char('Code', size=10), 'object': fields.char('Object', size=64, requ...
This class elements are populated with extra modules: account_trip_edi_c*
62599057baa26c4b54d50822
class Profile(models.Model): <NEW_LINE> <INDENT> USER_CLIENT = 0 <NEW_LINE> USER_ADMIN = 1 <NEW_LINE> USER_MR = 0 <NEW_LINE> USER_MS = 1 <NEW_LINE> USER_MRS = 2 <NEW_LINE> USER_MISS = 3 <NEW_LINE> USER_DR = 4 <NEW_LINE> USER_TYPES = ( (USER_CLIENT, _('Client')), (USER_ADMIN, _('Admin')), ) <NEW_LINE> USER_TITLES = ( (U...
User profile model - main user entry object
62599057596a89723612906f
class LiquidNode(Node): <NEW_LINE> <INDENT> __slots__ = ("tok", "block") <NEW_LINE> def __init__(self, tok: Token, block: BlockNode): <NEW_LINE> <INDENT> self.tok = tok <NEW_LINE> self.block = block <NEW_LINE> <DEDENT> def __str__(self) -> str: <NEW_LINE> <INDENT> return str(self.block) <NEW_LINE> <DEDENT> def __repr__...
Parse tree node for the built-in "liquid" tag.
625990573c8af77a43b689ff
class Convocacao(models.Model): <NEW_LINE> <INDENT> envioemail = models.NullBooleanField( u'Email', ) <NEW_LINE> presente = models.NullBooleanField( u'Presente', ) <NEW_LINE> anotacao = models.TextField( u'Anotação', blank=True, null=True ) <NEW_LINE> reuniao = models.ForeignKey( 'Reuniao', models.DO_NOTHING, blank=Fal...
Classe de uso do sistema para a guarda dos alunos convocados às reuniões
6259905745492302aabfda56
class Personne(Fact): <NEW_LINE> <INDENT> pass
Info about the patient
625990577b25080760ed879e
class ElpyRPCServer(JSONRPCServer): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(ElpyRPCServer, self).__init__() <NEW_LINE> for cls in [RopeBackend, JediBackend, NativeBackend]: <NEW_LINE> <INDENT> backend = cls() <NEW_LINE> if backend is not None: <NEW_LINE> <INDENT> self.backend = backend <NEW_LI...
The RPC server for elpy. See the rpc_* methods for exported method documentation.
6259905723e79379d538da7a
class TopicDistVectorizer(IdComposer): <NEW_LINE> <INDENT> def __init__(self, corpus, models=None): <NEW_LINE> <INDENT> self.corpus = resolveIds(corpus) <NEW_LINE> self.models = '_'.join(str(m) for m in models) if models else None <NEW_LINE> IdComposer.__init__(self) <NEW_LINE> self.__modelTopicOrder = {} <NEW_LINE> se...
Vectorizes texts by either concatenating topic distributions for the text from several predefined topic models, or using a models passed at vectorization time together with the text.
6259905724f1403a9268638e
class Record(TimeModel): <NEW_LINE> <INDENT> room = models.ForeignKey(Room, verbose_name=_('Room')) <NEW_LINE> period = models.ForeignKey(Period, verbose_name=_('Period')) <NEW_LINE> tenant = models.ForeignKey(Tenant, blank=True, null=True, verbose_name=_('Tenant')) <NEW_LINE> electricity = models.FloatField(default=0,...
Money记录(账单记录)
62599057b5575c28eb71378b
class X_Cosmo(FlatLambdaCDM): <NEW_LINE> <INDENT> def __init__(self, H0=70, Om0=0.3): <NEW_LINE> <INDENT> FlatLambdaCDM.__init__(self,H0,Om0) <NEW_LINE> <DEDENT> def physical_distance(self,z): <NEW_LINE> <INDENT> from astropy import units as u <NEW_LINE> from astropy import constants as const <NEW_LINE> if not isiterab...
A class for extending the astropy Class -- Deprecated..
62599057adb09d7d5dc0bae9
class VnetInfo(ProxyOnlyResource): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, 'cert_thumbprint': {'readonly': True}, 'routes': {'readonly': True}, 'resync_required': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type':...
Virtual Network information contract. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Resource Id. :vartype id: str :ivar name: Resource Name. :vartype name: str :param kind: Kind of resource. :type kind: str :ivar type: Resource type. :vartype type: str :param vnet_r...
625990571f037a2d8b9e532b
class DNS_Ops(object): <NEW_LINE> <INDENT> def __init__ (self, host_name): <NEW_LINE> <INDENT> self.ip_addresses = set() <NEW_LINE> self.name_servers = [] <NEW_LINE> self.host_name = host_name <NEW_LINE> self.dns_records = {} <NEW_LINE> <DEDENT> def get_Name_Servers(self): <NEW_LINE> <INDENT> if self.host_name.startswi...
DNS Operations
62599057fff4ab517ebceda3
class GetInputSet(InputSet): <NEW_LINE> <INDENT> def set_AccessToken(self, value): <NEW_LINE> <INDENT> super(GetInputSet, self)._set_input('AccessToken', value) <NEW_LINE> <DEDENT> def set_ClientID(self, value): <NEW_LINE> <INDENT> super(GetInputSet, self)._set_input('ClientID', value) <NEW_LINE> <DEDENT> def set_Clien...
An InputSet with methods appropriate for specifying the inputs to the Get Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
6259905732920d7e50bc75c6
class About(SerializableBase): <NEW_LINE> <INDENT> _props_req = [ 'version', ] <NEW_LINE> _props = [ 'extensions', ] <NEW_LINE> _props.extend(_props_req) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self._version = None <NEW_LINE> self._extensions = None <NEW_LINE> super().__init__(*args, **kwarg...
Stores info about this installation of `tincan`. :param version: The versions supported. This attribute is required. :type version: list of unicode :param extensions: Custom user data. This attribute is optional. :type extensions: :class:`tincan.Extensions`
62599057e64d504609df9e8f
class HelpItem(models.Model): <NEW_LINE> <INDENT> help = models.ForeignKey(Help) <NEW_LINE> title = models.CharField(_('Title'), max_length=200) <NEW_LINE> link = models.CharField(_('Link'), max_length=200, help_text=_('The Link should be relative, e.g. /admin/blog/.')) <NEW_LINE> body = models.TextField(_('Body')) <NE...
Help Entry Item.
6259905710dbd63aa1c72139
class Qualia(object): <NEW_LINE> <INDENT> def __init__(self, glframe, formulas=None): <NEW_LINE> <INDENT> self.glframe = glframe <NEW_LINE> self.formulas = formulas <NEW_LINE> if formulas is None: <NEW_LINE> <INDENT> verb = self.glframe.glverbclass.ID.split('-')[0] <NEW_LINE> self.formulas = [Pred(verb, [Var('e')])] <N...
Represents the verbframe's qualia structure, which is a list of formulas (actually, it is a list of predicates and oppositions, the latter technically not being a formula).
62599057435de62698e9d383
class Status: <NEW_LINE> <INDENT> def __init__(self, parent: Union["Status", None] = None, children: List["Status"] = []): <NEW_LINE> <INDENT> self.parent = None <NEW_LINE> self.children = [] <NEW_LINE> if parent is not None: <NEW_LINE> <INDENT> self.set_parent(parent) <NEW_LINE> <DEDENT> if children: <NEW_LINE> <INDEN...
多层次状态管理类
6259905738b623060ffaa30e
class CellOutOfRange(Exception): <NEW_LINE> <INDENT> pass
Dummy Exception
6259905763d6d428bbee3d47
class Event: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> ret = str(self.__class__) <NEW_LINE> return ret[ret.find(".") + 1:] <NEW_LINE> <DEDENT> def enqueue(self): <NEW_LINE> <INDENT> exported.myengine._enqueue(self) <NEW_LINE> <DEDENT> def...
This is the basic Event class. It has an enqueue method which enqueues the event in the event queue (in the engine module). It also has an execute method which is executed when the event is dequeued and handled. Override the 'execute' function for your functionality to get executed.
62599057d99f1b3c44d06c20
class NPBoolean(types.TypeDecorator, types.SchemaType): <NEW_LINE> <INDENT> impl = types.Boolean <NEW_LINE> def __init__(self, **kw): <NEW_LINE> <INDENT> types.TypeDecorator.__init__(self, **kw) <NEW_LINE> types.SchemaType.__init__(self, **kw) <NEW_LINE> <DEDENT> def load_dialect_impl(self, dialect): <NEW_LINE> <INDENT...
An almost-normal boolean type with a special case for MySQL.
625990573617ad0b5ee076c9
class Mockimportlib(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def BgpRouteStub(self, *args): <NEW_LINE> <INDENT> args = args <NEW_LINE> return self <NEW_LINE> <DEDENT> def bgprouteadd(self, *args, **kwargs): <NEW_LINE> <INDENT> args = args <NEW_LINE> kwargs = kwargs <...
DOC
625990578e7ae83300eea60d
class MroCtxPds3LabelNaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, RadialDistortion, Driver): <NEW_LINE> <INDENT> @property <NEW_LINE> def instrument_id(self): <NEW_LINE> <INDENT> id_lookup = { 'CONTEXT CAMERA':'MRO_CTX', 'CTX':'MRO_CTX' } <NEW_LINE> return id_lookup[super().instrument_id] <NEW_LINE> <DEDENT> @pro...
Driver for reading CTX PDS3 labels. Requires a Spice mixin to acquire addtional ephemeris and instrument data located exclusively in spice kernels.
62599057a8ecb03325872797
class HighWaterMarkChangeDetectionPolicy(DataChangeDetectionPolicy): <NEW_LINE> <INDENT> _validation = { 'odata_type': {'required': True}, 'high_water_mark_column_name': {'required': True}, } <NEW_LINE> _attribute_map = { 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, 'high_water_mark_column_name': {'key': 'hig...
Defines a data change detection policy that captures changes based on the value of a high water mark column. All required parameters must be populated in order to send to Azure. :ivar odata_type: Required. Identifies the concrete type of the data change detection policy.Constant filled by server. :vartype odata_type...
625990574428ac0f6e659abb
class DashboardView(BrowserView): <NEW_LINE> <INDENT> @memoize <NEW_LINE> def can_edit(self): <NEW_LINE> <INDENT> return bool(getSecurityManager().checkPermission('Portlets: Manage own portlets', self.context)) <NEW_LINE> <DEDENT> @memoize <NEW_LINE> def empty(self): <NEW_LINE> <INDENT> dashboards = [getUtility(IPortle...
Power the dashboard
6259905745492302aabfda57
class OUNoise: <NEW_LINE> <INDENT> def __init__(self, size, config): <NEW_LINE> <INDENT> self.config = config <NEW_LINE> self.mu = self.config.mu * np.ones(size) <NEW_LINE> self.theta = self.config.theta <NEW_LINE> self.sigma = self.config.sigma <NEW_LINE> self.seed = random.seed(self.config.random_seed) <NEW_LINE> sel...
Ornstein-Uhlenbeck process.
625990574e4d562566373987
@prettify_class <NEW_LINE> class WorkerInfo(object): <NEW_LINE> <INDENT> __slots__ = ("name", "input", "output", "process", "local", "pending_results") <NEW_LINE> def __init__(self, name, input, output, process=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.input = input <NEW_LINE> self.output = output <NE...
Object bundling together all the information concerning a single worker that is relevant for a dispatcher.
6259905721bff66bcd7241e5
class Student: <NEW_LINE> <INDENT> def __init__(self, cwid, name, major, course_grade): <NEW_LINE> <INDENT> self.cwid = cwid <NEW_LINE> self.name = name <NEW_LINE> self.major = major <NEW_LINE> self.course_grade = course_grade
store informaton of students
62599057009cb60464d02ab5
class FileFullEaInformation(Structure): <NEW_LINE> <INDENT> INFO_TYPE = InfoType.SMB2_0_INFO_FILE <NEW_LINE> INFO_CLASS = FileInformationClass.FILE_FULL_EA_INFORMATION <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.fields = OrderedDict([ ('next_entry_offset', IntField(size=4)), ('flags', IntField(size=1)), ('e...
[MS-FSCC] 2.4.15 FileFullEaInformation https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/0eb94f48-6aac-41df-a878-79f4dcfd8989
62599057dd821e528d6da440
class SessionNotCreatedException(WebDriverException): <NEW_LINE> <INDENT> pass
A new session could not be created.
62599057ac7a0e7691f73a61