code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class RouterException(AutopushException): <NEW_LINE> <INDENT> def __init__(self, message, status_code=500, response_body="", router_data=None): <NEW_LINE> <INDENT> super(AutopushException, self).__init__(message) <NEW_LINE> self.status_code = status_code <NEW_LINE> self.response_body = response_body or message | Exception if routing has failed, may include a custom status_code and
body to write to the response. | 62598ef823849d37ff84f99a |
class OpenAPIError(Exception): <NEW_LINE> <INDENT> def __init__(self, code, reason, content=None): <NEW_LINE> <INDENT> self.code = code <NEW_LINE> self.reason = reason <NEW_LINE> self.content = content <NEW_LINE> message = 'HTTP error: {}, reason: {}'.format(code, reason) <NEW_LINE> if self.content: <NEW_LINE> <INDENT>... | Generic error class.
In case of HTTP response codes >= 400 this class can be used
to raise an exception representing that error. | 62598ef810dbd63aa1c6f458 |
class Configuration: <NEW_LINE> <INDENT> def __init__( self, credentials=None, server=None, service_endpoint=None, auth_type=None, version=None, retry_policy=None, max_connections=None, ): <NEW_LINE> <INDENT> if not isinstance(credentials, (BaseCredentials, type(None))): <NEW_LINE> <INDENT> raise InvalidTypeError("cred... | Contains information needed to create an authenticated connection to an EWS endpoint.
The 'credentials' argument contains the credentials needed to authenticate with the server. Multiple credentials
implementations are available in 'exchangelib.credentials'.
config = Configuration(credentials=Credentials('john@exampl... | 62598ef821bff66bcd721532 |
class Target(object): <NEW_LINE> <INDENT> def extract_uris(self): <NEW_LINE> <INDENT> target = None <NEW_LINE> try: <NEW_LINE> <INDENT> target = utils.load_json_file(self.targetfile) <NEW_LINE> <DEDENT> except ValueError: <NEW_LINE> <INDENT> with open(self.targetfile) as fdesc: <NEW_LINE> <INDENT> target = pickle.load(... | Represent the target object | 62598ef8be7bc26dc92512d1 |
class Preprocessor(Template): <NEW_LINE> <INDENT> STMT_PATTERN = None <NEW_LINE> def stmt_pattern(self): <NEW_LINE> <INDENT> pat = Preprocessor.STMT_PATTERN <NEW_LINE> if not pat: <NEW_LINE> <INDENT> pat = Preprocessor.STMT_PATTERN = Template.compile_stmt_pattern('PY') <NEW_LINE> <DEDENT> return Preprocessor.STMT_PATTE... | Template class for preprocessing. | 62598ef85fcc89381b265597 |
class FollowDotCursor(object): <NEW_LINE> <INDENT> def __init__(self, ax, x, y, formatter=fmt, offsets=(-20, 20)): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> x = np.asarray(x, dtype='float') <NEW_LINE> <DEDENT> except (TypeError, ValueError): <NEW_LINE> <INDENT> x = np.asarray(mdates.date2num(x), dtype='float') <NEW_... | Display the x,y location of the nearest data point.
http://stackoverflow.com/a/4674445/190597 (Joe Kington)
http://stackoverflow.com/a/20637433/190597 (unutbu) | 62598ef8796e427e5384d076 |
class neatError(error): <NEW_LINE> <INDENT> def __init__(self, message): <NEW_LINE> <INDENT> self.message = message | Message -- explanation of the error | 62598ef8e1aae11d1e7cdcb0 |
class EqualTo(object): <NEW_LINE> <INDENT> def __init__(self, fieldname, message=None): <NEW_LINE> <INDENT> self.fieldname = fieldname <NEW_LINE> self.message = message <NEW_LINE> <DEDENT> def __call__(self, form, field): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> other = form[self.fieldname] <NEW_LINE> <DEDENT> exce... | Compares the values of two fields.
:param fieldname:
The name of the other field to compare to.
:param message:
Error message to raise in case of a validation error. Can be
interpolated with `%(other_label)s` and `%(other_name)s` to provide a
more helpful error. | 62598ef82c8b7c6e89bd209d |
class chancommand(object): <NEW_LINE> <INDENT> def __init__(self, match: Optional[Union[str, Pattern]]=None): <NEW_LINE> <INDENT> self._match = match <NEW_LINE> <DEDENT> def __call__(self, func: Callable): <NEW_LINE> <INDENT> message = self._match <NEW_LINE> if message is None: <NEW_LINE> <INDENT> message = re.compile(... | TODO: Documentation | 62598ef892d797404e387fe9 |
class PdbTestInput(object): <NEW_LINE> <INDENT> def __init__(self, input): <NEW_LINE> <INDENT> self.input = input <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> self.real_stdin = sys.stdin <NEW_LINE> sys.stdin = _FakeInput(self.input) <NEW_LINE> <DEDENT> def __exit__(self, *exc): <NEW_LINE> <INDENT> sys.s... | Context manager that makes testing Pdb in doctests easier. | 62598ef82ae34c7f260a99bf |
class TestSample(TestCase): <NEW_LINE> <INDENT> def __init__(self, methodName='runTest'): <NEW_LINE> <INDENT> super(TestSample, self).__init__() <NEW_LINE> <DEDENT> def runTest(self): <NEW_LINE> <INDENT> local_blockchain = Blockchain() <NEW_LINE> local_blockchain.print_blocks() <NEW_LINE> local_blockchain.add_block(blo... | Test our tiny blockchain | 62598ef8236d856c2adc8887 |
class SignatureEnvelopeResult: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swaggerTypes = { 'envelope': 'SignatureEnvelopeInfo' } <NEW_LINE> self.envelope = None | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598ef8ff9c53063f518f3e |
class Rect: <NEW_LINE> <INDENT> def __init__(self, x, y, w, h): <NEW_LINE> <INDENT> self._x = x <NEW_LINE> self._y = y <NEW_LINE> self._w = w <NEW_LINE> self._h = h <NEW_LINE> self.pyrect = pygame.Rect(int(x), int(y), int(w), int(h)) <NEW_LINE> <DEDENT> @property <NEW_LINE> def x_real(self): <NEW_LINE> <INDENT> return ... | Le rect classique de pygame, mais avec des coordonnées réelles et un milieu | 62598ef863d6d428bbee10ab |
class FunctionMatcher(MockMatcher): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return '<function or method>' <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> return isinstance(other, FunctionMatcher) <NEW_LINE> <DEDENT> def compare(self, param): <NEW_LINE> <INDENT> return inspect.isfunct... | Matcher for parameters which are functions. | 62598ef88a349b6b43684b1e |
class Solution: <NEW_LINE> <INDENT> def searchRange(self, root, k1, k2): <NEW_LINE> <INDENT> res = [] <NEW_LINE> self.search(res, root, k1, k2) <NEW_LINE> return res <NEW_LINE> <DEDENT> def search(self, result, node, k1, k2): <NEW_LINE> <INDENT> if node is None: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> if node.va... | @param root: param root: The root of the binary search tree
@param k1: An integer
@param k2: An integer
@return: return: Return all keys that k1<=key<=k2 in ascending order | 62598ef8283ffb24f3cf2186 |
class WorkoutICalExportTestCase(WgerTestCase): <NEW_LINE> <INDENT> def export_ical_token(self): <NEW_LINE> <INDENT> user = User.objects.get(username='test') <NEW_LINE> uid, token = make_token(user) <NEW_LINE> response = self.client.get( reverse('manager:workout:ical', kwargs={ 'pk': 3, 'uidb64': uid, 'token': token }) ... | Tests exporting the ical file for a workout | 62598ef8cc0a2c11144798de |
class _Session(object): <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> self.parent = parent <NEW_LINE> self.buffer = '' <NEW_LINE> self.offset = 0 <NEW_LINE> self.objects = [] <NEW_LINE> self._createPlaceholderObjects() <NEW_LINE> self.compression = False <NEW_LINE> <DEDENT> def _createPlaceholderO... | Manages the storing of the
text output for the PDF objects
as they are generated by the pdfobject
classes. Has a centralized count of the
objects, and some helper functions (putStream,
compression, etc.)
One and only one session object should be
instantiated per PDF file. The object should be
passed by-reference to ob... | 62598ef866673b3332c2ec8c |
@dataclass <NEW_LINE> class E2TemporalEntity(E1CRMEntity): <NEW_LINE> <INDENT> TYPE_URI = "http://erlangen-crm.org/current/E2_Temporal_Entity" | Scope note:
This class comprises all phenomena, such as the instances of E4 Periods and E5 Events, which happen over a limited extent in time. This extent in time must be contiguous, i.e., without gaps. In case the defining kinds of phenomena for an instance of E2 Temporal Entity cease to happen, and occur later again ... | 62598ef8f548e778e5969e6a |
class assertion_report(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.successes = 0 <NEW_LINE> self.failures = 0 <NEW_LINE> self.failures_details = [] <NEW_LINE> <DEDENT> def record_success(self): <NEW_LINE> <INDENT> self.successes += 1 <NEW_LINE> <DEDENT> def record_failure(self, details=Non... | Simple pair of success and failures counts (used to record YAML and XML
`assert` tags as well as unittest2 tests outcome (in this case, not
individual `assert`)). | 62598ef81f5feb6acb161531 |
class TimeOrderMismatch(Exception): <NEW_LINE> <INDENT> pass | Exception in case of time order mismatch | 62598ef8ec188e330fdf7187 |
class SBship(Sprite): <NEW_LINE> <INDENT> def __init__(self, ai_game): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.screen = ai_game.screen <NEW_LINE> self.settings = ai_game.settings <NEW_LINE> self.screen_rect = ai_game.screen.get_rect() <NEW_LINE> self.image = pygame.image.load('images/falcon-ship_tiny.b... | A class to manage the scoreboard ship icon. | 62598ef8fff4ab517ebcc0af |
class Console: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_command(answer: str) -> str: <NEW_LINE> <INDENT> return input(f'answer\n----------\n{GM.enter_cmd} ') <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def show_message(message: str) -> None: <NEW_LINE> <INDENT> print(message) <NEW_LINE> <DEDENT> @staticmet... | Definuje základní funkce pro standardní vstup a výstup. | 62598ef8dc8b845886d51ea3 |
class CategorieListSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> details = serializers.HyperlinkedIdentityField(view_name='api_categorie_detail') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Categoria | Categorie list | 62598ef8097d151d1a2bf902 |
class DataSourceMeta: <NEW_LINE> <INDENT> location = 'https://asource.foo/' <NEW_LINE> id = 'Alpha' <NEW_LINE> id_prefix = 'A' <NEW_LINE> name = id | This is an internal metadata class for defining additional :class:`~basin3d.models.DataSource`
attributes.
**Attributes:**
- *id* - unique id short name
- *name* - human friendly name (more descriptive)
- *location* - resource location
- *id_prefix* - id prefix to make model object ids unique across da... | 62598ef876e4537e8c3ede97 |
class IShopSettings(model.Schema): <NEW_LINE> <INDENT> admin_email = schema.ASCIILine( title=_(u"label_admin_email", default=u"Shop Admin E-Mail"), description=_(u"help_admin_email", default=u"No typos please...."), required=True, default="", ) <NEW_LINE> admin_name = schema.ASCIILine( title=_(u"label_admin_name", defa... | Shop controlpanel schema.
| 62598ef87c178a314d78bd77 |
class NIC(models.Model): <NEW_LINE> <INDENT> asset = models.ForeignKey(verbose_name='所属资产', to='Asset', on_delete=models.CASCADE) <NEW_LINE> slot = models.CharField(verbose_name='插槽', max_length=64, null=True, blank=True) <NEW_LINE> name = models.CharField(verbose_name='网卡名称', max_length=128, null=True, blank=True) <NE... | 网卡组件表 | 62598ef8adb09d7d5dc08e9d |
class MainCLIController(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.current_interface_controller = None <NEW_LINE> self.employee_model = None <NEW_LINE> self.customer_model = None <NEW_LINE> <DEDENT> def change_controller(self, controller, next_controller=None): <NEW_LINE> <INDENT> os.system('cl... | Master controller class for the interface controllers.
Attributes:
current_interface_controller: The current controller that interacts with user
employee_model: the model for interacting with employee data
customer_model: the model for interacting with customer data
Methods:
change_controller: Change ... | 62598ef801c39578d7f11681 |
class RouterOnlineBinarySensor(BinarySensorEntity): <NEW_LINE> <INDENT> _attr_device_class = BinarySensorDeviceClass.CONNECTIVITY <NEW_LINE> _attr_should_poll = False <NEW_LINE> def __init__(self, router: KeeneticRouter) -> None: <NEW_LINE> <INDENT> self._router = router <NEW_LINE> <DEDENT> @property <NEW_LINE> def nam... | Representation router connection status. | 62598ef8236d856c2adc8888 |
class CoRESTDispatcher(CoClass): <NEW_LINE> <INDENT> _reg_clsid_ = GUID('{0D52FCD9-6647-432C-B15B-B141AB0A349F}') <NEW_LINE> _idlflags_ = [] <NEW_LINE> _typelib_path_ = typelib_path <NEW_LINE> _reg_typelib_ = ('{5E1F7BC3-67C5-4AEE-8EC6-C4B73AAC42ED}', 10, 2) | IRESTDispatcher coclass | 62598ef82ae34c7f260a99c1 |
class Jackpot(Action): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Jackpot, self).__init__('Jackpot') <NEW_LINE> self.id = 'jackpot' <NEW_LINE> self.description = 'Draw 3 cards' <NEW_LINE> <DEDENT> def play(self, game, playerNumber): <NEW_LINE> <INDENT> super(Jackpot, self).play(game, playerNumber... | Jackpot: draw three cards | 62598ef83d592f4c4edb97cd |
class HumanSerializer(serializers.Serializer): <NEW_LINE> <INDENT> dna = serializers.ListField(required=True) <NEW_LINE> def validate_dna(self, value): <NEW_LINE> <INDENT> hight = len(value) <NEW_LINE> weigth = len(value[0]) <NEW_LINE> if hight != weigth: <NEW_LINE> <INDENT> raise serializers.ValidationError('La matriz... | Human Serializer. | 62598ef860cbc95b06362c15 |
class TestBoggle(unittest.TestCase): <NEW_LINE> <INDENT> def test_can_create_an_epty_grid(self): <NEW_LINE> <INDENT> grid = boggle.make_grid(0,0) <NEW_LINE> self.assertEqual(len(grid), 0) <NEW_LINE> <DEDENT> def test_grid_size_is_width_times_height(self): <NEW_LINE> <INDENT> grid = boggle.make_grid(2, 3) <NEW_LINE> sel... | Our test suite for boggle solver | 62598ef8442bda511e95ad3f |
class ExpandDimsLayer(_ConcatInputLayer): <NEW_LINE> <INDENT> layer_class = "expand_dims" <NEW_LINE> def __init__(self, axis, dim=1, **kwargs): <NEW_LINE> <INDENT> super(ExpandDimsLayer, self).__init__(**kwargs) <NEW_LINE> data = self.input_data <NEW_LINE> if isinstance(axis, int): <NEW_LINE> <INDENT> data = data.copy_... | Adds some axis. | 62598ef8ff9c53063f518f40 |
class InputHiddenLayer(nn.Module): <NEW_LINE> <INDENT> def __init__(self, input_dim, hidden_dim, activation_function): <NEW_LINE> <INDENT> super(InputHiddenLayer, self).__init__() <NEW_LINE> w_in = torch.empty(input_dim, hidden_dim) <NEW_LINE> w_hidden = torch.empty(hidden_dim, hidden_dim) <NEW_LINE> b = torch.zeros(hi... | A module that combines the input and the hidden states. | 62598ef84f88993c371ef95a |
class Cart(models.Model): <NEW_LINE> <INDENT> owner = models.OneToOneField(settings.AUTH_USER_MODEL, verbose_name=_('Owner'), on_delete=models.CASCADE, null=True, blank=True) <NEW_LINE> objects = CartManager() <NEW_LINE> def product_in_cart(self, product): <NEW_LINE> <INDENT> return self.line_set.filter(product=product... | Model that represents user shopping cart. | 62598ef855399d3f05624e05 |
class RegenerateCredentialParameters(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'name': {'required': True}, } <NEW_LINE> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, name: Union[str, "PasswordName"], **kwargs ): <NEW_LINE> <INDENT> super(Regenerate... | The parameters used to regenerate the login credential.
All required parameters must be populated in order to send to Azure.
:ivar name: Required. Specifies name of the password which should be regenerated -- password or
password2. Possible values include: "password", "password2".
:vartype name: str or ~azure.mgmt.c... | 62598ef8a05bb46b38489152 |
class Uri(ValueNode): <NEW_LINE> <INDENT> __slots__ = ('uri',) <NEW_LINE> def __init__(self, uriVal): <NEW_LINE> <INDENT> super(Uri, self).__init__() <NEW_LINE> if isinstance(uriVal, uri.Uri): <NEW_LINE> <INDENT> self.uri = uriVal <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.uri = uri.Uri(uriVal) <NEW_LINE> <DEDE... | An expression node representing a URI reference. | 62598ef8e5267d203ee6a1e3 |
class _Singleton(type): <NEW_LINE> <INDENT> _instances = {} <NEW_LINE> _meta_key = None <NEW_LINE> def __call__(cls, *args, **kwargs): <NEW_LINE> <INDENT> cls._prep_meta_key() <NEW_LINE> if cls._meta_key not in cls._instances: <NEW_LINE> <INDENT> cls._instances[cls._meta_key] = super(_Singleton, cls).__c... | A metaclass for providing singleton-type functionality to all instances
of this type. | 62598ef85166f23b2e241cba |
class Amrex(CMakePackage): <NEW_LINE> <INDENT> homepage = "https://amrex-codes.github.io/amrex/" <NEW_LINE> git = "https://github.com/AMReX-Codes/amrex.git" <NEW_LINE> version('develop', branch='development') <NEW_LINE> variant('dimensions', default='3', description='Dimensionality', values=('2', '3')) <NEW_LINE> ... | AMReX is a publicly available software framework designed
for building massively parallel block- structured adaptive
mesh refinement (AMR) applications. | 62598ef866656f66f7d58cc3 |
class DataInput(object): <NEW_LINE> <INDENT> def __init__(self, decoder=None): <NEW_LINE> <INDENT> self.decoder = decoder <NEW_LINE> self.stream = decoder.stream <NEW_LINE> <DEDENT> def readBoolean(self): <NEW_LINE> <INDENT> byte = self.stream.read(1) <NEW_LINE> if byte == '\x00': <NEW_LINE> <INDENT> return False <NEW_... | I provide a set of methods for reading binary data with ActionScript 3.0.
This class is the I/O counterpart to the L{DataOutput} class,
which writes binary data.
@see: U{IDataInput on Livedocs (external)
<http://livedocs.adobe.com/flex/201/langref/flash/utils/IDataInput.html>} | 62598ef83346ee7daa336ad6 |
class MyAdagrad(Optimizer): <NEW_LINE> <INDENT> def __init__(self, params, lr=1e-2, lr_decay=0, init_accu_value=0.1, weight_decay=0): <NEW_LINE> <INDENT> defaults = dict(lr=lr, lr_decay=lr_decay, init_accu_value=init_accu_value, weight_decay=weight_decay) <NEW_LINE> super(MyAdagrad, self).__init_... | Modification of the Adagrad optimizer that allows to specify an initial
accumulater value. This mimics the behavior of the default Adagrad implementation
in Tensorflow. The default PyTorch Adagrad uses 0 for initial accumulator value.
Arguments:
params (iterable): iterable of parameters to optimize or dicts defini... | 62598ef830bbd72246468514 |
class DurationRunner(base.Runner): <NEW_LINE> <INDENT> __execution_type__ = 'Duration' <NEW_LINE> def _run_benchmark(self, cls, method, scenario_args): <NEW_LINE> <INDENT> self.process = multiprocessing.Process( target=_worker_process, args=(self.result_queue, cls, method, self.config, scenario_args)) <NEW_LINE> self.p... | Run a scenario for a certain amount of time
If the scenario ends before the time has elapsed, it will be started again.
Parameters
duration - amount of time the scenario will be run for
type: int
unit: seconds
default: 1 sec
interval - time to wait between each scenario invocat... | 62598ef8283ffb24f3cf2189 |
class Backup: <NEW_LINE> <INDENT> def __init__(self, mtime, filepath): <NEW_LINE> <INDENT> self.mtime = mtime <NEW_LINE> self.filepath = filepath <NEW_LINE> <DEDENT> def remove(self, simulate=True): <NEW_LINE> <INDENT> if (simulate): <NEW_LINE> <INDENT> print ("REMOVE " + str(self)) <NEW_LINE> return True <NEW_LINE> <D... | A Backup represents a file in the backup directory | 62598ef899cbb53fe682f78d |
class Dictionary(object): <NEW_LINE> <INDENT> def __init__(self, init=True): <NEW_LINE> <INDENT> self.word2idx = OrderedDict() <NEW_LINE> self.idx2word = [] <NEW_LINE> if init: <NEW_LINE> <INDENT> for i, k in enumerate(SPECIAL): <NEW_LINE> <INDENT> self.word2idx[k] = i <NEW_LINE> self.idx2word.append(k) <NEW_LINE> <DED... | Maps words into indeces.
It has forward and backward indexing. | 62598ef87d43ff248742686a |
class Address(Stored): <NEW_LINE> <INDENT> def __init__(self, street: str, house: Optional[House] = None) -> None: <NEW_LINE> <INDENT> self.street: str = street <NEW_LINE> self.house: Optional[House] = house <NEW_LINE> self.letters: Optional[EmbeddedList[str]] = None <NEW_LINE> self.settings: Optional[EmbeddedDict[str,... | Адрес. | 62598ef866673b3332c2ec8e |
class School: <NEW_LINE> <INDENT> __slots__ = ["name", "metadata_id"] <NEW_LINE> def __init__(self, school: dict): <NEW_LINE> <INDENT> self.name: str = school["name"] <NEW_LINE> if "metadata_id" in school: <NEW_LINE> <INDENT> self.metadata_id: str = school["metadata_id"] | School information. | 62598ef84527f215b58e87e1 |
class And(interp.SpecialFunction): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> interp.SpecialFunction.__init__(self, name) <NEW_LINE> self.setSignature([[lcadTypes.LCadBoolean], [lcadTypes.LCadBoolean], ["optional", [lcadTypes.LCadBoolean]]]) <NEW_LINE> <DEDENT> def call(self, model, tree): <NEW_L... | **and** - And statement.
Usage::
(and (< 1 2) (< 2 3)) ; t
(and (fn x) nil) ; nil | 62598ef81f5feb6acb161533 |
class Mortgage(object): <NEW_LINE> <INDENT> def __init__(self, loan, annRate, months): <NEW_LINE> <INDENT> self.loan = loan <NEW_LINE> self.rate = annRate/12.0 <NEW_LINE> self.months = months <NEW_LINE> self.paid = [0.0] <NEW_LINE> self.owed = [loan] <NEW_LINE> self.payment = findPayment(loan, self.rate, months) <NEW_L... | Abstract class for building different kinds of mortgages | 62598ef84f6381625f19892c |
class INyCaseStudy(Interface): <NEW_LINE> <INDENT> pass | Naaya Case Study content type | 62598ef867a9b606de5448af |
class SerialReader(QtCore.QObject): <NEW_LINE> <INDENT> sig_status = QtCore.Signal(list) <NEW_LINE> sig_termino = QtCore.Signal() <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(SerialReader, self).__init__() <NEW_LINE> self.stopped = False <NEW_LINE> self.mutex = QtCore.QMutex() <NEW_LINE> <DEDENT> def stop(s... | SerialReader class is running apart from MainWindodw | 62598ef810dbd63aa1c6f45c |
class Box(pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, x=30, y=30, width=20, height=20, color=(254,254,254)): <NEW_LINE> <INDENT> super(Box, self).__init__() <NEW_LINE> self.color = ColorChanger(color[0], color[1], color[2]) <NEW_LINE> self.location = [x, y] <NEW_LINE> self.width = width <NEW_LINE> sel... | Guess what it is?
| 62598ef871ff763f4b5e6040 |
class IsAdmin(BasePermission): <NEW_LINE> <INDENT> def has_permission(self, request, view): <NEW_LINE> <INDENT> return (request.user.is_staff or request.user.is_superuser or request.user.is_admin) | Проверка что пользователь является админом | 62598ef84527f215b58e87e2 |
class TestMoney(unittest.TestCase): <NEW_LINE> <INDENT> def test_price_by_rubles_amount(self): <NEW_LINE> <INDENT> price = Price.rubles(20000) <NEW_LINE> self.assertEqual(RU20K, str(price)) <NEW_LINE> <DEDENT> def test_price_str_representation(self): <NEW_LINE> <INDENT> price = Price(20000, Currencies.RUBLES) <NEW_LINE... | Заказ имеет свою полную стоимость, выраженную в деньгах | 62598ef83539df3088ecab8d |
class Pagina(models.Model): <NEW_LINE> <INDENT> titulo = models.CharField('Título', max_length = 120, unique = True,blank = False, null = False) <NEW_LINE> slug = models.SlugField(max_length = 120, unique = True,help_text = 'unico Valor',editable=False) <NEW_LINE> fecha = models.DateField() <NEW_LINE> contenido = model... | Modelo Gpara representar a paginas estaticas | 62598ef8442bda511e95ad41 |
class DetectionState(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.seq_scale_factor = None <NEW_LINE> self.time_index = None <NEW_LINE> self.detected = None <NEW_LINE> self.current_sig_start = None <NEW_LINE> self.last_sig_end = None <NEW_LINE> self.reset() <NEW_LINE> <DEDENT> def reset(self): <NE... | Manages detected sequence state. | 62598ef87cff6e4e811b42c2 |
class EnsureColumnsOperation(synode.Node): <NEW_LINE> <INDENT> name = 'Ensure columns in Tables' <NEW_LINE> author = 'Daniel Hedendahl <daniel.hedendahl@combine.se>' <NEW_LINE> copyright = '(C) 2014 System Engineering Software Society' <NEW_LINE> version = '1.0' <NEW_LINE> description = 'Ensure the existence of column ... | Ensure the existence of columns in Tables by using an additional
Table with the name of the columns that must exist. Select to get
the result of the check as the form of an exception or as an added
dummy signal. The type of the dummy signal is by default float with
all elements set to NaN.
:Inputs:
:Outputs:
:Configur... | 62598ef891f36d47f2230314 |
class isFamilyFriendlyProp(SchemaProperty): <NEW_LINE> <INDENT> _prop_schema = 'isFamilyFriendly' <NEW_LINE> _expected_schema = None <NEW_LINE> _enum = False <NEW_LINE> _format_as = "BooleanField" | SchemaField for isFamilyFriendly
Usage: Include in SchemaObject SchemaFields as your_django_field = isFamilyFriendlyProp()
schema.org description:Indicates whether this content is family friendly.
prop_schema returns just the property without url#
format_as is used by app templatetags based upon schema.org datatype | 62598ef8377c676e912f61d3 |
class QCResponse: <NEW_LINE> <INDENT> def __init__(self, response_data): <NEW_LINE> <INDENT> self._response_data = response_data <NEW_LINE> self._qi = self._response_data["properties"] ["productInformation"] ["qualityInformation"] ["qualityIndicators"] <NEW_LINE> self.status = None <NEW... | QI metadata response.
:param dict response_data: QI metadata | 62598ef85166f23b2e241cbc |
class JSONCorruptor(Corruptor): <NEW_LINE> <INDENT> def __init__(self, path=None): <NEW_LINE> <INDENT> super(JSONCorruptor).__init__() <NEW_LINE> self.corrupted_program_path = path <NEW_LINE> <DEDENT> def corrupt(self, program): <NEW_LINE> <INDENT> if not self.corrupted_program_path: <NEW_LINE> <INDENT> raise RuntimeEr... | Loads a corrupted program from a JSON file | 62598ef8ff9c53063f518f42 |
class EfficiencyTab(AnalysisWidget): <NEW_LINE> <INDENT> def __init__(self, parent, setup, options, name, tab_list): <NEW_LINE> <INDENT> super(EfficiencyTab, self).__init__(parent, setup, options, name, tab_list) <NEW_LINE> if options['skip_alignment']: <NEW_LINE> <INDENT> input_tracks = os.path.join(options['output_pa... | Implements the efficiency results tab | 62598ef899cbb53fe682f78f |
class CommitError(SerializationError, exc.EnvironmentError): <NEW_LINE> <INDENT> def __init__(self, object, written=0, **kwds): <NEW_LINE> <INDENT> super(CommitError,self).__init__(object, **kwds) <NEW_LINE> self.committed = written, <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> written, = self.committed <... | Error while committing object to source | 62598ef830bbd72246468516 |
class FususAspect(object): <NEW_LINE> <INDENT> def draw(self,cr,r,aspects): <NEW_LINE> <INDENT> cr.save() <NEW_LINE> scl = r * 0.00065 <NEW_LINE> for asp in aspects: <NEW_LINE> <INDENT> f = 3*((5-5*asp.f1)+(5-5*asp.f2)) * scl <NEW_LINE> x1 = r * math.cos(asp.p1 * RAD) <NEW_LINE> y1 = r * math.sin(asp.p1 * RAD) <NEW_LIN... | Normal aspect (fusus form) | 62598ef89f288636728170df |
class HelloRetryRequest(HelloMessage): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(HelloRetryRequest, self).__init__(HandshakeType .hello_retry_request) <NEW_LINE> self.server_version = (0, 0) <NEW_LINE> self.cipher_suite = 0 <NEW_LINE> self.extensions = [] <NEW_LINE> <DEDENT> def create(self, ser... | Handling of TLS 1.3 Hello Retry Request handshake message. | 62598ef8460517430c430d69 |
class JarCreate(JarTask): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setup_parser(cls, option_group, args, mkflag): <NEW_LINE> <INDENT> super(JarCreate, cls).setup_parser(option_group, args, mkflag) <NEW_LINE> option_group.add_option(mkflag('compressed'), mkflag('compressed', negate=True), dest='jar_create_compres... | Jars jvm libraries and optionally their sources and their docs. | 62598ef860cbc95b06362c17 |
class IPhoneVersion(BaseModel): <NEW_LINE> <INDENT> application = models.ForeignKey(Application, related_name="iphone_versions") <NEW_LINE> country = models.CharField(max_length=2, choices=dicts.COUNTRY_CHOICES.items(), default='us') <NEW_LINE> title = models.CharField("App title", max_length=256, help_text="The title ... | Database model for app versions (Android version, iOS version, etc.). | 62598ef8a8370b77170eecc6 |
class NouserNocacheMixin(NeverCacheMixin): <NEW_LINE> <INDENT> def finalize_response(self, request, response, *args, **kwargs): <NEW_LINE> <INDENT> if hasattr(request, "user"): <NEW_LINE> <INDENT> request.user = AnonymousUser() <NEW_LINE> <DEDENT> return super().finalize_response(request, response, *args, **kwargs) | Remove request user prior to rendering response.
Authorization for a given user authenticates the request to that user, to
access or modify that user's data. Once the API has handled a request and
generated data for the API response, remove the user from the request to
prevent use of any further user information in th... | 62598ef8fff4ab517ebcc0b3 |
class GetParticipant(TLObject): <NEW_LINE> <INDENT> __slots__: List[str] = ["channel", "user_id"] <NEW_LINE> ID = 0x546dd7a6 <NEW_LINE> QUALNAME = "functions.channels.GetParticipant" <NEW_LINE> def __init__(self, *, channel: "raw.base.InputChannel", user_id: "raw.base.InputUser") -> None: <NEW_LINE> <INDENT> self.chann... | Telegram API method.
Details:
- Layer: ``122``
- ID: ``0x546dd7a6``
Parameters:
channel: :obj:`InputChannel <pyrogram.raw.base.InputChannel>`
user_id: :obj:`InputUser <pyrogram.raw.base.InputUser>`
Returns:
:obj:`channels.ChannelParticipant <pyrogram.raw.base.channels.ChannelParticipant>` | 62598ef84527f215b58e87e4 |
class Tree(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.pp = []; <NEW_LINE> self.nodeNames = None <NEW_LINE> self.nodeFeatures = None <NEW_LINE> self.nodeOperators = None <NEW_LINE> self.nodeAct_z=[]; <NEW_LINE> self.nodeAct_a=[]; <NEW_LINE> self.ParIn_z=[]; <NEW_LINE> self.ParIn_a=[]; <NEW... | classdocs | 62598ef8097d151d1a2bf905 |
class Section(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=50, verbose_name='章节标题') <NEW_LINE> content = models.TextField(verbose_name='章节内容', null=True) <NEW_LINE> add_time = models.DateTimeField(auto_now_add=True, verbose_name='更新时间') <NEW_LINE> num = models.IntegerField(null=True, verbose_n... | 小说章节模型 | 62598ef876e4537e8c3ede9b |
class CadfNotificationWrapper(object): <NEW_LINE> <INDENT> def __init__(self, operation): <NEW_LINE> <INDENT> self.action = operation <NEW_LINE> self.event_type = '%s.%s' % (SERVICE, operation) <NEW_LINE> <DEDENT> def __call__(self, f): <NEW_LINE> <INDENT> def wrapper(wrapped_self, context, user_id, *args, **kwargs): <... | Send CADF event notifications for various methods.
This function is only used for Authentication events. Its ``action`` and
``event_type`` are dictated below.
- action: authenticate
- event_type: identity.authenticate
Sends CADF notifications for events such as whether an authentication was
successful or not.
:para... | 62598ef8009cb60464cffe32 |
class Consumer(mp.Process): <NEW_LINE> <INDENT> def __init__(self, queue, api_server_domain, *args, **kwargs): <NEW_LINE> <INDENT> super(Consumer, self).__init__(*args, **kwargs) <NEW_LINE> self.queue = queue <NEW_LINE> self._api_server_domain = api_server_domain <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> w... | 消费者线程 | 62598ef82ae34c7f260a99c5 |
class TestCardFunction(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 testCardFunction(self): <NEW_LINE> <INDENT> pass | CardFunction unit test stubs | 62598ef87047854f4633dcaa |
class NotPresent(object): <NEW_LINE> <INDENT> pass | Special value returned when evaluating a missing label.
Its main purpose is to be unequal to anything that we might compare
it to. | 62598ef83617ad0b5ee04a0a |
class RomInfoParser(object): <NEW_LINE> <INDENT> __parsers = [] <NEW_LINE> @staticmethod <NEW_LINE> def registerParser(romInfoParser): <NEW_LINE> <INDENT> RomInfoParser.__parsers.append(romInfoParser) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def getParsers(): <NEW_LINE> <INDENT> return RomInfoParser.__parsers <NEW_... | Base class for ROM info parsers. When an info parser subclasses this
object, it can register itself with registerParser(), and
pyrominfo.parse() will automatically include it when trying to parse a ROM
file. | 62598ef8a05bb46b38489156 |
class StoreConstructors(object): <NEW_LINE> <INDENT> draft, split = list(range(2)) | Enumeration of store constructor types. | 62598ef88a349b6b43684b24 |
class TestOrganisationsControllerWithFullAuth(TestOrganisationsControllerBase): <NEW_LINE> <INDENT> def testIndex(self): <NEW_LINE> <INDENT> self.setup_helper(function='index') <NEW_LINE> self.index_helper() <NEW_LINE> <DEDENT> def testCreate(self): <NEW_LINE> <INDENT> self.setup_helper(function='create') <NEW_LINE> se... | to be subclassed. not to be run directly | 62598ef857b8e32f52507574 |
class PartialProfile(Profile): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> async def async_query( connection: iterm2.connection.Connection, guids: typing.Optional[typing.List[str]] = None, properties: typing.List[str] = [ "Guid", "Name"]) -> typing.List['PartialProfile']: <NEW_LINE> <INDENT> response = await iterm2.rp... | Represents a profile that has only a subset of fields available for
reading. | 62598ef801c39578d7f11685 |
class BasicTestSuite(unittest.TestCase): <NEW_LINE> <INDENT> def test_activation(self): <NEW_LINE> <INDENT> cfg = dict( type='Activation', activation='relu') <NEW_LINE> relu = activation.build_act_layer(cfg) <NEW_LINE> x = _input(128, 128) <NEW_LINE> y = relu(x) <NEW_LINE> x, y = x.asnumpy(), y.asnumpy() <NEW_LINE> sel... | Basic test cases. | 62598ef89f288636728170e1 |
class JSONResponseMixin(object): <NEW_LINE> <INDENT> def render_to_json_response(self, context, **response_kwargs): <NEW_LINE> <INDENT> return JsonResponse(self.get_data(context), **response_kwargs) <NEW_LINE> <DEDENT> def get_data(self, context): <NEW_LINE> <INDENT> return context | A mixin that can be used to render a JSON response. | 62598ef897e22403b38397d3 |
class ColorEditor(csel.ColourSelect, ChartDialogEventMixin): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> csel.ColourSelect.__init__(self, *args, **kwargs) <NEW_LINE> self.__bindings() <NEW_LINE> <DEDENT> def __bindings(self): <NEW_LINE> <INDENT> self.Bind(csel.EVT_COLOURSELECT, self.OnC... | Editor widget for 3-tuples of floats that represent color | 62598ef8cc0a2c11144798e4 |
class SessionSource(grok.GlobalUtility): <NEW_LINE> <INDENT> grok.context(IRequest) <NEW_LINE> grok.implements(interfaces.IMessageSource) <NEW_LINE> _key = u'dolmen.message.session' <NEW_LINE> def send(self, text, type=interfaces.BASE_MESSAGE_TYPE): <NEW_LINE> <INDENT> session = getSession() <NEW_LINE> if session is No... | A message source storing messages into the session.
| 62598ef8460517430c430d6b |
class Tower: <NEW_LINE> <INDENT> def __init__(self, n, From, Using, To): <NEW_LINE> <INDENT> self.n = n <NEW_LINE> self.From = From <NEW_LINE> self.Using = Using <NEW_LINE> self.To = To <NEW_LINE> self.poles = [Pole(From, [Disk(n-i) for i in range(n)]), Pole(Using, []), Pole(To, [])] <NEW_LINE> self.pole_dict = {From: ... | The object that represents the full puzzle.
:param n: int, the number of disks in the problem.
:param From: str, the name of the first pole.
:param Using: str, the name of the first pole.
:param To: str, the name of the first pole. | 62598ef844b2445a339b5ddf |
class KDEPrior(Prior): <NEW_LINE> <INDENT> def __init__(self, samples, lower=None, upper=None, kdebw=None, init_from=None): <NEW_LINE> <INDENT> from scipy.stats.kde import gaussian_kde <NEW_LINE> self.samples = np.array(samples, copy=False).flatten() <NEW_LINE> self.kde = gaussian_kde(self.samples, kdebw) <NEW_LINE> se... | Prior defined by the histogram of an array - uses gaussian kde to estimate
the density | 62598ef8ec188e330fdf718d |
class MultiprocessStreamHandler(logging.StreamHandler): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(MultiprocessStreamHandler, self).__init__(*args, **kwargs) <NEW_LINE> self.record_queue = multiprocessing.Queue(-1) <NEW_LINE> receiving_thread = threading.Thread(target = self.rece... | A subclass of StreamHandler which synchronizes record logging using a queue.
| 62598ef867a9b606de5448b3 |
class BaseConsole(object): <NEW_LINE> <INDENT> KEY_DOWN = 1 <NEW_LINE> KEY_UP = 0 <NEW_LINE> def __init__(self, vm, logfile=None): <NEW_LINE> <INDENT> self._vm = vm <NEW_LINE> <DEDENT> def key_press(self, keystroke, interval=0): <NEW_LINE> <INDENT> for key in self._get_seq(keystroke, interval): <NEW_LINE> <INDENT> self... | Base Console | 62598ef84428ac0f6e656e30 |
class Square: <NEW_LINE> <INDENT> def __init__(self, size=0, position=(0, 0)): <NEW_LINE> <INDENT> self.__size = size <NEW_LINE> if type(self.__size) != int: <NEW_LINE> <INDENT> raise TypeError('size must be an integer') <NEW_LINE> <DEDENT> if self.__size < 0: <NEW_LINE> <INDENT> raise ValueError('size must be >= 0') <... | empty class Square that defines a square.
Attributes:
Not Attributes for now. | 62598ef821bff66bcd72153a |
class Settings(ConfigurationView): <NEW_LINE> <INDENT> def __init__(self, *args, deprecated_settings=None, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self.deprecated_settings = deprecated_settings <NEW_LINE> <DEDENT> @property <NEW_LINE> def broker_read_url(self): <NEW_LINE> <INDENT> re... | Celery settings object.
.. seealso:
:ref:`configuration` for a full list of configuration keys. | 62598ef8d268445f26639001 |
class Disposable(object): <NEW_LINE> <INDENT> def __init__(self, action): <NEW_LINE> <INDENT> self.is_disposed = False <NEW_LINE> self.action = action <NEW_LINE> <DEDENT> def dispose(self): <NEW_LINE> <INDENT> if not self.is_disposed: <NEW_LINE> <INDENT> self.action() <NEW_LINE> self.is_disposed = True <NEW_LINE> <DEDE... | Main disposable class | 62598ef85fdd1c0f98e5c889 |
class Architecture(object): <NEW_LINE> <INDENT> I386 = 0 <NEW_LINE> X86_X64 = 1 | Image and size architectures.
@cvar I386: i386 (32 bt)
@cvar X86_64: x86_64 (64 bit) | 62598ef87cff6e4e811b42c6 |
class SvdDevice(SvdElement): <NEW_LINE> <INDENT> props = [ "schemaVersion", "vendor", "vendorID", "name", "series", "version", "description", "licenseText", "headerSystemFilename", "headerDefinitionsPrefix", "addressUnitBits", "width", "size", "access", "protection", "resetValue", "resetMask" ] <NEW_LINE> props_to_inte... | SVD Devices element | 62598ef867a9b606de5448b4 |
class Error(): <NEW_LINE> <INDENT> def __init__(self, code, message, *, more_info=None, target=None): <NEW_LINE> <INDENT> self.code = code <NEW_LINE> self.message = message <NEW_LINE> self.more_info = more_info <NEW_LINE> self.target = target <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def _from_dict(cls, _dict): <NEW_... | Details about an error.
:attr str code: Identifier of the problem.
:attr str message: An explanation of the problem with possible solutions.
:attr str more_info: (optional) A URL for more information about the solution.
:attr ErrorTarget target: (optional) Details about the specific area of the
problem. | 62598ef8442bda511e95ad45 |
class ConsultantListView(View): <NEW_LINE> <INDENT> def get(self, request, page=1): <NEW_LINE> <INDENT> consultants = Consultant.objects.all() <NEW_LINE> size = 9 <NEW_LINE> pages = [i+1 for i in range(int(math.ceil(consultants.count()/size)))] <NEW_LINE> return render( request, 'consultant/consultant_list.html', { 'co... | 상담사 리스팅
Web에서 pagination을 위해 page number을 Url 파라미터로 받음. 디폴트는 1 | 62598ef8e5267d203ee6a1e9 |
class TextGeneralHandwriting(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.DetectedText = None <NEW_LINE> self.Confidence = None <NEW_LINE> self.Polygon = None <NEW_LINE> self.AdvancedInfo = None <NEW_LINE> self.WordPolygon = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <N... | 文字识别结果
| 62598ef8796e427e5384d07e |
class _BlastAllOrPgpCommandLine(_BlastCommandLine) : <NEW_LINE> <INDENT> def __init__(self, cmd=None, **kwargs): <NEW_LINE> <INDENT> assert cmd is not None <NEW_LINE> extra_parameters = [ _Option(["-G", "gap_open"], ["input"], None, 0, "Gap open penalty", False), _Option(["-E", "gap_extend"], ["input"], None,... | Base Commandline object for NCBI BLAST wrappers (PRIVATE).
This is provided for subclassing, it deals with shared options
common to all the blastall and pgpblast tools (but not rpsblast). | 62598ef866656f66f7d58cc9 |
class Tracking: <NEW_LINE> <INDENT> def __init__(self,bot): <NEW_LINE> <INDENT> self.bot = bot <NEW_LINE> self.header = {"User-Agent": "User_Agent"} <NEW_LINE> self.settings = dataIO.load_json("data/osu/settings.json") <NEW_LINE> self.users = dataIO.load_json("data/osu/users.json") <NEW_LINE> self.maps = dataIO.load_js... | new class just for tracking | 62598ef832920d7e50bc4913 |
class TeacherListView(View): <NEW_LINE> <INDENT> def get(self, request): <NEW_LINE> <INDENT> all_teachers = Teacher.objects.all() <NEW_LINE> search_keywords = request.GET.get('keywords', '') <NEW_LINE> if search_keywords: <NEW_LINE> <INDENT> all_teachers = all_teachers.filter(Q(name__icontains=search_keywords)|Q(work_c... | 课程讲师列表页 | 62598ef85166f23b2e241cc0 |
class UserViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> model = User <NEW_LINE> serializer_class = UserSerializer | This is a test! | 62598ef891f36d47f2230316 |
class Node(object): <NEW_LINE> <INDENT> def __init__(self, label): <NEW_LINE> <INDENT> self.label = label <NEW_LINE> self.children = {} <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> if self.children: <NEW_LINE> <INDENT> return '[%s ' % self.label + '%s]' % ''.join(str(self.children[key]) for key in self.ch... | Tree node | 62598ef8e1aae11d1e7cdcb4 |
class Solution: <NEW_LINE> <INDENT> def fullJustify(self, words: List[str], maxWidth: int) -> List[str]: <NEW_LINE> <INDENT> ans = [] <NEW_LINE> n = len(words) <NEW_LINE> start = i = 0 <NEW_LINE> while i < n: <NEW_LINE> <INDENT> if self.get_length(words, start, i) <= maxWidth: <NEW_LINE> <INDENT> i += 1 <NEW_LINE> cont... | 20190831 | 62598ef87d43ff248742686d |
class ListField(BaseField): <NEW_LINE> <INDENT> def __init__(self, value=list(), restrict_type=None, **kwargs): <NEW_LINE> <INDENT> super().__init__(value=list(value), **kwargs) <NEW_LINE> self.restrict_type = restrict_type <NEW_LINE> <DEDENT> def InitField(self, inst): <NEW_LINE> <INDENT> if self.networked and isserve... | List field.
NOTE: networked list fields do not implement all list methods! | 62598ef8cc0a2c11144798e6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.