code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class PassInfo(JsonDeserializable): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def de_json(cls, json_type): <NEW_LINE> <INDENT> obj = cls.check_json(json_type) <NEW_LINE> last_pass_change = None <NEW_LINE> next_pass_change = None <NEW_LINE> password_used = obj['passwordUsed'] <NEW_LINE> if password_used: <NEW_LINE> <I... | Данные о пароле к сайту qiwi.com
Attributes
----------
last_pass_change : str
Дата/время последнего изменения пароля сайта qiwi.com
next_pass_change : str
Дата/время следующего (планового) изменения пароля сайта qiwi.com
password_used : bool
Логический признак использования пароля
(фактически означает,... | 62598fc057b8e32f5250823d |
class NavServer(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=20) <NEW_LINE> host = models.CharField(max_length=20) <NEW_LINE> port = models.IntegerField(default=0) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.name | Holds the IP and Port of the available Nav Servers | 62598fc04f88993c371f0629 |
class processer(ProcesserBase): <NEW_LINE> <INDENT> seq = "p66" <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> ProcesserBase.__init__(self) <NEW_LINE> <DEDENT> def process(self, data): <NEW_LINE> <INDENT> is_lose = Process66Main._is_car_title_lose(data['car_title']) <NEW_LINE> if is_lose: <NEW_LINE> <INDENT> dr.ins... | 主要字段的规整化、涉及到分词提取 | 62598fc063d6d428bbee29f1 |
class itkMaskImageFilterICVF33IUL3ICVF33(itkMaskImageFilterICVF33IUL3ICVF33_Superclass): <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> _... | Proxy of C++ itkMaskImageFilterICVF33IUL3ICVF33 class | 62598fc02c8b7c6e89bd3a01 |
class UpSampling1D(ZooKerasLayer): <NEW_LINE> <INDENT> def __init__(self, length=2, input_shape=None, **kwargs): <NEW_LINE> <INDENT> super(UpSampling1D, self).__init__(None, length, list(input_shape) if input_shape else None, **kwargs) | UpSampling layer for 1D inputs.
Repeats each temporal step 'length' times along the time axis.
The input of this layer should be 3D.
When you use this layer as the first layer of a model, you need to provide the argument
input_shape (a shape tuple, does not include the batch dimension).
# Arguments
length: Int. UpSam... | 62598fc0d486a94d0ba2c210 |
class LatchingBehaviour(ImmediateBehaviour): <NEW_LINE> <INDENT> def release_immediate(self, component, mode): <NEW_LINE> <INDENT> component.pop_unselected_modes() <NEW_LINE> <DEDENT> def release_delayed(self, component, mode): <NEW_LINE> <INDENT> pop_last_mode(component, mode) | Behaviour that will jump back to the previous mode when the button
is released after having been held for some time. If the button
is quickly pressed, the selected mode will stay. | 62598fc0d8ef3951e32c7f7d |
class PasswordStoreError(Exception): <NEW_LINE> <INDENT> pass | Error in the execution of password store. | 62598fc07047854f4633f614 |
class Checkpoint(Callback): <NEW_LINE> <INDENT> def __init__( self, target='model.pt', monitor='valid_loss_best', ): <NEW_LINE> <INDENT> self.monitor = monitor <NEW_LINE> self.target = target <NEW_LINE> <DEDENT> def on_epoch_end(self, net, **kwargs): <NEW_LINE> <INDENT> if self.monitor is None: <NEW_LINE> <INDENT> do_c... | Save the model during training if the given metric improved.
This callback works by default in conjunction with the validation
scoring callback since it creates a ``valid_loss_best`` value
in the history which the callback uses to determine if this
epoch is save-worthy.
You can also specify your own metric to monitor... | 62598fc05fdd1c0f98e5e1d3 |
class TimeDeltaParameter(Parameter): <NEW_LINE> <INDENT> def _apply_regex(self, regex, input): <NEW_LINE> <INDENT> from datetime import timedelta <NEW_LINE> import re <NEW_LINE> re_match = re.match(regex, input) <NEW_LINE> if re_match: <NEW_LINE> <INDENT> kwargs = {} <NEW_LINE> has_val = False <NEW_LINE> for k, v in si... | Class that maps to timedelta using strings in any of the following forms:
* ``n {w[eek[s]]|d[ay[s]]|h[our[s]]|m[inute[s]|s[second[s]]}`` (e.g. "1 week 2 days" or "1 h")
Note: multiple arguments must be supplied in longest to shortest unit order
* ISO 8601 duration ``PnDTnHnMnS`` (each field optional, years and m... | 62598fc0f9cc0f698b1c53f0 |
class Error(Exception): <NEW_LINE> <INDENT> pass | wrong parameter | 62598fc0f548e778e596b7e1 |
class CSDM_Leaf_Dynamics(SimulationObject): <NEW_LINE> <INDENT> class Parameters(ParamTemplate): <NEW_LINE> <INDENT> CSDM_MAX = Float() <NEW_LINE> CSDM_MIN = Float() <NEW_LINE> CSDM_A = Float() <NEW_LINE> CSDM_B = Float() <NEW_LINE> CSDM_T1 = Float() <NEW_LINE> CSDM_T2 = Float() <NEW_LINE> <DEDENT> class StateVariable(... | Leaf dynamics according to the Canopy Structure Dynamic Model.
The only difference is that in the real CSDM the temperature sum is the
driving variable, while in this case it is simply the day number since the start of the model.
Reference:
Koetz et al. 2005. Use of coupled canopy structure dynamic and radiative
... | 62598fc03317a56b869be670 |
class DescribeRelatedIngressesRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.EnvironmentId = None <NEW_LINE> self.ClusterNamespace = None <NEW_LINE> self.SourceChannel = None <NEW_LINE> self.ApplicationId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <IN... | DescribeRelatedIngresses请求参数结构体
| 62598fc07c178a314d78d6e0 |
class VSarsa(ParallelAgent): <NEW_LINE> <INDENT> def __init__(self, q, policy, discount_factor=0.99): <NEW_LINE> <INDENT> self.q = q <NEW_LINE> self.policy = policy <NEW_LINE> self.discount_factor = discount_factor <NEW_LINE> self._state = None <NEW_LINE> self._action = None <NEW_LINE> <DEDENT> def act(self, state): <N... | Vanilla SARSA (VSarsa).
SARSA (State-Action-Reward-State-Action) is an on-policy alternative to Q-learning. Unlike Q-learning,
SARSA attempts to learn the Q-function for the current policy rather than the optimal policy. This
approach is more stable but may not result in the optimal policy. However, this problem can be... | 62598fc05166f23b2e243621 |
class RFLight(Light): <NEW_LINE> <INDENT> def __init__(self, location: str, uid: str, room: str, gpio: int, code_on: int, code_off: int) -> None: <NEW_LINE> <INDENT> super(RFLight, self).__init__(location, uid, room) <NEW_LINE> self._gpio = gpio <NEW_LINE> self._code_on = code_on <NEW_LINE> self._code_off = code_off <N... | A RF 433 mHz light service.
Provide a light service for lights plugged into a RF 433 mHz controllable
power socket. This class uses the `rpi-rf
<https://github.com/milaq/rpi-rf>`_ module to control a RF 433 mHz
transmitter. | 62598fc063d6d428bbee29f3 |
class CDU_ConvRepIndexing(object): <NEW_LINE> <INDENT> def __init__(self, dsz, S, dimK=None, dimN=2): <NEW_LINE> <INDENT> ds = DictionarySize(dsz, dimN) <NEW_LINE> self.dimCd = ds.ndim - dimN - 1 <NEW_LINE> self.Cd = ds.nchn <NEW_LINE> self.M = ds.nflt <NEW_LINE> self.dsz = dsz <NEW_LINE> if dimK is None: <NEW_LINE> <I... | Manage the inference of problem dimensions and the roles of
:class:`numpy.ndarray` indices for convolutional representations
in convolutional dictionary update problems (e.g.
:class:`.ConvCnstrMODBase` and derived classes). | 62598fc0aad79263cf42ea16 |
class Ssh(object): <NEW_LINE> <INDENT> def __init__(self, host, port=None, user=None, password=None, private_key=None): <NEW_LINE> <INDENT> ssh_port = 22 <NEW_LINE> if port is not None: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> ssh_port = int(port) <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> raise TypeError("ssh... | SSH utilities
- Execute commands on remote host.
- Copy files from and to remote host. | 62598fc07cff6e4e811b5c65 |
class jsonparser(object): <NEW_LINE> <INDENT> def __init__(self, filename): <NEW_LINE> <INDENT> file_path = config.abs_dir <NEW_LINE> f = open(file_path + "json/sfc/"+filename) <NEW_LINE> self.req = json.load(f) <NEW_LINE> f.close() <NEW_LINE> <DEDENT> def get_vnf_list(self): <NEW_LINE> <INDENT> return [vnf["name"] for... | The class is used to parse json file. | 62598fc099fddb7c1ca62f0d |
class Dojo: <NEW_LINE> <INDENT> arg_parser = configargparse.get_argument_parser() <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> args = self.arg_parser.parse_known_args()[0] <NEW_LINE> self.verbose = args.verbose <NEW_LINE> <DEDENT> def train(self, blueprint=None, automatic_search=True, models=None, minimum_score=0... | Main module responsible for training | 62598fc03346ee7daa337769 |
class AlertResource(Resource): <NEW_LINE> <INDENT> method_decorators = [user_alert_access, login_required] <NEW_LINE> def get(self, alert_id, company_id=None): <NEW_LINE> <INDENT> alert = Alert.query.filter(Alert.uid == alert_id).filter(Alert.deleted == False).first() <NEW_LINE> data, errors = AlertSchema().dump(alert)... | Alert Resource | 62598fc0fff4ab517ebcda27 |
class CASBackend(object): <NEW_LINE> <INDENT> supports_object_permissions = False <NEW_LINE> supports_anonymous_user = False <NEW_LINE> supports_inactive_user = False <NEW_LINE> def authenticate(self, ticket, service): <NEW_LINE> <INDENT> username = _verify(ticket, service) <NEW_LINE> if not username: <NEW_LINE> <INDEN... | CAS authentication backend | 62598fc07d847024c075c5fe |
class GithubInlineWriter(GithubWriter): <NEW_LINE> <INDENT> def handle_pylint_error(self, path, line, code, message): <NEW_LINE> <INDENT> comments = self.github.get_review_comments(code, path) <NEW_LINE> if message in [c.body for c in comments]: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> self.github.create_review_c... | Writes inline comments with the pylint errors found in the analyzed
files | 62598fc055399d3f05626758 |
class CustomUser(AbstractUser, BaseModel, UserManager): <NEW_LINE> <INDENT> username = None <NEW_LINE> phone = models.CharField(_('phone number'), max_length=10, unique=True) <NEW_LINE> USERNAME_FIELD = 'phone' <NEW_LINE> REQUIRED_FIELDS = [] <NEW_LINE> def _create_user(self, phone, password=None, **extra_fields): <NEW... | Model for user with no username field | 62598fc04f6381625f1995e3 |
class FileHandleFactory(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def create_file_handle(filename, mode): <NEW_LINE> <INDENT> folder = os.path.dirname(filename) <NEW_LINE> if not os.path.exists(folder): <NEW_LINE> <INDENT> os.makedirs(folder) ... | Creates file handles, allowing for abstraction to virtual files | 62598fc0656771135c4898b2 |
class TestWritableSite(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 testWritableSite(self): <NEW_LINE> <INDENT> pass | WritableSite unit test stubs | 62598fc04a966d76dd5ef117 |
class ColortermOverrideTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> colortermsFile = os.path.join(os.path.dirname(__file__), "../config", "colorterms.py") <NEW_LINE> self.photoCalConf = photoCal.PhotoCalConfig() <NEW_LINE> self.photoCalConf.colorterms.load(colortermsFile) <NEW_L... | Test that the HSC colorterms have been set consistently. | 62598fc0f548e778e596b7e2 |
class MambuValueObject(MambuMapObj): <NEW_LINE> <INDENT> pass | A Mambu object with some schema but that you won't interact directly
with in Mambu web, but through some entity. | 62598fc0283ffb24f3cf3ac7 |
class IndriDocs(gensim.interfaces.CorpusABC): <NEW_LINE> <INDENT> def __init__(self, index, dictionary, max_documents=None): <NEW_LINE> <INDENT> assert isinstance(index, pyndri.Index) <NEW_LINE> self.index = index <NEW_LINE> self.dictionary = dictionary <NEW_LINE> self.max_documents = max_documents <NEW_LINE> _,self.id... | Integrates an Index with Gensim's Doc2Vec implementation. | 62598fc026068e7796d4cb9e |
class Products(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=140, blank=False) <NEW_LINE> description = models.TextField(max_length=1000, null=True, blank=True) <NEW_LINE> price = models.DecimalField(max_digits=100, default=29.99, decimal_places=2) <NEW_LINE> sale_price = models.DecimalField(ma... | these will be the models that will include all the products that will be used by the site.
It will borrow from the class of Django Models and in the end it will return the title of
product as a __unicode__ method. In addition to this a few things need to be included.
1. presence of a Slug field which will be a unique f... | 62598fc099fddb7c1ca62f0e |
class HerokuWorker(Worker): <NEW_LINE> <INDENT> imminent_shutdown_delay = 6 <NEW_LINE> frame_properties = ['f_code', 'f_lasti', 'f_lineno', 'f_locals', 'f_trace'] <NEW_LINE> def setup_work_horse_signals(self): <NEW_LINE> <INDENT> signal.signal(signal.SIGRTMIN, self.request_stop_sigrtmin) <NEW_LINE> signal.signal(signal... | Modified version of rq worker which:
* stops work horses getting killed with SIGTERM
* sends SIGRTMIN to work horses on SIGTERM to the main process which in turn
causes the horse to crash `imminent_shutdown_delay` seconds later | 62598fc0dc8b845886d537fe |
class A2CAgent(A3CAgent): <NEW_LINE> <INDENT> _agent_name = "A2C" <NEW_LINE> _default_config = A2C_DEFAULT_CONFIG <NEW_LINE> def _make_optimizer(self): <NEW_LINE> <INDENT> return SyncSamplesOptimizer(self.local_evaluator, self.remote_evaluators, self.config["optimizer"]) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def ... | Synchronous variant of the A3CAgent. | 62598fc03346ee7daa33776a |
class Experiment: <NEW_LINE> <INDENT> def __init__(self, label): <NEW_LINE> <INDENT> self._label = label <NEW_LINE> <DEDENT> def get_label(self): <NEW_LINE> <INDENT> return self._label | An experiment that can be chosen by the agent. | 62598fc0fff4ab517ebcda29 |
@singleton <NEW_LINE> class TempestConfig: <NEW_LINE> <INDENT> DEFAULT_CONFIG_DIR = os.path.join( os.path.abspath(os.path.dirname(os.path.dirname(__file__))), "etc") <NEW_LINE> DEFAULT_CONFIG_FILE = "tempest.conf" <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> config_files = [] <NEW_LINE> failsafe_path = "/etc/temp... | Provides OpenStack configuration information. | 62598fc0ff9c53063f51a892 |
class CalculatorsReturnValue(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.solarcell = ibei.DeVosSolarcell(input_params) <NEW_LINE> <DEDENT> def test_calc_power_density(self): <NEW_LINE> <INDENT> self.solarcell.bandgap = 0 <NEW_LINE> self.assertEqual(0, self.solarcell.calc_power_dens... | Tests special values of the calculator methods. | 62598fc066673b3332c30617 |
class Signage(BaseInfrastructure): <NEW_LINE> <INDENT> objects = BaseInfrastructure.get_manager_cls(SignageGISManager)() <NEW_LINE> in_structure = SignageStructureManager() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> proxy = True <NEW_LINE> verbose_name = _(u"Signage") <NEW_LINE> verbose_name_plural = _(u"Signages") <NE... | An infrastructure in the park, which is of type SIGNAGE | 62598fc0ad47b63b2c5a7a9b |
class _LockWrapper(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.lock = threading.Lock() <NEW_LINE> <DEDENT> def acquire(self, wait=True): <NEW_LINE> <INDENT> return self.lock.acquire(wait) <NEW_LINE> <DEDENT> def release(self): <NEW_LINE> <INDENT> self.lock.release() | weakref-capable wrapper for threading.Lock | 62598fc0f548e778e596b7e4 |
class Attribute(websettings.Attribute): <NEW_LINE> <INDENT> GLOBAL_SETTINGS = QWebEngineSettings.globalSettings <NEW_LINE> ENUM_BASE = QWebEngineSettings | A setting set via QWebEngineSettings::setAttribute. | 62598fc05166f23b2e243625 |
class SharedResources: <NEW_LINE> <INDENT> __instance = None <NEW_LINE> def __init__(self, vid_src=0): <NEW_LINE> <INDENT> if SharedResources.__instance is not None: <NEW_LINE> <INDENT> raise Exception("This class is a singleton!") <NEW_LINE> <DEDENT> SharedResources.__instance = self <NEW_LINE> self.output_frame = Non... | Class for maintaining shared variables | 62598fc04f88993c371f062c |
class AllSubDevicesGetLampStrikes(TestMixins.AllSubDevicesGetMixin, ResponderTestFixture): <NEW_LINE> <INDENT> CATEGORY = TestCategory.SUB_DEVICES <NEW_LINE> PID = 'LAMP_STRIKES' | Send a Get LAMP_STRIKES to ALL_SUB_DEVICES. | 62598fc0796e427e5384e9da |
class ProtocolCustomSettingsFormat(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'protocol': {'key': 'protocol', 'type': 'str'}, 'trigger_rate_override': {'key': 'triggerRateOverride', 'type': 'str'}, 'source_rate_override': {'key': 'sourceRateOverride', 'type': 'str'}, 'trigger_sensitivity_overri... | DDoS custom policy properties.
:param protocol: The protocol for which the DDoS protection policy is being customized.
Possible values include: "Tcp", "Udp", "Syn".
:type protocol: str or ~azure.mgmt.network.v2019_02_01.models.DdosCustomPolicyProtocol
:param trigger_rate_override: The customized DDoS protection trigg... | 62598fc08a349b6b43686483 |
@adapter_config(name='label', required=(ITask, IAdminLayer, TaskNotificationsTable), provides=IColumn) <NEW_LINE> class TaskNotificationsTableNameColumn(NameColumn): <NEW_LINE> <INDENT> i18n_header = _("Target") | Task notifications table label column | 62598fc056ac1b37e6302432 |
class CrawlerParseException(Exception): <NEW_LINE> <INDENT> pass | Exception from Crawler parse errors | 62598fc03346ee7daa33776b |
class Spider(NewsSpider): <NEW_LINE> <INDENT> name = "海大主页" <NEW_LINE> list_urls = [ "http://211.64.142.8/article_js.asp?ClassID=2&IncludeChild=true&ArticleNum=10" "&ShowTitle=true&ShowUpdateTime=true&OrderField=UpdateTime&OrderType=desc", ] <NEW_LINE> list_extract_pattern = r"<a href='(.*?)' title='(.*?)' target='_bla... | 海大主页
置顶文章比较多,需要多抓取几项
列表页是脚本生成的,应当直接从返回的脚本里提取 | 62598fc0fff4ab517ebcda2b |
class DscastarGenerator: <NEW_LINE> <INDENT> def __init__(self, output_root): <NEW_LINE> <INDENT> self.output_root = join(output_root, "train") <NEW_LINE> self.seq = 0 <NEW_LINE> self.frame_length = None <NEW_LINE> <DEDENT> def output_rgb_files(self, src_rgb_paths): <NEW_LINE> <INDENT> self.frame_length = len(src_rgb_p... | This class generate a data structure for DSACSTAR.
The format is https://github.com/vislearn/dsacstar#data-structure. | 62598fc07b180e01f3e49172 |
class DescribeUpgradableNodeVersionsRequest(JDCloudRequest): <NEW_LINE> <INDENT> def __init__(self, parameters, header=None, version="v1"): <NEW_LINE> <INDENT> super(DescribeUpgradableNodeVersionsRequest, self).__init__( '/regions/{regionId}/clusters/{clusterId}/upgradableNodeVersions', 'GET', header, version) <NEW_LIN... | 查询可升级的节点版本 | 62598fc05fdd1c0f98e5e1d9 |
class Export_Xps_Pose_Op(bpy.types.Operator, ExportHelper): <NEW_LINE> <INDENT> bl_idname = "xps_tools.export_pose" <NEW_LINE> bl_label = "Export XNALara/XPS Pose" <NEW_LINE> bl_space_type = "PROPERTIES" <NEW_LINE> bl_region_type = "WINDOW" <NEW_LINE> filename_ext = '.pose' <NEW_LINE> filepath = bpy.props.StringPropert... | Save an XNALara pose File | 62598fc04428ac0f6e65876a |
class Solution: <NEW_LINE> <INDENT> def orangesRotting(self, grid: List[List[int]]) -> int: <NEW_LINE> <INDENT> m, n = len(grid), len(grid[0]) <NEW_LINE> result = 0 <NEW_LINE> queue = list() <NEW_LINE> for i in range(m): <NEW_LINE> <INDENT> for j in range(n): <NEW_LINE> <INDENT> if grid[i][j] == 2: <NEW_LINE> <INDENT> ... | 找到所有腐烂的橘子
所有腐烂的橘子往上下左右扩散,扩散到的新鲜橘子转成腐烂的橘子,并且记时间为1
新转成腐烂的橘子再往外扩散,直到能扩散到的位置都扩散完毕
找列表中是否在新鲜橘子,存在返回-1
不存在返回时间 | 62598fc03617ad0b5ee0638d |
class Constant(_Value): <NEW_LINE> <INDENT> def __init__(self, value, bits_sign=None): <NEW_LINE> <INDENT> from migen.fhdl.bitcontainer import bits_for <NEW_LINE> _Value.__init__(self) <NEW_LINE> self.value = int(value) <NEW_LINE> if bits_sign is None: <NEW_LINE> <INDENT> bits_sign = bits_for(self.value), self.value < ... | A constant, HDL-literal integer `_Value`
Parameters
----------
value : int
bits_sign : int or tuple or None
Either an integer `bits` or a tuple `(bits, signed)`
specifying the number of bits in this `Constant` and whether it is
signed (can represent negative values). `bits_sign` defaults
to the minimum... | 62598fc0f548e778e596b7e6 |
class UserProfile( models.Model ): <NEW_LINE> <INDENT> user = models.OneToOneField( User, ) <NEW_LINE> privacy = models.CharField( blank = False, help_text = "If you choose private, other users will not be able to see you", max_length = 50 ) <NEW_LINE> groups = models.ManyToManyField( WorkoutGroup, blank = True, relate... | This UserProfile model wraps the default Django auth User model with
additional information, including their groups, playlists, tags
(interests), etc. | 62598fc0796e427e5384e9dc |
class GPPro(ToolWrapper, ABC, EnforceOverrides): <NEW_LINE> <INDENT> GP_BIN = "java -jar " + Paths.GPPRO <NEW_LINE> @final <NEW_LINE> def run_gppro(self, args, outfile): <NEW_LINE> <INDENT> outpath = self.get_outpath(outfile) <NEW_LINE> cmd_line = self.GP_BIN + " " + " ".join(args) + " > " + outpath <NEW_LINE> if isfil... | SCRUTINY ToolWrapper for GlobalPlatformPro | 62598fc0aad79263cf42ea1c |
class Tag(VersionedPanObject): <NEW_LINE> <INDENT> ROOT = Root.VSYS <NEW_LINE> SUFFIX = ENTRY <NEW_LINE> def _setup(self): <NEW_LINE> <INDENT> self._xpaths.add_profile(value='/tag') <NEW_LINE> params = [] <NEW_LINE> params.append(VersionedParamPath( 'color', path='color')) <NEW_LINE> params.append(VersionedParamPath( '... | Administrative tag
Args:
name (str): Name of the tag
color (str): Color ID (eg. 'color1', 'color4', etc). You can
use :func:`~pandevice.objects.Tag.color_code` to generate the ID.
comments (str): Comments | 62598fc0956e5f7376df57a2 |
class Softmax: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.params = [] <NEW_LINE> self.grads = [] <NEW_LINE> self.out = None <NEW_LINE> <DEDENT> def forward(self, x): <NEW_LINE> <INDENT> self.out = softmax(x) <NEW_LINE> return self.out <NEW_LINE> <DEDENT> def backward(self, dout): <NEW_LINE> <INDEN... | Softmax layer
There are no parameters and graduations in Softmax Layer.
Softmax layer converts the input "score batch" to a related
"probability batch", in which each row indicates a probability
vector.
A probability vector is a vector whose length is equal to the
number of classes. Each element in the vector is... | 62598fc03346ee7daa33776c |
class NoPreemptionPolicy(PreemptabilityPolicy): <NEW_LINE> <INDENT> def __init__(self, slottable): <NEW_LINE> <INDENT> PreemptabilityPolicy.__init__(self, slottable) <NEW_LINE> <DEDENT> def get_lease_preemptability_score(self, preemptor, preemptee, time): <NEW_LINE> <INDENT> return -1 | Simple preemption policy: preemption is never allowed.
| 62598fc097e22403b383b150 |
@attr.s(auto_attribs=True, init=False) <NEW_LINE> class Snippet(model.Model): <NEW_LINE> <INDENT> name: Optional[str] = None <NEW_LINE> label: Optional[str] = None <NEW_LINE> sql: Optional[str] = None <NEW_LINE> can: Optional[MutableMapping[str, bool]] = None <NEW_LINE> def __init__( self, *, name: Optional[str] = None... | Attributes:
name: Name of the snippet
label: Label of the snippet
sql: SQL text of the snippet
can: Operations the current user is able to perform on this object | 62598fc060cbc95b06364584 |
class Countdown(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.app = tk.Tk() <NEW_LINE> self.timeleft = 0 <NEW_LINE> self.counting = False <NEW_LINE> self.job = None <NEW_LINE> self.layout_setup() <NEW_LINE> self.update_display(MSG_WELCOME) <NEW_LINE> <DEDENT> def layout_setup(self): <NEW_LINE> <IN... | class implmenting the GUI and timing functionality of the timer | 62598fc023849d37ff8512fb |
@attr.s(slots=True, auto_attribs=True) <NEW_LINE> class RarityComponent: <NEW_LINE> <INDENT> rarity: RARITIES | Component that holds the rarity of the item. | 62598fc07b180e01f3e49173 |
class InvalidSlot(results.MetadataError): <NEW_LINE> <INDENT> _attr = 'slot' | Package's SLOT is invalid. | 62598fc097e22403b383b151 |
class Leaf: <NEW_LINE> <INDENT> def __init__(self, symbol): <NEW_LINE> <INDENT> self.symbol = symbol | Leaf of a regex syntax tree
| 62598fc063b5f9789fe853ba |
class ReadOnlyFieldData(FieldData): <NEW_LINE> <INDENT> def __init__(self, source): <NEW_LINE> <INDENT> self._source = source <NEW_LINE> <DEDENT> def get(self, block, name): <NEW_LINE> <INDENT> return self._source.get(block, name) <NEW_LINE> <DEDENT> def set(self, block, name, value): <NEW_LINE> <INDENT> raise InvalidS... | A FieldData that wraps another FieldData an makes all calls to set and delete
raise :class:`~xblock.exceptions.InvalidScopeError`s. | 62598fc05fdd1c0f98e5e1da |
class Meta: <NEW_LINE> <INDENT> model = User | Define a model instance class. | 62598fc0be7bc26dc9251f80 |
class CustomQuestionView(APIView): <NEW_LINE> <INDENT> def get(self, request): <NEW_LINE> <INDENT> questions = Question.objects.filter(created_by=request.user) <NEW_LINE> world_id = request.query_params.get("world_id") <NEW_LINE> if world_id: <NEW_LINE> <INDENT> world = CustomWorld.objects.get(id=world_id) <NEW_LINE> i... | API for creating custom questions
Requests handled: GET, POST | 62598fc067a9b606de546214 |
class LongCodedValue(CodedValue, long): <NEW_LINE> <INDENT> pass | A long integer coded value. | 62598fc0283ffb24f3cf3acd |
class LoggingResetCommand(sublime_plugin.WindowCommand): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> reset_logging_system() <NEW_LINE> sublime.status_message("Logging system has been reset.") | command key: logging_reset | 62598fc08a349b6b43686487 |
class Album: <NEW_LINE> <INDENT> def __init__(self, name, year, artist=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.year = year <NEW_LINE> if artist is None: <NEW_LINE> <INDENT> self.artist = Artist("Various Artists") <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.artist = artist <NEW_LINE> <DEDENT> ... | Methods:
add_song: used to add a new song to the album's track. | 62598fc076e4537e8c3ef7ef |
class Ping(object): <NEW_LINE> <INDENT> openapi_types = { 'result': 'str' } <NEW_LINE> attribute_map = { 'result': 'result' } <NEW_LINE> def __init__(self, result=None, local_vars_configuration=None): <NEW_LINE> <INDENT> if local_vars_configuration is None: <NEW_LINE> <INDENT> local_vars_configuration = Configuration()... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 62598fc0d486a94d0ba2c21a |
class NodeUnavailableEvent(NotificationEvent): <NEW_LINE> <INDENT> pass | Event sent by a node to the manager to indicate that it is inaccessible | 62598fc03d592f4c4edbb107 |
class Enum(String, SchemaType): <NEW_LINE> <INDENT> __visit_name__ = 'enum' <NEW_LINE> def __init__(self, *enums, **kw): <NEW_LINE> <INDENT> self.enums = enums <NEW_LINE> self.native_enum = kw.pop('native_enum', True) <NEW_LINE> convert_unicode = kw.pop('convert_unicode', None) <NEW_LINE> if convert_unicode is None: <N... | Generic Enum Type.
The Enum type provides a set of possible string values which the
column is constrained towards.
By default, uses the backend's native ENUM type if available,
else uses VARCHAR + a CHECK constraint.
.. seealso::
:class:`~.postgresql.ENUM` - PostgreSQL-specific type,
which has additional fu... | 62598fc03346ee7daa33776d |
class TestWordAnalogy(TestCase): <NEW_LINE> <INDENT> maxDiff = None <NEW_LINE> vectors = [ "boy -0.9 -0.5 0.2 -0.5 0.3", "girl -0.6 -0.6 0.1 0.4 0.1", "brother -0.1 -0.9 0.3 -0.6 0.8", "sister -0.6 -0.9 0.2 0.1 0.3", "dad -0.3 0.7 -0.6 -0.6 0.9", "mom -0.2 0.6 -0.1 0.8 0.5" ] <NEW_LINE> input_words = [ "boy girl brothe... | This class contains tests for the WordAnalogy class | 62598fc060cbc95b06364586 |
class LongThrower(ThrowerAnt): <NEW_LINE> <INDENT> name = 'Long' <NEW_LINE> implemented = True <NEW_LINE> food_cost = 3 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> Ant.__init__(self, armor=1) <NEW_LINE> self.min_range = 3 <NEW_LINE> self.max_range = 10 | A ThrowerAnt that only throws leaves at Bees at least 4 places away. | 62598fc07b180e01f3e49174 |
class BaseWrk2BenchmarkSuite(BaseWrkBenchmarkSuite): <NEW_LINE> <INDENT> def rules(self, out, benchmarks, bmSuiteArgs): <NEW_LINE> <INDENT> return [ mx_benchmark.StdOutRule( r"^\s*(?P<percentile>\d*[.,]?\d*)%\s+(?P<latency>\d*[.,]?\d*)ms$", { "benchmark": benchmarks[0], "bench-suite": self.benchSuiteName(), "metric.nam... | Base class for Wrk2 based benchmark suites. Wrk2 (https://github.com/giltene/wrk2) is a tool that can be used to
measure the latency of applications offering HTTP services. | 62598fc0be7bc26dc9251f81 |
class EIOOXM(object): <NEW_LINE> <INDENT> def __init__(self, handle, rl, bm): <NEW_LINE> <INDENT> self.handle = handle <NEW_LINE> self.ready = False <NEW_LINE> self.rl = rl <NEW_LINE> self.bm = bm <NEW_LINE> self.returned_messages = [] <NEW_LINE> <DEDENT> def on_order_failed(self, order): <NEW_LINE> <INDENT> self.retur... | Eunike Interface Object/Order Execution Module
An interface instance given to OXMs. | 62598fc0adb09d7d5dc0a7c8 |
class FCOSModule(torch.nn.Module): <NEW_LINE> <INDENT> def __init__(self, cfg, in_channels): <NEW_LINE> <INDENT> super(FCOSModule, self).__init__() <NEW_LINE> head = FCOSHead(cfg, in_channels) <NEW_LINE> box_selector_test = make_fcos_postprocessor(cfg) <NEW_LINE> loss_evaluator = make_fcos_loss_evaluator(cfg) <NEW_LINE... | Module for FCOS computation. Takes feature maps from the face_backbone and
FCOS outputs and losses. Only Test on FPN now. | 62598fc08a349b6b43686489 |
class ForwardingRuleMeta(object): <NEW_LINE> <INDENT> swagger_types = { 'id': 'str', 'alias': 'str' } <NEW_LINE> attribute_map = { 'id': 'id', 'alias': 'alias' } <NEW_LINE> def __init__(self, id=None, alias=None): <NEW_LINE> <INDENT> self._id = None <NEW_LINE> self._alias = None <NEW_LINE> self.discriminator = None <NE... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fc0796e427e5384e9e0 |
class Feature(_messages.Message): <NEW_LINE> <INDENT> class TypeValueValuesEnum(_messages.Enum): <NEW_LINE> <INDENT> TYPE_UNSPECIFIED = 0 <NEW_LINE> FACE_DETECTION = 1 <NEW_LINE> LANDMARK_DETECTION = 2 <NEW_LINE> LOGO_DETECTION = 3 <NEW_LINE> LABEL_DETECTION = 4 <NEW_LINE> TEXT_DETECTION = 5 <NEW_LINE> DOCUMENT_TEXT_DE... | The type of Google Cloud Vision API detection to perform, and the maximum
number of results to return for that type. Multiple `Feature` objects can be
specified in the `features` list.
Enums:
TypeValueValuesEnum: The feature type.
Fields:
maxResults: Maximum number of results of this type. Does not apply to
`... | 62598fc07cff6e4e811b5c6f |
class ActivationRequestFailed(Exception): <NEW_LINE> <INDENT> def __init__(self, msgs): <NEW_LINE> <INDENT> self.msgs = msgs | Raised when activation request fails, e.g. if email could not be sent | 62598fc0d8ef3951e32c7f83 |
@add_start_docstrings( ROBERTA_START_DOCSTRING, ROBERTA_INPUTS_DOCSTRING, ) <NEW_LINE> class RobertaForSequenceClassification(BertPreTrainedModel): <NEW_LINE> <INDENT> config_class = RobertaConfig <NEW_LINE> pretrained_model_archive_map = ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP <NEW_LINE> base_model_prefix = "roberta" <NE... | **labels**: (`optional`) ``torch.LongTensor`` of shape ``(batch_size,)``:
Labels for computing the sequence classification/regression loss.
Indices should be in ``[0, ..., config.num_labels]``.
If ``config.num_labels == 1`` a regression loss is computed (Mean-Square loss),
If ``confi... | 62598fc0956e5f7376df57a4 |
class TestLineageElement(TestCase): <NEW_LINE> <INDENT> def testTaxid(self): <NEW_LINE> <INDENT> element = LE(245, 'no name', 'species') <NEW_LINE> self.assertEqual(245, element.taxid) <NEW_LINE> self.assertEqual(245, element[0]) <NEW_LINE> <DEDENT> def testName(self): <NEW_LINE> <INDENT> element = LE(245, 'no name', '... | Test the LineageElement named tuple. | 62598fc0851cf427c66b8501 |
@export <NEW_LINE> class InterpolateAndExtrapolate: <NEW_LINE> <INDENT> def __init__(self, points, values, neighbours_to_use=None, array_valued=False): <NEW_LINE> <INDENT> self.kdtree = cKDTree(points) <NEW_LINE> self.values = values.astype(np.float) <NEW_LINE> if neighbours_to_use is None: <NEW_LINE> <INDENT> neighbou... | Linearly interpolate- and extrapolate using inverse-distance
weighted averaging between nearby points. | 62598fc03d592f4c4edbb108 |
class Skill: <NEW_LINE> <INDENT> def __init__(self, name, description, magic_points_cost): <NEW_LINE> <INDENT> self.name: str = name <NEW_LINE> self.description: str = description <NEW_LINE> self.magic_points_cost: mpf = magic_points_cost <NEW_LINE> self.level: int = 1 <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> ... | This class contains attributes of a skill legendary creatures have. | 62598fc092d797404e388c88 |
class spectrometer_display(gr.sync_block): <NEW_LINE> <INDENT> def __init__(self, vec_length, integration, collect): <NEW_LINE> <INDENT> gr.sync_block.__init__(self, name="spectrometer_display", in_sig=[(np.float32, int(vec_length))], out_sig=[(np.float32, int(vec_length))]) <NEW_LINE> self.vec_length = int(vec_length)... | Spectrometer Display. A single vector stream comes into the block from the spectrometer.
In: Data stream of spectra
Several vectors are output:
Out: Latest Spectrum - either raw or with calibration, depending on user's choice.
The output streams have different possible calibr... | 62598fc00fa83653e46f5131 |
class TestReadWriteExample(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.filename = 'export_test_0x123' <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> os.remove(self.filename) <NEW_LINE> <DEDENT> def test_read_and_write_file(self): <NEW_LINE> <INDENT> this_path = os.path... | Test full import and export functionality | 62598fc05fdd1c0f98e5e1de |
class LinksForm(FlaskForm): <NEW_LINE> <INDENT> links = TextAreaField(label="Links to download images from:", validators=[DataRequired()]) <NEW_LINE> submit = SubmitField(label="Submit") | Form for image downloader page | 62598fc0442bda511e95c6ab |
class Elipsoide(Page): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Page.__init__(self, u"Elipsoide<br><br>x<sup>2</sup>/a<sup>2</sup> + y<sup>2</sup>/b<sup>2</sup> + z<sup>2</sup>/c<sup>2</sup> = 1") <NEW_LINE> param = lambda u,v: (cos(u)*cos(v), 1.5*cos(v)*sin(u), 2*sin(v)) <NEW_LINE> elipsoide = Param... | El <b>plano tangente</b> a una superficie diferenciable
<b>M<sup>2</sup></b> en uno de sus puntos <b>p</b>,
<b>T<sub>P</sub>M</b>, consta de <b>TODOS</b> los vectores tangentes en <b>p</b> a
curvas en la superficie que pasan por <b>p</b>.<br><br>
En un elipsoide, el plano <b>T<sub>p</sub>M</b> deja a toda una vecindad... | 62598fc04a966d76dd5ef121 |
class CollapseExtension(markdown.Extension): <NEW_LINE> <INDENT> def extendMarkdown(self, md, md_globals): <NEW_LINE> <INDENT> md.registerExtension(self) <NEW_LINE> md.parser.blockprocessors.add( 'collapse', CollapseProcessor(md.parser), '_begin') | Collapse extension for Python-Markdown. | 62598fc0099cdd3c63675508 |
class AccTypeField(Field): <NEW_LINE> <INDENT> def to_internal_value(self, data: str) -> AccTypeEnum: <NEW_LINE> <INDENT> if not isinstance(data, str): <NEW_LINE> <INDENT> raise ValidationError("Expected a string") <NEW_LINE> <DEDENT> try: <NEW_LINE> <INDENT> return AccTypeEnum(data.lower().capitalize()) <NEW_LINE> <DE... | Transforms a string into a value in AccTypeEnum | 62598fc0ec188e330fdf8ae0 |
class ServiceCommandFailedException(ShellException): <NEW_LINE> <INDENT> @property <NEW_LINE> def status_code(self): <NEW_LINE> <INDENT> return 500 <NEW_LINE> <DEDENT> def __init__(self, status): <NEW_LINE> <INDENT> self.status = status <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "Service command ... | Should be raised when one of the service command fails | 62598fc0cc40096d6161a2ff |
class Aligner(object): <NEW_LINE> <INDENT> def __init__(self, model_path): <NEW_LINE> <INDENT> if model_path is None: <NEW_LINE> <INDENT> model_path = '../model/seeta_fa_v1.1.bin' <NEW_LINE> <DEDENT> assert os.path.isfile(model_path) is True, 'No such file' <NEW_LINE> byte_model_path = model_path.encode('utf-8') <NEW_L... | Class for Face Alignment
| 62598fc0656771135c4898bc |
class CommandTask(Task): <NEW_LINE> <INDENT> def __init__(self, command, data=None, *args, **kwargs): <NEW_LINE> <INDENT> Task.__init__(self, *args, **kwargs) <NEW_LINE> self.command = command <NEW_LINE> self.data = data <NEW_LINE> <DEDENT> def handle_worker(self, worker): <NEW_LINE> <INDENT> logging.debug("SEND_COMMAN... | A task to run the given command | 62598fc099fddb7c1ca62f13 |
class StocksWatchers(models.Model): <NEW_LINE> <INDENT> pass | Design for watching specific stocks | 62598fc0aad79263cf42ea22 |
class VersionConfig(TemplateView): <NEW_LINE> <INDENT> permission_required = 'config.can_manage_config' <NEW_LINE> template_name = 'config/version.html' <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super(VersionConfig, self).get_context_data(**kwargs) <NEW_LINE> context['versions'] = [... | Show version infos. | 62598fc023849d37ff851301 |
class FriendlyLink(AbstractModel): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name_plural = _(u"系统-友情链接列表") <NEW_LINE> verbose_name = _(u"友情链接") <NEW_LINE> <DEDENT> name = models.CharField(_(u'名称'), max_length=100) <NEW_LINE> web_site = models.URLField(_(u'网站地址'), max_length=200) <NEW_LINE> is_active =... | Friend Link Model | 62598fc07d847024c075c60a |
class GenreRetrieveUpdate(generics.RetrieveUpdateAPIView): <NEW_LINE> <INDENT> queryset = Genre.objects.all() <NEW_LINE> serializer_class = GenreSerializer <NEW_LINE> permission_classes = (permissions.IsAuthenticated, ) | Retrieve and update genre information | 62598fc05fdd1c0f98e5e1e1 |
class ClouderBase(models.Model): <NEW_LINE> <INDENT> _inherit = 'clouder.base' <NEW_LINE> @property <NEW_LINE> def magento_port(self): <NEW_LINE> <INDENT> return self.service_id.childs['exec'] and self.service_id.childs['exec'].ports['web']['hostport'] <NEW_LINE> <DEDENT> @api.multi <NEW_LINE> def deploy_dat... | Add methods to manage the magento base specificities. | 62598fc0656771135c4898be |
class ImageClass(object): <NEW_LINE> <INDENT> def __init__(self, name, image_paths): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.image_paths = image_paths <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.name + ', ' + str(len(self.image_paths)) + ' images' <NEW_LINE> <DEDENT> def __len__(... | Stores the paths to images for a given class | 62598fc0a219f33f346c6a56 |
class HistogramPitchSpace(Histogram): <NEW_LINE> <INDENT> axesClasses = _mergeDicts(Histogram.axesClasses, {'x': axis.PitchSpaceAxis}) <NEW_LINE> def __init__(self, streamObj=None, *args, **keywords): <NEW_LINE> <INDENT> super().__init__(streamObj, *args, **keywords) <NEW_LINE> self.axisX.showEnharmonic = False <NEW_LI... | A histogram of pitch space.
>>> s = corpus.parse('bach/bwv324.xml') #_DOCS_HIDE
>>> p = graph.plot.HistogramPitchSpace(s, doneAction=None) #_DOCS_HIDE
>>> #_DOCS_SHOW s = corpus.parse('bach/bwv57.8')
>>> #_DOCS_SHOW p = graph.plot.HistogramPitchSpace(s)
>>> p.id
'histogram-pitchSpace-count'
>>> p.run() # with default... | 62598fc07cff6e4e811b5c73 |
class EncodedGeometryApiField(ApiField): <NEW_LINE> <INDENT> dehydrated_type = 'geometry' <NEW_LINE> help_text = 'Geometry data.' <NEW_LINE> def dehydrate(self, obj): <NEW_LINE> <INDENT> return self.convert(super(EncodedGeometryApiField, self).dehydrate(obj)) <NEW_LINE> <DEDENT> def convert(self, value): <NEW_LINE> <IN... | Custom ApiField for dealing with data from GeometryFields (by serializing them as Encoded Geometries). | 62598fc0dc8b845886d5380a |
class Delete(base.DeleteCommand): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def Args(parser): <NEW_LINE> <INDENT> flags.AddDeviceResourceFlags(parser, 'from which to delete credentials', positional=False) <NEW_LINE> flags.GetIndexFlag('credential', 'to delete').AddToParser(parser) <NEW_LINE> <DEDENT> def Run(self, a... | Delete a credential from a device. | 62598fc03d592f4c4edbb10d |
class RedisStore(TokenStore): <NEW_LINE> <INDENT> def __init__(self, redis_url: Optional[str] = None): <NEW_LINE> <INDENT> import redis <NEW_LINE> if redis_url: <NEW_LINE> <INDENT> self.client = redis.Redis.from_url(redis_url) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.client = redis.Redis() <NEW_LINE> <DEDENT>... | Redis存储 | 62598fc03346ee7daa337770 |
class ProblemaNoAcotado(Exception): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "El problema es no acotado." | Esta clase sirve para menejar el caso en el que el problema es no acotado. | 62598fc092d797404e388c8a |
class ListAssignmentsPager: <NEW_LINE> <INDENT> def __init__( self, method: Callable[..., reservation.ListAssignmentsResponse], request: reservation.ListAssignmentsRequest, response: reservation.ListAssignmentsResponse, *, metadata: Sequence[Tuple[str, str]] = () ): <NEW_LINE> <INDENT> self._method = method <NEW_LINE> ... | A pager for iterating through ``list_assignments`` requests.
This class thinly wraps an initial
:class:`google.cloud.bigquery_reservation_v1.types.ListAssignmentsResponse` object, and
provides an ``__iter__`` method to iterate through its
``assignments`` field.
If there are more pages, the ``__iter__`` method will ma... | 62598fc097e22403b383b159 |
class Tag(QObject, object): <NEW_LINE> <INDENT> value_changed = pyqtSignal() <NEW_LINE> def __init__( self, name: str, address: int, plc_datatype: int = None, datatype: type = float ) -> None: <NEW_LINE> <INDENT> super(Tag, self).__init__() <NEW_LINE> self.name = name <NEW_LINE> self.address = address <NEW_LINE> self.d... | An instance of Tag represents a buffered connection between GUI and PLC.
:type name: str
:ivar name: tag name
:ivar address: PLC memory address
:type datatype: type
:ivar datatype: python datatype
:type dirty: bool
:ivar dirty: is set if the tag value has been changed
:ivar plc_datatype: identifier for the datatyp... | 62598fc07047854f4633f624 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.