code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Node(object): <NEW_LINE> <INDENT> __slots__ = 'parent key nodes value'.split() <NEW_LINE> no_value = object() <NEW_LINE> def __init__(self, parent, key, nodes, value): <NEW_LINE> <INDENT> self.parent = parent <NEW_LINE> self.key = key <NEW_LINE> self.nodes = nodes <NEW_LINE> self.value = value <NEW_LINE> <DEDENT>... | Internal representation of Trie nodes. | 62598ef7fff4ab517ebcc09e |
class lucas(Function): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def eval(cls, n): <NEW_LINE> <INDENT> if n is S.Infinity: <NEW_LINE> <INDENT> return S.Infinity <NEW_LINE> <DEDENT> if n.is_Integer: <NEW_LINE> <INDENT> return fibonacci(n + 1) + fibonacci(n - 1) <NEW_LINE> <DEDENT> <DEDENT> def _eval_rewrite_as_sqrt(se... | Lucas numbers
Lucas numbers satisfy a recurrence relation similar to that of
the Fibonacci sequence, in which each term is the sum of the
preceding two. They are generated by choosing the initial
values L_0 = 2 and L_1 = 1.
* lucas(n) gives the nth Lucas number
Examples
========
>>> from sympy import lucas
>>> [lu... | 62598ef75fc7496912d476d6 |
class SourceWave(Driver): <NEW_LINE> <INDENT> def __init__(self, transport, protocol): <NEW_LINE> <INDENT> super(SourceWave, self).__init__(transport, protocol) <NEW_LINE> self.function = Command( ':SOUR:WAVE:FUNC?', ':SOUR:WAVE:FUNC', Mapping({ 'sin': 'SIN', 'square': 'SQU', 'ramp': 'RAMP', 'arbitrary0': 'ARB0', 'arbi... | The wave command subsystem of the Source node.
:ivar function: The wave function. Valid are 'sin', 'square', 'ramp',
'arbitrary0', 'arbitrary1', 'arbitrary2', 'arbitrary3' or 'arbitrary4'.
:ivar int duty_cycle: The duty cycle of the wave function in percent.
[0, 100].
:ivar float amplitude: The peak amplitude ... | 62598ef7e1aae11d1e7cdca5 |
class MemoryBalanceStorage(object): <NEW_LINE> <INDENT> def __init__(self, initial_height=None): <NEW_LINE> <INDENT> self._balance = {} <NEW_LINE> if initial_height is not None: <NEW_LINE> <INDENT> self._height = initial_height <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self._height = -1 <NEW_LINE> <DEDENT> self._lo... | In-Memory balance storage | 62598ef791f36d47f2230307 |
class UVSelfCal(Obit.UVSelfCal): <NEW_LINE> <INDENT> def __init__(self, name) : <NEW_LINE> <INDENT> super(UVSelfCal, self).__init__() <NEW_LINE> Obit.CreateUVSelfCal (self.this, name) <NEW_LINE> <DEDENT> def __del__(self, DeleteUVSelfCal=_Obit.DeleteUVSelfCal): <NEW_LINE> <INDENT> if _Obit!=None: <NEW_LINE> <INDENT> De... | Python Obit Image class
This class does visibility-based (Cotton-Schwab) CLEAN
UVSelfCal Members with python interfaces:
InfoList - used to pass instructions to processing
Member List
(readonly)
skyModel - SkyModel, use PGetSkyModel | 62598ef77d43ff248742685e |
class ModelData: <NEW_LINE> <INDENT> def __init__(self,grid,config=None): <NEW_LINE> <INDENT> self.grid = grid <NEW_LINE> if config is None: config = grid.config <NEW_LINE> self.config = config <NEW_LINE> self.basal = None <NEW_LINE> self.enthalpyconverter = None <NEW_LINE> self.vecs = ModelVecs() <NEW_LINE> <DEDENT> d... | A collection of data and physics comprising a PISM model. The collection consists of
* ``grid`` the computation grid
* ``config`` the associated :cpp:class:`PISMConfig`
* ``basal`` a :cpp:class:`PISMYieldStress`.
* ``enthalpy`` an :cpp:class:`EnthalpyConverter`.
* ``vecs`` a :class:`M... | 62598ef74527f215b58e87c9 |
class TFConfigClusterResolver(ClusterResolver): <NEW_LINE> <INDENT> def _load_tf_config(self): <NEW_LINE> <INDENT> return json.loads(os.environ.get(_TF_CONFIG_ENV, '{}')) <NEW_LINE> <DEDENT> def cluster_spec(self): <NEW_LINE> <INDENT> tf_config = self._load_tf_config() <NEW_LINE> if 'cluster' not in tf_config: <NEW_LIN... | Implementation of a ClusterResolver which reads the TF_CONFIG EnvVar. | 62598ef74f6381625f198920 |
class BaseModel(Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> database = db <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def filter(cls, attribute, filter): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> result = cls.select().where(getattr(cls, attribute) == filter) <NEW_LINE> <DEDENT> except AttributeError:... | A base model that will use our Postgresql database | 62598ef73d592f4c4edb97b5 |
class PowerVoteUpdated(VoteCountUpdated): <NEW_LINE> <INDENT> __slots__ = ['vote'] <NEW_LINE> params = parsing.extend_model(VoteCountUpdated.params, { strings.VOTE: parsing.EnumerationType(strings.ALL_VOTE_DECISIONS) }) <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.vote = None <NEW_LINE> super(Power... | Notification about a new vote for a specific game power (for player games).
Properties:
- **vote**: :class:`str` vote object representing associated power vote. Can be yes, no, neutral. | 62598ef771ff763f4b5e6028 |
class BatchNormalization(base_BatchNormalization): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(BatchNormalization, self).__init__(*args, **kwargs) <NEW_LINE> self._uses_learning_phase = True <NEW_LINE> <DEDENT> def call(self, inputs, training='do-not-pass-arg', **kwargs): <NEW_LIN... | Override tf.layers.BatchNormalization with a version that uses
learning_phase rather than requiring a training={True,False} when
the layer is called. | 62598ef71f5feb6acb16151b |
class FPNBody(nn.Module): <NEW_LINE> <INDENT> def __init__(self, backbone, fpn, fpn_inputs=()): <NEW_LINE> <INDENT> super(FPNBody, self).__init__() <NEW_LINE> self.fpn_inputs = fpn_inputs <NEW_LINE> self.backbone = backbone <NEW_LINE> self.fpn = fpn <NEW_LINE> <DEDENT> def forward(self, x): <NEW_LINE> <INDENT> x = self... | Wrapper for a backbone network and an FPN module
Parameters
----------
backbone : torch.nn.Module
Backbone network, which takes a batch of images and produces a dictionary of intermediate features
fpn : torch.nn.Module
FPN module, which takes a list of intermediate features and produces a list of outputs
fpn_i... | 62598ef799cbb53fe682f776 |
class ModoAPIClient(object): <NEW_LINE> <INDENT> def __init__(self, api_url=None): <NEW_LINE> <INDENT> self._api_url = ( settings.MODOBOA_API_URL if api_url is None else api_url ) <NEW_LINE> self._local_core_version = None <NEW_LINE> self._latest_core_version = None <NEW_LINE> self.changelog_url = None <NEW_LINE> <DEDE... | A simple client for the public API. | 62598ef7be383301e02520a7 |
class hql_query2_result(object): <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.STRUCT, 'success', (HqlResult2, HqlResult2.thrift_spec), None, ), (1, TType.STRUCT, 'e', (hyperthrift.gen.ttypes.ClientException, hyperthrift.gen.ttypes.ClientException.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, success=None, e=N... | Attributes:
- success
- e | 62598ef767a9b606de544897 |
class Md5PasswordEncoder(AbstractOneWayPasswordEncoder): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Md5PasswordEncoder, self).__init__() <NEW_LINE> try: <NEW_LINE> <INDENT> import hashlib <NEW_LINE> self.onewayHashStrategy = hashlib.md5 <NEW_LINE> <DEDENT> except ImportError: <NEW_LINE> <INDENT> ... | MD5 implementation of PasswordEncoder.
If a None password is presented, it will be treated as an empty String ("") password.
As MD5 is a one-way hash, the salt can contain any characters. | 62598ef7aad79263cf42d0d6 |
class UserViewSet(mixins.RetrieveModelMixin, mixins.UpdateModelMixin, viewsets.GenericViewSet): <NEW_LINE> <INDENT> queryset = User.objects.filter(is_active=True, is_client=True) <NEW_LINE> serializer_class = UserModelSerializer <NEW_LINE> lookup_field = 'username' <NEW_LINE> def get_permissions(self): <NEW_LINE> <INDE... | User view set.
Handle sign up, login and account verification. | 62598ef766656f66f7d58cad |
class TestShare: <NEW_LINE> <INDENT> def test_share_with_csrf(self, app, testapp, mocker): <NEW_LINE> <INDENT> csrf = mocker.patch('matl_online.public.views.validate_csrf') <NEW_LINE> csrf.return_value = True <NEW_LINE> post = mocker.patch('matl_online.public.views.requests.post') <NEW_LINE> data = {'success': True, 'd... | Tests the /share route for uploading to imgur. | 62598ef7f548e778e5969e55 |
class ImageAnnotation: <NEW_LINE> <INDENT> def __init__(self, image_filename, image_width, image_height): <NEW_LINE> <INDENT> self.image_filename = image_filename <NEW_LINE> self.image_format = 'png' if image_filename.endswith('png') else 'jpg' <NEW_LINE> self.image_width = image_width <NEW_LINE> self.image_height = im... | Value object representing the annotation of a single image. | 62598ef721bff66bcd72151f |
class HvacSystem(Device): <NEW_LINE> <INDENT> def __init__(self, path, render, datadir): <NEW_LINE> <INDENT> super(HvacSystem, self).__init__(path) <NEW_LINE> self._description = None <NEW_LINE> self.datadir = datadir <NEW_LINE> self.render = render <NEW_LINE> self.render.parent = self <NEW_LINE> self.type = 'HVAC_Syst... | classdocs | 62598ef763b5f9789fe83a27 |
class WrapperThread(KillableThread): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> KillableThread.__init__(self) <NEW_LINE> self._payload = None <NEW_LINE> self._payload_args = None <NEW_LINE> self._payload_kwargs = None <NEW_LINE> self._failure_func = None <NEW_LINE> self._success_func = None <NEW_LINE> ... | A thread that runs a payload func and stays killable.
It manages this by letting the payload know how to
check keep_alive and how to sleep. | 62598ef77d847024c075ac97 |
class JWPlatformInternalError(JWPlatformError): <NEW_LINE> <INDENT> pass | Internal Error | 62598ef74527f215b58e87ca |
class SvLinkNewNodeInput(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "node.sv_quicklink_new_node_input" <NEW_LINE> bl_label = "Add a new node to the left" <NEW_LINE> @classmethod <NEW_LINE> def poll(cls, context): <NEW_LINE> <INDENT> return hasattr(context, 'socket') <NEW_LINE> <DEDENT> def execute(self, conte... | Spawn and link new node to the left of the caller node | 62598ef84f88993c371ef94f |
class RedisSessionInterface(SessionInterface): <NEW_LINE> <INDENT> session_class = RedisSession <NEW_LINE> def __init__(self, config, redis=None, serializer=pickle): <NEW_LINE> <INDENT> if redis is None: <NEW_LINE> <INDENT> redis = Redis( host=config.get('SESSION_REDIS_HOST', 'localhost'), port=config.get('SESSION_REDI... | Redis Session Interface
Usage:
app = Flask(__name__)
app.session_interface = RedisSessionInterface(app.config)
:param config: App configuration
:param redis: Redis instance
:param serializer: Default: pickle
Config:
- SESSION_REDIS_HOST
- SESSION_REDIS_PORT
- SESSION_REDIS_PASSWORD
- SESSION_... | 62598ef83317a56b869bd9c9 |
class LeaseTasksRequest(_messages.Message): <NEW_LINE> <INDENT> agentId = _messages.StringField(1) <NEW_LINE> currentAgentTime = _messages.StringField(2) <NEW_LINE> requestedLeaseDuration = _messages.StringField(3) | A request to lease tasks for execution by an agent.
Fields:
agentId: The agent's id.
currentAgentTime: The current timestamp at the worker.
requestedLeaseDuration: The requested initial lease period. | 62598ef8a05bb46b3848913c |
class KeyRangeError(Error): <NEW_LINE> <INDENT> pass | An error during construction of a KeyRangeItem. | 62598ef8e5267d203ee6a1cd |
class Solution: <NEW_LINE> <INDENT> def treeProblem(self, fa, val): <NEW_LINE> <INDENT> n = len(val) <NEW_LINE> num_nodes = [1 for _ in range(n)] <NEW_LINE> sums = [val[i] for i in range(n)] <NEW_LINE> maxi_avg = -sys.maxsize - 1 <NEW_LINE> maxi_node = -1 <NEW_LINE> for i in range(n - 1, -1, -1): <NEW_LINE> <INDENT> av... | @param fa: the father
@param val: the val
@return: the biggest node | 62598ef82c8b7c6e89bd2089 |
class HMMERRunner(): <NEW_LINE> <INDENT> def __init__(self, mode="dom"): <NEW_LINE> <INDENT> self.logger = logging.getLogger('timestamp') <NEW_LINE> self.checkForHMMER() <NEW_LINE> if mode == "dom": <NEW_LINE> <INDENT> self.mode = 'domtblout' <NEW_LINE> <DEDENT> elif mode == "tbl": <NEW_LINE> <INDENT> self.mode = 'tblo... | Wrapper for running HMMER3. | 62598ef867a9b606de544898 |
class _WritelnDecorator(object): <NEW_LINE> <INDENT> def __init__(self, stream): <NEW_LINE> <INDENT> self.stream = stream <NEW_LINE> <DEDENT> def __getattr__(self, attr): <NEW_LINE> <INDENT> if attr in ('stream', '__getstate__'): <NEW_LINE> <INDENT> raise AttributeError(attr) <NEW_LINE> <DEDENT> return getattr(self.str... | Used to decorate file-like objects with a handy 'writeln' method | 62598ef876e4537e8c3ede82 |
class TestGetSerializer(BaseUnitTest): <NEW_LINE> <INDENT> def test_retreiving_ha_for_5_0(self): <NEW_LINE> <INDENT> cluster = mock.MagicMock(is_ha_mode=True) <NEW_LINE> cluster.release.environment_version = '5.0' <NEW_LINE> self.assertIs( ds.get_serializer_for_cluster(cluster), ds.DeploymentHASerializer50) <NEW_LINE> ... | Test cases for `get_serializer_for_cluster` function | 62598ef87d43ff248742685f |
class StructureFamilyDefinitionTest(test_lib.BaseTestCase): <NEW_LINE> <INDENT> def testInitialize(self): <NEW_LINE> <INDENT> base_definition = data_types.StructureDefinition( 'base', description='my base structure type') <NEW_LINE> data_type_definition = data_types.StructureFamilyDefinition( 'family', base_definition,... | Structure family definition tests. | 62598ef8bf627c535bcafd3b |
class DateTime(_DateAffinity, TypeEngine): <NEW_LINE> <INDENT> __visit_name__ = 'datetime' <NEW_LINE> def __init__(self, timezone=False): <NEW_LINE> <INDENT> self.timezone = timezone <NEW_LINE> <DEDENT> def get_dbapi_type(self, dbapi): <NEW_LINE> <INDENT> return dbapi.DATETIME <NEW_LINE> <DEDENT> @property <NEW_LINE> d... | A type for ``datetime.datetime()`` objects.
Date and time types return objects from the Python ``datetime``
module. Most DBAPIs have built in support for the datetime
module, with the noted exception of SQLite. In the case of
SQLite, date and time types are stored as strings which are then
converted back to datetime... | 62598ef83d592f4c4edb97b7 |
class InstructorAddProcessor(InstructorProcessor): <NEW_LINE> <INDENT> _eventMessageType = 'uw-instructor-add' <NEW_LINE> _eventMessageVersion = '1' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(InstructorAddProcessor, self).__init__( queue_settings_name=QUEUE_SETTINGS_NAME_ADD, is_encrypted=False) <NEW_LINE... | UW Course Instructor Add Event Handler | 62598ef89f288636728170c8 |
class FixedDict(dict): <NEW_LINE> <INDENT> def __setitem__(self, key, newvalue): <NEW_LINE> <INDENT> if key in self: <NEW_LINE> <INDENT> raise KeyError('FixedDict cannot reassign to key {0!r} (current: {1!r}, new value: {2!r})'.format(key,self[key],newvalue)) <NEW_LINE> <DEDENT> dict.__setitem__(self, key, newvalue) | Dict subclass which prevents reassignment to existing keys. | 62598ef8167d2b6e312b5864 |
class ListVpnSitesResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[VpnSite]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["VpnSite"]] = None, next_link: Optional[str] = None, **kwargs ): <NEW_LIN... | Result of the request to list VpnSites. It contains a list of VpnSites and a URL nextLink to get the next set of results.
:param value: List of VpnSites.
:type value: list[~azure.mgmt.network.v2020_06_01.models.VpnSite]
:param next_link: URL to get the next set of operation list results if there are any.
:type next_li... | 62598ef8a8370b77170eecad |
class ObservationSet(collections.Sequence): <NEW_LINE> <INDENT> def __init__(self, ethogram, observer, obs_source): <NEW_LINE> <INDENT> self.ethogram = ethogram <NEW_LINE> self.observer = observer <NEW_LINE> self.obs_source = obs_source <NEW_LINE> self.__observations = [] <NEW_LINE> <DEDENT> def __getitem__(self, index... | Deprecated. Observation sets right now are just represented as lists of
dict objects. I may try to resuscitate an actual class for this later. | 62598ef892d797404e387fe0 |
class Camera(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.cam = cv2.VideoCapture(0) <NEW_LINE> self.cam.set(3, 400) <NEW_LINE> self.cam.set(4, 300) <NEW_LINE> time.sleep(0.1) <NEW_LINE> <DEDENT> def get_frame(self,obj): <NEW_LINE> <INDENT> method_name = obj.AppMethodName <NEW_LINE> method =... | An emulated camera implementation that streams a repeated sequence of
files 1.jpg, 2.jpg and 3.jpg at a rate of one frame per second. | 62598ef866673b3332c2ec78 |
class Velvet(MakefilePackage): <NEW_LINE> <INDENT> homepage = "http://www.ebi.ac.uk/~zerbino/velvet/" <NEW_LINE> url = "http://www.ebi.ac.uk/~zerbino/velvet/velvet_1.2.10.tgz" <NEW_LINE> version('1.2.10', '6e28c4b9bedc5f7ab2b947e7266a02f6') <NEW_LINE> def install(self, spec, prefix): <NEW_LINE> <INDENT> mkdirp(pre... | Velvet is a de novo genomic assembler specially designed for short read
sequencing technologies. | 62598ef860cbc95b06362c00 |
class CustomTextTestRunner(unittest.runner.TextTestRunner): <NEW_LINE> <INDENT> resultclass = CustomTextTestResult <NEW_LINE> def run(self, test): <NEW_LINE> <INDENT> self.test_case_count = test.countTestCases() <NEW_LINE> return super(CustomTextTestRunner, self).run(test) <NEW_LINE> <DEDENT> def _makeResult(self): <NE... | Extension of TextTestRunner to support numbering test cases | 62598ef83346ee7daa336acc |
class addQuestion_result: <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.STRING, 'success', None, None, ), ) <NEW_LINE> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAcceler... | Attributes:
- success | 62598ef87b180e01f3e484ab |
class CleansetError(Exception): <NEW_LINE> <INDENT> pass | Base class for pcdhit exceptions. | 62598ef8498bea3a75a563fd |
class InboundTransportSetupError(InboundTransportError): <NEW_LINE> <INDENT> pass | Setup error for an inbound transport. | 62598ef8097d151d1a2bf8ed |
class Stop(pygeoj.Feature): <NEW_LINE> <INDENT> def reset(self): <NEW_LINE> <INDENT> self.task = None <NEW_LINE> self.properties['Task'] = '' <NEW_LINE> self.properties['Reward'] = '' <NEW_LINE> self.properties['Category'] = '' <NEW_LINE> self.properties['Last Edit'] = int(self._map.now().strftime("%j")) <NEW_LINE> sel... | Extension of the pygeoj feature class that includes more methods that are useful for pokestops. | 62598ef863b5f9789fe83a29 |
class TestRemoteFileFTP(unittest.TestCase): <NEW_LINE> <INDENT> url = "ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/technical/reference/GRCh38_reference_genome/GRCh38_full_analysis_set_plus_decoy_hla.fa" <NEW_LINE> def testFTPView(self): <NEW_LINE> <INDENT> if not checkURL(self.url): <NEW_LINE> <INDENT> return <NEW_LIN... | test remote access.
| 62598ef87d847024c075ac99 |
class Epochs2signals(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def __init__(self, filters=([1, 35],), events=None, tmin=-0.2, tmax=1.0, channels=None, resample=None, epochsinfo=None, epochstmin=None, baseline=None): <NEW_LINE> <INDENT> self.filters = filters <NEW_LINE> self.resample = resample <NEW_LINE> if... | Filters and crops epochs.
Parameters
----------
filters: list of list (defaults [[1, 35]])
bank of bandpass filter to apply.
events: List of str | None (default None)
event to use for epoching. If None, default to all events defined in
the dataset.
tmin: float (default 0.0)
Start time (in second) of... | 62598ef85fc7496912d476d8 |
class S3ProjectDRRModel(S3Model): <NEW_LINE> <INDENT> names = ("project_drr",) <NEW_LINE> def model(self): <NEW_LINE> <INDENT> T = current.T <NEW_LINE> hfa_opts = project_hfa_opts() <NEW_LINE> options = dict((opt, "HFA %s" % opt) for opt in hfa_opts) <NEW_LINE> tablename = "project_drr" <NEW_LINE> self.define_table(tab... | Models for DRR (Disaster Risk Reduction) extensions | 62598ef84a966d76dd5ed7a4 |
class Geocoder(object): <NEW_LINE> <INDENT> GEOCODE_QUERY_URL = 'https://maps.google.com/maps/api/geocode/json?' <NEW_LINE> USER_AGENT = 'pygeocoder/' + VERSION + ' (Python)' <NEW_LINE> def __init__(self, api_key=None, client_id=None, private_key=None): <NEW_LINE> <INDENT> self.api_key = api_key <NEW_LINE> self.client_... | A Python wrapper for Google Geocoding V3's API | 62598ef8442bda511e95ad2c |
class LambdaMemorySize(CloudFormationLintRule): <NEW_LINE> <INDENT> id = 'W2510' <NEW_LINE> shortdesc = 'Parameter Memory Size attributes should have max and min' <NEW_LINE> description = 'Check if a parameter that is used for Lambda memory size ' ' should have a min and max size that matches Lambda co... | Check Lambda Memory Size | 62598ef860cbc95b06362c01 |
class Client(object): <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> self.parent = parent <NEW_LINE> <DEDENT> def append(self, job_id, build_id, log): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> response = self.parent.rest.do_build_request('POST', job_id, build_id, 'console', data=log, content_typ... | client class for build console log related operations | 62598ef83317a56b869bd9ca |
class AndroidSDKTests(LargeFrameworkTests): <NEW_LINE> <INDENT> TIMEOUT_INSTALL_PROGRESS = 120 <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self.installed_path = os.path.join(self.install_base_path, "android", "android-sdk") <NEW_LINE> <DEDENT> @property <NEW_LINE> def exec_path(self): <NE... | This will test the Android SDK installation | 62598ef863d6d428bbee1099 |
class CmdRemove(MuxCommand): <NEW_LINE> <INDENT> key = "remove" <NEW_LINE> help_category = "clothing" <NEW_LINE> def func(self): <NEW_LINE> <INDENT> clothing = self.caller.search(self.args, candidates=self.caller.contents) <NEW_LINE> if not clothing: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> if not clothing.db.wor... | Takes off an item of clothing.
Usage:
remove <obj>
Removes an item of clothing you are wearing. You can't remove
clothes that are covered up by something else - you must take
off the covering item first. | 62598ef85fdd1c0f98e5c870 |
@transformations.coordinate_alias('fk4') <NEW_LINE> class FK4(SphericalCoordinatesBase): <NEW_LINE> <INDENT> __doc__ = __doc__.format(params=SphericalCoordinatesBase._init_docstring_param_templ.format(lonnm='ra', latnm='dec')) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(FK4, self).__init__... | A coordinate in the FK4 system.
Parameters
----------
{params}
equinox : `~astropy.time.Time`, optional
The equinox for these coordinates. Defaults to B1950.
obstime : `~astropy.time.Time` or `None`
The time of observation for this coordinate. If `None`, it will be taken
to be the same as the ``equinox`... | 62598ef899cbb53fe682f779 |
class ProfilerHook(session_run_hook.SessionRunHook): <NEW_LINE> <INDENT> def __init__(self, save_steps=None, save_secs=None, output_dir="", show_dataflow=True, show_memory=False): <NEW_LINE> <INDENT> self._output_file = os.path.join(output_dir, "timeline-{}.json") <NEW_LINE> self._show_dataflow = show_dataflow <NEW_LIN... | Captures CPU/GPU profiling information every N steps or seconds.
This produces files called "timeline-<step>.json", which are in Chrome
Trace format.
For more information see:
https://github.com/catapult-project/catapult/blob/master/tracing/README.md | 62598ef84f6381625f198922 |
class MailApp(AppConfig): <NEW_LINE> <INDENT> name = "mail" <NEW_LINE> label = "mailv1" | Mail AppConfig | 62598ef8d486a94d0ba2a894 |
class TopicFeatures(object): <NEW_LINE> <INDENT> def __init__(self, feature_dict): <NEW_LINE> <INDENT> self._features = collections.OrderedDict(sorted(feature_dict.items(), key=lambda pair: pair[0])) <NEW_LINE> <DEDENT> def feature_names(self): <NEW_LINE> <INDENT> return list(self._features.keys()) <NEW_LINE> <DEDENT> ... | A container of topic features.
A topic feature is a function that maps a topic to a real number.
TopicFeatures.compute calculated the values of the contained features
on the given topics. For every topic, the computed values are placed
in a dictionary, where the keys correspond to the feature names.
The class is used... | 62598ef82ae34c7f260a99ad |
class BrickletSolidStateRelay(Device): <NEW_LINE> <INDENT> DEVICE_IDENTIFIER = 244 <NEW_LINE> DEVICE_DISPLAY_NAME = 'Solid State Relay Bricklet' <NEW_LINE> CALLBACK_MONOFLOP_DONE = 5 <NEW_LINE> FUNCTION_SET_STATE = 1 <NEW_LINE> FUNCTION_GET_STATE = 2 <NEW_LINE> FUNCTION_SET_MONOFLOP = 3 <NEW_LINE> FUNCTION_GET_MONOFLOP... | Device for controlling AC and DC Solid State Relays | 62598ef8167d2b6e312b5866 |
class Date(BaseModel): <NEW_LINE> <INDENT> month: int = Schema( 1, description='A value for month between `1`-`12`. Default is `1`.', ge=1, le=12 ) <NEW_LINE> day: int = Schema( 1, description='A value for day between `1`-`31`. Default is `1`.', ge=1, le=31 ) <NEW_LINE> is_leap_year: bool = Schema( False ) <NEW_LINE> @... | Date. | 62598ef8be383301e02520ab |
class ServePosition(IntEnum): <NEW_LINE> <INDENT> TEAM1LEFT = 1 <NEW_LINE> TEAM1RIGHT = 2 <NEW_LINE> TEAM2LEFT = 3 <NEW_LINE> TEAM2RIGHT = 4 <NEW_LINE> UNKNOWN = 0 | Enum Class that represents the servePosition | 62598ef8627d3e7fe0e05759 |
class BasicTask(OrderableTask): <NEW_LINE> <INDENT> def __init__(self, session, filename, parameters, result_queue, payload=None): <NEW_LINE> <INDENT> self.session = session <NEW_LINE> self.filename = filename <NEW_LINE> self.filename.parameters = parameters <NEW_LINE> self.parameters = parameters <NEW_LINE> self.resul... | This class is a wrapper for all ``TaskInfo`` and ``TaskInfo`` objects
It is practically a thread of execution. It also injects the necessary
attributes like ``session`` object in order for the filename to
perform its designated operation. | 62598ef8460517430c430d54 |
class RadauIIA5: <NEW_LINE> <INDENT> A = array([[(88. - 7*sqrt(6))/360. , (296. - 169*sqrt(6))/1800. , (-2. + 3*sqrt(6))/225.], [(296. + 169*sqrt(6))/1800. , (88. + 7*sqrt(6))/360. , (-2. - 3*sqrt(6))/225.], [(16. - sqrt(6))/36. , (16. + sqrt(6))/36. , 1./9]]) <NEW_LINE> b = a... | IRK, based on Radau (right) quadrature. | 62598ef8498bea3a75a563ff |
class ImportExportData(BaseProcessor): <NEW_LINE> <INDENT> def __init__(self, collection_loc, action_name, converter, on_collection): <NEW_LINE> <INDENT> self.on_collection = on_collection <NEW_LINE> self.converter = converter if on_collection else converter.converter | Base processor used for serialization purposes.
It uses the Serializer classes provided by apimas and reads from
specification to construct them accordingly. | 62598ef8851cf427c66b6b92 |
class ScaleConfig(VegaLiteSchema): <NEW_LINE> <INDENT> _schema = {'$ref': '#/definitions/ScaleConfig'} <NEW_LINE> _rootschema = Root._schema <NEW_LINE> def __init__(self, bandSize=Undefined, barSizeRange=Undefined, fontSizeRange=Undefined, nominalColorRange=Undefined, opacity=Undefined, padding=Undefined, pointSizeRang... | ScaleConfig schema wrapper
Mapping(required=[])
Attributes
----------
bandSize : anyOf(BandSize, float)
Default band size for (1) ``y`` ordinal scale, and (2) ``x`` ordinal scale when the
mark is not ``text``.
barSizeRange : List(float)
Default range for bar size scale
fontSizeRange : List(float)
De... | 62598ef866656f66f7d58cb1 |
class TwitterClient(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> consumer_key = 'deLSinBf8Ork6yE4rBiSHMmSn' <NEW_LINE> consumer_secret = 'eO3SRNv9voHtgnd9pPJNfVdC2VDG36oVhg4kfGf93YinC1Mzrn' <NEW_LINE> access_token = '3301432286-xL3HhmCP8wKj0vwKvGjh5y94mgqAvq8bwUqUnvL' <NEW_LINE> access_token_sec... | Generic Twitter Class for sentiment analysis. | 62598ef823849d37ff84f98a |
class Detector2D(Detector, metaclass=ABCMeta): <NEW_LINE> <INDENT> @abstractproperty <NEW_LINE> def parameters(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractproperty <NEW_LINE> def class_name(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractproperty <NEW_LINE> def central_beam(self): <NEW_LIN... | abstract base class for Detectors
| 62598ef8d268445f26638ff5 |
class PollingPlaces(models.Model): <NEW_LINE> <INDENT> old_id = models.IntegerField(null=True) <NEW_LINE> election = models.ForeignKey(Elections, on_delete=models.PROTECT) <NEW_LINE> noms = models.OneToOneField(PollingPlaceNoms, on_delete=models.PROTECT, null=True, related_name="polling_place") <NEW_LINE> geom = models... | Our information about each polling place sauced from the relevant Electoral Commission. | 62598ef8dc8b845886d51e92 |
class USNPlugin(Plugin): <NEW_LINE> <INDENT> _plugin_properties = { 'cn' : 'USN', 'nsslapd-pluginEnabled': 'off', 'nsslapd-pluginPath': 'libusn-plugin', 'nsslapd-pluginInitfunc': 'usn_init', 'nsslapd-pluginType': 'object', 'nsslapd-pluginbetxn': 'on', 'nsslapd-plugin-depends-on-type': 'database', 'nsslapd-pluginId': 'U... | A single instance of USN (Update Sequence Number) plugin entry
:param instance: An instance
:type instance: lib389.DirSrv
:param dn: Entry DN
:type dn: str | 62598ef830bbd72246468502 |
class UpgradingSessionAuthenticationPolicy(SessionAuthenticationPolicy): <NEW_LINE> <INDENT> def remember(self, request, user_id, **kwargs): <NEW_LINE> <INDENT> request.session.elevate_privilege(True) <NEW_LINE> return super(UpgradingSessionAuthenticationPolicy, self).remember( request, user_id, **kwargs) <NEW_LINE> <D... | A session authentication policy that tells the underlying beaker session
whenever the user logs in or out. Allows to have different cookie policies | 62598ef85fcc89381b26558f |
class V1beta1SelfSubjectAccessReviewSpec(object): <NEW_LINE> <INDENT> openapi_types = { 'non_resource_attributes': 'V1beta1NonResourceAttributes', 'resource_attributes': 'V1beta1ResourceAttributes' } <NEW_LINE> attribute_map = { 'non_resource_attributes': 'nonResourceAttributes', 'resource_attributes': 'resourceAttribu... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 62598ef8009cb60464cffe1d |
class Cover(models.Model): <NEW_LINE> <INDENT> x = models.IntegerField(verbose_name='X坐标') <NEW_LINE> y = models.IntegerField(verbose_name='Y坐标') <NEW_LINE> font_size = models.IntegerField(verbose_name='字体大小', default=24, null=True, blank=True) <NEW_LINE> color = models.CharField(max_length=12, verbose_name='颜色', defau... | 封面 | 62598ef8e1aae11d1e7cdca8 |
class TestLeMasterArgumentParser(TestCase): <NEW_LINE> <INDENT> @patch('argparse._sys.argv', ['is7dtfbs8dfsdbuf', '--master-id', '823746']) <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.parser = load_entry_point( 'lemaster', 'le.parsers', 'le_master_parser') <NEW_LINE> <DEDENT> def test_parsers_type(self): <NEW_... | Test the behavior of the argument parser declared in lemaster. | 62598ef8377c676e912f61c9 |
class ConvolutionalSequence(Sequence, Initializable, Feedforward): <NEW_LINE> <INDENT> @lazy(allocation=['num_channels']) <NEW_LINE> def __init__(self, layers, num_channels, batch_size=None, image_size=None, **kwargs): <NEW_LINE> <INDENT> self.layers = layers <NEW_LINE> self.image_size = image_size <NEW_LINE> self.num_... | A sequence of convolutional operations.
Parameters
----------
layers : list
List of convolutional bricks (i.e. :class:`ConvolutionalActivation`
or :class:`ConvolutionalLayer`)
num_channels : int
Number of input channels in the image. For the first layer this is
normally 1 for grayscale images and 3 for... | 62598ef83d592f4c4edb97bb |
class SingleObject(APIObject): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def get(klass): <NEW_LINE> <INDENT> r = klass.quanta._get(klass.get_route()) <NEW_LINE> return klass(**r[klass.DICT_KEY]) <NEW_LINE> <DEDENT> def update(self, **kwargs): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> r = self.quanta._put(self.get_... | This class overload APIObject to provide a way to deal with single objects | 62598ef899cbb53fe682f77b |
class FtpStatusCode(Enum,IComparable,IFormattable,IConvertible): <NEW_LINE> <INDENT> def __eq__(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __format__(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __ge__(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __gt__(self,*args): ... | Specifies the status codes returned for a File Transfer Protocol (FTP) operation.
enum FtpStatusCode,values: AccountNeeded (532),ActionAbortedLocalProcessingError (451),ActionAbortedUnknownPageType (551),ActionNotTakenFilenameNotAllowed (553),ActionNotTakenFileUnavailable (550),ActionNotTakenFileUnavailableOrBusy (4... | 62598ef871ff763f4b5e602e |
class ACC_01(nn.Module): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> <DEDENT> def forward(self, output, target, mask=None): <NEW_LINE> <INDENT> flow = target['flow'] <NEW_LINE> flow_pred = output['flow'] <NEW_LINE> flow = flow.detach().cpu().numpy() <NEW_LINE> flow_pred = f... | The accuracy
| 62598ef8d486a94d0ba2a896 |
class Checkbox(Widget, BinBaselineCalculator): <NEW_LINE> <INDENT> def __init__(self, text=None, bold=False): <NEW_LINE> <INDENT> Widget.__init__(self) <NEW_LINE> BinBaselineCalculator.__init__(self) <NEW_LINE> if text is None: <NEW_LINE> <INDENT> text = '' <NEW_LINE> <DEDENT> self.set_widget(gtk.CheckButton()) <NEW_LI... | Widget that the user can toggle on or off. | 62598ef8aad79263cf42d0dc |
class BasePasswordHasher(metaclass=ABCMeta): <NEW_LINE> <INDENT> algorithm = None <NEW_LINE> def init_app(self, app): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def check_password(self, password, hashed_password): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def h... | Base class for the password hashers. | 62598ef8851cf427c66b6b94 |
class GoldsteinPrice(TestProblem): <NEW_LINE> <INDENT> def __init__(self, phenome_preprocessor=None, **kwargs): <NEW_LINE> <INDENT> self.num_variables = 2 <NEW_LINE> self._min_bounds = [-2.0] * self.num_variables <NEW_LINE> self._max_bounds = [2.0] * self.num_variables <NEW_LINE> bounds = (self.min_bounds, self.max_bou... | A test problem by Goldstein and Price.
The search space is :math:`[-2, 2] \times [-2, 2]`. | 62598ef866656f66f7d58cb3 |
class RubyCheckBuildArchitecture(RubyCheckBase): <NEW_LINE> <INDENT> def __init__(self, base): <NEW_LINE> <INDENT> RubyCheckBase.__init__(self, base) <NEW_LINE> self.url = 'https://fedoraproject.org/wiki/Packaging:Guidelines' '#Architecture_Support' <NEW_LINE> self.text = 'Pure Ruby package must be bu... | Check if package is noarch | 62598ef856ac1b37e6300aba |
class NotifyPubSubMessage(AdminService): <NEW_LINE> <INDENT> class SimpleIO(AdminSIO): <NEW_LINE> <INDENT> input_required = (AsIs('pub_client_id'), 'channel_name', AsIs('request')) <NEW_LINE> output_optional = (AsIs('r'),) <NEW_LINE> response_elem = 'r' <NEW_LINE> <DEDENT> def handle(self): <NEW_LINE> <INDENT> req = se... | Notifies a WebSocket client of new messages available.
| 62598ef8dc8b845886d51e94 |
class TestV1EnvVarSource(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 testV1EnvVarSource(self): <NEW_LINE> <INDENT> pass | V1EnvVarSource unit test stubs | 62598ef810dbd63aa1c6f44a |
class huffman(object): <NEW_LINE> <INDENT> def __init__(self, vocabulary, vector_length=15000, ): <NEW_LINE> <INDENT> self.root = None <NEW_LINE> self.vector_length = vector_length <NEW_LINE> self.vocabulary = list(vocabulary.values()) <NEW_LINE> node_list = [huffman_node(x['word'], x['possibility'], True) for x in sel... | huffman 有哈夫曼编码、向量、单词、左边、右边 | 62598ef8aad79263cf42d0dd |
class Businesses(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=100) <NEW_LINE> business_type = models.ForeignKey(BusinessType, on_delete=models.SET_NULL, null=True) <NEW_LINE> website = models.URLField(blank=True, null=True) <NEW_LINE> yelp_page = models.URLField(blank=True, null=True) <NEW_LINE... | Contain information for individual businesses registered with Cash Only | 62598ef84527f215b58e87d0 |
class SimpleTestLayer(PloneSandboxLayer): <NEW_LINE> <INDENT> defaultBases = (PLONE_FIXTURE,) <NEW_LINE> def setUpZope(self, app, configurationContext): <NEW_LINE> <INDENT> super(SimpleTestLayer, self).setUpZope(app, configurationContext) <NEW_LINE> import Products.TextIndexNG3 <NEW_LINE> import bika.lims <NEW_LINE> im... | Setup Plone with installed AddOn only
| 62598ef832920d7e50bc48fd |
class BlueBeetle(): <NEW_LINE> <INDENT> def choose_me(self): <NEW_LINE> <INDENT> auto.keyDown("left") <NEW_LINE> time.sleep(0.3) <NEW_LINE> auto.keyUp("left") <NEW_LINE> time.sleep(0.5) <NEW_LINE> auto.keyDown("left") <NEW_LINE> time.sleep(0.3) <NEW_LINE> auto.keyUp("left") <NEW_LINE> time.sleep(0.5) <NEW_LINE> auto.ke... | Classe para o personagem Blue Beetle. | 62598ef85fc7496912d476da |
class Cosine1d(Linear): <NEW_LINE> <INDENT> def __init__(self, in_features: int, out_features: int, eps=1e-05) -> None: <NEW_LINE> <INDENT> super(Cosine1d, self).__init__(in_features=in_features, out_features=out_features, bias=False) <NEW_LINE> self.eps = eps <NEW_LINE> <DEDENT> def forward(self, input: Tensor) -> Ten... | Computes the cosine similarity between rows of the weight matrix
and the incoming data | 62598ef84a966d76dd5ed7a8 |
class ImageDataset(Dataset): <NEW_LINE> <INDENT> def __init__(self, X_data, include_target, u=0.5, X_transform=None): <NEW_LINE> <INDENT> self.X_data = X_data <NEW_LINE> self.include_target = include_target <NEW_LINE> self.u = u <NEW_LINE> self.X_transform = X_transform <NEW_LINE> <DEDENT> def __getitem__(self, index):... | A pytorch Dataset for the data.
Args:
X_data (DataFrame): Pandas df of the prepared data.
include_target (bool): True if train and False if test.
u (float): Arg in X_transform functions indication probability of
performing the transformation(s).
X_transform (list): List of image transformation ... | 62598ef8a05bb46b38489142 |
class YoutubeDLClient(): <NEW_LINE> <INDENT> def __init__(self, ydl_opts): <NEW_LINE> <INDENT> ydl_opts.update({'logger': self.MyLogger()}) <NEW_LINE> ydl_opts.update({'progress_hooks': [self.my_hook]}) <NEW_LINE> self.ydl_opts = ydl_opts <NEW_LINE> self.ydl = youtube_dl.YoutubeDL(ydl_opts) <NEW_LINE> <DEDENT> class My... | docstring for YoutubeDLClient | 62598ef8e1aae11d1e7cdca9 |
class itkVectorIndexSelectionCastImageFilterVIUS3IUS3_Superclass(itkInPlaceImageFilterBPython.itkInPlaceImageFilterVIUS3IUS3): <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(... | Proxy of C++ itkVectorIndexSelectionCastImageFilterVIUS3IUS3_Superclass class | 62598ef8377c676e912f61ca |
class SectorDetail(object): <NEW_LINE> <INDENT> def __init__(self, id=None, name=None, select_seats=None, available=None, has_tickets=None): <NEW_LINE> <INDENT> self.swagger_types = { 'id': 'str', 'name': 'str', 'select_seats': 'str', 'available': 'int', 'has_tickets': 'int' } <NEW_LINE> self.attribute_map = { 'id': 'i... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598ef8be383301e02520af |
class HandlerProgress(object): <NEW_LINE> <INDENT> PENDING = 'pending' <NEW_LINE> STARTED = 'in-progress' <NEW_LINE> FINISHED = 'finished' <NEW_LINE> def __init__(self, conduit): <NEW_LINE> <INDENT> self.conduit = conduit <NEW_LINE> self.state = self.PENDING <NEW_LINE> self.progress = [] <NEW_LINE> <DEDENT> def started... | The nodes handler progress report.
Extends progress report base class to provide integration
with the handler conduit. | 62598ef81f5feb6acb161523 |
@simple_serialization <NEW_LINE> class VotingSystem: <NEW_LINE> <INDENT> def __init__(self, name: str, evaluator: votelib.evaluate.Evaluator): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.evaluator = evaluator <NEW_LINE> <DEDENT> def evaluate(self, *args, **kwargs): <NEW_LINE> <INDENT> return self.evaluator.eva... | A named voting system. Wraps an election evaluator.
:param name: Name of the system; usually mainly includes the body or
position to be elected.
:param evaluator: Evaluator representing the system. Can be combined with
the validator and nominator by machinery in the :mod:`evaluate`
subpackage. | 62598ef83346ee7daa336acf |
class GlobalCsmSkuDescription(Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'tier': {'key': 'tier', 'type': 'str'}, 'capacity': {'key': 'capacity', 'type': 'SkuCapacity'}, 'locations': {'key': 'locations', 'type': '[str]'}, 'capabilities': {'key': 'capabilities', 'type': '[Capab... | A Global SKU Description.
:param name: Name of the resource SKU.
:type name: str
:param tier: Service Tier of the resource SKU.
:type tier: str
:param capacity: Min, max, and default scale values of the SKU.
:type capacity: :class:`SkuCapacity <azure.mgmt.web.models.SkuCapacity>`
:param locations: Locations of the SKU... | 62598ef857b8e32f5250756b |
class AnacondaFindUsages(sublime_plugin.TextCommand): <NEW_LINE> <INDENT> def run(self, edit: sublime_plugin.sublime.Edit) -> None: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> location = active_view().rowcol(self.view.sel()[0].begin()) <NEW_LINE> data = prepare_send_data(location, 'usages', 'jedi') <NEW_LINE> Worker()... | Jedi find usages for Sublime Text
| 62598ef8460517430c430d58 |
class ZernikeRadialFilter(ZernikeFilter): <NEW_LINE> <INDENT> @ExpansionFilter.order.setter <NEW_LINE> def order(self, order): <NEW_LINE> <INDENT> ExpansionFilter.order.__set__(self, order) <NEW_LINE> self.bins = [f'Z{n},0' for n in range(0, order+1, 2)] | Score the :math:`m = 0` (radial variation only) Zernike moments up to
specified order.
The Zernike polynomials are defined the same as in :class:`ZernikeFilter`.
.. math::
Z_n^{0}(\rho, \theta) = R_n^{0}(\rho)
where the radial polynomials are
.. math::
R_n^{0}(\rho) = \sum\limits_{k=0}^{n/2} \frac{(-1)^k (... | 62598ef867a9b606de54489f |
class DataUnpackingError(MessageSystemError): <NEW_LINE> <INDENT> def __init__(self, data='', reason=''): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> self.reason = reason <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "Error serializing '%s' due to reason: '%s'" % (self.data, self.reason) | problem deserializing packet data
stores the label and reason in ``label`` and ``reason`` attributes | 62598ef844b2445a339b5dd5 |
class PyErr_OccurredNode(ExprNode): <NEW_LINE> <INDENT> _fields = ['node'] <NEW_LINE> def __init__(self, node): <NEW_LINE> <INDENT> self.node = node <NEW_LINE> self.variable = node.variable <NEW_LINE> self.type = node.type | Check for a set Python exception using PyErr_Occurred().
Can be set any time after type inference. This node is resolved during
late specialization. | 62598ef8a8370b77170eecb4 |
class AltitudeAtFlapExtensionWithGearDownSelected(KeyPointValueNode): <NEW_LINE> <INDENT> NAME_FORMAT = 'Altitude At Flap %(flap)s Extension With Gear Down Selected' <NEW_LINE> NAME_VALUES = NAME_VALUES_LEVER <NEW_LINE> units = ut.FT <NEW_LINE> @classmethod <NEW_LINE> def can_operate(cls, available): <NEW_LINE> <INDENT... | Altitude at flap extensions while gear is selected down (may be in
transit) and aircraft is airborne. | 62598ef8d268445f26638ff7 |
class bag_testbenches_kh__cmp_overdrive_recovery_tb(Module): <NEW_LINE> <INDENT> def __init__(self, bag_config, parent=None, prj=None, **kwargs): <NEW_LINE> <INDENT> Module.__init__(self, bag_config, yaml_file, parent=parent, prj=prj, **kwargs) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def get_params_info(cls): <NEW_... | Module for Overdrive Recovery test for comparators.
TO use it for different architectures a wrapper should be built (i.e. DTSA_dsn_wrapper.py) | 62598ef8adb09d7d5dc08e8f |
class TitleA(TitleBox): <NEW_LINE> <INDENT> def __init__(self, doc, locale, name_displayer): <NEW_LINE> <INDENT> self._nd = name_displayer <NEW_LINE> TitleBox.__init__(self, doc, "AC2-Title-box") <NEW_LINE> self._ = locale.translation.sgettext <NEW_LINE> <DEDENT> def calc_title(self, center): <NEW_LINE> <INDENT> name =... | Title class for the report | 62598ef863b5f9789fe83a2f |
class Device(DeviceWithEncryptionSettings, DeviceDeclarativeBase): <NEW_LINE> <INDENT> __tablename__ = "devices" | A device with database capability and refresh event to call init on reloads
Passwords by default will be encrypted | 62598ef899fddb7c1ca6226b |
class SplitPrintThread(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, name, msg, lock): <NEW_LINE> <INDENT> super(SplitPrintThread, self).__init__(name=name) <NEW_LINE> self.__msg = msg.split(' ') <NEW_LINE> self.__lock = lock <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> with self.__lock: <NEW_LINE... | Prints individual words of the message | 62598ef8ff9c53063f518f32 |
class WinInstallMissingDependency(Exception): <NEW_LINE> <INDENT> pass | raised when a dependency is missing | 62598ef8236d856c2adc8881 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.