code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class SinglePlayerRating: <NEW_LINE> <INDENT> player_rating: int <NEW_LINE> player_stat: Dict <NEW_LINE> def __init__(self, player_id: str) -> None: <NEW_LINE> <INDENT> self.player_stat = prepare_data(player_id) <NEW_LINE> self.player_rating = self.rate() <NEW_LINE> self.rate() <NEW_LINE> <DEDENT> def __str__(self) -> ...
Player Rating Class This class creates rating based on the player's various performances in different categories from the previous season.
62598efe0fa83653e46f388a
@JsonObject(onRemoteAttached=maybe(OnAttached)) <NEW_LINE> class VolumeAcquireDesc(object): <NEW_LINE> <INDENT> pass
onRemoteAttached: What to do if volume is attached. "fail" if not specified
62598efed8ef3951e32c7326
class HistoryData(FrozenClass): <NEW_LINE> <INDENT> ua_types = [ ('DataValues', 'ListOfDataValue'), ] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.DataValues = [] <NEW_LINE> self._freeze = True <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return 'HistoryData(' + 'DataValues:' + str(self.DataVal...
:ivar DataValues: :vartype DataValues: DataValue
62598efe283ffb24f3cf2252
class TagScanner(object): <NEW_LINE> <INDENT> def __init__(self, callback): <NEW_LINE> <INDENT> self._uris = [] <NEW_LINE> self._tags = {} <NEW_LINE> self._idle = True <NEW_LINE> self._callback = callback <NEW_LINE> self._player = gst.element_factory_make('playbin2') <NEW_LINE> self._player.get_bus().add_watch(self._bu...
Asynchronous tag scanner Create it, passing a callback function with (uri_string, tags_dict) signature. Then use it calling the "add(uris)" function. It works by creating a GStreamer playbin2 pipeline and loading files until they can be played, while collecting their tags. After a file is loaded, it invokes given cal...
62598efe67a9b606de544972
class Counter(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.count = 0
Counter resource used for testing EquippedWorker.
62598efe9f2886367281719e
class GeekListObject(Thing): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> self._items = [] <NEW_LINE> super(GeekListObject, self).__init__(data) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "GeekListItem (id: {})".format(self.id) <NEW_LINE> <DEDENT> def _format(self, log): <NE...
Object containing information about a geeklist object (e.g. a game reference)
62598efe7047854f4633dd70
class Grid(Element): <NEW_LINE> <INDENT> def __init__(self, dx, dy, size=8): <NEW_LINE> <INDENT> self.size = size <NEW_LINE> lines = self._gen_grid(dx, dy) <NEW_LINE> element = _transform.GroupElement(lines) <NEW_LINE> Element.__init__(self, element.root) <NEW_LINE> <DEDENT> def _gen_grid(self, dx, dy, width=0.5): <NEW...
Line grid with coordinate labels to facilitate placement of new elements. Parameters ---------- dx : float Spacing between the vertical lines. dy : float Spacing between horizontal lines. size : float or str Font size of the labels. Notes ----- This element is mainly useful for manual placement of the elemen...
62598efe283ffb24f3cf2253
class TextEncoder(object): <NEW_LINE> <INDENT> def __init__(self, num_reserved_ids=NUM_RESERVED_TOKENS): <NEW_LINE> <INDENT> self._num_reserved_ids = num_reserved_ids <NEW_LINE> <DEDENT> @property <NEW_LINE> def num_reserved_ids(self): <NEW_LINE> <INDENT> return self._num_reserved_ids <NEW_LINE> <DEDENT> def encode(sel...
Base class for converting from ints to/from human readable strings.
62598efe10dbd63aa1c6f528
class Glider(object): <NEW_LINE> <INDENT> def __init__(self, matrix, size, color, main): <NEW_LINE> <INDENT> self.main = main <NEW_LINE> self.matrix = matrix <NEW_LINE> self._set_color = color <NEW_LINE> self.cell_size = size <NEW_LINE> self.size = [len(self.matrix * self.cell_size), len(self.matrix[0]) * self.cell_siz...
Gliders surfaces for cursors and images on side menu.
62598efe9c8ee8231303f631
class Camera: <NEW_LINE> <INDENT> def __init__(self, vid=0, res=None): <NEW_LINE> <INDENT> self._cam = cv.CreateCameraCapture(vid) <NEW_LINE> if res: <NEW_LINE> <INDENT> cv.SetCaptureProperty(self._cam, cv.CV_CAP_PROP_FRAME_WIDTH, res[0]) <NEW_LINE> cv.SetCaptureProperty(self._cam, cv.CV_CAP_PROP_FRAME_HEIGHT, res[1]) ...
Implement basic camera capabilities This class has different implementations for different OS. On posix systems it calls to opencv, on Windows to VideoCapture.
62598efe796e427e5384d144
class PWMThrottle: <NEW_LINE> <INDENT> MIN_THROTTLE = -1 <NEW_LINE> MAX_THROTTLE = 1 <NEW_LINE> def __init__(self, controller=None, max_pulse=300, min_pulse=490, zero_pulse=350): <NEW_LINE> <INDENT> self.controller = controller <NEW_LINE> self.max_pulse = max_pulse <NEW_LINE> self.min_pulse = min_pulse <NEW_LINE> self...
Wrapper over a PWM motor cotnroller to convert -1 to 1 throttle values to PWM pulses.
62598efe97e22403b383988f
class after_attempt(RetryBreaker): <NEW_LINE> <INDENT> def __init__(self, attempt): <NEW_LINE> <INDENT> self._max_attempt = attempt <NEW_LINE> self._attempt = 0 <NEW_LINE> <DEDENT> def __call__(self): <NEW_LINE> <INDENT> attempt = 0 <NEW_LINE> while True: <NEW_LINE> <INDENT> yield <NEW_LINE> attempt += 1 <NEW_LINE> yie...
Stops retrying after the specified number of ``attempts``.
62598efe167d2b6e312b5945
@implementer(IETagValue) <NEW_LINE> @adapter(Interface, Interface) <NEW_LINE> class Skin: <NEW_LINE> <INDENT> def __init__(self, published, request): <NEW_LINE> <INDENT> self.published = published <NEW_LINE> self.request = request <NEW_LINE> <DEDENT> def __call__(self): <NEW_LINE> <INDENT> context = getContext(self.pub...
The ``skin`` etag component, returning the current skin name.
62598efe4527f215b58e88a6
class TestTimeHistorySlipFn(unittest.TestCase): <NEW_LINE> <INDENT> def test_constructor(self): <NEW_LINE> <INDENT> slipFn = TimeHistorySlipFn() <NEW_LINE> return <NEW_LINE> <DEDENT> def test_configure(self): <NEW_LINE> <INDENT> slipFn = TimeHistorySlipFn() <NEW_LINE> slipFn._configure() <NEW_LINE> return <NEW_LINE> <D...
Unit testing of TimeHistorySlipFn object.
62598efefff4ab517ebcc17d
class Station(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.T = 0 <NEW_LINE> self.Tt = 0 <NEW_LINE> self.P = 0 <NEW_LINE> self.Pt = 0 <NEW_LINE> self.C = [0,0,0] <NEW_LINE> self.W = [0,0,0] <NEW_LINE> self.r = 0 <NEW_LINE> self.betta = 0 <NEW_LINE> self.betta_rel =0 <NEW_LINE> self.solidity ...
Parameters: -mach -T -Tt -P -Pt -C -W -r -betta -betta_rel -camber -stagger
62598efecc0a2c11144799ac
class FunctionSearchView(WorkbenchView): <NEW_LINE> <INDENT> def create_control(self, parent): <NEW_LINE> <INDENT> app = self.window.workbench.app <NEW_LINE> function_search = AppFunctionSearch(app=app) <NEW_LINE> ui = function_search.edit_traits(parent=parent, kind='subpanel') <NEW_LINE> return ui.control
View for searching for functions in an application.
62598efef9cc0f698b1c47a4
class BulletWorld(object): <NEW_LINE> <INDENT> def __init__(self, gravity=9.8, timestep=1/240., frame_skip=1, solver_iter=50, np_random=None, pybullet_client=None): <NEW_LINE> <INDENT> if np_random is None: <NEW_LINE> <INDENT> self.np_random, seed = gym.utils.seeding.np_random(None) <NEW_LINE> <DEDENT> else: <NEW_LINE>...
A base class for a world. It manages the physics properties of pybullet.
62598efe0fa83653e46f388c
class SpaceWidget(CanvasWidget): <NEW_LINE> <INDENT> def __init__(self, canvas, width, height, **attribs): <NEW_LINE> <INDENT> if width > 4: width -= 4 <NEW_LINE> if height > 4: height -= 4 <NEW_LINE> self._tag = canvas.create_line(1, 1, width, height, fill='') <NEW_LINE> CanvasWidget.__init__(self, canvas, **attribs) ...
A canvas widget that takes up space but does not display anything. A ``SpaceWidget`` can be used to add space between elements. Each space widget is characterized by a width and a height. If you wish to only create horizontal space, then use a height of zero; and if you wish to only create vertical space, use a widt...
62598efe5fdd1c0f98e5c950
class ExchGwYunbi(ExchangeGateway): <NEW_LINE> <INDENT> def __init__(self, db_clients): <NEW_LINE> <INDENT> ExchangeGateway.__init__(self, ExchGwApiYunbi(), db_clients) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def get_exchange_name(cls): <NEW_LINE> <INDENT> return 'Yunbi' <NEW_LINE> <DEDENT> def get_order_book_worke...
Exchange gateway
62598efe7047854f4633dd72
class CustomArrayField(ArrayField): <NEW_LINE> <INDENT> empty_values = (None, '', (), {}) <NEW_LINE> def to_python(self, value): <NEW_LINE> <INDENT> if value in self.empty_values: <NEW_LINE> <INDENT> return value <NEW_LINE> <DEDENT> return super(CustomArrayField, self).to_python(value) <NEW_LINE> <DEDENT> def validate(...
created to allow the setting of `default=[]` AND `blank=False` django, by default recognizes `[]` as a "blank"/"empty" field. removing `[]` from the default empty_values, fixes this problem.
62598efe2c8b7c6e89bd216d
class JavascriptConfigurationNode(template.Node): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def render(self, context): <NEW_LINE> <INDENT> return 'var configuration = ' + json.dumps( DEFAULT_CONFIGURATION_BUILDER.get_configuration() ) + ';'
Represents a node that renders JavaScript configuration.
62598efebe7bc26dc9251339
class LegacyGraphHelper(namedtuple('LegacyGraphHelper', ['scheduler', 'engine', 'symbol_table_cls', 'change_calculator'])): <NEW_LINE> <INDENT> def warm_product_graph(self, target_roots): <NEW_LINE> <INDENT> logger.debug('warming target_roots for: %r', target_roots) <NEW_LINE> request = self.scheduler.execution_request...
A container for the components necessary to construct a legacy BuildGraph facade.
62598efe3617ad0b5ee04ad6
class Interposer(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'interposer_ref': 'str', 'interposer_type_data': 'InterposerTypeData' } <NEW_LINE> self.attribute_map = { 'interposer_ref': 'interposerRef', 'interposer_type_data': 'interposerTypeData' } <NEW_LINE> self._interp...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598efe379a373c97d979a5
class DummyStore(store.Store): <NEW_LINE> <INDENT> def load(self, model, adapter): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def _execute(self, query, model, adapter, raw=False): <NEW_LINE> <INDENT> values = self.load(model, adapter) <NEW_LINE> return IterableStore(values=values)._execute(query,...
A dummy store that cannot understand / execute queries but instead will cast results from source to model, then hand over the model instances to an IterableStore
62598efe851cf427c66b6c74
class TestVerifyMissingVerificationToken(TestBase): <NEW_LINE> <INDENT> def test(self): <NEW_LINE> <INDENT> challenge = "abcdefgh" <NEW_LINE> url = self.make_url(self.settings.get("accessToken"), "", challenge) <NEW_LINE> response = requests.get(url) <NEW_LINE> self.assertEqual(response.status_code, 400) <NEW_LINE> sel...
Tests a call to the webhook.handler for verification with a missing verification token. Should return http 400 with "400" in the error.
62598efe60cbc95b06362cdc
class Singleton: <NEW_LINE> <INDENT> def __init__(self, decorated): <NEW_LINE> <INDENT> self._decorated = decorated <NEW_LINE> <DEDENT> def instance(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self._instance <NEW_LINE> <DEDENT> except AttributeError: <NEW_LINE> <INDENT> self._instance = self._decorated()...
A non-thread-safe helper class to ease implementing singletons. This should be used as a decorator -- not a metaclass -- to the class that should be a singleton. The decorated class can define one `__init__` function that takes only the `self` argument. Also, the decorated class cannot be inherited from. Other than th...
62598efe1f5feb6acb161600
class IBNDenseUnit(HybridBlock): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels, bn_use_global_stats, dropout_rate, conv1_ibn, **kwargs): <NEW_LINE> <INDENT> super(IBNDenseUnit, self).__init__(**kwargs) <NEW_LINE> self.use_dropout = (dropout_rate != 0.0) <NEW_LINE> bn_size = 4 <NEW_LINE> inc_channels ...
IBN-DenseNet unit. Parameters: ---------- in_channels : int Number of input channels. out_channels : int Number of output channels. bn_use_global_stats : bool Whether global moving statistics is used instead of local batch-norm for BatchNorm layers. dropout_rate : float Parameter of Dropout layer. Fact...
62598efe7cff6e4e811b4390
class Ancestor: <NEW_LINE> <INDENT> def __init__(self, tool): <NEW_LINE> <INDENT> self.tool = tool <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return 'I am Ancestor' <NEW_LINE> <DEDENT> def work(self): <NEW_LINE> <INDENT> print('I work using {}'.format(self.tool))
This class is the superclass, which has only one tool
62598efe21bff66bcd721602
class StringConstraintNames(Venum): <NEW_LINE> <INDENT> MIN_LENGTH = 'min_length' <NEW_LINE> MAX_LENGTH = 'max_length' <NEW_LINE> EQ = 'eq' <NEW_LINE> IN = 'in' <NEW_LINE> FORMAT = 'format'
Constraints applied to string types.
62598efe76e4537e8c3edf67
class inputs: <NEW_LINE> <INDENT> def __init__(self,name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> <DEDENT> def INCAR(self,tempdir,finaldir,incarname): <NEW_LINE> <INDENT> os.system('cp '+tempdir+incarname+' '+finaldir+'INCAR') <NEW_LINE> VASPread.findreplace('INCAR',finaldir,'$NAME$',self.name) <NEW_LINE> retu...
This class contains methods to generate the 5 main input scripts used by VASP - INCAR, POSCAR, POTCAR, KPOINTS, and marcc.job (qscript). A few of the methods rely on java routines contained in the JAVA folder. See java src file for more details.
62598efe3d592f4c4edb989a
class OfficeSuiteSKULessVersionProvider(URLGetter): <NEW_LINE> <INDENT> input_variables = { "installertype": { "description": "Type of installer for latest suite release package, can be o365, vl2019 or vl2016.", "required": False, "default": "vl2019" } } <NEW_LINE> output_variables = { "version": { "description": "Vers...
Provides the version of the latest SKU-Less Office 2019 Suite release
62598effd8ef3951e32c7328
class MisListView(LoginRequiredMixin, MisMultipleObjectMixin, ListView): <NEW_LINE> <INDENT> pass
JsonResponse some json of objects, set by 'self.model' or 'self.queryset'.
62598eff10dbd63aa1c6f52c
class ResourceRecord(_messages.Message): <NEW_LINE> <INDENT> class TypeValueValuesEnum(_messages.Enum): <NEW_LINE> <INDENT> A = 0 <NEW_LINE> AAAA = 1 <NEW_LINE> CNAME = 2 <NEW_LINE> <DEDENT> dnsEntryFound = _messages.BooleanField(1) <NEW_LINE> name = _messages.StringField(2) <NEW_LINE> rrdata = _messages.StringField(3)...
A DNS resource record. Enums: TypeValueValuesEnum: Resource record type. Example: AAAA. Fields: dnsEntryFound: Whether the resource record exists in the domain's DNS configuration. This is determined using a basic DNS lookup. In order to serve an app out of a domain mapping, all of the domain mapping's ...
62598eff8a349b6b43684bf0
class DoubleVar(Variable): <NEW_LINE> <INDENT> _default = 0.0 <NEW_LINE> def __init__(self, master=None, value=None, name=None): <NEW_LINE> <INDENT> Variable.__init__(self, master, value, name) <NEW_LINE> <DEDENT> def get(self): <NEW_LINE> <INDENT> return getdouble(self._tk.globalgetvar(self._name))
Value holder for float variables.
62598effad47b63b2c5a61c6
class DocumentListbox(tk.Listbox): <NEW_LINE> <INDENT> def __init__(self, master, **kwargs): <NEW_LINE> <INDENT> super(DocumentListbox, self).__init__(master, **kwargs) <NEW_LINE> <DEDENT> def add_document(self, document): <NEW_LINE> <INDENT> self.insert(tk.END, document)
hold the list of currently opened documents
62598eff7c178a314d78be49
class DecoratorsTests(unittest.TestCase): <NEW_LINE> <INDENT> def test_memoized(self): <NEW_LINE> <INDENT> class Thing(object): <NEW_LINE> <INDENT> @memoized <NEW_LINE> def attr(self): <NEW_LINE> <INDENT> return 42 <NEW_LINE> <DEDENT> <DEDENT> thing = Thing() <NEW_LINE> self.assertFalse(hasattr(thing, '_attr')) <NEW_LI...
Basic decorators utility tests.
62598eff3317a56b869bda3b
class ACL(list): <NEW_LINE> <INDENT> def __init__(self, id, title, description=''): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.title = title <NEW_LINE> self.description = description <NEW_LINE> info = config.DirectiveInfo() <NEW_LINE> discr = (ID_ACL, id) <NEW_LINE> intr = config.Introspectable(ID_ACL, discr, tit...
Named ACL map ACL contains list of permit rules, for example:: >> acl = ACL('test', 'Test ACL') >> acl.allow('system.Everyone', 'View') >> acl.deny('system.Everyone', 'Edit') >> list(acl) [(Allow, 'system.Everyone', ('View',)), (Deny, 'system.Everyone', ('Edit',))]
62598eff0fa83653e46f3890
class Normal(PlaneAdjust): <NEW_LINE> <INDENT> def __init__(self, plane, undo_redo_stack): <NEW_LINE> <INDENT> super(Normal, self).__init__(plane, undo_redo_stack) <NEW_LINE> self._mode_type = ViewMode.PLANE_NORMAL <NEW_LINE> self._glyph = createPlaneNormalIndicator(plane.getRegion(), plane.getNormalField()) <NEW_LINE>...
Handle sceneviewer input events when in normal mode. The normal mode allows the user to move the plane in the direction of the normal of the plane.
62598eff956e5f7376df4b52
class PrivateIngredientsApiTest(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.client = APIClient() <NEW_LINE> self.user = get_user_model().objects.create_user( 'test@gmail.com', '28938293' ) <NEW_LINE> self.client.force_authenticate(self.user) <NEW_LINE> <DEDENT> def test_retrieve_ingredient_...
Test the private ingredients API
62598eff099cdd3c636748ae
class ShippingServiceList(list, _List["ShippingService"]): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> super().__init__([ShippingService(datum) for datum in data]) <NEW_LINE> self.data = data
A list of shipping services offers.
62598eff5fc7496912d4774a
class SqliteDatabaseConnector(DatabaseConnector): <NEW_LINE> <INDENT> def __init__(self, dbname, cardinality = 1): <NEW_LINE> <INDENT> DatabaseConnector.__init__(self, dbname, cardinality) <NEW_LINE> self.con = None <NEW_LINE> self.open_database() <NEW_LINE> <DEDENT> def commit(self): <NEW_LINE> <INDENT> self.con.commi...
Database connector for sqlite databases.
62598eff627d3e7fe0e0583d
class LazyLoad(Mapping): <NEW_LINE> <INDENT> __slots__ = ("pull", "d") <NEW_LINE> def __init__(self, pull_items_func, initial_items=[]): <NEW_LINE> <INDENT> self.d = {} <NEW_LINE> for k, v in initial_items: <NEW_LINE> <INDENT> self.d[k] = v <NEW_LINE> <DEDENT> self.pull = pull_items_func <NEW_LINE> <DEDENT> def __getit...
Lazy loading of values for a dict
62598eff656771135c488039
class TreeReduce(Operator): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def call(cls, map_function, reduce_function, axis=None): <NEW_LINE> <INDENT> def caller(query_compiler, *args, **kwargs): <NEW_LINE> <INDENT> _axis = kwargs.get("axis") if axis is None else axis <NEW_LINE> return query_compiler.__constructor__( que...
Builder class for TreeReduce operator.
62598eff091ae356687035c9
class TermsInList(Model): <NEW_LINE> <INDENT> _attribute_map = { 'term': {'key': 'Term', 'type': 'str'}, } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(TermsInList, self).__init__(**kwargs) <NEW_LINE> self.term = kwargs.get('term', None)
Terms in list Id passed. :param term: Added term details. :type term: str
62598eff3346ee7daa336b3e
class BaseService(Service): <NEW_LINE> <INDENT> class SimpleIO(BaseSIO): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def _set_response_ok(self): <NEW_LINE> <INDENT> self.response.payload.status = status_code.ok <NEW_LINE> <DEDENT> def _set_response_error(self, sub_status=status_code.auth.not_allowed, status=status_cod...
Base class for SSO sevices.
62598eff76e4537e8c3edf6b
class PrmRelacher(Parametre): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Parametre.__init__(self, "relâcher", "unhold") <NEW_LINE> self.aide_courte = "relâche le gouvernail" <NEW_LINE> self.aide_longue = "Cette commande permet de relacher le gouvernail." <NEW_LINE> <DEDENT> def interpreter(s...
Commande 'gouvernail relâcher'.
62598eff5fdd1c0f98e5c955
class AttribSafeContextObj(ContextObj): <NEW_LINE> <INDENT> def __getattr__(self, name): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return object.__getattribute__(self, name) <NEW_LINE> <DEDENT> except AttributeError: <NEW_LINE> <INDENT> pylons_log.debug("No attribute called %s found on c object, " "returning empty s...
The 'c' object, with lax attribute access (returns '' when the attribute does not exist)
62598efffff4ab517ebcc183
class TestUser(unittest.TestCase): <NEW_LINE> <INDENT> def test1_userExist(self): <NEW_LINE> <INDENT> tempUser = clsUser() <NEW_LINE> self.assertIsNotNone( tempUser ) <NEW_LINE> session.query( model.User ).delete() <NEW_LINE> <DEDENT> def test2_insert_dptNoExist(self): <NEW_LINE> <INDENT> session.query(model.User).dele...
Casos de insert
62598eff71ff763f4b5e6112
class OtaTestResult: <NEW_LINE> <INDENT> PASS = 'PASS' <NEW_LINE> FAIL = 'FAIL' <NEW_LINE> def __init__(self, *, testName, result, reason, board=''): <NEW_LINE> <INDENT> self.board = '' <NEW_LINE> self.testName = testName <NEW_LINE> self.result = result <NEW_LINE> self.reason = reason <NEW_LINE> <DEDENT> def testResult...
Object representing a OTA test result. Attributes board(str): The name of the board this result is for. testName(str): The name of the OTA test. result(str): The result of the OTA test. reason(str): The reason for the result. Methods: testResultFromJobStatus(passOrFail, jobStatus) Example: passi...
62598eff3d592f4c4edb989f
class FunctionLogger(object): <NEW_LINE> <INDENT> call_frequencies = {} <NEW_LINE> call_times = {} <NEW_LINE> def __init__(self, function, naming): <NEW_LINE> <INDENT> self.start_time = None <NEW_LINE> if naming == 'qualname': <NEW_LINE> <INDENT> self.function_name = function.__qualname__ <NEW_LINE> <DEDENT> elif namin...
stores two dictionaries: - call_frequencies: mapping of function names to counts of how often they've been called - call_times: mapping of function names to lists of how long it took to execute a fn call
62598eff4f88993c371ef9c1
class svnreport(models.Model): <NEW_LINE> <INDENT> svnproject = models.ForeignKey('svnproject', related_name = 'svn_report', null = True, on_delete = models.SET_NULL) <NEW_LINE> svnuser = models.CharField(max_length = 20, null = False) <NEW_LINE> svndate = models.DateTimeField(null = False) <NEW_LINE> svncommit = model...
the report data from svn
62598effadb09d7d5dc08f66
class WebDriver(Utils.Utils, GoogleMeet.GoogleMeet): <NEW_LINE> <INDENT> def __init__(self, driver: webdriver.Chrome): <NEW_LINE> <INDENT> super().__init__(driver) <NEW_LINE> self.driver = driver <NEW_LINE> self.driver.get("https://web.whatsapp.com") <NEW_LINE> WebDriverWait(self.driver, 90).until(EC.visibility_of_elem...
This is the main class to be manipulated. Create a driver object using Initializer.create_driver() and pass the object
62598eff283ffb24f3cf225b
class Trace(object): <NEW_LINE> <INDENT> __slots__ = [ 'trace_id', 'name', 'span_id', 'parent_span_id', 'endpoint', '_tracers', 'traceflags', 'annotations' ] <NEW_LINE> def __init__( self, name=None, trace_id=None, span_id=None, parent_span_id=0, endpoint=None, traceflags=0 ): <NEW_LINE> <INDENT> self.name = name <NEW_...
A Zipkin trace/span.
62598eff2c8b7c6e89bd2173
class UnManagedModelTestRunner(DiscoverRunner): <NEW_LINE> <INDENT> def setup_test_environment(self, *args, **kwargs): <NEW_LINE> <INDENT> from django.apps import apps <NEW_LINE> self.unmanaged_models = [m for m in apps.get_models() if not m._meta.managed] <NEW_LINE> for m in self.unmanaged_models: <NEW_LINE> <INDENT> ...
Test runner that automatically makes all unmanaged models in your Django project managed for the duration of the test run, so that one doesn't need to execute the SQL manually to create them.
62598eff4a966d76dd5ed885
class GlobalTensorQuadratureGrid(ArrayNode): <NEW_LINE> <INDENT> _rank = 2 <NEW_LINE> _positions = {index_element: 0, index_quad: 1} <NEW_LINE> _free_indices = [index_element] <NEW_LINE> def __init__(self, weights=True): <NEW_LINE> <INDENT> self._weights = weights <NEW_LINE> <DEDENT> @property <NEW_LINE> def weights( s...
This class represents the quadrature points and weights in a domain.
62598eff50812a4eaa6200c3
class _PVPlantPlacement(ArchComponent.Component): <NEW_LINE> <INDENT> def __init__(self, obj): <NEW_LINE> <INDENT> ArchComponent.Component.__init__(self, obj) <NEW_LINE> self.setProperties(obj) <NEW_LINE> obj.MoveWithHost = False <NEW_LINE> <DEDENT> def setProperties(self, obj): <NEW_LINE> <INDENT> ArchComponent.Compon...
the PVPlantPlacement object
62598eff44b2445a339b5e48
class SecondarySourceDistribution(_namedtuple('SecondarySourceDistribution', 'x n a')): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> def __repr__(self): <NEW_LINE> <INDENT> return 'SecondarySourceDistribution(\n' + ',\n'.join( ' {}={}'.format(name, repr(data).replace('\n', '\n ')) for name, data in zip('xna', ...
Named tuple returned by array functions. See `collections.namedtuple`. Attributes ---------- x : (N, 3) numpy.ndarray Positions of secondary sources n : (N, 3) numpy.ndarray Orientations (normal vectors) of secondary sources a : (N,) numpy.ndarray Weights of secondary sources
62598eff99fddb7c1ca622da
class CButton: <NEW_LINE> <INDENT> def __init__(self, win, center, radius, label): <NEW_LINE> <INDENT> x,y = center.getX(), center.getY() <NEW_LINE> self.xmax, self.xmin = x+radius, x-radius <NEW_LINE> self.ymax, self.ymin = y+radius, y-radius <NEW_LINE> self.circ = Circle(center, radius) <NEW_LINE> self.circ.setFill('...
A circular button is a labeled circle in a window. It is activated or deactivated with the activate() and deactivate() methods. The clicked(p) method returns true if the button is active and p is inside it.
62598eff656771135c48803b
@pytest.mark.tier1 <NEW_LINE> class TestPrincipalAliasForSubjectAltNameDnsName(SubjectAltNameOneServiceBase): <NEW_LINE> <INDENT> def test_add_principal_alias( self, santest_service_host_1, santest_service_host_2): <NEW_LINE> <INDENT> api.Command.service_add_principal( santest_service_host_1.name, santest_service_host_...
Test cert-request with SAN dnsName corresponding to a princpial alias. Request should succeed.
62598eff57b8e32f525075da
class InputLayer(Layer): <NEW_LINE> <INDENT> def __init__( self, inputs = None, n_features = None, name ='input_layer' ): <NEW_LINE> <INDENT> Layer.__init__(self, inputs=inputs, name=name) <NEW_LINE> print(" [TL] InputLayer %s: %s" % (self.name, inputs.get_shape())) <NEW_LINE> self.outputs = inputs <NEW_LINE> self.al...
The :class:`InputLayer` class is the starting layer of a neural network. Parameters ---------- inputs : a TensorFlow placeholder The input tensor data. name : a string or None An optional name to attach to this layer. n_features : a int The number of features. If not specify, it will assume the input is ...
62598eff851cf427c66b6c7a
class class12sync_quickactionTest(TestCase): <NEW_LINE> <INDENT> def test1201sync_remote_quickactionecho(self): <NEW_LINE> <INDENT> result=server.sync_remote_quickaction(6,{'protocol':'ssh','host':ipserver,'uuid':uuid},"echo \"toto\"") <NEW_LINE> self.assertEqual ( result, [0,result[1],""]) <NEW_LINE> <DEDENT> def test...
Test's class of sync_remote_quickaction with his three output
62598eff8a349b6b43684bf4
class SRUCell(rnn_cell_impl.LayerRNNCell): <NEW_LINE> <INDENT> def __init__(self, num_units, activation=None, reuse=None, name=None): <NEW_LINE> <INDENT> super(SRUCell, self).__init__(_reuse=reuse, name=name) <NEW_LINE> self._num_units = num_units <NEW_LINE> self._activation = activation or math_ops.tanh <NEW_LINE> sel...
SRU, Simple Recurrent Unit. Implementation based on Training RNNs as Fast as CNNs (cf. https://arxiv.org/abs/1709.02755). This variation of RNN cell is characterized by the simplified data dependence between hidden states of two consecutive time steps. Traditionally, hidden states from a cell at tim...
62598eff60cbc95b06362ce3
class LayerNodesGeoJsonList(LayerNodeListMixin, NodeGeoJsonList): <NEW_LINE> <INDENT> pagination_serializer = GeoJsonPagination <NEW_LINE> paginate_by_param = 'limit' <NEW_LINE> paginate_by = 0 <NEW_LINE> serializer_class = NodeGeoJsonSerializer <NEW_LINE> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> re...
Retrieve list of nodes of the specified layer in GeoJson format. Parameters: * `search=<word>`: search <word> in name, slug, description and address of nodes * `limit=<n>`: specify number of items per page (show all by default)
62598eff442bda511e95ae13
class Encoder(nn.Module): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Encoder, self).__init__() <NEW_LINE> resnet = models.resnet101(pretrained=True) <NEW_LINE> self.resnet = nn.Sequential(*list(resnet.children())[:-2]) <NEW_LINE> self.adaptive_pool = nn.AdaptiveAvgPool2d((14, 14)) <NEW_LINE> <DED...
We use ResNet 101 CNN as our encoder and do the following changes for our madel: 1.Removing the last pooling and linear layers as we only need image encoding rather than image classification. 2.We pass the output of this model onto an Adaptive pooling layer to create a fixed size output vector that can be easily...
62598eff76e4537e8c3edf6d
class Solution: <NEW_LINE> <INDENT> def continuousSubarraySum(self, A): <NEW_LINE> <INDENT> ret = [-1, -1] <NEW_LINE> left = 0 <NEW_LINE> right = -1 <NEW_LINE> total = 0 <NEW_LINE> max_sofar = -sys.maxint <NEW_LINE> for a in A: <NEW_LINE> <INDENT> if total < 0: <NEW_LINE> <INDENT> total = a <NEW_LINE> left = right+1 <N...
@param: A: An integer array @return: A list of integers includes the index of the first number and the index of the last number
62598eff63b5f9789fe83b12
class Node(object): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> self.next = None
node initialization A node consists of data and next pointer
62598effa219f33f346c51e0
class ActionPostCommentEdit(BasicRequestHandler): <NEW_LINE> <INDENT> def post(self): <NEW_LINE> <INDENT> if not self.user_info.admin: <NEW_LINE> <INDENT> logger.error('Not admin') <NEW_LINE> self.response.set_status(403) <NEW_LINE> return <NEW_LINE> <DEDENT> comment = BlogPostComment.get(self.request.get(const.param_c...
Сохранение комментария после редактирования
62598eff283ffb24f3cf225c
class CAIGEdgeAttrs(TypedDict): <NEW_LINE> <INDENT> amount: int
Commit-author interaction graph edge attributes.
62598effaad79263cf42d1c2
class LiveDNSClient: <NEW_LINE> <INDENT> def __init__(self, url, key, debug=False): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> self.key = key <NEW_LINE> self.debug = debug <NEW_LINE> <DEDENT> def _query_api(self, method, query, json_data=None): <NEW_LINE> <INDENT> if not self.url.endswith("/") and not query.startswi...
Gandi LiveDNS API client.
62598eff67a9b606de54497c
class Checker: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.fp = io.BytesIO() <NEW_LINE> <DEDENT> @property <NEW_LINE> def value(self): <NEW_LINE> <INDENT> return self.fp.getvalue() <NEW_LINE> <DEDENT> def expect(self, expected): <NEW_LINE> <INDENT> actual = self.value.decode('ascii') <NEW_LINE> ass...
A helper to check mhtml output. Attrs: fp: A BytesIO object for passing to MHTMLWriter.write_to.
62598effe5267d203ee6a2b5
class Permission(object): <NEW_LINE> <INDENT> GROUPADMIN = "groupadmin" <NEW_LINE> HAPPY = "happy" <NEW_LINE> MUST_AGREE_TERMS = "must_agree_terms" <NEW_LINE> MUST_CHANGE_PASSWORD = "must_change_password" <NEW_LINE> MUST_SET_MFA = "must_set_mfa" <NEW_LINE> SUPERUSER = "superuser"
Pyramid permission values. - Permissions are strings. - For "logged in", use ``pyramid.security.Authenticated``
62598eff2c8b7c6e89bd2175
class BauplanKatzenKlasse(): <NEW_LINE> <INDENT> def __init__(self, rufname, farbe, alter): <NEW_LINE> <INDENT> self.rufname = rufname <NEW_LINE> self.farbe = farbe <NEW_LINE> self.alter = alter <NEW_LINE> <DEDENT> def Ausgabe(self): <NEW_LINE> <INDENT> return self.rufname
Klasse für das Erstellen von Katzen
62598eff5fc7496912d4774c
class ClientResponseMessage(Message): <NEW_LINE> <INDENT> def __init__(self, connection_id, packet): <NEW_LINE> <INDENT> self.connection_id = connection_id <NEW_LINE> self.packet = packet
Отправляется сообщение от сервера.
62598effa05bb46b38489229
class MessageWindow(tk.Toplevel): <NEW_LINE> <INDENT> def __init__(self, master, title, message, callback1, callback2, size=(298,120), **kwargs): <NEW_LINE> <INDENT> self.size = size <NEW_LINE> self.master = master <NEW_LINE> self.width, self.height = width, height = tuple(i for i in self.size) <NEW_LINE> tk.Toplevel._...
Displays a pop-up window requiring a user response
62598eff60cbc95b06362ce5
class OrcaRelaxedScanTest(GenericRelaxedScanTest): <NEW_LINE> <INDENT> extra = 1
Customized relaxed potential energy surface scan unittest
62598eff7c178a314d78be4f
class UserRepository(CrudRepository): <NEW_LINE> <INDENT> def __init__(self, file: str='users.json') -> None: <NEW_LINE> <INDENT> super().__init__(file) <NEW_LINE> <DEDENT> def prune(self, date_prop: str, date_format: str, days: float=30) -> None: <NEW_LINE> <INDENT> modified = False <NEW_LINE> for model in self.read()...
Used to manage a repository of users
62598eff7cff6e4e811b4398
class ConsumerQueryManager(object): <NEW_LINE> <INDENT> def find_all(self): <NEW_LINE> <INDENT> all_consumers = list(Consumer.get_collection().find()) <NEW_LINE> return all_consumers <NEW_LINE> <DEDENT> def find_by_id(self, id): <NEW_LINE> <INDENT> collection = Consumer.get_collection() <NEW_LINE> consumer = collection...
Manager used to process queries on consumers. Consumers returned from these calls are consumer SON objects from the database.
62598eff442bda511e95ae15
class MaxSizePacketiser(Axon.Component.component): <NEW_LINE> <INDENT> def __init__(self, maxsize=1000): <NEW_LINE> <INDENT> super(MaxSizePacketiser, self).__init__() <NEW_LINE> self.maxsize=maxsize <NEW_LINE> <DEDENT> def main(self): <NEW_LINE> <INDENT> maxsize = self.maxsize <NEW_LINE> buffer = "" <NEW_LINE> while 1:...
This is a simple class whose purpose is to take a data stream and convert it into packets of a maximum size. The default packet size is 1000 bytes. This component was created due to limitations of multicast meaning packets get discarded more easily over a certain size. Example usage:: Pipeline( ReadFi...
62598eff377c676e912f623e
class UserService(Resource): <NEW_LINE> <INDENT> def post(self): <NEW_LINE> <INDENT> json_data = request.get_json(force=True) <NEW_LINE> user = UserDB() <NEW_LINE> user.user_id = json_data['id'] <NEW_LINE> user.name = json_data['name'] <NEW_LINE> user.email = json_data['email'] <NEW_LINE> user.roles = json_data['roles'...
Method for user
62598eff55399d3f05624eda
class AnimationModule(AbstractModule): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.next = None <NEW_LINE> <DEDENT> def post(self, data): <NEW_LINE> <INDENT> ipc = data[DATA_KEY_IPC] <NEW_LINE> if self.next is None and data.get(DATA_KEY_ANIMATION, None) is not None: <NEW_LINE> <INDENT> self.next = d...
This modules takes a animation, which should be played, from data['Animation'] and plays it. The module takes care to just play one animation at a time by just taking the next animation if there is no animation played currently. .. Warning:: This means that while a aniamtion is played (or :mod:`bitbots.ipc.ipc.Sh...
62598eff63b5f9789fe83b14
class Category(models.Model): <NEW_LINE> <INDENT> title = models.CharField(_('title'), max_length=255) <NEW_LINE> slug = models.SlugField(help_text=_('used for publication'), unique=True, max_length=255) <NEW_LINE> description = models.TextField(_('description'), blank=True) <NEW_LINE> parent = models.ForeignKey('self'...
Category object for Entry
62598effbf627c535bcafe28
class IMInvert: <NEW_LINE> <INDENT> def __init__(self, image:str): <NEW_LINE> <INDENT> self.image = image <NEW_LINE> im = Image.open(self.image) <NEW_LINE> w, h = im.size <NEW_LINE> self.im_final = Image.new('RGB', size=im.size) <NEW_LINE> for x in range(w): <NEW_LINE> <INDENT> for y in range(h): <NEW_LINE> <INDENT> px...
Class responsible for applying the invert filter. : param image: Image to be applied to the filter. : param adjust: Adjustment level.
62598efffff4ab517ebcc187
class ApiEntityReference(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, id: Optional[str] = None, **kwargs ): <NEW_LINE> <INDENT> super(ApiEntityReference, self).__init__(**kwargs) <NEW_LINE> self.id = id
The API entity reference. :ivar id: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... :vartype id: str
62598eff2c8b7c6e89bd2177
class RootWidget(BoxLayout): <NEW_LINE> <INDENT> tx_dict = {} <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(RootWidget, self).__init__(**kwargs) <NEW_LINE> for idx, val in enumerate(tx_list): <NEW_LINE> <INDENT> self.tx_dict[idx] = Button(text="tx_id: {0} | amount: {1:.4f}".format(val[0], val[1]), ...
Root Kivy accordion widget class
62598eff099cdd3c636748b1
class TestUserService(BaseTestCase): <NEW_LINE> <INDENT> def test_users(self): <NEW_LINE> <INDENT> rv = self.client.get('/api/v0/users/health') <NEW_LINE> data = json.loads(rv.data.decode()) <NEW_LINE> self.assertEqual(rv.status_code, 200) <NEW_LINE> self.assertIn('Users service healthy!', data['message']) <NEW_LINE> s...
Tests for the Users Service.
62598eff5fc7496912d4774d
class ROS_Control(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.is_online = False <NEW_LINE> self.ROS_MASTER_URI = '' <NEW_LINE> self.ROS_PACKAGE_PATH = '' <NEW_LINE> <DEDENT> def check_rosmaster(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> rosgraph.Master('/rostopic').getPid() <NEW_L...
Python class for handling basic ROS Communications
62598effbe7bc26dc925133e
class PartyInvitePacket(HallPacket): <NEW_LINE> <INDENT> type = 'party_invite' <NEW_LINE> def __init__(self, dismiss_time): <NEW_LINE> <INDENT> self.dismiss_time = dismiss_time <NEW_LINE> <DEDENT> def _get_data(self): <NEW_LINE> <INDENT> return {'dismiss_time': self.dismiss_time}
Приглашение начать игру.
62598effdc8b845886d51f7c
class OurDistributedSampler(DistributedSampler): <NEW_LINE> <INDENT> def __init__(self, dataset, num_replicas=None, rank=None, shuffle=True): <NEW_LINE> <INDENT> super().__init__(dataset, num_replicas=num_replicas, rank=rank) <NEW_LINE> self.shuffle = shuffle <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> ...
A sampler for language models with the option to not shuffle.
62598eff656771135c48803f
class ResidualGatedGCNModel(nn.Module): <NEW_LINE> <INDENT> def __init__(self, config, dtypeFloat, dtypeLong): <NEW_LINE> <INDENT> super(ResidualGatedGCNModel, self).__init__() <NEW_LINE> self.dtypeFloat = dtypeFloat <NEW_LINE> self.dtypeLong = dtypeLong <NEW_LINE> self.num_nodes = config.num_nodes <NEW_LINE> self.node...
Residual Gated GCN Model for outputting predictions as edge adjacency matrices. References: Paper: https://arxiv.org/pdf/1711.07553v2.pdf Code: https://github.com/xbresson/spatial_graph_convnets
62598eff4428ac0f6e656f03
class ObjectCursor(Cloneable): <NEW_LINE> <INDENT> def __init__(self, field=None): <NEW_LINE> <INDENT> self._field = field <NEW_LINE> <DEDENT> def __getattr__(self, name): <NEW_LINE> <INDENT> debug(D_DATASET, 'getattr({0})'.format(name)) <NEW_LINE> return self.clone(_field=name) <NEW_LINE> <DEDENT> def __eq__(self, oth...
Weaver ObjectCursor class. This class allows the user to create a curried query for objects. Each :class:`ObjectCursor` object has a ``_field`` attribute which is used to store the ``field`` to be queried against. This attribute is set when first accessed (i.e. ``__getattr__``). Subsequent operators can then used t...
62598eff21bff66bcd72160c
@pulumi.output_type <NEW_LINE> class GetAppSecSiemSettingsResult: <NEW_LINE> <INDENT> def __init__(__self__, config_id=None, id=None, json=None, output_text=None): <NEW_LINE> <INDENT> if config_id and not isinstance(config_id, int): <NEW_LINE> <INDENT> raise TypeError("Expected argument 'config_id' to be a int") <NEW_L...
A collection of values returned by getAppSecSiemSettings.
62598eff3d592f4c4edb98a4
class OrderSet(domainresource.DomainResource): <NEW_LINE> <INDENT> resource_name = "OrderSet" <NEW_LINE> def __init__(self, jsondict=None, strict=True): <NEW_LINE> <INDENT> self.action = None <NEW_LINE> self.library = None <NEW_LINE> self.moduleMetadata = None <NEW_LINE> super(OrderSet, self).__init__(jsondict=jsondict...
The definition of an order set. This resource allows for the definition of an order set as a sharable, consumable, and executable artifact in support of clinical decision support.
62598eff10dbd63aa1c6f536
class ResourceAccess(Model): <NEW_LINE> <INDENT> _validation = { 'id': {'required': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, } <NEW_LINE> def __init__(self, id, type=None): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.type = type
Specifies an OAuth 2.0 permission scope or an app role that an application requires. The resourceAccess property of the RequiredResourceAccess type is a collection of ResourceAccess. :param id: The unique identifier for one of the OAuth2Permission or AppRole instances that the resource application exposes. :type id: ...
62598effa05bb46b3848922d
class System(BaseElement): <NEW_LINE> <INDENT> def __init__(self,text :str,event_name: SystemEvents): <NEW_LINE> <INDENT> super().__init__(text,'SYSTEM') <NEW_LINE> self.event = event_name <NEW_LINE> self.payload = {} <NEW_LINE> <DEDENT> def to_hsl(self): <NEW_LINE> <INDENT> hsl = super().to_hsl() <NEW_LINE> data = { '...
create system messages hsl Attributes ---------- event_name : SystemEvents the type of the System Event to be sent payload : dict additonal data sent as payload
62598efff548e778e5969f3d
class BaseTestCase(testtools.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(BaseTestCase, self).setUp() <NEW_LINE> self.useFixture(fixtures.NestedTempfile()) <NEW_LINE> self.useFixture(fixtures.TempHomeDir()) <NEW_LINE> self.useFixture(fixtures.MockPatchObject(sys, 'exit', side_effect=Unexpec...
Light weight base test class. This is a placeholder that will eventually go away once the setup/teardown in TestCase is properly trimmed down to the bare essentials. This is really just a play to speed up the tests by eliminating unnecessary work.
62598eff26068e7796d4b312
class InitDescriptor(object): <NEW_LINE> <INDENT> __slots__ = 'fields', 'user_init_is_injected', 'user_init_fun', 'user_init_args_before', 'ancestor_fields_first', 'ownercls' <NEW_LINE> def __init__(self, fields=None, user_init_is_injected=False, user_init_fun=None, user_init_args_before=True, ancestor_f...
A class member descriptor for the `__init__` method that we create with `make_init`. The first time people access `cls.__init__`, the actual method will be created and injected in the class. This descriptor will then disappear and the class will behave normally. The reason why we do not create the init method directly...
62598eff8a349b6b43684bfa
class ComponentTests(ossie.utils.testing.ScaComponentTestCase): <NEW_LINE> <INDENT> def testScaBasicBehavior(self): <NEW_LINE> <INDENT> execparams = self.getPropertySet(kinds=("execparam",), modes=("readwrite", "writeonly"), includeNil=False) <NEW_LINE> execparams = dict([(x.id, any.from_any(x.value)) for x in execpara...
Test for all component implementations in streams_to_stream_ii_2i
62598eff60cbc95b06362ce9
class TestFetchException(datadriven.DataDrivenTestCase): <NEW_LINE> <INDENT> cases = [ Exception(), DidFetch(), ValueError(), RuntimeError(), ] <NEW_LINE> if sys.version_info[:2] < (2, 6): <NEW_LINE> <INDENT> cases.append('oi!') <NEW_LINE> <DEDENT> def __init__(self, exc): <NEW_LINE> <INDENT> datadriven.DataDrivenTestC...
Make sure exceptions get passed through discover function from fetcher.
62598eff3d592f4c4edb98a6
class DeviceUpdate(object): <NEW_LINE> <INDENT> def __init__(self, push_notification_token=None, app_version=None, info=None): <NEW_LINE> <INDENT> self.swagger_types = { 'push_notification_token': 'str', 'app_version': 'str', 'info': 'ClientInfo' } <NEW_LINE> self.attribute_map = { 'push_notification_token': 'pushNotif...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598effbf627c535bcafe2c
class UrlFinder(HTMLParser, ABC): <NEW_LINE> <INDENT> def __init__(self, my_tag): <NEW_LINE> <INDENT> HTMLParser.__init__(self) <NEW_LINE> self.links = [] <NEW_LINE> self.my_tag = my_tag <NEW_LINE> <DEDENT> def handle_starttag(self, tag, attrs): <NEW_LINE> <INDENT> attrs = dict(attrs) <NEW_LINE> if self.my_tag == tag: ...
Tag parser base class
62598eff5fdd1c0f98e5c95d