code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Stopwatch(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.__startTime = time.time() <NEW_LINE> <DEDENT> def Reset(self): <NEW_LINE> <INDENT> self.__startTime = time.time() <NEW_LINE> <DEDENT> def Time(self): <NEW_LINE> <INDENT> return time.time() - self.__startTime | A simple stopwatch object that times against a given reference time | 62598efd3d592f4c4edb9874 |
class IEARTHDATATYPE: <NEW_LINE> <INDENT> IEARTHDATA=1 <NEW_LINE> IEARA=2 <NEW_LINE> OTHER=0 | 导入数据类型 | 62598efd97e22403b383986d |
class SqlVmGroupImageSku(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): <NEW_LINE> <INDENT> DEVELOPER = "Developer" <NEW_LINE> ENTERPRISE = "Enterprise" | SQL image sku.
| 62598efdaad79263cf42d196 |
class Null(Singleton): <NEW_LINE> <INDENT> def __nonzero__(self): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> def __eq__(self, obj): <NEW_LINE> <INDENT> return isinstance(obj, Null) <NEW_LINE> <DEDENT> def __ne__(self, obj): <NEW_LINE> <INDENT> return not self.__eq__(obj) <NEW_LINE> <DEDENT> def __cmp__(self, ... | Object representing null value.
In Daphne primarily used for subclassing and the subclasses used for
blank form field values (so that we can preserve the type information).
Doctest:
>>> a = Null()
>>> b = Null()
>>> a is b
True | 62598efd7d847024c075ad51 |
class Record(OAIItem): <NEW_LINE> <INDENT> def __init__(self, record_element, strip_ns=True): <NEW_LINE> <INDENT> super(Record, self).__init__(record_element, strip_ns=strip_ns) <NEW_LINE> self.header = Header(self.xml.find( './/' + self._oai_namespace + 'header')) <NEW_LINE> self.deleted = self.header.deleted <NEW_LIN... | Represents an OAI record.
:param record_element: The XML element 'record'.
:type record_element: :class:`lxml.etree._Element`
:param strip_ns: Flag for whether to remove the namespaces from the
element names. | 62598efda219f33f346c51b6 |
class LeftSideItem(object): <NEW_LINE> <INDENT> def __init__(self, conf_path): <NEW_LINE> <INDENT> if not path.exists(conf_path): <NEW_LINE> <INDENT> with open(conf_path, 'w') as l_file: <NEW_LINE> <INDENT> l_file.write('') <NEW_LINE> l_file.close() <NEW_LINE> <DEDENT> <DEDENT> self.data_path = conf_path <NEW_LINE> sel... | Obtains info about the left side selected item for comparing. | 62598efd4527f215b58e8884 |
class GenomicsAnnotationsUpdateRequest(_messages.Message): <NEW_LINE> <INDENT> annotation = _messages.MessageField('Annotation', 1) <NEW_LINE> annotationId = _messages.StringField(2, required=True) <NEW_LINE> updateMask = _messages.StringField(3) | A GenomicsAnnotationsUpdateRequest object.
Fields:
annotation: A Annotation resource to be passed as the request body.
annotationId: The ID of the annotation to be updated.
updateMask: An optional mask specifying which fields to update. Mutable
fields are name, variant, transcript, and info. If unspecified, ... | 62598efd63b5f9789fe83ae7 |
class InhomogeneousTupleVariable(TupleVariable): <NEW_LINE> <INDENT> __slots__ = ('_vars',) <NEW_LINE> _attribute_nodes = ('_vars',) <NEW_LINE> is_homogeneous = False <NEW_LINE> def __init__(self, arg_vars, dtype, name, *args, **kwargs): <NEW_LINE> <INDENT> self._vars = tuple(arg_vars) <NEW_LINE> super().__init__(dtype... | Represents a tuple variable in the code.
Parameters
----------
arg_vars: Iterable
Multiple variables contained within the tuple
Examples
--------
>>> from pyccel.ast.core import TupleVariable, Variable
>>> v1 = Variable('int','v1')
>>> v2 = Variable('bool','v2')
>>> n = TupleVariable([v1, v2],'n')
>>> n
n | 62598efd66673b3332c2ed39 |
class CancelSpecificParcelOrderView(Resource, ParcelOrder): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.parcel = ParcelOrder() <NEW_LINE> <DEDENT> def put(self, parcel_id): <NEW_LINE> <INDENT> cancelled_delivery_order = self.parcel.cancel_specific_order( parcel_id) <NEW_LINE> if cancelled_delivery_... | docstring for CancelSpecificParcelOrderView. | 62598efd67a9b606de544958 |
class NameIDPolicy(Base): <NEW_LINE> <INDENT> format = base.Attribute(types.String) <NEW_LINE> sp_name_qualifier = base.Attribute(types.String, name='SPNameQualifier') <NEW_LINE> allow_create = base.Attribute(types.Boolean) | Tailors the name identifier in the subjects of assertions
resulting from an <AuthnRequest>. | 62598efd10dbd63aa1c6f508 |
class CommandInterfaceMainView(FormView): <NEW_LINE> <INDENT> form_class = CommandExecutionForm <NEW_LINE> template_name = 'admin/command_interface_main.html' <NEW_LINE> @method_decorator(login_required) <NEW_LINE> def dispatch(self, request, *args, **kwargs): <NEW_LINE> <INDENT> if not request.user.is_superuser: <NEW_... | A view, that should allow a superuser to call management commands from
one single view within one click (or some parameters and a click). | 62598efdec188e330fdf7236 |
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_LIN... | 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 objec... | 62598efd656771135c488013 |
class AICSAPIConfiguration(AzureConfiguration): <NEW_LINE> <INDENT> def __init__( self, credentials, base_url=None): <NEW_LINE> <INDENT> if credentials is None: <NEW_LINE> <INDENT> raise ValueError("Parameter 'credentials' must not be None.") <NEW_LINE> <DEDENT> if not base_url: <NEW_LINE> <INDENT> base_url = 'http://l... | Configuration for AICSAPI
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param str base_url: Service URL | 62598efd5fdd1c0f98e5c92f |
class Column(object): <NEW_LINE> <INDENT> NEURON_PARAMS = { 'v_thresh' : -61.0, 'tau_refrac' : 2.0, 'tau_syn_E' : 2.0, 'tau_syn_I' : 2.0 } <NEW_LINE> NEURON_MODEL = sim.IF_cond_exp <NEW_LINE> SYN_PROX_IN = sim.StaticSynapse( delay = 1.0, weight = 100.0 ) <NEW_LINE> SYN_LOCAL_INH = sim.StaticSynapse( delay = 1.0, weight... | Respresentation of column. | 62598efdbf627c535bcafdfd |
class JavaMemoryPoolMap(CommonMBeanMap): <NEW_LINE> <INDENT> constr = Construct(JavaMemoryPoolDefinition) <NEW_LINE> relname = constr.relname <NEW_LINE> modname = constr.zenpackComponentModule <NEW_LINE> baseid = constr.baseid <NEW_LINE> searchMBean = 'java.lang:type=MemoryPool,name=*' | Map JMX Client output table to model. | 62598efd442bda511e95adeb |
class LambdaExpr(FuncItem, Expression): <NEW_LINE> <INDENT> @property <NEW_LINE> def name(self) -> str: <NEW_LINE> <INDENT> return '<lambda>' <NEW_LINE> <DEDENT> def expr(self) -> Expression: <NEW_LINE> <INDENT> ret = cast(ReturnStmt, self.body.body[-1]) <NEW_LINE> expr = ret.expr <NEW_LINE> assert expr is not None <NE... | Lambda expression | 62598efd71ff763f4b5e60ec |
class Location: <NEW_LINE> <INDENT> _INITIAL_VALUE = 5432 <NEW_LINE> _MULTIPLIER = 11 <NEW_LINE> def __init__(self, address: str, zip_code: int = None): <NEW_LINE> <INDENT> if zip_code is not None: <NEW_LINE> <INDENT> self.address = address <NEW_LINE> self.zip = zip_code <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> sp... | Delivery location | 62598efd3d592f4c4edb9878 |
class FreeFormAnswer(Answer): <NEW_LINE> <INDENT> pass | ... constituting an answer to a `Free Form Exercise`. | 62598efd9f2886367281717f |
class CompanyView(View): <NEW_LINE> <INDENT> def get(self, request, company_id) -> render: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> Company.objects.get(id=company_id) <NEW_LINE> <DEDENT> except Company.DoesNotExist: <NEW_LINE> <INDENT> return render(request, '404.html') <NEW_LINE> <DEDENT> html_header = Company.obj... | Класс, отвечающий за наполнение раздела вакансий конкретной компании
доступ по companies/<int:company_id>/ | 62598efd97e22403b3839871 |
class GoTo(Command): <NEW_LINE> <INDENT> def __init__(self, location_id, destination=None, go_one_step=False): <NEW_LINE> <INDENT> self.location_id = location_id <NEW_LINE> self.destination = destination <NEW_LINE> self.go_one_step = go_one_step <NEW_LINE> self.done = False <NEW_LINE> <DEDENT> def execute(self): <NEW_L... | Command that makes a character go to a location.
:param location_id: The ID of the location to go to (may be `None`).
:type destination: :class:`~pyskool.location.Location`
:param destination: The location to go to (required if `location_id`
is `None`).
:param go_one_step: `True` if this command sh... | 62598efdaad79263cf42d19a |
class NavigableDoc(object): <NEW_LINE> <INDENT> def __init__(self, collection_result): <NEW_LINE> <INDENT> self.collectiondoc = collection_result <NEW_LINE> self.get = self.collectiondoc.get <NEW_LINE> self.href = self.get('href', '') <NEW_LINE> self.make_pager() <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDE... | :class:NavigableDoc <NavigableDoc>` is for easily parsing
and navigation collection+doc JSON documents returned from the
PMP API. Each document should have the standard collectiondoc keys:
'href', 'version', 'attributes', 'links', but may also have 'items'.
Methods and properties are designed to make it easy to retrie... | 62598efd23849d37ff84fa4a |
class PWFile(EncryptedFile): <NEW_LINE> <INDENT> def read(self): <NEW_LINE> <INDENT> decrypted_msg = EncryptedFile.read(self) <NEW_LINE> if (len(decrypted_msg) == 0): <NEW_LINE> <INDENT> return {} <NEW_LINE> <DEDENT> try: <NEW_LINE> <INDENT> return json.loads(decrypted_msg) <NEW_LINE> <DEDENT> except ValueError: <NEW_L... | Manages a file of encrypted username/password info.
The file begins with a salt of the format generated by bcrypt.gensalt()
followed by the AES encrypted data. | 62598efd283ffb24f3cf2236 |
class MLMLayer(nn.Module): <NEW_LINE> <INDENT> vocab_size: int <NEW_LINE> hidden_size: int <NEW_LINE> dtype: Dtype <NEW_LINE> embedding_init: InitType <NEW_LINE> bias_init: InitType <NEW_LINE> layer_norm_epsilon: float <NEW_LINE> def setup(self): <NEW_LINE> <INDENT> self.dense = nn.Dense( features=self.hidden_size, dty... | Performs masked language model scoring.
Attributes:
vocab_size: size of token vocabulary.
hidden_size: dimensionality of input token representations.
dtype: precision of computation. | 62598efd627d3e7fe0e05819 |
class ComputeZonesListRequest(_messages.Message): <NEW_LINE> <INDENT> filter = _messages.StringField(1) <NEW_LINE> maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) <NEW_LINE> pageToken = _messages.StringField(3) <NEW_LINE> project = _messages.StringField(4, required=True) | A ComputeZonesListRequest object.
Fields:
filter: Sets a filter expression for filtering listed resources, in the
form filter={expression}. Your {expression} must contain the following:
FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME: The name of
the field you want to compare. The field name m... | 62598efdf548e778e5969f11 |
class SATOSAUnknownTargetBackend(SATOSAError): <NEW_LINE> <INDENT> pass | Raised when targeting an unknown backend | 62598efe1f5feb6acb1615e0 |
class PaymentChangeHistoryView(Viewable): <NEW_LINE> <INDENT> id = PaymentChangeHistory.id <NEW_LINE> description = Payment.description <NEW_LINE> reason = PaymentChangeHistory.change_reason <NEW_LINE> change_date = PaymentChangeHistory.change_date <NEW_LINE> last_due_date = PaymentChangeHistory.last_due_date <NEW_LINE... | Holds information about changes to a payment.
| 62598efe796e427e5384d126 |
class ListJoinNode(Node, SverchCustomTreeNode): <NEW_LINE> <INDENT> bl_idname = 'ListJoinNode' <NEW_LINE> bl_label = 'List Join' <NEW_LINE> bl_icon = 'OUTLINER_OB_EMPTY' <NEW_LINE> JoinLevel = bpy.props.IntProperty(name='JoinLevel', description='Choose join level of data (see help)', default=1, min=1, update=updateNode... | ListJoin node | 62598efe63b5f9789fe83aeb |
class Filter(BaseFilter): <NEW_LINE> <INDENT> @filter_method(r'(?:[-]?[\d]+\.?[\d]*[;])*(?:[-]?[\d]+\.?[\d]*)', BaseFilter.PositiveNumber, BaseFilter.Boolean) <NEW_LINE> def convolution(self, matrix, columns, should_normalize=True): <NEW_LINE> <INDENT> matrix = tuple(matrix.split(';')) <NEW_LINE> imgdata = _convolution... | Usage: /filters:convolution(<semicolon separated matrix items>, <number of columns in matrix>, <should normalize boolean>)
Example of blur filter: /filters:convolution(1;2;1;2;4;2;1;2;1,3,true)/ | 62598efeadb09d7d5dc08f42 |
class puk2_needed_status(mode): <NEW_LINE> <INDENT> def __enter__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __exit__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def do_next(self): <NEW_LINE> <INDENT> log.msg("%s: Instantiating puk2_needed_status mode...." % self) <NEW_LINE> d = self.device.sconn.s... | PUK2 and PIN are needed, get 'em from the collaborator and pray
Three things can happen:
- Auth went OK
- PUK/PIN is incorrect
- After ten failed attempts, device is locked | 62598efe851cf427c66b6c54 |
class LocalResponseNormLayer(Layer): <NEW_LINE> <INDENT> def __init__( self, layer = None, depth_radius = None, bias = None, alpha = None, beta = None, name ='lrn_layer', ): <NEW_LINE> <INDENT> self.inputs = layer.outputs <NEW_LINE> print(" tensorlayer:Instantiate LocalResponseNormLayer %s: depth_radius: %d, bias: %f,... | The :class:`LocalResponseNormLayer` class is for Local Response Normalization, see ``tf.nn.local_response_normalization``.
The 4-D input tensor is treated as a 3-D array of 1-D vectors (along the last dimension), and each vector is normalized independently.
Within a given vector, each component is divided by the weight... | 62598efe55399d3f05624eb2 |
class ServiceUnavailableError(paystackError): <NEW_LINE> <INDENT> pass | Raised when the gateway is unavailable. | 62598efe21bff66bcd7215e2 |
class TimezoneUpdateException(Exception): <NEW_LINE> <INDENT> pass | Base class for exceptions raised by tzupdate. | 62598efe442bda511e95aded |
class Utterances(data.Dataset): <NEW_LINE> <INDENT> def __init__(self, root_dir, len_crop): <NEW_LINE> <INDENT> self.root_dir = root_dir <NEW_LINE> self.len_crop = len_crop <NEW_LINE> self.step = 10 <NEW_LINE> metaname = os.path.join(self.root_dir, "train.pkl") <NEW_LINE> meta = pickle.load(open(metaname, "rb")) <NEW_L... | Dataset class for the Utterances dataset. | 62598efe63d6d428bbee115c |
class recipe_ingredient_association(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'recipe_ingredient_association' <NEW_LINE> recipe_id = db.Column(db.Integer, db.ForeignKey( 'recipe.id'), primary_key=True) <NEW_LINE> ingredient_id = db.Column(db.Integer, db.ForeignKey( 'ingredient.id'), primary_key=True) <NEW_LINE> re... | ASSOCIATION BETWEEN RECIPES AND INGREDIENTS TO INCLUDE AMOUMT | 62598efe23849d37ff84fa4c |
class Money: <NEW_LINE> <INDENT> def __init__(self, amount, currency): <NEW_LINE> <INDENT> self.amount=amount <NEW_LINE> self.currency=currency <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return f"<Money {str(self)}>" <NEW_LINE> <DEDENT> de... | Represents an amount of money. Requires an amount and a currency. | 62598efe9f28863672817182 |
class GBuild(object): <NEW_LINE> <INDENT> def __init__(self, sname, ver, authhttp): <NEW_LINE> <INDENT> self.servicename = sname <NEW_LINE> self.apiversion = ver <NEW_LINE> self.authstatus = authhttp <NEW_LINE> self.servicebuild = self.run_build() <NEW_LINE> <DEDENT> def run_build(self): <NEW_LINE> <INDENT> service = b... | Build Google App Instance
| 62598efe26068e7796d4b2e7 |
class TXT(MozdnsRecord, LabelDomainMixin): <NEW_LINE> <INDENT> id = models.AutoField(primary_key=True) <NEW_LINE> txt_data = models.TextField( help_text="The text data for this record.", validators=[validate_txt_data] ) <NEW_LINE> search_fields = ("fqdn", "txt_data") <NEW_LINE> template = ("{bind_name:$lhs_just} {ttl_}... | >>> TXT(label=label, domain=domain, txt_data=txt_data) | 62598efe5fc7496912d47739 |
class BadRequestError(APIError): <NEW_LINE> <INDENT> pass | A 400 Bad Request response was received | 62598efea8370b77170eed72 |
class RPCRequestEndpointUnit(RequestEndpointUnit): <NEW_LINE> <INDENT> exception_factory = ExceptionFactory() <NEW_LINE> def _send(self, msg, headers=None, **kwargs): <NEW_LINE> <INDENT> log_message("MESSAGE SEND >>> RPC-request", msg, headers, is_send=True) <NEW_LINE> res, res_headers = RequestEndpointUnit._send(self,... | Endpoint unit for RPC protocol, sender side. | 62598efe4527f215b58e888a |
class RackspaceRedHatPVHMImage(Image): <NEW_LINE> <INDENT> images = {"Red Hat Enterprise Linux 7 (PVHVM)": {"minRam": 512, "minDisk": 20, "OS-EXT-IMG-SIZE:size": Image.image_size(), "com.rackspace__1__ui_default_show": "True", "id": Image.image_id(), "OS-DCF:diskConfig": "MANUAL"}, "Red Hat Enterprise Linux 6 (PVHVM)":... | A Rackspace Red Hat image object representation | 62598efefff4ab517ebcc160 |
class Ratio(Fraction): <NEW_LINE> <INDENT> def __new__(cls, numerator=0, denominator=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self = super(Ratio, cls).__new__(cls, numerator, denominator) <NEW_LINE> <DEDENT> except ZeroDivisionError: <NEW_LINE> <INDENT> self = super(Ratio, cls).__new__(cls) <NEW_LINE> self._... | Ratio object that eventually will be able to reduce itself to lowest
common denominator for printing. | 62598efecc40096d616196a0 |
class Name(Expr): <NEW_LINE> <INDENT> def __init__(self, string): <NEW_LINE> <INDENT> Expr.__init__(self, string) <NEW_LINE> self.string = string <NEW_LINE> <DEDENT> def eval(self, env): <NEW_LINE> <INDENT> if self.string not in env: <NEW_LINE> <INDENT> raise NameError ('Name not found in current environment!') <NEW_LI... | A `Name` is a variable. When evaluated, we look up the value of the
variable in the current environment.
The `string` attribute contains the name of the variable (as a Python
string). | 62598efe2ae34c7f260a9a71 |
class FluxCalibrator(object): <NEW_LINE> <INDENT> def __init__(self, zeroPoint): <NEW_LINE> <INDENT> self.zeroPoint = zeroPoint <NEW_LINE> <DEDENT> def get_nanomaggies(self, flux): <NEW_LINE> <INDENT> return 1e9*flux/self.zeroPoint <NEW_LINE> <DEDENT> def __call__(self, flux): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDEN... | Functor class to convert uncalibrated fluxes from a given exposure
to nanomaggies.
Attributes
----------
zeroPoint : float
Zero point in ADU for the exposure in question. | 62598efe71ff763f4b5e60f0 |
class TagArticles(db.Model): <NEW_LINE> <INDENT> id = db.Column('id', db.Integer, primary_key=True, comment="自增ID") <NEW_LINE> tag = db.Column(db.String(50), comment="一个标签") <NEW_LINE> article_ids = db.Column(db.Text, comment="相关文章ID列表,以|分隔") <NEW_LINE> id_num = db.Column(db.Integer, comment="相关文章ID总数") <NEW_LINE> __bi... | 标签-相关文章模型
| 62598efe66673b3332c2ed3f |
class Solution1: <NEW_LINE> <INDENT> def submatrixSum(self, matrix): <NEW_LINE> <INDENT> if not matrix or not matrix[0]: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> row, col = len(matrix), len(matrix[0]) <NEW_LINE> for top in range(row): <NEW_LINE> <INDENT> arr = [0] * col <NEW_LINE> for down in range(top, row): <NE... | @param: matrix: an integer matrix
@return: the coordinate of the left-up and right-down number | 62598efe3d592f4c4edb987d |
class _Run(object): <NEW_LINE> <INDENT> def init_params(parameters): <NEW_LINE> <INDENT> Atom_params = { 'Argon': {'Cl': 2.44, 'I_p': 0.579, 'Z_c': 1, 'l': 1, 'alpha': 9}, 'Neon': {'Cl': 2.10, 'I_p': 0.793, 'Z_c': 1, 'l': 1, 'alpha': 9}, 'Helium':{'Cl': 3.13, 'I_p': 0.904, 'Z_c': 1, 'l': 0, 'alpha': 7}} <NEW_LINE> ADK... | docstring for _Run | 62598efe5fdd1c0f98e5c934 |
class IconvMemoryCommand(GdbDumpMemoryParent, IconvImpl): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> GdbDumpMemoryParent.__init__(self, "iconv memory", -1) <NEW_LINE> IconvImpl.__init__(self) <NEW_LINE> <DEDENT> def complete(self, text, word): <NEW_LINE> <INDENT> return self.complete_any(text, word) <N... | Check the encoding of the memory.
usage: iconv memory START_ADDR END_ADDR ENCODING [ENCODING]...
Send a memory region to iconv(1) command to check the encoding of the
contents. ENCODING is the source encoding of the memory region. The
target encoding is controlled via 'iconv encoding' command.
If more than one ENC... | 62598efe97e22403b3839875 |
class ThirdBackend(object): <NEW_LINE> <INDENT> def authenticate(self, uid=None, third=None): <NEW_LINE> <INDENT> uid = str(uid) <NEW_LINE> try: <NEW_LINE> <INDENT> user = Third.objects.get(Q(douban_uid=uid)|Q(weibo_uid=uid)|Q(qq_uid=uid)).user <NEW_LINE> return user <NEW_LINE> <DEDENT> except Third.DoesNotExist: <NEW_... | authenticate with uid
create User whit username = uid,
password=str([choice[uid] for i in range(len(uid))]) | 62598efe44b2445a339b5e37 |
class ARAD_13_Foil(Foil): <NEW_LINE> <INDENT> def __init__(self, chord): <NEW_LINE> <INDENT> Foil.__init__(self,chord, chord*0.13) <NEW_LINE> <DEDENT> def hash(self): <NEW_LINE> <INDENT> return "ARAD13 %5.2f,%5.2f" % (self.thickness, self.trailing_edge) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return... | ARA-D 13% AIRFOIL
| 62598efe3317a56b869bda2c |
class TestDownloadPlatformManylinuxes: <NEW_LINE> <INDENT> @pytest.mark.parametrize( "platform", [ "linux_x86_64", "manylinux1_x86_64", "manylinux2010_x86_64", "manylinux2014_x86_64", ], ) <NEW_LINE> def test_download_universal( self, platform: str, script: PipTestEnvironment, data: TestData ) -> None: <NEW_LINE> <INDE... | "pip download --platform" downloads a .whl archive supported for
manylinux platforms. | 62598efe4527f215b58e888c |
class Vector3: <NEW_LINE> <INDENT> def __init__(self, v): <NEW_LINE> <INDENT> if v == None: <NEW_LINE> <INDENT> self.v = [0,0,1] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.v = v <NEW_LINE> <DEDENT> self._distance = 0.0 <NEW_LINE> self._matrix = None <NEW_LINE> <DEDENT> def set_vector(self, v): <NEW_LINE> <INDEN... | Define Vector3 class and method to obtain individual vectors from
lists with 3 values. | 62598efedc8b845886d51f57 |
class MonthData(WeatherData): <NEW_LINE> <INDENT> def __init__(self, year, month, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self.year = year <NEW_LINE> self.month = month <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return '{0}-{1}'.format(self.year, self.month) <NEW_LINE> <DEDE... | Class for holding weather data about a given month | 62598efe66673b3332c2ed41 |
class Block: <NEW_LINE> <INDENT> def __init__(self,ip,detected,duration): <NEW_LINE> <INDENT> self._ip=ip <NEW_LINE> self._detected=int(detected) <NEW_LINE> if(duration != None): <NEW_LINE> <INDENT> self._duration=int(duration) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self._duration=None <NEW_LINE> <DEDENT> <DEDEN... | Class to hold information on blocks/revokes | 62598efe3d592f4c4edb987e |
class RandomShapeletClassifier(EmbeddingRidgeClassifierCV): <NEW_LINE> <INDENT> def __init__( self, n_shapelets=1000, *, metric="euclidean", metric_params=None, min_shapelet_size=0.1, max_shapelet_size=1.0, alphas=(0.1, 1.0, 10.0), fit_intercept=True, normalize="deprecated", scoring=None, cv=None, class_weight=None, n_... | A classifier that uses random shapelets. | 62598efe56ac1b37e6300b77 |
class GetScore(generics.GenericAPIView): <NEW_LINE> <INDENT> queryset = Question.objects.all() <NEW_LINE> renderer_classes = (renderers.StaticHTMLRenderer,) <NEW_LINE> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> score_obj = Score.objects.filter(user_id=request.session['user_id']).first() <NEW_LINE> res... | this class is the interface for getting the current score for a user | 62598efe0fa83653e46f3872 |
class InstanceOutputTypesResource(Resource): <NEW_LINE> <INDENT> @jwt_required <NEW_LINE> def get(self, asset_instance_id, temporal_entity_id): <NEW_LINE> <INDENT> asset_instance = assets_service.get_asset_instance(asset_instance_id) <NEW_LINE> entity = entities_service.get_entity(asset_instance["asset_id"]) <NEW_LINE>... | Return all types of output generated for given instance. | 62598efe3d592f4c4edb987f |
@register <NEW_LINE> class ExceptionPathSegment(BaseSchema): <NEW_LINE> <INDENT> __props__ = { "negate": { "type": "boolean", "description": "If false or missing this segment matches the names provided, otherwise it matches anything except the names provided." }, "names": { "type": "array", "items": { "type": "string" ... | An ExceptionPathSegment represents a segment in a path that is used to match leafs or nodes in a
tree of exceptions.
If a segment consists of more than one name, it matches the names provided if 'negate' is false or
missing or
it matches anything except the names provided if 'negate' is true.
Note: automatically gen... | 62598efe63d6d428bbee1160 |
class ExplicitStateExample(Actor): <NEW_LINE> <INDENT> def init(self): <NEW_LINE> <INDENT> self.wrapper = Wrapper('(((', ')))') <NEW_LINE> <DEDENT> def state(self): <NEW_LINE> <INDENT> state = super(ExplicitStateExample, self).state() <NEW_LINE> state['wrapper'] = [self.wrapper.left, self.wrapper.right] <NEW_LINE> retu... | Demonstrate (and test) explicit state handling in actors.
In order to migrate this actor, potentially to non-python platforms,
we need to explicitly handle set/get state for the custom wrap object.
Input:
token : any token
Output:
token : a string with input token wrapped in '(((' and ')))' | 62598efe956e5f7376df4b43 |
class GeometryError(MapMetricApiError): <NEW_LINE> <INDENT> pass | Generic exception class for geometry_utils specific exceptions. | 62598efee5267d203ee6a293 |
class output(object): <NEW_LINE> <INDENT> RED = 1 <NEW_LINE> GREEN = 2 <NEW_LINE> YELLOW = 3 <NEW_LINE> ERROR = 4 <NEW_LINE> DEBUG = 5 <NEW_LINE> WARNING = 6 <NEW_LINE> @staticmethod <NEW_LINE> def __out(type, msg): <NEW_LINE> <INDENT> if type == output.ERROR: <NEW_LINE> <INDENT> sys.stderr.write("\033[%dm [... | ANSI console colored output:
* error (red)
* warning (yellow)
* debug (green) | 62598efe283ffb24f3cf223c |
class Position(models.Model): <NEW_LINE> <INDENT> name = models.CharField("Name", max_length=300) <NEW_LINE> slug = models.SlugField('SLUG', unique=True, allow_unicode=True) <NEW_LINE> ptype = models.CharField("Type", default="E", max_length=1) <NEW_LINE> views = models.IntegerField(default=0) <NEW_LINE> public = model... | Description: Model Description | 62598efe10dbd63aa1c6f510 |
class DescriptorMixin(object): <NEW_LINE> <INDENT> def pretty_descriptor(self, obj): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return pretty_print(obj.descriptor()) <NEW_LINE> <DEDENT> except Exception as ex: <NEW_LINE> <INDENT> print(ex) <NEW_LINE> <DEDENT> <DEDENT> pretty_descriptor.short_description = "Descriptor... | Provides access to pretty-formatted version of descriptor property. | 62598efe9c8ee8231303f625 |
class StochasticFeeder(Feeder): <NEW_LINE> <INDENT> def __init__(self, destination, rate): <NEW_LINE> <INDENT> super(StochasticFeeder, self).__init__(destination) <NEW_LINE> self.rate = rate <NEW_LINE> <DEDENT> def arrival_event(self): <NEW_LINE> <INDENT> job = Job() <NEW_LINE> self.destination.put(job) <NEW_LINE> self... | classdocs | 62598efebe7bc26dc925132c |
class SoftmaxModel(Model): <NEW_LINE> <INDENT> def add_placeholders(self): <NEW_LINE> <INDENT> self.input_placeholder = tf.placeholder(tf.float32,[self.config.batch_size, self.config.n_features]) <NEW_LINE> self.labels_placeholder = tf.placeholder(tf.int32,[self.config.batch_size, self.config.n_classes]) <NEW_LINE> <DE... | Implements a Softmax classifier with cross-entropy loss. | 62598efe5fc7496912d4773b |
class Url(object): <NEW_LINE> <INDENT> def __init__(self, loc, lastmod, changefreq, priority, escape=True): <NEW_LINE> <INDENT> if escape: <NEW_LINE> <INDENT> self.loc = self.escape(loc) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.loc = loc <NEW_LINE> <DEDENT> if lastmod == 'today': <NEW_LINE> <INDENT> lastmod =... | Class to handle a URL in `Sitemap` | 62598efe379a373c97d9798b |
class Battery(): <NEW_LINE> <INDENT> def __init__(self, battery_size=70): <NEW_LINE> <INDENT> self.battery_size = battery_size <NEW_LINE> <DEDENT> def describe_battery(self): <NEW_LINE> <INDENT> print("This car has a " + str(self.battery_size) + "-KWh battery.") <NEW_LINE> <DEDENT> def get_range(self): <NEW_LINE> <INDE... | A simple attempt to model a battery for an electric car. | 62598efe091ae356687035ab |
class Skipgram(Word2Vec): <NEW_LINE> <INDENT> def __set__(self, hidden_w, output_w): <NEW_LINE> <INDENT> self.inLayer = MatrixMultiply(hidden_w) <NEW_LINE> self.outLayer = MatrixMultiply(output_w) <NEW_LINE> self.lossLayer = [SoftMaxWithError() for i in range(self.window * 2)] <NEW_LINE> layers = [self.inLayer, self.ou... | skipgram model | 62598efe4c34283577618c7a |
class WineQaulityLoader(MLPLoaderBase): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> kwargs['mode'] = 'regression' <NEW_LINE> super(WineQaulityLoader, self).__init__(**kwargs) <NEW_LINE> <DEDENT> def init_hyperamaters(self): <NEW_LINE> <INDENT> return { 'dimensions': [11, 86, 86, 1], 'epochs': ... | Data specific loader to define nn_test and nn_rank.
::: test func: return {name, val}
::: rank func: return {rank} | 62598efe4428ac0f6e656edf |
class Activity(ModelBase): <NEW_LINE> <INDENT> actor = models.ForeignKey('users.UserProfile') <NEW_LINE> verb = models.URLField(verify_exists=False) <NEW_LINE> status = models.ForeignKey('statuses.Status', null=True) <NEW_LINE> target_content_type = models.ForeignKey(ContentType, null=True) <NEW_LINE> target_id = model... | Represents a single activity entry. | 62598efe442bda511e95adf3 |
class Vertex(V): <NEW_LINE> <INDENT> __tablename__ = 'vertex' <NEW_LINE> domain = db.Column(db.Text) | lda vertex abstract | 62598efe66673b3332c2ed43 |
class Alarm(object): <NEW_LINE> <INDENT> def __init__(self, table): <NEW_LINE> <INDENT> self._table_no = table.doc_table_number <NEW_LINE> self._alarms = dict() <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def create_from_table(table): <NEW_LINE> <INDENT> if len(table.rows) == 0: <NEW_LINE> <INDENT> return None <NEW_LI... | Alarm Notification information. | 62598efe3d592f4c4edb9881 |
class ESPProfilingPanel(ProfilingPanel): <NEW_LINE> <INDENT> @property <NEW_LINE> def nav_subtitle(self): <NEW_LINE> <INDENT> return 'Significantly slows site. Disable when not needed.' | A subclass of ProfilingPanel that warns admins to disable it when not
needed, since it incurs such a performance hit.
Should be listed in the DISABLE_PANELS toolbar option so that it
defaults to disabled. | 62598efe23849d37ff84fa52 |
class TestProductDataDto(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 testProductDataDto(self): <NEW_LINE> <INDENT> pass | ProductDataDto unit test stubs | 62598efe4a966d76dd5ed867 |
class UnicodeWriter: <NEW_LINE> <INDENT> def __init__(self, f, fieldnames, **kwds): <NEW_LINE> <INDENT> self.queue = cStringIO.StringIO() <NEW_LINE> self.writer = csv.DictWriter(self.queue, fieldnames, **kwds) <NEW_LINE> self.writer.writeheader() <NEW_LINE> self.stream = f <NEW_LINE> self.encoder = codecs.getincrementa... | A CSV writer which will write rows to CSV file "f",
which is encoded in the given encoding. | 62598efe627d3e7fe0e05821 |
class SectionlessConfigParser(ConfigParser.RawConfigParser): <NEW_LINE> <INDENT> def __init__(self, default_section=None, *args, **kwargs): <NEW_LINE> <INDENT> ConfigParser.RawConfigParser.__init__(self, *args, **kwargs) <NEW_LINE> self._default_section = None <NEW_LINE> self.set_default_section(default_section or '__c... | Extends ConfigParser to allow files without sections.
This is done by wrapping read files and prepending them with a placeholder
section, which defaults to '__config__' | 62598efe50812a4eaa6200b4 |
class Dyndns2App(Bottle): <NEW_LINE> <INDENT> def __init__(self, host='localhost', port=8000): <NEW_LINE> <INDENT> super(Dyndns2App, self).__init__() <NEW_LINE> self.host = host <NEW_LINE> self.port = port <NEW_LINE> self.process = None <NEW_LINE> self.route(path='/nic/update', callback=nicupdate) <NEW_LINE> <DEDENT> d... | A minimal http server that resembles an actual dyndns service | 62598efe796e427e5384d12e |
class CustomUser(auth_models.AbstractBaseUser, auth_models.PermissionsMixin, mixins.DirtyMixin): <NEW_LINE> <INDENT> username = models.CharField( _('username'), max_length=30, unique=True, help_text=_('Required. 30 characters or fewer. Letters, numbers and ' '@/./+/-/_ characters'), validators=[ validators.RegexValidat... | A custom user class that basically mirrors Django's `AbstractUser` class
and doesn't force `first_name` or `last_name` with sensibilities for
international names.
http://www.w3.org/International/questions/qa-personal-names | 62598efe44b2445a339b5e39 |
class MarkerOutput(Output): <NEW_LINE> <INDENT> def __init__(self, interface, default_code=None, default_duration=None): <NEW_LINE> <INDENT> Output.__init__(self) <NEW_LINE> self._interface = interface <NEW_LINE> if default_code is not None: <NEW_LINE> <INDENT> self._default_code = default_code <NEW_LINE> <DEDENT> else... | A class implementing a marker output. | 62598efe7d847024c075ad5d |
class TraitedClass( HasTraits ): <NEW_LINE> <INDENT> intTraits = Int(3) <NEW_LINE> intPython = int(4) | play with Traits and Introspection | 62598efe4c34283577618c7c |
class DotMailerSudsPlugin(MessagePlugin): <NEW_LINE> <INDENT> def marshalled(self, context): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> context.envelope.set('xmlns:apic','http://apiconnector.com') <NEW_LINE> context.envelope.set('xmlns:xsd','http://www.w3.org/2001/XMLSchema') <NEW_LINE> body = context.envelope.getChi... | case 649
plugin for SUDS which can inspect and manipulate the xml packets sent to/from the soap server.
docs here https://fedorahosted.org/suds/wiki/Documentation#MessagePlugin | 62598efecc40096d616196a3 |
class RecipeSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> ingredients = serializers.PrimaryKeyRelatedField( many=True, queryset=Ingredient.objects.all() ) <NEW_LINE> tags = serializers.PrimaryKeyRelatedField( many=True, queryset=Tag.objects.all() ) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Recip... | Serialize a recipe | 62598efe71ff763f4b5e60f6 |
@OFPAction.register_action_type(ofproto.OFPAT_SET_NW_TOS, ofproto.OFP_ACTION_NW_TOS_SIZE) <NEW_LINE> class OFPActionSetNwTos(OFPAction): <NEW_LINE> <INDENT> def __init__(self, tos): <NEW_LINE> <INDENT> super(OFPActionSetNwTos, self).__init__() <NEW_LINE> self.tos = tos <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def pa... | Set the IP ToS action
This action indicates the IP ToS (DSCP field, 6 bits) to be set.
================ ======================================================
Attribute Description
================ ======================================================
tos IP ToS (DSCP field, 6 bits).
============... | 62598efe76e4537e8c3edf50 |
class TimestampField(BigIntegerField): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(TimestampField, self).__init__(**kwargs) <NEW_LINE> <DEDENT> def default_value(self): <NEW_LINE> <INDENT> if self['auto'] is True: <NEW_LINE> <INDENT> if not self['auto_time']: <NEW_LINE> <INDENT> t = time... | docstring for TimestampField | 62598efe23849d37ff84fa54 |
class InstallmentPlan(APIResource, VerifiableAPIResource, ReconstituableAPIResource): <NEW_LINE> <INDENT> object_type = 'installment_plan' <NEW_LINE> @property <NEW_LINE> def _mapper(self): <NEW_LINE> <INDENT> return { 'hosted_payment': Payment.HostedPayment, 'notification': Payment.Notification, 'failure': Payment.Fai... | An InstallmentPlans Resource | 62598efe099cdd3c636748a1 |
class TextFormat(xsi.EnumerationNoCase): <NEW_LINE> <INDENT> decode = { 'plain': 1, 'preFormatted': 2, 'xhtml': 3 } <NEW_LINE> aliases = { None: 'plain' } | Used to control the format of the text entered by the candidate::
<xsd:simpleType name="textFormat.Type">
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="plain"/>
<xsd:enumeration value="preFormatted"/>
<xsd:en... | 62598efeaad79263cf42d1a5 |
class MyParser(HTMLParser): <NEW_LINE> <INDENT> def handle_decl(self, decl): <NEW_LINE> <INDENT> HTMLParser.handle_decl(self, decl) <NEW_LINE> print(decl) <NEW_LINE> <DEDENT> def handle_starttag(self, tag, attrs): <NEW_LINE> <INDENT> HTMLParser.handle_starttag(self, tag, attrs) <NEW_LINE> if not HTMLParser.get_starttag... | 一个简单的 HTMLparser 的例子
| 62598efe26068e7796d4b2ef |
class LinkedListRec: <NEW_LINE> <INDENT> def __init__(self, items): <NEW_LINE> <INDENT> if len(items) == 0: <NEW_LINE> <INDENT> self.first = EmptyValue <NEW_LINE> self.rest = None <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.first = items[0] <NEW_LINE> self.rest = LinkedListRec(items[1:]) | Linked List with a recursive implementation.
Note that there is no "Node" class with this implementation.
Attributes:
- first (object): the first item stored in this list,
or EmptyValue if this list is empty
- rest (LinkedListRec): a list containing the other items
in this lis... | 62598efe167d2b6e312b5931 |
class SchevoIcon(E.Entity): <NEW_LINE> <INDENT> _hidden = True <NEW_LINE> name = f.unicode() <NEW_LINE> data = f.image() <NEW_LINE> _key(name) | Stores icons for Schevo database and application objects. | 62598efe21bff66bcd7215ec |
class NoAuthMiddleware(base_wsgi.Middleware): <NEW_LINE> <INDENT> @webob.dec.wsgify(RequestClass=wsgi.Request) <NEW_LINE> def __call__(self, req): <NEW_LINE> <INDENT> if 'X-Auth-Token' not in req.headers: <NEW_LINE> <INDENT> user_id = req.headers.get('X-Auth-User', 'admin') <NEW_LINE> project_id = req.headers.get('X-Au... | Return a fake token if one isn't specified. | 62598efeadb09d7d5dc08f4c |
class _RemoteContextForReferenceTable: <NEW_LINE> <INDENT> def __init__(self, backend, model_array, stat_calc, observations, n_samples_per_param): <NEW_LINE> <INDENT> self.model_array = model_array <NEW_LINE> self.stat_calc = stat_calc <NEW_LINE> self.n_samples_per_param = n_samples_per_param <NEW_LINE> self.observatio... | Contains everything that is sent over the network like broadcast vars and map functions | 62598efe66673b3332c2ed47 |
class RemoteFrameTimer(RemoteSerial): <NEW_LINE> <INDENT> def __init__(self, host, port, logfile = None, cb_frame = None, cb_err = None): <NEW_LINE> <INDENT> super().__init__(host, port, logfile, self._frame_line_cb, cb_err) <NEW_LINE> self._cb_frame = cb_frame <NEW_LINE> self._q_gpsinfo = None <NEW_LINE> <DEDENT> @pro... | Proxy for a remote frame timer that is exposed via a RemoteSerial.
Returns gps-timed frames through a callback. See riot-apps/frame_timer for the
remote application | 62598efe56ac1b37e6300b7d |
class OrganizationAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> list_display = ('display_name', 'key') <NEW_LINE> search_fields = ('display_name', 'key') <NEW_LINE> inlines = (ProgramOrganizationInline,) | Admin for the Organization model. | 62598efe4f88993c371ef9b4 |
class SoccerRank(object): <NEW_LINE> <INDENT> def __init__(self, score_map): <NEW_LINE> <INDENT> self.score_map = score_map <NEW_LINE> <DEDENT> def sort_scores(self): <NEW_LINE> <INDENT> return sorted(self.score_map.items(), key=lambda x: (-x[1], x[0])) <NEW_LINE> <DEDENT> def write_output(self, **kwargs): <NEW_LINE> <... | Main class to get the score map and write the output to file. | 62598efeaad79263cf42d1a6 |
class NumberOfPitchedInstrumentsFeature(featuresModule.FeatureExtractor): <NEW_LINE> <INDENT> id = 'I8' <NEW_LINE> def __init__(self, dataOrStream=None, *arguments, **keywords): <NEW_LINE> <INDENT> super().__init__(dataOrStream=dataOrStream, *arguments, **keywords) <NEW_LINE> self.name = 'Number of Pitched Instruments'... | Total number of General MIDI patches that are used to play at least one note.
>>> s1 = stream.Stream()
>>> s1.append(instrument.AcousticGuitar())
>>> s1.append(note.Note())
>>> s1.append(instrument.Tuba())
>>> s1.append(note.Note())
>>> fe = features.jSymbolic.NumberOfPitchedInstrumentsFeature(s1)
>>> fe.extract().vec... | 62598efe9f2886367281718c |
class Delete(base.Operation): <NEW_LINE> <INDENT> def __init__(self, entity): <NEW_LINE> <INDENT> self.entity = entity <NEW_LINE> <DEDENT> def __call__(self, context): <NEW_LINE> <INDENT> context.mutation_pool.delete(self.entity) | Delete entity from datastore via mutation_pool.
See mapreduce.context.MutationPool. | 62598efe5fcc89381b2655f5 |
class PriceInterval: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.I32, 'upper_limit', None, None, ), (2, TType.I32, 'lower_limit', None, None, ), ) <NEW_LINE> def __init__(self, upper_limit=None, lower_limit=None,): <NEW_LINE> <INDENT> self.upper_limit = upper_limit <NEW_LINE> self.lower_limit = lower_limit <NEW... | Attributes:
- upper_limit
- lower_limit | 62598efe5fc7496912d4773e |
class ImportMapper(AbstractComponent): <NEW_LINE> <INDENT> _name = "base.import.mapper" <NEW_LINE> _inherit = "base.mapper" <NEW_LINE> _usage = "import.mapper" <NEW_LINE> _map_child_usage = "import.map.child" <NEW_LINE> _map_child_fallback = "base.map.child.import" <NEW_LINE> def _map_direct(self, record, from_attr, to... | :py:class:`Mapper` for imports.
Transform a record from a backend to an Odoo record | 62598efe26068e7796d4b2f2 |
class EventHubConsumerGroupsListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[EventHubConsumerGroupInfo]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, ... | The JSON-serialized array of Event Hub-compatible consumer group names with a next link.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar value: List of consumer groups objects.
:vartype value: list[~azure.mgmt.iothub.v2021_03_03_preview.models.EventHubConsumerGroupInfo]
:... | 62598efe7d847024c075ad61 |
class LoggingConfig(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.enable = False <NEW_LINE> self.path = '' <NEW_LINE> self.time_format = '' | Stores logging related application settings. | 62598efe8a349b6b43684bda |
class BundleDetailView(BundleStreamView): <NEW_LINE> <INDENT> def __init__(self, request, pathname, content_sha1, **kwargs): <NEW_LINE> <INDENT> super(BundleDetailView, self).__init__(request, **kwargs) <NEW_LINE> self.pathname = pathname <NEW_LINE> self.content_sha1 = content_sha1 <NEW_LINE> <DEDENT> def get_queryset(... | View of a bundle from a particular stream | 62598efed486a94d0ba2a961 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.