code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class AssociatedObject(Object): <NEW_LINE> <INDENT> superclass = Object <NEW_LINE> def __init__(self, defined_object=None, type_=None, association_type=None): <NEW_LINE> <INDENT> super(AssociatedObject, self).__init__(defined_object, type_) <NEW_LINE> self.association_type = association_type <NEW_LINE> <DEDENT> def to_... | The CybOX Associated Object element.
Currently only supports the id, association_type and ObjectProperties properties | 6259907e97e22403b383c975 |
class WatcherListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[Watcher]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(WatcherListResult, self).__init__(**kwargs) <NEW_LINE> self.... | The response model for the list watcher operation.
:param value: Gets or sets a list of watchers.
:type value: list[~azure.mgmt.automation.models.Watcher]
:param next_link: Gets or sets the next link.
:type next_link: str | 6259907e1f5feb6acb16466e |
class AlarmObjectFile(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'alarmobjectfile' <NEW_LINE> __table_args__ = {'extend_existing': True} <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> object_id = db.Column(db.Integer, db.ForeignKey('alarmobjects.id')) <NEW_LINE> filename = db.Column(db.String(80... | Files for alarmobjects | 6259907e3617ad0b5ee07bc4 |
class QueryError(ProcessError): <NEW_LINE> <INDENT> area = "QUERY" | Process errors that are related to processing queries. | 6259907eaad79263cf43022f |
class Solution: <NEW_LINE> <INDENT> def binary_search(self, ordered_nums: list, target) -> int: <NEW_LINE> <INDENT> start_index = 0 <NEW_LINE> end_index = len(ordered_nums) <NEW_LINE> while True: <NEW_LINE> <INDENT> if end_index == 0: <NEW_LINE> <INDENT> return -1 <NEW_LINE> <DEDENT> mid_index = (start_index + end_inde... | 边界逻辑混乱,不推荐 | 6259907e66673b3332c31e75 |
class StaleGlobalConfigError(TransientError): <NEW_LINE> <INDENT> def __init__(self, msg): <NEW_LINE> <INDENT> TransientError.__init__(self, msg) | Thrown if the GlobalConfig is older than the requester's. | 6259907e283ffb24f3cf5316 |
class Room(models.Model): <NEW_LINE> <INDENT> creater = models.ForeignKey(User, verbose_name='Создатель', on_delete=models.CASCADE) <NEW_LINE> invited = models.ManyToManyField(User, verbose_name='Участники', related_name='invited_user') <NEW_LINE> date = models.DateTimeField('Дата создания', auto_now_add=True) <NEW_LIN... | Модель комнаты чата | 6259907e167d2b6e312b82cf |
class ShowPartition(ShowCommand): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(ShowPartition, self).__init__(*args, **kwargs) <NEW_LINE> self.command = "show part" <NEW_LINE> self.start_key = "ID" | Show Partition.
show part [part={partition-IDs} | lv={LV-IDs}] [-l] | 6259907e99fddb7c1ca63b13 |
class ShowPlatformSoftwareDpidIndex(ShowPlatformSoftwareDpidIndexSchema): <NEW_LINE> <INDENT> cli_command = 'show platform software dpidb index' <NEW_LINE> def cli(self, output=None,): <NEW_LINE> <INDENT> if output is None: <NEW_LINE> <INDENT> out = self.device.execute(self.cli_command) <NEW_LINE> <DEDENT> else: <NEW_L... | parser for :
show platform software dpidb index | 6259907e7d43ff2487428150 |
@inherit_doc <NEW_LINE> class _PowerIterationClusteringParams(HasMaxIter, HasWeightCol): <NEW_LINE> <INDENT> k: Param[int] = Param( Params._dummy(), "k", "The number of clusters to create. Must be > 1.", typeConverter=TypeConverters.toInt, ) <NEW_LINE> initMode: Param[str] = Param( Params._dummy(), "initMode", "The ini... | Params for :py:class:`PowerIterationClustering`.
.. versionadded:: 3.0.0 | 6259907e23849d37ff852b2f |
class PolicyLoadMessage(AuditMessage): <NEW_LINE> <INDENT> def __init__(self, message): <NEW_LINE> <INDENT> AuditMessage.__init__(self, message) | Audit message indicating that the policy was reloaded. | 6259907e26068e7796d4e3b6 |
class HasMaxIter(Params): <NEW_LINE> <INDENT> maxIter: "Param[int]" = Param( Params._dummy(), "maxIter", "max number of iterations (>= 0).", typeConverter=TypeConverters.toInt, ) <NEW_LINE> def __init__(self) -> None: <NEW_LINE> <INDENT> super(HasMaxIter, self).__init__() <NEW_LINE> <DEDENT> def getMaxIter(self) -> int... | Mixin for param maxIter: max number of iterations (>= 0). | 6259907e97e22403b383c977 |
class HCBlock(nn.Module): <NEW_LINE> <INDENT> def __init__(self, n_in, out_sz=256): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.conv = nn.Conv2d(n_in, 16, 1) <NEW_LINE> self.bn = nn.BatchNorm2d(16) <NEW_LINE> self.out_sz = out_sz <NEW_LINE> <DEDENT> def forward(self, x): <NEW_LINE> <INDENT> x = F.relu(self.c... | Hypercolumn block - reduces num of channels and interpolates | 6259907e099cdd3c63676135 |
class AppError(Exception): <NEW_LINE> <INDENT> pass | 标记由当前应用(而非第三方库)抛出的,但可以恢复的普通错误。
该错误应该由接触第三方接口的 DAO、client 等模块抛出,然后由最上层处理。 | 6259907ebe7bc26dc9252b91 |
class LogAnalyticsOperationResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'properties': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'properties': {'key': 'properties', 'type': 'LogAnalyticsOutput'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(LogAnalyticsOpera... | LogAnalytics operation status response.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar properties: LogAnalyticsOutput.
:vartype properties: ~azure.mgmt.compute.v2021_04_01.models.LogAnalyticsOutput | 6259907e2c8b7c6e89bd525d |
class NoGlobalSettingError(RuntimeError): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> super(NoGlobalSettingError, self).__init__( "Git on this system has no global setting '%s'" % name) | Raised when the requested global setting does not exist. Subclasses
:exc:`RuntimeError`. | 6259907e8a349b6b43687cd4 |
class TestInsight(EntityTestHelpers): <NEW_LINE> <INDENT> @pytest.fixture <NEW_LINE> def pywemo_model(self): <NEW_LINE> <INDENT> return "Insight" <NEW_LINE> <DEDENT> @pytest.fixture <NEW_LINE> def wemo_entity_suffix(self): <NEW_LINE> <INDENT> return InsightBinarySensor._name_suffix.lower() <NEW_LINE> <DEDENT> @pytest.f... | Test for the pyWeMo Insight device. | 6259907e7cff6e4e811b74b8 |
class crm_phonecall2partner(osv.osv_memory): <NEW_LINE> <INDENT> _name = 'crm.phonecall2partner' <NEW_LINE> _inherit = 'crm.lead2partner' <NEW_LINE> _description = 'Phonecall to Partner' <NEW_LINE> def _select_partner(self, cr, uid, context=None): <NEW_LINE> <INDENT> if context is None: <NEW_LINE> <INDENT> context = {}... | Converts phonecall to partner | 6259907ea05bb46b3848be64 |
class StmtexprHandler(IndentSyntaxNodeHandler): <NEW_LINE> <INDENT> pass | Handler for Stmtexpr nodes. Do nothing. | 6259907e091ae356687066b7 |
class ModifyCluster: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.root = ROOT <NEW_LINE> self.content_type = CONTENT_TYPE <NEW_LINE> <DEDENT> def add_node(self, ip, x_api_session, cluster_object, vios_id): <NEW_LINE> <INDENT> log.log_debug("adding a node to a cluster process starting") <NEW_LINE> li... | adds a vios node to the existing cluster | 6259907e1b99ca4002290271 |
class SlackBuilder: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def mentor_request(channel, details, attachment, matches, **kwargs): <NEW_LINE> <INDENT> return ResponseContainer(route="Slack", method="mentor_request", payload=dict(channel=channel, first=kwargs, attachment=attachment, matches=matches, second=details)) ... | user_id and flattened dict get passed | 6259907e4527f215b58eb6dc |
class TestAwsClassicElbServiceLimitsCollectorAttribute(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 testAwsClassicElbServiceLimitsCollectorAttribute(self): <NEW_LINE> <INDENT> pass | AwsClassicElbServiceLimitsCollectorAttribute unit test stubs | 6259907e92d797404e389898 |
class PReLU(base.Layer): <NEW_LINE> <INDENT> def __init__(self, alpha_initializer=init_ops.zeros_initializer(), alpha_regularizer=None, activity_regularizer=None, alpha_constraint=lambda x: clip_ops.clip_by_value(x, 0., 1.), shared_axes=None, trainable=True, name=None, **kwargs): <NEW_LINE> <INDENT> super().__init__( t... | Parametric Rectified Linear Unit.
It follows:
`f(x) = alpha * x for x < 0`,
`f(x) = x for x >= 0`,
where `alpha` is a learned array with the same shape as x.
Input shape:
Arbitrary. Use the keyword argument `input_shape`
(tuple of integers, does not include the samples axis)
when using this layer as the first l... | 6259907e5fc7496912d48fa7 |
class TooShortReadFilter(object): <NEW_LINE> <INDENT> name = "too_short" <NEW_LINE> def __init__(self, minimum_length): <NEW_LINE> <INDENT> self.minimum_length = minimum_length <NEW_LINE> <DEDENT> def __call__(self, read): <NEW_LINE> <INDENT> return len(read) < self.minimum_length | Returns True if the read sequence is shorter than `minimum_length`.
| 6259907e91f36d47f2231bca |
class InterpND(object): <NEW_LINE> <INDENT> def __init__(self, xv, fxv, dfxv=None, xg=None, fpxg=None, dfpxg=None, beta=None, gamma=None, N=None, l=1, verbose=1): <NEW_LINE> <INDENT> pass | Interpolation in multi-dimensional space.
xv is the ``value data points'', i.e. the points
where the function value is available and given
by fxv; dfxv estimates the standard deviation of
the error in the function values; the default of
dfxv is 0 (fxv is exact).
xg is the ``gradient data points'', i.e. points
... | 6259907e796e427e538501f3 |
class Section(models.Model): <NEW_LINE> <INDENT> type = models.PositiveSmallIntegerField() <NEW_LINE> testpaper = models.ForeignKey(Test_Paper) <NEW_LINE> label = models.CharField(max_length=30) <NEW_LINE> note = models.CharField(max_length=50) <NEW_LINE> is_show_section_header = models.BooleanField(default=True) <NEW_... | type: 分卷类别,分卷I或者分卷II
testpaper: 对应试卷类别
label: 对应卷标
note: 对应卷注
question_type_order: 分卷对应的题型顺序,以字符串顺序存储PaperQuestionType的id
is_show_section_header: 是否显示分卷头部 | 6259907e1f5feb6acb164672 |
class BucketFactory(object): <NEW_LINE> <INDENT> BUCKET_CLASS = staticmethod(Bucket) <NEW_LINE> @classmethod <NEW_LINE> def from_api_response(cls, api, response): <NEW_LINE> <INDENT> return [cls.from_api_bucket_dict(api, bucket_dict) for bucket_dict in response['buckets']] <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> de... | This is a factory for creating bucket objects from different kind of objects. | 6259907ee1aae11d1e7cf54e |
class MatPlotView(BoxLayout, VirtualWindowRootView): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self.last_image = None <NEW_LINE> matplotlib.use('agg') <NEW_LINE> self.figure_data = FigureData() <NEW_LINE> self.image_view = AdvancedImage() <NEW_LINE> self... | Displays a matplotlib figure | 6259907e4c3428357761bd33 |
class Button(): <NEW_LINE> <INDENT> max = 100 <NEW_LINE> ramp_time = 0.5 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.last = False <NEW_LINE> self.value = 0 <NEW_LINE> <DEDENT> def update(self, now): <NEW_LINE> <INDENT> if now is not self.last: <NEW_LINE> <INDENT> self.last = now <NEW_LINE> self.value = 0 <N... | Imitates joystick behavior by gradually increasing the value | 6259907ef548e778e596d00b |
class ADMMPeakFinder(CSDeconPeakFinder): <NEW_LINE> <INDENT> def __init__(self, parameters = None, **kwds): <NEW_LINE> <INDENT> super(ADMMPeakFinder, self).__init__(parameters = parameters, **kwds) <NEW_LINE> self.admm_iterations = parameters.getAttr("admm_iterations") <NEW_LINE> self.admm_lambda = parameters.getAttr("... | ADMM deconvolution peak finding. | 6259907e7cff6e4e811b74ba |
class Measure(BessModule): <NEW_LINE> <INDENT> def __init__( self, offset: uint64 = ..., jitter_sample_prob: double = ..., latency_ns_max: uint64 = ..., latency_ns_resolution: uint32 = ..., name: str = ... ): <NEW_LINE> <INDENT> ... <NEW_LINE> <DEDENT> def get_summary( self, clear: bool = ..., latency_percentiles: List... | measures packet latency (paired with Timestamp module)
The measure module tracks latencies, packets per second, and other statistics.
It should be paired with a Timestamp module, which attaches a timestamp to packets.
The measure module will log how long (in nanoseconds) it has been for each packet it received since i... | 6259907e4428ac0f6e659fa8 |
class BufferedWriter(BaseWriter): <NEW_LINE> <INDENT> bufsize = 4096 <NEW_LINE> def __init__(self, raw, logger, bufsize = None): <NEW_LINE> <INDENT> super().__init__(raw, logger) <NEW_LINE> if bufsize: <NEW_LINE> <INDENT> self.bufsize = bufsize <NEW_LINE> <DEDENT> self.buffer = None <NEW_LINE> <DEDENT> def write(self, ... | A wrapper to buffer data to avoid small pieces of data. | 6259907eaad79263cf430234 |
class Vbox(BaseScreen): <NEW_LINE> <INDENT> NAME = 'VirtualBox' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.logger = logging.getLogger() <NEW_LINE> self.logger.info('initialising screen...') <NEW_LINE> self.vbox = virtualbox.VirtualBox() <NEW_LINE> self.vm = self.vbox.machines[0] <NEW_LINE> self.vm_session ... | Vbox screen provider | 6259907e67a9b606de5477e3 |
class Classroom(object): <NEW_LINE> <INDENT> def __init__(self, ID): <NEW_LINE> <INDENT> self.teacher = None <NEW_LINE> self.subject = None <NEW_LINE> self.fee = None <NEW_LINE> self.free_places = None <NEW_LINE> self.ID = ID | This class represents a 'classroom-class' at the university.
Attributes:
1. teacher : The teacher
2. subject : Subject being taught
3. fee : The fee to attend the class
4. free_places : The number of free places in the classroom. | 6259907e23849d37ff852b33 |
class SpacedLinkExtension(markdown.Extension): <NEW_LINE> <INDENT> def extendMarkdown(self, md, md_globals): <NEW_LINE> <INDENT> md.inlinePatterns['link'] = markdown.inlinepatterns.LinkPattern(SPACED_LINK_RE, md) <NEW_LINE> md.inlinePatterns['reference'] = markdown.inlinepatterns.ReferencePattern(... | An extension that supports links and images with additional whitespace. | 6259907e5fc7496912d48fa8 |
class FastEncodingBuffer: <NEW_LINE> <INDENT> def __init__(self, encoding=None, errors="strict"): <NEW_LINE> <INDENT> self.data = collections.deque() <NEW_LINE> self.encoding = encoding <NEW_LINE> self.delim = "" <NEW_LINE> self.errors = errors <NEW_LINE> self.write = self.data.append <NEW_LINE> <DEDENT> def truncate(s... | a very rudimentary buffer that is faster than StringIO,
and supports unicode data. | 6259907e4f88993c371f125f |
class BBFileLikeObjectWriter(NSObject): <NEW_LINE> <INDENT> def initWithFileLikeObject_(self, fileobj): <NEW_LINE> <INDENT> self = super().init() <NEW_LINE> self.__fileobj = fileobj <NEW_LINE> return self <NEW_LINE> <DEDENT> initWithFileLikeObject_ = objc.selector(initWithFileLikeObject_, signature=b"@@:@") <NEW_LINE> ... | Provides a suitable delegate class for the BBDelegatingOutputStream class in
LightAquaBlue.framework.
This basically provides a wrapper for a python file-like object so that it
can be written to through a NSOutputStream. | 6259907e63b5f9789fe86be2 |
class Topic(BrowserView): <NEW_LINE> <INDENT> def url(self, item): <NEW_LINE> <INDENT> context_url = "" <NEW_LINE> putils = getToolByName(self.context, 'plone_utils') <NEW_LINE> if putils.isDefaultPage(self.context): <NEW_LINE> <INDENT> context_url = self.context.aq_inner.aq_parent.absolute_url() <NEW_LINE> <DEDENT> el... | Lets render the target throw aquisition | 6259907ef548e778e596d00d |
class BaseDataLakeBucket(s3.Bucket): <NEW_LINE> <INDENT> def __init__(self, scope: core.Construct, deploy_env: Environment, layer: DataLakeLayer, **kwargs) -> None: <NEW_LINE> <INDENT> self.deploy_env = deploy_env <NEW_LINE> self.layer = layer <NEW_LINE> self.obj_name = f's3-contatolucas-{self.deploy_env.value}-data-la... | Base class to create a data lake bucket | 6259907e55399d3f05627f90 |
class CircularSection(SectionProperties): <NEW_LINE> <INDENT> r= 0.0 <NEW_LINE> def __init__(self,name,Rext,Rint=0): <NEW_LINE> <INDENT> super(CircularSection,self).__init__(name) <NEW_LINE> self.Rext= Rext <NEW_LINE> self.Rint=Rint <NEW_LINE> <DEDENT> def A(self): <NEW_LINE> <INDENT> return math.pi*(self.Rext*self.Rex... | Geometric parameters of a circular or circular hollow section
:ivar Rext: external radius
:ivar Rint: internal radius (defaults to 0)
| 6259907e7cff6e4e811b74bc |
class CountCalls(object): <NEW_LINE> <INDENT> __instances = {} <NEW_LINE> def __init__(self, f): <NEW_LINE> <INDENT> self.__f = f <NEW_LINE> self.__numcalls = 0 <NEW_LINE> CountCalls.__instances[f] = self <NEW_LINE> <DEDENT> def __call__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.__numcalls += 1 <NEW_LINE> return... | Decorator that keeps track of the number of times a function is called. | 6259907e4527f215b58eb6de |
class CustomArgParser(argparse.ArgumentParser): <NEW_LINE> <INDENT> def error(self, message): <NEW_LINE> <INDENT> sys.stderr.write('error: %s\n' % message) <NEW_LINE> self.print_help() <NEW_LINE> sys.exit(2) | Class overriden | 6259907e92d797404e38989a |
class XPathSelectorList(list): <NEW_LINE> <INDENT> def __getslice__(self, i, j): <NEW_LINE> <INDENT> return XPathSelectorList(list.__getslice__(self, i, j)) <NEW_LINE> <DEDENT> def select(self, xpath): <NEW_LINE> <INDENT> return XPathSelectorList(flatten([x.select(xpath) for x in self])) <NEW_LINE> <DEDENT> def re(self... | List of XPathSelector objects | 6259907ef548e778e596d00e |
class BaseFilter(object): <NEW_LINE> <INDENT> def _filter_one(self, obj, pod_group): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> def filter_all(self, filter_obj_list, pod_group): <NEW_LINE> <INDENT> for obj in filter_obj_list: <NEW_LINE> <INDENT> if self._filter_one(obj, pod_group): <NEW_LINE> <INDENT> yield ob... | Base class for all pod filter classes. | 6259907e76e4537e8c3f0ffc |
class DataExport(FolioApi): <NEW_LINE> <INDENT> def set_export(self, export: dict): <NEW_LINE> <INDENT> return self.call("POST", "/data-export/export", data=export) <NEW_LINE> <DEDENT> def set_quickExport(self, quickExport: dict): <NEW_LINE> <INDENT> return self.call("POST", "/data-export/quick-export", data=quickExpor... | Data export API
API for exporting MARC records | 6259907e4f88993c371f1260 |
class projfeat3d(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_planes, out_planes, stride): <NEW_LINE> <INDENT> super(projfeat3d, self).__init__() <NEW_LINE> self.stride = stride <NEW_LINE> self.conv1 = nn.Conv2d(in_planes, out_planes, (1, 1), padding=( 0, 0), stride=stride[:2], bias=False) <NEW_LINE> self.bn =... | Turn 3d projection into 2d projection | 6259907e1f5feb6acb164676 |
class TravelOptionUpdateSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> drive = serializers.JSONField(validators=[validate_drive_option]) <NEW_LINE> transit = serializers.JSONField(validators=[validate_transit_option]) <NEW_LINE> uber = serializers.JSONField(validators=[validate_uber_option]) <NEW_LINE> cl... | We use this serializer to write calculated travel options back to database. | 6259907e4c3428357761bd37 |
class BaseConverter(object): <NEW_LINE> <INDENT> netjson_key = None <NEW_LINE> intermediate_key = None <NEW_LINE> def __init__(self, backend): <NEW_LINE> <INDENT> self.backend = backend <NEW_LINE> self.netjson = backend.config <NEW_LINE> self.intermediate_data = backend.intermediate_data <NEW_LINE> <DEDENT> @classmetho... | Base Converter class
Converters are used to convert a configuration dictionary
which represent a NetJSON object to a data structure that
can be easily rendered as the final router configuration
and vice versa. | 6259907ee1aae11d1e7cf550 |
class Job: <NEW_LINE> <INDENT> def __init__(self,files=None): <NEW_LINE> <INDENT> self.solved = False <NEW_LINE> self.unloaded = False <NEW_LINE> self.config = {} <NEW_LINE> self.solver = SimFDTD() <NEW_LINE> self.unload() <NEW_LINE> self.load(files) <NEW_LINE> <DEDENT> def load(self, files = None): <NEW_LINE> <INDENT>... | Specifies, configures, and runs a simulation. | 6259907e5166f23b2e244e55 |
class SingletonCreator(type): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def singleton_decorator(func): <NEW_LINE> <INDENT> @wraps(func) <NEW_LINE> def wrapper(*args, **kwargs): <NEW_LINE> <INDENT> if args[0].sl_init: <NEW_LINE> <INDENT> return func(*args, **kwargs) <NEW_LINE> <DEDENT> <DEDENT> return wrapper <NEW_LI... | This metaclass wraps __init__ method of created class with singleton_decorator.
This ensures that it's impossible to mess up the instance for example by
calling __init__ with getattr. | 6259907ebf627c535bcb2f4f |
class UserData(Resource): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> @auth.login_required <NEW_LINE> def get(): <NEW_LINE> <INDENT> return util.load_user_data(g.user.user_id) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> @auth.login_required <NEW_LINE> def put(): <NEW_LINE> <INDENT> retval = defaultdict(lambda: defaul... | Manage a user's saved data, i.e. colors and color lists. Requires
authentication. | 6259907e4527f215b58eb6df |
class SemesterResultDetail(DetailView): <NEW_LINE> <INDENT> model = Result <NEW_LINE> template_name = "cbt/semester_result.html" <NEW_LINE> context_object_name = "result" <NEW_LINE> def get_object(self): <NEW_LINE> <INDENT> return get_object_or_404( Result, user=self.request.user.userdetail, level=self.kwargs.get('leve... | Returns the matched semester result. | 6259907e92d797404e38989b |
class ActionExecutionSchedulingQueueItemDB( stormbase.StormFoundationDB, stormbase.ChangeRevisionFieldMixin ): <NEW_LINE> <INDENT> RESOURCE_TYPE = ResourceType.EXECUTION_REQUEST <NEW_LINE> UID_FIELDS = ["id"] <NEW_LINE> liveaction_id = me.StringField( required=True, help_text="Foreign key to the LiveActionDB which is t... | A model which represents a request for execution to be scheduled.
Those models are picked up by the scheduler and scheduled to be ran by an action
runner. | 6259907e7b180e01f3e49da4 |
class DgtCn(DgtDisplayIface): <NEW_LINE> <INDENT> def __init__(self, dgtboard: DgtBoard): <NEW_LINE> <INDENT> super(DgtCn, self).__init__(dgtboard) <NEW_LINE> MsgDisplay.show(Message.DGT_CLOCK_VERSION(main=2, sub=2, dev='i2c', text=None)) <NEW_LINE> <DEDENT> def display_text_on_clock(self, message): <NEW_LINE> <INDENT>... | Handle the DgtXL/3000 communication. | 6259907e3317a56b869bf285 |
class PailgunHandler(PailgunHandlerBase): <NEW_LINE> <INDENT> def _run_pants(self, sock, arguments, environment): <NEW_LINE> <INDENT> runner = self.server.runner_factory(sock, arguments, environment) <NEW_LINE> runner.run() <NEW_LINE> <DEDENT> def handle(self): <NEW_LINE> <INDENT> _, _, arguments, environment = Nailgun... | A nailgun protocol handler for use with forking, SocketServer-based servers. | 6259907e656771135c48ad6f |
class SpotifyPlaylist: <NEW_LINE> <INDENT> SPLIT_MAX = 100 <NEW_LINE> def __init__( self, playlist_id: str, session: spotipy.Spotify, username: str, ): <NEW_LINE> <INDENT> self._playlist_id = playlist_id <NEW_LINE> self._session = session <NEW_LINE> self._username = username <NEW_LINE> <DEDENT> def _get_current_songs(s... | Class that represents a Spotify playlist. | 6259907e5166f23b2e244e57 |
class User(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'users' <NEW_LINE> user_id = db.Column(db.Integer, primary_key=True, autoincrement=True) <NEW_LINE> user_name = db.Column(db.String(50), nullable=False) <NEW_LINE> password = db.Column(db.String(25), nullable=False) <NEW_LINE> posts = db.relationship("Post") <NE... | user information | 6259907e3346ee7daa3383a1 |
class IntentsServicer(object): <NEW_LINE> <INDENT> def ListIntents(self, request, context): <NEW_LINE> <INDENT> context.set_code(grpc.StatusCode.UNIMPLEMENTED) <NEW_LINE> context.set_details('Method not implemented!') <NEW_LINE> raise NotImplementedError('Method not implemented!') <NEW_LINE> <DEDENT> def GetIntent(self... | Manages agent intents.
Refer to the [Dialogflow documentation](https://dialogflow.com/docs/intents)
for more details about agent intents.
# | 6259907e7c178a314d78e92a |
class ApplicationCall(Annotation): <NEW_LINE> <INDENT> def __init__(self, application): <NEW_LINE> <INDENT> self.application = application <NEW_LINE> super(ApplicationCall, self).__init__() <NEW_LINE> <DEDENT> def add_auxiliary_variable(self, variable, roles=None, name=None): <NEW_LINE> <INDENT> if name: <NEW_LINE> <IN... | A link between the variable tags and bricks.
The application call can be used to attach to an apply call auxiliary
variables (e.g. monitors or regularizers) that do not form part of the
main computation graph.
The application call object is created before the call to the
application method and can be accessed by spec... | 6259907eaad79263cf430239 |
class TestWordsMethods: <NEW_LINE> <INDENT> @pytest.fixture(scope='function', autouse=True) <NEW_LINE> def setup_class(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_read_file(self): <NEW_LINE> <INDENT> assert read_file("data/projects/words/words.txt") == {3: 1294, 4: 4994, 5: 5757} <NEW_LINE> <DEDENT> de... | Testing module words | 6259907e66673b3332c31e7f |
class dimension(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.associatedUnits = {} <NEW_LINE> <DEDENT> def addUnit(self, unit, conversion): <NEW_LINE> <INDENT> self.associatedUnits.update({unit:conversion}) <NEW_LINE> <DEDENT> def convert(self, sourceUnit, targetUnit): <NEW_LINE> <INDENT> if... | This class defines a dimension such as distance or time. | 6259907e4428ac0f6e659fae |
@base.gf2n <NEW_LINE> @base.vectorize <NEW_LINE> class ldms(base.DirectMemoryInstruction, base.ReadMemoryInstruction): <NEW_LINE> <INDENT> __slots__ = ["code"] <NEW_LINE> code = base.opcodes['LDMS'] <NEW_LINE> arg_format = ['sw','int'] <NEW_LINE> def execute(self): <NEW_LINE> <INDENT> self.args[0].value = program.mem_s... | Assigns register $s_i$ the value in memory \verb+S[n]+. | 6259907e97e22403b383c980 |
class PaymentAPI(ShopAPI): <NEW_LINE> <INDENT> def confirm_payment(self, order, amount, transaction_id, payment_method, save=True): <NEW_LINE> <INDENT> OrderPayment.objects.create( order=order, amount=Decimal(amount), transaction_id=transaction_id, payment_method=payment_method) <NEW_LINE> if save and self.is_order_pai... | This object's purpose is to expose an API to the shop system.
Ideally, shops (django SHOP or others) should implement this API, so that
payment plugins are interchangeable between systems.
This implementation is the interface reference for django SHOP
Don't forget that since plenty of methods are common to both Payme... | 6259907e1b99ca4002290275 |
class Session(ndb.Model): <NEW_LINE> <INDENT> sessionName = ndb.StringProperty(required=True) <NEW_LINE> conferenceName = ndb.StringProperty() <NEW_LINE> highlights = ndb.StringProperty() <NEW_LINE> speakWSK = ndb.StringProperty() <NEW_LINE> lastName = ndb.StringProperty() <NEW_LINE> duration ... | Session -- Session object | 6259907e76e4537e8c3f1000 |
class VectorAxesInsn(AxisMaskInsn): <NEW_LINE> <INDENT> def __init__(self, line, tab, axes): <NEW_LINE> <INDENT> super(VectorAxesInsn, self).__init__(line, tab, axes) <NEW_LINE> self.set_upper_8(0x0B) <NEW_LINE> self.set_lower_16(0) | Vector axes instructions
VECTOR AXES|AXIS ARE|IS axes | 6259907e1f5feb6acb16467a |
class EmployeeForm(FlaskForm): <NEW_LINE> <INDENT> name = StringField( "Name", validators=[DataRequired(), Length(min=2, max=50)] ) <NEW_LINE> date_of_birth = DateField("Date of Birth", validators=[DataRequired()]) <NEW_LINE> salary = DecimalField("Salary", validators=[DataRequired()]) <NEW_LINE> department_id = Select... | Form for adding and updating employees. | 6259907e3346ee7daa3383a2 |
class RichardViewsTest(ViewTestCase): <NEW_LINE> <INDENT> def test_home(self): <NEW_LINE> <INDENT> url = reverse('home') <NEW_LINE> self.assert_HTTP_200(url) <NEW_LINE> self.assert_used_templates(url, templates=['home.html']) | Tests for the project's views. | 6259907e4a966d76dd5f0967 |
class Cat(object): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> print('%s被创建' % self.name) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return '我是小猫: %s' % self.name | 猫类 | 6259907e099cdd3c6367613a |
class DispatchingApp: <NEW_LINE> <INDENT> def __init__(self, loader, use_eager_loading=None): <NEW_LINE> <INDENT> self.loader = loader <NEW_LINE> self._app = None <NEW_LINE> self._lock = Lock() <NEW_LINE> self._bg_loading_exc = None <NEW_LINE> if use_eager_loading is None: <NEW_LINE> <INDENT> use_eager_loading = os.env... | Special application that dispatches to a Flask application which
is imported by name in a background thread. If an error happens
it is recorded and shown as part of the WSGI handling which in case
of the Werkzeug debugger means that it shows up in the browser. | 6259907e283ffb24f3cf5321 |
class Quotas: <NEW_LINE> <INDENT> def __init__(self, total, total_r): <NEW_LINE> <INDENT> self.init = {'total': total, 'total_r': total_r, 'stm_max': total // 2, 'stm_max_r': total_r // 2, 'Mon': 2, 'Tue': 2, 'Wed': 2, 'Thu': 2, 'Fri': 2} <NEW_LINE> self.reset_quotas() <NEW_LINE> <DEDENT> def reset_quotas(self): <NEW_L... | Classe représentant les quotas des guichetiers. | 6259907e67a9b606de5477e7 |
class CustomAppIndexDashboard(AppIndexDashboard): <NEW_LINE> <INDENT> title = '' <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> AppIndexDashboard.__init__(self, *args, **kwargs) <NEW_LINE> self.children += [ modules.ModelList(self.app_title, self.models), modules.RecentActions( _('Recent Actions'),... | Custom app index dashboard for wysiweb. | 6259907ed268445f2663a89f |
class Key(object): <NEW_LINE> <INDENT> NOTHING = 0 <NEW_LINE> SHARP = 1 <NEW_LINE> FLAT = 2 <NEW_LINE> NATURAL = 3 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._semiMap = {} <NEW_LINE> self.major(Pitch()) <NEW_LINE> <DEDENT> def major(self, pitch): <NEW_LINE> <INDENT> mySemiList = [ self.NOTHING, self.SHARP,... | Class used for calculating the accidentals required for each note. | 6259907e23849d37ff852b3b |
class ScriptFile(object): <NEW_LINE> <INDENT> def __init__(self, path): <NEW_LINE> <INDENT> super(ScriptFile, self).__init__() <NEW_LINE> self._path = path <NEW_LINE> self.name = os.path.basename(path) <NEW_LINE> self.version = None <NEW_LINE> <DEDENT> def ReadVersion(self): <NEW_LINE> <INDENT> with open(self._path, 'r... | Class that defines a script or configuration file.
Attributes:
name (str): name.
version (str): version. | 6259907e76e4537e8c3f1002 |
class IDataConversionMonitor: <NEW_LINE> <INDENT> def GetVerbosity(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def ProcessMessage(self,messageId,messageSeverity,entityIds): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __init__(self,*args): <NEW_LINE> <INDENT> pass | A base class for an application-specific logger. It should be used to track errors during conversion and/or ,track conversion progress,cancel a conversion process if necessary.
Implementing a logger class is optional,but highly recommended for all but most basic data converters.
The base class is UI- and langua... | 6259907ed486a94d0ba2da39 |
class Place(BaseModel): <NEW_LINE> <INDENT> city_id = '' <NEW_LINE> user_id = '' <NEW_LINE> name = '' <NEW_LINE> description = '' <NEW_LINE> number_rooms = 0 <NEW_LINE> number_bathrooms = 0 <NEW_LINE> max_guest = 0 <NEW_LINE> price_by_night = 0 <NEW_LINE> latitude = 0.0 <NEW_LINE> longitude = 0.0 <NEW_LINE> amenity_ids... | used for defining attributes of Place | 6259907e3317a56b869bf287 |
class M109(SetTemperatureExtruder): <NEW_LINE> <INDENT> param_letters = utils.str_to_chars("srt") <NEW_LINE> def __init__( self, s: float, r: float = None, t: int = None, line_number: int = None ): <NEW_LINE> <INDENT> super().__init__(s=s, r=r, line_number=line_number) <NEW_LINE> self.t = t <NEW_LINE> <DEDENT> def __re... | Set Extruder Temperature and Wait | 6259907e7d847024c075de60 |
class Ant(Insect): <NEW_LINE> <INDENT> is_ant = True <NEW_LINE> implemented = False <NEW_LINE> food_cost = 0 <NEW_LINE> blocks_path = True <NEW_LINE> container = False <NEW_LINE> def __init__(self, armor=1): <NEW_LINE> <INDENT> Insect.__init__(self, armor) <NEW_LINE> <DEDENT> def can_contain(self, insect): <NEW_LINE> <... | An Ant occupies a place and does work for the colony. | 6259907e4c3428357761bd3d |
class HillClimbing(object): <NEW_LINE> <INDENT> def __init__( self, iterations, target, size , type ): <NEW_LINE> <INDENT> self.iterations = iterations <NEW_LINE> self.target = target <NEW_LINE> self.height , self.width = target.shape[:2] <NEW_LINE> self.size = size <NEW_LINE> self.type = type <NEW_LINE> <DEDENT> def r... | '
Hill Climbing
is a mathematical optimization technique which belongs to the family of local search.
It is an iterative algorithm that starts with an arbitrary solution to a problem,
then attempts to find a better solution by incrementally changing a single element
of the solution. If the change produces a better sol... | 6259907e55399d3f05627f98 |
class RobtexMonitorScraper(MechanizedScraper): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> MechanizedScraper.__init__(self) <NEW_LINE> <DEDENT> def run(self, ip): <NEW_LINE> <INDENT> results = [] <NEW_LINE> url_param = ip.replace(".", "/") <NEW_LINE> url = "https://www.robtex.com/en/advisory/ip/" + url_... | Created by: LNguyen
Date: 17April2017
Created class to handle web scraping logic for the certificate monitoring function. This class will be referenced by the Monitor function. | 6259907e99fddb7c1ca63b1a |
class PageChildrenField(Field): <NEW_LINE> <INDENT> def get_attribute(self, instance): <NEW_LINE> <INDENT> return instance <NEW_LINE> <DEDENT> def to_representation(self, page): <NEW_LINE> <INDENT> return OrderedDict([ ('count', self.context['base_queryset'].child_of(page).count()), ('listing_url', get_model_listing_ur... | Serializes the "children" field.
Example:
"children": {
"count": 1,
"listing_url": "/api/v1/pages/?child_of=2"
} | 6259907f5fdd1c0f98e5fa03 |
class DatiFatturaBodyDTRType (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, 'DatiFatturaBodyDTRTy... | Complex type {http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v2.0}DatiFatturaBodyDTRType with content type ELEMENT_ONLY | 6259907e60cbc95b06365aae |
@dataclasses.dataclass(frozen=True) <NEW_LINE> class UserFacingCLIError(APDSensorsError, SystemExit): <NEW_LINE> <INDENT> message: str <NEW_LINE> return_code: int <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return f"[{self.return_code}] {self.message}" | A fatal error for the CLI | 6259907f97e22403b383c984 |
class LibvirtGuestsConfig(LibvirtConfigCommon): <NEW_LINE> <INDENT> conf_path = '/etc/sysconfig/libvirt-guests' <NEW_LINE> __option_types__ = { 'URIS': 'string', 'ON_BOOT': 'string', 'START_DELAY': 'int', 'ON_SHUTDOWN': 'string', 'PARALLEL_SHUTDOWN': 'int', 'SHUTDOWN_TIMEOUT': 'int', 'BYPASS_CACHE': 'boolean' } | Class for sysconfig libvirt-guests config file. | 6259907f5fdd1c0f98e5fa04 |
class G_LogLocalThemeOverridesNode(G_LogChildNode, G_ThemeOverridesNode, G_ListContainedNode): <NEW_LINE> <INDENT> def BuildPage(parent): <NEW_LINE> <INDENT> me = __class__ <NEW_LINE> me._Sizer = parent.GetSizer() <NEW_LINE> G_ThemeOverridesNode.BuildControl(me, parent) <NEW_LINE> <DEDENT> def __init__(self, factory, w... | Logfile local theme overrides saving/restoring | 6259907f4f6381625f19a1f0 |
class CopyrightViewlet(ViewletBase): <NEW_LINE> <INDENT> pass | This viewlet shows the copyright license at the end of the page. | 6259907f7b180e01f3e49da7 |
class _JSTestSelector(_Selector): <NEW_LINE> <INDENT> def __init__(self, test_file_explorer): <NEW_LINE> <INDENT> _Selector.__init__(self, test_file_explorer) <NEW_LINE> self._tags = self._test_file_explorer.parse_tag_file("js_test", config.TAG_FILE) <NEW_LINE> <DEDENT> def select(self, selector_config): <NEW_LINE> <IN... | _Selector subclass for JavaScript tests. | 6259907f4f88993c371f1264 |
@inherit_doc <NEW_LINE> class ChiSqSelector(JavaEstimator, HasFeaturesCol, HasOutputCol, HasLabelCol, JavaMLReadable, JavaMLWritable): <NEW_LINE> <INDENT> numTopFeatures = Param(Params._dummy(), "numTopFeatures", "Number of features that selector will select, ordered by statistics value " + "descending. If the n... | .. note:: Experimental
Chi-Squared feature selection, which selects categorical features to use for predicting a
categorical label.
>>> from pyspark.mllib.linalg import Vectors
>>> df = sqlContext.createDataFrame(
... [(Vectors.dense([0.0, 0.0, 18.0, 1.0]), 1.0),
... (Vectors.dense([0.0, 1.0, 12.0, 0.0]), 0.0)... | 6259907f7d847024c075de62 |
class ISOTopicCategoryFilter(rest_framework_filters.FilterSet): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = geospaas.vocabularies.models.ISOTopicCategory <NEW_LINE> fields = {'name': '__all__'} | Filter for ISOTopicCategories | 6259907f63b5f9789fe86bec |
class Page(object): <NEW_LINE> <INDENT> def __init__(self, item_count, page_index=1, page_size=10): <NEW_LINE> <INDENT> self.item_count = item_count <NEW_LINE> self.page_size = page_size <NEW_LINE> self.page_count = item_count // page_size + (1 if item_count % page_size > 0 else 0) <NEW_LINE> if item_count == 0 or page... | Page object for display pages. | 6259907fe1aae11d1e7cf554 |
class BoardRestored(BoardAccessChanged): <NEW_LINE> <INDENT> pass | The board has been restored from archive. | 6259907f442bda511e95da99 |
class Session(ndb.Model): <NEW_LINE> <INDENT> name = ndb.StringProperty(required=True) <NEW_LINE> highlights = ndb.StringProperty() <NEW_LINE> speakerId = ndb.StringProperty() <NEW_LINE> duration = ndb.IntegerProperty() <NEW_LINE> typeOfSession = ndb.StringProperty() <NEW_LINE> date = ndb.DateProperty() <NEW_LINE> star... | Session -- Session object for conferences | 6259907f7c178a314d78e92d |
class FileDataset(Dataset): <NEW_LINE> <INDENT> def __init__(self, dirPath, recursive=False, transform=lambda ndarray: ndarray): <NEW_LINE> <INDENT> self.dirPath = dirPath <NEW_LINE> if(recursive == False): <NEW_LINE> <INDENT> self.fileNames = seq(os.listdir(dirPath)).filter(lambda name: os.path.isfile(dirPath/name)).t... | Dataset which load numpy npy dataset | 6259907ff548e778e596d017 |
class TestDLLList(testlib.RekallBaseUnitTestCase): <NEW_LINE> <INDENT> PARAMETERS = dict(commandline="dlllist") <NEW_LINE> def ParseDllist(self, output): <NEW_LINE> <INDENT> map = {} <NEW_LINE> for section in self.SplitLines(output, seperator="***********"): <NEW_LINE> <INDENT> process_name, pid = section[1].split("pi... | Test the dlllist module. | 6259907f4428ac0f6e659fb4 |
class MessageKeys: <NEW_LINE> <INDENT> APP = "app" <NEW_LINE> PATH = "path" <NEW_LINE> LINE = "line" <NEW_LINE> CHAR = "char" <NEW_LINE> CODE = "code" <NEW_LINE> CODE_READABLE = "code_readable" <NEW_LINE> MESSAGE = "msg" <NEW_LINE> EXTENDS = "extends" <NEW_LINE> EXTRAS = "extras" | Message names. | 6259907fad47b63b2c5a92d6 |
class Person(BaseModel): <NEW_LINE> <INDENT> logger.info('Note how we defined the class') <NEW_LINE> logger.info('Specify the fields in our model, their lengths and if mandatory') <NEW_LINE> logger.info('Must be a unique identifier for each person') <NEW_LINE> person_name = CharField(primary_key = True, max_length = 30... | This class defines Person, which maintains details of someone
for whom we want to research career to date. | 6259907fbe7bc26dc9252b98 |
class ClusterList(list, Item): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> <DEDENT> def __hash__(self): <NEW_LINE> <INDENT> return id(self) <NEW_LINE> <DEDENT> def iterfiles(self, save=False): <NEW_LINE> <INDENT> for cluster in self: <NEW_LINE> <INDENT> yield from cluster.i... | A list of clusters. | 6259907f5fdd1c0f98e5fa05 |
class Square: <NEW_LINE> <INDENT> def __init__(self, size=0): <NEW_LINE> <INDENT> self.__size = size <NEW_LINE> <DEDENT> @property <NEW_LINE> def size(self): <NEW_LINE> <INDENT> return self.__size <NEW_LINE> <DEDENT> @size.setter <NEW_LINE> def size(self, value): <NEW_LINE> <INDENT> if type(value) is not int: <NEW_LINE... | Initialize | 6259907f44b2445a339b76a0 |
class DynamicController(Controller): <NEW_LINE> <INDENT> def __init__(self, control_law, persistent_control=False): <NEW_LINE> <INDENT> self.persistent_control = persistent_control <NEW_LINE> super(DynamicController, self).__init__(control_law) <NEW_LINE> <DEDENT> def step(self, states, parameters): <NEW_LINE> <INDENT>... | A parameterized controller whose parameters may change over time | 6259907f76e4537e8c3f1006 |
class Subscription(models.Model): <NEW_LINE> <INDENT> BILLING_CYCLES = ( ('one', 'One Time'), ('month', 'Monthly'), ('year', 'Yearly') ) <NEW_LINE> expires = models.DateTimeField() <NEW_LINE> school = models.OneToOneField(School, unique=True, related_name="subscription") <NEW_LINE> billing_cycle = models.CharField(choi... | A field for paid subscriptions. | 6259907f7b180e01f3e49da8 |
class CardState(Enum): <NEW_LINE> <INDENT> BACKLOG = 0 <NEW_LINE> IN_PROGRESS = 1 <NEW_LINE> DONE = 2 <NEW_LINE> def __str__(self) -> str: <NEW_LINE> <INDENT> if self == CardState.BACKLOG: <NEW_LINE> <INDENT> return "todo" <NEW_LINE> <DEDENT> elif self == CardState.IN_PROGRESS: <NEW_LINE> <INDENT> return "prgs" <NEW_LI... | Describes the state of a task. Can be Backlog, In Progress, or Done. | 6259907f7047854f46340e3c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.