code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class TestINImage(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 make_instance(self, include_optional): <NEW_LINE> <INDENT> if include_optional : <NEW_LINE> <INDENT> return INImage( proto = 'nudit... | INImage unit test stubs | 6259907f1f5feb6acb164680 |
class Bucketlist(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'bucketlists' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> name = db.Column(db.String(255)) <NEW_LINE> date_created = db.Column(db.DateTime, default=db.func.current_timestamp()) <NEW_LINE> date_modified = db.Column( db.DateTime, defau... | Bucketlist table db model | 6259907f656771135c48ad73 |
class NormalKLDivergence(BaseCost): <NEW_LINE> <INDENT> def __init__( self, elementwise=False, clip_max=1e+10, clip_min=1e-10, scope='NormalKLDivergence'): <NEW_LINE> <INDENT> super(NormalKLDivergence, self).__init__( elementwise=elementwise, clip_max=clip_max, clip_min=clip_min, scope=scope) <NEW_LINE> <DEDENT> def __... | KL-Divegence against univariate normal distribution.
.. math::
loss = \frac{1}{2} (\mu^2 + \sigma^2 - \log(clip(\sigma^2)) -1)
Parameters
----------
elementwise : Bool
When True, the cost tesnor returned by `build` method has the same
shape as its input Tensors. When False, the cost tensor is reduced to
... | 6259907f55399d3f05627f9c |
class MultipleChoiceTask(Task): <NEW_LINE> <INDENT> def update_metrics(self, out, batch): <NEW_LINE> <INDENT> logits = out["logits"] <NEW_LINE> labels = batch["label"] <NEW_LINE> assert len(self.get_scorers()) > 0, "Please specify a score metric" <NEW_LINE> for scorer in self.get_scorers(): <NEW_LINE> <INDENT> scorer(l... | Generic task class for a multiple choice
where each example consists of a question and
a (possibly variable) number of possible answers | 6259907f99fddb7c1ca63b1c |
class DefaultConfig: <NEW_LINE> <INDENT> PORT = 12345 <NEW_LINE> DBFILE = "t-800.db" <NEW_LINE> APP_AUTHORITY = "https://login.microsoftonline.com" <NEW_LINE> APP_SCOPE = [ "https://graph.microsoft.com/.default" ] <NEW_LINE> APP_ID = os.environ.get("MicrosoftAppId", "95dc3706-fe69-4ee2-9879-750660f64753") <NEW_LINE> AP... | Bot Configuration | 6259907f167d2b6e312b82d8 |
class IoTHubPipelineConfig(BasePipelineConfig): <NEW_LINE> <INDENT> def __init__(self, hostname, device_id, module_id=None, product_info="", **kwargs): <NEW_LINE> <INDENT> super().__init__(hostname=hostname, **kwargs) <NEW_LINE> self.device_id = device_id <NEW_LINE> self.module_id = module_id <NEW_LINE> self.product_in... | A class for storing all configurations/options for IoTHub clients in the Azure IoT Python Device Client Library. | 6259907f283ffb24f3cf5328 |
class WebWebAnswer(SearchResultsAnswer): <NEW_LINE> <INDENT> _validation = { '_type': {'required': True}, 'id': {'readonly': True}, 'web_search_url': {'readonly': True}, 'follow_up_queries': {'readonly': True}, 'query_context': {'readonly': True}, 'total_estimated_matches': {'readonly': True}, 'is_family_friendly': {'r... | Defines a list of relevant webpage links.
Variables are only populated by the server, and will be ignored when
sending a request.
:param _type: Constant filled by server.
:type _type: str
:ivar id: A String identifier.
:vartype id: str
:ivar web_search_url: The URL To Bing's search result for this item.
:vartype web_... | 6259907f67a9b606de5477ea |
class User(object): <NEW_LINE> <INDENT> def __init__(self, data=None): <NEW_LINE> <INDENT> if data: <NEW_LINE> <INDENT> self.first_name = data["first_name"] <NEW_LINE> self.last_name = data["last_name"] <NEW_LINE> if 'id' in data: <NEW_LINE> <INDENT> self.id = data["id"] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> se... | Contains basic user data.
Attributes:
id(long, optional): ID of the user
first_name(str, optional): First name of the user
last_name(str, optional): Last name of the user
email(str, optional): Email of the user
registration_status(str, optional): Registration status of the user
picture(:obj:`sp... | 6259907f97e22403b383c988 |
class TblWSpacesAndDots(InternalBase): <NEW_LINE> <INDENT> __tablename__ = "this is.an AWFUL.name" <NEW_LINE> __table_args__ = {'schema': 'another AWFUL.name for.schema'} <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> geom = Column(String) | Dummy class to test names with dots and spaces.
No metadata is attached so the dialect is default SQL, not postgresql. | 6259907f7d43ff2487428159 |
class Logger(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def __new__(cls, filename): <NEW_LINE> <INDENT> if not filename: <NEW_LINE> <INDENT> return Printer() <NEW_LINE> <DEDENT> elif filename.endswith(".asc"): <NEW_LINE> <INDENT> return ASCWriter(filename) <NEW_LINE> <DEDENT> elif filename.endswith(".blf"): ... | Logs CAN messages to a file.
The format is determined from the file format which can be one of:
* .asc: :class:`can.ASCWriter`
* .blf :class:`can.BLFWriter`
* .csv: :class:`can.CSVWriter`
* .db: :class:`can.SqliteWriter`
* .log :class:`can.CanutilsLogWriter`
* other: :class:`can.Printer`
Note this class i... | 6259907f5fdd1c0f98e5fa08 |
@implementer(IVocabularyFactory) <NEW_LINE> class GroupsVocabulary(object): <NEW_LINE> <INDENT> def __call__(self, context): <NEW_LINE> <INDENT> items = [] <NEW_LINE> site = getSite() <NEW_LINE> gtool = getToolByName(site, 'portal_groups', None) <NEW_LINE> if gtool is not None: <NEW_LINE> <INDENT> groups = gtool.listGr... | Vocabulary factory for groups in the portal
>>> from zope.component import queryUtility
>>> from plone.app.vocabularies.tests.base import create_context
>>> from plone.app.vocabularies.tests.base import DummyTool
>>> name = 'plone.app.vocabularies.Groups'
>>> util = queryUtility(IVocabularyFactory, name)
>>> context ... | 6259907f76e4537e8c3f1008 |
class PyConfigobj(PythonPackage): <NEW_LINE> <INDENT> homepage = "https://github.com/DiffSK/configobj" <NEW_LINE> pypi = "configobj/configobj-5.0.6.tar.gz" <NEW_LINE> version('5.0.6', sha256='a2f5650770e1c87fb335af19a9b7eb73fc05ccf22144eb68db7d00cd2bcb0902') <NEW_LINE> version('4.7.2', sha256='515ff923462592e8321df8b48... | Config file reading, writing and validation.
| 6259907f3346ee7daa3383a6 |
class _No: <NEW_LINE> <INDENT> def __init__(self, valor, proximo = None): <NEW_LINE> <INDENT> self.valor = valor <NEW_LINE> self.proximo = proximo <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "_No({})".format(self.valor.__repr__()) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return ... | Classe auxiliar Nó. | 6259907f099cdd3c6367613e |
class ValidateTestMixin(object): <NEW_LINE> <INDENT> def validate_tests(self, request, *args, **kwargs): <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> def dispatch(self, request, *args, **kwargs): <NEW_LINE> <INDENT> x = self.validate_tests(request, *args, **kwargs) <NEW_LINE> if x != None: <NEW_LINE> <INDENT> re... | Mixin que permita la validacion de ciertos test antes de ingresar a una vista | 6259907fad47b63b2c5a92da |
class Ship(games.Sprite): <NEW_LINE> <INDENT> def update(self): <NEW_LINE> <INDENT> if games.keyboard.is_pressed(games.K_RIGHT): <NEW_LINE> <INDENT> self.angle -= 1 <NEW_LINE> <DEDENT> if games.keyboard.is_pressed(games.K_LEFT): <NEW_LINE> <INDENT> self.angle += 1 <NEW_LINE> <DEDENT> if games.keyboard.is_pressed(games.... | A moving ship. | 6259907f7cff6e4e811b74ca |
class RedisSpider(RedisMixin, Spider): <NEW_LINE> <INDENT> def __init__(self, life=None, proxy=None, *args, **kargs): <NEW_LINE> <INDENT> super(RedisSpider, self).__init__(*args, **kargs) <NEW_LINE> self.life = None if life is None else float(life) <NEW_LINE> self.proxy = None if proxy is None else proxy.decode('utf-8'... | Spider that reads urls from redis queue when idle. | 6259907f283ffb24f3cf532a |
class UserList(APIView): <NEW_LINE> <INDENT> def get(self, request, format=None): <NEW_LINE> <INDENT> users = User.objects.all() <NEW_LINE> serializer = MobileSerializer(users, many=True) <NEW_LINE> return Response(serializer.data) <NEW_LINE> <DEDENT> def post(self, request, format=None): <NEW_LINE> <INDENT> serializer... | List all code reports, or create a new report. | 6259907faad79263cf430244 |
class ReconnectTestCase(TestCase): <NEW_LINE> <INDENT> @defer.inlineCallbacks <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> yield super(ReconnectTestCase, self).setUp() <NEW_LINE> self.called = [] <NEW_LINE> self.remote_obj = 'remote' <NEW_LINE> self.root_obj = FakeRootObject(self.called, self.remote_obj) <NEW_LINE> ... | Test the reconnection when service is dead. | 6259907f7d43ff248742815a |
class UserViewsTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @unittest.skip("test missing") <NEW_LINE> def testAccountSummary(self): <NEW_LINE> <INDENT> self.fail("Test not implemented") <NEW_LINE> <DEDENT> @unittest.skip("test missing") <NEW_LINE> def te... | Tests the views as an unprivileged user | 6259907f5fdd1c0f98e5fa0a |
class CancelarUs(UpdateView): <NEW_LINE> <INDENT> template_name = 'us/cancelar_us.html' <NEW_LINE> model = us <NEW_LINE> form_class = CancelarForm <NEW_LINE> @method_decorator(login_required) <NEW_LINE> def dispatch(self, *args, **kwargs): <NEW_LINE> <INDENT> return super(CancelarUs, self).dispatch(*args, **kwargs) <NE... | *Vista Basada en Clase para modificar un sprint:*
+*template_name*: template a ser renderizado
+*model*: modelo que se va modificar
+*form_class*:Formulario para actualizar el usuario
+*success_url*: url a ser redireccionada en caso de exito | 6259907f5fc7496912d48fb0 |
class ModelItems(TreeItems): <NEW_LINE> <INDENT> ITEM_CLASS = ModelItem <NEW_LINE> def item_by_named_path(self, named_path, match_column=0, sep='/', column=0): <NEW_LINE> <INDENT> items = self.row_by_named_path(named_path, match_column=match_column, sep=sep) <NEW_LINE> if items: <NEW_LINE> <INDENT> return items[column]... | Allow to manipulate all modelitems in a QAbstractModelItem or derived.
:var items: list of :class:`ModelItem` | 6259907f5fcc89381b266ea1 |
@config_entries.HANDLERS.register('http2mqtt2hass') <NEW_LINE> class FlowHandler(config_entries.ConfigFlow): <NEW_LINE> <INDENT> VERSION = 1 <NEW_LINE> CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_PUSH <NEW_LINE> _hassio_discovery = None <NEW_LINE> async def async_step_user(self, user_input=None): <NEW_LINE> <IND... | Handle a config flow. | 6259907fec188e330fdfa334 |
class MediaItemJSONLDSerializer(JSONLDSerializer): <NEW_LINE> <INDENT> jsonld_context = 'http://schema.org' <NEW_LINE> jsonld_type = 'VideoObject' <NEW_LINE> id = serializers.HyperlinkedIdentityField( view_name='api:media_item', help_text='Unique URL for the media', read_only=True) <NEW_LINE> name = serializers.CharFie... | Serialise media items as a JSON-LD VideoObject (https://schema.org/VideoObject) taking into
account Google's recommended fields:
https://developers.google.com/search/docs/data-types/video. | 6259907f92d797404e3898a1 |
class LogoutView(APIView): <NEW_LINE> <INDENT> permission_classes = (IsAuthenticated,) <NEW_LINE> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> if allauth_settings.LOGOUT_ON_GET: <NEW_LINE> <INDENT> response = self.logout(request) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> res... | Calls Django logout method and delete the Token object
assigned to the current User object.
Accepts/Returns nothing. | 6259907f23849d37ff852b43 |
class GetListResultSet(ResultSet): <NEW_LINE> <INDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None) | Retrieve the value for the "Response" output from this choreography execution. (The response from LittleSis.org.) | 6259907ff548e778e596d01c |
class TestAnalyzeClientMemoryNonexistantPluginWithExisting( TestAnalyzeClientMemoryNonexistantPlugin): <NEW_LINE> <INDENT> def setUpRequest(self): <NEW_LINE> <INDENT> self.args["request"].plugins = [ rdf_rekall_types.PluginRequest(plugin="pslist"), rdf_rekall_types.PluginRequest(plugin="idontexist")] | Tests flow failure when failing and non failing plugins run together. | 6259907f1f5feb6acb164684 |
class TestXmlNs0AddDiagramPictureRequest(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 testXmlNs0AddDiagramPictureRequest(self): <NEW_LINE> <INDENT> pass | XmlNs0AddDiagramPictureRequest unit test stubs | 6259907f5166f23b2e244e63 |
class NdpHeader(object): <NEW_LINE> <INDENT> swagger_types = { 'dst_ip': 'str', 'msg_type': 'str' } <NEW_LINE> attribute_map = { 'dst_ip': 'dst_ip', 'msg_type': 'msg_type' } <NEW_LINE> def __init__(self, dst_ip=None, msg_type='NEIGHBOR_SOLICITATION'): <NEW_LINE> <INDENT> self._dst_ip = None <NEW_LINE> self._msg_type = ... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259907f656771135c48ad75 |
class Cos(nn.Module): <NEW_LINE> <INDENT> def __init__(self, shot_num=4, sim_channel=512): <NEW_LINE> <INDENT> super(Cos, self).__init__() <NEW_LINE> self.shot_num = shot_num <NEW_LINE> self.channel = sim_channel <NEW_LINE> self.conv1 = nn.Conv2d(1, self.channel, kernel_size=(self.shot_num//2, 1)) <NEW_LINE> <DEDENT> d... | Cosine similarity | 6259907f3346ee7daa3383a7 |
class LxmertTokenizerFast(BertTokenizerFast): <NEW_LINE> <INDENT> vocab_files_names = VOCAB_FILES_NAMES <NEW_LINE> pretrained_vocab_files_map = PRETRAINED_VOCAB_FILES_MAP <NEW_LINE> max_model_input_sizes = PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES <NEW_LINE> pretrained_init_configuration = PRETRAINED_INIT_CONFIGURATION | Construct a "fast" LXMERT tokenizer (backed by HuggingFace's `tokenizers` library).
:class:`~transformers.LxmertTokenizerFast` is identical to :class:`~transformers.BertTokenizerFast` and runs
end-to-end tokenization: punctuation splitting and wordpiece.
Refer to superclass :class:`~transformers.BertTokenizerFast` fo... | 6259907fa8370b77170f1e5b |
class CommandTransformer(Transformer): <NEW_LINE> <INDENT> start = Command <NEW_LINE> command_imitate_user = lambda _, x: ("imitate_user", x[0].value[2:-1]) <NEW_LINE> arguments = lambda _, x: ("arguments", x) <NEW_LINE> argument_depth = lambda _, x: ("depth", int(x[0].value)) <NEW_LINE> argument_prompt = lambda _, x: ... | Transform parse tree. | 6259907ff548e778e596d01d |
class FileLineProgressBar(tqdm): <NEW_LINE> <INDENT> def __init__(self, infile, outfile, **kwargs): <NEW_LINE> <INDENT> disable = False if "disable" not in kwargs else kwargs["disable"] <NEW_LINE> if infile is not None and (infile.name == "<stdin>"): <NEW_LINE> <INDENT> disable = True <NEW_LINE> <DEDENT> if outfile is ... | A progress bar based on input file line count. Counts an input file by lines.
This tries to read the entire file and count newlines in a robust way. | 6259907fd268445f2663a8a4 |
class ModuleList(Module): <NEW_LINE> <INDENT> def __init__(self, modules=None): <NEW_LINE> <INDENT> super(ModuleList, self).__init__() <NEW_LINE> if modules is not None: <NEW_LINE> <INDENT> self += modules <NEW_LINE> <DEDENT> <DEDENT> def _get_abs_string_index(self, idx): <NEW_LINE> <INDENT> idx = operator.index(idx) <... | Holds submodules in a list.
ModuleList can be indexed like a regular Python list, but modules it
contains are properly registered, and will be visible by all Module methods.
Arguments:
modules (iterable, optional): an iterable of modules to add
Example::
class MyModule(nn.Module):
def __init__(self)... | 6259907f63b5f9789fe86bf4 |
class FlowLayout(Widget): <NEW_LINE> <INDENT> def __init__(self, name, desc=None, prop=None, style=None, css_cls=None): <NEW_LINE> <INDENT> Widget.__init__(self, name, desc=desc, tag='div', prop=prop, style=style, css_cls=css_cls) <NEW_LINE> self.add_css_class('ui-widget') <NEW_LINE> self.add_css_class('ui-widget-conte... | The simplest layout to put the widgets one after another in the flow
| 6259907ff548e778e596d01e |
@attr.s <NEW_LINE> class CommandLineBinding(object): <NEW_LINE> <INDENT> position = attr.ib(default=None) <NEW_LINE> prefix = attr.ib(default=None) <NEW_LINE> separate = attr.ib(default=True, type=bool) <NEW_LINE> itemSeparator = attr.ib(default=None) <NEW_LINE> valueFrom = attr.ib(default=None) <NEW_LINE> shellQuote =... | Define the binding behavior when building the command line. | 6259907f91f36d47f2231bd4 |
class ParamSchema(dict): <NEW_LINE> <INDENT> def __init__(self, schema): <NEW_LINE> <INDENT> super(ParamSchema, self).__init__(schema) <NEW_LINE> <DEDENT> def do_check(self, name, value, keys): <NEW_LINE> <INDENT> for k in keys: <NEW_LINE> <INDENT> check = self.check(k) <NEW_LINE> const = self.get(k) <NEW_LINE> if chec... | Parameter schema. | 6259907ffff4ab517ebcf2a4 |
class CursorBase(MySQLCursorAbstract): <NEW_LINE> <INDENT> _raw = False <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._description = None <NEW_LINE> self._rowcount = -1 <NEW_LINE> self._last_insert_id = None <NEW_LINE> self.arraysize = 1 <NEW_LINE> super(CursorBase, self).__init__() <NEW_LINE> <DEDENT> def ca... | Base for defining MySQLCursor. This class is a skeleton and defines
methods and members as required for the Python Database API
Specification v2.0.
It's better to inherite from MySQLCursor. | 6259907f656771135c48ad76 |
class StrategyMinimax(Strategy): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return "StrategyMinimax()" <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> return isinstance(other, StrategyMinimax) <NEW_LINE> <DEDENT> def suggest_move(self, state): <NEW_LINE> <INDENT> self.maximizer = state... | Interface to suggest moves based on the Minimax Pruning algorithm. | 6259907f2c8b7c6e89bd5272 |
class RotYGate(eigen_gate.EigenGate, gate_features.TextDiagrammable, gate_features.SingleQubitGate, gate_features.QasmConvertibleGate): <NEW_LINE> <INDENT> def __init__(self, *, half_turns: Optional[Union[value.Symbol, float]] = None, rads: Optional[float] = None, degs: Optional[float] = None) -> None: <NEW_LINE> <INDE... | Fixed rotation around the Y axis of the Bloch sphere. | 6259907f099cdd3c63676140 |
@dataclass(init=True, repr=True, eq=True, order=False, frozen=True) <NEW_LINE> class Point: <NEW_LINE> <INDENT> x: int <NEW_LINE> y: int <NEW_LINE> def __add__(self, other: "Point") -> "Point": <NEW_LINE> <INDENT> return Point(self.x + other.x, self.y + other.y) <NEW_LINE> <DEDENT> def __sub__(self, other: "Point") -> ... | A simple container to represent a single point in the map's grid
added functionality for adding, subtracting, or comparing equality of two points
can be iterated to get x- and y-coordinates
Args:
x- and y-coordinate for the point | 6259907ff9cc0f698b1c6013 |
class Raindrop: <NEW_LINE> <INDENT> strSrf = 'Not defined' <NEW_LINE> def __init__(self,p3dLocation): <NEW_LINE> <INDENT> self.p3dLocation = p3dLocation <NEW_LINE> <DEDENT> def falls(): <NEW_LINE> <INDENT> p3dProjectedPt = rs.ProjectPointToSurface(self.p3dLocation,strSrf,(0,0,-1)) <NEW_LINE> self.p3dLocation = p3dProje... | Implements a raindrop over a surface | 6259907f283ffb24f3cf532d |
class RAT6169(ratreleases.RatRelease6): <NEW_LINE> <INDENT> def __init__(self, system): <NEW_LINE> <INDENT> super(RAT6169, self).__init__('rat-6.16.9', system, 'root-5.34.36', '6.16.9') | Rat release-6.16.9, install package. | 6259907f4428ac0f6e659fbc |
class RSAPublicKey(_RSAKey): <NEW_LINE> <INDENT> def __init__(self, pub, pub_key): <NEW_LINE> <INDENT> super().__init__(pub) <NEW_LINE> self._pub_key = pub_key <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def construct(cls, n, e): <NEW_LINE> <INDENT> pub = rsa.RSAPublicNumbers(e, n) <NEW_LINE> pub_key = pub.public_key(d... | A shim around PyCA for RSA public keys | 6259907f66673b3332c31e8d |
class SGDW(Optimizer): <NEW_LINE> <INDENT> def __init__(self, params, lr=0.01, momentum=0.9, dampening=0, weight_decay=0, nesterov=False): <NEW_LINE> <INDENT> if lr <= 0.0: <NEW_LINE> <INDENT> raise ValueError("Invalid learning rate: {}".format(lr)) <NEW_LINE> <DEDENT> if momentum < 0.0: <NEW_LINE> <INDENT> raise Value... | Implements stochastic gradient descent (optionally with momentum).
Args:
params (iterable): iterable of parameters to optimize or dicts defining
parameter groups
lr (float): learning rate
momentum (float, optional): momentum factor (default: 0)
weight_decay (float, optional): weight decay (L2 pe... | 6259907fbe7bc26dc9252b9c |
class Users: <NEW_LINE> <INDENT> def __init__(self, commands_file): <NEW_LINE> <INDENT> self.users = None <NEW_LINE> self.users_file = commands_file <NEW_LINE> self.load() <NEW_LINE> <DEDENT> def load(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> with open(self.users_file, 'r', encoding='utf-8') as f: <NEW_LINE> ... | 슬랙 그룹 내 유저들의 정보를 저장하는 클래스.
users: {'id': {'grade': Integer, 'gold': Integer, 'is_ignored': Boolean, 'is_admin': Boolean}} | 6259907f283ffb24f3cf532e |
class Other(Definition): <NEW_LINE> <INDENT> def __init__(self, definition: str) -> None: <NEW_LINE> <INDENT> self.definition = definition <NEW_LINE> super().__init__(DefinitionType.other, [definition]) <NEW_LINE> <DEDENT> def __str__(self) -> str: <NEW_LINE> <INDENT> return self.definition | Other definitions. | 6259907f92d797404e3898a3 |
class Configure(object): <NEW_LINE> <INDENT> def __init__(self, **initial_values): <NEW_LINE> <INDENT> self._properties = dict() <NEW_LINE> for x in initial_values: <NEW_LINE> <INDENT> self._properties[x] = _C(initial_values[x]) <NEW_LINE> <DEDENT> <DEDENT> def __setitem__(self, pname, value): <NEW_LINE> <INDENT> if no... | A simple configuration object. Enables setting and getting key-value pairs | 6259907f3317a56b869bf28d |
class ttHFatJetAnalyzer( Analyzer ): <NEW_LINE> <INDENT> def __init__(self, cfg_ana, cfg_comp, looperName): <NEW_LINE> <INDENT> super(ttHFatJetAnalyzer,self).__init__(cfg_ana, cfg_comp, looperName) <NEW_LINE> self.jetLepDR = self.cfg_ana.jetLepDR if hasattr(self.cfg_ana, 'jetLepDR') else 0.5 <NEW_LINE> self.lepPtMin =... | Taken from RootTools.JetAnalyzer, simplified, modified, added corrections | 6259907f91f36d47f2231bd5 |
class root_locus_sketch_two_pole_locations(root_locus_sketch): <NEW_LINE> <INDENT> def __init__(self, G1, G2, label_offsets=[0.2+0.2j, 0.2+0.2j], markers=['bo','g^'], inds=[1,2], **kwargs): <NEW_LINE> <INDENT> root_locus_sketch.__init__(self, **kwargs) <NEW_LINE> self.G1 = G1 <NEW_LINE> ... | A class for generating pole locations plots for comparing two
TFs and their step responses. | 6259907ffff4ab517ebcf2a6 |
class TestFunc(unittest.TestCase): <NEW_LINE> <INDENT> def test(self): <NEW_LINE> <INDENT> target = Solution() <NEW_LINE> expected = [2,3] <NEW_LINE> test = [4,3,2,7,8,2,3,1] <NEW_LINE> self.assertEqual(expected, target.findDuplicates(test)) | Test fuction | 6259907fe1aae11d1e7cf559 |
@ddt.ddt <NEW_LINE> @httpretty.activate <NEW_LINE> class TestAccessTokenExchangeView(ThirdPartyOAuthTestMixinGoogle, ThirdPartyOAuthTestMixin, _DispatchingViewTestCase): <NEW_LINE> <INDENT> view_class = views.AccessTokenExchangeView <NEW_LINE> url = reverse('exchange_access_token', kwargs={'backend': 'google-oauth2'}) ... | Test class for AccessTokenExchangeView | 6259907f2c8b7c6e89bd5274 |
@pykka.traversable <NEW_LINE> class PlaybackProvider: <NEW_LINE> <INDENT> def __init__(self, audio: Any, backend: Backend) -> None: <NEW_LINE> <INDENT> self.audio = audio <NEW_LINE> self.backend = backend <NEW_LINE> <DEDENT> def pause(self) -> bool: <NEW_LINE> <INDENT> return self.audio.pause_playback().get() <NEW_LINE... | :param audio: the audio actor
:type audio: actor proxy to an instance of :class:`mopidy.audio.Audio`
:param backend: the backend
:type backend: :class:`mopidy.backend.Backend` | 6259907f99fddb7c1ca63b20 |
class Project(AWSObject): <NEW_LINE> <INDENT> resource_type = "AWS::Rekognition::Project" <NEW_LINE> props: PropsDictType = { "ProjectName": (str, True), } | `Project <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-project.html>`__ | 6259907f8a349b6b43687cec |
class InlineModelFormList(InlineFieldList): <NEW_LINE> <INDENT> form_field_type = InlineModelFormField <NEW_LINE> def __init__(self, form, session, model, prop, inline_view, **kwargs): <NEW_LINE> <INDENT> self.form = form <NEW_LINE> self.session = session <NEW_LINE> self.model = model <NEW_LINE> self.prop = prop <NEW_L... | Customized inline model form list field. | 6259907f7cff6e4e811b74d0 |
class ProtsimLine(object): <NEW_LINE> <INDENT> def __init__(self, text=None): <NEW_LINE> <INDENT> self.org = "" <NEW_LINE> self.protgi = "" <NEW_LINE> self.protid = "" <NEW_LINE> self.pct = "" <NEW_LINE> self.aln = "" <NEW_LINE> if text is not None: <NEW_LINE> <INDENT> self.text = text <NEW_LINE> self._init_from_text(t... | Store the information for one PROTSIM line from a Unigene file.
Initialize with the text part of the PROTSIM line, or nothing.
Attributes and descriptions (access as LOWER CASE)
ORG= Organism
PROTGI= Sequence GI of protein
PROTID= Sequence ID of protein
PCT= Percent alignment
ALN= le... | 6259907f60cbc95b06365ab4 |
class MainViewTestCase(ListItem.ClickAppTestCase): <NEW_LINE> <INDENT> def test_initial_label(self): <NEW_LINE> <INDENT> app = self.launch_application() <NEW_LINE> label = app.main_view.select_single(objectName='label') <NEW_LINE> self.assertThat(label.text, Equals('Hello..')) <NEW_LINE> <DEDENT> def test_click_button_... | Generic tests for the Hello World | 6259907f5fcc89381b266ea4 |
class TerminateType_(SamlBase): <NEW_LINE> <INDENT> c_tag = 'TerminateType' <NEW_LINE> c_namespace = NAMESPACE <NEW_LINE> c_children = SamlBase.c_children.copy() <NEW_LINE> c_attributes = SamlBase.c_attributes.copy() <NEW_LINE> c_child_order = SamlBase.c_child_order[:] <NEW_LINE> c_cardinality = SamlBase.c_cardinality.... | The urn:oasis:names:tc:SAML:2.0:protocol:TerminateType element | 6259907fec188e330fdfa33a |
class DeleteMediaByID(RestServlet): <NEW_LINE> <INDENT> PATTERNS = admin_patterns("/media/(?P<server_name>[^/]+)/(?P<media_id>[^/]+)") <NEW_LINE> def __init__(self, hs: "HomeServer"): <NEW_LINE> <INDENT> self.store = hs.get_datastore() <NEW_LINE> self.auth = hs.get_auth() <NEW_LINE> self.server_name = hs.hostname <NEW_... | Delete local media by a given ID. Removes it from this server. | 6259907f7d847024c075de6d |
class StudentBiasedCoinModel(SkillModel): <NEW_LINE> <INDENT> def __init__( self, history, filtered_history=None, name_of_user_id='student_id'): <NEW_LINE> <INDENT> self.history = history <NEW_LINE> if filtered_history is None: <NEW_LINE> <INDENT> _logger.warning( 'No filtered history available to train biased coin mod... | Class for simple skill model where students are modeled as biased
coins that flip to pass/fail assessments
Can be considered a zero-parameter logistic model from Item Response Theory (0PL IRT) | 6259907ff548e778e596d022 |
class LinuxRemovableDrivePlugin(RemovableDrivePlugin.RemovableDrivePlugin): <NEW_LINE> <INDENT> def checkRemovableDrives(self): <NEW_LINE> <INDENT> drives = {} <NEW_LINE> for volume in glob.glob("/media/*"): <NEW_LINE> <INDENT> if os.path.ismount(volume): <NEW_LINE> <INDENT> drives[volume] = os.path.basename(volume) <N... | Support for removable devices on Linux.
TODO: This code uses the most basic interfaces for handling this.
We should instead use UDisks2 to handle mount/unmount and hotplugging events. | 6259907f3d592f4c4edbc8a7 |
class SongMetadataBase: <NEW_LINE> <INDENT> def __init__(self, title=None, url=None, query=None): <NEW_LINE> <INDENT> self.title = title <NEW_LINE> self.search_query = query <NEW_LINE> self.URL = url <NEW_LINE> self.better_search_kw = [ ] <NEW_LINE> <DEDENT> def _add_better_search_words(self): <NEW_LINE> <INDENT> for k... | Base class to store song metadata. | 6259907f2c8b7c6e89bd5276 |
class ShowtimeViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Showtime.objects.all() <NEW_LINE> serializer_class = ShowtimeSerializer <NEW_LINE> permission_classes = [IsThisTheaterAdminOrReadOnly] <NEW_LINE> def create(self, request): <NEW_LINE> <INDENT> serializer = ShowtimeSerializer(data=request.data,... | API endpoint that allows showtimes to be viewed or edited. | 6259907f099cdd3c63676142 |
class PyDepGraphItr(MayaToPyItr): <NEW_LINE> <INDENT> pass | This wraps MItDependencyGraph iterator and turns it into a python iterator | 6259907f99fddb7c1ca63b21 |
class MinimalAmount(Amount): <NEW_LINE> <INDENT> def __init__(self, nickels, pennies): <NEW_LINE> <INDENT> if pennies >4: <NEW_LINE> <INDENT> total_amount = Amount.value <NEW_LINE> self.pennies = (total_amount)%pennies <NEW_LINE> amount_without_pennies = total_amount-self.pennies <NEW_LINE> self.nickels = amount_withou... | An amount of nickels and pennies that is initialized with no more than
four pennies, by converting excess pennies to nickels.
>>> a = MinimalAmount(3, 7)
>>> a.nickels
4
>>> a.pennies
2
>>> a.value
22 | 6259907f167d2b6e312b82dd |
class cBorder(Widget): <NEW_LINE> <INDENT> def __init__(self,**kwargs): <NEW_LINE> <INDENT> self.aBackGroundColor:List[float] = kwargs.get('background_color',[0.5,0.5,0.5,1.0]) <NEW_LINE> self.fLineWidth:float = float(kwargs.get('linewidth','1.0')) <NEW_LINE> self.oLine:U... | Core Widget which draws a border | 6259907ff9cc0f698b1c6015 |
class QTextObject(__PyQt4_QtCore.QObject): <NEW_LINE> <INDENT> def childEvent(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def connectNotify(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def customEvent(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> d... | QTextObject(QTextDocument) | 6259907f8a349b6b43687cee |
class connection(): <NEW_LINE> <INDENT> USER = "faridz" <NEW_LINE> PORT = "5432" <NEW_LINE> DATABASE = "utilisateur" <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.connection = None <NEW_LINE> self.cursor = None <NEW_LINE> <DEDENT> def initialize_connection(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> s... | Class to manage the connection and the cursor to a database | 6259907f7cff6e4e811b74d2 |
class LscsoftAll(Package): <NEW_LINE> <INDENT> homepage = "https://wiki.ligo.org/DASWG" <NEW_LINE> url="file://" + join_path(dirname(dirname(dirname(__file__))), 'archives', 'empty.tar.gz') <NEW_LINE> version("0.1", "fbfe7b4acab1f9c5642388313270a616") <NEW_LINE> depends_on("lscsoft-internal", type='run') <NEW_LINE> dep... | Description | 6259907f66673b3332c31e91 |
class AbstractDrs(object): <NEW_LINE> <INDENT> def applyto(self, other): <NEW_LINE> <INDENT> return DrtApplicationExpression(self, other) <NEW_LINE> <DEDENT> def __neg__(self): <NEW_LINE> <INDENT> return DrtNegatedExpression(self) <NEW_LINE> <DEDENT> def __and__(self, other): <NEW_LINE> <INDENT> raise NotImplementedErr... | This is the base abstract DRT Expression from which every DRT
Expression extends. | 6259907f283ffb24f3cf5332 |
class MissingError(except_orm): <NEW_LINE> <INDENT> def __init__(self, msg): <NEW_LINE> <INDENT> super(MissingError, self).__init__('Registro inexistente.', msg) | Missing record(s). | 6259907faad79263cf43024c |
class PublishTagsStep(publish_step.UnitModelPluginStep): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(PublishTagsStep, self).__init__(step_type=constants.PUBLISH_STEP_TAGS, model_classes=[models.Tag]) <NEW_LINE> self.description = _('Publishing Tags.') <NEW_LINE> self._tag_names = set() <NEW_LINE> ... | Publish Tags. | 6259907fa05bb46b3848be71 |
class Location(models.Model): <NEW_LINE> <INDENT> SCHOOL = 'S' <NEW_LINE> CLASS = 'C' <NEW_LINE> HOME = 'H' <NEW_LINE> WORK = 'W' <NEW_LINE> TYPE_CHOICES = ( (SCHOOL, 'School'), (CLASS, 'Class'), (HOME, 'Home'), (WORK, 'Work'), ) <NEW_LINE> address = AddressField( on_delete=models.CASCADE, ) <NEW_LINE> location_type = ... | Model definition for Location. | 6259907f5fc7496912d48fb4 |
class NetworkDeviceListResult(object): <NEW_LINE> <INDENT> swagger_types = { 'response': 'list[NetworkDeviceListResultResponse]', 'version': 'str' } <NEW_LINE> attribute_map = { 'response': 'response', 'version': 'version' } <NEW_LINE> def __init__(self, response=None, version=None): <NEW_LINE> <INDENT> self._response ... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259907f92d797404e3898a5 |
class MetroFirefoxProfile(Profile): <NEW_LINE> <INDENT> preferences = { 'app.update.enabled' : False, 'app.update.metro.enabled' : False, 'browser.firstrun-content.dismissed' : True, 'browser.sessionstore.resume_from_crash': False, 'browser.shell.checkDefaultBrowser' : False, 'datareporting.healthreport.documentServerU... | Specialized Profile subclass for Firefox Metro | 6259907f1f5feb6acb16468c |
class EggCarton(sa.SimulatedAnnealing): <NEW_LINE> <INDENT> def __init__(self, M, N, K): <NEW_LINE> <INDENT> super(EggCarton, self).__init__() <NEW_LINE> self.M = M <NEW_LINE> self.N = N <NEW_LINE> self.K = K <NEW_LINE> maxEggs = max(M, N) * K <NEW_LINE> self.environment = Board(M, N, K, maxEggs) <NEW_LINE> self.Tmax =... | Egg Carton puzzle container | 6259907f7047854f46340e48 |
class LockableThreadPool(threadpool.ThreadPool): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self._accept_new = True <NEW_LINE> threadpool.ThreadPool.__init__(self, *args, **kwargs) <NEW_LINE> <DEDENT> def lock(self): <NEW_LINE> <INDENT> self._accept_new = False <NEW_LINE> <DEDENT> def ... | Threadpool that can be locked from accepting new requests. | 6259907f2c8b7c6e89bd5278 |
class Engine: <NEW_LINE> <INDENT> def __init__(self, dialect, pool, dsn): <NEW_LINE> <INDENT> self._dialect = dialect <NEW_LINE> self._pool = pool <NEW_LINE> self._dsn = dsn <NEW_LINE> <DEDENT> @property <NEW_LINE> def dialect(self): <NEW_LINE> <INDENT> return self._dialect <NEW_LINE> <DEDENT> @property <NEW_LINE> def ... | Connects a aiopg.Pool and
sqlalchemy.engine.interfaces.Dialect together to provide a
source of database connectivity and behavior.
An Engine object is instantiated publicly using the
create_engine coroutine. | 6259907f167d2b6e312b82de |
class RadioField(SelectField): <NEW_LINE> <INDENT> widget = widgets.ListWidget(prefix_label=False) <NEW_LINE> option_widget = widgets.RadioInput() | Like a SelectField, except displays a list of radio buttons.
Iterating the field will produce subfields (each containing a label as
well) in order to allow custom rendering of the individual radio fields. | 6259907fbf627c535bcb2f65 |
class LSSController(pm.Controller): <NEW_LINE> <INDENT> public_settings = OrderedDict([("poles", [-3.1, -3.1, -3.1, -3.1]), ("source", "system_state"), ("steady state", [0, 0, 0, 0]), ("steady tau", 0), ("tick divider", 1) ]) <NEW_LINE> def __init__(self, settings): <NEW_LINE> <INDENT> settings.update(input_order=0) <N... | Linear state space controller
This controller is based on the linearized system. The steady state is
given by :math:`(\boldsymbol{x}^e, \tau^e)` . | 6259907f283ffb24f3cf5334 |
class AreaMultipleFilter(ModelMultipleChoiceFilter): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> label = kwargs.pop("label", _("Area")) <NEW_LINE> required = kwargs.pop("required", False) <NEW_LINE> queryset = kwargs.pop("queryset", JednostkaAdministracyjna.objects.all()) <NEW_LINE> met... | Multiple choice filter for JSTs.
The queryset should implement a `area_in` method. | 6259907f5fdd1c0f98e5fa13 |
class CompileThrift(Command): <NEW_LINE> <INDENT> description = "compile thrift files into python modules" <NEW_LINE> user_options = [ ('input-root=', 'i', 'Root directory to look for *.thrift files'), ('output-root=', 'i', 'Root directory to output python modules to') ] <NEW_LINE> def initialize_options(self): <NEW_LI... | Command to compile thrift files into python modules | 6259907f67a9b606de5477f0 |
class User(AbstractBaseUser, PermissionsMixin): <NEW_LINE> <INDENT> email = models.EmailField(max_length=255, unique=True) <NEW_LINE> name = models.CharField(max_length=255) <NEW_LINE> is_active = models.BooleanField(default=True) <NEW_LINE> is_staff = models.BooleanField(default=False) <NEW_LINE> date_joined = models.... | Custom user model that supports email instead of username | 6259907f76e4537e8c3f1014 |
class SNP(object): <NEW_LINE> <INDENT> def __init__(self, gene, snpinfo): <NEW_LINE> <INDENT> self.gene = gene <NEW_LINE> self.gene.snps.append(self) <NEW_LINE> (self.chrm, self.pos, ref, mat_gtyp, pat_gtyp, c_gtyp, phase, self.mat_allele, self.pat_allele, cA, cC, cG, cT, self.win, self.cls, pval, BindingSite, cnv) = s... | A SNP.
Contains::
chrm -- chromosome
pos -- position
mat_allele -- The maternal allele
pat_allele -- The paternal allele
counts -- Dict of raw counts for each base indexed by ATCG
win -- M/P/?
cls -- Sym/Asym/Weird -- Asym: ASE
pval -- binomi... | 6259907f3317a56b869bf290 |
class LAM(object): <NEW_LINE> <INDENT> def __init__(self, X=None, Y=None): <NEW_LINE> <INDENT> if X is None: <NEW_LINE> <INDENT> X = [] <NEW_LINE> <DEDENT> if Y is None: <NEW_LINE> <INDENT> Y = [] <NEW_LINE> <DEDENT> if len(X) > 0 and len(Y) == 0: <NEW_LINE> <INDENT> Y = X <NEW_LINE> <DEDENT> self._X = np.array(X) <NEW... | The Lattice Associative Memories is a kind of associative memory working
over lattice operations. If X=Y then W and M are Lattice AutoAssociative
Memories (LAAM), otherwise they are Lattice HeteroAssociative Memories
(LHAM).
Parameters
----------
X: numpy.ndarray
input pattern matrix [n_samples x n_variables]
Y: ... | 6259907f44b2445a339b76a7 |
class TextLabel(QWidget): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> QWidget.__init__(self, *args, **kwargs) <NEW_LINE> self.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred) <NEW_LINE> self.__text = "" <NEW_LINE> self.__textElideMode = Qt.ElideMiddle <NEW_LINE> self.__sizeHi... | A plain text label widget with support for elided text.
| 6259907fa8370b77170f1e64 |
class CallbackBlock(CopyBlock): <NEW_LINE> <INDENT> def __init__(self, iring, seq_callback, data_callback, data_ref=None, *args, **kwargs): <NEW_LINE> <INDENT> super(CallbackBlock, self).__init__(iring, *args, **kwargs) <NEW_LINE> self.seq_callback = seq_callback <NEW_LINE> self.data_callback = data_callback <NEW_LINE... | Testing-only block which calls user-defined
functions on sequence and on data | 6259907fbf627c535bcb2f67 |
class IGenwebJsonifyLayer(IDefaultPloneLayer): <NEW_LINE> <INDENT> pass | Marker interface that defines a Zope 3 browser layer. | 6259907f60cbc95b06365ab7 |
class ParentEnvConfig(namedtuple("ParentEnvConfig", "parent sep shell env var")): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return self.shell | Configuration for testing parent environments. | 6259907fd268445f2663a8a9 |
class SegmentProximicContextual(ProximicSegmentTree): <NEW_LINE> <INDENT> PRICE_CPM = TARGETING_ADDITIONAL_DATA_COSTS['contextual_categories'] <NEW_LINE> SEGMENT_IDS = segments.proximic_contextual <NEW_LINE> DIMENSION = dimensions.proximic_contextual <NEW_LINE> class Meta: <NEW_LINE> <INDENT> ordering = ('name',) | .. note::
please see :attr:`bidrequest.segments.proximic_contextual`
for values we match and update them accordingly | 6259907f23849d37ff852b4f |
class TestGraphSplit(unittest.TestCase): <NEW_LINE> <INDENT> def test_has_subgraph(self): <NEW_LINE> <INDENT> global snt, pat <NEW_LINE> g0 = graph2.cnll10_to_networkx(snt) <NEW_LINE> g1 = graph2.cnll10_to_networkx(pat) <NEW_LINE> print(g0.nodes()) <NEW_LINE> print(g1.nodes()) <NEW_LINE> assert graph2.has_sub_graph(g0,... | Basic test cases. | 6259907fa8370b77170f1e66 |
class TestGenerationInRequestsMove(TestGenerationInRequestsPutContent): <NEW_LINE> <INDENT> request_class = Move <NEW_LINE> def build_request(self): <NEW_LINE> <INDENT> return self.request_class(FakedProtocol(), None, None, None, None) | Tests for new_generation in Move. | 6259907f7047854f46340e4c |
class XMPPError(FortniteException): <NEW_LINE> <INDENT> pass | This exception is raised when something regarding the XMPP service
fails. | 6259907ff548e778e596d028 |
class UserRankingsForm(messages.Message): <NEW_LINE> <INDENT> rankings = messages.MessageField(UserRankingInfoForm, 1, repeated=True) | Form for outbound User ranking list | 6259907f5166f23b2e244e6f |
class SteppedTomography(XrayTubeMixin, BaseSteppedTomography): <NEW_LINE> <INDENT> def __init__(self, walker, flat_motor, tomography_motor, radio_position, flat_position, camera, xray_tube, num_flats=200, num_darks=200, num_projections=3000, angular_range=360 * q.deg, start_angle=0 * q.deg, separate_scans=True): <NEW_L... | Stepped tomography experiment. | 6259907fdc8b845886d55051 |
class Divider(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def calc(operand_1, operand_2): <NEW_LINE> <INDENT> return operand_1/operand_2 | Division | 6259907f32920d7e50bc7ad8 |
class VideoMockup(BaseHardwareObjects.Device): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> BaseHardwareObjects.Device.__init__(self, name) <NEW_LINE> self.force_update = None <NEW_LINE> self.image_dimensions = None <NEW_LINE> self.image_polling = None <NEW_LINE> self.image_type = None <NEW_LINE> s... | Descript. : | 6259907f2c8b7c6e89bd527c |
class InccreaseSortableTitleMaxLength(UpgradeStep): <NEW_LINE> <INDENT> deferrable = True <NEW_LINE> def __call__(self): <NEW_LINE> <INDENT> getQueue().hook() <NEW_LINE> processor = getUtility(IIndexQueueProcessor, name='ftw.solr') <NEW_LINE> catalog = api.portal.get_tool('portal_catalog') <NEW_LINE> for obj in self.ob... | Increase maximal length of sortable title.
| 6259907fad47b63b2c5a92e7 |
class UnreadableSectorResponse(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'max_limit': 'int', 'database': 'list[UnreadableSectorEntryResult]' } <NEW_LINE> self.attribute_map = { 'max_limit': 'maxLimit', 'database': 'database' } <NEW_LINE> self._max_limit = None <NEW_LINE... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259907f7cff6e4e811b74d8 |
class ApplicationRequestSchema(object): <NEW_LINE> <INDENT> swagger_types = { 'name': 'str' } <NEW_LINE> attribute_map = { 'name': 'name' } <NEW_LINE> def __init__(self, name=None): <NEW_LINE> <INDENT> self._name = None <NEW_LINE> self.discriminator = None <NEW_LINE> if name is not None: <NEW_LINE> <INDENT> self.name =... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259907fa05bb46b3848be74 |
class Linkage(MultiBodySystem): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._root = RootLink(self) <NEW_LINE> self._constants = dict() <NEW_LINE> self._constant_descs = dict() <NEW_LINE> self._forces = dict() <NEW_LINE> self._gravity_vector = None <NEW_LINE> self.... | TODO
| 6259907f5fc7496912d48fb7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.