code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ValidatedGraphSet(GraphSet): <NEW_LINE> <INDENT> @validator("resources") <NEW_LINE> def dedupe_and_validate_resources(cls, resources: Tuple[Resource, ...]) -> Tuple[Resource, ...]: <NEW_LINE> <INDENT> deduped_resources = dedupe_resources(resources) <NEW_LINE> validate_resources(deduped_resources) <NEW_LINE> retur... | A GraphSet which has been validated - duplicate resources have been merged and
required resource links have been verified | 62598fc14a966d76dd5ef125 |
class Package(j.baseclasses.threebot_package): <NEW_LINE> <INDENT> def _init(self, **kwargs): <NEW_LINE> <INDENT> self.branch = kwargs["package"].branch or "master" <NEW_LINE> self.euroflow_io = "https://github.com/euroflow-io/www_euroflow_io.git" <NEW_LINE> <DEDENT> def prepare(self): <NEW_LINE> <INDENT> server = self... | to start need to run
kosmos -p "j.tools.threebot_packages.get('euroflow_io',giturl='https://github.com/euroflow-io/www_euroflow_io.git',branch='master')"
kosmos -p "j.servers.threebot.default.start(web=True, ssl=False)" | 62598fc1ec188e330fdf8ae4 |
class GenericMolFile(data.Text): <NEW_LINE> <INDENT> MetadataElement(name="number_of_molecules", default=0, desc="Number of molecules", readonly=True, visible=True, optional=True, no_value=0) <NEW_LINE> def set_peek(self, dataset, is_multi_byte=False): <NEW_LINE> <INDENT> if not dataset.dataset.purged: <NEW_LINE> <INDE... | Abstract class for most of the molecule files. | 62598fc1091ae35668704e77 |
class MultipleChoiceItem(ChoiceItem): <NEW_LINE> <INDENT> def __init__(self, label, choices, default=(), help='', check=True): <NEW_LINE> <INDENT> ChoiceItem.__init__(self, label, choices, default, help, check=check) <NEW_LINE> self.set_prop("display", shape = (1, -1)) <NEW_LINE> <DEDENT> def horizontal(self, row_nb=1)... | Construct a data item for a list of choices -- multiple choices can be selected
* label [string]: name
* choices [list or tuple]: string list or (key, label) list
* default [-]: default label or default key (optional)
* help [string]: text shown in tooltip (optional)
* check [bool]: if False, value ... | 62598fc1aad79263cf42ea26 |
@register_resource <NEW_LINE> class v1_RouteStatus(Resource): <NEW_LINE> <INDENT> __kind__ = 'v1.RouteStatus' <NEW_LINE> __fields__ = { 'ingress': 'ingress', } <NEW_LINE> __types__ = { 'ingress': 'v1.RouteIngress', } <NEW_LINE> __required__ = set([ 'ingress', ]) <NEW_LINE> ingress = None <NEW_LINE> def __init__(self, *... | RouteStatus provides relevant info about the status of a route,
including which routers acknowledge it. | 62598fc1851cf427c66b8507 |
class Solution: <NEW_LINE> <INDENT> def mergeKLists(self, lists): <NEW_LINE> <INDENT> return self.merge_range_lists(lists, 0, len(lists) - 1) <NEW_LINE> <DEDENT> def merge_range_lists(self, lists, start, end): <NEW_LINE> <INDENT> if start == end: <NEW_LINE> <INDENT> return lists[start] <NEW_LINE> <DEDENT> mid = (start ... | @param lists: a list of ListNode
@return: The head of one sorted list. | 62598fc13d592f4c4edbb10f |
class SiteAssets(AdminMixin, AdminSite): <NEW_LINE> <INDENT> pass | A Django AdminSite with the AdminMixin to allow registering custom
dashboard view. | 62598fc197e22403b383b15b |
class MultitenantOrgFilter(admin.RelatedFieldListFilter): <NEW_LINE> <INDENT> multitenant_lookup = 'pk__in' <NEW_LINE> def field_choices(self, field, request, model_admin): <NEW_LINE> <INDENT> if request.user.is_superuser: <NEW_LINE> <INDENT> return super().field_choices(field, request, model_admin) <NEW_LINE> <DEDENT>... | Admin filter that shows only organizations the current
user is associated with in its available choices | 62598fc14c3428357761a50d |
class Meta: <NEW_LINE> <INDENT> model = CompanyInformation <NEW_LINE> fields = ('name', 'scale', 'industry', 'style', 'address', 'contact', 'introduction', 'description', 'established') | 定义规则字段. | 62598fc1ff9c53063f51a8a0 |
class GaussianProcessRegressorModel(object): <NEW_LINE> <INDENT> def __init__(self, units=TimeUnits.seconds, **kwargs): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> from sklearn import gaussian_process <NEW_LINE> from pandas import DataFrame <NEW_LINE> <DEDENT> except ImportError: <NEW_LINE> <INDENT> print('GaussianPro... | Learns the duration of a task from data using scikit-learn's GaussianProcessRegressor
Attributes:
model (GaussianProcessRegressor): The underlying model used to predict the data
units (TimeUnits, optional): The time units the resulting durations should be in. Defaults to TimeUnits.seconds
is_trained (bool)... | 62598fc1be7bc26dc9251f85 |
class Cat(UnixCommand): <NEW_LINE> <INDENT> args = ('shell_glob',) <NEW_LINE> local_op = staticmethod(cat_local_op) | Cat files. | 62598fc1099cdd3c6367550b |
class MarketingVersion(NamedTuple): <NEW_LINE> <INDENT> major: int <NEW_LINE> minor: int <NEW_LINE> patch: int <NEW_LINE> @classmethod <NEW_LINE> def fromTuple(cls, value: Tuple[str]) -> 'MarketingVersion': <NEW_LINE> <INDENT> return cls(int(value[0]), int(value[1]), int(value[2])) <NEW_LINE> <DEDENT> @classmethod <NEW... | Holds the current immutable marketing version. Provides methods to create new values.
| 62598fc126068e7796d4cbae |
class Container(pgu.gui.Container): <NEW_LINE> <INDENT> def __init__(self, **params): <NEW_LINE> <INDENT> super(Container, self).__init__(**params) <NEW_LINE> self.time = pygame.time.get_ticks() <NEW_LINE> pygame.joystick.init() <NEW_LINE> joy = pygame.joystick.Joystick(1) <NEW_LINE> joy.init() | Specialised container widget that knows how to handle joypad | 62598fc1bf627c535bcb16f9 |
class ProgressBar(): <NEW_LINE> <INDENT> _ROUND_DECIMAL_PLACES = 1 <NEW_LINE> def __init__(self, total, status, bar_length): <NEW_LINE> <INDENT> self._status = status <NEW_LINE> self._total = total <NEW_LINE> self._bar_length = bar_length <NEW_LINE> <DEDENT> def update(self, current_length, total=None): <NEW_LINE> <IND... | Animated progress bar to track progress of processing. | 62598fc176e4537e8c3ef7f9 |
class DownsampleAlongH(snt.AbstractModule): <NEW_LINE> <INDENT> def __init__(self, factor, ptype = 'AVG', padding = 'SAME', verbose = False, name = "downsample_along_h"): <NEW_LINE> <INDENT> super(DownsampleAlongH, self).__init__(name = name) <NEW_LINE> self._factor = factor <NEW_LINE> self._ptype = ptype <NEW_LINE> se... | Downsampling by taking every n by n entries along H (rows) | 62598fc1956e5f7376df57a8 |
class AreaWeightedRegridder(object): <NEW_LINE> <INDENT> def __init__(self, src_grid_cube, target_grid_cube, mdtol=1): <NEW_LINE> <INDENT> self._src_grid = snapshot_grid(src_grid_cube) <NEW_LINE> self._target_grid = snapshot_grid(target_grid_cube) <NEW_LINE> if not (0 <= mdtol <= 1): <NEW_LINE> <INDENT> msg = 'Value fo... | This class provides support for performing area-weighted regridding. | 62598fc14527f215b58ea122 |
class RelatedUserQuerySet(models.QuerySet): <NEW_LINE> <INDENT> def api(self, user=None): <NEW_LINE> <INDENT> if not user.is_authenticated: <NEW_LINE> <INDENT> return self.none() <NEW_LINE> <DEDENT> return self.filter(users=user) | For models with relations through :py:class:`User`. | 62598fc19f288636728189a5 |
class CreateUserView(CreateAPIView): <NEW_LINE> <INDENT> serializer_class = serializers.UserSerializer <NEW_LINE> permission_classes = (AllowAny,) | Endpoint for creating new Users | 62598fc197e22403b383b15c |
class Ball: <NEW_LINE> <INDENT> def __init__(self, color=0): <NEW_LINE> <INDENT> self.color = color <NEW_LINE> self.selected = False <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> return self.color == other.color <NEW_LINE> <DEDENT> def set_color(self, color): <NEW_LINE> <INDENT> self.color = color <N... | Class implementing a ball object | 62598fc197e22403b383b15d |
class RepeatUntil(Subconstruct): <NEW_LINE> <INDENT> __slots__ = ["predicate"] <NEW_LINE> def __init__(self, predicate, subcon): <NEW_LINE> <INDENT> super(RepeatUntil, self).__init__(subcon) <NEW_LINE> self.predicate = predicate <NEW_LINE> <DEDENT> def _parse(self, stream, context, path): <NEW_LINE> <INDENT> try: <NEW_... | An array that repeats until the predicate indicates it to stop. Note that the last element (which caused the repeat to exit) is included in the return value.
:param predicate: a predicate function that takes (obj, context) and returns True to break, or False to continue
:param subcon: the subcon used to parse and buil... | 62598fc14c3428357761a50f |
class SpecialOp(Basic): <NEW_LINE> <INDENT> def __new__(cls, op, arg1, arg2): <NEW_LINE> <INDENT> return Basic.__new__(cls, op, arg1, arg2) | Represents the results of operations with NonBasic and NonExpr | 62598fc155399d3f0562676a |
class Plugin(HasherPlugin): <NEW_LINE> <INDENT> def __init__(self, context): <NEW_LINE> <INDENT> super().__init__('KECCAK 224', "Thomas Engel", ["_pysha3"], context) <NEW_LINE> <DEDENT> def run(self, text): <NEW_LINE> <INDENT> import _pysha3 <NEW_LINE> return _pysha3.keccak_224(text.encode('utf-8', errors='surrogateesc... | Hashes a string using KECCAK 224.
Example:
Input:
abcdefghijklmnopqrstuvwxyz
^°!"§$%&/()=?´`<>| ,.-;:_#+'*~
0123456789
Output:
dbf87ddd2f01eb7f172b18d94baf83ace62cb71c6ec2b5c82bdf2bab | 62598fc150812a4eaa620d13 |
class CardProvider(ProviderBase): <NEW_LINE> <INDENT> def get_by_id(self, card_id): <NEW_LINE> <INDENT> json_obj = self.get_json('/cards/'+card_id, query_params = {'badges': False}) <NEW_LINE> return Card.from_json(json_obj) <NEW_LINE> <DEDENT> def get_cards(self, list_id): <NEW_LINE> <INDENT> json_obj = self.get_json(... | Provider class used to manage the Trello API operations | 62598fc17d847024c075c610 |
class ISharedStockData(ISharedData): <NEW_LINE> <INDENT> pass | Interface for accessing shared stock data.
| 62598fc14428ac0f6e658778 |
class GridDataManager(): <NEW_LINE> <INDENT> def __init__(self, filename): <NEW_LINE> <INDENT> self.filename = filename <NEW_LINE> <DEDENT> def writeGridData(self, gridData): <NEW_LINE> <INDENT> with open(self.filename, 'w', newline = '') as file: <NEW_LINE> <INDENT> writer = csv.writer(file, delimiter = '\t') <NEW_LIN... | This class reads/writes the internal grid data from/to a csv file. | 62598fc17047854f4633f628 |
@needs_auth() <NEW_LINE> class ItemStatesView(APIView): <NEW_LINE> <INDENT> path = "/item/{id}/states" <NEW_LINE> async def get(self) -> JSONResponse: <NEW_LINE> <INDENT> identifier = self.data["id"] <NEW_LINE> item = self.core.item_manager.items.get(identifier) <NEW_LINE> if not item: <NEW_LINE> <INDENT> return self.e... | Item states view | 62598fc1a8370b77170f0636 |
@public <NEW_LINE> class Accept(HelloReturn): <NEW_LINE> <INDENT> __slots__ = ( 'realm', 'authid', 'authrole', 'authmethod', 'authprovider', 'authextra', ) <NEW_LINE> def __init__(self, realm=None, authid=None, authrole=None, authmethod=None, authprovider=None, authextra=None): <NEW_LINE> <INDENT> assert(realm is None ... | Information to accept a ``HELLO``. | 62598fc1796e427e5384e9ea |
class ReduceApply(TensorExpression): <NEW_LINE> <INDENT> def __init__(self, reduce: ReduceFnType, args: Sequence[TensorExpression]): <NEW_LINE> <INDENT> self.reduce = reduce <NEW_LINE> self.lhs = None <NEW_LINE> self.args = tuple(args) <NEW_LINE> <DEDENT> def to_scalar_expression(self) -> ScalarExpression: <NEW_LINE> <... | Application of a reduction.
This captures the lhs separately (initial value) separately from the rhs. | 62598fc1bf627c535bcb16fb |
class Vocab(object): <NEW_LINE> <INDENT> def __init__(self, vocab_file, max_size): <NEW_LINE> <INDENT> self._word_to_id = {} <NEW_LINE> self._id_to_word = {} <NEW_LINE> self._count = 0 <NEW_LINE> with open(vocab_file, 'r') as vocab_f: <NEW_LINE> <INDENT> for line in vocab_f: <NEW_LINE> <INDENT> pieces = line.split() <N... | Vocabulary class for mapping words and ids. | 62598fc1d486a94d0ba2c226 |
class EASUpdateMixin(object): <NEW_LINE> <INDENT> def save(self, *args, **kwargs): <NEW_LINE> <INDENT> super(EASUpdateMixin, self).save(*args, **kwargs) <NEW_LINE> expired = False <NEW_LINE> if hasattr(self, 'end_date'): <NEW_LINE> <INDENT> if self.end_date: <NEW_LINE> <INDENT> if isinstance(self.end_date, date): <NEW_... | If it's expired or inactive, unset this object from any foriegn key fields | 62598fc13346ee7daa337773 |
class Meter(Base): <NEW_LINE> <INDENT> __tablename__ = 'meter' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> counter_name = Column(String(255)) <NEW_LINE> sources = relationship("Source", secondary=lambda: sourceassoc) <NEW_LINE> user_id = Column(String(255), ForeignKey('user.id')) <NEW_LINE> project_id ... | Metering data | 62598fc13d592f4c4edbb113 |
class _SavePoint(object): <NEW_LINE> <INDENT> def __init__(self, db_conn): <NEW_LINE> <INDENT> self.db_conn = db_conn <NEW_LINE> self.ident = str(time.time()).replace('.', 'sp') <NEW_LINE> db_conn._query('SAVEPOINT %s' % self.ident) <NEW_LINE> <DEDENT> def rollback(self): <NEW_LINE> <INDENT> self.db_conn._query('ROLLBA... | Simple savepoint object
| 62598fc192d797404e388c8d |
class Slime(Skull): <NEW_LINE> <INDENT> def __init__(self,x,y): <NEW_LINE> <INDENT> self.n = 0 <NEW_LINE> self.pos = (x, y) <NEW_LINE> self.symbol = "K" <NEW_LINE> self.setpos(x, y) <NEW_LINE> self.worth = 100 <NEW_LINE> mobs.append(self) <NEW_LINE> <DEDENT> def AutoMove(self): <NEW_LINE> <INDENT> if self.n == 1: <NEW_... | 主角每動兩次之後,這隻怪物才會動一次
worth 100 points | 62598fc1091ae35668704e7d |
class Water(Place): <NEW_LINE> <INDENT> def add_insect(self, insect): <NEW_LINE> <INDENT> "*** REPLACE THIS LINE ***" <NEW_LINE> Place.add_insect(self, insect) <NEW_LINE> if insect.watersafe == False: <NEW_LINE> <INDENT> Insect.reduce_armor(insect, insect.armor) | Water is a place that can only hold 'watersafe' insects. | 62598fc1283ffb24f3cf3adb |
class InsurancePlanPlan(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_type = "InsurancePlanPlan" <NEW_LINE> def __init__(self, jsondict=None, strict=True): <NEW_LINE> <INDENT> self.coverageArea = None <NEW_LINE> self.generalCost = None <NEW_LINE> self.identifier = None <NEW_LINE> self.network = None <N... | Plan details.
Details about an insurance plan. | 62598fc126068e7796d4cbb2 |
class QLearningAgent(ReinforcementAgent): <NEW_LINE> <INDENT> def __init__(self, **args): <NEW_LINE> <INDENT> ReinforcementAgent.__init__(self, **args) <NEW_LINE> "*** YOUR CODE HERE ***" <NEW_LINE> self.qvalues = util.Counter() <NEW_LINE> <DEDENT> def getQValue(self, state, action): <NEW_LINE> <INDENT> return self.qva... | Q-Learning Agent
Functions you should fill in:
- computeValueFromQValues
- computeActionFromQValues
- getQValue
- getAction
- update
Instance variables you have access to
- self.epsilon (exploration prob)
- self.alpha (learning rate)
- self.discount (discount rate)
Functions you should use
- self.g... | 62598fc17cff6e4e811b5c7b |
class GameState: <NEW_LINE> <INDENT> def __init__(self, n_human_players=1, n_ai_players=1, n_cards=10): <NEW_LINE> <INDENT> self.n_cards = n_cards <NEW_LINE> with open("cards-against-humanity/answers.pickle", 'rb') as ans: <NEW_LINE> <INDENT> self.answer_cards = pickle.load(ans) <NEW_LINE> shuffle(self.answer_cards) <N... | Store the gamestate. | 62598fc176e4537e8c3ef7fd |
class Species(SrcClass): <NEW_LINE> <INDENT> def __init__(self, args=cf.config_args()): <NEW_LINE> <INDENT> name = 'species' <NEW_LINE> url_base = 'ftp.ncbi.nih.gov' <NEW_LINE> aliases = {"species_map": "mapping file for species"} <NEW_LINE> super(Species, self).__init__(name, url_base, aliases, args) <NEW_LINE> self.r... | Extends SrcClass to provide species specific check functions.
This Species class provides source-specific functions that check the
species version information and determine if it differs from the current
version in the Knowledge Network (KN).
Attributes:
see utilities.SrcClass | 62598fc1aad79263cf42ea2c |
class FaceLandmarksDataset(Dataset): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.csv_file = '../ext_face/cropped_global_300w.csv' <NEW_LINE> self.globalDF = pd.read_csv(self.csv_file) <NEW_LINE> self.g_images = self.globalDF['imgPath'] <NEW_LINE> self.save_dir = '/media/drive/ibug/300W_cropped/frcn... | Face Landmarks dataset. | 62598fc1d8ef3951e32c7f89 |
class SerialDictSlot(SerialSlot): <NEW_LINE> <INDENT> def __init__(self, slot, inslot=None, name=None, subname=None, default=None, depends=None, selfdepends=True, transform=None): <NEW_LINE> <INDENT> super(SerialDictSlot, self).__init__( slot, inslot, name, subname, default, depends, selfdepends ) <NEW_LINE> if transfo... | For saving a dictionary. | 62598fc13d592f4c4edbb114 |
class DownloadTeacherDataView(grok.View): <NEW_LINE> <INDENT> grok.context(Interface) <NEW_LINE> grok.name('download-teacher-data') <NEW_LINE> grok.require('cmf.ManagePortal') <NEW_LINE> def __call__(self): <NEW_LINE> <INDENT> view = self.context.restrictedTraverse('@@upload-to-server') <NEW_LINE> zip_data = view.zip_c... | Return the teacher data from uploadtoserver view as a http response.
| 62598fc197e22403b383b160 |
class FlickrObject(object): <NEW_LINE> <INDENT> __converters__ = [] <NEW_LINE> __display__ = [] <NEW_LINE> def __init__(self,**params): <NEW_LINE> <INDENT> params["loaded"] = False <NEW_LINE> self._set_properties(**params) <NEW_LINE> <DEDENT> def _set_properties(self,**params): <NEW_LINE> <INDENT> for c in self.__class... | Base Object for Flickr API Objects | 62598fc163b5f9789fe853c9 |
class TestDDPG: <NEW_LINE> <INDENT> @pytest.mark.large <NEW_LINE> def test_ddpg_double_pendulum(self): <NEW_LINE> <INDENT> deterministic.set_seed(0) <NEW_LINE> runner = LocalRunner(snapshot_config) <NEW_LINE> env = MetaRLEnv(gym.make('InvertedDoublePendulum-v2')) <NEW_LINE> action_noise = OUStrategy(env.spec, sigma=0.2... | Test class for DDPG. | 62598fc123849d37ff85130b |
class NetworkInterfaceLoadBalancerListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[LoadBalancer]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs )... | Response for list ip configurations API service call.
Variables are only populated by the server, and will be ignored when sending a request.
:param value: A list of load balancers.
:type value: list[~azure.mgmt.network.v2019_07_01.models.LoadBalancer]
:ivar next_link: The URL to get the next set of results.
:vartype... | 62598fc1167d2b6e312b71ce |
class PPMI(Counter): <NEW_LINE> <INDENT> def __init__(self, sentences, winSize=5, minCount=5): <NEW_LINE> <INDENT> super().__init__(self, sentences, winSize, minCount) <NEW_LINE> self.cooccurence = [[]] <NEW_LINE> self.unigram_counts = [] <NEW_LINE> <DEDENT> def build_vocabulary(self): <NEW_LINE> <INDENT> super().build... | Positive pointwise mutual information
Extends the Counter class with some additional
function to compute a ppmi matrix that could be used
to initialize embedddings.
Deprecated ? | 62598fc171ff763f4b5e79d4 |
class StatisticsBaseEntity(ToyotaBaseEntity, SensorEntity): <NEW_LINE> <INDENT> _attr_icon = ICON_HISTORY <NEW_LINE> @property <NEW_LINE> def native_unit_of_measurement(self): <NEW_LINE> <INDENT> return self.vehicle.odometer.unit <NEW_LINE> <DEDENT> def get_statistics_attributes(self, statistics): <NEW_LINE> <INDENT> d... | Builds on Toyota base entity | 62598fc14a966d76dd5ef12d |
class CRideModel(models.Model): <NEW_LINE> <INDENT> created = models.DateTimeField( 'created at', auto_now_add=True, help_text='Date time on which the object was created.' ) <NEW_LINE> modified = models.DateTimeField( 'modified at', auto_now=True, help_text='Date time on which the object was last modified.' ) <NEW_LINE... | Comparte Ride base model.
CRideModel acts as an abstract base class from which every
other model in the project will inherit. This class provides
every table with the following attributes:
+ created (DateTime): Store the datetime the object was created.
+ modified (DateTime): Store the last datetime the object ... | 62598fc166673b3332c3062b |
class GaussianMixtureModel(Configurable[GaussianMixtureModelConfig], nn.Module): <NEW_LINE> <INDENT> component_probs: torch.Tensor <NEW_LINE> means: torch.Tensor <NEW_LINE> precisions_cholesky: torch.Tensor <NEW_LINE> def __init__(self, config: GaussianMixtureModelConfig): <NEW_LINE> <INDENT> super().__init__(config) <... | PyTorch module for a Gaussian mixture model. Covariances are represented via their Cholesky
decomposition for computational efficiency. The model does not have trainable parameters. | 62598fc15166f23b2e243638 |
class AiReviewProhibitedAsrTaskInput(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Definition = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Definition = params.get("Definition") | 内容审核 Asr 文字鉴违禁任务输入参数类型
| 62598fc1aad79263cf42ea2e |
class _FrozenSetMeta(GenericMeta): <NEW_LINE> <INDENT> def __subclasscheck__(self, cls): <NEW_LINE> <INDENT> if issubclass(cls, Set): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> return super().__subclasscheck__(cls) | This metaclass ensures set is not a subclass of FrozenSet.
Without this metaclass, set would be considered a subclass of
FrozenSet, because FrozenSet.__extra__ is collections.abc.Set, and
set is a subclass of that. | 62598fc14c3428357761a515 |
class ReadNamespacedJob(Task): <NEW_LINE> <INDENT> def __init__( self, job_name: str = None, namespace: str = "default", kube_kwargs: dict = None, kubernetes_api_key_secret: str = "KUBERNETES_API_KEY", **kwargs: Any ): <NEW_LINE> <INDENT> self.job_name = job_name <NEW_LINE> self.namespace = namespace <NEW_LINE> self.ku... | Task for reading a namespaced job on Kubernetes.
Note that all initialization arguments can optionally be provided or overwritten at runtime.
This task will attempt to connect to a Kubernetes cluster in three steps with
the first successful connection attempt becoming the mode of communication with a
cluster.
1. Atte... | 62598fc1e1aae11d1e7ce952 |
class Boost(Pickup): <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> Pickup.__init__(self, x, y) <NEW_LINE> self.image = pygame.image.load('Boost.png') <NEW_LINE> <DEDENT> def func(self,player): <NEW_LINE> <INDENT> effect_func(player,'speed',600) | Makes the player faster for a short duration | 62598fc166656f66f7d5a64c |
class Callable(TraitType): <NEW_LINE> <INDENT> info_text = 'a callable' <NEW_LINE> def validate(self, obj, value): <NEW_LINE> <INDENT> if six.callable(value): <NEW_LINE> <INDENT> return value <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.error(obj, value) | A trait which is callable.
Notes
-----
Classes are callable, as are instances
with a __call__() method. | 62598fc1442bda511e95c6ba |
class PluginExtensionRegistry(ProviderExtensionRegistry): <NEW_LINE> <INDENT> plugin_manager = Instance(IPluginManager) <NEW_LINE> def _plugin_manager_changed(self, trait_name, old, new): <NEW_LINE> <INDENT> if old is not None: <NEW_LINE> <INDENT> for plugin in old: <NEW_LINE> <INDENT> self.remove_provider(plugin) <NEW... | An extension registry that uses plugins as extension providers.
The application's plugins are used as the registries providers so adding
or removing a plugin affects the extension points and extensions etc. | 62598fc1f548e778e596b7fa |
class DCVersionI(DCBase) : <NEW_LINE> <INDENT> def __init__(self, vnum, tsprod=None, arr=None, cmt=None) : <NEW_LINE> <INDENT> DCBase.__init__(self, cmt) <NEW_LINE> self._name = self.__class__.__name__ <NEW_LINE> <DEDENT> def set_vnum(self, vnum) : print_warning(self, sys._getframe()) <NEW_LINE> def set_tsprod(se... | Abstract interface class for the Detector Calibration (DC) project
o = DCVersionI(vnum, tsprod=None, arr=None)
o.set_vnum(vnum) # sets (int) version
o.set_tsprod(tsprod) # sets (double) time stamp of the version production
o.add_data(nda) # sets (np.array) calibration array
vnum = o.v... | 62598fc1adb09d7d5dc0a7d8 |
class TestDeleteGeneratorWithValidID(unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.client = craft_ai.Client(settings.CRAFT_CFG) <NEW_LINE> cls.generator_id = generate_entity_id("test_delete_generator") <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def tearDow... | Checks that the client succeeds when deleting a generator with OK input | 62598fc18a349b6b43686499 |
class DiskMetricTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_return_total_used_avail_percent(self): <NEW_LINE> <INDENT> stdout_string = ('Filesystem 1K-blocks Used Available Use% ' 'mounted on\n/dev/dm-1 57542652 18358676 ' '36237928 ... | Class for testing DiskMetric. | 62598fc1bf627c535bcb1701 |
class DummyTqdmFile: <NEW_LINE> <INDENT> file = None <NEW_LINE> def __init__(self, file): <NEW_LINE> <INDENT> self.file = file <NEW_LINE> <DEDENT> def write(self, x): <NEW_LINE> <INDENT> if len(x.rstrip()) > 0: <NEW_LINE> <INDENT> tqdm.write(x, file=self.file) <NEW_LINE> <DEDENT> <DEDENT> def flush(self): <NEW_LINE> <I... | Dummy file-like that will write to tqdm. | 62598fc1a05bb46b3848aac7 |
class ForbiddenError(Exception): <NEW_LINE> <INDENT> pass | Raised when the bot can't do something. | 62598fc176e4537e8c3ef801 |
class LogicalExpression(pymbolic.primitives.Expression): <NEW_LINE> <INDENT> def __inv__(self): <NEW_LINE> <INDENT> return LogicalNot(self) <NEW_LINE> <DEDENT> __invert__ = __inv__ <NEW_LINE> def __and__(self, other): <NEW_LINE> <INDENT> return LogicalAnd((self, other)) <NEW_LINE> <DEDENT> def __or__(self, other): <NEW... | Overrides logical methods of `pymbolic.primitives.Expression` for `matstep`
logic operators. | 62598fc17cff6e4e811b5c7f |
class Loader(abc.ABC): <NEW_LINE> <INDENT> def __init__(self, batch_size): <NEW_LINE> <INDENT> self._batch_size = batch_size <NEW_LINE> <DEDENT> @property <NEW_LINE> def batch_size(self): <NEW_LINE> <INDENT> return self._batch_size <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def __call__(self): <NEW_LINE> <INDEN... | Base class for creating batches of TUs. | 62598fc14527f215b58ea12a |
class MeetupEventsScraper: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.groups = ['API-Craft-Boston', 'Boston-Algorithmic-Trading', 'Big-Data-Analytics-Discovery-Visualization', 'Boston-Data-Mining', 'bostonhadoop', 'boston-java'] <NEW_LINE> <DEDENT> def scrape_these_groups(self, key): <NEW_LINE> <I... | Gather event data from a given list of Meetup groups
Attributes:
groups: list of groups that we want to know about their events | 62598fc1d486a94d0ba2c22c |
class Solution: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.longest_path = 0 <NEW_LINE> <DEDENT> def longestConsecutive(self, root): <NEW_LINE> <INDENT> self.helper(root) <NEW_LINE> return self.longest_path <NEW_LINE> <DEDENT> def helper(self, root): <NEW_LINE> <INDENT> if not root: <NEW_LINE> <IND... | @param: root: the root of binary tree
@return: the length of the longest consecutive sequence path | 62598fc150812a4eaa620d17 |
class DescriptionDefinition(Element): <NEW_LINE> <INDENT> def __init__(self, *content): <NEW_LINE> <INDENT> super().__init__("dd") <NEW_LINE> self.extend(content) | An HTML definition element (<dd>) for description lists. | 62598fc1f9cc0f698b1c53fe |
@attr.s(frozen=True, auto_attribs=True) <NEW_LINE> class NewDocEvent(BaseEvent): <NEW_LINE> <INDENT> kind: EventKind = EventKind.new_document | Event | 62598fc15fc7496912d483a9 |
class Node(): <NEW_LINE> <INDENT> def __init__(self, name, value=None, given=False): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.value = value <NEW_LINE> self.given = bool(given) <NEW_LINE> self.dependencies_attached = [] <NEW_LINE> self.data_type = None <NEW_LINE> <DEDENT> def set_given(self, is_given): <NEW_... | Node of a graphical model. A node represents a variable or set of variables.
The node is characterized by name, value, and by the given flag. The flag is True if
the variable is considered a given quantity, False if it considered unknown (uncertain). | 62598fc1d8ef3951e32c7f8c |
class IHDUSessionLoginMixin(BaseSessionLoginMixin): <NEW_LINE> <INDENT> def __init__(self, username, password): <NEW_LINE> <INDENT> super(IHDUSessionLoginMixin, self).__init__(username, password) <NEW_LINE> self.home_url = HOME_URLS['ihdu'] <NEW_LINE> <DEDENT> def login(self, headers=IHDU_HEADERS): <NEW_LINE> <INDENT> ... | 混合 ihdu(https://i.hdu.edu.cn/tp_up/view?m=up) 的登录功能. | 62598fc1fff4ab517ebcda44 |
class UserBooks(Resource): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.reqparse = reqparse.RequestParser() <NEW_LINE> self.reqparse.add_argument('title', type = str, required = True, help = "Title not provided") <NEW_LINE> self.reqparse.add_argument('author', type = str, required = True, help = "Au... | Resource: books
Endpoint: /api/users/<id>/books
Methods: GET, POST | 62598fc12c8b7c6e89bd3a1f |
class IPrincipalField(interface.Interface): <NEW_LINE> <INDENT> pass | principal id field | 62598fc160cbc95b0636459a |
class InterruptableThread(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, cursor, query): <NEW_LINE> <INDENT> LOGGER.debug('InterruptableThread.__init__ start') <NEW_LINE> threading.Thread.__init__(self) <NEW_LINE> self.cursor = cursor <NEW_LINE> self.query = query <NEW_LINE> self.result = NONE_RESPONSE <NEW_... | Class to run a MySQL query with a time out | 62598fc14c3428357761a519 |
class Entry_u_boot_spl_bss_pad(Entry_blob): <NEW_LINE> <INDENT> def __init__(self, section, etype, node): <NEW_LINE> <INDENT> Entry_blob.__init__(self, section, etype, node) <NEW_LINE> <DEDENT> def ObtainContents(self): <NEW_LINE> <INDENT> fname = tools.GetInputFilename('spl/u-boot-spl') <NEW_LINE> bss_size = elf.GetSy... | U-Boot SPL binary padded with a BSS region
Properties / Entry arguments:
None
This is similar to u_boot_spl except that padding is added after the SPL
binary to cover the BSS (Block Started by Symbol) region. This region holds
the various used by SPL. It is set to 0 by SPL when it starts up. If you
want to append... | 62598fc14a966d76dd5ef133 |
class IdentityDetail(APIView): <NEW_LINE> <INDENT> permission_classes = (ApiAuthRequired,) <NEW_LINE> def get(self, request, identity_uuid): <NEW_LINE> <INDENT> identity = get_identity(request.user, identity_uuid) <NEW_LINE> if not identity: <NEW_LINE> <INDENT> return failure_response( status.HTTP_404_NOT_FOUND, "The r... | The identity contains every credential necessary for atmosphere to connect 'The Provider' with a specific user.
These credentials can vary from provider to provider. | 62598fc1adb09d7d5dc0a7dc |
class SwiftAPI(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> session = _get_swift_session() <NEW_LINE> self.connection = swift_client.Connection(session=session) <NEW_LINE> <DEDENT> def create_object(self, container, obj, filename, object_headers=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT... | API for communicating with Swift. | 62598fc14f88993c371f0639 |
class UserStore(models.Model): <NEW_LINE> <INDENT> store = models.ForeignKey(Store) <NEW_LINE> user = models.ForeignKey(User) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return str(self.store) + ' | ' + str(self.user) | Class that show the relationship beetween user and stores
and citires | 62598fc156ac1b37e6302446 |
class NatlinkSpeaker(SpeakerBase): <NEW_LINE> <INDENT> _name = "natlink" <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._register() <NEW_LINE> <DEDENT> def speak(self, text): <NEW_LINE> <INDENT> mic_state = natlink.getMicState() <NEW_LINE> natlink.execScript('TTSPlayString "%s"' % text) <NEW_LINE> if mic_state... | This speaker class uses the text-to-speech functionality embedded into
Dragon NaturallySpeaking (DNS).
It is available only on Microsoft Windows and requires (DNS) and Natlink
to be installed on the system. | 62598fc197e22403b383b168 |
class Critic(nn.Module): <NEW_LINE> <INDENT> def __init__(self, state_size, action_size, seed, fc1_units=100, fc2_units=100): <NEW_LINE> <INDENT> super(Critic, self).__init__() <NEW_LINE> self.seed = torch.manual_seed(seed) <NEW_LINE> self.bn0 = nn.BatchNorm1d(state_size) <NEW_LINE> self.fcs1 = nn.Linear(state_size, fc... | Critic (Value) Model. | 62598fc13346ee7daa337778 |
class CGGetterCall(CGPerSignatureCall): <NEW_LINE> <INDENT> def __init__(self, argsPre, returnType, nativeMethodName, descriptor, attr): <NEW_LINE> <INDENT> CGPerSignatureCall.__init__(self, returnType, argsPre, [], nativeMethodName, attr.isStatic(), descriptor, attr, getter=True) | A class to generate a native object getter call for a particular IDL
getter. | 62598fc160cbc95b0636459c |
class LogisticLoss(BaseLoss): <NEW_LINE> <INDENT> def transform(self, preds): <NEW_LINE> <INDENT> return np.clip(1.0/(1.0 + np.exp(-preds)), 0.00001, 0.99999) <NEW_LINE> <DEDENT> def grad(self, preds, labels): <NEW_LINE> <INDENT> preds = self.transform(preds) <NEW_LINE> return (1-labels)/(1-preds) - labels/preds <NEW_L... | label is {0, 1}
grad = (1-y)/(1-pred) - y/pred
hess = y/pred**2 + (1-y)/(1-pred)**2 | 62598fc166656f66f7d5a652 |
class BaseRenewableCertTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> from letsencrypt import storage <NEW_LINE> self.tempdir = tempfile.mkdtemp() <NEW_LINE> self.cli_config = configuration.RenewerConfiguration( namespace=mock.MagicMock( config_dir=self.tempdir, work_dir=self.tempdir,... | Base class for setting up Renewable Cert tests.
.. note:: It may be required to write out self.config for
your test. Check :class:`.cli_test.DuplicateCertTest` for an example. | 62598fc15fc7496912d483ab |
class PluralTest(unittest.TestCase): <NEW_LINE> <INDENT> def testPlural(self): <NEW_LINE> <INDENT> self.assertEqual('cards', utility.plural(7, 'card')) <NEW_LINE> <DEDENT> def testPluralNoS(self): <NEW_LINE> <INDENT> self.assertEqual('dice', utility.plural(5, 'die', 'dice')) <NEW_LINE> <DEDENT> def testSingular(self): ... | Tests of getting the singular/plural form. (unittest.TestCase) | 62598fc15fdd1c0f98e5e1f3 |
class Variables(IgorObject): <NEW_LINE> <INDENT> def __init__(self, data, order): <NEW_LINE> <INDENT> version, = struct.unpack(order+"h",data[:2]) <NEW_LINE> if version == 1: <NEW_LINE> <INDENT> pos = 8 <NEW_LINE> nSysVar, nUserVar, nUserStr = struct.unpack(order+"hhh",data[2:pos]) <NEW_LINE> nDepVar, nD... | Contains system numeric variables (e.g., K0) and user numeric and string variables. | 62598fc1442bda511e95c6c0 |
class PymapError(Exception): <NEW_LINE> <INDENT> pass | The base exception for all custom errors in :mod:`pymap`. | 62598fc14527f215b58ea130 |
class HistSaverIfMatch(object): <NEW_LINE> <INDENT> def __init__(self, regex, extension = ".pdf", outpath="./"): <NEW_LINE> <INDENT> self.rgx = re.compile(regex) <NEW_LINE> self.ext = extension <NEW_LINE> self.path = outpath <NEW_LINE> self.can = TCanvas("saveCanvas", "saveCanvas", 1000, 1000) <NEW_LINE> <DEDENT> def _... | Functor for saving all (toplevel) histograms in a TFile. | 62598fc1fff4ab517ebcda48 |
class lexicalConceptualResourceTextInfoType_model(SchemaModel): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = "Lexical conceptual resource text" <NEW_LINE> <DEDENT> __schema_name__ = 'lexicalConceptualResourceTextInfoType' <NEW_LINE> __schema_fields__ = ( ( u'mediaType', u'mediaType', REQUIRED ), (... | Groups information on the textual part of the lexical/conceptual
resource | 62598fc13346ee7daa337779 |
class ParametersNode(object): <NEW_LINE> <INDENT> def __init__(self, kind='', name='', description='', value='', type_='', tags='', restrictions='', supported_formats=''): <NEW_LINE> <INDENT> self.kind = kind <NEW_LINE> self.name = name <NEW_LINE> self.description = description <NEW_LINE> self.value = value <NEW_LINE> ... | Represents a <NODE> tag inside the <PARAMETERS> tags.
:ivar name: name attribute of the node
:ivar description: text for description attribute of the node
:ivar value: value attribute of the node
:ivar type_: type attribute of the node
:ivar tags: tags attribute of the node
:ivar supported_formats: supported_format at... | 62598fc155399d3f05626778 |
class DeepImageFeaturizer(JavaTransformer, JavaMLReadable, JavaMLWritable): <NEW_LINE> <INDENT> inputCol = Param( Params._dummy(), "inputCol", "input column name.", typeConverter=TypeConverters.toString) <NEW_LINE> outputCol = Param( Params._dummy(), "outputCol", "output column name.", typeConverter=TypeConverters.toSt... | Applies the model specified by its popular name, with its prediction layer(s) chopped off,
to the image column in DataFrame. The output is a MLlib Vector so that DeepImageFeaturizer
can be used in a MLlib Pipeline.
The input image column should be ImageSchema. | 62598fc1e1aae11d1e7ce956 |
class VauxooToolsServers(VauxooTools): <NEW_LINE> <INDENT> def __init__(self, app_name='Vauxoo Tools', usage_message='Generated by VauxooTools', options=None, log=False, vx_instance=VxConfigServers): <NEW_LINE> <INDENT> super(VauxooToolsServers, self).__init__(app_name=app_name, usage_message=usage_message, options=opt... | Vauxoo tools is the base class to manage the common features necesary to
work with this library. | 62598fc1167d2b6e312b71d8 |
class AssignmentsView(APIView): <NEW_LINE> <INDENT> def post(self, request, classroom_pk): <NEW_LINE> <INDENT> verify_user_type(request, 'instructor') <NEW_LINE> request.data['classroom'] = classroom_pk <NEW_LINE> request.data['due_date'] = self.date_decode(request.data['due_date']) <NEW_LINE> serializer = post_seriali... | Add an assignment or view a list of all assignments in this classroom. | 62598fc1956e5f7376df57af |
class Tox21(MoleculeCSVDataset): <NEW_LINE> <INDENT> @deprecated('Import Tox21 from dgllife.data instead.', 'class') <NEW_LINE> def __init__(self, smiles_to_graph=smiles_to_bigraph, node_featurizer=None, edge_featurizer=None, load=True): <NEW_LINE> <INDENT> if 'pandas' not in sys.modules: <NEW_LINE> <INDENT> dgl_warnin... | Tox21 dataset.
The Toxicology in the 21st Century (https://tripod.nih.gov/tox21/challenge/)
initiative created a public database measuring toxicity of compounds, which
has been used in the 2014 Tox21 Data Challenge. The dataset contains qualitative
toxicity measurements for 8014 compounds on 12 different targets, incl... | 62598fc1ff9c53063f51a8b0 |
class NoiseLevelType(Serializable): <NEW_LINE> <INDENT> _fields = ('PNCRSD', 'BNCRSD') <NEW_LINE> _required = _fields <NEW_LINE> _numeric_format = {fld: FLOAT_FORMAT for fld in _fields} <NEW_LINE> PNCRSD = FloatDescriptor( 'PNCRSD', _required, strict=DEFAULT_STRICT, docstring='Noise power level in fast time signal vect... | The thermal noise level information. | 62598fc18a349b6b436864a0 |
class AppServiceCertificateOrderPaged(Paged): <NEW_LINE> <INDENT> _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, 'current_page': {'key': 'value', 'type': '[AppServiceCertificateOrder]'} } <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(AppServiceCertificateOrderPaged, self... | A paging container for iterating over a list of :class:`AppServiceCertificateOrder <azure.mgmt.web.models.AppServiceCertificateOrder>` object | 62598fc14f88993c371f063b |
class NextContent: <NEW_LINE> <INDENT> __slots__ = ('_requestCnt', '_response', '_processing', '_data', '_stream', '_nextCnt') <NEW_LINE> def __init__(self, requestCnt, response, processing, data, stream): <NEW_LINE> <INDENT> assert isinstance(requestCnt, RequestContentMultiPart), 'Invalid request content %s' % request... | Callable used for processing the next request content. | 62598fc1a219f33f346c6a6a |
class AcceptPackageTest(RouterBaseTest): <NEW_LINE> <INDENT> def test_accept_package(self): <NEW_LINE> <INDENT> payment, collateral = 50000000, 100000000 <NEW_LINE> deadline = int(time.time()) <NEW_LINE> package = self.create_package(payment, collateral, deadline, '12.970686,77.595590') <NEW_LINE> for member in (packag... | Test for accept_package endpoint. | 62598fc17cff6e4e811b5c87 |
class Reponse(models.Model): <NEW_LINE> <INDENT> question = models.ForeignKey(Question) <NEW_LINE> contenu = models.CharField(max_length=512, help_text="Le texte de la réponse à la question") <NEW_LINE> class Meta: <NEW_LINE> <INDENT> verbose_name="réponse" <NEW_LINE> <DEDENT> def __unicode__(self): <NEW_LINE> <INDENT>... | La réponse d'un élève à une question | 62598fc14c3428357761a51f |
@attrs(**ATTRSCONFIG) <NEW_LINE> class LogGroup(Resource): <NEW_LINE> <INDENT> RESOURCE_TYPE = "AWS::Logs::LogGroup" <NEW_LINE> Properties: LogGroupProperties = attrib( factory=LogGroupProperties, converter=create_object_converter(LogGroupProperties), ) | A Log Group for Logs.
See Also:
`AWS Cloud Formation documentation for LogGroup
<http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html>`_ | 62598fc163b5f9789fe853d5 |
class TemplatesWriter(XMLStreamWriterBase): <NEW_LINE> <INDENT> def __init__(self, device, templatesViewer): <NEW_LINE> <INDENT> XMLStreamWriterBase.__init__(self, device) <NEW_LINE> self.templatesViewer = templatesViewer <NEW_LINE> <DEDENT> def writeXML(self): <NEW_LINE> <INDENT> XMLStreamWriterBase.writeXML(self) <NE... | Class implementing the writer class for writing an XML templates file. | 62598fc192d797404e388c94 |
class AttendanceForm(FlaskForm): <NEW_LINE> <INDENT> building = StringField('Prédio onde a unidade se localiza:', validators=[ DataRequired('Digite o nome do prédio.') ]) <NEW_LINE> floor = StringField('Digite o andar onde a unidade se localiza:', validators=[ DataRequired('Digite o andar.') ]) <NEW_LINE> room = String... | Form for adding attendance information to database | 62598fc1a8370b77170f0645 |
class TestTopNReclaimQuery(ImpalaTestSuite): <NEW_LINE> <INDENT> QUERY = "select * from tpch.lineitem order by l_orderkey desc limit 10;" <NEW_LINE> MEM_LIMIT = "50m" <NEW_LINE> @classmethod <NEW_LINE> def get_workload(self): <NEW_LINE> <INDENT> return 'tpch' <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def add_test_dim... | Test class to validate that TopN periodically reclaims tuple pool memory
and runs with a lower memory footprint. | 62598fc1956e5f7376df57b0 |
class F(CTLS.F, PathFormula): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return 'F {}'.format(self._subformula[0]) | A class representing CTL F-formulas. | 62598fc15fc7496912d483ad |
class ClientsAPI(Resource): <NEW_LINE> <INDENT> @jwt_required() <NEW_LINE> @roles_required(ROLE_EMPLOYEE) <NEW_LINE> def get(self): <NEW_LINE> <INDENT> clients = get_all_clients() <NEW_LINE> client_schema = BaseClientJsonSchema(many=True) <NEW_LINE> return client_schema.dump(clients).data | An API to get or create clients. | 62598fc1be7bc26dc9251f8e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.