code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ContributionType(models.Model): <NEW_LINE> <INDENT> label = models.CharField(max_length=255, unique=True) <NEW_LINE> extends_duration = models.PositiveIntegerField(default=None, blank=True, null=True, verbose_name=_('duration (month)')) <NEW_LINE> dues_amount = PositiveNormalizedDecimalField(max_digits=6, decimal... | The types of contributions are defined via the manage app interface.
Two types are distinghuishable :
. those who extend the subscription duration (annual subscription for instance)
. those who do not extend the subscription duration (donation for instance)
The management interface allows to define a label and ... | 62598ef53d592f4c4edb9765 |
class ISIResponse(requests.Response): <NEW_LINE> <INDENT> def raise_for_status(self, *args, **kwargs): <NEW_LINE> <INDENT> requests.Response.raise_for_status(self, *args, **kwargs) <NEW_LINE> if 'error' in self.url.lower(): <NEW_LINE> <INDENT> err, msg = None, "" <NEW_LINE> soup = BeautifulSoup(self.content) <NEW_LINE>... | rel
Extend an requests.Response to translate ISI's frustratingly
non-standard non-HTTP error messages into standard HTTPErrors.
(Actually, translates them to ISIErrors, a more specific subclass) | 62598ef5283ffb24f3cf2121 |
class ExpressRouteCircuitSkuTier(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): <NEW_LINE> <INDENT> STANDARD = "Standard" <NEW_LINE> PREMIUM = "Premium" | The tier of the SKU. Possible values are 'Standard' and 'Premium'.
| 62598ef59f28863672817077 |
class DataGCCAForms(p.SingletonPlugin, DefaultDatasetForm): <NEW_LINE> <INDENT> p.implements(p.IActions) <NEW_LINE> p.implements(p.IValidators, inherit=True) <NEW_LINE> def get_actions(self): <NEW_LINE> <INDENT> actions = logic.limit_api_logic() <NEW_LINE> actions.update((h, getattr(logic, h)) for h in [ 'changed_packa... | Plugin for dataset forms for Canada's metadata schema | 62598ef5442bda511e95acdd |
class Playlist(object): <NEW_LINE> <INDENT> def __init__(self, id, name, cover_url, connection): <NEW_LINE> <INDENT> self._connection = connection <NEW_LINE> self._id = id <NEW_LINE> self._name = name <NEW_LINE> self._cover_url = cover_url <NEW_LINE> if not self._cover_url: <NEW_LINE> <INDENT> self._cover_url = NO_COVE... | Represents an playlist.
Do not use this class directly.
:param id: internal playlist id
:param name: name
:param cover_url: playlist's cover to generate an :class:`Playlist` object
:param connection: underlying :class:`Connection` object | 62598ef5a8370b77170eec5d |
class ForgotUsernameEmailView(generics.GenericAPIView): <NEW_LINE> <INDENT> serializer_class = ForgotUsernameEmailSerializer <NEW_LINE> permission_classes = (AllowAny,) <NEW_LINE> def post(self, request, *args, **kwargs): <NEW_LINE> <INDENT> serializer = self.get_serializer(data=request.data) <NEW_LINE> serializer.is_v... | post:
Send email and username via sms. | 62598ef566673b3332c2ec26 |
class itkAffineGeometryFrameD3(ITKCommonBasePython.itkObject): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") <NEW_LINE> __repr__ = _swig_repr <NEW_... | Proxy of C++ itkAffineGeometryFrameD3 class | 62598ef5a8370b77170eec5e |
@dataclasses.dataclass <NEW_LINE> class TargetDestroyed: <NEW_LINE> <INDENT> targetId: TargetID <NEW_LINE> @classmethod <NEW_LINE> def from_json(cls, json: dict) -> TargetDestroyed: <NEW_LINE> <INDENT> return cls(TargetID(json["targetId"])) | Issued when a target is destroyed.
Attributes
----------
targetId: TargetID | 62598ef53317a56b869bd9a2 |
class ThreadedRunner(BaseRunner): <NEW_LINE> <INDENT> def __init__(self, num_threads): <NEW_LINE> <INDENT> BaseRunner.__init__(self) <NEW_LINE> from threadpool import ThreadPool <NEW_LINE> self.pool = ThreadPool(num_threads) <NEW_LINE> self.pool.start() <NEW_LINE> <DEDENT> def run(self, fixture): <NEW_LINE> <INDENT> Ba... | Run tests using a threadpool | 62598ef526068e7796d4b1d5 |
@register(name='trapezoidal') <NEW_LINE> class TrapezoidalFastenerHead(FastenerHead): <NEW_LINE> <INDENT> diameter_top = PositiveFloat(None) <NEW_LINE> def initialize_parameters(self): <NEW_LINE> <INDENT> super(TrapezoidalFastenerHead, self).initialize_parameters() <NEW_LINE> if self.diameter_top is None: <NEW_LINE> <I... | .. image:: /_static/img/fastenerheads/trapezoidal.png | 62598ef5cc0a2c111447987a |
class ExecutorWithAck(Executor[D, P, SE, SubscriberWithAck], Generic[D, P, SE]): <NEW_LINE> <INDENT> def __init__( self, subscriber: SubscriberWithAck, handler: Handler, deserializer: D, serializer: SE = DUMMY_SERDE, publisher: Optional[P] = None, ): <NEW_LINE> <INDENT> super().__init__( handler=handler, deserializer=d... | Acknowledge-aware listener.
Defines :meth:`ListenerWithAck.ack` method.
Subclass :class:`ListenerWithAck` and specify when to ack
by overriding the corresponding callbacks. | 62598ef5cc40096d61619614 |
class SHHelpWidget(HelpWidget): <NEW_LINE> <INDENT> closeSignal = QtCore.Signal() <NEW_LINE> def __init__(self, usagetFilePath, parent = None, width = 800, height = 500): <NEW_LINE> <INDENT> super(SHHelpWidget, self).__init__(usagetFilePath, parent, width, height) <NEW_LINE> <DEDENT> def closeEvent(self, event): <NEW_L... | SHHelpWidget
Simple specialization of HelpWidget to allow closing the owner dialog with its 'close' button | 62598ef51f5feb6acb1614cd |
class BatchAnnotateImagesResponse(proto.Message): <NEW_LINE> <INDENT> responses = proto.RepeatedField( proto.MESSAGE, number=1, message="AnnotateImageResponse", ) | Response to a batch image annotation request.
Attributes:
responses (Sequence[google.cloud.vision_v1p3beta1.types.AnnotateImageResponse]):
Individual responses to image annotation
requests within the batch. | 62598ef5f548e778e5969e07 |
@implementer(ICLISubCommand) <NEW_LINE> class Version: <NEW_LINE> <INDENT> name = 'version' <NEW_LINE> def add(self, parser, command_parser): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def process(self, args): <NEW_LINE> <INDENT> print(MAILMAN_VERSION_FULL) | Mailman's version. | 62598ef5377c676e912f619f |
class GalaxyCollectionSerializer(serializers.Serializer): <NEW_LINE> <INDENT> id = serializers.CharField(source="pulp_id") <NEW_LINE> name = serializers.CharField() <NEW_LINE> namespace = serializers.SerializerMethodField() <NEW_LINE> href = serializers.SerializerMethodField(read_only=True) <NEW_LINE> versions_url = se... | A serializer for a Collection. | 62598ef52c8b7c6e89bd203f |
class Guest (DictSQLObject): <NEW_LINE> <INDENT> name = so.UnicodeCol() <NEW_LINE> admin = so.BoolCol(default=False) <NEW_LINE> parprop = so.IntCol(default=-1) <NEW_LINE> token = so.StringCol(length=8) <NEW_LINE> event = so.ForeignKey('Event') | Collects information about Guests
Refrenced to by the ChatMsg Table | 62598ef5e1aae11d1e7cdc7e |
class ContainersSetupConfig(ConfigSectionInterface): <NEW_LINE> <INDENT> SECTION_NAME = 'containers' <NEW_LINE> @property <NEW_LINE> def container_type(self): <NEW_LINE> <INDENT> return self.get('container_type') <NEW_LINE> <DEDENT> @property <NEW_LINE> def default_container_name(self): <NEW_LINE> <INDENT> return self.... | Basic Container Setup Information | 62598ef53d592f4c4edb9766 |
class StarDirectoryNotFoundError(Error): <NEW_LINE> <INDENT> def __init__(self, message=None): <NEW_LINE> <INDENT> self.message = message | Error to raise if the directory given to create a star from does not
exist. | 62598ef597e22403b3839769 |
class MazdaConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): <NEW_LINE> <INDENT> VERSION = 1 <NEW_LINE> CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._reauth_entry = None <NEW_LINE> self._email = None <NEW_LINE> self._region = None <NEW_LINE> <DEDENT... | Handle a config flow for Mazda Connected Services. | 62598ef54527f215b58e877b |
class WebServiceError(CamelidError): <NEW_LINE> <INDENT> def __init__(self, status, text, *args, **kwargs): <NEW_LINE> <INDENT> self.status = status <NEW_LINE> self.text = text <NEW_LINE> super().__init__(self, *args, **kwargs) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> msg = 'Status {0}: {1}'.format(se... | Raised when a web service returns something unexpected. | 62598ef576e4537e8c3ede32 |
class DuplicatedArtifactError(Error): <NEW_LINE> <INDENT> def __init__(self, name, cause=None): <NEW_LINE> <INDENT> super().__init__(name, cause=cause) <NEW_LINE> self.name = name <NEW_LINE> self.message = "Artifact with name '%s' already exists" % self.name | An exception class for errors about duplicated artifacts being written.
Attributes:
name: A name of the artifact that was referenced.
cause: An (optional) exception instance that triggered this error. | 62598ef560cbc95b06362bb1 |
class TokenEndpoint(six.with_metaclass(FieldMeta, BaseObj)): <NEW_LINE> <INDENT> __swagger_fields__ = [ ('url', None), ('tokenName', None), ] | TokenEndpoint Object
| 62598ef567a9b606de54484a |
class GameGroup(models.Model): <NEW_LINE> <INDENT> _name = "og.game.group" <NEW_LINE> _description = "Game Group" <NEW_LINE> _order = 'sequence, name' <NEW_LINE> name = fields.Char('Name', required=True ) <NEW_LINE> sequence = fields.Integer() <NEW_LINE> game_id = fields.Many2one('og.game','Game', required=True, ondele... | # Only for Team Match | 62598ef599fddb7c1ca62241 |
class AttributesPlugin(cuegui.AbstractDockWidget.AbstractDockWidget): <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> cuegui.AbstractDockWidget.AbstractDockWidget.__init__( self, parent, PLUGIN_NAME, QtCore.Qt.RightDockWidgetArea) <NEW_LINE> self.__attributes = Attributes(self) <NEW_LINE> self.layou... | Plugin that lists attributes of the selected object. | 62598ef54527f215b58e877c |
class Max(_MinMax): <NEW_LINE> <INDENT> sense = 1 | <dl>
<dt>'Max[$e_1$, $e_2$, ..., $e_i$]'
<dd>returns the expression with the greatest value among the $e_i$.
</dl>
Maximum of a series of values:
>> Max[4, -8, 1]
= 4
>> Max[E - Pi, Pi, E + Pi, 2 E]
= E + Pi
'Max' flattens lists in its arguments:
>> Max[{1,2},3,{-3,3.5,-Infinity},{{1/2}}]
= 3.5
'Max' with sym... | 62598ef5dc8b845886d51e40 |
class Food(BaseProvider): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self._data = pull('food.json', self.locale) <NEW_LINE> <DEDENT> def vegetable(self): <NEW_LINE> <INDENT> vegetables = self._data['vegetables'] <NEW_LINE> return self.random... | Class for Food, i.e fruits, vegetables, berries and other. | 62598ef566673b3332c2ec28 |
class ProfileViewHandler(BaseHandler): <NEW_LINE> <INDENT> @authenticated_user <NEW_LINE> def get(self): <NEW_LINE> <INDENT> self.render(u"../resources/templates/app/profile.html", options=options, current_user=self.get_current_user(), delete_account_error=None) | Responsible for showing the user profile options | 62598ef557b8e32f52507541 |
class API: <NEW_LINE> <INDENT> def __init__(self, address, *, token=None, consistency=None, loop=None): <NEW_LINE> <INDENT> self.token = token <NEW_LINE> self.consistency = consistency <NEW_LINE> self.req_handler = RequestHandler(address, loop=loop) <NEW_LINE> self.req_handler.json_loader = json.loads <NEW_LINE> self._... | Attributes:
token (str): Token ID
consistency (Consistency): One of the value as defined by
:class:`~aioconsul.typing.Consistency` | 62598ef571ff763f4b5e5fdb |
class SiteToSiteVPN(MerakiAPIResource): <NEW_LINE> <INDENT> resource = "siteToSiteVpn" <NEW_LINE> parameters = ["mode", "hubs"] <NEW_LINE> def __init__(self, key, prefix, resource_id=None): <NEW_LINE> <INDENT> MerakiAPIResource.__init__(self, key, prefix, resource_id) | Meraki API Organization Admins resource. | 62598ef5fff4ab517ebcc053 |
class BareFace(Face): <NEW_LINE> <INDENT> pass | A face with nothing on it. | 62598ef526068e7796d4b1d7 |
class HelpIntentHandler(AbstractRequestHandler): <NEW_LINE> <INDENT> def can_handle(self, handler_input): <NEW_LINE> <INDENT> return ask_utils.is_intent_name("AMAZON.HelpIntent")(handler_input) <NEW_LINE> <DEDENT> def handle(self, handler_input): <NEW_LINE> <INDENT> speak_output = "Perdona tuve una confusion, puedes vo... | Handler for Help Intent. | 62598ef54a966d76dd5ed755 |
class JointPipeline(Pipeline): <NEW_LINE> <INDENT> def __init__(self, learner_attach, learner_label, decoder): <NEW_LINE> <INDENT> if not learner_attach.can_predict_proba: <NEW_LINE> <INDENT> raise ValueError('Attachment model does not know how to predict ' 'probabilities.') <NEW_LINE> <DEDENT> if not learner_label.can... | Parser that performs attach, direction, and labelling tasks.
For the moment, this assumes AD.L models, but we hope to
explore possible generalisations of this idea over time.
In our working shorthand, this would be an AD.L:adl parser,
ie. one that has separate attach-direct model and label
model (AD.L); but which tre... | 62598ef51b99ca400228e94c |
class RateYourMusic(SchemaOrgService): <NEW_LINE> <INDENT> pass | Implementation of Service which is intended to parse RateYourMusic.
Yes, because I can. | 62598ef5091ae35668703494 |
class JSONRPC20ServerError(JSONRPC20SpecificError): <NEW_LINE> <INDENT> CODE = -32000 <NEW_LINE> MESSAGE = "Server error" | Server error.
Reserved for implementation-defined server-errors. | 62598ef53617ad0b5ee049a2 |
class ProbaBase(Dataset): <NEW_LINE> <INDENT> def __init__(self, data_dir, prefix="LR"): <NEW_LINE> <INDENT> super(ProbaBase, self).__init__() <NEW_LINE> self.data_dir = data_dir <NEW_LINE> imgsets = [os.path.join(data_dir, s) for s in os.listdir(self.data_dir)] <NEW_LINE> self.ids = [os.path.basename(s) for s in imgse... | Shared Paths for Proba Data | 62598ef5ff9c53063f518ede |
class Sequence(object): <NEW_LINE> <INDENT> def __init__(self, command=None, id=None, name=None, cyclic=None, steps=None): <NEW_LINE> <INDENT> self.swagger_types = { 'command': 'str', 'id': 'int', 'name': 'str', 'cyclic': 'bool', 'steps': 'list[Step]' } <NEW_LINE> self.attribute_map = { 'command': 'Command', 'id': 'id'... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598ef52c8b7c6e89bd2042 |
class EestecerCreationForm(UserCreationForm): <NEW_LINE> <INDENT> def __init__(self, *args, **kargs): <NEW_LINE> <INDENT> super(EestecerCreationForm, self).__init__(*args, **kargs) <NEW_LINE> del self.fields['username'] <NEW_LINE> self.fields['thumbnail'].required=True <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT... | A form that creates a user, with no privileges, from the given email and
password. | 62598ef54f88993c371ef928 |
class MismatchCounts(object): <NEW_LINE> <INDENT> types_to_id = {"A":0, "C":1, "G":2, "T":3, "DEL":5} <NEW_LINE> def __init__(self, chrom, start, end): <NEW_LINE> <INDENT> self.chrom = chrom <NEW_LINE> self.start = start <NEW_LINE> self.end = end <NEW_LINE> length = end - start <NEW_LINE> self.counts = numpy.zeros([6, ... | keeps track of how many of each nucleotide (or insertion/deletion) are present at each position
-> used for the quick consensus mode | 62598ef53d592f4c4edb9769 |
class GithubBackend(OAuthBackend): <NEW_LINE> <INDENT> name = 'github' <NEW_LINE> EXTRA_DATA = [ ('id', 'id'), ('expires', 'expires') ] <NEW_LINE> def get_user_details(self, response): <NEW_LINE> <INDENT> return {'username': response.get('login'), 'email': response.get('email') or '', 'first_name': response.get('name')... | Github OAuth authentication backend | 62598ef57d847024c075ac4a |
class VariantPaths(productmd.common.MetadataBase): <NEW_LINE> <INDENT> def __init__(self, variant): <NEW_LINE> <INDENT> self._variant = variant <NEW_LINE> self.parent = None <NEW_LINE> self.identity = {} <NEW_LINE> self._fields = [ "os_tree", "packages", "repository", "isos", "jigdos", "source_tree", "source_packages",... | This class stores relative paths for a variant in a compose.
Paths are represented as dictionaries mapping arches to actual paths.
List of supported paths follows.
**Binary**
* **os_tree** -- installable tree with binary RPMs, kickstart trees, readme etc.
* **packages** -- directory with binary RPMs
* **r... | 62598ef560cbc95b06362bb3 |
class BaseTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.x_matrix = np.array([ [10, 2e-3, 1000, 1e-3, 72e-3, 1.205, 1.8e-5, 68e-9, np.pi/3], [5, 2e-3, 1000, 1e-3, 72e-3, 1.205, 1.8e-5, 68e-9, np.pi/3], [10, 2e-3, 1000, 1e-3, 72e-3, 0.22, 2e-5, 173e-9, np.pi/3], [5, 2e-3, 1000, 1e... | BaseTest class containing example drop impacts.
Inherit this class to have same examples in all tests. | 62598ef523849d37ff84f93a |
class PruneChildrenForMcPatVisitor(Visitor): <NEW_LINE> <INDENT> def __init__(self, options): <NEW_LINE> <INDENT> super(PruneChildrenForMcPatVisitor, self).__init__() <NEW_LINE> self.options = options <NEW_LINE> <DEDENT> def debug(self, *args): <NEW_LINE> <INDENT> debug.pp(PARTREF, *args) <NEW_LINE> <DEDENT> def visit(... | Prunes irrelevant nodes from the component tree.
This visitor class hides all components from the tree that are not
relevant for McPat's machine model. This is done by setting the
mcpat_export_conf attribute of class Component.
There used to be a distinction between the DefaultOutputFilter and
PruneChildrenForMcPatVi... | 62598ef599fddb7c1ca62242 |
class BaseModelAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> date_hierarchy = 'created' <NEW_LINE> search_fields = ['=id', 'name', ] <NEW_LINE> list_display = [ '__str__', 'view_on_site_link', 'created_display', 'updated_display', ] <NEW_LINE> list_filter = ['created', ] <NEW_LINE> readonly_fields = ['id', 'created', 'c... | Base class for 'shared' model admins;
manages common metadata | 62598ef5be7bc26dc92512a1 |
class NodejsNpmInstallAction(BaseAction): <NEW_LINE> <INDENT> NAME = 'NpmInstall' <NEW_LINE> DESCRIPTION = "Installing dependencies from NPM" <NEW_LINE> PURPOSE = Purpose.RESOLVE_DEPENDENCIES <NEW_LINE> def __init__(self, artifacts_dir, subprocess_npm): <NEW_LINE> <INDENT> super(NodejsNpmInstallAction, self).__init__()... | A Lambda Builder Action that installs NPM project dependencies | 62598ef5a8370b77170eec61 |
class Typeface(models.Model): <NEW_LINE> <INDENT> def __unicode__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> name = models.CharField(max_length=100) <NEW_LINE> designer = models.CharField(max_length=100, blank=True) <NEW_LINE> blurb = models.TextField(blank=True) | Describes a typeface along with its variants. | 62598ef510dbd63aa1c6f3f7 |
class OrgView(View): <NEW_LINE> <INDENT> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> all_orgs = CourseOrg.objects.all() <NEW_LINE> all_citys = City.objects.all() <NEW_LINE> hot_orgs = all_orgs.order_by("-click_nums")[:3] <NEW_LINE> category = request.GET.get("ct", "") <NEW_LINE> if category: <NEW_LINE>... | 机构 | 62598ef5bf627c535bcafcee |
class SiteStats(Choreography): <NEW_LINE> <INDENT> def __init__(self, temboo_session): <NEW_LINE> <INDENT> Choreography.__init__(self, temboo_session, '/Library/AdMob/SiteStats') <NEW_LINE> <DEDENT> def new_input_set(self): <NEW_LINE> <INDENT> return SiteStatsInputSet() <NEW_LINE> <DEDENT> def _make_result_set(self, re... | Create a new instance of the SiteStats Choreography. A TembooSession object, containing a valid
set of Temboo credentials, must be supplied. | 62598ef5cc40096d61619616 |
class PollingTask(object): <NEW_LINE> <INDENT> def __init__(self, agent_manager): <NEW_LINE> <INDENT> self.manager = agent_manager <NEW_LINE> self.pollster_matches = collections.defaultdict(set) <NEW_LINE> self.publishers = {} <NEW_LINE> resource_factory = lambda: Resources(agent_manager) <NEW_LINE> self.resources = co... | Polling task for polling samples and inject into pipeline.
A polling task can be invoked periodically or only once. | 62598ef5fff4ab517ebcc055 |
class StdConvert(StdService): <NEW_LINE> <INDENT> def __init__(self, engine, config_dict): <NEW_LINE> <INDENT> super(StdConvert, self).__init__(engine, config_dict) <NEW_LINE> try: <NEW_LINE> <INDENT> target_unit_nickname = config_dict['StdConvert']['target_unit'] <NEW_LINE> <DEDENT> except KeyError: <NEW_LINE> <INDENT... | Service for performing unit conversions.
This service acts as a filter. Whatever packets and records come in are
converted to a target unit system.
This service should be run before most of the others, so observations appear
in the correct unit. | 62598ef5d486a94d0ba2a846 |
class JLinkInterfaces(object): <NEW_LINE> <INDENT> JTAG = 0 <NEW_LINE> SWD = 1 <NEW_LINE> FINE = 3 <NEW_LINE> ICSP = 4 <NEW_LINE> SPI = 5 <NEW_LINE> C2 = 6 | Target interfaces for the J-Link. | 62598ef51f5feb6acb1614d1 |
class GenericJob: <NEW_LINE> <INDENT> def __init__(self, inp=None): <NEW_LINE> <INDENT> self.jobname = None <NEW_LINE> self.inpfile = inp <NEW_LINE> self.template = None <NEW_LINE> self.timelimit = "" <NEW_LINE> self.scratch = "/tmp" <NEW_LINE> self.memory = None <NEW_LINE> self.abaqus_licenses = {} <NEW_LINE> self.sub... | Model for a generic job | 62598ef58da39b475be01a2d |
class MultipartUpload(_helpers.RequestsMixin, _upload.MultipartUpload): <NEW_LINE> <INDENT> def transmit(self, transport, data, metadata, content_type): <NEW_LINE> <INDENT> method, url, payload, headers = self._prepare_request( data, metadata, content_type) <NEW_LINE> result = _helpers.http_request( transport, method, ... | Upload a resource with metadata to a Google API.
A **multipart** upload sends both metadata and the resource in a single
(multipart) request.
Args:
upload_url (str): The URL where the content will be uploaded.
headers (Optional[Mapping[str, str]]): Extra headers that should
be sent with the request, e... | 62598ef5adb09d7d5dc08e3d |
class JointAccelerationCondition(JointCondition): <NEW_LINE> <INDENT> def __init__(self, robot, joint_ids=None, bounds=(None, None), out=False, stay=False, all=False): <NEW_LINE> <INDENT> super(JointAccelerationCondition, self).__init__(robot, joint_ids=joint_ids, bounds=bounds, out=out, stay=stay, all=all) <NEW_LINE> ... | Joint acceleration terminal condition
This terminal condition describes 8 cases (4 failure and 4 success cases):
1. all the joint accelerations are:
1. in a certain bounds and must stay between these bounds. Once one gets out, the terminal condition is over,
and results in a failure. (all=True, out=False, ... | 62598ef5379a373c97d97875 |
class InfixToPostfixTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.replacement_table = { "+": "operator.add", "-": "operator.sub", "*": "operator.mul", "/": "operator.truediv", "%": "operator.mod", "^": "math.pow", ">": "operator.gt", "==": "operator.eq", "not": "operator.not_" }... | Unit tests for the infix_to_postfix module. | 62598ef556ac1b37e6300a6b |
class Changelog: <NEW_LINE> <INDENT> def __init__(self, file_handle, filename="CHANGELOG.md"): <NEW_LINE> <INDENT> self.filename = filename <NEW_LINE> self.file_handle = file_handle <NEW_LINE> self._parse() <NEW_LINE> <DEDENT> RE_HEADER = re.compile( r"^(##\s*(?:Unreleased$|v[0-9]+\.[0-9]+\.[0-9]+.*?)$)", flags=re.MULT... | This class automates several changelog lifecycle updates, as described under
TEST_CHANGELOGS in the test source file. | 62598ef5167d2b6e312b5819 |
class TbxKarteOEPNV(Tbx): <NEW_LINE> <INDENT> @property <NEW_LINE> def label(self): <NEW_LINE> <INDENT> return u'OEPNV-Karte' <NEW_LINE> <DEDENT> @property <NEW_LINE> def Tool(self): <NEW_LINE> <INDENT> return(KarteOEPNV) <NEW_LINE> <DEDENT> def _getParameterInfo(self): <NEW_LINE> <INDENT> par = self.par <NEW_LINE> par... | Toolbox OEPNV-Karte | 62598ef567a9b606de54484d |
class AsyncioMagicMock(unittest.mock.MagicMock): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> __class__ = types.CoroutineType <NEW_LINE> <DEDENT> except AttributeError: <NEW_LINE> <INDENT> __class__ = types.GeneratorType <NEW_LINE> <DEDENT> def __init__(self, return_value=None, **kwargs): <NEW_LINE> <INDENT> if return_... | Magic mock returning coroutine | 62598ef53d592f4c4edb976b |
class TextFormat(Format): <NEW_LINE> <INDENT> def __init__(self, score_attr="best_score", unknown=None): <NEW_LINE> <INDENT> Format.__init__(self, score_attr=score_attr, unknown=unknown) <NEW_LINE> self.out_str = "" <NEW_LINE> <DEDENT> def _single_run(self, graph): <NEW_LINE> <INDENT> log.debug("applying {0} to graph {... | Format translations in plain text format
Parameters
----------
score_attr: string, optional
attribute on translation edges which contains the scores
unknown: str or None
Target lemma to use when no translations were found.
The default value of None means that the source lemma will be used.
Attr... | 62598ef5377c676e912f61a1 |
class OffsetAnalysis(SyntaxVisitor): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.known_offsets = {} <NEW_LINE> <DEDENT> def update(self, x, y, k): <NEW_LINE> <INDENT> if x == y: <NEW_LINE> <INDENT> assert k == 0, "Impossible %s = %s + %d" % (x,y,k) <NEW_LINE> <DEDENT> if x in self.known_off... | Determine static offset relationships between variables | 62598ef52ae34c7f260a995f |
class X509CAReferences(Model): <NEW_LINE> <INDENT> _attribute_map = { 'primary': {'key': 'primary', 'type': 'str'}, 'secondary': {'key': 'secondary', 'type': 'str'}, } <NEW_LINE> def __init__(self, primary=None, secondary=None): <NEW_LINE> <INDENT> super(X509CAReferences, self).__init__() <NEW_LINE> self.primary = prim... | Primary and secondary CA references.
:param primary:
:type primary: str
:param secondary:
:type secondary: str | 62598ef544b2445a339b5dac |
class UserNameUpdateForm(forms.Form): <NEW_LINE> <INDENT> username = forms.CharField(required=True, initial=u'用户名', min_length=5, max_length=16, error_messages={ 'required': u'请输入用户名', 'min_length': u'用户名最少5个字符', 'max_length': u'用户名最多16个字符' }) | 修改用户名 | 62598ef597e22403b383976e |
class BSA_ListContents(ItemLink): <NEW_LINE> <INDENT> _text = _(u'List Contents...') <NEW_LINE> _help = _(u'Lists the contents of each selected BSA and copies it to the ' u'clipboard.') <NEW_LINE> def Execute(self): <NEW_LINE> <INDENT> full_text = u'=== Selected BSA Contents:' <NEW_LINE> full_text += u'\n[spoiler]' <NE... | Lists the contents of one or more BSAs. | 62598ef53539df3088ecab2c |
class GetTeamLoansResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None) | A ResultSet with methods tailored to the values returned by the GetTeamLoans Choreo.
The ResultSet object is used to retrieve the results of a Choreo execution. | 62598ef501c39578d7f11622 |
class Alien(Sprite): <NEW_LINE> <INDENT> def __init__(self, ai_settings, screen): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.screen = screen <NEW_LINE> self.ai_settings = ai_settings <NEW_LINE> self.image = pygame.image.load('images/alien.bmp') <NEW_LINE> self.rect = self.image.get_rect() <NEW_LINE> self.re... | Class shows single alien | 62598ef5283ffb24f3cf2127 |
class ReplayBuffer: <NEW_LINE> <INDENT> def __init__(self, buffer_size): <NEW_LINE> <INDENT> self.buffer_size = buffer_size <NEW_LINE> self.count = 0 <NEW_LINE> self.buffer = deque() <NEW_LINE> <DEDENT> def add(self, s, a, r, d, s2): <NEW_LINE> <INDENT> experience = (s, a, r, d, s2) <NEW_LINE> if self.count < self.buff... | Constructs a buffer object that stores the past moves
and samples a set of subsamples | 62598ef510dbd63aa1c6f3f9 |
class NoSuchProductSeries(LaunchpadFault): <NEW_LINE> <INDENT> error_code = 180 <NEW_LINE> msg_template = ( 'Project %(product_name)s has no series called "%(series_name)s"') <NEW_LINE> def __init__(self, series_name, product): <NEW_LINE> <INDENT> LaunchpadFault.__init__( self, series_name=series_name, product_name=pro... | There is no such series on a particular project. | 62598ef5a8370b77170eec63 |
class Polar(object): <NEW_LINE> <INDENT> def __init__(self, mag, dir): <NEW_LINE> <INDENT> self.mag = mag <NEW_LINE> self.dir = dir <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_complex(cls, c): <NEW_LINE> <INDENT> return cls(abs(c), dirN(c)) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "(%s... | Polar notation, except the direction is a compass heading. | 62598ef555399d3f05624da6 |
class PamFaxClass(): <NEW_LINE> <INDENT> def __unicode__(self): <NEW_LINE> <INDENT> return '\n'.join( ['%s: ' % self.__class__.__name__] + ['\t%s = %s' % (field, self.__dict__[field]) for field in self.__dict__] ) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.__unicode__() | Super class for all PamFax API classes. | 62598ef55fdd1c0f98e5c823 |
class Solution: <NEW_LINE> <INDENT> def flatten(self, root): <NEW_LINE> <INDENT> if root == None: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> self.helper(root) <NEW_LINE> return <NEW_LINE> <DEDENT> def helper(self, node): <NEW_LINE> <INDENT> if node == None: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> l_last = se... | @param root: a TreeNode, the root of the binary tree
@return: nothing | 62598ef5796e427e5384d018 |
class SearchForm(forms.Form): <NEW_LINE> <INDENT> name = forms.CharField(max_length='32', min_length=2) <NEW_LINE> distversion = forms.ModelChoiceField(queryset=DistVersion.objects.all(), required=False) <NEW_LINE> def make_search_query(self): <NEW_LINE> <INDENT> if not self.is_valid(): <NEW_LINE> <INDENT> return None ... | simple form for search request
in future need to split this form for two different | 62598ef5bf627c535bcafcf0 |
class NovaException(Exception): <NEW_LINE> <INDENT> msg_fmt = _("An unknown exception occurred.") <NEW_LINE> code = 500 <NEW_LINE> headers = {} <NEW_LINE> safe = False <NEW_LINE> def __init__(self, message=None, **kwargs): <NEW_LINE> <INDENT> self.kwargs = kwargs <NEW_LINE> if 'code' not in self.kwargs: <NEW_LINE> <IND... | Base Nova Exception
To correctly use this class, inherit from it and define
a 'msg_fmt' property. That msg_fmt will get printf'd
with the keyword arguments provided to the constructor. | 62598ef58a349b6b43684ac0 |
class SelectByPrefix(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "object.select_by_prefix" <NEW_LINE> bl_label = "Select by Prefix" <NEW_LINE> bl_options = {'REGISTER', 'UNDO'} <NEW_LINE> global converted <NEW_LINE> @classmethod <NEW_LINE> def poll(cls, context): <NEW_LINE> <INDENT> return ((len(context.select... | Select all objects with the same prefix | 62598ef523849d37ff84f93c |
class MethodObjectCall(IObjectCall): <NEW_LINE> <INDENT> def __init__(self, method): <NEW_LINE> <INDENT> IObjectCall.__init__(self) <NEW_LINE> self.method=method <NEW_LINE> self.named=isinstance(method,textstring) <NEW_LINE> <DEDENT> def __call__(self, obj, *args, **vargs): <NEW_LINE> <INDENT> if self.named: <NEW_LINE>... | Object call created from an object method.
Args:
method: Either a method object or a method name which is used for the call. | 62598ef526068e7796d4b1db |
class ApplicationStatusMessage(Core.Message): <NEW_LINE> <INDENT> __swig_setmethods__ = {} <NEW_LINE> for _s in [Core.Message]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) <NEW_LINE> __setattr__ = lambda self, name, value: _swig_setattr(self, ApplicationStatusMessage, name, value) <NEW_LINE> __swig... | Proxy of C++ Seiscomp::Client::ApplicationStatusMessage class | 62598ef591f36d47f22302e4 |
class CaptureDistrictIntentHandler(AbstractRequestHandler): <NEW_LINE> <INDENT> def can_handle(self, handler_input): <NEW_LINE> <INDENT> return ask_utils.is_intent_name("CaptureDistrictIntent")(handler_input) <NEW_LINE> <DEDENT> def handle(self, handler_input): <NEW_LINE> <INDENT> slots = handler_input.request_envelope... | Handler for getting the school district. | 62598ef57047854f4633dc48 |
class Race(db.Model, IRace): <NEW_LINE> <INDENT> __tablename__ = "races" <NEW_LINE> __table_args__ = {'extend_existing': True} <NEW_LINE> id = db.Column(db.Integer, primary_key=True, autoincrement=True) <NEW_LINE> name = db.Column(db.String(100), nullable=False) <NEW_LINE> date = db.Column(db.DateTime, nullable=False) ... | Class representing a single race | 62598ef5ec188e330fdf7128 |
class CustomCode: <NEW_LINE> <INDENT> def __init__(self, code): <NEW_LINE> <INDENT> self._code = code <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self._code <NEW_LINE> <DEDENT> @property <NEW_LINE> def code(self): <NEW_LINE> <INDENT> return self._code <NEW_LINE> <DEDENT> @code.setter <NEW_LINE> de... | Wrapper to distinguish from template filename | 62598ef57d847024c075ac4e |
class OldStat: <NEW_LINE> <INDENT> def __init__(self, cvxmodel, instance, costreal): <NEW_LINE> <INDENT> self.status = cvxmodel.status <NEW_LINE> self.cpu = cvxmodel.Runtime <NEW_LINE> self.realub = costreal <NEW_LINE> self.lb = cvxmodel.objBound <NEW_LINE> self.nodes = cvxmodel.NodeCount <NEW_LINE> self.iter = cvxmode... | Statistics for solving one instance. | 62598ef57d847024c075ac4f |
class ListListResponse(messages.Message): <NEW_LINE> <INDENT> lists = messages.MessageField(List, 1, repeated=True) | Collection of Lists. | 62598ef5091ae35668703498 |
class Voter(object): <NEW_LINE> <INDENT> def __init__(self, arrival_time, voting_duration): <NEW_LINE> <INDENT> self.arrival_time = arrival_time <NEW_LINE> self.voting_duration = voting_duration <NEW_LINE> self.start_time = None <NEW_LINE> self.departure_time = None | Represents a voter.
Attributes: arrival_time, voting_voting duration, start_time | 62598ef54f88993c371ef92a |
class CacheDumpType_v1(CacheDump): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(CacheDumpType_v1, self).__init__() <NEW_LINE> self.tableformat = TableOutputFormat() <NEW_LINE> self.tableformat.addColumn('Way', '{0:01x}') <NEW_LINE> self.tableformat.addColumn('Set', '{0:03x}') <NEW_LINE> self.ramdum... | Uses the format struct_CacheDumpType_v1, followed by an array of raw data | 62598ef58a43f66fc4bf09f6 |
class Vivado(subprocess.Popen): <NEW_LINE> <INDENT> def __init__(self, commands, *args): <NEW_LINE> <INDENT> self.cwd = tempfile.TemporaryDirectory(prefix='vivado-') <NEW_LINE> self.tcl_file = open(os.path.join(self.cwd.name, 'tcl'), mode='w+') <NEW_LINE> self.tcl_file.write(commands) <NEW_LINE> self.tcl_file.flush() <... | Call vivado with the given tcl commands and arguments.
Args:
commands: string of tcl commands
args: sequence of arguments | 62598ef560cbc95b06362bb7 |
class AttributeMap(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Key = None <NEW_LINE> self.Value = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Key = params.get("Key") <NEW_LINE> self.Value = params.get("Value") <NEW_LINE> memeber_set = set(params... | 玩家属性字典类型值
| 62598ef523849d37ff84f93e |
class SimpleLog(object): <NEW_LINE> <INDENT> def __init__(self, use=True, fileName="EdPy.log", maxBytes=2000000): <NEW_LINE> <INDENT> self.fh = None <NEW_LINE> self.use = use <NEW_LINE> self.start = datetime.datetime.now() <NEW_LINE> self.fileName = fileName <NEW_LINE> self.maxBytes = maxBytes <NEW_LINE> <DEDENT> def f... | Provide a VERY SIMPLE log of execution. Just start, and end with timestamps. So
if something crashes then should be able to see that it happened. | 62598ef526068e7796d4b1dd |
class GenericSolver(object): <NEW_LINE> <INDENT> def __init__(self, iterations=None, snapshot=None, snapshot_prefix=None, solver_type='SGD', test_interval=None, test_initialization=True, lr_policy=None, base_lr=None, gamma=None, stepsize=None, momentum=None, weight_decay=None, power=None, iter_size=1): <NEW_LINE> <INDE... | iterations int yes N/A Max number of solver’s iterations
snapshot int yes N/A Iterations between model snapshots
snapshot_prefix string yes empty Prefix to snapshot file, supports repository
solver_type string yes SGD from "SGD”, “A... | 62598ef5a8370b77170eec66 |
class LoginForm(Form, NextFormMixin): <NEW_LINE> <INDENT> email = StringField(get_form_field_label('email'), validators=[Required(message='EMAIL_NOT_PROVIDED')]) <NEW_LINE> password = PasswordField(get_form_field_label('password'), validators=[password_required]) <NEW_LINE> remember = BooleanField(get_form_field_label(... | The default login form | 62598ef5377c676e912f61a3 |
class Cleaning(Base): <NEW_LINE> <INDENT> __tablename__ = 'cleaning' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> slack_id = Column(Unicode(11), nullable=False) <NEW_LINE> day_of_week = Column(Integer, nullable=False) <NEW_LINE> ctime = Column(DateTime, default=datetime.datetime.now, nullable=False) | 掃除当番、各掃除の曜日割当の管理に使用されるコマンドのModel
| 62598ef563b5f9789fe839e0 |
class DataProcessor(object): <NEW_LINE> <INDENT> def get_train_examples(self, data_dir): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def get_dev_examples(self, data_dir): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def get_test_examples(self, data_dir): <NEW_LINE> <INDENT... | Base class for data converters for sequence classification data sets. | 62598ef571ff763f4b5e5fe2 |
class checkpoint(_generic_attr): <NEW_LINE> <INDENT> _derived_types = (_generic_attr,) <NEW_LINE> def __init__(self, value): <NEW_LINE> <INDENT> _pbs_v1.validate_input("job", "Checkpoint", value) <NEW_LINE> super().__init__(value) | Represents a job's checkpoint attribute.
Format: pbs.checkpoint( <chkpnt_string> )
where <chkpnt_string> must be one of "n", "s", "c", or "c=mmm" | 62598ef54527f215b58e8783 |
class Serving(models.Model): <NEW_LINE> <INDENT> meal = models.ForeignKey(Meal) <NEW_LINE> location = models.ForeignKey(Cafeteria) <NEW_LINE> date = models.DateField(null=True, blank=True) <NEW_LINE> category = models.CharField(max_length=100, blank=True, null=True) <NEW_LINE> BREAKFAST = 'BR' <NEW_LINE> LUNCH = 'LN' <... | An instance when a meal is served | 62598ef53d592f4c4edb976f |
class ApplicationGatewayFrontendPort(SubResource): <NEW_LINE> <INDENT> _validation = { 'etag': {'readonly': True}, 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'etag': {'key': 'etag', 'ty... | Frontend port of an application gateway.
Variables are only populated by the server, and will be ignored when sending a request.
:param id: Resource ID.
:type id: str
:param name: Name of the frontend port that is unique within an Application Gateway.
:type name: str
:ivar etag: A unique read-only string that changes... | 62598ef530bbd722464684b8 |
class Volunteer(Base): <NEW_LINE> <INDENT> __tablename__ = 'volunteer' <NEW_LINE> id = sa.Column(sa.types.Integer, primary_key=True) <NEW_LINE> person_id = sa.Column(sa.types.Integer, sa.ForeignKey('person.id'), unique=True, nullable=False) <NEW_LINE> areas = sa.Column(CommaList, nullable=False) <NEW_LINE> other = sa.C... | Information about a potential volunteer
| 62598ef59c8ee8231303f59c |
class _ConnectionCtx(object): <NEW_LINE> <INDENT> def __enter__(self): <NEW_LINE> <INDENT> global _db_ctx <NEW_LINE> self.should_cleanup = False <NEW_LINE> if not _db_ctx.is_init(): <NEW_LINE> <INDENT> _db_ctx.init() <NEW_LINE> self.should_cleanup = True <NEW_LINE> <DEDENT> return self <NEW_LINE> <DEDENT> def __exit__(... | ''
_ConnectionCtx object that can open and close connection context._ConnectionCtx object can nested and only the most
outer connection has effect
with connection():
pass
with connectino():
pass | 62598ef5f548e778e5969e0e |
class Layer(object): <NEW_LINE> <INDENT> pass | Layer of NN. Not output layer.
Attributes:
input (Layer): A Layer object, if it's None, then this is a Input Layer.
a (np.ndarray): outputs after activiation, shape (size,).
size (np.uint32): number of nodes in the layer.
weight (np.ndarray): shape (input.size, size).
activiation (func): func(x) -->... | 62598ef5009cb60464cffdd2 |
class MyCollect(View): <NEW_LINE> <INDENT> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> result_dict = { "err": 0, "msg": "success", "data": list(), } <NEW_LINE> try: <NEW_LINE> <INDENT> custom_user_id = request.GET.get('custom_user_id', 0) <NEW_LINE> customusercourses = CustomUserCourse.objects.filter(c... | 我的收藏 | 62598ef57d847024c075ac51 |
class RegressorChain(MetaEstimatorMixin, RegressorMixin, _BaseChain): <NEW_LINE> <INDENT> def fit(self, X, Y, **fit_params): <NEW_LINE> <INDENT> super().fit(X, Y, **fit_params) <NEW_LINE> return self <NEW_LINE> <DEDENT> def _more_tags(self): <NEW_LINE> <INDENT> return {'multioutput_only': True} | A multi-label model that arranges regressions into a chain.
Each model makes a prediction in the order specified by the chain using
all of the available features provided to the model plus the predictions
of models that are earlier in the chain.
Read more in the :ref:`User Guide <regressorchain>`.
.. versionadded:: ... | 62598ef58da39b475be01a32 |
class GaussianStrategy(SearchStrategy): <NEW_LINE> <INDENT> def __init__(self, mu, sigma, min_value, max_value, places): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._mu = mu <NEW_LINE> self._sigma = sigma <NEW_LINE> self._places = places <NEW_LINE> self._min_value = min_value <NEW_LINE> self._max_value = max... | Gaussian (normally) distributed values
with optional truncation and decimal places
precision. | 62598ef5283ffb24f3cf212b |
class Scene: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.model_placements = {} <NEW_LINE> <DEDENT> def add_model(self,reference,model,location,orientation): <NEW_LINE> <INDENT> placement = ModelPlacement(reference, model, location, orientation) <NEW_LINE> self.model_placements[placement.reference] ... | A collection of modelplacements | 62598ef5851cf427c66b6b49 |
class DbtCloudHook(BaseHook): <NEW_LINE> <INDENT> def __init__(self, dbt_cloud_conn_id): <NEW_LINE> <INDENT> self.dbt_cloud_conn_id = dbt_cloud_conn_id <NEW_LINE> <DEDENT> def get_conn(self): <NEW_LINE> <INDENT> conn = self.get_connection(self.dbt_cloud_conn_id) <NEW_LINE> if 'dbt_cloud_api_token' in conn.extra_dejson:... | Interact with dbt Cloud. | 62598ef5cc40096d61619619 |
class OverFlowError(Exception): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__(self, "Overflow Error") | Exception raised when Stack overflows.
(Pushing an object onto a full Stack) | 62598ef5956e5f7376df4aba |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.