code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class Point: <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = y <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "(x: {}, y: {})".format(self.x, self.y) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return str(self) <NEW_LINE> <DEDENT> def d...
Point class represents and manipulates x,y coords.
62598fcb60cbc95b063646e9
class RHRegistrationBulkCheckIn(RHRegistrationsActionBase): <NEW_LINE> <INDENT> def _process(self): <NEW_LINE> <INDENT> check_in = request.form['flag'] == '1' <NEW_LINE> msg = 'checked-in' if check_in else 'not checked-in' <NEW_LINE> for registration in self.registrations: <NEW_LINE> <INDENT> registration.checked_in = ...
Bulk apply check-in/not checked-in state to registrations
62598fcbff9c53063f51a9f8
class ImageWindow : <NEW_LINE> <INDENT> def __init__(self, width = 400, height = 400, title = ""): <NEW_LINE> <INDENT> self._isValid = True <NEW_LINE> self._tkwin = tk.Toplevel( _rootWin, width = width, height = height, borderwidth = 0, padx = 0, pady = 0) <NEW_LINE> self._tkwin.protocol("WM_DELETE_WINDOW", self.close)...
Defines a simple top-level framed window that contains a photo image.
62598fcb50812a4eaa620dba
class MessageEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> message_key = '__json_message' <NEW_LINE> def default(self, obj): <NEW_LINE> <INDENT> if isinstance(obj, Message): <NEW_LINE> <INDENT> is_safedata = 1 if isinstance(obj.message, SafeData) else 0 <NEW_LINE> message = [self.message_key, is_safedata, obj.level, o...
Compactly serialize instances of the ``Message`` class as JSON.
62598fcb167d2b6e312b7324
class BEPostalCodeField(RegexField): <NEW_LINE> <INDENT> default_error_messages = { 'invalid': _( 'Enter a valid postal code in the range and format 1XXX - 9XXX.'), } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super().__init__(r'^[1-9]\d{3}$', **kwargs)
A form field that validates its input as a belgium postal code. Belgium postal code is a 4 digits string. The first digit indicates the province (except for the 3ddd numbers that are shared by the eastern part of Flemish Brabant and Limburg and the and 1ddd that are shared by the Brussels Capital Region, the western p...
62598fcb3d592f4c4edbb260
class RowStructure(object): <NEW_LINE> <INDENT> def __init__(self, row_struct_dict, filetype): <NEW_LINE> <INDENT> if filetype == 'csv': <NEW_LINE> <INDENT> mandatory_props = CSV_ROW_MANDATORY_PROPS <NEW_LINE> <DEDENT> elif filetype == 'pos': <NEW_LINE> <INDENT> mandatory_props = POS_ROW_MANDATORY_PROPS <NEW_LINE> <DED...
Structure of a row in a csv flat file
62598fcb956e5f7376df5854
class info_elem_siq(): <NEW_LINE> <INDENT> def __init__(self,spi,bl,sb,nt,iv): <NEW_LINE> <INDENT> self._spi = spi <NEW_LINE> self._bl = bl <NEW_LINE> self._sb = sb <NEW_LINE> self._nt = nt <NEW_LINE> self._iv = iv <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> s = str(self.spi)+str(self.bl)+str(self.sb) <N...
IEC 104 single point information with quality descriptor
62598fcb4a966d76dd5ef284
class FlatPagesPredicate(object): <NEW_LINE> <INDENT> package = None <NEW_LINE> subdir = None <NEW_LINE> def __call__(self, info, request): <NEW_LINE> <INDENT> output = render(request, info) <NEW_LINE> return output
This is a predicate which allows us to only serve up files that actually exist within our data sources through a catch-all route.
62598fcbadb09d7d5dc0a927
class OmsShellCmd(Cmd): <NEW_LINE> <INDENT> command('omsh') <NEW_LINE> def execute(self, args): <NEW_LINE> <INDENT> self.write("nested shell not implemented yet.\n")
This command represents the oms shell. Currently it cannot run a nested shell.
62598fcb7b180e01f3e49226
class ClustersListByResourceGroupOptions(Model): <NEW_LINE> <INDENT> _attribute_map = { 'filter': {'key': '', 'type': 'str'}, 'select': {'key': '', 'type': 'str'}, 'max_results': {'key': '', 'type': 'int'}, } <NEW_LINE> def __init__(self, *, filter: str=None, select: str=None, max_results: int=1000, **kwargs) -> None: ...
Additional parameters for list_by_resource_group operation. :param filter: An OData $filter clause.. Used to filter results that are returned in the GET respnose. :type filter: str :param select: An OData $select clause. Used to select the properties to be returned in the GET respnose. :type select: str :param max_r...
62598fcb60cbc95b063646eb
class BatchConverter(object): <NEW_LINE> <INDENT> def __init__(self, batch_size=1000, threadpool_prefix="batch_processor", threadpool_size=10): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.batch_size = batch_size <NEW_LINE> self.threadpool_prefix = threadpool_prefix <NEW_LINE> self.threadpool_size = threadpoo...
Generic class that does multi-threaded values conversion. BatchConverter converts a set of values to a set of different values in batches using a threadpool.
62598fcb851cf427c66b8661
class VolatileParams(AutomationConfig): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.path = "volatile_params.json" <NEW_LINE> if not os.path.isfile(self.path): <NEW_LINE> <INDENT> with open(self.path, "w") as json_file: <NEW_LINE> <INDENT> json.dump({}, json_file) <NEW_LINE> <DEDENT> <DEDENT> super(...
VolatileParams inherit AutomationConfig Methods: change_param
62598fcb3617ad0b5ee064f6
class Bandit(ABC): <NEW_LINE> <INDENT> def __init__(self, seed = None): <NEW_LINE> <INDENT> self.random = random.Random() <NEW_LINE> self.regenerate(seed) <NEW_LINE> <DEDENT> def regenerate(self, seed = None): <NEW_LINE> <INDENT> self.random.seed(seed) <NEW_LINE> self._random_state = self.random.getstate() <NEW_LINE> s...
A bandit arm that can be selected for some reward drawn from a distribution. Contains its own random, so the ith pull of an instance will result in the same reward, no matter the order + how many times other bandits have been pulled. Parameters -------- seed Seed to use for random.seed.
62598fcb4527f215b58ea27d
class Index: <NEW_LINE> <INDENT> def __init__(self, tokenizer=nltk.word_tokenize, stemmer=EnglishStemmer(), stopwords=nltk.corpus.stopwords.words('english')): <NEW_LINE> <INDENT> self.redis_token_client = redis.StrictRedis(db=0) <NEW_LINE> self.redis_docs_client = redis.StrictRedis(db=1) <NEW_LINE> self.redis_docs_clie...
Inverted index datastructure
62598fcbd486a94d0ba2c381
class Seg(object): <NEW_LINE> <INDENT> def __init__(self, start: pos.Pos, end: pos.Pos): <NEW_LINE> <INDENT> self.__start = start <NEW_LINE> self.__end = end <NEW_LINE> <DEDENT> @property <NEW_LINE> def start(self) -> pos.Pos: <NEW_LINE> <INDENT> return self.__start <NEW_LINE> <DEDENT> @start.setter <NEW_LINE> def star...
path segment object, specified by a start and an end position __start : start position __end : end position
62598fcb0fa83653e46f5296
class TranslatedNodeMixin: <NEW_LINE> <INDENT> task_comments = None <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> task_comments = kwargs.pop('task_comments', None) <NEW_LINE> if task_comments: <NEW_LINE> <INDENT> self.task_comments = task_comments <NEW_LINE> <DEDENT> super().__init__(*args, **kwar...
При приведении к строке возвращает переведённое имя
62598fcbec188e330fdf8c46
class CmdSpawn(COMMAND_DEFAULT_CLASS): <NEW_LINE> <INDENT> key = "@spawn" <NEW_LINE> aliases = ["spawn"] <NEW_LINE> locks = "cmd:perm(spawn) or perm(Builders)" <NEW_LINE> help_category = "Building" <NEW_LINE> def func(self): <NEW_LINE> <INDENT> def _show_prototypes(prototypes): <NEW_LINE> <INDENT> string = "\nAvailable...
spawn objects from prototype Usage: @spawn @spawn[/switch] prototype_name @spawn[/switch] {prototype dictionary} Switch: noloc - allow location to be None if not specified explicitly. Otherwise, location will default to caller's current location. Example: @spawn GOBLIN @spawn {"key":"goblin", "...
62598fcb3617ad0b5ee064f8
class ClusteringDataGenerator(tf.keras.utils.Sequence): <NEW_LINE> <INDENT> def __init__(self, samples, img_dir, batch_size, n_classes, basenet_preprocess, img_format, img_load_dims=(224, 224)): <NEW_LINE> <INDENT> self.samples = samples <NEW_LINE> self.img_dir = img_dir <NEW_LINE> self.batch_size = batch_size <NEW_LIN...
inherits from Keras Sequence base object, allows to use multiprocessing in .fit_generator
62598fcb4c3428357761a66e
class ValueIterationAgent(ValueEstimationAgent): <NEW_LINE> <INDENT> def __init__(self, mdp, discount = 0.9, iterations = 100): <NEW_LINE> <INDENT> self.mdp = mdp <NEW_LINE> self.discount = discount <NEW_LINE> self.iterations = iterations <NEW_LINE> self.values = util.Counter() <NEW_LINE> "*** YOUR CODE HERE ***" <NEW_...
* Please read learningAgents.py before reading this.* A ValueIterationAgent takes a Markov decision process (see mdp.py) on initialization and runs value iteration for a given number of iterations using the supplied discount factor.
62598fcbbe7bc26dc9252033
@dataclass(frozen=False, init=False) <NEW_LINE> class FileUpdateRequest(Entity): <NEW_LINE> <INDENT> fileMd5sum: str = None <NEW_LINE> fileSize: int = None <NEW_LINE> fileAccess: str = None <NEW_LINE> info: dict = None
Mutable request object used to update file data. :param str file_md5: MD5 checksum value to update :param int file_size: File size (bytes) to update :param int file_access: Access type to update :param dict file_info: json info metadata to update
62598fcb3346ee7daa337820
class Wxpropgrid(Package, SourceforgePackage): <NEW_LINE> <INDENT> homepage = "http://wxpropgrid.sourceforge.net/" <NEW_LINE> sourceforge_mirror_path = "wxpropgrid/wxpropgrid-1.4.15-src.tar.gz" <NEW_LINE> version('1.4.15', sha256='f0c9a86656828f592c8e57d2c89401f07f0af6a45b17bbca3990e8d29121c2b8') <NEW_LINE> depends_on(...
wxPropertyGrid is a property sheet control for wxWidgets. In other words, it is a specialized two-column grid for editing properties such as strings, numbers, flagsets, string arrays, and colours.
62598fcb60cbc95b063646ef
class TagSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Tag <NEW_LINE> fields = ('name', )
Serialize a Cloud instance. Provides statistics for a cloud account.
62598fcb5fcc89381b266326
class PositionWiseFF(nn.Module): <NEW_LINE> <INDENT> def __init__(self, hidden_size, inner_size, ffn_dropout=0.0, hidden_act="relu"): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.dense_in = nn.Linear(hidden_size, inner_size) <NEW_LINE> self.dense_out = nn.Linear(inner_size, hidden_size) <NEW_LINE> self.layer_...
Position-wise feed-forward network of Transformer block. Args: hidden_size: size of the embeddings in the model, also known as d_model inner_size: number of neurons in the intermediate part of feed-forward net, usually is (4-8 x hidden_size) in the papers ffn_dropout: probability of dropout applied...
62598fcbadb09d7d5dc0a92d
class MiscCommands(commands.Cog, name='Misc Commands'): <NEW_LINE> <INDENT> def __init__(self, bot, **options): <NEW_LINE> <INDENT> super().__init__(**options) <NEW_LINE> self.bot = bot <NEW_LINE> <DEDENT> @commands.command(brief="Use bot to display emoji.") <NEW_LINE> async def emoji(self, ctx, emoji_text, number=None...
This category contains all the commands for fun, or are informational.
62598fcb4a966d76dd5ef28a
class BaseCountValidator(object): <NEW_LINE> <INDENT> def __call__(self, value): <NEW_LINE> <INDENT> if not self.get_min_count(): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> counter = 0 <NEW_LINE> for character in force_text(value): <NEW_LINE> <INDENT> category = unicodedata.category(character) <NEW_LINE> if categor...
Counts the occurrences of characters of a :py:func:`unicodedata.category` and raises a :class:`~django.core.exceptions.ValidationError` if the count is less than :py:func:`~BaseCountValidator.get_min_count`.
62598fcba05bb46b3848ac1e
class Request(object): <NEW_LINE> <INDENT> def __init__(self, request_msg, uuid = 0): <NEW_LINE> <INDENT> self.request_msg = request_msg <NEW_LINE> self.type = 'client' <NEW_LINE> self.uuid = uuid
docstring for Request
62598fcb7cff6e4e811b5dd9
class ComplexExpm(Op): <NEW_LINE> <INDENT> __props__ = () <NEW_LINE> def make_node(self, A): <NEW_LINE> <INDENT> assert imported_scipy, ( "Scipy not available. Scipy is needed for the Expm op") <NEW_LINE> A = as_tensor_variable(A) <NEW_LINE> assert A.ndim == 3 <NEW_LINE> expm = theano.tensor.tensor3(dtype=A.dtype) <NEW...
Compute the matrix exponential of a square array.
62598fcb656771135c489a24
class Tracking(object): <NEW_LINE> <INDENT> def __init__(self, request, metric): <NEW_LINE> <INDENT> self.metric = metric <NEW_LINE> self.RECORD_HASH_KEY = RECORD_HASH_PREFIX + str(metric.pk) <NEW_LINE> record_hash = request.session.get(self.RECORD_HASH_KEY, None) <NEW_LINE> if not record_hash: <NEW_LINE> <INDENT> self...
Tracks chosen metrics, options and conversions, and keep the data available on the request object.
62598fcb3346ee7daa337821
class RouteFilter(Resource): <NEW_LINE> <INDENT> _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'etag': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type...
Route Filter Resource. Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str :ivar name: Resource name. :vartype name: str :ivar type: Resource type. :vartype type: str :param location: Resource location. :type location: str :param tags: Resource...
62598fcb9f28863672818a56
class CustomEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, obj): <NEW_LINE> <INDENT> if isinstance(obj, (datetime, date, time)): <NEW_LINE> <INDENT> encoded_obj = obj.isoformat() <NEW_LINE> <DEDENT> elif isinstance(obj, db.Model): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> encoded_obj = json.dumps(o...
Define encoding rules for fields that are not readily serializable.
62598fcbbf627c535bcb185e
class SplinePlot(AnnotationPlot): <NEW_LINE> <INDENT> style_opts = ['alpha', 'edgecolor', 'linewidth', 'linestyle', 'visible'] <NEW_LINE> def draw_annotation(self, axis, data, opts): <NEW_LINE> <INDENT> verts, codes = data <NEW_LINE> patch = patches.PathPatch(matplotlib.path.Path(verts, codes), facecolor='none', **opts...
Draw the supplied Spline annotation (see Spline docstring)
62598fcb71ff763f4b5e7b35
class GW2(commands.Cog): <NEW_LINE> <INDENT> def __init__(self, bot): <NEW_LINE> <INDENT> self.bot = bot <NEW_LINE> <DEDENT> @commands.command() <NEW_LINE> async def PrintDungeons(self, ctx, amount: int = 3): <NEW_LINE> <INDENT> message = "This Weeks Easy Paths Are: \n" + EPaths(ctx, amount) + "\n" + "...
GW2 Commands
62598fcbd486a94d0ba2c387
class SelectorDIC(ModelSelector): <NEW_LINE> <INDENT> def select(self): <NEW_LINE> <INDENT> warnings.filterwarnings("ignore", category=DeprecationWarning) <NEW_LINE> min_val = float("-inf") <NEW_LINE> best_model = None <NEW_LINE> for n in range(self.min_n_components, self.max_n_components+1): <NEW_LINE> <INDENT> try: <...
select best model based on Discriminative Information Criterion Biem, Alain. "A model selection criterion for classification: Application to hmm topology optimization." Document Analysis and Recognition, 2003. Proceedings. Seventh International Conference on. IEEE, 2003. http://citeseerx.ist.psu.edu/viewdoc/download?d...
62598fcb7c178a314d78d855
class CdnMedia(models.Model): <NEW_LINE> <INDENT> TYPE_CHOICES = ( (1, '图片'), ) <NEW_LINE> CDN_CHOICES = ( (1, '七牛'), ) <NEW_LINE> def display_img(self, width=77): <NEW_LINE> <INDENT> return '<img src="{url}" height="{height}", width="{width}", onclick="window.open(this.src)"/>'. format(url=self.url, width=w...
手工上传图片
62598fcb5fc7496912d48454
class StoreEvalResults(base_handler.PipelineBase): <NEW_LINE> <INDENT> def run(self, resource, output): <NEW_LINE> <INDENT> logging.info("resource is %s, output is %s", resource, str(output)) <NEW_LINE> dataset = DatasetPB.query(DatasetPB.output_link == '/blobstore/'+resource).get() <NEW_LINE> dataset.result_link = out...
A pipeline to store the result of the Analysis job in the database. Args: encoded_key: the DB key corresponding to the metadata of this job output: the blobstore location where the output of the job is stored
62598fcb71ff763f4b5e7b37
class CommandFormatter: <NEW_LINE> <INDENT> def verbose(self, msg): <NEW_LINE> <INDENT> return add_linesep_if_missing(msg) <NEW_LINE> <DEDENT> def out(self, msg): <NEW_LINE> <INDENT> return add_linesep_if_missing(msg) <NEW_LINE> <DEDENT> def warn(self, msg): <NEW_LINE> <INDENT> return prepend_warning_if_missing(msg) <N...
Helper class used to format output from ``Command`` objects. Command subclasses can specify a custom instance of this class to alter the way messages are printed (for example, surrounding messages in html tags). Each method corresponds to the ``Command._<name>()`` method of the ``Command`` class (i.e. ``Command._out(...
62598fcb5fdd1c0f98e5e344
class Cancel(base.Command): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def Args(parser): <NEW_LINE> <INDENT> flags.Instance(positional=False, text='The ID of the instance the operation is executing on.' ).AddToParser(parser) <NEW_LINE> flags.Database(positional=False, required=False, text='For a database operation, t...
Cloud Spanner operations cancel command.
62598fcb7b180e01f3e4922b
class SparseDataset(torch.utils.data.Dataset): <NEW_LINE> <INDENT> def __init__(self, *csrs): <NEW_LINE> <INDENT> assert all(csrs[0].shape[0] == csr.shape[0] for csr in csrs) <NEW_LINE> self.csrs = csrs <NEW_LINE> <DEDENT> def __getitem__(self, index) -> Tuple: <NEW_LINE> <INDENT> return tuple(csr[index, ...] for csr i...
torch.utils.data.Dataset wrapping a scipy.sparse.csr.csr_matrix Each sample will be retrieved by indexing matrices along the leftmost dimension. Args: *csrs (scipy.sparse.csr.csr_matrix): sparse matrices that have the same size in the leftmost dimension.
62598fcb5fc7496912d48455
class DriverLicenseOCRRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ImageBase64 = None <NEW_LINE> self.ImageUrl = None <NEW_LINE> self.CardSide = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.ImageBase64 = params.get("ImageBase64") <NEW_LINE...
DriverLicenseOCR请求参数结构体
62598fcbff9c53063f51aa04
class PageDataShortEntityView(object): <NEW_LINE> <INDENT> swagger_types = { 'data': 'list[ShortEntityView]', 'total_pages': 'int', 'total_elements': 'int', 'has_next': 'bool' } <NEW_LINE> attribute_map = { 'data': 'data', 'total_pages': 'totalPages', 'total_elements': 'totalElements', 'has_next': 'hasNext' } <NEW_LINE...
NOTE: This class is auto generated by the swagger code generator program. from tb_rest_client.api_client import ApiClient Do not edit the class manually.
62598fcb63b5f9789fe8552f
class DictDiffer(object): <NEW_LINE> <INDENT> def __init__(self, current_dict, past_dict): <NEW_LINE> <INDENT> self.current_dict, self.past_dict = current_dict, past_dict <NEW_LINE> self.current_keys, self.past_keys = [ set(d.keys()) for d in (current_dict, past_dict) ] <NEW_LINE> self.intersect = self.current_keys.int...
from https://github.com/hughdbrown/dictdiffer Calculate the difference between two dictionaries as: (1) items added (2) items removed (3) keys same in both but changed values (4) keys same in both and unchanged values
62598fcc091ae35668704fe3
class MyClz: <NEW_LINE> <INDENT> pass
我是 Class 註解 可以擁有多行
62598fcca05bb46b3848ac24
class Fun_path(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'fun_paths' <NEW_LINE> id = db.Column(db.Integer,primary_key=True) <NEW_LINE> fa_id = db.Column(db.String(16)) <NEW_LINE> fun_id = db.Column(db.String(128)) <NEW_LINE> classify = db.Column(db.String(128)) <NEW_LINE> name = db.Column(db.String(128)) <NEW_LINE...
主业务目录 id 目录编号,自增,主键 fa_id 父级目录id, fun_id 关联api或UI的数据id classify 1标识为api,2标识为UI
62598fcc97e22403b383b2bf
class CommandParser: <NEW_LINE> <INDENT> def __init__(self, master): <NEW_LINE> <INDENT> self.master = master <NEW_LINE> self.currentToken = master <NEW_LINE> <DEDENT> def parse(self, string): <NEW_LINE> <INDENT> parsed = [] <NEW_LINE> collections = {} <NEW_LINE> string += " " <NEW_LINE> for c in string: <NEW_LINE> <IN...
An object that will take a grammar, and parse any strings according to it.
62598fcc7b180e01f3e4922c
class ARSCResTableEntry(object): <NEW_LINE> <INDENT> FLAG_COMPLEX = 1 <NEW_LINE> FLAG_util = 2 <NEW_LINE> FLAG_WEAK = 4 <NEW_LINE> def __init__(self, buff, mResId, parent=None): <NEW_LINE> <INDENT> self.start = buff.get_idx() <NEW_LINE> self.mResId = mResId <NEW_LINE> self.parent = parent <NEW_LINE> self.size = unpack(...
See https://github.com/LineageOS/android_frameworks_base/blob/df2898d9ce306bb2fe922d3beaa34a9cf6873d27/include/androidfw/ResourceTypes.h#L1370
62598fcc9f28863672818a59
class NetworkSegment(model_base.BASEV2, models_v2.HasId): <NEW_LINE> <INDENT> __tablename__ = 'ml2_network_segments' <NEW_LINE> network_id = sa.Column(sa.String(36), sa.ForeignKey('networks.id', ondelete="CASCADE"), nullable=False) <NEW_LINE> network_type = sa.Column(sa.String(32), nullable=False) <NEW_LINE> physical_n...
Represent persistent state of a network segment. A network segment is a portion of a neutron network with a specific physical realization. A neutron network can consist of one or more segments.
62598fccbf627c535bcb1864
class AliasContextKindValueValuesEnum(_messages.Enum): <NEW_LINE> <INDENT> ANY = 0 <NEW_LINE> FIXED = 1 <NEW_LINE> MOVABLE = 2 <NEW_LINE> OTHER = 3
The alias kind. Values: ANY: <no description> FIXED: <no description> MOVABLE: <no description> OTHER: <no description>
62598fcc8a349b6b436865fa
class Car(): <NEW_LINE> <INDENT> def __init__(self, make, model, year): <NEW_LINE> <INDENT> self.make = make <NEW_LINE> self.model = model <NEW_LINE> self.year = year <NEW_LINE> self.odometer_reading = 0 <NEW_LINE> <DEDENT> def get_descriptive_name(self): <NEW_LINE> <INDENT> long_name = str(self.year) + ' ' + self.make...
一次模拟汽车的简单尝试
62598fcc50812a4eaa620dc1
class NumpyEmpty(NumpyAutoFill): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> name = 'empty' <NEW_LINE> @property <NEW_LINE> def fill_value(self): <NEW_LINE> <INDENT> return None
Represents a call to numpy.empty for code generation.
62598fcc4a966d76dd5ef292
class TestInitialConditionDomain(TestComponent): <NEW_LINE> <INDENT> _class = InitialConditionDomain <NEW_LINE> _factory = initial_conditions
Unit testing of InitialConditionDomain object.
62598fccab23a570cc2d4f4b
class ExtendedTargetParser(target_parser_class): <NEW_LINE> <INDENT> def enter_optional(self): <NEW_LINE> <INDENT> self.trigger_listener('enter_optional') <NEW_LINE> <DEDENT> def exit_optional(self): <NEW_LINE> <INDENT> self.trigger_listener('exit_optional') <NEW_LINE> <DEDENT> def enterRecursionRule(self, localctx, st...
ExtendedTargetParser is a subclass of the original parser implementation. It can trigger state changes that are needed to identify parts of the input that are not needed to keep it syntactically correct.
62598fcc55399d3f056268d5
class SimpleProcProxy(ProcProxy): <NEW_LINE> <INDENT> def __init__(self, f, args, stdin=None, stdout=None, stderr=None, universal_newlines=False): <NEW_LINE> <INDENT> f = wrap_simple_command(f, args, stdin, stdout, stderr) <NEW_LINE> super().__init__(f, args, stdin, stdout, stderr, universal_newlines)
Variant of `ProcProxy` for simpler functions. The function passed into the initializer for `SimpleProcProxy` should have the form described in the xonsh tutorial. This function is then wrapped to make a new function of the form expected by `ProcProxy`.
62598fccbe7bc26dc9252038
class Admin(commands.Cog): <NEW_LINE> <INDENT> def __init__(self, bot): <NEW_LINE> <INDENT> self.bot = bot <NEW_LINE> self.startup = datetime.datetime.now() <NEW_LINE> <DEDENT> def timedelta_str(self, dt): <NEW_LINE> <INDENT> days = dt.days <NEW_LINE> hours, r = divmod(dt.seconds, 3600) <NEW_LINE> minutes, sec = divmod...
Several admin commands
62598fcc956e5f7376df585b
class StringProperty(Property): <NEW_LINE> <INDENT> def __init__(self, choices=None, **kwargs): <NEW_LINE> <INDENT> super(StringProperty, self).__init__(**kwargs) <NEW_LINE> self.choices = choices <NEW_LINE> if self.choices: <NEW_LINE> <INDENT> if not isinstance(self.choices, tuple): <NEW_LINE> <INDENT> raise ValueErro...
Store strings
62598fcc5fdd1c0f98e5e348
class TestTransactionsApi(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.api = zuora_client.api.transactions_api.TransactionsApi() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_g_et_transaction_invoice(self): <NEW_LINE> <INDENT> pass <NE...
TransactionsApi unit test stubs
62598fccd8ef3951e32c8039
class ItemCreateForm(BaseItemProcessForm): <NEW_LINE> <INDENT> company = forms.ModelChoiceField(queryset=companies_models.Company.objects.all(), required=False) <NEW_LINE> class Meta(BaseItemProcessForm.Meta): <NEW_LINE> <INDENT> fields = BaseItemProcessForm.Meta.fields + ('company',) <NEW_LINE> <DEDENT> def clean_comp...
Form for item create page
62598fcc60cbc95b063646f9
class mode: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> from collections import Counter <NEW_LINE> self.counter=Counter() <NEW_LINE> <DEDENT> def step(self, value): <NEW_LINE> <INDENT> if isfloat(value): <NEW_LINE> <INDENT> v=float(value) <NEW_LINE> if not isnan(v): <NEW_LINE> <INDENT> self.counter[v]+=...
Returns the mode of the elements.
62598fcc5fc7496912d48457
class LogSnoop: <NEW_LINE> <INDENT> def __init__(self, orb, nearcast_schema): <NEW_LINE> <INDENT> self.orb = orb <NEW_LINE> self.nearcast_schema = nearcast_schema <NEW_LINE> <DEDENT> def orb_close(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def on_nearcast_message(self, cog_h, message_h, d_fields): <NEW_LINE> <...
Logs any message seen on the associated nearcast.
62598fcc9f28863672818a5a
class CodeBlockPreprocessor(preprocessors.Preprocessor): <NEW_LINE> <INDENT> KIND = 'sourcecode' <NEW_LINE> pattern_tag = re.compile(r'\[sourcecode:(.+?)\](.+?)\[/sourcecode\]', re.S) <NEW_LINE> pattern_ticks = re.compile(r'```(.+?)\n(.+?)\n```', re.S) <NEW_LINE> class Config(messages.Message): <NEW_LINE> <INDENT> clas...
Adapted from: https://bitbucket.org/birkenfeld/pygments-main/ src/e79a7126551c39d5f8c1b83a79c14e86992155a4/external/markdown-processor.py
62598fcc63b5f9789fe85533
class Kernel: <NEW_LINE> <INDENT> ipkg = None <NEW_LINE> running = None <NEW_LINE> variant = None <NEW_LINE> fpath = None <NEW_LINE> name = None <NEW_LINE> def __init__(self, ipkg, variant, fpath): <NEW_LINE> <INDENT> self.ipkg = ipkg <NEW_LINE> self.name = self.ipkg.name <NEW_LINE> self.running = False <NEW_LINE> self...
Kernel object to map real kernels to package manager
62598fcc3617ad0b5ee06504
class Profile(models.Model): <NEW_LINE> <INDENT> user = models.OneToOneField(User, on_delete=models.CASCADE) <NEW_LINE> reg_date = models.DateField(verbose_name='Registration date', auto_now_add=True) <NEW_LINE> avatar = models.ImageField(verbose_name='Avatar', blank=True, null=True) <NEW_LINE> def avatar_url(self): <N...
Дополнительные поля к пользователю: аватарка, дата регистрации.
62598fcc167d2b6e312b7334
class BlogPostSitemap(Sitemap): <NEW_LINE> <INDENT> changefreq = "never" <NEW_LINE> priority = 0.8 <NEW_LINE> def items(self): <NEW_LINE> <INDENT> return Post.objects.filter(is_public=True) <NEW_LINE> <DEDENT> def location(self, obj): <NEW_LINE> <INDENT> return reverse('cms:post_detail', args=[obj.pk]) <NEW_LINE> <DEDE...
ブログ記事のサイトマップ
62598fcc377c676e912f6f55
class Worker(object): <NEW_LINE> <INDENT> def __init__(self, mqtt): <NEW_LINE> <INDENT> self.mqtt = mqtt <NEW_LINE> self.motor = MotorCtrlService() <NEW_LINE> self.speakService = SpeakService() <NEW_LINE> self.vid = CameraService() <NEW_LINE> self.mqtt.reg(Config.MQTT_MOTOR_MOVE_TOPIC_NAME, self.motor_move) <NEW_LINE> ...
Service Worker
62598fcc0fa83653e46f52a4
class Services: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.services = { "domain": { "name": "NonRootDomain" }, "domain_admin_account": { "email": "newtest@test.com", "firstname": "Test", "lastname": "User", "username": "doadmintest", "password": "password" }, "account": { "email": "newtest@test.co...
Test Account Services
62598fccab23a570cc2d4f4d
class PackageCopyJobDerived(BaseRunnableJob): <NEW_LINE> <INDENT> __metaclass__ = EnumeratedSubclass <NEW_LINE> delegates(IPackageCopyJob) <NEW_LINE> def __init__(self, job): <NEW_LINE> <INDENT> self.context = job <NEW_LINE> self.logger = logging.getLogger() <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def get(cls, job_...
Abstract class for deriving from PackageCopyJob.
62598fccfbf16365ca794479
class Settings: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.screen_width = 800 <NEW_LINE> self.screen_height = 600 <NEW_LINE> self.bg_color = (230, 230, 230) <NEW_LINE> self.ship_limit = 1 <NEW_LINE> self.bullet_width = 5 <NEW_LINE> self.bullet_height = 10 <NEW_LINE> self.bullet_color = 60, 60, 60 ...
存储所有设置的类
62598fcc0fa83653e46f52a6
class Error(exceptions.Error): <NEW_LINE> <INDENT> pass
Errors for this module.
62598fccbf627c535bcb186a
class pyHViewTranslationTool(object): <NEW_LINE> <INDENT> def __init__(self,v): <NEW_LINE> <INDENT> self.view=v <NEW_LINE> <DEDENT> def getView(self): <NEW_LINE> <INDENT> return self.view <NEW_LINE> <DEDENT> def onMouseDown(self,e): <NEW_LINE> <INDENT> self.p=pyHPoint(e.getX(),e.getY()) <NEW_LINE> <DEDENT> def onMouseU...
classdocs
62598fcc4527f215b58ea28f
class JSONField(models.TextField): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(JSONField, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def parse_json(cls, value): <NEW_LINE> <INDENT> if not value: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> i...
Stores JSON object in a text field.
62598fccfbf16365ca79447b
class Logger(logging.Logger): <NEW_LINE> <INDENT> def __init__(self, name, level=logging.NOTSET): <NEW_LINE> <INDENT> super(Logger, self).__init__(name, level) <NEW_LINE> <DEDENT> def _compose_msg(self, *args, **kwargs): <NEW_LINE> <INDENT> global CODE <NEW_LINE> msg_list = [] <NEW_LINE> if len(args) > 0: <NEW_LINE> <I...
A smart logger with many useful functions
62598fcc0fa83653e46f52a8
class MeshSegmentation(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "mesh.mesh_segmentation" <NEW_LINE> bl_label = "Segment Mesh" <NEW_LINE> bl_options = {'REGISTER', 'UNDO'} <NEW_LINE> action: bpy.props.EnumProperty(name ="Action", items = [('assignMaterials', "Assign materials", "Assigns a different material ...
Segment a mesh
62598fcc283ffb24f3cf3c47
class GenomicsV1ApiClient(GenomicsApiClient): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(GenomicsV1ApiClient, self).__init__('v1') <NEW_LINE> <DEDENT> def ResourceFromName(self, name): <NEW_LINE> <INDENT> return self._registry.Parse(name, collection='genomics.operations') <NEW_LINE> <DEDENT> def ...
Client for accessing the V1 genomics API.
62598fcc099cdd3c636755c2
class PermuteBijectorTest(test.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self._rng = np.random.RandomState(42) <NEW_LINE> <DEDENT> def testBijector(self): <NEW_LINE> <INDENT> expected_permutation = np.int32([2, 0, 1]) <NEW_LINE> expected_x = np.random.randn(4, 2, 3) <NEW_LINE> expected_y = exp...
Tests correctness of the Permute bijector.
62598fcc3346ee7daa337828
class AmmoFactory(object): <NEW_LINE> <INDENT> def __init__(self, factory): <NEW_LINE> <INDENT> self.factory = factory <NEW_LINE> self.load_plan = factory.get_load_plan() <NEW_LINE> self.ammo_generator = factory.get_ammo_generator() <NEW_LINE> self.filter = lambda missile: True <NEW_LINE> self.marker = factory.get_mark...
A generator that produces ammo.
62598fcc5fcc89381b26632d
class RPIOFactory(LocalPiFactory): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(RPIOFactory, self).__init__() <NEW_LINE> RPIO.setmode(RPIO.BCM) <NEW_LINE> RPIO.setwarnings(False) <NEW_LINE> RPIO.wait_for_interrupts(threaded=True) <NEW_LINE> RPIO.PWM.setup() <NEW_LINE> RPIO.PWM.init_channel(0, 10000...
Uses the `RPIO`_ library to interface to the Pi's GPIO pins. This is the default pin implementation if the RPi.GPIO library is not installed, but RPIO is. Supports all features including PWM (hardware via DMA). .. note:: Please note that at the time of writing, RPIO is only compatible with Pi 1's; the Raspber...
62598fccff9c53063f51aa0e
class AbstractStreamAdapter(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def Adapt(cls, stream): <NEW_LINE> <INDENT> if not isinstance(stream, cls): <NEW_LINE> <INDENT> return cls(stream) <NEW_LINE> <DEDENT> return stream <NEW_LINE> <DEDENT> def __init__(self, stream): <NEW_LINE> <INDENT> self._stream = stream ...
TODO: Does this class need to exist? This class represents the necessary functions used for typical encoding. Right now, it's only used in PlaygroundStandardPacketEncoder. Does that mean we should make it a module?
62598fcc4527f215b58ea291
class AudioPlayerInterface(object): <NEW_LINE> <INDENT> deserialized_types = { } <NEW_LINE> attribute_map = { } <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.__discriminator_value = None <NEW_LINE> <DEDENT> def to_dict(self): <NEW_LINE> <INDENT> result = {} <NEW_LINE> for attr, _ in six.iteritems(self.deseria...
NOTE: This class is auto generated. Do not edit the class manually.
62598fcc7cff6e4e811b5de9
class ImagesBrowser(QueueCommandBase): <NEW_LINE> <INDENT> def getImagesList(self): <NEW_LINE> <INDENT> images = {} <NEW_LINE> for img_id in range(20): <NEW_LINE> <INDENT> images[img_id] = dict(name='Image%03d' % img_id, desc='Image %s made by John Doe' % img_id, url='static/images/Image%03d.jpg' % img_id) <NEW_LINE> <...
#TODO: document Class
62598fccab23a570cc2d4f4f
class AudioDescriptor(ABC): <NEW_LINE> <INDENT> pass
Abstract base class for audio descriptors (playback call specifiers)
62598fccaad79263cf42eb91
class BasePageElement(object): <NEW_LINE> <INDENT> def __set__(self, obj, value): <NEW_LINE> <INDENT> driver = obj.driver <NEW_LINE> WebDriverWait(driver, 100).until(lambda driver: driver.find_element_by_name(self.locator)) <NEW_LINE> driver.find_element_by_name(self.locator).send_keys(value) <NEW_LINE> <DEDENT> def __...
Base pages class that is initalized on every pages obejct class.
62598fccec188e330fdf8c59
class CursorWrapper(): <NEW_LINE> <INDENT> def __init__(self, conn, NAME): <NEW_LINE> <INDENT> from .mongodb_serializer import TransformDjango <NEW_LINE> self.conn = conn <NEW_LINE> self.db_name = NAME <NEW_LINE> self.db = conn[NAME] <NEW_LINE> self.db.add_son_manipulator(TransformDjango()) <NEW_LINE> <DEDENT> def exec...
Connection is essentially a cursor in mongoDB. Let's imitate the methods cursor has
62598fcc3346ee7daa337829
class RedisDict(RedisCollection, SyncedDict): <NEW_LINE> <INDENT> _validators = (require_string_key,) <NEW_LINE> def __init__(self, client=None, key=None, data=None, parent=None, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__( client=client, key=key, data=data, parent=parent, *args, **kwargs )
A dict-like data structure that synchronizes with a persistent Redis database. Examples -------- >>> doc = RedisDict('data') >>> doc['foo'] = "bar" >>> assert doc['foo'] == "bar" >>> assert 'foo' in doc >>> del doc['foo'] >>> doc['foo'] = dict(bar=True) >>> doc {'foo': {'bar': True}} Parameters ---------- client : re...
62598fcc63b5f9789fe8553b
class SlowThrower(ThrowerAnt): <NEW_LINE> <INDENT> name = 'Slow' <NEW_LINE> implemented = False <NEW_LINE> damage = 0 <NEW_LINE> def throw_at(self, target): <NEW_LINE> <INDENT> if target: <NEW_LINE> <INDENT> apply_effect(make_slow, target, 3)
ThrowerAnt that causes Slow on Bees.
62598fccab23a570cc2d4f50
class DifferentialDriveTrajectoryTracker: <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def track(self, reference_location, reference_speed, robot_location): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod ...
Abstract class to make trajectory tracking of a differential drive mobile robot
62598fcc956e5f7376df5860
class TestSQLStatementCount(StorageDALTestCase): <NEW_LINE> <INDENT> mimetype = 'image/jpeg' <NEW_LINE> def _create_directory_with_five_files(self): <NEW_LINE> <INDENT> user = self.create_user() <NEW_LINE> directory = user.root.make_subdirectory('test') <NEW_LINE> for i in range(5): <NEW_LINE> <INDENT> directory.make_f...
Test the number of SQL statements issued by some critical operations. The tests here should just assert that the number of SQL statements issued by some performance-sensitive operations are what we expect. This is necessary because when using an ORM it's way too easy to make changes that seem innocuous but in fact aff...
62598fcca05bb46b3848ac30
class RandomControl(CPUElement): <NEW_LINE> <INDENT> def connect(self, inputSources, outputValueNames, control, outputSignalNames): <NEW_LINE> <INDENT> CPUElement.connect(self, inputSources, outputValueNames, control, outputSignalNames) <NEW_LINE> assert(len(inputSources) == 0), 'Random control does not have any inputs...
Random control unit. It randomly sets it's output signal
62598fccadb09d7d5dc0a940
class SubTaskDetail(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Name = None <NEW_LINE> self.Result = None <NEW_LINE> self.ErrMsg = None <NEW_LINE> self.Type = None <NEW_LINE> self.Status = None <NEW_LINE> self.FailedIndices = None <NEW_LINE> self.FinishTime = None <NEW_LINE> self.Le...
实例操作记录流程任务中的子任务信息(如升级检查任务中的各个检查项)
62598fccbe7bc26dc925203c
class Children: <NEW_LINE> <INDENT> def __init__(self, cids, gids): <NEW_LINE> <INDENT> self.children = [] <NEW_LINE> self.gifts = defaultdict(list) <NEW_LINE> for cid, gid in zip(tqdm(cids, miniters=9999), gids): <NEW_LINE> <INDENT> self.children.append(Child(cid, gid)) <NEW_LINE> self.gifts[gid].append(cid) <NEW_LINE...
cid is ChildId gid is GiftId
62598fcc5fcc89381b26632f
class DropQueryBuilder: <NEW_LINE> <INDENT> QUOTE_CHAR = '"' <NEW_LINE> SECONDARY_QUOTE_CHAR = "'" <NEW_LINE> ALIAS_QUOTE_CHAR = None <NEW_LINE> QUERY_CLS = Query <NEW_LINE> def __init__(self, dialect: Optional[Dialects] = None) -> None: <NEW_LINE> <INDENT> self._drop_target_kind = None <NEW_LINE> self._drop_target: Un...
Query builder used to build DROP queries.
62598fcc63b5f9789fe8553d
class BinaryTree: <NEW_LINE> <INDENT> def __init__(self, root_value): <NEW_LINE> <INDENT> self.tree = BinaryTreeNode(root_value) <NEW_LINE> <DEDENT> def add_child(self, new_value): <NEW_LINE> <INDENT> current_node = self.tree <NEW_LINE> if not current_node.has_left_child(): <NEW_LINE> <INDENT> current_node.set_left_chi...
Impelemntation of a binary tree Args: root_value (Object): The value of the root node Attributes: tree (BinaryTreeNode): The root node that represents the tree
62598fcc8a349b6b43686605
class KillBufferIterClass: <NEW_LINE> <INDENT> def __init__(self,c): <NEW_LINE> <INDENT> self.c = c <NEW_LINE> self.index = 0 <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def next(self): <NEW_LINE> <INDENT> commands = self.c.killBufferCommands <NEW_LINE> aList = g.app.glob...
Returns a list of positions in a subtree, possibly including the root of the subtree.
62598fcc4527f215b58ea295
class CsmUsageQuotaCollection(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'value': {'required': True}, 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[CsmUsageQuota]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( s...
Collection of CSM usage quotas. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar value: Required. Collection of resources. :vartype value: list[~azure.mgmt.web.v2020_09_01.models.CsmUsageQuota] :ivar nex...
62598fcc7cff6e4e811b5ded
class Block(base.ManagedResource): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> klass = self.__class__.__name__ <NEW_LINE> return '<{}(blocked_user_id={!r})>'.format(klass, self.blocked_user_id) <NEW_LINE> <DEDENT> def exists(self): <NEW_LINE> <INDENT> return self.manager.between(other_user_id=self.block...
A block between you and another user.
62598fcc656771135c489a38
class VectorPrinter: <NEW_LINE> <INDENT> class Iterator: <NEW_LINE> <INDENT> def __init__ (self, start, finish, bit_vector): <NEW_LINE> <INDENT> self.bit_vector = bit_vector <NEW_LINE> self.count = 0 <NEW_LINE> if bit_vector: <NEW_LINE> <INDENT> self.item = start['_M_p'] <NEW_LINE> self.io = start['_M_offset...
Pretty printer for std::vector.
62598fccec188e330fdf8c5d
class PreActBottleneck(nn.Module): <NEW_LINE> <INDENT> expansion = 4 <NEW_LINE> def __init__(self, in_planes, planes, stride=1): <NEW_LINE> <INDENT> super(PreActBottleneck, self).__init__() <NEW_LINE> self.bn1 = nn.BatchNorm2d(in_planes) <NEW_LINE> self.conv1 = nn.Conv2d(in_planes, planes, kernel_size=1, bias=False) <N...
Pre-Activation ResNet bottleneck block.
62598fccbe7bc26dc925203d
class GetMessageEditData(Object): <NEW_LINE> <INDENT> ID = 0xfda68d36 <NEW_LINE> def __init__(self, peer, id: int): <NEW_LINE> <INDENT> self.peer = peer <NEW_LINE> self.id = id <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def read(b: BytesIO, *args) -> "GetMessageEditData": <NEW_LINE> <INDENT> peer = Object.read(b) <NE...
Attributes: ID: ``0xfda68d36`` Args: peer: Either :obj:`InputPeerEmpty <pyrogram.api.types.InputPeerEmpty>`, :obj:`InputPeerSelf <pyrogram.api.types.InputPeerSelf>`, :obj:`InputPeerChat <pyrogram.api.types.InputPeerChat>`, :obj:`InputPeerUser <pyrogram.api.types.InputPeerUser>` or :obj:`InputPeerChannel <pyrog...
62598fcc60cbc95b06364705
class ShopifyObjectDataset(Dataset): <NEW_LINE> <INDENT> _validation = { 'linked_service_name': {'required': True}, 'type': {'required': True}, } <NEW_LINE> def __init__(self, linked_service_name, additional_properties=None, description=None, structure=None, parameters=None, annotations=None): <NEW_LINE> <INDENT> super...
Shopify Serivce dataset. :param additional_properties: Unmatched properties from the message are deserialized this collection :type additional_properties: dict[str, object] :param description: Dataset description. :type description: str :param structure: Columns that define the structure of the dataset. Type: array ...
62598fcc377c676e912f6f5b
class TestTPR402(_TestTopology, TPR402): <NEW_LINE> <INDENT> pass
Testing TPR version 58
62598fcc4527f215b58ea297
class FcoeNetworkSpec(unittest.TestCase, ModuleContructorTestCase, ValidateEtagTestCase, ErrorHandlingTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.configure_mocks(self, FcoeNetworkModule) <NEW_LINE> self.resource = self.mock_ov_client.fcoe_networks <NEW_LINE> ErrorHandlingTestCase.configure(...
ModuleContructorTestCase has common tests for class constructor and main function, also provides the mocks used in this test case ValidateEtagTestCase has common tests for the validate_etag attribute. ErrorHandlingTestCase has common tests for the module error handling.
62598fcc55399d3f056268e2
class RTidyr(RPackage): <NEW_LINE> <INDENT> homepage = "https://cloud.r-project.org/src/contrib/tidyr_1.0.2.tar.gz" <NEW_LINE> url = "https://cloud.r-project.org/src/contrib/tidyr_1.0.2.tar.gz" <NEW_LINE> version('1.0.2', md5='9118722418f48877650f6dcf9e160606') <NEW_LINE> depends_on('r-assertthat@0.2.1:', type=('b...
Tidy Messy Data
62598fcc283ffb24f3cf3c4f