code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class Player2(pygame.sprite.Sprite): <NEW_LINE> <INDENT> global RESETEVENT, time, player_sizex, player_sizey, blue_tank <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(Player2,self).__init__() <NEW_LINE> self.image = blue_tank <NEW_LINE> self.rect = self.image.get_rect() <NEW_LINE> <DEDENT> def update(self): <...
This class represents the Blue Player.
62598f788a43f66fc4bf1a9f
class Lexer: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.tokens = [] <NEW_LINE> <DEDENT> def lex(self, text) -> bool: <NEW_LINE> <INDENT> self.tokens = [] <NEW_LINE> def token(type: T_Type, val): <NEW_LINE> <INDENT> self.tokens.append(Token(type, val)) <NEW_LINE> <DEDENT> txt = text.split() <NEW_LI...
Lexes and tokenizes plaintext source.
62598f7866673b3332c2fce3
class SqlUserDefinedFunctionListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'value': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[SqlUserDefinedFunctionGetResults]'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(SqlUserDefi...
The List operation response, that contains the userDefinedFunctions and their properties. Variables are only populated by the server, and will be ignored when sending a request. :ivar value: List of userDefinedFunctions and their properties. :vartype value: list[~azure.mgmt.cosmosdb.models.SqlUserDefinedFunctionGetRe...
62598f780a366e3fb87dc2ea
class Properties(object): <NEW_LINE> <INDENT> _data = {} <NEW_LINE> _attr_name_map = {} <NEW_LINE> _ags_name_map = {} <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.__dict__['_data'] = {} <NEW_LINE> self.__dict__['_attr_name_map'] = {} <NEW_LINE> self.__dict__['_ags_name_map'] = {} <NEW_LINE> for k, ...
Base class for organizing and serializing service/server/description properties.
62598f7807d97122c42165c3
class Mode(object): <NEW_LINE> <INDENT> _all_known_modes = [] <NEW_LINE> def __init__(self, half_steps_pattern, names, shorthand=None, ionian_interval=None): <NEW_LINE> <INDENT> if not half_steps_pattern: <NEW_LINE> <INDENT> raise ValueError('cannot instantiate a Mode with no half_steps_pattern') <NEW_LINE> <DEDENT> se...
Class representing a specific mode which can be rooted at any note .. doctests :: >>> Mode([], []) # doctest: +ELLIPSIS Traceback (most recent call last): ... ValueError: cannot instantiate a Mode with no half_steps_pattern >>> Mode([2, 2], []) # doctest: +ELLIPSIS Traceback (most recent...
62598f78287bf620b62714d8
class Transform: <NEW_LINE> <INDENT> def __init__(self, R=None, t=None): <NEW_LINE> <INDENT> self.R = R if R is not None else np.identity(2) <NEW_LINE> self.t = t if t is not None else np.zeros(2) <NEW_LINE> <DEDENT> def translation(self): <NEW_LINE> <INDENT> x, y = self.t.flat <NEW_LINE> return x, y <NEW_LINE> <DEDENT...
A 4-parameter similarity transform. The forward transform, (x0, y0) -> (x1, y1) - x1 = a0 + a1*x0 - b1*y0 y1 = b0 + b1*x0 + a1*y0 The inverse transform, (x1, y1) -> (x0, y0) - x0 = a2*(x1 - a0) - b2*(y1 - b0) y0 = b2*(x1 - a0) + a2*(y1 - b0) where - a2 = a1 / (a1**2 + b1**2) b2 = -b1 / (a1**2 + b1**2) Transform par...
62598f7838b623060ffa89ba
class BatchStepper: <NEW_LINE> <INDENT> def __init__( self, env_class, agent_class, network_fn, n_envs, output_dir ): <NEW_LINE> <INDENT> del env_class <NEW_LINE> del agent_class <NEW_LINE> del network_fn <NEW_LINE> del n_envs <NEW_LINE> del output_dir <NEW_LINE> <DEDENT> def run_episode_batch(self, params, **solve_kwa...
Base class for running a batch of steppers. Abstracts out local/remote prediction using a Network.
62598f78bde94217f37072f7
class ConversionException(Exception): <NEW_LINE> <INDENT> pass
Configuration Exception
62598f78d10714528d69d7ef
class ServiceManager: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.services = {} <NEW_LINE> <DEDENT> def __getattr__(self, name): <NEW_LINE> <INDENT> service = self.services.get(name) <NEW_LINE> if service: <NEW_LINE> <INDENT> return service() <NEW_LINE> <DEDENT> raise AttributeError("attribute {} n...
Class containing the server's services. Each service is represented by a class. Each time a service is called (see __getattr__), an instance of this service is created and will exist as long as it is needed. The services are also stored in the 'services' dictionary ({name: class}). Note that: >>> manager.service # ...
62598f78fb3f5b602db47e41
class FilesScanner(object): <NEW_LINE> <INDENT> def __init__(self, files_path, postfix=None): <NEW_LINE> <INDENT> self.files_path = files_path <NEW_LINE> files = [] <NEW_LINE> if os.path.isfile(files_path): <NEW_LINE> <INDENT> if postfix: <NEW_LINE> <INDENT> if files_path.endswith(postfix): <NEW_LINE> <INDENT> files.ap...
获取文件列表工具类
62598f78507cdc57c63a46ac
class TestSuiteRunner(object): <NEW_LINE> <INDENT> def __init__(self, project): <NEW_LINE> <INDENT> self.project = project <NEW_LINE> self._patterns = list() <NEW_LINE> self.num_jobs = 1 <NEW_LINE> self.cwd = os.getcwd() <NEW_LINE> self.env = None <NEW_LINE> self.verbose = False <NEW_LINE> self.perf = False <NEW_LINE> ...
Interface for a class able to run a test suite
62598f78b830903b9686e103
class UNet(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels, num_hidden_features,n_resblocks,num_dilated_convs, dropout_min=0, dropout_max=0, gated=False, padding=1, kernel_size=3,group_norm=32,convdilation=1,augautoenc=None): <NEW_LINE> <INDENT> super(UNet, self).__init__() <NEW_LINE> self....
U-Net model with dynamic number of layers, Residual Blocks, Dilated Convolutions, Dropout and Group Normalization
62598f78a4f1c619b294df0d
class EndActiveTenderingAction(BaseAction): <NEW_LINE> <INDENT> validators = [] <NEW_LINE> @classmethod <NEW_LINE> def demand(cls, request, context): <NEW_LINE> <INDENT> status = context.status <NEW_LINE> tender_period = context.tenderPeriod <NEW_LINE> now = get_now() <NEW_LINE> if status == 'active.tendering' and now ...
Chronograph action trigger when chronograph come in end of 'active.tendering'
62598f7829b78933be269d6d
class ScreenTable(object): <NEW_LINE> <INDENT> def __init__(self, emulator, top_row, bottom_row, status_row=24, status_found='FIND SUCCESSFUL', status_end='LAST PAGE', row_processor=None): <NEW_LINE> <INDENT> self.emulator = emulator <NEW_LINE> self.top_row = top_row <NEW_LINE> self.bottom_row = bottom_row <NEW_LINE> s...
Screen Table Read a 3270 screen as a table of search results. Create a generator that reads it page-by-page.
62598f78ac7a0e7691f71e3a
class ADC0832: <NEW_LINE> <INDENT> def __init__(self, clk_pin = 16, data_pin = 22, csel_pin = 18): <NEW_LINE> <INDENT> self.clk_pin = clk_pin <NEW_LINE> self.data_pin = data_pin <NEW_LINE> self.csel_pin = csel_pin <NEW_LINE> self.clk_state = False <NEW_LINE> GPIO.setup(clk_pin, GPIO.OUT, initial=GPIO.LOW) <NEW_LINE> GP...
Extremely simple class for reading from an ADC0832 on a Raspberry Pi
62598f786e29344779afff83
class SimCam(CCDCam): <NEW_LINE> <INDENT> def __init__(self, host="localhost", port=7624): <NEW_LINE> <INDENT> super(SimCam, self).__init__(host, port, driver="CCD Simulator") <NEW_LINE> self.observer = "INDI CCD Simulator" <NEW_LINE> self.camera_name = "SimCam" <NEW_LINE> <DEDENT> @property <NEW_LINE> def cooling_powe...
The INDI CCD simulator device does not have a vector for cooling power. Set this sub-class up to work around that.
62598f783eb6a72ae0389f64
class ReportForm(forms.Form): <NEW_LINE> <INDENT> cafe = forms.ChoiceField( choices=get_cafe_options, label=u"Кафе" ) <NEW_LINE> date_from = forms.DateField( widget=forms.DateInput(), label=u"от", input_formats=[get_input_date_format()] ) <NEW_LINE> date_to = forms.DateField( widget=forms.DateInput(), label=u"до", inpu...
Форма для запроса отчёта
62598f7807d97122c42165c4
class CIListener(object): <NEW_LINE> <INDENT> def on_error(self, headers, message): <NEW_LINE> <INDENT> LOGGER.info("=" * 72) <NEW_LINE> LOGGER.error('RECEIVED AN ERROR.') <NEW_LINE> LOGGER.error('Message headers:\n%s', headers) <NEW_LINE> LOGGER.error('Message body:\n%s', message) <NEW_LINE> <DEDENT> def on_message(se...
CIListener handler Class
62598f781d351010ab8f3462
class BadFunctionCallException (LogicException): <NEW_LINE> <INDENT> pass
Создается исключение, если обратный вызов относится к неопределенной функции или если некоторые аргументы отсутствуют.
62598f78287bf620b62714da
class ExifPhotoDiscoverer(PhotoDiscovery): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def _photo_from_path(cls, path) -> Optional[Photo]: <NEW_LINE> <INDENT> photo = Photo(path) <NEW_LINE> exif_parser = ExifParser(path, Local()) <NEW_LINE> photo_metadata: PhotoMetadata = cast(PhotoMetadata, exif_parser.next_item_with_...
This class will discover all photo files having exif data
62598f78287bf620b62714db
class StashMixin: <NEW_LINE> <INDENT> ATTRS = ['iter', 'showif'] <NEW_LINE> def _init(self): <NEW_LINE> <INDENT> self.itermax = None <NEW_LINE> self.iterstart = 0 <NEW_LINE> self.subtree = None <NEW_LINE> self.subwidgets = [] <NEW_LINE> <DEDENT> def _append_children(self): <NEW_LINE> <INDENT> if not any([self.etree.att...
Mixin to stash contents aside for loops or if statements.
62598f78004d5f362081ec8c
@Role.action_registry.register('set-policy') <NEW_LINE> class SetPolicy(BaseAction): <NEW_LINE> <INDENT> schema = type_schema( 'set-policy', state={'enum': ['attached', 'detached']}, arn={'type': 'string'}, required=['state', 'arn']) <NEW_LINE> permissions = ('iam:AttachRolePolicy', 'iam:DetachRolePolicy',) <NEW_LINE> ...
Set a specific IAM policy as attached or detached on a role. You will identify the policy by its arn. Returns a list of roles modified by the action. For example, if you want to automatically attach a policy to all roles which don't have it... :example: .. code-block:: yaml - name: iam-attach-role-policy ...
62598f78a4f1c619b294df0f
class NoMethodFoundForMatchingHeaderValueError(Error): <NEW_LINE> <INDENT> pass
Raised when a :py:class:`HeaderValueMatcher` has no registered method to match the header value.
62598f788da39b475be02b06
class ConfigurationMetrics(Model): <NEW_LINE> <INDENT> _attribute_map = { "results": {"key": "results", "type": "{long}"}, "queries": {"key": "queries", "type": "{str}"}, } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(ConfigurationMetrics, self).__init__(**kwargs) <NEW_LINE> self.results = kwargs....
The configuration metrics for Iot Hub devices and modules. :param results: The results of the metrics collection queries. :type results: dict[str, long] :param queries: The key-value pairs with queries and their identifier. :type queries: dict[str, str]
62598f787b25080760ed6dc3
class LoginPage(Base): <NEW_LINE> <INDENT> user_loc=("xpath","//input[@placeholder='账号']") <NEW_LINE> psw_loc=("xpath","//input[@type='password']") <NEW_LINE> sub_loc=("xpath","//span[contains(text(),'登录')]") <NEW_LINE> zhanghao_loc=("xpath","//*[@id='app']/div/div/layout/div/headbar/header/div/div[2]/div/div[3]/dropdo...
登录页面
62598f7882261d6c5272fb67
class TuringMachine: <NEW_LINE> <INDENT> def __init__(self, puzzle_input): <NEW_LINE> <INDENT> self.curr_state = '' <NEW_LINE> self.steps = 0 <NEW_LINE> self.transitions = self._parse_transitions(puzzle_input) <NEW_LINE> self.tape = defaultdict(int) <NEW_LINE> <DEDENT> def _parse_transitions(self, puzzle_input): <NEW_L...
The awesome turing machine.
62598f78dc8b845886d52ed8
class ResourceAgentState(BaseEnum): <NEW_LINE> <INDENT> POWERED_DOWN = 'RESOURCE_AGENT_STATE_POWERED_DOWN' <NEW_LINE> UNINITIALIZED = 'RESOURCE_AGENT_STATE_UNINITIALIZED' <NEW_LINE> INACTIVE = 'RESOURCE_AGENT_STATE_INACTIVE' <NEW_LINE> IDLE = 'RESOURCE_AGENT_STATE_IDLE' <NEW_LINE> STOPPED = 'RESOURCE_AGENT_STATE_STOPPE...
Resource agent common states.
62598f7823e79379d538be1d
class NetworkPreferences(Plugin): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.set_name("Network Preferences") <NEW_LINE> self.set_description("Parse data from preferences.plist") <NEW_LINE> self.set_data_file("preferences.plist") <NEW_LINE> self.set_output_file("Networ...
Plugin to parse /Library/Preferences/SystemConfiguration/preferences.plist
62598f78ec188e330fdf81c4
class JIRA_TABLE_KEYS(object): <NEW_LINE> <INDENT> KEY = "Key" <NEW_LINE> SUMMARY = "Summary" <NEW_LINE> ISSUE_TYPE = "Issue Type" <NEW_LINE> PRIORITY = "Priority" <NEW_LINE> STATUS = "Status" <NEW_LINE> ALL = [KEY, SUMMARY, ISSUE_TYPE, PRIORITY, STATUS]
Keys that identify columns in the Jira column return
62598f788e05c05ec3f6ead8
class RLfe(RPackage): <NEW_LINE> <INDENT> homepage = "https://cloud.r-project.org/package=lfe" <NEW_LINE> url = "https://cloud.r-project.org/src/contrib/lfe_2.8-5.tar.gz" <NEW_LINE> list_url = "https://cloud.r-project.org/src/contrib/Archive/lfe" <NEW_LINE> version('2.8-6', sha256='bf5fd362e9722e871a5236f30da562c4...
Linear Group Fixed Effects Transforms away factors with many levels prior to doing an OLS. Useful for estimating linear models with multiple group fixed effects, and for estimating linear models which uses factors with many levels as pure control variables. See Gaure (2013) <doi:10.1016/j.csda.2013.03.024> Includes su...
62598f78cad5886f8bdc4c47
class Caracter(Expr): <NEW_LINE> <INDENT> def __init__(self,value,numeroLinea): <NEW_LINE> <INDENT> self.type = "char" <NEW_LINE> self.value = value <NEW_LINE> self.numeroLinea = numeroLinea <NEW_LINE> <DEDENT> def evaluar(self,VariableRobot,tablaSimbolos): <NEW_LINE> <INDENT> resultado = self.value <NEW_LINE> return r...
Nodo que almacena los caracteres del programa.
62598f7815baa723494618a4
class Handler(ContentHandler): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.nodes = [Document()] <NEW_LINE> <DEDENT> def startElement(self, name, attrs): <NEW_LINE> <INDENT> top = self.top() <NEW_LINE> node = Element(unicode(name)) <NEW_LINE> for a in attrs.getNames(): <NEW_LINE> <INDENT> n = unicod...
SAX handler.
62598f781d351010ab8f3464
class TigerQueryError(Exception): <NEW_LINE> <INDENT> pass
The base class of all TIGER query errors.
62598f789b70327d1c57e6d5
class LastFragmentType(Enum): <NEW_LINE> <INDENT> Yes = 48 <NEW_LINE> No = 49 <NEW_LINE> def __int__(self): <NEW_LINE> <INDENT> return self.value <NEW_LINE> <DEDENT> def __char__(self): <NEW_LINE> <INDENT> return chr(self.value)
最后分片标志类型
62598f78d99f1b3c44d04fd2
@destructiveTest <NEW_LINE> @skipIf(not salt.utils.path.which("dockerd"), "Docker not installed") <NEW_LINE> @skipIf(not HAS_KAZOO, "kazoo python library not installed") <NEW_LINE> class ZookeeperTestCase(ModuleCase, SaltReturnAssertsMixin): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <I...
Test zookeeper states
62598f78a4f1c619b294df10
class LanguageHandler(KeywordHandler,TaggingHandler): <NEW_LINE> <INDENT> keyword = "language|lang|lugha" <NEW_LINE> def help(self): <NEW_LINE> <INDENT> self.respond(config.Messages.LANGUAGE_HELP) <NEW_LINE> <DEDENT> def handle(self, text): <NEW_LINE> <INDENT> if self.msg.connection.contact is None: <NEW_LINE> <INDENT>...
Allow remote users to set their preferred language, by updating the ``language`` field of the Contact associated with their connection.
62598f7876d4e153a661c53b
class Session: <NEW_LINE> <INDENT> def __init__(self, oauth_token: str, oauth_token_secret: str, app_key: str = None, app_secret: str = None): <NEW_LINE> <INDENT> self._app_key = app_key or _api.get_app_key() <NEW_LINE> self._app_secret = app_secret or _api.get_app_secret() <NEW_LINE> self._oauth_token = oauth_token <N...
Twitter oAuth Driver.
62598f7850485f2cf55da895
class BinCreateUpdateSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model=Bin; <NEW_LINE> exclude=('author',); <NEW_LINE> <DEDENT> def validate(self,data): <NEW_LINE> <INDENT> public=data['public'] <NEW_LINE> private=data['private'] <NEW_LINE> shared=data['shared_with']; <N...
used to create update delete bins
62598f78fb3f5b602db47e43
class GBIF: <NEW_LINE> <INDENT> URL = "http://api.gbif.org/v1" <NEW_LINE> UUID_KEY = "key" <NEW_LINE> ID_FLD = "gbifID" <NEW_LINE> NAME_FLD = "scientificName" <NEW_LINE> TAXON_FLD = "taxonKey" <NEW_LINE> ACC_NAME_FLD = "acceptedScientificName" <NEW_LINE> ACC_TAXON_FLD = "acceptedTaxonKey" <NEW_LINE> STATE_FLD = "stateP...
Constants for GBIF DWCA fields, APIs, and their request and response objects.
62598f788da39b475be02b08
class QueryEmergencyStatus(_EmergencyLightingQueryCommand): <NEW_LINE> <INDENT> _cmdval = 0xfd <NEW_LINE> _response = QueryEmergencyStatusResponse
Return the Emergency Status information byte.
62598f7871ff763f4b5e7092
class Validator(GenericValidator): <NEW_LINE> <INDENT> check_char_mapping = { 0: 'W', 1: 'A', 2: 'B', 3: 'C', 4: 'D', 5: 'E', 6: 'F', 7: 'G', 8: 'H', 9: 'I', 10: 'J', 11: 'K', 12: 'L', 13: 'M', 14: 'N', 15: 'O', 16: 'P', 17: 'Q', 18: 'R', 19: 'S', 20: 'T', 21: 'U', 22: 'V' } <NEW_LINE> def __init__(self): <NEW_LINE> <I...
For rules see /docs/VIES-VAT Validation Routines-v15.0.doc
62598f780fa83653e46f4816
class ProdConfig(Config): <NEW_LINE> <INDENT> ENV = 'prod' <NEW_LINE> DEBUG = False <NEW_LINE> SQLALCHEMY_DATABASE_URI = os.environ.get('APP_DB', 'sqlite:///macro.db') <NEW_LINE> JWT_ACCESS_TOKEN_EXPIRES = timedelta(10 ** 6)
Production configuration.
62598f781f037a2d8b9e3a12
class TestAddCommonNameRouteWithDB: <NEW_LINE> <INDENT> def test_add_common_name_blanks(self, app, db): <NEW_LINE> <INDENT> idx = Index(name='Perennial Flower') <NEW_LINE> db.session.add(idx) <NEW_LINE> db.session.commit() <NEW_LINE> with app.test_client() as tc: <NEW_LINE> <INDENT> rv = tc.post(url_for('seeds.add_comm...
Test seeds.add_common_name.
62598f78d10714528d69d7f4
class TestErrorcode(unittest.TestCase): <NEW_LINE> <INDENT> def test_unknown(self): <NEW_LINE> <INDENT> e = Exception('pippo') <NEW_LINE> code = nem_exceptions.errorcode_from_exception(e) <NEW_LINE> self.assertEqual(99999, code) <NEW_LINE> <DEDENT> def test_errno110(self): <NEW_LINE> <INDENT> e = Exception('110') <NEW_...
Make sure that errorcode works for backwards compatibility
62598f788c3a8732951f5e75
@test.utils.override_settings(DEFCON_PLUGINS=DEFCON_PLUGINS) <NEW_LINE> class TestLoadPluginsCommand(test.TestCase): <NEW_LINE> <INDENT> def test_add_plugin(self): <NEW_LINE> <INDENT> out = StringIO() <NEW_LINE> self.addCleanup(out.close) <NEW_LINE> management.call_command('loadplugins', stdout=out) <NEW_LINE> plugin =...
Test the run plugins command.
62598f784e696a045264da92
class WarmupHandler(webapp.RequestHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> pass
Handles warm-up requests by doing nothing.
62598f788e05c05ec3f6ead9
class SpecimenCollection(fhirelement.FHIRElement): <NEW_LINE> <INDENT> resource_name = "SpecimenCollection" <NEW_LINE> def __init__(self, jsondict=None): <NEW_LINE> <INDENT> self.bodySiteCodeableConcept = None <NEW_LINE> self.bodySiteReference = None <NEW_LINE> self.collectedDateTime = None <NEW_LINE> self.collectedPer...
Collection details. Details concerning the specimen collection.
62598f7826068e7796d4c282
class verifyCertificate_result(object): <NEW_LINE> <INDENT> def __init__(self, success=None, e=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> self.e = e <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTranspo...
Attributes: - success - e
62598f7830c21e258be9812d
class GraphitePusher(object): <NEW_LINE> <INDENT> def __init__(self, host, port, prefix=None): <NEW_LINE> <INDENT> self.rules = [] <NEW_LINE> self.pruneRules = [] <NEW_LINE> self.prefix = prefix or gethostname().lower() <NEW_LINE> if self.prefix and self.prefix[-1] != '.': <NEW_LINE> <INDENT> self.prefix += '.' <NEW_LI...
A class that pushes all stat values to Graphite on-demand.
62598f7850485f2cf55da896
class Apex(object): <NEW_LINE> <INDENT> def __init__(self, ip_address, user='admin', passwd='1234'): <NEW_LINE> <INDENT> self.ip_address = ip_address <NEW_LINE> self.user = user <NEW_LINE> self.passwd = passwd <NEW_LINE> self.hostname = None <NEW_LINE> self.serial = None <NEW_LINE> self.timezone = None <NEW_LINE> self....
Class which abstracts the interaction with the Neptune Apex Aquacontroller.
62598f7850485f2cf55da897
class PropKB(KB): <NEW_LINE> <INDENT> def __init__(self, sentence=None): <NEW_LINE> <INDENT> self.clauses = [] <NEW_LINE> if sentence: <NEW_LINE> <INDENT> self.tell(sentence) <NEW_LINE> <DEDENT> <DEDENT> def tell(self, sentence): <NEW_LINE> <INDENT> self.clauses.extend(conjuncts(to_cnf(sentence))) <NEW_LINE> <DEDENT> d...
A KB for propositional logic. Inefficinent, with no indexing.
62598f7838b623060ffa89c0
class Grp60No140(base_tests.SimpleDataPlane): <NEW_LINE> <INDENT> def runTest(self): <NEW_LINE> <INDENT> logging.info("Running Grp60No140 Rx_O_Err test") <NEW_LINE> of_ports = config["port_map"].keys() <NEW_LINE> of_ports.sort() <NEW_LINE> self.assertTrue(len(of_ports) > 1, "Not enough ports for test") <NEW_LINE> rv = ...
Verify that rx_over_err counters in the Port_Stats reply increments in accordance with the number of with RX overrun
62598f786fece00bbaccb2b3
class RPCFSInterface(object): <NEW_LINE> <INDENT> def __init__(self,fs): <NEW_LINE> <INDENT> self.fs = fs <NEW_LINE> <DEDENT> def get_contents(self,path): <NEW_LINE> <INDENT> data = self.fs.getcontents(path) <NEW_LINE> return xmlrpclib.Binary(data) <NEW_LINE> <DEDENT> def set_contents(self,path,data): <NEW_LINE> <INDEN...
Wrapper to expose an FS via a XML-RPC compatible interface. The only real trick is using xmlrpclib.Binary objects to transport the contents of files.
62598f788a349b6b43685b6a
class MultiPreSelectCheckBoxWidget(MultiSelectWidget): <NEW_LINE> <INDENT> def __init__(self, field, request): <NEW_LINE> <INDENT> super(MultiPreSelectCheckBoxWidget, self).__init__( field, field.value_type.vocabulary, request ) <NEW_LINE> self.items = field.value_type.vocabulary.by_value.keys() <NEW_LINE> <DEDENT> def...
A multi select check box widget that is pre selected.
62598f78fb3f5b602db47e44
class SSLSocket(object): <NEW_LINE> <INDENT> def __init__(self, sock, certs, method=_DEFAULT_TLSSNI01_SSL_METHOD): <NEW_LINE> <INDENT> self.sock = sock <NEW_LINE> self.certs = certs <NEW_LINE> self.method = method <NEW_LINE> <DEDENT> def __getattr__(self, name): <NEW_LINE> <INDENT> return getattr(self.sock, name) <NEW_...
SSL wrapper for sockets. :ivar socket sock: Original wrapped socket. :ivar dict certs: Mapping from domain names (`bytes`) to `OpenSSL.crypto.X509`. :ivar method: See `OpenSSL.SSL.Context` for allowed values.
62598f7873bcbd0ca4bc9b76
class Command1601(eza2500_base.EZA2500CommandBase): <NEW_LINE> <INDENT> COMMAND = 31 <NEW_LINE> CMD_LEN = 0 <NEW_LINE> ACK_LEN = 2 <NEW_LINE> NAK_LEN = 2 <NEW_LINE> def __init__(self, device): <NEW_LINE> <INDENT> super(Command1601, self).__init__(device) <NEW_LINE> self.response = {} <NEW_LINE> <DEDENT> def pack_sendda...
EZA2500 16-1
62598f7815fb5d323ce7e651
class DistribStateImplicit(ImplicitComponent): <NEW_LINE> <INDENT> def setup(self): <NEW_LINE> <INDENT> self.add_input('a', val=10., units='m') <NEW_LINE> rank = self.comm.rank <NEW_LINE> GLOBAL_SIZE = 5 <NEW_LINE> sizes, offsets = evenly_distrib_idxs(self.comm.size, GLOBAL_SIZE) <NEW_LINE> self.add_output('states', sh...
This component is unusual in that it has a distributed variable 'states' that is not connected to any other variables in the model. The input 'a' sets the local values of 'states' and the output 'out_var' is the sum of all of the distributed values of 'states'.
62598f7871ff763f4b5e7094
class PitScoreSet(viewsets.ReadOnlyModelViewSet): <NEW_LINE> <INDENT> model = PitScoreWeight <NEW_LINE> filter_fields = ('score', 'value', 'questionText') <NEW_LINE> queryset = PitScoreWeight.objects.all().order_by('score','questionText') <NEW_LINE> serializer_class = serializers.PitScoreWeightSerializer
PitScoreWeight (Read only)
62598f786fece00bbaccb2b4
class Component(object): <NEW_LINE> <INDENT> def __init__(self, name=None, methodCount=None, locCount=None): <NEW_LINE> <INDENT> if name==None: <NEW_LINE> <INDENT> raise ValueError("Component.__init__: The Component needs a name") <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> if isinstance(name, basestring): <NEW_LINE>...
Class Component describe the properties of pieces of software. The informations that a component can have are: name, how many methods this component has and how many lines of code this component has.
62598f780fa83653e46f4818
class SensorSequence(Form): <NEW_LINE> <INDENT> def __init__(self,data,dims,name=""): <NEW_LINE> <INDENT> Form.__init__(self,data,dims,name) <NEW_LINE> self.data=data <NEW_LINE> self.name=name <NEW_LINE> <DEDENT> def averageOverTime(self,name=""): <NEW_LINE> <INDENT> return SensorValueSet(np.reducemean(self.data,axis=1...
Holds a (sensorCount,timesteps,parameterCount) matrix. A parameter sequence is a value that describes a sensor at a single time, like temperature at an instant.
62598f78baa26c4b54d4ebda
class GridWorldState(State): <NEW_LINE> <INDENT> def __init__(self, x, y): <NEW_LINE> <INDENT> State.__init__(self, data=[x, y]) <NEW_LINE> self.x = x <NEW_LINE> self.y = y <NEW_LINE> <DEDENT> def __hash__(self): <NEW_LINE> <INDENT> if len(str(self.x)) < 3: <NEW_LINE> <INDENT> x_str = str(self.x) <NEW_LINE> while len(x...
Class for Grid World States
62598f7815baa723494618a8
class TimestampField(serializers.DateTimeField): <NEW_LINE> <INDENT> def to_representation(self, value): <NEW_LINE> <INDENT> return value.timestamp() <NEW_LINE> <DEDENT> def to_internal_value(self, value): <NEW_LINE> <INDENT> if not value.isdigit(): <NEW_LINE> <INDENT> raise ValidationError("请输入timestamp") <NEW_LINE> <...
Convert a django datetime to/from timestamp.
62598f7866673b3332c2fceb
class Paragraph(BaseElement): <NEW_LINE> <INDENT> html_tag = "p" <NEW_LINE> def build(self, text): <NEW_LINE> <INDENT> super(Paragraph, self).build() <NEW_LINE> self.content = text
Simple paragraph widget
62598f78be383301e0253120
class FreeText(models.Model): <NEW_LINE> <INDENT> key = models.CharField('key', help_text="A unique name for this FreeText of content", blank=False, max_length=255, unique=True) <NEW_LINE> content = models.TextField('content', blank=True) <NEW_LINE> active = models.BooleanField("active", default=False) <NEW_LINE> class...
A FreeText is a piece of content associated with a unique key that can be inserted into any template with the use of a special template tag
62598f78a4f1c619b294df14
class AMultiCF(ACovarianceFunction): <NEW_LINE> <INDENT> __swig_setmethods__ = {} <NEW_LINE> for _s in [ACovarianceFunction]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) <NEW_LINE> __setattr__ = lambda self, name, value: _swig_setattr(self, AMultiCF, name, value) <NEW_LINE> __swig_getmethods__ = {}...
Proxy of C++ limix::AMultiCF class
62598f78d10714528d69d7f7
class DummyReader(object): <NEW_LINE> <INDENT> def __init__(self, messages, num_messages): <NEW_LINE> <INDENT> self.messages = messages <NEW_LINE> self.num_messages = num_messages <NEW_LINE> <DEDENT> def read(self): <NEW_LINE> <INDENT> for i in range(self.num_messages): <NEW_LINE> <INDENT> yield random.choice(self.mess...
A reader that yields dummy messages
62598f7876d4e153a661c53f
class design_reconfig_result(object): <NEW_LINE> <INDENT> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not ...
Attributes: - success
62598f7850485f2cf55da899
class TrafficAnalyticsProperties(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'network_watcher_flow_analytics_configuration': {'key': 'networkWatcherFlowAnalyticsConfiguration', 'type': 'TrafficAnalyticsConfigurationProperties'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> su...
Parameters that define the configuration of traffic analytics. :param network_watcher_flow_analytics_configuration: Parameters that define the configuration of traffic analytics. :type network_watcher_flow_analytics_configuration: ~azure.mgmt.network.v2019_12_01.models.TrafficAnalyticsConfigurationProperties
62598f78fb3f5b602db47e45
class DualObserverBasedRC_old(Controller): <NEW_LINE> <INDENT> def __init__(self, sys, freqsReal, K2, L1, IMstabmargin=0.5, IMstabmethod='LQR', RLBLvals=None): <NEW_LINE> <INDENT> PLvals = np.array(list(map(lambda freq: sys.P_L(freq, L1), 1j * freqsReal))) <NEW_LINE> cG1, cG2 = construct_internal_model(freqsReal, PLval...
Construct a Dual Observer-Based Robust Controller for a possibly unstable linear system.
62598f78ac7a0e7691f71e42
class SingleHandlerSignal(Signal): <NEW_LINE> <INDENT> allowed_receiver = 'common.request_middlewares.RequestProvider' <NEW_LINE> def __init__(self, providing_args=None): <NEW_LINE> <INDENT> return Signal.__init__(self, providing_args) <NEW_LINE> <DEDENT> def connect(self, receiver, sender=None, weak=True, dispatch_uid...
@summary: 用于处理注册事件类
62598f78a4f1c619b294df15
class Solution(object): <NEW_LINE> <INDENT> def __init__( self, interaction_id, answer_is_exclusive, correct_answer, explanation): <NEW_LINE> <INDENT> self.answer_is_exclusive = answer_is_exclusive <NEW_LINE> self.correct_answer = ( interaction_registry.Registry.get_interaction_by_id( interaction_id).normalize_answer(c...
Value object representing a solution. A solution consists of answer_is_exclusive, correct_answer and an explanation.When answer_is_exclusive is True, this indicates that it is the only correct answer; when it is False, this indicates that it is one possible answer. correct_answer records an answer that enables the lea...
62598f7816aa5153ce3ffe28
class FeatureValueConcat(SubstituteBindingsSequence, tuple): <NEW_LINE> <INDENT> def __new__(cls, values): <NEW_LINE> <INDENT> values = _flatten(values, FeatureValueConcat) <NEW_LINE> if sum(isinstance(v, Variable) for v in values) == 0: <NEW_LINE> <INDENT> values = _flatten(values, FeatureValueTuple) <NEW_LINE> return...
A base feature value that represents the concatenation of two or more ``FeatureValueTuple`` or ``Variable``.
62598f7815fb5d323ce7e653
class PatchedObjControllerApp(proxy_server.Application): <NEW_LINE> <INDENT> container_info = {} <NEW_LINE> per_container_info = {} <NEW_LINE> def __call__(self, *args, **kwargs): <NEW_LINE> <INDENT> def _fake_get_info(app, env, account, container=None, **kwargs): <NEW_LINE> <INDENT> if container: <NEW_LINE> <INDENT> i...
This patch is just a hook over the proxy server's __call__ to ensure that calls to get_info will return the stubbed value for container_info if it's a container info call.
62598f7896565a6dacd2cc0f
class BaseRobot(Robot): <NEW_LINE> <INDENT> def on_started(self): <NEW_LINE> <INDENT> super().on_started() <NEW_LINE> self.safe_cash_ratio = random.uniform(0.6, 0.95) <NEW_LINE> <DEDENT> def decide_symbols(self): <NEW_LINE> <INDENT> return random.sample( self.market_client.symbols, len(self.market_client.symbols) ) <NE...
Defines a set of action methods that subclasses may implement.
62598f7838b623060ffa89c2
class InvalidJsonInput(ErrorObject): <NEW_LINE> <INDENT> def __init__(self, *, message: str): <NEW_LINE> <INDENT> super().__init__(message=message, code="InvalidJsonInput") <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def deserialize(cls, data: typing.Dict[str, typing.Any]) -> "InvalidJsonInput": <NEW_LINE> <INDENT> fro...
An invalid JSON input has been sent to the service. Either the JSON is syntactically incorrect or the JSON has an unexpected shape, for example, a required field is missing. The client application should validate the input according to the constraints described in the error message before sending the request again.
62598f784d74a7450cd58b6b
class BufferStatistics(Driver): <NEW_LINE> <INDENT> def __init__(self, transport, protocol): <NEW_LINE> <INDENT> super(BufferStatistics, self).__init__(transport, protocol) <NEW_LINE> self.format = Command( ':CALC2:FORM?', ':CALC2:FORM', Mapping({ 'mean': 'MEAN', 'sdev': 'SDEV', 'max': 'MAX', 'min': 'MIN', 'peak': 'PKP...
The buffer statistics command subgroup. :ivar format: The selected buffer statistics. ====== ============================================= Value Description ====== ============================================= 'mean' The mean value of the buffer readings 'sdev' The standard deviation of the ...
62598f786fece00bbaccb2b6
class Main(CoreProcess): <NEW_LINE> <INDENT> def __init__(self, exe, repeat=1, parameters=[], project=None, num_workers=0, callback=None, curdir=''): <NEW_LINE> <INDENT> if not exe or exe == '': <NEW_LINE> <INDENT> print('[fjd] Please specify an executable command (--exe).') <NEW_LINE> sys.exit(2) <NEW_LINE> <DEDENT> i...
Translates --exe, --repeat and --parameters options into job files, then starts Recruiter and Dispatcher.
62598f78b57a9660fecd13a8
class ExperimentCreate(PermissionRequiredMixin, CreateView): <NEW_LINE> <INDENT> model = Experiment <NEW_LINE> form_class = ExperimentForm <NEW_LINE> template_name = 'experiment_form.html' <NEW_LINE> permission_required = "data.create_experiment"
This view is for creating a new Experiment object.
62598f785e10d32532ce3582
class Person: <NEW_LINE> <INDENT> def __init__(self, career, name, food): <NEW_LINE> <INDENT> self.career = career <NEW_LINE> self.name = name <NEW_LINE> self.food = food <NEW_LINE> print("__init__ method is executed") <NEW_LINE> pass <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "Career: %s, %s lov...
Person Class
62598f7807f4c71912baed77
class PathErrorInfo(NetAppObject): <NEW_LINE> <INDENT> _error_path = None <NEW_LINE> @property <NEW_LINE> def error_path(self): <NEW_LINE> <INDENT> return self._error_path <NEW_LINE> <DEDENT> @error_path.setter <NEW_LINE> def error_path(self, val): <NEW_LINE> <INDENT> if val != None: <NEW_LINE> <INDENT> self.validate('...
Error description
62598f78baa26c4b54d4ebdc
class ApproximateQAgent(PacmanQAgent): <NEW_LINE> <INDENT> def __init__(self, extractor='IdentityExtractor', **args): <NEW_LINE> <INDENT> self.featExtractor = util.lookup(extractor, globals())() <NEW_LINE> PacmanQAgent.__init__(self, **args) <NEW_LINE> self.weights = util.Counter() <NEW_LINE> <DEDENT> def getWeights(se...
ApproximateQLearningAgent You should only have to overwrite getQValue and update. All other QLearningAgent functions should work as is.
62598f7866673b3332c2fced
class DirMultinomial(Distribution): <NEW_LINE> <INDENT> def __init__(self, prev_counts, alpha): <NEW_LINE> <INDENT> self.prev_counts = prev_counts <NEW_LINE> self.alpha = alpha <NEW_LINE> self.log_posterior_pred = np.log(self.prev_counts + self.alpha) - np.log(np.sum(self.prev_counts + self.alpha)) <N...
Dirichlet-Multinomial distribution.
62598f78287bf620b62714e3
class MicrosoftPartnerSdkContractsV1CollectionsResourceCollectionMicrosoftPartnerSdkContractsV1UserLicenseManagementSubscribedSku(Model): <NEW_LINE> <INDENT> _validation = { 'total_count': {'readonly': True}, 'items': {'readonly': True}, 'attributes': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'total_count': {...
Contains a collection of resources with JSON properties to represent the output. Variables are only populated by the server, and will be ignored when sending a request. :ivar total_count: Gets the total count. :vartype total_count: int :ivar items: Gets the collection items. :vartype items: list[~microsoft.store.par...
62598f7850485f2cf55da89b
class ImagingManifestStudySeriesInstance(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_type = "ImagingManifestStudySeriesInstance" <NEW_LINE> def __init__(self, jsondict=None, strict=True): <NEW_LINE> <INDENT> self.sopClass = None <NEW_LINE> self.uid = None <NEW_LINE> super(ImagingManifestStudySeriesIn...
The selected instance. Identity and locating information of the selected DICOM SOP instances.
62598f78bde94217f37072fc
class Observer(object): <NEW_LINE> <INDENT> def notify(self, observer): <NEW_LINE> <INDENT> if observer.timer.time_out: <NEW_LINE> <INDENT> print("TIME OUT...") <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> print("TIME:",observer.timer.time)
observer of the Universe
62598f78507cdc57c63a46b6
class TestProvides(object): <NEW_LINE> <INDENT> def test_in_all(self): <NEW_LINE> <INDENT> assert provides.__name__ in validator_module.__all__ <NEW_LINE> <DEDENT> def test_success(self): <NEW_LINE> <INDENT> @zope.interface.implementer(IFoo) <NEW_LINE> class C(object): <NEW_LINE> <INDENT> def f(self): <NEW_LINE> <INDEN...
Tests for `provides`.
62598f788a349b6b43685b6e
class Threshold(ThresholdBase): <NEW_LINE> <INDENT> openapi_types = { 'level': 'CheckStatusLevel', 'all_values': 'bool' } <NEW_LINE> attribute_map = { 'level': 'level', 'all_values': 'allValues' } <NEW_LINE> discriminator_value_class_map = { 'RangeThreshold': 'RangeThreshold', 'LesserThreshold': 'LesserThreshold', 'Gre...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62598f78fb3f5b602db47e46
class NumVar(Var): <NEW_LINE> <INDENT> def __add__(self, o): <NEW_LINE> <INDENT> return self.value + self._getval(o) <NEW_LINE> <DEDENT> def __radd__(self, o): <NEW_LINE> <INDENT> return self + o <NEW_LINE> <DEDENT> def __sub__(self, o): <NEW_LINE> <INDENT> return self.value - self._getval(o) <NEW_LINE> <DEDENT> def __...
A variable representing a numeric value.
62598f78a4f1c619b294df17
class VCF: <NEW_LINE> <INDENT> def __init__(self, filename): <NEW_LINE> <INDENT> self.meta = [] <NEW_LINE> self.data = pd.DataFrame() <NEW_LINE> self.original_header = [] <NEW_LINE> self.read_vcf(filename) <NEW_LINE> <DEDENT> def read_vcf(self, filename): <NEW_LINE> <INDENT> if ".gz" in filename: <NEW_LINE> <INDENT> f ...
We are assuming single sample VCF
62598f78dc8b845886d52ee0
class OauthApplicationCreateAuditEntryState(sgqlc.types.Enum): <NEW_LINE> <INDENT> __schema__ = github_schema <NEW_LINE> __choices__ = ('ACTIVE', 'PENDING_DELETION', 'SUSPENDED')
The state of an OAuth Application when it was created. Enumeration Choices: * `ACTIVE`: The OAuth Application was active and allowed to have OAuth Accesses. * `PENDING_DELETION`: The OAuth Application was in the process of being deleted. * `SUSPENDED`: The OAuth Application was suspended from generating OAuth A...
62598f7891af0d3eaad39738
class ModuleUtil(object): <NEW_LINE> <INDENT> def clean(self, version): <NEW_LINE> <INDENT> version = version.replace('\\n','') <NEW_LINE> version = version.replace('=',':') <NEW_LINE> version = version.replace('\'','') <NEW_LINE> version = version.split(':', 1)[1] <NEW_LINE> return version.strip() <NEW_LINE> <DEDENT> ...
A Utility for functions that don't belong in other modules.
62598f784e696a045264da95
class InTemporaryDirectory(TemporaryDirectory): <NEW_LINE> <INDENT> def __enter__(self): <NEW_LINE> <INDENT> self._pwd = os.getcwd() <NEW_LINE> os.chdir(self.name) <NEW_LINE> return super(InTemporaryDirectory, self).__enter__() <NEW_LINE> <DEDENT> def __exit__(self, exc, value, tb): <NEW_LINE> <INDENT> os.chdir(self._p...
Create, return, and change directory to a temporary directory Example ------- >>> import os >>> my_cwd = os.getcwd() >>> with InTemporaryDirectory() as tmpdir: ... assert os.getcwd() != my_cwd ... assert os.getcwd() == tmpdir >>> os.path.exists(tmpdir) False >>> os.getcwd() == my_cwd True
62598f78baa26c4b54d4ebde
class SelectorConstant(ModelSelector): <NEW_LINE> <INDENT> def select(self): <NEW_LINE> <INDENT> best_num_components = self.n_constant <NEW_LINE> return self.base_model(best_num_components)
select the model with value self.n_constant
62598f78e76e3b2f99fd835e
class Frame(object): <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> self.bindings = {} <NEW_LINE> self.parent = parent <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> if self.parent is None: <NEW_LINE> <INDENT> return '<Global Frame>' <NEW_LINE> <DEDENT> s = sorted(['{0}: {1}'.format(k,...
An environment frame binds Scheme symbols to Scheme values.
62598f78d53ae8145f917dc2
class Record: <NEW_LINE> <INDENT> def __init__(self, line=None): <NEW_LINE> <INDENT> self.sid = '' <NEW_LINE> self.residues = [] <NEW_LINE> self.hierarchy = '' <NEW_LINE> if line: <NEW_LINE> <INDENT> self._process(line) <NEW_LINE> <DEDENT> <DEDENT> def _process(self, line): <NEW_LINE> <INDENT> line = line.rstrip() <NEW...
Holds information for one SCOP domain. sid -- The SCOP ID of the entry, e.g. d1anu1 residues -- The domain definition as a Residues object hierarchy -- A string specifying where this domain is in the hierarchy.
62598f7873bcbd0ca4bc9b7c
@skipIf(True, "needs a way to reload minion after config change") <NEW_LINE> @pytest.mark.windows_whitelisted <NEW_LINE> class LoaderGrainsMergeTest(ModuleCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.opts = salt.config.minion_config(None) <NEW_LINE> self.opts["grains_deep_merge"] = True <NEW_LIN...
Test the loader deep merge behavior with external grains
62598f78004d5f362081ec91
class FContrastResults(object): <NEW_LINE> <INDENT> def __init__(self, effect, covariance, F, df_num, df_den=None): <NEW_LINE> <INDENT> if df_den is None: <NEW_LINE> <INDENT> df_den = np.inf <NEW_LINE> <DEDENT> self.effect = effect <NEW_LINE> self.covariance = covariance <NEW_LINE> self.F = F <NEW_LINE> self.df_den = d...
Results from looking at a particular contrast of coefficients in a parametric model. The class does nothing, it is a container for the results from F contrasts, and returns the F-statistics when np.asarray is called.
62598f7838b623060ffa89c7
class VolumesServicesTestJSON(base.BaseVolumeV1AdminTest): <NEW_LINE> <INDENT> _interface = "json" <NEW_LINE> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> super(VolumesServicesTestJSON, cls).setUpClass() <NEW_LINE> cls.client = cls.os_adm.volume_services_client <NEW_LINE> resp, cls.services = cls.cl...
Tests Volume Services API. volume service list requires admin privileges.
62598f78f7d966606f747916
class Node: <NEW_LINE> <INDENT> def __init__(self, state, parent=None, action=None, path_cost=0): <NEW_LINE> <INDENT> self.state = state <NEW_LINE> self.parent = parent <NEW_LINE> self.action = action <NEW_LINE> self.path_cost = path_cost <NEW_LINE> self.depth = 0 <NEW_LINE> if parent: <NEW_LINE> <INDENT> self.depth = ...
A node in a search tree. Contains a pointer to the parent (the node that this is a successor of) and to the actual state for this node. Note that if a state is arrived at by two paths, then there are two nodes with the same state. Also includes the action that got us to this state, and the total path_cost (also known a...
62598f78a8ecb03325870b36
class WebsocketDriver(Driver): <NEW_LINE> <INDENT> def input_handle(self, input_stream, output_stream): <NEW_LINE> <INDENT> yield from self.__create_protocol(self.__input_loop, input_stream, output_stream) <NEW_LINE> <DEDENT> def output_handle(self, input_stream, output_stream): <NEW_LINE> <INDENT> yield from self.__cr...
Supports websocket access to chat. Client needs to open 2 connections (input on baseport and output on baseport+1). First, client needs to send a nick. After that, messages could be sent.
62598f78ec188e330fdf81ce