code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class BasisSelectionDefinition(IUserDefinition): <NEW_LINE> <INDENT> type = "basis_selection" <NEW_LINE> _keywords = ['molecule','origin','x_axis','y_axis'] | The user definable object used for storing basis selection. | 6259906f097d151d1a2c28f0 |
class ValidateCodeForm(forms.Form): <NEW_LINE> <INDENT> promo_code = forms.CharField(max_length=10, required=True) | Form to validate a coupon code, this form is not related with any object | 6259906f460517430c432c96 |
class KytosLinkCreationError(Exception): <NEW_LINE> <INDENT> pass | Exception thrown when the link has an empty endpoint. | 6259906f4a966d76dd5f0769 |
class Employee: <NEW_LINE> <INDENT> num_of_emps = 0 <NEW_LINE> raise_amt = 1.04 <NEW_LINE> def __init__(self, first, last, pay): <NEW_LINE> <INDENT> self.first = first <NEW_LINE> self.last = last <NEW_LINE> self.pay = pay <NEW_LINE> Employee.num_of_emps += 1 <NEW_LINE> <DEDENT> def fullname(self): <NEW_LINE> <INDENT> r... | description of class | 6259906f7047854f46340c36 |
class Depthcharge(Boot): <NEW_LINE> <INDENT> def __init__(self, parent, parameters): <NEW_LINE> <INDENT> super().__init__(parent) <NEW_LINE> self.action = DepthchargeAction() <NEW_LINE> self.action.section = self.action_type <NEW_LINE> self.action.job = self.job <NEW_LINE> parent.add_action(self.action, parameters) <NE... | Depthcharge is a payload used by Coreboot in recent ChromeOS machines.
This boot strategy works with the "netboot" build variant of Depthcharge,
which just downloads files via TFTP from hardcoded locations, with the IP
address of the server also hardcoded in the firmware image. One of the
downloaded files is a FIT imag... | 6259906fa05bb46b3848bd6c |
class MainHandler(BlogHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> self.redirect('/blog') | Redirects to the HomePage of the website | 6259906f2c8b7c6e89bd5066 |
class Translation(models.Model): <NEW_LINE> <INDENT> language = models.ForeignKey('Language') <NEW_LINE> original = models.ForeignKey('Entry') <NEW_LINE> translated = models.ForeignKey('Entry', related_name="translated") <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return u"Translation of %s into %s" % (self.o... | Link together two entries, where @translated is a translation of
@original in the language @language. | 6259906fbf627c535bcb2d4b |
class index(object): <NEW_LINE> <INDENT> def GET(self): <NEW_LINE> <INDENT> web.header('Content-Type', 'text/html; charset=utf-8', unique=True) <NEW_LINE> return "<a href='/dnspodlogin'>使用DNSPod登陆</a>" | 显示登陆链接 | 6259906f3d592f4c4edbc761 |
class DEMACrossoverSignal(BaseSignalGenerator): <NEW_LINE> <INDENT> def __init__(self, market, interval, ema_short, ema_long, strategy): <NEW_LINE> <INDENT> super().__init__(market, interval, strategy) <NEW_LINE> self.fma = ExponentialMovingAverage(self.market, interval, ema_short) <NEW_LINE> self.sma = ExponentialMovi... | "This signal generator is a copy of the DEMA strategy example used in gekko
This strategy is similar to the sma_crossover_signal except is is simpler in that it does not worry about caching candles
...it simply signals true when FMA > SMA and false whe SMA > FMA at an amount greater than the threshold | 6259906f7d43ff2487428052 |
class BuildMagicException(Exception): <NEW_LINE> <INDENT> msg = 'build-magic error' <NEW_LINE> def __init__(self, exception=None, message=''): <NEW_LINE> <INDENT> if exception: <NEW_LINE> <INDENT> super().__init__(f'{self.msg}: {str(exception)}') <NEW_LINE> <DEDENT> elif message: <NEW_LINE> <INDENT> super().__init__(f'... | build-magic base exception class. | 6259906f2ae34c7f260ac969 |
class _HapStatusCodes(object): <NEW_LINE> <INDENT> SUCCESS = 0 <NEW_LINE> INSUFFICIENT_PRIVILEGES = -70401 <NEW_LINE> UNABLE_TO_COMMUNICATE = -70402 <NEW_LINE> RESOURCE_BUSY = -70403 <NEW_LINE> CANT_WRITE_READ_ONLY = -70404 <NEW_LINE> CANT_READ_WRITE_ONLY = -70405 <NEW_LINE> NOTIFICATION_NOT_SUPPORTED = -70406 <NEW_LIN... | This data is taken from Table 5-12 HAP Satus Codes on page 80. | 6259906ff548e778e596ce0d |
@enum.unique <NEW_LINE> @functools.total_ordering <NEW_LINE> class VerdictClassification(enum.Enum): <NEW_LINE> <INDENT> Benign = "benign" <NEW_LINE> Indeterminate = "indeterminate" <NEW_LINE> Threat = "threat" <NEW_LINE> def __lt__(self, other): <NEW_LINE> <INDENT> members = list(self.__class__) <NEW_LINE> return memb... | An enumeration of classification markers for malware verdicts.
Note that the order of declaration is important: it provides
the appropriate ordering behavior when finding the minimum
and maximum classifications for a set of verdicts. | 6259906f92d797404e38979b |
class SricErrorBroadcast(Exception): <NEW_LINE> <INDENT> pass | Cannot listen on broadcast address | 6259906f16aa5153ce401d5b |
class CollectUser(pyblish.api.ContextPlugin): <NEW_LINE> <INDENT> order = pyblish.api.CollectorOrder <NEW_LINE> label = '获取当前用户' <NEW_LINE> def process(self, context): <NEW_LINE> <INDENT> assert isinstance(context, pyblish.api.Context) <NEW_LINE> name = cgtwq.ACCOUNT.select( cgtwq.get_account_id()).to_entry()['name'] <... | 获取当前登录的用户帐号. | 6259906f91f36d47f2231acf |
class ComponentEditMonoTest(ComponentEditTest): <NEW_LINE> <INDENT> def create_component(self): <NEW_LINE> <INDENT> return self.create_ts_mono() <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def remove_units(store): <NEW_LINE> <INDENT> store.parse(store.XMLskeleton.replace("\n", "").encode('utf-8')) <NEW_LINE> store.sav... | Test for error handling | 6259906fcc0a2c111447c711 |
class PortugalExt(Portugal): <NEW_LINE> <INDENT> def _populate(self, year): <NEW_LINE> <INDENT> super(PortugalExt, self)._populate(year) <NEW_LINE> e = easter(year) <NEW_LINE> self[e - rd(days=47)] = "Carnaval" <NEW_LINE> self[date(year, 12, 24)] = "Vespera de Natal" <NEW_LINE> self[date(year, 12, 26)] = "26 de Dezembr... | Adds extended days that most people have as a bonus from their companies:
- Carnival
- the day before and after xmas
- the day before the new year
- Lisbon's city holyday | 6259906f66673b3332c31c7f |
class Event(object): <NEW_LINE> <INDENT> def execute(self, state, *args): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def end(self, state, *args): <NEW_LINE> <INDENT> raise NotImplementedError | Interface for random events.
Events are functions that modify the state of the board when called, but do not cause state transitions. | 6259906f379a373c97d9a8a1 |
class AllowReadWriteTask(task.Task): <NEW_LINE> <INDENT> def execute(self, client, snap_name, *args, **kwargs): <NEW_LINE> <INDENT> LOG.debug('%s.execute', self.__class__.__name__) <NEW_LINE> client.modify_snapshot(snap_name, allow_rw=True) <NEW_LINE> <DEDENT> def revert(self, result, client, snap_name, *args, **kwargs... | Task to modify a Snapshot to allow ReadWrite on it. | 6259906f01c39578d7f14375 |
class UnNormalize(object): <NEW_LINE> <INDENT> def __init__(self, mean=(0.485, 0.456, 0.406), std=(0.229, 0.224, 0.225)): <NEW_LINE> <INDENT> self.mean = mean <NEW_LINE> self.std = std <NEW_LINE> <DEDENT> def __call__(self, tensor): <NEW_LINE> <INDENT> for t, m, s in zip(tensor, self.mean, self.std): <NEW_LINE> <INDENT... | Inverse normalize the image for visualize | 6259906fe76e3b2f99fda283 |
class SeatAccessPermissions(BaseAccessPermissions): <NEW_LINE> <INDENT> def can_retrieve(self, user): <NEW_LINE> <INDENT> return user.has_perm('openslides_votecollector.can_manage_votecollector') <NEW_LINE> <DEDENT> def get_serializer_class(self, user=None): <NEW_LINE> <INDENT> from .serializers import SeatSerializer <... | Access permissions container for Seat and SeatViewSet. | 6259906f63b5f9789fe869e4 |
class TransfiniteError(RuntimeError): <NEW_LINE> <INDENT> pass | Raised when an operation is attempted that may take an infinite number of
steps, such as comparing two infinite sets. | 6259906fadb09d7d5dc0bdec |
class ThiopeptideLayer(RegionLayer): <NEW_LINE> <INDENT> def __init__(self, record: RecordLayer, results: ThioResults, region_feature: Region) -> None: <NEW_LINE> <INDENT> RegionLayer.__init__(self, record, region_feature) <NEW_LINE> self.motifs = [] <NEW_LINE> for motif in results.motifs: <NEW_LINE> <INDENT> if motif.... | A wrapper of RegionLayer to allow for tracking the ThiopeptideMotifs | 6259906f1f037a2d8b9e54ab |
class Rectangle: <NEW_LINE> <INDENT> def __init__(self, width=0, height=0): <NEW_LINE> <INDENT> self.width = width <NEW_LINE> self.height = height <NEW_LINE> <DEDENT> @property <NEW_LINE> def width(self): <NEW_LINE> <INDENT> return self.__width <NEW_LINE> <DEDENT> @width.setter <NEW_LINE> def width(self, value): <NEW_L... | Class for rectangles
| 6259906fec188e330fdfa123 |
@DeviceStateMachine.state_class <NEW_LINE> class android_extracting(statemachine.State): <NEW_LINE> <INDENT> TIMEOUT = 600 <NEW_LINE> PERMANENT_FAILURE_COUNT = 10 <NEW_LINE> def on_android_rebooting(self, args): <NEW_LINE> <INDENT> self.machine.clear_counter(self.state_name) <NEW_LINE> self.machine.goto_state(android_r... | The second-stage script is extracting the Android artifacts onto the
sdcard. When this is complete, the script will send an event and go into
the 'android_rebooting' state. | 6259906f56b00c62f0fb414f |
class CorrectionFactorSetIterator(APIObject,IDisposable,IEnumerator): <NEW_LINE> <INDENT> def Dispose(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def MoveNext(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def next(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def ReleaseManagedResources(self,*... | An iterator to a correction factor set.
CorrectionFactorSetIterator() | 6259906f26068e7796d4e1bd |
class Atomindices(TopologyAttr): <NEW_LINE> <INDENT> attrname = 'indices' <NEW_LINE> singular = 'index' <NEW_LINE> target_classes = [Atom] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._guessed = False <NEW_LINE> <DEDENT> def set_atoms(self, ag, values): <NEW_LINE> <INDENT> raise AttributeError("Atom indices ... | Globally unique indices for each atom in the group.
If the group is an AtomGroup, then this gives the index for each atom in
the group. This is the unambiguous identifier for each atom in the
topology, and it is not alterable.
If the group is a ResidueGroup or SegmentGroup, then this gives the indices
of each atom re... | 6259906fb7558d5895464b73 |
class SkipTest(Exception): <NEW_LINE> <INDENT> def __init__(self, reason="Test skipped"): <NEW_LINE> <INDENT> super(SkipTest, self).__init__(reason) <NEW_LINE> self.reason = reason | This exception should be raised in order to interrupt the execution of the currently running test, marking
it as skipped | 6259906fa8370b77170f1c4a |
class Province(models.Model): <NEW_LINE> <INDENT> code = models.IntegerField(verbose_name="省代码", unique=True) <NEW_LINE> name = models.CharField(max_length=64, verbose_name="省名称", unique=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return "{} - {}".format(self.code, self.name) <NEW_LINE> <DEDENT> class Meta:... | 省份表 | 6259906f3d592f4c4edbc763 |
class COMListener: <NEW_LINE> <INDENT> def __init__(self, options): <NEW_LINE> <INDENT> self.options = options <NEW_LINE> self.listener_input = None <NEW_LINE> self.com_input = None <NEW_LINE> <DEDENT> def com_listener_main(self, address, listener_input, com_input): <NEW_LINE> <INDENT> self.listener_input = listener_in... | Checks a COM port to see if there is a robot available. If a robot is available, it
sends an "add" message to the communication level.
Args:
options (dict): The dictionary containing the program settings.
Attributes:
options (dict): The dictionary containing the program settings.
listener_input (Queue): ... | 6259906f2ae34c7f260ac96c |
class LoginView(FormView): <NEW_LINE> <INDENT> success_url = '/' <NEW_LINE> form_class = LoginForm <NEW_LINE> template_name = 'users/login.html' <NEW_LINE> redirect_field_name = REDIRECT_FIELD_NAME <NEW_LINE> @method_decorator(sensitive_post_parameters('password')) <NEW_LINE> @method_decorator(csrf_protect) <NEW_LINE> ... | Provides the ability to login as a user with a username and password | 6259906ff548e778e596ce0f |
class BoundedFloatTextAndSlider(widgets.widget_float._Float, widgets.Box): <NEW_LINE> <INDENT> def __init__(self, description="", **args): <NEW_LINE> <INDENT> text = widgets.BoundedFloatText(description=description,**args) <NEW_LINE> slider = widgets.FloatSlider(**args) <NEW_LINE> traitlets.link( (text, 'value'), (slid... | An input widget to pick a float, either by moving a slider or entering an explicit value | 6259906f91f36d47f2231ad0 |
class Feature(ClientObject): <NEW_LINE> <INDENT> def explain(self): <NEW_LINE> <INDENT> result = self.obj.explain() <NEW_LINE> if result.status != 0: <NEW_LINE> <INDENT> raise ClientError(result.status, result.text) <NEW_LINE> <DEDENT> return result.outArgs['explanation'] <NEW_LINE> <DEDENT> def clearParams(self): <NEW... | com.redhat.grid.config:Feature | 6259906f442bda511e95d999 |
class SpeechContext(object): <NEW_LINE> <INDENT> swagger_types = { 'phrases': 'list[str]' } <NEW_LINE> attribute_map = { 'phrases': 'phrases' } <NEW_LINE> def __init__(self, phrases=None): <NEW_LINE> <INDENT> self._phrases = None <NEW_LINE> self.discriminator = None <NEW_LINE> if phrases is not None: <NEW_LINE> <INDENT... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259906faad79263cf430038 |
class ParsingContext(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.type_stack = [] <NEW_LINE> self.id_stack = [] <NEW_LINE> self.args = {'context': self} <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> zipped = zip(self.type_stack, self.id_stack) <NEW_LINE> strs = ["%s=%s" % (t, ... | Context information for parsing.
This object is immutable. To change contexts (like adding an item to the
stack), use the next() and next_stack() functions to build a new one. | 6259906f283ffb24f3cf512c |
class GreedyEpsilonPolicy(Policy): <NEW_LINE> <INDENT> def __init__(self, num_actions, epsilon=0.05): <NEW_LINE> <INDENT> assert num_actions >= 1 <NEW_LINE> self.num_actions = num_actions <NEW_LINE> self.epsilon = epsilon <NEW_LINE> <DEDENT> def select_action(self, q_values, **kwargs): <NEW_LINE> <INDENT> assert self.n... | Selects greedy action or with some probability a random action.
With probability epsilon choose a random action. Otherwise choose the greedy action. | 6259906f55399d3f05627da5 |
class DynamicKeyBindings(_Proxy): <NEW_LINE> <INDENT> def __init__( self, get_key_bindings: Callable[[], Optional[KeyBindingsBase]] ) -> None: <NEW_LINE> <INDENT> self.get_key_bindings = get_key_bindings <NEW_LINE> self.__version = 0 <NEW_LINE> self._last_child_version = None <NEW_LINE> self._dummy = Bind() <NEW_LINE> ... | KeyBinder class that can dynamically returns any KeyBinder.
:param get_key_bindings: Callable that returns a :class:`.KeyBinder` instance. | 6259906f4e4d562566373c89 |
class BetaReportErrorsServiceStub(object): <NEW_LINE> <INDENT> def ReportErrorEvent(self, request, timeout, metadata=None, with_call=False, protocol_options=None): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> ReportErrorEvent.future = None | The Beta API is deprecated for 0.15.0 and later.
It is recommended to use the GA API (classes and functions in this
file not marked beta) for all further purposes. This class was generated
only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0. | 6259906f4e4d562566373c8a |
class BaseErrorHandler(ABC): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def __call__(self, errors: Iterable[ValidationError]) -> Any: <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def __iter__(self) -> Iterator[Any... | Base class for all error handlers. | 6259906f66673b3332c31c81 |
class Point(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.x = 0 <NEW_LINE> self.y = 0 <NEW_LINE> <DEDENT> def reset(self): <NEW_LINE> <INDENT> x.reset() <NEW_LINE> y.reset() <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return 'Point:({}, {})'.format(self.x, self.y) <NEW_LINE> <DEDENT... | Represents a 2d point | 6259906f379a373c97d9a8a3 |
class ListServicesResponse(_messages.Message): <NEW_LINE> <INDENT> nextPageToken = _messages.StringField(1) <NEW_LINE> services = _messages.MessageField('GoogleApiServiceusageV1Service', 2, repeated=True) | Response message for the `ListServices` method.
Fields:
nextPageToken: Token that can be passed to `ListServices` to resume a
paginated query.
services: The available services for the requested project. | 6259906ff548e778e596ce10 |
class TaskLoader(): <NEW_LINE> <INDENT> cmd_options = () <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.cmd_names = [] <NEW_LINE> self.config = None <NEW_LINE> <DEDENT> def load_tasks(self, cmd, opt_values, pos_args): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> ... | DEPRECATED: task-loader interface responsible of creating Task objects
:cvar cmd_options:
(list of dict) see cmdparse.CmdOption for dict format
Subclasses must implement the method `load_tasks`. | 6259906f627d3e7fe0e0870b |
class Group(object): <NEW_LINE> <INDENT> group_file = '%s/etc/group' % (CowrieConfig().get('honeypot', 'contents_path'),) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.load() <NEW_LINE> <DEDENT> def load(self): <NEW_LINE> <INDENT> self.group = [] <NEW_LINE> with open(self.group_file, 'r') as f: <NEW_LINE> <IN... | This class contains code to handle the groups and their properties in
/etc/group. | 6259906f4a966d76dd5f076d |
class MockSIBConnection(object): <NEW_LINE> <INDENT> NAMESPACES = { 'rdf': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'rdfs': 'http://www.w3.org/2000/01/rdf-schema#', 'owl': 'http://www.w3.org/2002/07/owl#', 'xsd': 'http://www.w3.org/2001/XMLSchema#', 'dc': 'http://purl.org/dc/elements/1.1/', 'sib': 'http://www.nok... | A fake SIBConnection class that implement the basic API of SIBConnection
and does not connect to SIB at all. | 6259906f38b623060ffaa495 |
class TestLogger(): <NEW_LINE> <INDENT> def __init__(self, store_log=True): <NEW_LINE> <INDENT> self.log = [] <NEW_LINE> self.log_to_file = False <NEW_LINE> self.log_file_name = None <NEW_LINE> self.store_log = store_log <NEW_LINE> self.LogType = construct_enum(INFO='Info', WARN='Warning', NOTIF='Notification', ERROR='... | Super-class for logging and printing ongoing events for test suite pass
| 6259906fa05bb46b3848bd6e |
class ScRelationSet: <NEW_LINE> <INDENT> def __init__(self, ctx, addr, relAddr): <NEW_LINE> <INDENT> self.ctx = ctx <NEW_LINE> self.addr = addr <NEW_LINE> self.relAddr = relAddr <NEW_LINE> <DEDENT> def Has(self, elAddr: ScAddr) -> bool: <NEW_LINE> <INDENT> it = self.ctx.Iterator5( self.addr, ScType.EdgeDCommonConst, el... | Set of elements that linekd with element by specified relation.
This set class controls instances of:
el1
=> nrel_relation: el2;
=> nrel_relation: el3;
=> nrel_relation: el4;; | 6259906f76e4537e8c3f0e08 |
class AttachVolume(task.Task): <NEW_LINE> <INDENT> def __init__(self, vol_drv): <NEW_LINE> <INDENT> self.vol_drv = vol_drv <NEW_LINE> self.vol_id = block_device.get_volume_id(self.vol_drv.connection_info) <NEW_LINE> super(AttachVolume, self).__init__(name='attach_vol_%s' % self.vol_id) <NEW_LINE> <DEDENT> def execute(s... | The task to attach a volume to an instance. | 6259906f7047854f46340c3b |
class LoginRequiredMiddleware(object): <NEW_LINE> <INDENT> def process_view(self, request, view_func, view_args, view_kwargs): <NEW_LINE> <INDENT> login_required = view_kwargs.pop('login_required', False) <NEW_LINE> if login_required: <NEW_LINE> <INDENT> if not request.user.is_authenticated(): <NEW_LINE> <INDENT> url =... | Middleware to look for ``login_required`` keyword argument on URLs
and present anonymous users with a login sequence. | 6259906f7d847024c075dc62 |
class GetSpecificOffice(Resource): <NEW_LINE> <INDENT> parser = reqparse.RequestParser() <NEW_LINE> parser.add_argument('Type', type=str, required=True, help='Please fill in this field') <NEW_LINE> parser.add_argument('name', type=str, required=True, help='Please fill in this field') <NEW_LINE> @jwt_required <NEW_LINE>... | get a specific political office by id. | 6259906f7c178a314d78e82d |
class TrainingCenterCreateView( LoginRequiredMixin, TrainingCenterMixin, CreateView): <NEW_LINE> <INDENT> context_object_name = 'trainingcenter' <NEW_LINE> template_name = 'training_center/create.html' <NEW_LINE> def get_success_url(self): <NEW_LINE> <INDENT> return reverse('certifyingorganisation-detail', kwargs={ 'pr... | Create view for Training Center. | 6259906f7b180e01f3e49ca6 |
class KerasLayer(Layer): <NEW_LINE> <INDENT> def __init__( self, layer = None, keras_layer = None, keras_args = {}, name ='keras_layer', ): <NEW_LINE> <INDENT> Layer.__init__(self, name=name) <NEW_LINE> assert layer is not None <NEW_LINE> assert keras_layer is not None <NEW_LINE> self.inputs = layer.outputs <NEW_LINE> ... | The :class:`KerasLayer` class can be used to merge all Keras layers into
TensorLayer. Example can be found here `tutorial_keras.py <https://github.com/zsdonghao/tensorlayer/blob/master/example/tutorial_keras.py>`_.
This layer will be deprecated soon as :class:`LambdaLayer` can do the same thing.
Parameters
----------
... | 6259906f67a9b606de5476e5 |
class TestXModuleHandler(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.module = XModule(descriptor=Mock(), field_data=Mock(), runtime=Mock(), scope_ids=Mock()) <NEW_LINE> self.module.handle_ajax = Mock(return_value='{}') <NEW_LINE> self.request = webob.Request({}) <NEW_LINE> <DEDENT> def test... | Tests that the xmodule_handler function correctly wraps handle_ajax | 6259906f8e7ae83300eea914 |
class CXERXCalculator: <NEW_LINE> <INDENT> def __init__(self, individual1, individual2): <NEW_LINE> <INDENT> self.individual2 = individual2 <NEW_LINE> self.individual1 = individual1 <NEW_LINE> <DEDENT> def crossover(self): <NEW_LINE> <INDENT> child1 = self._createChild(self.individual1, self.individual2) <NEW_LINE> chi... | Contains the logic to perform the ERX crossover. ERX crossover is based on:
1. creation of an edgeMap
2. creation of child based on to the child a random node at first,
then the less connected nodes | 6259906f4f88993c371f1162 |
class SourcePathFrame(BasePAFrame): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> BasePAFrame.__init__(self, *args, **kwargs) <NEW_LINE> self.w_label_source_path_label = Label( self, text=u'Папка источник с фотографиями ') <NEW_LINE> self.w_label_base_path = Label( self, text=settings.PHO... | фрейм для выбора источника | 6259906f8e7ae83300eea915 |
class StagedActivation(BaseScheduler): <NEW_LINE> <INDENT> stage_list = [] <NEW_LINE> shuffle = False <NEW_LINE> shuffle_between_stages = False <NEW_LINE> stage_time = 1 <NEW_LINE> def __init__(self, model, stage_list=["step"], shuffle=False, shuffle_between_stages=False): <NEW_LINE> <INDENT> super().__init__(model) <N... | A scheduler which allows agent activation to be divided into several stages
instead of a single `step` method. All agents execute one stage before
moving on to the next.
Agents must have all the stage methods implemented. Stage methods take a
model object as their only argument.
This schedule tracks steps and time se... | 6259906f92d797404e38979d |
class Message(six.text_type): <NEW_LINE> <INDENT> def __new__(cls, msgid, msgtext=None, params=None, domain='heatclient', *args): <NEW_LINE> <INDENT> if not msgtext: <NEW_LINE> <INDENT> msgtext = Message._translate_msgid(msgid, domain) <NEW_LINE> <DEDENT> msg = super(Message, cls).__new__(cls, msgtext) <NEW_LINE> msg.m... | A Message object is a unicode object that can be translated.
Translation of Message is done explicitly using the translate() method.
For all non-translation intents and purposes, a Message is simply unicode,
and can be treated as such. | 6259906f9c8ee82313040dca |
class TestDownloadTranscripts(BaseTranscripts): <NEW_LINE> <INDENT> def update_video_component(self, sub=None, youtube_id=None): <NEW_LINE> <INDENT> sjson_transcript = json.loads(SJSON_TRANSCRIPT_CONTENT) <NEW_LINE> self.item.sub = sub <NEW_LINE> if sub: <NEW_LINE> <INDENT> self.save_subs_to_store(sjson_transcript, sub... | Tests for '/transcripts/download' url. | 6259906f4f6381625f19a0eb |
class PerfReporter(object): <NEW_LINE> <INDENT> __PLOT_SIZE_X = 30 <NEW_LINE> __PLOT_SIZE_Y = 15 <NEW_LINE> __QUARTILE_HIGH = 80 <NEW_LINE> __QUARTILE_LOW = 20 <NEW_LINE> __TRIM_SIGMA = 2 <NEW_LINE> @staticmethod <NEW_LINE> def trim_outliers(distribution, nsigma, threshold=10): <NEW_LINE> <INDENT> if len(distribution) ... | Simple class to process and report test data. | 6259906f91f36d47f2231ad1 |
class time_(html_tag): <NEW_LINE> <INDENT> pass | The time element represents either a time on a 24 hour clock, or a precise
date in the proleptic Gregorian calendar, optionally with a time and a
time-zone offset. | 6259906f97e22403b383c788 |
class ModelConverter(object): <NEW_LINE> <INDENT> def from_client_to_store(self, client_resource, store_resource): <NEW_LINE> <INDENT> raise NotImplementedError("Should be implemented by a sub-class") <NEW_LINE> <DEDENT> def from_store_to_client(self, store_resource, client_resource): <NEW_LINE> <INDENT> raise NotImple... | TODO: find a better name and explain | 6259906ff548e778e596ce12 |
class PluginFraction(PrependerPlugin): <NEW_LINE> <INDENT> def __init__(self, config, section=None): <NEW_LINE> <INDENT> PrependerPlugin.__init__(self, config, section) <NEW_LINE> self.filter = None <NEW_LINE> self.requiredvars = { 'filterfile': { 'default': '/etc/fuglu/pluginfraction.regex', } } <NEW_LINE> self.logger... | Runs only a fraction of loaded scanner plugins based on standard filter file
Use this if you only want to run a fraction of the standard plugins on a specific port for example
eg. put this in /etc/fuglu/pluginfraction.regex:
@incomingport 1100 SAPlugin,AttachmentPlugin | 6259906faad79263cf43003b |
class SeqRef(ExprRef): <NEW_LINE> <INDENT> def sort(self): <NEW_LINE> <INDENT> return SeqSortRef(Z3_get_sort(self.ctx_ref(), self.as_ast()), self.ctx) <NEW_LINE> <DEDENT> def __add__(self, other): <NEW_LINE> <INDENT> return Concat(self, other) <NEW_LINE> <DEDENT> def __radd__(self, other): <NEW_LINE> <INDENT> return Co... | Sequence expression. | 6259906f627d3e7fe0e0870d |
class WelcomeAPI(MethodView): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> responseObject = { 'status': 'success', 'message': 'API is currently up. Check out https://github.com/Tehsurfer/Blackfynn-Backend-Connector/ for more details.' } <NEW_LINE> return make_response(jsonify(responseObject)), 200 | Welcome Resource | 6259906f1f5feb6acb164476 |
class GroupServiceProvider(providers.Singleton): <NEW_LINE> <INDENT> provided_type = GroupService | Service provider for group plugins. | 6259906fadb09d7d5dc0bdf0 |
class _EnumerantsInitializer(object): <NEW_LINE> <INDENT> def __get__(self, oself, cls): <NEW_LINE> <INDENT> cls._initializeEnumerants() <NEW_LINE> return cls._enumerants | L{_EnumerantsInitializer} is a descriptor used to initialize a cache of
objects representing named constants for a particular L{_ConstantsContainer}
subclass.
@since: Twisted 12.0.0. | 6259906f3346ee7daa3382a1 |
class TestBoggle(unittest.TestCase): <NEW_LINE> <INDENT> def test_can_create_an_empty_grid(self): <NEW_LINE> <INDENT> grid = boggle.make_grid(0,0) <NEW_LINE> self.assertEqual(len(grid),0) <NEW_LINE> <DEDENT> def test_grid_size_is_width_times_height(): <NEW_LINE> <INDENT> grid = boggle.make_grid(2,3) <NEW_LINE> self.ass... | Our test suite for boggle solver | 6259906f76e4537e8c3f0e0a |
class ListAllDepartmentView(ListAPIView): <NEW_LINE> <INDENT> pagination_class = CustomPagination <NEW_LINE> permission_classes = () <NEW_LINE> parser_classes = (parsers.FormParser, parsers.MultiPartParser, parsers.JSONParser,) <NEW_LINE> renderer_classes = (renderers.JSONRenderer,) <NEW_LINE> serializer_class = Depart... | list all department.
if user is superuser -> api_id not NULL
if user is ceo(superadmin, admin) -> apt_id = apt of request.user | 6259906fa05bb46b3848bd6f |
class SyntheticData(Dataset): <NEW_LINE> <INDENT> def __init__(self, unused_data_dir): <NEW_LINE> <INDENT> super(SyntheticData, self).__init__('synthetic') <NEW_LINE> <DEDENT> def get_image_preprocessor(self): <NEW_LINE> <INDENT> return preprocessing.SyntheticImagePreprocessor <NEW_LINE> <DEDENT> def use_synthetic_gpu_... | Configuration for synthetic dataset. | 6259906ff9cc0f698b1c5f0d |
class Spout(Component): <NEW_LINE> <INDENT> def ack(self, tup_id): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def fail(self, tup_id): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def next_tuple(self): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def emit( self, tup, tup_id=None, stream=None, di... | Base class for all pystorm spouts.
For more information on spouts, consult Storm's
`Concepts documentation <http://storm.apache.org/documentation/Concepts.html>`_. | 6259906f796e427e5384fffd |
class TestStrucDataCase10(unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls._data = fs.open_sif(os.path.join(FILES, 'struc', 'single_super_elem', 'test01_2ndord_linstat_R1.SIU')) <NEW_LINE> cls._f_verified = h5py.File(os.path.join(FILES, 'verified_testdata.h5')... | 2nd order 8-node quadrilateral shell elements, node results
| 6259906fbe8e80087fbc0915 |
class GwFileTypeEnum: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> enumValue = 0 <NEW_LINE> fileBuffer = None | A result from Glasswall containing the determined file type value. | 6259906fdd821e528d6da5c4 |
class WhoisGetterBasic(object): <NEW_LINE> <INDENT> def get_whois_content(self, domain): <NEW_LINE> <INDENT> result = subprocess.run(['whois', domain], stdout=subprocess.PIPE) <NEW_LINE> return result.stdout.decode(sys.getdefaultencoding()) | Simple basic whois content getter from the command line
running whois abc.com. It will grab the whole text
and return it back. | 6259906f7d43ff2487428055 |
class Step(Benchmark): <NEW_LINE> <INDENT> def __init__(self, dimensions=2): <NEW_LINE> <INDENT> Benchmark.__init__(self, dimensions) <NEW_LINE> self.bounds = list(zip([-100.0] * self.dimensions, [100.0] * self.dimensions)) <NEW_LINE> self.custom_bounds = ([-5, 5], [-5, 5]) <NEW_LINE> self.global_optimum = [0.5 for _ i... | Step test objective function.
This class defines the Step global optimization problem. This
is a multimodal minimization problem defined as follows:
.. math::
f_{\text{Step}}(\mathbf{x}) = \sum_{i=1}^{n} \left ( \lfloor x_i \rfloor + 0.5 \right )^2
Here, :math:`n` represents the number of dimensions and :math:`... | 6259906f4428ac0f6e659db9 |
class LBActiveConnectionsPollster(_LBStatsPollster): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def _get_sample(pool, data): <NEW_LINE> <INDENT> return make_sample_from_pool( pool, name='network.services.lb.active.connections', type=sample.TYPE_GAUGE, unit='connection', volume=data.active_connections, ) | Pollster to capture Active Load Balancer connections. | 6259906f99cbb53fe683276f |
class Placeholder(Composable): <NEW_LINE> <INDENT> def __init__(self, name=None): <NEW_LINE> <INDENT> if isinstance(name, str): <NEW_LINE> <INDENT> if ')' in name: <NEW_LINE> <INDENT> raise ValueError("invalid name: %r" % name) <NEW_LINE> <DEDENT> <DEDENT> elif name is not None: <NEW_LINE> <INDENT> raise TypeError("exp... | A `Composable` representing a placeholder for query parameters.
If the name is specified, generate a named placeholder (e.g. ``%(name)s``),
otherwise generate a positional placeholder (e.g. ``%s``).
The object is useful to generate SQL queries with a variable number of
arguments.
Examples::
>>> names = ['foo', ... | 6259906f4a966d76dd5f0770 |
class Section(SupportsBytes): <NEW_LINE> <INDENT> def __init__(self, payload_type: 'OpMsg.PayloadType'): <NEW_LINE> <INDENT> self.payload_type = payload_type <NEW_LINE> <DEDENT> def __bytes__(self): <NEW_LINE> <INDENT> raise NotImplementedError() | Generic section | 6259906f8e7ae83300eea916 |
class BaseClass(QtGui.QWidget): <NEW_LINE> <INDENT> def __init__(self, parent = None): <NEW_LINE> <INDENT> QtGui.QWidget.__init__(self, parent) <NEW_LINE> self.resetAuthor() <NEW_LINE> <DEDENT> def getAuthor(self): <NEW_LINE> <INDENT> return self._author <NEW_LINE> <DEDENT> def setAuthor(self, name): <NEW_LINE> <INDENT... | BaseClass(QtGui.QWidget)
Provides a base custom widget class to show that properties implemented
in Python can be inherited and shown as belonging to distinct classes
in Qt Designer's Property Editor. | 6259906f32920d7e50bc78cd |
class MockLibatutility(MockSharedLib): <NEW_LINE> <INDENT> libs = ['atutility.so', 'atutility'] <NEW_LINE> functions = [ 'AT_ConvertBuffer', 'AT_ConvertBufferUsingMetadata', 'AT_FinaliseUtilityLibrary', 'AT_InitialiseUtilityLibrary', ] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(MockLibatutility, self).__i... | Mock Andor's atutility (SDK3) for microscope.cameras.SDK3.
| 6259906f8e7ae83300eea917 |
class Benchmarker: <NEW_LINE> <INDENT> def __init__(self, config, ds, classifier): <NEW_LINE> <INDENT> self.ds = ds <NEW_LINE> self.clf = classifier <NEW_LINE> self.logger_factory = logger_factory <NEW_LINE> self.log = logger_factory.logger_for(config, self.__class__.__name__) <NEW_LINE> self.config = config <NEW_LINE>... | Slices the test set and generates the final confusion matrix | 6259906f91f36d47f2231ad2 |
class MaxServingsLowerThanLargestRecipeError(StaticSiteError): <NEW_LINE> <INDENT> pass | Thrown when max_servings set to less than the largest recipes' native serving count. | 6259906f32920d7e50bc78ce |
class SettingsView(zoom.mvc.View): <NEW_LINE> <INDENT> def about(self): <NEW_LINE> <INDENT> return zoom.page(zoom.tools.load_content('about.md')) | Settings View | 6259906f8a43f66fc4bf3a1b |
class PandasHDFStoreSingleNode(FramewiseData): <NEW_LINE> <INDENT> def __init__(self, filename, key='FrameData', mode='a', t_column='frame', use_tabular_copy=False, **kwargs): <NEW_LINE> <INDENT> self.filename = os.path.abspath(filename) <NEW_LINE> self.key = key <NEW_LINE> self._t_column = t_column <NEW_LINE> self.sto... | Save all frames into one large node.
This implementation is more complex than PandasHDFStore,
but it simplifies (speeds up?) cross-frame queries,
like queries for a single probe's entire trajectory.
Any additional keyword arguments to the constructor are passed to
pandas.HDFStore(). | 6259906faad79263cf43003d |
class hr_employee(osv.osv): <NEW_LINE> <INDENT> _inherit = 'hr.employee' <NEW_LINE> _description = 'Employee' <NEW_LINE> def _calculate_total_wage(self, cr, uid, ids, name, args, context): <NEW_LINE> <INDENT> if not ids: return {} <NEW_LINE> res = {} <NEW_LINE> current_date = datetime.now().strftime('%Y-%m-%d') <NEW_LI... | Employee | 6259906ff548e778e596ce14 |
class HitMarker(entity.Entity): <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> entity.Entity.__init__(self) <NEW_LINE> self.class_id = 4 <NEW_LINE> self.netxpos = NetworkVar(self, x, 1) <NEW_LINE> self.netypos = NetworkVar(self, y, 2) <NEW_LINE> self.frames = 0 <NEW_LINE> <DEDENT> def update(self, wo... | Displays a hit circle for the client | 6259906f4527f215b58eb5e3 |
class Layer(MultyvacModel): <NEW_LINE> <INDENT> def __init__(self, name, **kwargs): <NEW_LINE> <INDENT> MultyvacModel.__init__(self, **kwargs) <NEW_LINE> self.name = name <NEW_LINE> self.size = kwargs.get('size') <NEW_LINE> self.created_at = kwargs.get('created_at') <NEW_LINE> <DEDENT> def mkdir(self, path): <NEW_LINE>... | Represents a Multyvac Layer and its associated operations. | 6259906f66673b3332c31c85 |
class VariableSets(APIClassTemplate): <NEW_LINE> <INDENT> VALID_JSON_DATA = ["id", "name", "type", "description"] <NEW_LINE> VALID_FOR_KWARGS = VALID_JSON_DATA + [] <NEW_LINE> URL_SUFFIX = "/object/variablesets" <NEW_LINE> def __init__(self, fmc, **kwargs): <NEW_LINE> <INDENT> super().__init__(fmc, **kwargs) <NEW_LINE>... | The VariableSets Object in the FMC. | 6259906f460517430c432c9a |
class Category(TrackableUpdateCreateModel): <NEW_LINE> <INDENT> parent_category = models.ForeignKey( 'shop.Category', verbose_name='Parent category', blank=True, null=True, db_index=True, on_delete=models.SET_NULL, related_name='child_categories', related_query_name='child_category', ) <NEW_LINE> name = models.CharFiel... | Модель для описания категории товара.
Содержит поля имени, индекса родительской категории,
а также активности и порядка сортировки. | 6259906f2c8b7c6e89bd506d |
class KickRejoin(BaseExtension): <NEW_LINE> <INDENT> requires = ["BasicRFC", "ISupport"] <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self.rejoin_delay = kwargs.pop('rejoin_delay', 5) <NEW_LINE> self.rejoin_on_remove = kwargs.pop('rejoin_on_remove', Tr... | Rejoin a channel automatically after being kicked or removed. | 6259906f38b623060ffaa497 |
class TestProfileService(OVSBaseTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> test_user_info = ('test@gmail.com', 'Bob', 'Smith', 'RESIDENT') <NEW_LINE> UserService.create_user(*test_user_info) <NEW_LINE> self.test_user = UserService.get_user_by_email('test@gmail.com') <... | Tests for profile services | 6259906f1f037a2d8b9e54ae |
class HyperParameters(object): <NEW_LINE> <INDENT> device = None <NEW_LINE> gpu_no = None <NEW_LINE> data_set = None <NEW_LINE> lr = 0.0 <NEW_LINE> epoch = 0 <NEW_LINE> batch_size = 0 <NEW_LINE> clip_norm = 0 <NEW_LINE> decay_steps = 0 <NEW_LINE> decay_rate = 0.0 <NEW_LINE> embedding_size = 0 <NEW_LINE> hidden_units = ... | 超参类
| 6259906f3346ee7daa3382a2 |
class V1beta1APIVersion(object): <NEW_LINE> <INDENT> def __init__(self, name=None): <NEW_LINE> <INDENT> self.swagger_types = { 'name': 'str' } <NEW_LINE> self.attribute_map = { 'name': 'name' } <NEW_LINE> self._name = name <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self._name <N... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259906f76e4537e8c3f0e0c |
class DocumentIndex(object): <NEW_LINE> <INDENT> def __init__(self, documents): <NEW_LINE> <INDENT> self._documents = documents <NEW_LINE> self._inverted_index = defaultdict(set) <NEW_LINE> self._document_frequencies = self._rollup_frequencies(documents) <NEW_LINE> <DEDENT> def doc_freq(self, w, default=1): <NEW_LINE> ... | A box of documents, which can be queried.
| 6259906fa05bb46b3848bd70 |
class DomainStruct (object): <NEW_LINE> <INDENT> def __init__ (self, domain): <NEW_LINE> <INDENT> eT2LD = get_public_suffix(domain) <NEW_LINE> et2s = eT2LD.split('.') <NEW_LINE> eTLD = '.'.join(et2s[1:]) <NEW_LINE> if eTLD == '': <NEW_LINE> <INDENT> self.isFQDN = False <NEW_LINE> self.eTkLD = [] <NEW_LINE> self.sub = s... | Return a DomStruct, representing the structure of the input domain
Example 1 (valid eTLD, and len(domain)>len(eT2LD)):
domain = 'www.5.4.3.google.co.uk'
nowww = '5.4.3.google.co.uk'
et2s = ['google', 'co', 'uk']
eSLD = 'google'
sub = 'www.5.4.3'
subs = ['www', '5', '4', '3']
eTkLD = [
'co.uk',
'google.co.uk',
... | 6259906f7d847024c075dc66 |
class ExportStatistics: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def export_to_csv(file_path, samples, statistics): <NEW_LINE> <INDENT> header_row = [ '', samples.qualifiers[1], samples.qualifiers[2], samples.qualifiers[3], samples.qualifiers[4]] <NEW_LINE> matrix = [] <NEW_LINE> for key, value in samples.names.ite... | Class used for exporting the created in software
statistics. | 6259906fb7558d5895464b76 |
class AdaptiveInterpolator(object): <NEW_LINE> <INDENT> def adaptive_init(self, f, interp_class): <NEW_LINE> <INDENT> if f is not None: <NEW_LINE> <INDENT> self.f = f <NEW_LINE> <DEDENT> self.interp_class = interp_class <NEW_LINE> self.n = 3 <NEW_LINE> Xs = self.get_nodes(self.n) <NEW_LINE> Ys = self.f(Xs) <NEW_LINE> i... | Mix-in class for adaptive interpolators.
Increase number of nodes until error is small. | 6259906f796e427e5384ffff |
class TestDieSize(unittest.TestCase): <NEW_LINE> <INDENT> def test_die_size(self): <NEW_LINE> <INDENT> with open(os.path.join('test', 'testfiles_for_unittests', 'trailing_null_dies.elf'), 'rb') as f: <NEW_LINE> <INDENT> elffile = ELFFile(f) <NEW_LINE> self.assertTrue(elffile.has_dwarf_info()) <NEW_LINE> dwarfinfo = elf... | This test verifies that null DIEs are treated correctly - i.e.
removed when we 'unflatten' the linear list and build a tree.
The test file contains a CU with two non-null DIEs (both three bytes big),
where the second one is followed by three null DIEs.
We verify that the null DIEs are discarded and that the length of t... | 6259906f4c3428357761bb3b |
class Element(View): <NEW_LINE> <INDENT> template = "menu/element.html" <NEW_LINE> def get(self, request): <NEW_LINE> <INDENT> return render(request, self.template, context) | Top songs.
TODO: Show songs by its popularity. | 6259906fbf627c535bcb2d53 |
class DummyRing(StorageRing): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(DummyRing, self).__init__() <NEW_LINE> self._lifetime = 10 * q.hour <NEW_LINE> self._current = 100 * q.mA <NEW_LINE> self._energy = 5 * q.MeV <NEW_LINE> self._current_decay = 0.05 * q.mA / q.hour <NEW_LINE> self._energy_deca... | Create a Dummy Ring. | 6259906fa8370b77170f1c50 |
class JerboaTokenReader(object): <NEW_LINE> <INDENT> def __init__(self, tokenizedfile): <NEW_LINE> <INDENT> self.file = tokenizedfile <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def next(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> orig_text = self.file.next() <NEW... | Reads from the full output of the Jerboa tokenizer. | 6259906f7b180e01f3e49ca8 |
@unique <NEW_LINE> class CUBAExtension(Enum): <NEW_LINE> <INDENT> BOX_FACES = "BOX_FACES" <NEW_LINE> BOX_VECTORS = "BOX_VECTORS" <NEW_LINE> BOX_ORIGIN = "BOX_ORIGIN" <NEW_LINE> PAIR_POTENTIALS = "PAIR_POTENTIALS" <NEW_LINE> FIXED_GROUP = "FIXED_GROUP" | Provisional CUBA keywords specific for Liggghts-Md
These are additional CUBA-Keywords that are not included
in simphony-common yet. The proposed description for
these new CUBA keywords is:
- description: Simulation box faces
domain: [MD]
key: BOX_FACES
name: BoxFaces
number: 100
shape: [1]
type: double
- description:... | 6259906fa8370b77170f1c51 |
class MtgjsonDeckObject: <NEW_LINE> <INDENT> code: str <NEW_LINE> commander: List[Dict[str, Any]] <NEW_LINE> main_board: List[Dict[str, Any]] <NEW_LINE> name: str <NEW_LINE> side_board: List[Dict[str, Any]] <NEW_LINE> release_date: str <NEW_LINE> type: str <NEW_LINE> file_name: str <NEW_LINE> def set_sanitized_name(sel... | MTGJSON Singular Card Object | 6259906f8e7ae83300eea918 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.