code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class HostApp(BaseHost): <NEW_LINE> <INDENT> id_ = 'Clarisse' <NEW_LINE> filetypes = ['abc', 'png', 'tiff', 'vdb'] <NEW_LINE> def get_host(self): <NEW_LINE> <INDENT> return 'Clarisse' in sys.executable <NEW_LINE> <DEDENT> def start_QApp(self): <NEW_LINE> <INDENT> import pyqt_clarisse <NEW_LINE> try: <NEW_LINE> <INDENT>... | The host application class, which is used to determine context. | 62598f60d18da76e235b6c49 |
class TestCompareXLSXFiles(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.maxDiff = None <NEW_LINE> filename = 'chart_errorbars02.xlsx' <NEW_LINE> test_dir = 'xlsxwriter/test/comparison/' <NEW_LINE> self.got_filename = test_dir + '_test_' + filename <NEW_LINE> self.exp_filename = test... | Test file created by XlsxWriter against a file created by Excel. | 62598f600383005118f6cd2f |
class Dog(): <NEW_LINE> <INDENT> def __init__(self, name, age): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.age = age <NEW_LINE> <DEDENT> def sit(self): <NEW_LINE> <INDENT> print(self.name.title() + " is sitting.") <NEW_LINE> <DEDENT> def roll_over(self): <NEW_LINE> <INDENT> print(self.name.title() + " rolled ... | A simple attempt to model a dog. | 62598f6021a7993f00c655a0 |
class FlushHand(PokerHands): <NEW_LINE> <INDENT> def match(self, cards_matrix): <NEW_LINE> <INDENT> return self.match_by_sequence(cards_matrix, same_suit=True, without_breaks=False) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "flush" <NEW_LINE> <DEDENT> def rank(self): <NEW_LINE> <INDENT> return ... | Flush
all five cards are of the same suit, but not in sequence
Q♣ 10♣ 7♣ 6♣ 4♣ | 62598f60bf627c535bcb0aa7 |
class OperationsDiscoveryCollection(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[OperationsDiscovery]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["OperationsDiscovery"]] = None, next_link: Optiona... | Collection of ClientDiscovery details.
:param value: Gets or sets the ClientDiscovery details.
:type value: list[~resource_mover_service_api.models.OperationsDiscovery]
:param next_link: Gets or sets the value of next link.
:type next_link: str | 62598f6066673b3332c2f9e3 |
class SpeedtestSensor(Entity): <NEW_LINE> <INDENT> def __init__(self, speedtest_data, sensor_type): <NEW_LINE> <INDENT> self._name = SENSOR_TYPES[sensor_type][0] <NEW_LINE> self.speedtest_client = speedtest_data <NEW_LINE> self.type = sensor_type <NEW_LINE> self._state = None <NEW_LINE> self._unit_of_measurement = SENS... | Implementation of a speedtest.net sensor. | 62598f6056b00c62f0fb1edf |
class Source: <NEW_LINE> <INDENT> def __init__( self, pointer: str, title: str, author: str, publisher: str, abbreviation: str, ): <NEW_LINE> <INDENT> self.pointer = pointer <NEW_LINE> self.title = title <NEW_LINE> self.author = author <NEW_LINE> self.publisher = publisher <NEW_LINE> self.abbreviation = abbreviation <N... | Bridge representation of a Source | 62598f608c3a8732951f5b7a |
class Potion(Consumable): <NEW_LINE> <INDENT> def __init__(self, x, y, name, weight, value, potency=0): <NEW_LINE> <INDENT> Consumable.__init__(self, x, y, name, "!", weight, value, True) <NEW_LINE> self.potency = potency | Potion class.
potency: if potion adds or subtracts from player's stats,
this value is added or subtracted | 62598f60287bf620b62711e2 |
class Constants: <NEW_LINE> <INDENT> CONNECTION_BAUD_RATE = 115200 <NEW_LINE> CONNECTION_PARITY = serial.PARITY_ODD <NEW_LINE> CONNECTION_STOP_BITS = 1 <NEW_LINE> TIMEOUT_BETWEEN_COMMANDS = 0.05 <NEW_LINE> DEVICE_NODE = 0x0 <NEW_LINE> MAX_LEN_IN_BYTES = 21 | Communication constants | 62598f60d164cc61758205a1 |
class Plugin: <NEW_LINE> <INDENT> def __init__(self, options: Options) -> None: <NEW_LINE> <INDENT> self.options = options <NEW_LINE> self.python_version = options.python_version <NEW_LINE> <DEDENT> def get_type_analyze_hook(self, fullname: str ) -> Optional[Callable[[AnalyzeTypeContext], Type]]: <NEW_LINE> <INDENT> re... | Base class of all type checker plugins.
This defines a no-op plugin. Subclasses can override some methods to
provide some actual functionality.
All get_ methods are treated as pure functions (you should assume that
results might be cached).
Look at the comments of various *Context objects for descriptions of
variou... | 62598f609b70327d1c57e3d1 |
class PauseTriggerType(IntEnum): <NEW_LINE> <INDENT> analog_level = daq.DAQmx_Val_AnlgLvl <NEW_LINE> analog_window = daq.DAQmx_Val_AnlgWin <NEW_LINE> digital_level = daq.DAQmx_Val_DigLvl <NEW_LINE> digital_pattern = daq.DAQmx_Val_DigPattern <NEW_LINE> none = daq.DAQmx_Val_None | Allowed values for the Pause Trigger Type attribute of a DAQmx Task.
Documentation on the meaning of each value can be found in the
`C API Reference`_.
.. _C API Reference: http://zone.ni.com/reference/en-XX/help/370471Y-01/mxcprop/attr1366/ | 62598f60a8ecb0332587082c |
class PortPaginationResponse(object): <NEW_LINE> <INDENT> swagger_types = { 'total': 'int', 'search_id': 'str', 'items': 'list[NetflowPort]' } <NEW_LINE> attribute_map = { 'total': 'total', 'search_id': 'searchId', 'items': 'items' } <NEW_LINE> def __init__(self, total=None, search_id=None, items=None): <NEW_LINE> <IND... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f60d18da76e235b6c4a |
class QueryPublisher(object): <NEW_LINE> <INDENT> def __init__(self, zmqconfig={}): <NEW_LINE> <INDENT> self.zmqconfig = zmqconfig <NEW_LINE> self._context = zmq.Context() <NEW_LINE> self._socket = self._context.socket(zmq.REQ) <NEW_LINE> self._socket.connect('tcp://{}:{}'.format(self.zmqconfig.get('host', ZMQ_DEFAULT_... | A query publisher | 62598f601d351010ab8f316e |
class VerboseSerializer(Serializer): <NEW_LINE> <INDENT> def from_json(self, content): <NEW_LINE> <INDENT> print(content) <NEW_LINE> try: <NEW_LINE> <INDENT> return json.loads(content) <NEW_LINE> <DEDENT> except ValueError as e: <NEW_LINE> <INDENT> raise BadRequest(u"Incorrect JSON format: Reason: \"{}\" (See www.json.... | Gives message when loading JSON fails. | 62598f600383005118f6cd31 |
class MCU_NRF51Code(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def binary_hook(t_self, resources, _, binf): <NEW_LINE> <INDENT> sdf = None <NEW_LINE> for softdevice_and_offset_entry in t_self.target.EXPECTED_SOFTDEVICES_WITH_OFFSETS: <NEW_LINE> <INDENT> for hexf in resources.get_file_paths(FileTyp... | NRF51 Hooks | 62598f6066673b3332c2f9e5 |
class VirtualNodeServiceProvider(AWSProperty): <NEW_LINE> <INDENT> props: PropsDictType = { "VirtualNodeName": (str, True), } | `VirtualNodeServiceProvider <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualservice-virtualnodeserviceprovider.html>`__ | 62598f60bf627c535bcb0aab |
class Custom_Context(pylux.Context): <NEW_LINE> <INDENT> PYLUX = pylux <NEW_LINE> API_TYPE = 'PURE' <NEW_LINE> def attributeBegin(self, comment='', file=None): <NEW_LINE> <INDENT> pylux.Context.attributeBegin(self) <NEW_LINE> <DEDENT> def transformBegin(self, comment='', file=None): <NEW_LINE> <INDENT> pylux.Context.tr... | This is the 'pure' entry point to the pylux.Context API
Some methods in this class have been overridden with
extensions to provide additional functionality in other
API types (eg. file_api).
The other Custom_Context APIs are based on this one | 62598f60507cdc57c63a43ca |
class HTTPMessage(object): <NEW_LINE> <INDENT> def __init__(self, headers=None, body=b''): <NEW_LINE> <INDENT> self.headers = headers or HeadersDict() <NEW_LINE> self.body = body <NEW_LINE> <DEDENT> @property <NEW_LINE> def body(self): <NEW_LINE> <INDENT> body = self.body_bytes <NEW_LINE> content_type, charset = self.c... | Base HTTP class for generalising certain properties of both requests and
responses.
Should not be used directly - use `~icap.models.HTTPRequest` or
`~icap.models.HTTPResponse` instead. | 62598f60d164cc61758205a6 |
class SkelLossRec(Node): <NEW_LINE> <INDENT> def __init__(self, pred, skel, loss_kwargs, name="skel_loss", print_repr=True): <NEW_LINE> <INDENT> super(SkelLossRec, self).__init__((pred, skel), name, print_repr) <NEW_LINE> self.skel = skel.output <NEW_LINE> self.pred = pred.output <NEW_LINE> self.pred_shape = pred.shape... | pred must be a vector of shape [(1,b),(3,f)] or [(3,f)]
i.e. only batch_size=1 is supported.
Parameters
----------
pred
skel
loss_kwargs
name
print_repr | 62598f60167d2b6e312b65ac |
class ResourceGroupsPutTestCase(BaseTestGenerator): <NEW_LINE> <INDENT> scenarios = [ ('Put resource groups', dict(url='/browser/resource_group/obj/')) ] <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.server_id = parent_node_dict["server"][-1]["server_id"] <NEW_LINE> server_response = server_utils.connect_server(... | This class will update the resource groups | 62598f607c178a314d78cacc |
class EmptyLineFilter(Condition[Line]): <NEW_LINE> <INDENT> _EMPTY_LINE = Line.make('') <NEW_LINE> def __init__(self) -> None: <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._printing = None <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def make() -> 'EmptyLineFilter': <NEW_LINE> <INDENT> instance = EmptyLineFil... | Skips empty lines, when used with a ConditionFilter.
## Transition System Definition
### States
- Y = Printing <- INITIAL
- N = No printing
### Transition Labels
- Empty = Recieve Line equal to _EMPTY_LINE
- Line = Recieve Line not equal to _EMPTY_LINE
### Transitions Grouped by Label
- Empty
- Y -> N
- N ->... | 62598f6163f4b57ef0085887 |
class LogisticRegression(LearningAlgorithm): <NEW_LINE> <INDENT> def __init__(self,data_x, data_y): <NEW_LINE> <INDENT> LearningAlgorithm.__init__(self,data_x,data_y) <NEW_LINE> <DEDENT> def gradient(self,x,y): <NEW_LINE> <INDENT> x=np.insert(x,0,1) <NEW_LINE> num = -y*x <NEW_LINE> den = 1+e**(y*np.inner(self.weights,x... | Class to perform linear regression on a dataset | 62598f61507cdc57c63a43cc |
class LinearPipeline(AbtractPipeline): <NEW_LINE> <INDENT> def __init__(self, filters_lists): <NEW_LINE> <INDENT> self.filters_list = filters_lists <NEW_LINE> self.filters_count = len(self.filters_list) <NEW_LINE> self.scores_list , self.scores_dict= [],{} <NEW_LINE> <DEDENT> def log_appearance(self, start_pool_size, e... | Pipeline for a simple linear F1 -> F2 -> ... schema for the filtering order.
The Pipeline uses the defined ratios to reach the desired end ratio | 62598f6176d4e153a661c242 |
class Clock: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.timeAtLastReset=getTime() <NEW_LINE> <DEDENT> def getTime(self): <NEW_LINE> <INDENT> return getTime()-self.timeAtLastReset <NEW_LINE> <DEDENT> def reset(self, newT=0.0): <NEW_LINE> <INDENT> self.timeAtLastReset=getTime()+newT | A convenient class to keep track of time in your experiments.
You can have as many independent clocks as you like (e.g. one
to time responses, one to keep track of stimuli...)
The clock is based on python.time.time() which is a sub-millisec
timer on most machines. i.e. the times reported will be more
accurate than... | 62598f611d351010ab8f3173 |
class DictItemsModel(QStandardItemModel): <NEW_LINE> <INDENT> def __init__(self, parent=None, dict={}): <NEW_LINE> <INDENT> QStandardItemModel.__init__(self, parent) <NEW_LINE> self.setHorizontalHeaderLabels(["Key", "Value"]) <NEW_LINE> self.set_dict(dict) <NEW_LINE> <DEDENT> def set_dict(self, dict): <NEW_LINE> <INDEN... | A Qt Item Model class displaying the contents of a python
dictionary. | 62598f613eb6a72ae0389c72 |
class iNS(NS): <NEW_LINE> <INDENT> __getitem__ = __getattr__ = lambda self, name: self.__dict__.get(name, identity) <NEW_LINE> def __setattr__(self, key, value): <NEW_LINE> <INDENT> if value != identity: <NEW_LINE> <INDENT> self.__dict__[key] = value <NEW_LINE> <DEDENT> <DEDENT> __setitem__ = __setattr__ <NEW_LI... | Identity Namespace
When accessing a nonexistent attribute, returns the Identity instead of
raising an exception. | 62598f619b70327d1c57e3d8 |
class DefaultPlaceholder: <NEW_LINE> <INDENT> def __init__(self, value: Any): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> <DEDENT> def __bool__(self) -> bool: <NEW_LINE> <INDENT> return bool(self.value) <NEW_LINE> <DEDENT> def __eq__(self, o: object) -> bool: <NEW_LINE> <INDENT> return isinstance(o, DefaultPlaceh... | You shouldn't use this class directly.
It's used internally to recognize when a default value has been overwritten, even
if the overriden default value was truthy. | 62598f61d164cc61758205a9 |
class TicketsPageVisitorTest(TestCase): <NEW_LINE> <INDENT> def test_redirect_to_login_page_when_not_logged_in(self): <NEW_LINE> <INDENT> response = self.client.get(reverse('tickets-list')) <NEW_LINE> self.assertRedirects(response, '/login/?next=/tickets/') | Test tickets page for visitors (not logged in) users | 62598f614d74a7450cd589f1 |
class AuthenticatorPlugin: <NEW_LINE> <INDENT> implements(IAuthenticator) <NEW_LINE> def __init__(self, translations): <NEW_LINE> <INDENT> self.t11 = translations <NEW_LINE> self.User = self.t11['user_class'] <NEW_LINE> self.user_name_key = self.t11['user_name_key'] <NEW_LINE> self.user_list_view = self.t11['user_list_... | CouchDB authenticator plugin. | 62598f61a8ecb03325870834 |
class GPGMeta(type): <NEW_LINE> <INDENT> def __new__(cls, name, bases, attrs): <NEW_LINE> <INDENT> log.debug("Metaclass __new__ constructor called for %r" % cls) <NEW_LINE> if cls._find_agent(): <NEW_LINE> <INDENT> attrs['init'] = cls.__init__ <NEW_LINE> attrs['_remove_agent'] = True <NEW_LINE> <DEDENT> return super(GP... | Metaclass for changing the :meth:GPG.__init__ initialiser.
Detects running gpg-agent processes and the presence of a pinentry
program, and disables pinentry so that python-gnupg can write the
passphrase to the controlled GnuPG process without killing the agent.
:attr _agent_proc: If a :program:`gpg-agent` process is ... | 62598f616fece00bbaccafc5 |
class SessionFactory(sessionmaker): <NEW_LINE> <INDENT> def __init__( self, force_master: Optional[Iterable[str]], force_slave: Optional[Iterable[str]], ro_engine: sqlalchemy.engine.Engine, rw_engine: sqlalchemy.engine.Engine, ): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.master_paths: Iterable[Pattern[str]... | The custom session factory that manage the read only and read write sessions. | 62598f6121a7993f00c655aa |
class WriteAccessRecord(BiffRecord): <NEW_LINE> <INDENT> _REC_ID = 0x005C <NEW_LINE> def __init__(self, owner): <NEW_LINE> <INDENT> uowner = owner[0:0x30] <NEW_LINE> uowner_len = len(uowner) <NEW_LINE> self._rec_data = pack('%ds%ds' % (uowner_len, 0x70 - uowner_len), uowner, b' '*(0x70 - uowner_len)) | This record is part of the file protection. It contains the name of the
user that has saved the file. The user name is always stored as an
equal-sized string. All unused characters after the name are filled
with space characters. It is not required to write the mentioned string
length. Every other length will ... | 62598f611d351010ab8f3176 |
class WarnedUserAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> list_display = ['user_id', 'warning_count'] <NEW_LINE> list_filter = ['warning_count'] <NEW_LINE> search_fields = ['user_id'] <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = WarnedUser | Django admin panel representation of WarnedUser model | 62598f61be8e80087fbbe68c |
class DefaultStatModel(Model1): <NEW_LINE> <INDENT> pass | The Current Default StatModel. | 62598f617c178a314d78cad0 |
class TFixedDfFixedVar(RegressionDistn): <NEW_LINE> <INDENT> n_params = 1 <NEW_LINE> scores = [TFixedDfFixedVarLogScore] <NEW_LINE> fixed_df = 3.0 <NEW_LINE> def __init__(self, params): <NEW_LINE> <INDENT> super().__init__(params) <NEW_LINE> self.loc = params[0] <NEW_LINE> self.scale = np.ones_like(self.loc) <NEW_LINE>... | Implements the student's t distribution with df=3 and var=1 for NGBoost.
The t distribution has two parameters, loc and scale, which are the
mean and standard deviation, respectively.
This distribution only has LogScore implemented for it. | 62598f61d18da76e235b6c4f |
class CleanupComment(pyblish.api.Plugin): <NEW_LINE> <INDENT> label = "Maya Cleanup" <NEW_LINE> order = 99 <NEW_LINE> hosts = ["maya"] <NEW_LINE> families = ["comment"] <NEW_LINE> optional = True <NEW_LINE> def process(self, instance): <NEW_LINE> <INDENT> from maya import cmds <NEW_LINE> if cmds.objExists(instance.name... | Clear working scene of temporal information | 62598f611d351010ab8f3177 |
class SampleDataSource: <NEW_LINE> <INDENT> def __init__(self,sampleName=None,uris=None,fileNames=None,nodeNames=None,customDownloader=None): <NEW_LINE> <INDENT> self.sampleName = sampleName <NEW_LINE> if isinstance(uris, basestring): <NEW_LINE> <INDENT> uris = [uris,] <NEW_LINE> fileNames = [fileNames,] <NEW_LINE> nod... | Can be a passed a simple strings
or lists as used in the logic below.
e.g.
dataSource = SampleData.SampleDataSource('fixed', 'http://slicer.kitware.com/midas3/download/item/157188/small-mr-eye-fixed.nrrd', 'fixed.nrrd', 'fixed')
fixed = sampleDataLogic.downloadFromSource(dataSource)[0] | 62598f6121a7993f00c655ac |
class AdvertisingFlag: <NEW_LINE> <INDENT> def __init__(self, bit_position): <NEW_LINE> <INDENT> self._bitmask = 1 << bit_position <NEW_LINE> <DEDENT> def __get__(self, obj, cls): <NEW_LINE> <INDENT> if obj is None: <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> return (obj.flags & self._bitmask) != 0 <NEW_LINE> <... | A single bit flag within an AdvertisingFlags object. | 62598f6191af0d3eaad3943c |
class Environment(object): <NEW_LINE> <INDENT> node_types = {'base': Node, 'map': MapNode, 'join': JoinNode} <NEW_LINE> def satisfy(self, *requirements): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @property <NEW_LINE> def prov(self): <NEW_LINE> <INDENT> return { 'type': get_class_info(type(self))... | Base class for all Environment classes | 62598f615166f23b2e242a0f |
class TestGroupnetSubnetExtended(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 testGroupnetSubnetExtended(self): <NEW_LINE> <INDENT> pass | GroupnetSubnetExtended unit test stubs | 62598f611f037a2d8b9e3726 |
class StatusSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Status <NEW_LINE> fields = '__all__' | tasks = serializers.SerializerMethodField()
archived = serializers.SerializerMethodField()
def get_tasks(self, Status):
user = self.context['request'].user
queryset = TaskItem.objects.filter(owner = user.id, status = Status, archived = False, event = eventId)
serializer = TaskItemSerializer(instance = que... | 62598f615e10d32532ce3402 |
class BuildRecurrentLayer(GraphBuilder): <NEW_LINE> <INDENT> def __init__(self, main_scope='test_lstm'): <NEW_LINE> <INDENT> super(BuildRecurrentLayer, self).__init__(main_scope) <NEW_LINE> <DEDENT> @use_network_graph <NEW_LINE> def define_graph(self): <NEW_LINE> <INDENT> LSTMCellConfig( builder=self, name='lstm_cell',... | Class for testing | 62598f61287bf620b62711ee |
class ClassifierTrainingJobDict(TypedDict): <NEW_LINE> <INDENT> job_id: str <NEW_LINE> algorithm_id: str <NEW_LINE> interaction_id: str <NEW_LINE> exp_id: str <NEW_LINE> exp_version: int <NEW_LINE> next_scheduled_check_time: datetime.datetime <NEW_LINE> state_name: str <NEW_LINE> status: str <NEW_LINE> training_data: T... | Dictionary that represents ClassifierTrainingJob. | 62598f61a4f1c619b294dc2a |
class Action(ActionBase): <NEW_LINE> <INDENT> name = 'ODataSchema.Action' <NEW_LINE> def _execute_http(self, connection, url, query_options, kwargs): <NEW_LINE> <INDENT> data = OrderedDict() <NEW_LINE> for key, value in kwargs.items(): <NEW_LINE> <INDENT> prop_type = self.parameters.get(key) <NEW_LINE> escaped_value = ... | Baseclass for all Actions. Should not be used directly, use the
subclass :py:class:`~odata.service.ODataService.Action` instead.
.. py:attribute:: name
Action's fully qualified name. Bound Actions are prefixed with their
schema's name (``SchemaName.ActionName``).
**Required when subclassing**
.. py:attri... | 62598f611d351010ab8f3179 |
class PlenumError(Exception): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def _prefix_msg(msg, prefix=None): <NEW_LINE> <INDENT> return "{}{}".format( "" if prefix is None else "{}: ".format(prefix), msg ) | Base exceptions class for Plenum exceptions | 62598f611d351010ab8f317a |
class LL(Model): <NEW_LINE> <INDENT> def __init__(self, length=None, l_lid=None, capacity=None, delay=None, source=None, destination=None): <NEW_LINE> <INDENT> self.swagger_types = { 'length': float, 'l_lid': str, 'capacity': LLCapacity, 'delay': float, 'source': LLSource, 'destination': LLDestination } <NEW_LINE> self... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f6130c21e258be97e33 |
class _PropertyMap(Mapping): <NEW_LINE> <INDENT> def __init__(self, properties=()): <NEW_LINE> <INDENT> dic = OrderedDict((p.key, p) for p in properties) <NEW_LINE> sortedkeys = sorted(dic, key=lambda k: Key(k).normal) <NEW_LINE> inherit = _InheritanceViewer(dic) <NEW_LINE> for key in sortedkeys: <NEW_LINE> <INDENT> di... | A map of keys to corresponding Properties; immutable, but can generate
updated copies of itself. Certain unset property attributes are
inherited from the property with the closest parent key. These
inherited attributes are: ``valid``, ``readonly`` and ``hidden``.
Uses the Property.replace mechanic to update existing p... | 62598f61ac7a0e7691f71b48 |
class AssignmentPenalty(ConfigDictMixin): <NEW_LINE> <INDENT> def __init__(self, assignment, name, backend, backend_options=None): <NEW_LINE> <INDENT> self.assignment = assignment <NEW_LINE> self.name = name <NEW_LINE> if backend not in AVAILABLE_PENALIZERS: <NEW_LINE> <INDENT> raise ValueError("Invalid penalizer backe... | Penalize students for late submissions etc. | 62598f61a8ecb0332587083a |
class WSGIXMLRPCApplication(object): <NEW_LINE> <INDENT> def __init__(self, instance=None, methods=()): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.dispatcher = SimpleXMLRPCDispatcher( allow_none=True, encoding=None ) <NEW_LINE> <DEDENT> except TypeError: <NEW_LINE> <INDENT> self.dispatcher = SimpleXMLRPCDispatch... | Application to handle requests to the XMLRPC service | 62598f614d74a7450cd589f4 |
class History(Callback): <NEW_LINE> <INDENT> def on_train_begin(self, logs=None): <NEW_LINE> <INDENT> if not hasattr(self, 'epoch'): <NEW_LINE> <INDENT> self.epoch = [] <NEW_LINE> self.history = {} <NEW_LINE> <DEDENT> <DEDENT> def on_epoch_end(self, epoch, logs=None): <NEW_LINE> <INDENT> logs = logs or {} <NEW_LINE> se... | Callback that records events into a `History` object.
This callback is automatically applied to
every Keras model. The `History` object
gets returned by the `fit` method of models. | 62598f618c3a8732951f5b89 |
class FileHandler: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.header = None <NEW_LINE> self.all_files_directory = [] <NEW_LINE> <DEDENT> def open_tsv(self, target_file, header=True): <NEW_LINE> <INDENT> with open(target_file, 'rb') as R: <NEW_LINE> <INDENT> reader = csv.reader(R, delimiter='\t') <... | General file work that you do over and over... blindly... madly... insanely... all work and no play... | 62598f61711fe17d825dfd2e |
class RandomSchedulerVmDeployer(object): <NEW_LINE> <INDENT> def __init__(self, nova_compute_obj): <NEW_LINE> <INDENT> self.nc = nova_compute_obj <NEW_LINE> <DEDENT> def deploy(self, instance, create_params, client_conf): <NEW_LINE> <INDENT> LOG.info("Deploying instance '%s'", instance['name']) <NEW_LINE> try: <NEW_LIN... | Creates VM on destination. Tries to create VM on random compute host if
failed with the one picked by nova scheduler | 62598f61507cdc57c63a43d4 |
class Titlebar(Widget): <NEW_LINE> <INDENT> event_mask = (EventMask.Exposure | EventMask.ButtonPress) <NEW_LINE> override_redirect = True <NEW_LINE> def create_window(self, **kwargs): <NEW_LINE> <INDENT> window = super(Titlebar, self).create_window(**kwargs) <NEW_LINE> self.config.button_bindings.establish_grabs(window... | A widget which displays a line of text. A titlebar need not display
a window title; it can be used for other purposes. | 62598f6130c21e258be97e34 |
class TestStatements(TestCase): <NEW_LINE> <INDENT> orkg = ORKG() <NEW_LINE> def test_by_id(self): <NEW_LINE> <INDENT> res = self.orkg.statements.by_id('S1') <NEW_LINE> self.assertTrue(res.succeeded) <NEW_LINE> <DEDENT> def test_get(self): <NEW_LINE> <INDENT> res = self.orkg.statements.get() <NEW_LINE> self.assertTrue(... | Some test scenarios might need to be adjusted to the content of the running ORKG instance | 62598f615166f23b2e242a13 |
class ISYSensorEntity(ISYNodeEntity, SensorEntity): <NEW_LINE> <INDENT> @property <NEW_LINE> def raw_unit_of_measurement(self) -> dict | str: <NEW_LINE> <INDENT> uom = self._node.uom <NEW_LINE> if isinstance(uom, list): <NEW_LINE> <INDENT> return UOM_FRIENDLY_NAME.get(uom[0], uom[0]) <NEW_LINE> <DEDENT> isy_states = UO... | Representation of an ISY994 sensor device. | 62598f61d164cc61758205b1 |
class Group: <NEW_LINE> <INDENT> def __init__(self, group): <NEW_LINE> <INDENT> self.gid, self.enabled, self.name, _, _, self.comment = group | Dataclass for group
Properties:
gid (int): Group ID
enabled (int): 1 for enabled, 0 for disabled
name (str): Group name
comment (str): Comment | 62598f6163f4b57ef008588c |
class SprintSetView(LaunchpadView): <NEW_LINE> <INDENT> implements(IRegistryCollectionNavigationMenu) <NEW_LINE> page_title = 'Meetings and sprints registered in Launchpad' <NEW_LINE> def all_batched(self): <NEW_LINE> <INDENT> return BatchNavigator(self.context.all, self.request) | View for the /sprints top level collection page. | 62598f61a8ecb0332587083c |
class RadToDeg(nn.Module): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(RadToDeg, self).__init__() <NEW_LINE> <DEDENT> def forward(self, input): <NEW_LINE> <INDENT> return rad2deg(input) | Creates an object that converts angles from radians to degrees.
Args:
tensor (Tensor): Tensor of arbitrary shape.
Returns:
Tensor: Tensor with same shape as input.
Examples::
>>> input = tgm.pi * torch.rand(1, 3, 3)
>>> output = tgm.RadToDeg()(input) | 62598f61711fe17d825dfd30 |
class Meta: <NEW_LINE> <INDENT> model = ThirdParty <NEW_LINE> fields = [ 'name', ] <NEW_LINE> formsets = { 'contacts': { 'form': lambda instance: get_contact_form(instance), 'extra': 1, 'initial': [ { 'title': 'mrs', 'name': 'initial', } ] }, } | méta informations du formulaire de création | 62598f61a4f1c619b294dc2e |
class WSGIGateway_10(WSGIGateway): <NEW_LINE> <INDENT> def get_environ(self): <NEW_LINE> <INDENT> req = self.req <NEW_LINE> env = { 'ACTUAL_SERVER_PROTOCOL': req.server.protocol, 'PATH_INFO': bton(req.path), 'QUERY_STRING': bton(req.qs), 'REMOTE_ADDR': req.conn.remote_addr or '', 'REMOTE_PORT': str(req.conn.remote_port... | A Gateway class to interface HTTPServer with WSGI 1.0.x. | 62598f61d164cc61758205b2 |
class TestRecommendation(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 testRecommendation(self): <NEW_LINE> <INDENT> pass | Recommendation unit test stubs | 62598f611d351010ab8f317d |
class VisualiserEdit(Operator): <NEW_LINE> <INDENT> bl_idname = "visualiser.edit" <NEW_LINE> bl_label = "Edit Visualiser" <NEW_LINE> func = StringProperty(default="", options={'SKIP_SAVE'}) <NEW_LINE> from_target = StringProperty(default="", options={'SKIP_SAVE'}) <NEW_LINE> to_target = StringProperty(default="", optio... | Edit Visualiser | 62598f6191af0d3eaad39442 |
class Environment(BaseEnvironment): <NEW_LINE> <INDENT> actions = [0] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> reward = None <NEW_LINE> observation = None <NEW_LINE> termination = None <NEW_LINE> self.reward_obs_term = (reward, observation, termination) <NEW_LINE> self.count = 0 <NEW_LINE> self.arms = [] <NEW... | Implements the environment for an RLGlue environment
Note:
env_init, env_start, env_step, env_cleanup, and env_message are required
methods. | 62598f61d164cc61758205b3 |
class Block(Statement): <NEW_LINE> <INDENT> def __init__(self, stmts, pragma=None, open_scope=None): <NEW_LINE> <INDENT> if len(stmts) == 1 and isinstance(stmts[0], Block): <NEW_LINE> <INDENT> super(Block, self).__init__(stmts[0].children, pragma) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> super(Block, self).__init_... | Block of statements. | 62598f614d74a7450cd589f6 |
class AcceptEvent(ChainEvent): <NEW_LINE> <INDENT> pass | A notification event signaling that a message is being accepted. | 62598f616fece00bbaccafcf |
class FkSearchInput(ForeignKeyRawIdWidget): <NEW_LINE> <INDENT> widget_template = None <NEW_LINE> search_path = '../foreignkey_autocomplete/' <NEW_LINE> class Media: <NEW_LINE> <INDENT> css = { 'all': ('autocomplete/css/jquery.autocomplete.css',) } <NEW_LINE> js = ( 'autocomplete/js/jquery.bgiframe.min.js', 'autocomple... | A Widget for displaying ForeignKeys in an autocomplete search input
instead in a <select> box. | 62598f61d18da76e235b6c53 |
class MessageTmp: <NEW_LINE> <INDENT> def __init__(self, niveau, message, formate): <NEW_LINE> <INDENT> self.niveau = niveau <NEW_LINE> self.message = message <NEW_LINE> self.message_formate = formate | Cette classe représente un message de log stocké par la fil
d'attente du Logger. | 62598f6156b00c62f0fb1ef2 |
class ArgDef(memberdef.MemberDef): <NEW_LINE> <INDENT> def __init__(self, xml = None, name = None, arg_type = None, direction = None, variant_type = None): <NEW_LINE> <INDENT> memberdef.MemberDef.__init__(self, name, arg_type) <NEW_LINE> self.direction = direction <NEW_LINE> self.variant_type = variant_type <NEW_LINE> ... | Contains the description of a argument. | 62598f61287bf620b62711f6 |
class TestCompress(unittest.TestCase): <NEW_LINE> <INDENT> def test_compress_no_changes(self): <NEW_LINE> <INDENT> entries = 100 <NEW_LINE> w_dir = tempfile.mkdtemp() <NEW_LINE> root = os.path.join(w_dir, 'db_root') <NEW_LINE> db = sorbic.db.DB(root) <NEW_LINE> data = {1:1} <NEW_LINE> for num in xrange(entries): <NEW_L... | Cover compression possibilities | 62598f6163f4b57ef008588e |
class AdminBaseHandler(BaseHandler): <NEW_LINE> <INDENT> def prepare(self): <NEW_LINE> <INDENT> if not self.current_user: <NEW_LINE> <INDENT> if self.request.method == "GET": <NEW_LINE> <INDENT> url = self.get_login_url() <NEW_LINE> if "?" not in url: <NEW_LINE> <INDENT> url += "?" + urllib.urlencode(dict(next=self.req... | Administrator base handler.
It's a shortcut of decorators.admin for every method(get, post, head etc),
so we need not write decorators.admin everywhere. | 62598f613eb6a72ae0389c80 |
class GatewayRouteListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[GatewayRoute]'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(GatewayRouteListResult, self).__init__(**kwargs) <NEW_LINE> self.value = kwargs.get('value', None) | List of virtual network gateway routes.
:param value: List of gateway routes.
:type value: list[~azure.mgmt.network.v2019_02_01.models.GatewayRoute] | 62598f6121a7993f00c655b5 |
class SummaryBox(BoxLayout): <NEW_LINE> <INDENT> product_line = StringProperty() <NEW_LINE> product_info_line = StringProperty() <NEW_LINE> product_list_desc = StringProperty('LISTADO DE PRODUCTOS EN PUNTO DE CONSUMO') <NEW_LINE> product_list = StringProperty() <NEW_LINE> total_products_desc = StringProperty('NUMERO TO... | SummaryBox class: contains basic information of inventory, | 62598f61ff9c53063f519c90 |
class Image(File): <NEW_LINE> <INDENT> def __init__(self, onlyOpen=False, *args, **kw): <NEW_LINE> <INDENT> super().__init__(*args, **kw) <NEW_LINE> self.onlyOpen = onlyOpen <NEW_LINE> <DEDENT> def fromUnicode(self, value): <NEW_LINE> <INDENT> if value.lower().endswith('.svg') or value.lower().endswith('.svgz'): <NEW_L... | Similar to the file File attribute, except that an image is internally
expected. | 62598f616e29344779affc97 |
class RSSCategoryCreateView(RSSCategoryModelView, CreateView): <NEW_LINE> <INDENT> pass | CreateView for RSSCategory Objects. | 62598f6130c21e258be97e3b |
class AstVisitorType(type): <NEW_LINE> <INDENT> def __new__(mcs, classname, bases, class_dict): <NEW_LINE> <INDENT> switch = {} <NEW_LINE> post_switch = {} <NEW_LINE> for obj in class_dict.itervalues(): <NEW_LINE> <INDENT> for n in getattr(obj, "node_types", []): <NEW_LINE> <INDENT> switch[n] = obj <NEW_LINE> <DEDENT> ... | The meta class for AST visitors.
During class creation, the meta class will look for methods annotated as node handlers
and store them in a dictionary. The handler for node can be retrieved using the method
`switch`. | 62598f6163f4b57ef008588f |
class LibraryDriver(Driver): <NEW_LINE> <INDENT> LIBRARY_NAME = '' <NEW_LINE> LIBRARY_PREFIX = '' <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> library_name = kwargs.pop('library_name', None) <NEW_LINE> super().__init__(*args, **kwargs) <NEW_LINE> folder = os.path.dirname(inspect.getfile(self.__cl... | Base class for drivers that communicate with instruments
calling a library (dll or others)
To use this class you must override LIBRARY_NAME | 62598f61796e427e5384ddd2 |
class UserProfileFeedViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> authentication_classes = (TokenAuthentication,) <NEW_LINE> serializer_class = serializers.ProfileFeedItemSerializer <NEW_LINE> queryset = models.ProfileFeedItem.objects.all() <NEW_LINE> permission_classes = (permissions.PostOwnStatus, IsAuthentica... | Handles creating, reading and updating profiles feed items. | 62598f611d351010ab8f3183 |
class FigureProcessor(object): <NEW_LINE> <INDENT> def __init__(self, filename, outfile='/dev/stdout'): <NEW_LINE> <INDENT> self.chapter = 0 <NEW_LINE> self.figure = 0 <NEW_LINE> self.filename = filename <NEW_LINE> self.outfile = outfile <NEW_LINE> self.dirname = os.path.dirname(filename) or '.' <NEW_LINE> self.in_appe... | ORM Manuscript Figure List processor. | 62598f6191af0d3eaad39448 |
class LabelSmoothing(nn.Module): <NEW_LINE> <INDENT> def __init__(self, size, padding_idx, smoothing=0.0): <NEW_LINE> <INDENT> super(LabelSmoothing, self).__init__() <NEW_LINE> self.criterion = nn.KLDivLoss(size_average=False) <NEW_LINE> self.padding_idx = padding_idx <NEW_LINE> self.confidence = 1.0 - smoothing <NEW_L... | Implement Label Smoothing | 62598f6156b00c62f0fb1ef6 |
class HTMLHandler(ContentHandler): <NEW_LINE> <INDENT> def __init__(self, page): <NEW_LINE> <INDENT> ContentHandler.__init__(self) <NEW_LINE> self._dbms = None <NEW_LINE> self._page = page <NEW_LINE> self.dbms = None <NEW_LINE> <DEDENT> def _markAsErrorPage(self): <NEW_LINE> <INDENT> threadData = getCurrentThreadData()... | This class defines methods to parse the input HTML page to
fingerprint the back-end database management system | 62598f61bf627c535bcb0ac0 |
class CollectiveGuestbookEnabled(ExtensionField, BooleanField): <NEW_LINE> <INDENT> pass | A Guestbook enabled/disabled field. | 62598f61287bf620b62711fa |
class UsersManager(AbstractUser): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> db_table = 'user_manager' <NEW_LINE> <DEDENT> user_id = models.AutoField( verbose_name='ユーザーID', unique=True, primary_key=True, ) <NEW_LINE> username = models.CharField( verbose_name='ユーザー名', blank=False, unique=True, max_length=50, )... | ユーザー管理モデル | 62598f615e10d32532ce3408 |
class ConflictWarning(UserWarning): <NEW_LINE> <INDENT> pass | An warning that tells conflicts of some arguments. | 62598f618c3a8732951f5b92 |
class OrganizationPluginModelTestCase(TestCase): <NEW_LINE> <INDENT> longMessage = True <NEW_LINE> def test_model(self): <NEW_LINE> <INDENT> obj = OrganizationPluginModelFactory() <NEW_LINE> self.assertTrue(obj.pk, msg=( 'Should be able to instantiate and save the model.')) | Tests for the ``OrganizationPluginModel`` model. | 62598f611d351010ab8f3184 |
class ApduError(CommandError): <NEW_LINE> <INDENT> def __init__(self, data: bytes, sw: int): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> self.sw = sw <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return f"APDU error: SW=0x{self.sw:04x}" | Thrown when an APDU response has the wrong SW code | 62598f61d164cc61758205b9 |
class MaxHeap(object): <NEW_LINE> <INDENT> def __init__(self, raw_array): <NEW_LINE> <INDENT> self.array = raw_array <NEW_LINE> self.heap_size = len(self.array) <NEW_LINE> <DEDENT> def parent(self, i): <NEW_LINE> <INDENT> return int(((i + 1) / 2) - 1) <NEW_LINE> <DEDENT> def left(self, i): <NEW_LINE> <INDENT> return in... | 这个类的实现, 完全基于<算法导论 第六章 - 第三版>
The implementation of this class is based on <Introduction to Algorithms - Third Edition> | 62598f61796e427e5384ddd4 |
class MateriasView(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Materia.objects.all() <NEW_LINE> serializer_class = MateriaSerializer | Provides a get method handler. | 62598f610383005118f6cd49 |
class ForwardApproach(CameraTarget): <NEW_LINE> <INDENT> def on_first_run(self, current_size, current_x, target_size, depth_bounds=(None, None), *args, **kwargs): <NEW_LINE> <INDENT> self.pid_loop_x = PIDLoop(output_function=RelativeToCurrentHeading(), negate=True) <NEW_LINE> self.pid_loop_x_vel = PIDLoop(output_functi... | pid loop for approaching a point until it is a target size
uses heading and x velocity | 62598f61d164cc61758205ba |
class _DelayedJsonResource(_JsonResource): <NEW_LINE> <INDENT> def __init__(self, result, executed, result_defer, *args, **kwargs): <NEW_LINE> <INDENT> _JsonResource.__init__(self, result, executed, *args, **kwargs) <NEW_LINE> self._result_defer = result_defer <NEW_LINE> <DEDENT> def _cb(self, result, request): <NEW_LI... | If your API method returned `Deferred` object instead of final result
we can wait for the result and then return it in API response. | 62598f613eb6a72ae0389c84 |
class ModelTest(TestCase): <NEW_LINE> <INDENT> klass = None <NEW_LINE> attrs = {} <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> load_app() <NEW_LINE> setup_db() <NEW_LINE> """Setup test fixture for each model test method.""" <NEW_LINE> if self.attrs: <NEW_LINE> <INDENT> try: <NEW_LINE> <IND... | Base unit test case for the models. | 62598f6191af0d3eaad3944a |
class BaseRecorder(object, metaclass=abc.ABCMeta): <NEW_LINE> <INDENT> @abc.abstractmethod <NEW_LINE> @contextlib.contextmanager <NEW_LINE> def session(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def close(self): <NEW_LINE> <INDENT> pass | Base class for recorders.
Recorders are designed to be passed to a :class:`.http.client.Client`. | 62598f611f037a2d8b9e3734 |
class PriceDiscountModelAdmin(object): <NEW_LINE> <INDENT> pass | 价格优惠公式 | 62598f61be8e80087fbbe69c |
class StickyState(SectionView): <NEW_LINE> <INDENT> messages: Dict[str, StickyData] | :ivar messages: Dictionary of channel ID -> data. See also :class:`StickyData`. This is stored
in JSON as a list, and converted at access time into a dict for efficiency of lookup. | 62598f61ff9c53063f519c94 |
class FullyConnected: <NEW_LINE> <INDENT> def __init__(self, latent_dimension=10, hidden_layers=3, non_lin='leaky_relu', input_dim=None, output_dim=None, name='encoder'): <NEW_LINE> <INDENT> self.latent_dimension = latent_dimension <NEW_LINE> self.hidden_layers = hidden_layers <NEW_LINE> self.name = name <NEW_LINE> sel... | Simple fully connected block | 62598f6130c21e258be97e3f |
class IngredientSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Ingredient <NEW_LINE> fields = ('id', 'name',) <NEW_LINE> read_only_fields = ('id',) | serializer for ingredient objects. | 62598f611d351010ab8f3186 |
class DictParamEncoder(JSONEncoder): <NEW_LINE> <INDENT> def default(self, obj): <NEW_LINE> <INDENT> if isinstance(obj, FrozenOrderedDict): <NEW_LINE> <INDENT> return obj.get_wrapped() <NEW_LINE> <DEDENT> return json.JSONEncoder.default(self, obj) | JSON encoder for :py:class:`~DictParameter`, which makes :py:class:`~FrozenOrderedDict` JSON serializable. | 62598f61796e427e5384ddd6 |
class CorruptMissingValue(CorruptValue): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.missing_val = '' <NEW_LINE> self.name = 'Missing value' <NEW_LINE> def dummy_position(s): <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> base_kwargs = {} <NEW_LINE> for (keyword, value) in kwargs... | A corruptor method which simply sets an attribute value to a missing
value.
The additional argument (besides the base class argument
'position_function') that has to be set when this attribute type is
initialised are:
missing_val The string which designates a missing value. Default value
is the empty st... | 62598f614d74a7450cd589fa |
class SurfaceHandleException(AocUtilsException): <NEW_LINE> <INDENT> pass | Surface handle exception | 62598f6130c21e258be97e40 |
class Info(object): <NEW_LINE> <INDENT> def __init__(self, key, before, after): <NEW_LINE> <INDENT> self.key = key <NEW_LINE> self.before = _convert_before_after(before) <NEW_LINE> self.after = _convert_before_after(after) | Toposorted info helper.
Base class that helps with toposorted. ``before`` and ``after``
can be lists of keys, or a single key, or ``None``. | 62598f61507cdc57c63a43e0 |
class RunModelMixin(TimeStampedModelMixin): <NEW_LINE> <INDENT> id = models.AutoField(primary_key=True, editable=False) <NEW_LINE> uid = models.UUIDField(unique=True, default=uuid.uuid4, editable=False) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> abstract = True | Mixin for task runs. | 62598f61287bf620b62711fd |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.