code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class EZCoinTestNet(EZCoin): <NEW_LINE> <INDENT> name = 'test-ezcoin' <NEW_LINE> seeds = ("testseed1.ezcoin.org", ) <NEW_LINE> port = 17955 <NEW_LINE> message_start = b'\xf2\xc5\xa7\xde' <NEW_LINE> base58_prefixes = { 'PUBKEY_ADDR': 44, 'SCRIPT_ADDR': 196, 'SECRET_KEY': 172 } | Class with all the necessary EZCoin testing network information based on
https://github.com/ezcoin/ezcoin/blob/master/src/net.cpp
(date of access: 02/14/2018) | 62598f9c0a50d4780f70519b |
class PacketLayerError(CPacketBuildException): <NEW_LINE> <INDENT> def __init__(self, name, message=''): <NEW_LINE> <INDENT> self._default_message = "The given packet layer name ({0}) does not exists.".format(name) <NEW_LINE> self.message = message or self._default_message <NEW_LINE> super(CTRexPktBuilder.PacketLayerEr... | This exception is used to indicate an error caused by operation performed on an non-exists layer of the packet. | 62598f9c56ac1b37e6301fac |
class RegistroM220(Registro): <NEW_LINE> <INDENT> campos = [ CampoFixo(1, 'REG', 'M220'), Campo(2, 'IND_AJ', obrigatorio=True), CampoNumerico(3, 'VL_AJ', obrigatorio=True), Campo(4, 'COD_AJ', obrigatorio=True), CampoNumerico(5, 'NUM_DOC'), Campo(6, 'DESCR_AJ'), CampoData(7, 'DT_REF'), ] <NEW_LINE> nivel = 4 | Ajustes da Contribuição para o PIS/PASEP Apurada | 62598f9c009cb60464d012e7 |
class Session(object): <NEW_LINE> <INDENT> def __init__(self, request_obj): <NEW_LINE> <INDENT> self._request_handler = request_obj <NEW_LINE> self._session_id = request_obj.get_argument("utoken", None) <NEW_LINE> if not self._session_id: <NEW_LINE> <INDENT> self._session_id = uuid.uuid4().hex <NEW_LINE> self.data = ... | 存储用户session 数据缓存在redis | 62598f9c462c4b4f79dbb7cd |
class Tutorial (object): <NEW_LINE> <INDENT> def __init__ (self, connection): <NEW_LINE> <INDENT> self.connection = connection <NEW_LINE> connection.addListeners(self) <NEW_LINE> self.mac_to_port = {} <NEW_LINE> <DEDENT> def resend_packet (self, packet_in, out_port): <NEW_LINE> <INDENT> msg = of.ofp_packet_out() <NEW_L... | A Tutorial object is created for each switch that connects.
A Connection object for that switch is passed to the __init__ function. | 62598f9c32920d7e50bc5e18 |
class Channel(BaseNode): <NEW_LINE> <INDENT> location_code = String.T(xmlstyle='attribute') <NEW_LINE> external_reference_list = List.T( ExternalReference.T(xmltagname='ExternalReference')) <NEW_LINE> latitude = Latitude.T(xmltagname='Latitude') <NEW_LINE> longitude = Longitude.T(xmltagname='Longitude') <NEW_LINE> elev... | Equivalent to SEED blockette 52 and parent element for the related the
response blockettes. | 62598f9da8370b77170f01a5 |
class StatusCodeCount(luigi.Task): <NEW_LINE> <INDENT> input_file = luigi.Parameter() <NEW_LINE> def requires(self): <NEW_LINE> <INDENT> return InputFile(self.input_file) <NEW_LINE> <DEDENT> def output(self): <NEW_LINE> <INDENT> return luigi.LocalTarget('aggregate_api.json') <NEW_LINE> <DEDENT> def run(self): <NEW_LINE... | This class parses the previous json file and collects
the code count for each status | 62598f9d1f5feb6acb1629e4 |
@python_2_unicode_compatible <NEW_LINE> class SysUserManager(BaseUserManager): <NEW_LINE> <INDENT> def create_user(self, email, cell_no, password=None): <NEW_LINE> <INDENT> if not email: <NEW_LINE> <INDENT> raise ValueError('email은 필수 입력입니다.') <NEW_LINE> <DEDENT> if not cell_no: <NEW_LINE> <INDENT> raise ValueError('휴대... | 시스템 사용자 관리 매니저 | 62598f9dbe383301e02535b7 |
class CoinGateBaseOrder: <NEW_LINE> <INDENT> fields_translation = dict() <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> if self.coingate_id is not None: <NEW_LINE> <INDENT> return "<CoinGate Order {} ({})>".format(self.order_id, self.coingate_id) <NEW_LINE> <DEDENT> return "<CoinGate Order {}>".format(self.order_id)... | Base class for CoinGate orders
the fields_translation dictionary contains dictionaries that indicates
how fields returned by CoinGate's API relate to properties of the class.
Most of them have default arguments. Here are the keys and their possible
values :
- The name of the field in Coingate's schema is given by t... | 62598f9d3cc13d1c6d46552e |
class RulesetView(CreateAPIView): <NEW_LINE> <INDENT> serializer_class = YaraRuleSerializer <NEW_LINE> permission_classes = [IsGroupAdminOrMemberAddMethod] | Create new rule. | 62598f9d7d43ff24874272e3 |
class CustomerPremission(permissions.DjangoModelPermissions): <NEW_LINE> <INDENT> message = 'No Permission to Access.' <NEW_LINE> def has_permission(self, request, view): <NEW_LINE> <INDENT> patch_map = 'patch' <NEW_LINE> deletel_map = 'deletel' <NEW_LINE> post_map = 'post' <NEW_LINE> need_perms = '' <NEW_LINE> module_... | 自定义权限 | 62598f9d07f4c71912baf20d |
class Station(models.Model): <NEW_LINE> <INDENT> station_name = models.CharField(max_length=100) <NEW_LINE> station_code = models.CharField(max_length=11) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.station_name | Train station | 62598f9d67a9b606de545d8c |
class Initialize(object): <NEW_LINE> <INDENT> def __init__(self, blacklist, dnsservers, ip, port): <NEW_LINE> <INDENT> self.blacklist = blacklist <NEW_LINE> self.dnsservers = dnsservers <NEW_LINE> self.ip = ip <NEW_LINE> self.port = port <NEW_LINE> <DEDENT> def main(self): <NEW_LINE> <INDENT> resolver = client.createRe... | This class initialises the proxy based on the configuration specified | 62598f9d3d592f4c4edbac91 |
class FileBank(object): <NEW_LINE> <INDENT> def __init__(self, default_file_name=None): <NEW_LINE> <INDENT> self.file_dict = dict() <NEW_LINE> self.default_file_name = default_file_name <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> for key, file in self.file_dict.items(): <NEW_LINE> <INDENT> file.close() <... | A set of files can be used to dynamically open and automatically closed | 62598f9d76e4537e8c3ef378 |
class AbsoluteEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, obj): <NEW_LINE> <INDENT> return { 'type': 'absolute', 'name': obj.place_name } | Encodes a Absolute location. | 62598f9d45492302aabfc29b |
class VocabularyResource(ResourceBase): <NEW_LINE> <INDENT> def __init__(self, *args, transformer=None, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self._transformer = str.lower <NEW_LINE> if transformer is not None: <NEW_LINE> <INDENT> self._transformer = transformer <NEW_LINE> <DEDENT>... | Resource handler for vocabularies.
A vocabulary is a set of unique entities stored per line in a text file. | 62598f9dd58c6744b42dc1b3 |
class DocLinkModel(BaseContentModel): <NEW_LINE> <INDENT> trunk_ref = db.ReferenceProperty(TrunkModel) <NEW_LINE> default_title = db.StringProperty() <NEW_LINE> doc_ref = db.ReferenceProperty(DocModel) <NEW_LINE> from_trunk_ref = db.ReferenceProperty(TrunkModel, collection_name='from_link') <NEW_LINE> from_doc_ref = db... | Link to another document in the datastore.
Stores trunk_ref, doc_ref to the document it's pointing to and also
for the document containing the link (i.e source of the link).
Attributes:
trunk_ref: Reference to a trunk containing the document.
doc_ref: Reference to a document (used to point at a specific version
... | 62598f9d8e7ae83300ee8e62 |
class AjaxItem(Item): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self.detail.pop('article_json_rule') | condition 1,需要通过索引页拿到相关json数据,然后构造文章URL再去拿内容 | 62598f9d3617ad0b5ee05f13 |
class SearchField(QLineEdit): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(SearchField, self).__init__() <NEW_LINE> self.__focus = False <NEW_LINE> <DEDENT> def focusInEvent(self, focusevent): <NEW_LINE> <INDENT> self.__focus = True <NEW_LINE> super(SearchField, self).focusInEvent(focusevent) <NEW_... | This is a docstring | 62598f9d91f36d47f2230d81 |
class Image(TimeStampedModel): <NEW_LINE> <INDENT> file = models.ImageField() <NEW_LINE> location = models.CharField(max_length=140) <NEW_LINE> caption = models.TextField() <NEW_LINE> creator = models.ForeignKey( User, on_delete=models.CASCADE, related_name='images', null=True ) <NEW_LINE> tags = TaggableManager() <NEW... | Image Model | 62598f9dd6c5a102081e1f08 |
class MasterRep(object): <NEW_LINE> <INDENT> def __init__(self, gtid_mode, exe_gtid, filename, pos): <NEW_LINE> <INDENT> self.gtid_mode = gtid_mode <NEW_LINE> self.exe_gtid = exe_gtid <NEW_LINE> self.file = filename <NEW_LINE> self.pos = pos | Class: MasterRep
Description: Class stub holder for mysql_class.MasterRep class.
Methods:
__init__ -> Class initialization. | 62598f9d30bbd72246469858 |
class CouchDBKit(object): <NEW_LINE> <INDENT> def __init__(self, app=None): <NEW_LINE> <INDENT> _include_couchdbkit(self) <NEW_LINE> if app is not None: <NEW_LINE> <INDENT> self.init_app(app) <NEW_LINE> <DEDENT> <DEDENT> def init_app(self, app): <NEW_LINE> <INDENT> self.app = app <NEW_LINE> self.app.config.setdefault('... | This class is used to control CouchDB integration to a Flask
application.
:param app: The application to which this CouchDBKit should be bound. If an
app is not provided at initialization time, it may be provided later by
calling `init_app` manually. | 62598f9df7d966606f747dab |
class PerformanceIncident(BaseIncident): <NEW_LINE> <INDENT> type = models.ForeignKey( PerformanceIncidentType, on_delete=models.CASCADE ) <NEW_LINE> performance = models.ForeignKey( Performance, on_delete=models.CASCADE ) <NEW_LINE> predicted = models.BooleanField(default=False) <NEW_LINE> def should_tweet(self): <NEW... | An instance of a PerformanceIncidentType that has occurred
during a specific Performance. | 62598f9d07f4c71912baf20e |
class TestX265SAONonDeblock(unittest.TestCase): <NEW_LINE> <INDENT> def test_x265_sao_non_deblock(self): <NEW_LINE> <INDENT> x265 = X265() <NEW_LINE> self._test_sao_non_deblock_normal_values(x265) <NEW_LINE> self._test_sao_non_deblock_abormal_values(x265) <NEW_LINE> <DEDENT> def _test_sao_non_deblock_normal_values(self... | Tests all SAO Non-Deblock option values for the x265 codec. | 62598f9d3539df3088ecc079 |
class JobAPIStub(object): <NEW_LINE> <INDENT> def __init__(self, channel): <NEW_LINE> <INDENT> self.CreateJob = channel.unary_unary( '/descarteslabs.workflows.JobAPI/CreateJob', request_serializer=descarteslabs_dot_common_dot_proto_dot_job_dot_job__pb2.CreateJobRequest.SerializeToString, response_deserializer=descartes... | Missing associated documentation comment in .proto file. | 62598f9d3eb6a72ae038a404 |
class Builder: <NEW_LINE> <INDENT> __self_sql = '' <NEW_LINE> def sql(self, sql_str): <NEW_LINE> <INDENT> self.__self_sql = sql_str <NEW_LINE> <DEDENT> def build(self): <NEW_LINE> <INDENT> return self.__self_sql | 数据库条件构造器 | 62598f9db5575c28eb712baf |
class JavaScriptEngine(Engine): <NEW_LINE> <INDENT> _interpreter = JavaScriptInterpreter | The default JavaScript engine. | 62598f9d0a50d4780f70519d |
class Datetest(object): <NEW_LINE> <INDENT> defaultData = datetime(2013, 4, 15, 14, 4, 11), datetime(2013, 10, 25, 10, 50, 13), datetime(2014, 1, 1, 2, 0, 0) <NEW_LINE> def __init__(self, case=None, expected=None, data=None): <NEW_LINE> <INDENT> self.case = case <NEW_LINE> self.expected = expected if expected!=None els... | Class for testing various formats | 62598f9d925a0f43d25e7e01 |
class Firm(Base): <NEW_LINE> <INDENT> __tablename__ = 'firm' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> name = Column(String) <NEW_LINE> addr = Column(String) <NEW_LINE> longitude = Column(String) <NEW_LINE> latitude = Column(String) <NEW_LINE> last_updated = Column(DateTime) <NEW_LINE> lawyers = rela... | classdocs | 62598f9da79ad16197769e28 |
class ConstantOp(Op): <NEW_LINE> <INDENT> def __init__(self, value, name="Constant"): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> self.name = name <NEW_LINE> self.graph = graph.get_default_graph() <NEW_LINE> self.graph.add_to_graph(self) <NEW_LINE> <DEDENT> def get_value(self): <NEW_LINE> <INDENT> return self.val... | The constant operation which contains one initialized value. | 62598f9d24f1403a92685794 |
class ProcesserManagerInitError(Exception): <NEW_LINE> <INDENT> def __init__(self, module, class_name, reason): <NEW_LINE> <INDENT> self.msg = "Can not Init class_name [%s] of module [%s] because of [%s]" % (class_name, module, reason) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.ms... | init error | 62598f9d99cbb53fe6830c96 |
class WinkToggleDevice(ToggleEntity): <NEW_LINE> <INDENT> def __init__(self, wink): <NEW_LINE> <INDENT> self.wink = wink <NEW_LINE> <DEDENT> @property <NEW_LINE> def unique_id(self): <NEW_LINE> <INDENT> return "{}.{}".format(self.__class__, self.wink.device_id()) <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self):... | Represents a Wink toogle (switch) device. | 62598f9d379a373c97d98dd9 |
class EletricCar(Car): <NEW_LINE> <INDENT> def __init__(self,make,model,year): <NEW_LINE> <INDENT> super().__init__(make,model,year) <NEW_LINE> self.battery_size = 70 <NEW_LINE> <DEDENT> def descript_battery(self): <NEW_LINE> <INDENT> print("这辆车拥有一个"+str(self.battery_size)+"kw/h的电池") <NEW_LINE> <DEDENT> def get_range(s... | 定义电动车的不同之处 | 62598f9dcc0a2c111447add0 |
class MAC_INDUSTRY_AREA_ESTATE_INVEST_MONTH(Base): <NEW_LINE> <INDENT> __tablename__ = "MAC_INDUSTRY_AREA_ESTATE_INVEST_MONTH" <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> stat_month = Column(String(20), nullable=False) <NEW_LINE> area_code = Column(String(20), nullable=False) <NEW_LINE> area_name = Col... | 分地区房地产开发投资情况表(月度累计) | 62598f9d851cf427c66b808c |
class CreateNetworkForm(forms.Form): <NEW_LINE> <INDENT> network = forms.CharField(label='Network name', widget=forms.TextInput(attrs={'required':'required'})) <NEW_LINE> action = '' <NEW_LINE> back_link = '' <NEW_LINE> back_text = '' <NEW_LINE> submit = '' | description of class | 62598f9d507cdc57c63a4b5a |
class SimpleSpellController(BaseTextStylingController): <NEW_LINE> <INDENT> def getColorizingThread(self, page, params, runEvent): <NEW_LINE> <INDENT> return threading.Thread( None, self._colorizeThreadFunc, args=(params.text, params.editor, params.enableSpellChecking) ) <NEW_LINE> <DEDENT> def _colorizeThreadFunc(self... | Base class for styling controller which spell check only | 62598f9d01c39578d7f12b42 |
class ImagingXMLRPCClient(Pulse2Api): <NEW_LINE> <INDENT> name = "ImagingXMLRPCClient" | Imaging API XML-RPC client to connect to the MMC agent. | 62598f9df8510a7c17d7e05a |
@python_2_unicode_compatible <NEW_LINE> class AbstractResourceType(models.Model): <NEW_LINE> <INDENT> organisation = models.ForeignKey(Model['Organisation'], on_delete=models.CASCADE, verbose_name=_("organisation"), related_name='resource_types') <NEW_LINE> name = models.CharField(_("name"), max_length=255) <NEW_LINE> ... | Représente un type de ressource. | 62598f9d21bff66bcd722a29 |
class ActivityBase(QtWidgets.QWidget): <NEW_LINE> <INDENT> def __init__(self, name, parentwidget): <NEW_LINE> <INDENT> super(ActivityBase, self).__init__(parentwidget) <NEW_LINE> self._parent = parentwidget <NEW_LINE> self._mainmenubutton = None <NEW_LINE> self._write_to_status_bar('Loading ' + name + '...') <NEW_LINE>... | Abstract base class for activities. | 62598f9df7d966606f747dac |
class EnrichrAPIError(APIError): <NEW_LINE> <INDENT> pass | Exception raised for errors communicating with the Enrichr API. | 62598f9d0a50d4780f70519e |
class JsonDict(dict): <NEW_LINE> <INDENT> def __getattr__(self, attr): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self[attr] <NEW_LINE> <DEDENT> except KeyError: <NEW_LINE> <INDENT> raise AttributeError(r"'JsonDict' object has no attribute '%s'" % attr) <NEW_LINE> <DEDENT> <DEDENT> def __setattr__(self, attr, ... | general json object that allows attributes to be bound to and also behaves like a dict | 62598f9d1b99ca400228f410 |
class OutputSplitter(object): <NEW_LINE> <INDENT> def __init__(self, nextFile, max_file_size=0, compress=True): <NEW_LINE> <INDENT> self.nextFile = nextFile <NEW_LINE> self.compress = compress <NEW_LINE> self.max_file_size = max_file_size <NEW_LINE> self.file = self.open(self.nextFile.next()) <NEW_LINE> <DEDENT> def re... | File-like object, that splits output to multiple files of a given max size. | 62598f9df7d966606f747dad |
class BadCharReplacer: <NEW_LINE> <INDENT> def __init__(self, f, charmap=None): <NEW_LINE> <INDENT> self.reader = f <NEW_LINE> self.charmap = charmap <NEW_LINE> if self.charmap is None: <NEW_LINE> <INDENT> self.charmap = { '\xc2\x85' : '...', } <NEW_LINE> <DEDENT> self.pattern = '(' + '|'.join(self.charmap.keys()) + ')... | Iterator that reads an encoded stream and replaces Bad Characters!
The underlying reader MUST be returning UTF-8 encoded unicode strings | 62598f9d45492302aabfc29e |
class DataLoadError(Exception): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> message = 'Invalid file' <NEW_LINE> Exception.__init__(self, message) | Loading data error | 62598f9dcb5e8a47e493c057 |
class LuksClient(base_client.CauliflowerVestClient): <NEW_LINE> <INDENT> ESCROW_PATH = '/luks' <NEW_LINE> REQUIRED_METADATA = base_settings.LUKS_REQUIRED_PROPERTIES <NEW_LINE> def UploadPassphrase(self, volume_uuid, passphrase, metadata): <NEW_LINE> <INDENT> self._metadata = metadata <NEW_LINE> super(LuksClient, self).... | Client to perform Luks operations. | 62598f9d8e7ae83300ee8e65 |
class Driver: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.current_focus = False <NEW_LINE> <DEDENT> def focus(self, newFocus): <NEW_LINE> <INDENT> if(self.current_focus): <NEW_LINE> <INDENT> self.blur() <NEW_LINE> <DEDENT> self.current_focus = newFocus <NEW_LINE> if(self.current_focus): <NEW_LINE> ... | Driver is a class which represents any structure for handling client input
and output. display and command are the main methods provided for override
by subclasses. Both methods, by default, invoke the same method on their
current_focus. Both should return True to indicate they are "blocking".
For example, a sub-driver... | 62598f9d7d847024c075c197 |
class OperationNodeStructure(NodeStructure): <NEW_LINE> <INDENT> def __init__(self, operation_gid): <NEW_LINE> <INDENT> NodeStructure.__init__(self, operation_gid, "") <NEW_LINE> operation = dao.get_operation_by_gid(operation_gid) <NEW_LINE> algo = dao.get_algorithm_by_id(operation.fk_from_algo) <NEW_LINE> node_data = ... | This class knows how to create a NodeStructure for a given Operation. | 62598f9d67a9b606de545d8f |
class _ContextConfig(object): <NEW_LINE> <INDENT> def __init__(self, logger): <NEW_LINE> <INDENT> self.logger = logger <NEW_LINE> self.use_client_certificate = config.getbool('Credentials', 'use_client_certificate') <NEW_LINE> self.client_cert_path = None <NEW_LINE> if not self.use_client_certificate: <NEW_LINE> <INDEN... | Represents the configurations associated with context aware access.
Only one instance of Config can be created for the program. | 62598f9d097d151d1a2c0ded |
class V1beta1QueuingConfiguration(object): <NEW_LINE> <INDENT> openapi_types = { 'hand_size': 'int', 'queue_length_limit': 'int', 'queues': 'int' } <NEW_LINE> attribute_map = { 'hand_size': 'handSize', 'queue_length_limit': 'queueLengthLimit', 'queues': 'queues' } <NEW_LINE> def __init__(self, hand_size=None, queue_len... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 62598f9d32920d7e50bc5e1c |
class lvars_info_t(abyss_filter_t): <NEW_LINE> <INDENT> def maturity_ev(self, cfunc, new_maturity): <NEW_LINE> <INDENT> if new_maturity == ida_hexrays.CMAT_FINAL: <NEW_LINE> <INDENT> lvars = cfunc.get_lvars() <NEW_LINE> for lvar in lvars: <NEW_LINE> <INDENT> if lvar.has_nice_name and not lvar.has_user_name: <NEW_LINE> ... | appends a postfix to local variables that indicates
each variable's type (*r*egister or *s*tack) and its size
in bytes. | 62598f9d99cbb53fe6830c98 |
class DocumentAnalysisError(object): <NEW_LINE> <INDENT> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> self.code = kwargs.get('code', None) <NEW_LINE> self.message = kwargs.get('message', None) <NEW_LINE> self.target = kwargs.get('target', None) <NEW_LINE> self.details = kwargs.get('details', None) <NEW_LINE> sel... | DocumentAnalysisError contains the details of the error returned by the service.
:ivar code: Error code.
:vartype code: str
:ivar message: Error message.
:vartype message: str
:ivar target: Target of the error.
:vartype target: str
:ivar details: List of detailed errors.
:vartype details: list[~azure.ai.formrecognizer... | 62598f9d1f5feb6acb1629e8 |
class RealValueVectorOrg(object): <NEW_LINE> <INDENT> def __init__(self, genotype=None): <NEW_LINE> <INDENT> if genotype is None: <NEW_LINE> <INDENT> genotype = _create_random_genotype() <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> genotype = np.asarray(genotype, dtype=np.float64) <NEW_LINE> <DEDENT> self.genotype = g... | this is a class that represents organisms as a real value array
fitness is determined by calling the fitness fuction
the length is determined at object creation | 62598f9d3539df3088ecc07c |
class EditDialogMixin(object): <NEW_LINE> <INDENT> def __init__(self, orig_data): <NEW_LINE> <INDENT> bb = self.get_action_area() <NEW_LINE> self.refresh = Gtk.Button(Gtk.STOCK_REFRESH) <NEW_LINE> self.refresh.set_use_stock(True) <NEW_LINE> self.refresh.connect("clicked", lambda w: self.from_tuple(orig_data)) <NEW_LINE... | Mix-in class to convert initial-data-entry dialogs to edit dialogs. | 62598f9da17c0f6771d5c001 |
class FTP_TLS(FTP): <NEW_LINE> <INDENT> def __init__(self, host=None, ssl_ctx=None): <NEW_LINE> <INDENT> if ssl_ctx is not None: <NEW_LINE> <INDENT> self.ssl_ctx = ssl_ctx <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.ssl_ctx = SSL.Context(DEFAULT_PROTOCOL) <NEW_LINE> <DEDENT> FTP.__init__(self, host) <NEW_LINE> s... | Python OO interface to client-side FTP/TLS. | 62598f9d851cf427c66b808e |
class Loader(object): <NEW_LINE> <INDENT> def __init__(*args, **kwargs): pass <NEW_LINE> def load(self): pass | Base loader class for :class:`LoadedDataStruct` | 62598f9d67a9b606de545d90 |
class Payment(BaseModel): <NEW_LINE> <INDENT> order = models.ForeignKey(OrderInfo, on_delete=models.CASCADE, verbose_name="订单") <NEW_LINE> trade_id = models.CharField(max_length=100, unique=True, null=True, blank=True, verbose_name="支付编号") <NEW_LINE> class Meta: <NEW_LINE> <INDENT> db_table = "tb_paymnet" <NEW_LINE> ve... | 支付信息 | 62598f9d55399d3f056262e8 |
class WebviewTests(DemoDatabaseTestCase): <NEW_LINE> <INDENT> def test_any_records_use_group_true(self) -> None: <NEW_LINE> <INDENT> self.announce("test_any_records_use_group_true") <NEW_LINE> self.assertTrue(any_records_use_group(self.req, self.group)) <NEW_LINE> <DEDENT> def test_any_records_use_group_false(self) -> ... | Unit tests. | 62598f9d5f7d997b871f92c2 |
class HelloHandler(RosieDiscoService): <NEW_LINE> <INDENT> HELLO = "Hello %s\n" <NEW_LINE> def get(self, *args): <NEW_LINE> <INDENT> format_arg = self.get_query_argument("format", default=None) <NEW_LINE> data = self.HELLO % pwd.getpwuid(os.getuid()).pw_name <NEW_LINE> if format_arg == "json": <NEW_LINE> <INDENT> self.... | Writes a 'Hello' message to the current logged-in user, else 'user'. | 62598f9d38b623060ffa8e58 |
class CandidateSearch(object): <NEW_LINE> <INDENT> swagger_types = { 'id': 'str', 'name': 'str', 'office_sought': 'str' } <NEW_LINE> attribute_map = { 'id': 'id', 'name': 'name', 'office_sought': 'office_sought' } <NEW_LINE> def __init__(self, id=None, name=None, office_sought=None): <NEW_LINE> <INDENT> self._id = None... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f9d0c0af96317c56149 |
@six.add_metaclass(abc.ABCMeta) <NEW_LINE> class Decoder(object): <NEW_LINE> <INDENT> @property <NEW_LINE> def batch_size(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @property <NEW_LINE> def output_size(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @property <NEW_... | An RNN Decoder abstract interface object.
Concepts used by this interface:
- `inputs`: (structure of) tensors and TensorArrays that is passed as input to
the RNNCell composing the decoder, at each time step.
- `state`: (structure of) tensors and TensorArrays that is passed to the
RNNCell instance as the state.
- `... | 62598f9d3d592f4c4edbac95 |
class CommonAvgRef(PreprocPipe): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self = self <NEW_LINE> <DEDENT> def _pipe_as_flow(self, signal_packet): <NEW_LINE> <INDENT> hkey = signal_packet.keys()[0] <NEW_LINE> data = signal_packet[hkey]['data'] <NEW_LINE> data = (data.T - data.mean(axis=1)).T <NEW_LINE... | CommonAvgRef pipe for removing the common-average from the signal | 62598f9d10dbd63aa1c7097d |
class Rectangle: <NEW_LINE> <INDENT> def __init__(self, width=0, height=0): <NEW_LINE> <INDENT> self.width = width <NEW_LINE> self.height = height <NEW_LINE> <DEDENT> @property <NEW_LINE> def width(self): <NEW_LINE> <INDENT> return self.__width <NEW_LINE> <DEDENT> @width.setter <NEW_LINE> def width(self, value): <NEW_L... | Show the attribute of rectangle | 62598f9d60cbc95b06364114 |
class ZMQDisplayPublisher(DisplayPublisher): <NEW_LINE> <INDENT> session = Instance(Session) <NEW_LINE> pub_socket = Instance('zmq.Socket') <NEW_LINE> parent_header = Dict({}) <NEW_LINE> topic = CBytes(b'displaypub') <NEW_LINE> def set_parent(self, parent): <NEW_LINE> <INDENT> self.parent_header = extract_header(parent... | A display publisher that publishes data using a ZeroMQ PUB socket. | 62598f9d435de62698e9bbbb |
class TfvcItemRequestData(Model): <NEW_LINE> <INDENT> _attribute_map = { 'include_content_metadata': {'key': 'includeContentMetadata', 'type': 'bool'}, 'include_links': {'key': 'includeLinks', 'type': 'bool'}, 'item_descriptors': {'key': 'itemDescriptors', 'type': '[TfvcItemDescriptor]'} } <NEW_LINE> def __init__(self,... | TfvcItemRequestData.
:param include_content_metadata: If true, include metadata about the file type
:type include_content_metadata: bool
:param include_links: Whether to include the _links field on the shallow references
:type include_links: bool
:param item_descriptors:
:type item_descriptors: list of :class:`TfvcIte... | 62598f9d8e71fb1e983bb87d |
class JobStages(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'stage_name': {'readonly': True}, 'display_name': {'readonly': True}, 'stage_status': {'readonly': True}, 'stage_time': {'readonly': True}, 'job_stage_details': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'stage_name': {'key': 'sta... | Job stages.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar stage_name: Name of the job stage. Possible values include: "DeviceOrdered",
"DevicePrepared", "Dispatched", "Delivered", "PickedUp", "AtAzureDC", "DataCopy", "Completed",
"CompletedWithErrors", "Cancelled", "F... | 62598f9d07f4c71912baf212 |
class TestInlineResponse20027Schedules(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 testInlineResponse20027Schedules(self): <NEW_LINE> <INDENT> pass | InlineResponse20027Schedules unit test stubs | 62598f9d56b00c62f0fb2678 |
class Cekit(object): <NEW_LINE> <INDENT> def __init__(self, params): <NEW_LINE> <INDENT> self.params = params <NEW_LINE> <DEDENT> def init(self): <NEW_LINE> <INDENT> if self.params.nocolor: <NEW_LINE> <INDENT> setup_logging(False) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> setup_logging() <NEW_LINE> <DEDENT> if self... | Main application | 62598f9dbe8e80087fbbee26 |
class TestDeleteSessionByToken(DatabaseTestCase): <NEW_LINE> <INDENT> def test_deletes_session_when_session_exists(self): <NEW_LINE> <INDENT> user = User( username='username', password='password', salt='salt', ).save() <NEW_LINE> Session( user=user, token='token', ).save() <NEW_LINE> session = Session.objects.get(token... | Test for the delete_session_by_token function.
| 62598f9d91af0d3eaad39bd2 |
class PocketAPI: <NEW_LINE> <INDENT> def __init__(self, consumer_key=None, access_token=None): <NEW_LINE> <INDENT> self.consumer_key = consumer_key <NEW_LINE> self.access_token = access_token <NEW_LINE> <DEDENT> def get_request_token(self): <NEW_LINE> <INDENT> headers = { 'content-type': 'application/json; charset=UTF-... | Wrapper around https://pypi.python.org/pypi/pocket-api/ | 62598f9db7558d58954633f6 |
class Distributor(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def metadata(cls): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def validate_config(self, repo, config, related_repos): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def distributor_added(self, repo, conf... | Base class for Pulp content distributors for a single repository.
Distributors must subclass this class in order for Pulp to identify it as a
valid distributor during discovery. | 62598f9d236d856c2adc931d |
class TreeLSTM(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_features, hidden_size): <NEW_LINE> <INDENT> super(TreeLSTM, self).__init__() <NEW_LINE> self.in_features = in_features <NEW_LINE> self.hidden_size = hidden_size <NEW_LINE> self.cell = TreeLSTMCell(in_features, hidden_size) <NEW_LINE> <DEDENT> def forw... | A binary tree LSTM that unfortunately does not support batching
Args:
in_features: size of each input at each time step
hidden_size: size of hidden states of LSTM
Shape:
- Input: input: a list containing embeddings, transfored
from the bracketed form of tree representations
... | 62598f9d7d847024c075c199 |
class IBookingHole(Interface): <NEW_LINE> <INDENT> pass | BBB: backward compatibility.
| 62598f9ddd821e528d6d8cfc |
class QDViewerDialogTest(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 test_icon_png(self): <NEW_LINE> <INDENT> path = ':/plugins/QDViewer/icon.png' <NEW_LINE> icon = QIcon(path) <NEW_LINE> self.... | Test rerources work. | 62598f9d67a9b606de545d91 |
class EvtObjectConnected(event.Event): <NEW_LINE> <INDENT> obj = 'The object that is connected' <NEW_LINE> connected = 'True if the object connected, False if it disconnected' | Triggered when the engine reports that an object is connected (i.e. exists).
This will usually occur at the start of the program in response to the SDK
sending RequestConnectedObjects to the engine. | 62598f9d462c4b4f79dbb7d3 |
class RoomDetail(DetailView): <NEW_LINE> <INDENT> model = models.Room <NEW_LINE> pk_url_kwarg = "potato" | DetailView Definition | 62598f9d379a373c97d98ddc |
class JoystickHatMove(object): <NEW_LINE> <INDENT> def __init__(self, js_name, js_id, hat, x, y): <NEW_LINE> <INDENT> self.js_name = js_name <NEW_LINE> self.js_id = js_id <NEW_LINE> self.hat = hat <NEW_LINE> self.x = x <NEW_LINE> self.y = y | This input event represents a joystick hat moving.
.. attribute:: js_name
The name of the joystick.
.. attribute:: js_id
The number of the joystick, where ``0`` is the first joystick.
.. attribute:: hat
The number of the hat that moved, where ``0`` is the first axis
on the joystick.
.. attribute:: x
... | 62598f9d30dc7b766599f615 |
class ObjectJsonDictifiable(ObjectDictifiable): <NEW_LINE> <INDENT> zope.interface.implements(IO.JsonDictIO) <NEW_LINE> _json_model = None <NEW_LINE> def marshall_json_dict(self, **options): <NEW_LINE> <INDENT> d = self.marshall_dict() <NEW_LINE> return self._json_model(d).serialize() <NEW_LINE> <DEDENT> def unmarshall... | Object can marshall/unmarshall to/from python json compatible dict
A json compatible dict is a dict with only 4 value types :
str
num
bool
... | 62598f9d796e427e5384e55b |
class HouseName(externals.atom.core.XmlElement): <NEW_LINE> <INDENT> _qname = GDATA_TEMPLATE % 'housename' | The gd:housename element.
Used in places where houses or buildings have names (and not
necessarily numbers), eg. "The Pillars". | 62598f9d925a0f43d25e7e05 |
class OneOfWebhookActivityEntryAttributes(object): <NEW_LINE> <INDENT> swagger_types = { } <NEW_LINE> attribute_map = { } <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.discriminator = None <NEW_LINE> <DEDENT> def to_dict(self): <NEW_LINE> <INDENT> result = {} <NEW_LINE> for attr, _ in six.iteritems(self.swagg... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f9d097d151d1a2c0def |
class Tag(db.Model): <NEW_LINE> <INDENT> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> name = db.Column(db.String(30), unique=True, nullable=False) <NEW_LINE> users = db.relationship('UserTag', back_populates='tag') <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.name | Representation of a tag. | 62598f9da79ad16197769e2c |
class LinkedIntegrationRuntimeProperties(Model): <NEW_LINE> <INDENT> _validation = { 'authorization_type': {'required': True}, } <NEW_LINE> _attribute_map = { 'authorization_type': {'key': 'authorizationType', 'type': 'str'}, } <NEW_LINE> _subtype_map = { 'authorization_type': {'RBAC': 'LinkedIntegrationRuntimeRbac', '... | The base definition of a secret type.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: LinkedIntegrationRuntimeRbac, LinkedIntegrationRuntimeKey
:param authorization_type: Constant filled by server.
:type authorization_type: str | 62598f9d1f5feb6acb1629ea |
class _JsonEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, o): <NEW_LINE> <INDENT> if isinstance(o, Decimal): <NEW_LINE> <INDENT> return { "_type": "decimal", "v": str(o), } <NEW_LINE> <DEDENT> elif isinstance(o, date): <NEW_LINE> <INDENT> return { "_type": "date", "y": o.year, "m": o.month, "d": o.day... | JsonEncoder allowing serialising `Decimal` and `datetime.date` objects. | 62598f9dcc0a2c111447add4 |
class Error(Exception): <NEW_LINE> <INDENT> __module__ = "psycopg" <NEW_LINE> sqlstate: Optional[str] = None <NEW_LINE> def __init__( self, *args: Sequence[Any], info: ErrorInfo = None, encoding: str = "utf-8" ): <NEW_LINE> <INDENT> super().__init__(*args) <NEW_LINE> self._info = info <NEW_LINE> self._encoding = encodi... | Base exception for all the errors psycopg will raise.
Exception that is the base class of all other error exceptions. You can
use this to catch all errors with one single `!except` statement.
This exception is guaranteed to be picklable. | 62598f9dfff4ab517ebcd5b6 |
class DataSet(list): <NEW_LINE> <INDENT> def __init__(self, raw_xml): <NEW_LINE> <INDENT> list.__init__(self) <NEW_LINE> self.raw_xml = raw_xml <NEW_LINE> xml_tree = ElementTree.fromstring(self.raw_xml) <NEW_LINE> self.id = xml_tree.find('{http://www.w3.org/2005/Atom}id').text <NEW_LINE> self.title = xml_tree.find('{ht... | docstring for DataSet | 62598f9dbe383301e02535bd |
class TestKnapsack(QiskitOptimizationTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self.values = [10, 40, 30, 50] <NEW_LINE> self.weights = [5, 4, 6, 3] <NEW_LINE> self.max_weight = 10 <NEW_LINE> op = QuadraticProgram() <NEW_LINE> for _ in range(4): <NEW_LINE> <INDENT> o... | Test Knapsack class | 62598f9d851cf427c66b8090 |
class UnderscoreTemplateLinter(BaseLinter): <NEW_LINE> <INDENT> ruleset = RuleSet( underscore_not_escaped='underscore-not-escaped', ) <NEW_LINE> def __init__(self, skip_dirs=None): <NEW_LINE> <INDENT> super(UnderscoreTemplateLinter, self).__init__() <NEW_LINE> self._skip_underscore_dirs = skip_dirs or () <NEW_LINE> <DE... | The linter for Underscore.js template files. | 62598f9d656771135c48944b |
class AddProjectToImage(command.ShowOne): <NEW_LINE> <INDENT> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(AddProjectToImage, self).get_parser(prog_name) <NEW_LINE> parser.add_argument( "image", metavar="<image>", help="Image to share (name or ID)", ) <NEW_LINE> parser.add_argument( "project", me... | Associate project with image | 62598f9dfbf16365ca793e81 |
class VoterBallotSaved(models.Model): <NEW_LINE> <INDENT> voter_id = models.IntegerField(verbose_name="the voter unique id", default=0, null=False, blank=False) <NEW_LINE> google_civic_election_id = models.PositiveIntegerField( verbose_name="google civic election id", default=0, null=False) <NEW_LINE> state_code = mode... | This is a table with a meta data about a voter's various elections they have looked at and might return to | 62598f9df8510a7c17d7e05c |
class OpendatasoftCore: <NEW_LINE> <INDENT> def __init__( self, base_url: str, session: requests.Session, resource: str = 'catalog', ) -> None: <NEW_LINE> <INDENT> self.base_url = base_url <NEW_LINE> self.session = session <NEW_LINE> self.resource = resource <NEW_LINE> <DEDENT> @property <NEW_LINE> def api_url(self) ->... | Core API interface | 62598f9d5f7d997b871f92c3 |
class SingletonMeta(type): <NEW_LINE> <INDENT> _instances = {} <NEW_LINE> def __call__(cls): <NEW_LINE> <INDENT> if cls not in cls._instances: <NEW_LINE> <INDENT> instance = super().__call__() <NEW_LINE> cls._instances[cls] = instance <NEW_LINE> <DEDENT> return cls._instances[cls] | Mixin for create Singleton pattern that restricts the instantiation of a class to one "single" instance | 62598f9da219f33f346c65e2 |
class subdirmatcher(basematcher): <NEW_LINE> <INDENT> def __init__(self, path, matcher): <NEW_LINE> <INDENT> super(subdirmatcher, self).__init__(matcher._root, matcher._cwd) <NEW_LINE> self._path = path <NEW_LINE> self._matcher = matcher <NEW_LINE> self._always = matcher.always() <NEW_LINE> self._files = [f[len(path) +... | Adapt a matcher to work on a subdirectory only.
The paths are remapped to remove/insert the path as needed:
>>> from . import pycompat
>>> m1 = match(b'root', b'', [b'a.txt', b'sub/b.txt'])
>>> m2 = subdirmatcher(b'sub', m1)
>>> bool(m2(b'a.txt'))
False
>>> bool(m2(b'b.txt'))
True
>>> bool(m2.matchfn(b'a.txt'))
False... | 62598f9d0c0af96317c5614b |
class CyclingIterator: <NEW_LINE> <INDENT> def __init__(self, n: int, generator_fn, start_epoch=0): <NEW_LINE> <INDENT> self._n = n <NEW_LINE> self._epoch = start_epoch <NEW_LINE> self._generator_fn = generator_fn <NEW_LINE> self._iter = generator_fn(self._epoch) <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDE... | An iterator decorator that cycles through the
underlying iterator "n" times. Useful to "unroll"
the dataset across multiple training epochs.
The generator function is called as ``generator_fn(epoch)``
to obtain the underlying iterator, where ``epoch`` is a
number less than or equal to ``n`` representing the ``k``th cy... | 62598f9d45492302aabfc2a1 |
class ComputeVpnTunnelsDeleteRequest(messages.Message): <NEW_LINE> <INDENT> project = messages.StringField(1, required=True) <NEW_LINE> region = messages.StringField(2, required=True) <NEW_LINE> vpnTunnel = messages.StringField(3, required=True) | A ComputeVpnTunnelsDeleteRequest object.
Fields:
project: Project ID for this request.
region: The name of the region for this request.
vpnTunnel: Name of the VpnTunnel resource to delete. | 62598f9d3617ad0b5ee05f19 |
class DetailsView(generics.RetrieveUpdateDestroyAPIView): <NEW_LINE> <INDENT> queryset = BucketList.objects.all() <NEW_LINE> serializer_class = BucketListSerializer <NEW_LINE> permission_classes = ( permissions.IsAuthenticated, IsOwner) | This class handles the http GET, PUT and DELETE requests. | 62598f9df548e778e596b375 |
class filter_set: <NEW_LINE> <INDENT> alias = { "Bessell-U": ("U", 'bessell-u'), "Harris-R": ("R", "harris-r"), "Harris-V": ("V","harris-v" ), "Arizona-I": ("I",), "Harris-B": ("B",), "Schott-8612": ("Schott",), "Open": ("Open", "open", "OPEN", "Clear", "CLEAR", "clear") } <NEW_LINE> def __init__( self, filters=None, ... | Class to simplify look up of filter by name and number
uses the python [] operator to lookup filter number
or name. If you give it the name it will return the
number and vice versa. it also uses aliases for the
lookup. RTS2 and the Galil like to use long names
like "Harris-U" observers like short names like "U"
eith... | 62598f9dd6c5a102081e1f0e |
class FastReadWrite: <NEW_LINE> <INDENT> def __init__( self, path, func, n_cpu=2, chunk_size=1024 * 1024, header=False, *args, **kwargs ): <NEW_LINE> <INDENT> self.path = path <NEW_LINE> self.size = getsize(path) <NEW_LINE> self.n_cpu = n_cpu <NEW_LINE> self.func = func <NEW_LINE> self.args = args <NEW_LINE> self.kwarg... | Handles parallelisation of file processing + I/O. | 62598f9d460517430c431f3f |
class Level(): <NEW_LINE> <INDENT> def __init__(self,g,E,number): <NEW_LINE> <INDENT> self.g = g <NEW_LINE> self.E = E <NEW_LINE> self.number = number <NEW_LINE> <DEDENT> def LTE_level_pop(self,Z,T): <NEW_LINE> <INDENT> return self.g*np.exp(-self.E/(constants.k*T))/Z | Represents an atomic/molecular energy level
Attributes:
------------
- g: float
statistical weight
- E: float
energy in [J]
- number: int
the level number (0 for the lowest level) | 62598f9dcc0a2c111447add5 |
class UserImageUploadView(generics.RetrieveUpdateAPIView): <NEW_LINE> <INDENT> serializer_class = UserImageSerializer <NEW_LINE> authentication_classes = (authentication.TokenAuthentication,) <NEW_LINE> permission_classes = (permissions.IsAuthenticated,) <NEW_LINE> def get_object(self): <NEW_LINE> <INDENT> return self.... | Manage adding images to users | 62598f9dbe8e80087fbbee28 |
class matplotlib(FigureCanvasQTAgg): <NEW_LINE> <INDENT> def __init__(self, dim=2, parent=None): <NEW_LINE> <INDENT> self.fig = Figure(figsize=(10, 10), dpi=100) <NEW_LINE> self.dim = dim <NEW_LINE> FigureCanvasQTAgg.__init__(self, self.fig) <NEW_LINE> FigureCanvasQTAgg.setSizePolicy( self, QtWidgets.QSizePolicy.Expan... | Ultimately, this is a QWidget (as well as a FigureCanvasAgg, etc.). | 62598f9d3539df3088ecc07f |
class VisualSplitDateTimeWidget(forms.SplitDateTimeWidget): <NEW_LINE> <INDENT> class Media(object): <NEW_LINE> <INDENT> css = {'all': ('css/libs/jquery.timepicker.css',)} <NEW_LINE> js = ('js/visual_datetime.js', 'js/libs/jquery.timepicker.min.js') <NEW_LINE> <DEDENT> def __init__(self, time_format='%I:%M%p', *args, *... | Extend the SplitDateTimeWidget but tie in the appropriate JavaScript.
To be used by the VisualSplitDateTimeField below. | 62598f9d627d3e7fe0e06c74 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.