code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ROCBase(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_statistics(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def compute_auc(self, roc=None): <NEW_LINE> <INDENT> if roc is None: <NEW_LINE> <INDENT> roc = self.get_statistics() <NE... | An ABC class | 62598f13187af65679d2922f |
class DataFormatter(object): <NEW_LINE> <INDENT> def generate_uid_from_string(self, astring): <NEW_LINE> <INDENT> return UUID(hashlib.md5(astring.encode('utf-8')).hexdigest()) <NEW_LINE> <DEDENT> def _get_publish_date(self, value): <NEW_LINE> <INDENT> if isinstance(value, int): <NEW_LINE> <INDENT> return datetime.utcfr... | Base class for formatting data which returns from VK api. | 62598f137cff6e4e811b463e |
class PollingQueueConsumer(object): <NEW_LINE> <INDENT> consumer = None <NEW_LINE> def __init__(self, timeout=None): <NEW_LINE> <INDENT> self.timeout = timeout <NEW_LINE> self.replies = {} <NEW_LINE> <DEDENT> def _setup_consumer(self): <NEW_LINE> <INDENT> if self.consumer is not None: <NEW_LINE> <INDENT> try: <NEW_LINE... | Implements a minimum interface of the
:class:`~messaging.QueueConsumer`. Instead of processing messages in a
separate thread it provides a polling method to block until a message with
the same correlation ID of the RPC-proxy call arrives. | 62598f1355399d3f05625178 |
class SavedLinksCommand(Command): <NEW_LINE> <INDENT> COMMAND = 'savedlinks' <NEW_LINE> def __init__(self, update: Update, context: CallbackContext): <NEW_LINE> <INDENT> super().__init__(update, context) <NEW_LINE> self.spotify_api_client = SpotifyAPIClient() <NEW_LINE> <DEDENT> def get_response(self): <NEW_LINE> <INDE... | Command /savedlinks
Shows a list of the links that the user saved | 62598f13a05bb46b384894cd |
class AccelRange(CV): <NEW_LINE> <INDENT> pass | Options for ``accelerometer_range`` | 62598f1331939e2706ed108b |
class Devices(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ips = {} <NEW_LINE> self.states = {} <NEW_LINE> for i in sub(['ip', 'link', 'show']).decode().strip().split('\n'): <NEW_LINE> <INDENT> if re.match(r'^[0-9]:', i): <NEW_LINE> <INDENT> k, v = re.findall(r'^[0-9]: ([^:]+).*state (\S+)'... | Network devices from IP | 62598f13ad47b63b2c5a6462 |
class AbstractBaseStatement(models.Model, StatementMixin): <NEW_LINE> <INDENT> text = models.CharField( max_length=constants.STATEMENT_TEXT_MAX_LENGTH ) <NEW_LINE> stemmed_text = models.CharField( max_length=constants.STATEMENT_TEXT_MAX_LENGTH, blank=True ) <NEW_LINE> conversation = models.CharField( max_length=constan... | The abstract base statement allows other models to
be created using the attributes that exist on the
default models. | 62598f1397e22403b3839b36 |
class PrivateEndpoint(Resource): <NEW_LINE> <INDENT> _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, 'network_interfaces': {'readonly': True}, 'provisioning_state': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'ty... | Private endpoint resource.
Variables are only populated by the server, and will be ignored when sending a request.
:param id: Resource ID.
:type id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param location: Resource location.
:type location: str
:param tags: A se... | 62598f133617ad0b5ee04d84 |
class Article(BaseModel): <NEW_LINE> <INDENT> STATUS = ((0, '草稿'), (1, '发布'), (2, '归档')) <NEW_LINE> title = models.CharField('标题', db_column='title', max_length=200); <NEW_LINE> content = models.TextField('内容', db_column='content') <NEW_LINE> category = models.ForeignKey(Category, verbose_name='类型', null=True, on_delet... | 文章 | 62598f13fbf16365ca792cf4 |
class MCP3208(spi.Spi): <NEW_LINE> <INDENT> def __init__(self, spidrv, cs, clk = 400000): <NEW_LINE> <INDENT> spi.Spi.__init__(self, cs, spidrv, clock=clk) <NEW_LINE> <DEDENT> def get_raw_data(self, single, channel): <NEW_LINE> <INDENT> cmd = bytearray(3) <NEW_LINE> cmd[0] = 4 + 2*single + 1*(channel>=4) <NEW_LINE> cmd... | ===============
MCP3208 class
===============
.. class:: MCP3208(spidrv, cs, clk = 400000)
Creates an instance of the MCP3208 class. This class allows the control of both MCP3204 and MCP3208 devices.
:param spidrv: SPI Bus used '(SPI0, ...)'
:param cs: Chip select pin
:param clk: Clock speed, d... | 62598f13187af65679d29230 |
class ControlledDocument(Document): <NEW_LINE> <INDENT> meta = {'abstract': True, 'controller_cls': BaseController} <NEW_LINE> @property <NEW_LINE> def controller(self): <NEW_LINE> <INDENT> controller_cls = self._meta.get('controller_cls') <NEW_LINE> if not controller_cls: <NEW_LINE> <INDENT> raise NotImplementedError(... | Mongoengine abstract document providing a controller attribute to
alter with style the document ! | 62598f13091ae3566870385f |
class DeliverListHandler(TornadoHttpHandler): <NEW_LINE> <INDENT> @returns(need_login=True) <NEW_LINE> def _get(self): <NEW_LINE> <INDENT> return self._post() <NEW_LINE> <DEDENT> @returns(need_login=True) <NEW_LINE> def _post(self): <NEW_LINE> <INDENT> goods_id = int(self.get_argument("goods_id",0)) <NEW_LINE> p = int(... | 维度:
用户ID 商品名称 数量 订购日期 出货日期 收货人姓名 收货人电话 收货地址 邮编 修改状态 | 62598f1331939e2706ed108c |
class pattern(immutable): <NEW_LINE> <INDENT> __slots__ = 'matchable', 'startcodes', '_compiled' <NEW_LINE> def __init__(self, *matchables, startcodes=(DEFAULT_STARTCODE,)): <NEW_LINE> <INDENT> if not matchables: <NEW_LINE> <INDENT> raise TypeError('expected at least one matchable') <NEW_LINE> <DEDENT> self.matchable =... | A pattern of instructions that can be matched against.
This class is intended to be used as a decorator on methods of
CodeTransformer subclasses. It is used to mark that a given method should
be called on sequences of instructions that match the pattern described by
the inputs.
Parameters
----------
\*matchables : i... | 62598f13bf627c535bcb00cc |
class DataProcessor: <NEW_LINE> <INDENT> def __init__(self, data_list: list): <NEW_LINE> <INDENT> self.data_list = data_list <NEW_LINE> <DEDENT> @property <NEW_LINE> def get_average(self): <NEW_LINE> <INDENT> return np.average(self.data_list) <NEW_LINE> <DEDENT> @property <NEW_LINE> def get_std(self): <NEW_LINE> <INDEN... | DataProcessor class | 62598f13a219f33f346c5480 |
class NoteDetailView(TemplateView): <NEW_LINE> <INDENT> template_name = "notes.html" | View to handle listing notes. | 62598f13656771135c4882e1 |
@register() <NEW_LINE> class update_ca_renewal_master(PostUpdate): <NEW_LINE> <INDENT> def execute(self, **options): <NEW_LINE> <INDENT> ldap = self.obj.backend <NEW_LINE> base_dn = DN(('cn', 'masters'), ('cn', 'ipa'), ('cn', 'etc'), self.api.env.basedn) <NEW_LINE> filter = '(&(cn=CA)(ipaConfigString=caRenewalMaster))'... | Set CA renewal master in LDAP. | 62598f1397e22403b3839b39 |
class SegWit2XTestNet(SegWit2X): <NEW_LINE> <INDENT> name = 'test-segwit2x' <NEW_LINE> seeds = ('node1.b2x-segwit.io', 'node2.b2x-segwit.io', 'node3.b2x-segwit.io') <NEW_LINE> port = 18333 <NEW_LINE> message_start = b'\xf3\xb1\xb4\xd7' <NEW_LINE> base58_prefixes = { 'PUBKEY_ADDR': 111, 'SCRIPT_ADDR': 196, 'SECRET_KEY':... | Class with all the necessary SegWit2X (B2X) testing network information based on
https://github.com/SegwitB2X/bitcoin2x/blob/master/src/chainparams.cpp
(date of access: 02/17/2018) | 62598f1360cbc95b06362f88 |
class StringArrayScientific(arrays_data.StringArrayData): <NEW_LINE> <INDENT> _stored_metadata = [MappedType.METADATA_ARRAY_SHAPE] <NEW_LINE> def _find_summary_info(self): <NEW_LINE> <INDENT> summary = {"Array type": self.__class__.__name__, "Shape": self.shape} <NEW_LINE> return summary | This class exists to add scientific methods to StringArrayData | 62598f133617ad0b5ee04d85 |
@Injectable() <NEW_LINE> class PublicConfigurationSerializer(object): <NEW_LINE> <INDENT> def as_dict(self, value: PublicConfiguration) -> dict: <NEW_LINE> <INDENT> res = dict() <NEW_LINE> res[PublicConfiguration.BASE_CURRENCY_NAME_DICT_KEY] = value.base_currency_name <NEW_LINE> res[PublicConfiguration.CUSTOM_CURRENCY_... | Defines the conversion of a PublicConfiguration instance into a dict object.
The resulting object may be delivered to the Web Application. | 62598f1326238365f5fab7e1 |
class SimpleTestCaseView(TemplateView): <NEW_LINE> <INDENT> template_name = 'case/get_details.html' <NEW_LINE> def get(self, request, case_id): <NEW_LINE> <INDENT> self.case_id = case_id <NEW_LINE> self.review_mode = request.GET.get('review_mode') <NEW_LINE> return super(SimpleTestCaseView, self).get(request, case_id) ... | Simple read-only TestCase View used in TestPlan page | 62598f13377c676e912f6391 |
class Highwayhash(MakefilePackage): <NEW_LINE> <INDENT> homepage = "https://github.com/google/highwayhash" <NEW_LINE> git = "https://github.com/google/highwayhash.git" <NEW_LINE> version('dfcb97', commit='dfcb97ca4fe9277bf9dc1802dd979b071896453b') <NEW_LINE> build_targets = ['all', 'libhighwayhash.a'] <NEW_LINE> d... | Strong (well-distributed and unpredictable) hashes:
- Portable implementation of SipHash
- HighwayHash, a 5x faster SIMD hash with security claims | 62598f13ec188e330fdf750d |
class TestPackage(unittest.TestCase): <NEW_LINE> <INDENT> def test_package(self): <NEW_LINE> <INDENT> self.assertTrue(hasattr(physbiblio, "__author__")) <NEW_LINE> self.assertTrue(hasattr(physbiblio, "__email__")) <NEW_LINE> self.assertTrue(hasattr(physbiblio, "__version__")) <NEW_LINE> self.assertTrue(hasattr(physbibl... | Test package properties | 62598f13ad47b63b2c5a6466 |
class NeighbordbError(Exception): <NEW_LINE> <INDENT> pass | Base exception class for :py:class:`Neighbordb` | 62598f13ad47b63b2c5a6467 |
class _bexp(_bnds): <NEW_LINE> <INDENT> def __init__(me, id, lo, expr, hi): <NEW_LINE> <INDENT> assert id > 0 <NEW_LINE> me.id = id <NEW_LINE> gut=lambda x: x.up if isinstance(x, _math) else x <NEW_LINE> me.blist = [(gut(lo), gut(hi))] <NEW_LINE> me.expr = gut(expr) <NEW_LINE> <DEDENT> def data(me): <NEW_LINE> <INDENT>... | bounded expression. | 62598f1360cbc95b06362f8a |
class HistoryAccessLogicImpl(DataAccessLogic): <NEW_LINE> <INDENT> __SELECT_ALL_FROM = DBAConst.select_from_all() % DBAConst.history_data_base_name() <NEW_LINE> __SELECT_ALL_FROM_WITH = DBAConst.select_from_part() % DBAConst.history_data_base_name() <NEW_LINE> __TABLE_DATA = '{table}({col1}, {col2}, {col3}, {col4}, {co... | 履歴データベースを操作するクラス
desc history:
Field -> card_id, result, time_unit_start, time_unit_end, date
Type -> int, smallint, tinyint, tinyint, date | 62598f1426238365f5fab7e3 |
class PVsTreeview(MyTreeview): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> MyTreeview.__init__(self, *args, **kwargs) <NEW_LINE> self.pvs_refs = {} <NEW_LINE> <DEDENT> def _update_pvs_status(self, item): <NEW_LINE> <INDENT> item_tags = list(self.item(item, option="tags")) <NEW_LINE> if ... | Adds special support for TAG_CONNECTED, TAG_DISCONNECTED and TAG_PV | 62598f1455399d3f0562517d |
class SignupForm(forms.Form): <NEW_LINE> <INDENT> username = forms.CharField(max_length=40) <NEW_LINE> password = forms.CharField(widget=forms.PasswordInput) <NEW_LINE> email = forms.EmailField() <NEW_LINE> def clean_username(self): <NEW_LINE> <INDENT> username = self.cleaned_data['username'].lower() <NEW_LINE> user = ... | New user form | 62598f140fa83653e46f3b3f |
class StretchHandler(MouseHandler): <NEW_LINE> <INDENT> MinDistance = 10 <NEW_LINE> def __init__(self, pivot=None): <NEW_LINE> <INDENT> MouseHandler.__init__(self) <NEW_LINE> self.events = MouseEvents.Dragging <NEW_LINE> if pivot: <NEW_LINE> <INDENT> self.pivot = pivot <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self... | Stretches/shrinks a view | 62598f14091ae35668703863 |
class MAILSYNCRQ(SyncRqList): <NEW_LINE> <INDENT> incimages = Bool(required=True) <NEW_LINE> usehtml = Bool(required=True) <NEW_LINE> mailtrnrq = ListAggregate(MAILTRNRQ) | OFX section 9.2.4 | 62598f149f28863672817452 |
class CreateNewDocTest(unittest.TestCase): <NEW_LINE> <INDENT> def testInsertWithValidTrunkId(self): <NEW_LINE> <INDENT> trunk = library.insert_with_new_key(models.TrunkModel) <NEW_LINE> doc = library.create_new_doc(trunk.key()) <NEW_LINE> self.assertEquals(str(doc.trunk_ref.key()), str(trunk.key())) <NEW_LINE> trunk =... | Test insertion of new doc. | 62598f14bf627c535bcb00d0 |
class Loop(object): <NEW_LINE> <INDENT> __slots__ = "entry", "exit" <NEW_LINE> def __init__(self, entry, exit): <NEW_LINE> <INDENT> self.entry = entry <NEW_LINE> self.exit = exit <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> args = self.entry, self.exit <NEW_LINE> return "Loop(entry=%s, exit=%s)" % args | Describes a loop-block
| 62598f14ad47b63b2c5a6469 |
class AdminImageWidget(forms.FileInput): <NEW_LINE> <INDENT> def render(self, name, value, attrs=None): <NEW_LINE> <INDENT> output = super(AdminImageWidget, self).render(name, value, attrs) <NEW_LINE> if value and hasattr(value, 'url'): <NEW_LINE> <INDENT> ext = 'JPG' <NEW_LINE> try: <NEW_LINE> <INDENT> aux_ext = str(v... | An ImageField Widget for django.contrib.admin that shows a thumbnailed
image as well as a link to the current one if it hase one. | 62598f1450812a4eaa620219 |
class ZipResponse(BinaryResponse): <NEW_LINE> <INDENT> def __init__(self, body: bytes, filename: str, **kwargs) -> None: <NEW_LINE> <INDENT> super().__init__( content_type=MimeType.ZIP, filename=filename, body=body, **kwargs ) | Response class for returning a ZIP file to the user. | 62598f1497e22403b3839b3d |
class GSS(BaseObj, Unpack): <NEW_LINE> <INDENT> def _gss_data_call(self): <NEW_LINE> <INDENT> if self.credential.flavor != RPCSEC_GSS: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> if self.credential.gss_proc == RPCSEC_GSS_DATA: <NEW_LINE> <INDENT> if self.credential.gss_service == rpc_gss_svc_integrity: <NEW_LINE> <I... | GSS Data object
This is a base object and should not be instantiated.
It gives the following methods:
# Decode data preceding the RPC payload when flavor is RPCSEC_GSS
x.decode_gss_data()
# Decode data following the RPC payload when flavor is RPCSEC_GSS
x.decode_gss_checksum() | 62598f1426238365f5fab7e5 |
class TraceList: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._peers = [] <NEW_LINE> <DEDENT> def append(self, peer): <NEW_LINE> <INDENT> assert isinstance(peer, Peer) <NEW_LINE> self._peers.append(peer) <NEW_LINE> return self <NEW_LINE> <DEDENT> def pop(self): <NEW_LINE> <INDENT> if len(self._peers... | Peer List
Pass Node List on inter domain communication
that has Peer class List
ドメイン間を渡る場合に利用する、通過ノード一覧 | 62598f14377c676e912f6393 |
class Request(RequestBase): <NEW_LINE> <INDENT> def __init__(self, transaction_id: str=None, amount: int=None, description: str=None, process_date: str=None, ): <NEW_LINE> <INDENT> self.transaction_id = transaction_id <NEW_LINE> self.amount = amount <NEW_LINE> self.description = description <NEW_LINE> self.process_date... | Request object for the Refund::transaction API
:param str transaction_id: Refund ID
:param int amount: refund amount
:param str description: refunds description
:param str process_date: process date | 62598f149f28863672817454 |
class NodeAttributeAlreadyExistsError(BusinessProcessError): <NEW_LINE> <INDENT> def __init__(self, node_name, attribute_name): <NEW_LINE> <INDENT> message = "Node '{}' already has an attribute, called '{}'".format(node_name, attribute_name) <NEW_LINE> super(NodeAttributeAlreadyExistsError, self).__init__(message) | The node already the attribute with the specified name. | 62598f14ad47b63b2c5a646a |
class Subscript(MixedStyledText): <NEW_LINE> <INDENT> def __init__(self, text): <NEW_LINE> <INDENT> super().__init__(text, style=SUBSCRIPT_STYLE) | Subscript. | 62598f14ad47b63b2c5a646b |
class ConfigStore(object): <NEW_LINE> <INDENT> def __init__(self, base_path=None): <NEW_LINE> <INDENT> self.base_path = base_path or get_config_directory('RASH') <NEW_LINE> self.config_path = os.path.join(self.base_path, 'config.py') <NEW_LINE> self.data_path = os.path.join(self.base_path, 'data') <NEW_LINE> self.recor... | Configuration and data file store.
RASH stores data in the following directory in Linux::
* ~/.config/ # $XDG_CONFIG_HOME
`--* rash/ # base_path
|--* daemon.pid # PID of daemon process
|--* daemon.log # Log file for daemon
`--* data/ # data... | 62598f140fa83653e46f3b43 |
class SocksProxiedTransportWithTo(TransportWithTo): <NEW_LINE> <INDENT> cls_http_conn = SocksProxiedHTTPConnection <NEW_LINE> cls_https_conn = SocksProxiedHTTPSConnection <NEW_LINE> def __init__(self, proxy, use_datetime=0, is_https=False, timeout=None): <NEW_LINE> <INDENT> TransportWithTo.__init__(self, use_datetime, ... | Transport supports timeout and socks v4/v5 and http connect tunnel | 62598f14bf627c535bcb00d5 |
class CheckoutForm(forms.ModelForm): <NEW_LINE> <INDENT> full_name = forms.CharField( required=True, widget=forms.TextInput( attrs={ 'placeholder': 'Full name' } ), help_text=_("We use this name to personalize your account experience") ) <NEW_LINE> email = forms.EmailField( required=True, widget=forms.TextInput( attrs=... | Manage checkout form | 62598f148a349b6b43684ea3 |
class DBOperationException(Exception): <NEW_LINE> <INDENT> pass | Exception class for db CRUD operation failure | 62598f1431939e2706ed1091 |
class MessageInteractionList(ListResource): <NEW_LINE> <INDENT> def __init__(self, version, service_sid, session_sid, participant_sid): <NEW_LINE> <INDENT> super(MessageInteractionList, self).__init__(version) <NEW_LINE> self._solution = { 'service_sid': service_sid, 'session_sid': session_sid, 'participant_sid': parti... | PLEASE NOTE that this class contains beta products that are subject to
change. Use them with caution. | 62598f14956e5f7376df4cac |
class GlobLoader(object): <NEW_LINE> <INDENT> def glob_files(self, f, recursive=False): <NEW_LINE> <INDENT> if isinstance(f, tuple): <NEW_LINE> <INDENT> return iter(recursive_glob(f[0], f[1])) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return iter(glob.glob(f)) <NEW_LINE> <DEDENT> <DEDENT> def with_file(self, filena... | Base class with some helpers for loaders which need to search
for files. | 62598f143d592f4c4edb9b45 |
class Web(object): <NEW_LINE> <INDENT> def __init__(self, name, numofblocks=0, numofshapesets=0, shapesets=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.numofblocks = numofblocks <NEW_LINE> self.numofshapesets = numofshapesets <NEW_LINE> if None == shapesets: <NEW_LINE> <INDENT> shapesets = [] <NEW_LINE> ... | A base struct for a bunch of shapesets
It's needed to uniform parsing and counting of members | 62598f14d8ef3951e32c7484 |
class Vgg19(torch.nn.Module): <NEW_LINE> <INDENT> def __init__(self, model_path: str = None, requires_grad: bool = False): <NEW_LINE> <INDENT> super(Vgg19, self).__init__() <NEW_LINE> if model_path is None: <NEW_LINE> <INDENT> vgg_pretrained_features = models.vgg19(pretrained=True).features <NEW_LINE> <DEDENT> else: <N... | First layers of the VGG 19 model for the VGG loss.
`"Very Deep Convolutional Networks For Large-Scale Image Recognition" <https://arxiv.org/pdf/1409.1556.pdf>`_
Args:
model_path (str): Path to model weights file (.pth)
requires_grad (bool): Enables or disables the "requires_grad" flag for all model parameters | 62598f14656771135c4882eb |
class RNNCell(tf.nn.rnn_cell.RNNCell): <NEW_LINE> <INDENT> def __init__(self, input_size, state_size): <NEW_LINE> <INDENT> self.input_size = input_size <NEW_LINE> self._state_size = state_size <NEW_LINE> <DEDENT> @property <NEW_LINE> def state_size(self): <NEW_LINE> <INDENT> return self._state_size <NEW_LINE> <DEDENT> ... | Wrapper around our RNN cell implementation that allows us to play
nicely with TensorFlow. | 62598f1450812a4eaa62021d |
class PhotoExtraInfoSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> status_display = serializers.CharField(read_only=True, source='get_status_display') <NEW_LINE> photo_galleries = PhotoGalleryMembershipSerializer(read_only=True, many=True) <NEW_LINE> categories = BaseTaxonomySerializer(read_only=True, man... | Serializer used to show readable information of photos.
Used in PhotoSerializer to only show related information of photos. | 62598f14adb09d7d5dc09209 |
class Use(Options): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.visible = True <NEW_LINE> self.text = "use" <NEW_LINE> self.err_text = "Option should be of the form 'Use (item name / ability) (optional item/ability-dependent words)'." <NEW_LINE> <DEDENT> def useable(self, player, gameplay, words): ... | Allows a player to make use of a specified item or ability. | 62598f14187af65679d29237 |
class itkImageUS2(itkImageBase2): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> ImageDimension = _itkIm... | Proxy of C++ itkImageUS2 class | 62598f149f2886367281745c |
class Config(SafeConfigParser): <NEW_LINE> <INDENT> def __init__(self, filename=None): <NEW_LINE> <INDENT> SafeConfigParser.__init__(self) <NEW_LINE> self.filename = filename <NEW_LINE> self.tags = dict() <NEW_LINE> self.autoload() <NEW_LINE> <DEDENT> @property <NEW_LINE> def connections(self): <NEW_LINE> <INDENT> conn... | Conifguration instance for managing the eapi.conf file.
This class provides an instance for handling the configuration file. It
should normally need to be instantiated. A single config object is
instantiated by the module for working with the config.
Attributes:
filename (str): The full path to the loaded filen... | 62598f14956e5f7376df4cae |
class AddExistedTable(BaseIndexError): <NEW_LINE> <INDENT> pass | Existed table error. | 62598f143d592f4c4edb9b49 |
class Meta: <NEW_LINE> <INDENT> model = Ratings <NEW_LINE> fields = ('score', 'comment', 'tutor_id') <NEW_LINE> widgets = { 'score': forms.NumberInput(attrs={'placeholder': '4'}), 'comment': forms.TextInput(attrs={'placeholder': 'excellent homework explination'}), 'tutor_id': forms.NumberInput(attrs={'placeholder': 'Th... | the related meta-info | 62598f14a219f33f346c548e |
class ConfigFile(TextFile): <NEW_LINE> <INDENT> @property <NEW_LINE> @memoize <NEW_LINE> def text(self): <NEW_LINE> <INDENT> return parse_config(super().text) | An abstraction of a configuration file used by RetDec. | 62598f14adb09d7d5dc0920b |
class TestModelTypeResult(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 testModelTypeResult(self): <NEW_LINE> <INDENT> pass | ModelTypeResult unit test stubs | 62598f148a349b6b43684ea9 |
class Reaction(DataContainer): <NEW_LINE> <INDENT> def __init__(self, reac_id=None): <NEW_LINE> <INDENT> DataContainer.__init__(self, reac_id) <NEW_LINE> return <NEW_LINE> <DEDENT> @property <NEW_LINE> def initial_nuclide_id(self): <NEW_LINE> <INDENT> return self.id._init_nucl_id <NEW_LINE> <DEDENT> @property <NEW_LINE... | A single reaction, with unique ID and associated information
| 62598f14a219f33f346c5490 |
class Modes: <NEW_LINE> <INDENT> Line = "line" <NEW_LINE> Raw = "raw" | The Modes class contains properties which define different types of
data receiving modes. | 62598f147cff6e4e811b4652 |
class STDLibLogObserverTests(unittest.TestCase): <NEW_LINE> <INDENT> def test_interface(self): <NEW_LINE> <INDENT> observer = STDLibLogObserver() <NEW_LINE> try: <NEW_LINE> <INDENT> verifyObject(ILogObserver, observer) <NEW_LINE> <DEDENT> except BrokenMethodImplementation as e: <NEW_LINE> <INDENT> self.fail(e) <NEW_LIN... | Tests for L{STDLibLogObserver}. | 62598f14283ffb24f3cf250e |
class LabelPropagation(): <NEW_LINE> <INDENT> def __init__(self, G): <NEW_LINE> <INDENT> self._G = G <NEW_LINE> pass <NEW_LINE> <DEDENT> def getCommunities(self): <NEW_LINE> <INDENT> raise NotImplementedError("Replace implementation of this method.") | Splits the graph into a set of communities.
@article{raghavan2007near,
title={Near linear time algorithm to detect community structures in large-scale networks},
author={Raghavan, U.N. and Albert, R. and Kumara, S.},
journal={Physical Review E},
volume={76},
number={3},
pages={036106},
year={2007},
pu... | 62598f14099cdd3c63674a0a |
class NotSupportedError(Exception): <NEW_LINE> <INDENT> def __init__(self, message): <NEW_LINE> <INDENT> Exception.__init__(self, message) | Exception for a build not being supported. | 62598f14091ae35668703871 |
@pytest.mark.components <NEW_LINE> @pytest.allure.story('Clients') <NEW_LINE> @pytest.allure.feature('POST') <NEW_LINE> class Test_PFE_Components(object): <NEW_LINE> <INDENT> @pytest.allure.link('https://jira.qumu.com/browse/TC-43063') <NEW_LINE> @pytest.mark.Clients <NEW_LINE> @pytest.mark.POST <NEW_LINE> def test_TC_... | PFE Clients test cases. | 62598f14956e5f7376df4cb0 |
class DummyRequest(object): <NEW_LINE> <INDENT> def __init__(self, user=None): <NEW_LINE> <INDENT> if user is not None: <NEW_LINE> <INDENT> self.user = user | Used internally with Django templates.
This class is used internally with Django templates to isolate
permission checks from original :class:`HttpRequest` context. | 62598f14ad47b63b2c5a6477 |
class PyShowRibbon(QToolBar): <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._parent = parent <NEW_LINE> self.setMovable(False) <NEW_LINE> self._widget = QTabWidget(self) <NEW_LINE> self._widget.setMaximumHeight(125) <NEW_LINE> self._widget.setMinimumHeight(125) <... | The RibbonBar for the PyShow main window. | 62598f14a219f33f346c5492 |
class GuiliServer(ThreadingMixIn, WebSocketServer): <NEW_LINE> <INDENT> daemon_threads = True <NEW_LINE> GuiliRequestHandlerClass = GuiliRequestHandler <NEW_LINE> def __init__(self, addr, robots): <NEW_LINE> <INDENT> self.data = None <NEW_LINE> self.requests = set() <NEW_LINE> self.lock = threading.RLock() <NEW_LINE> W... | Guili application server
Attributes:
lock -- lock for concurrent accesses
requests -- set of request handlers of initialized clients
robots -- list of handled robots
configurations -- list of portlets configurations | 62598f147cff6e4e811b4654 |
class FanEntity(ToggleEntity): <NEW_LINE> <INDENT> def set_speed(self, speed: str) -> None: <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def async_set_speed(self, speed: str): <NEW_LINE> <INDENT> if speed is SPEED_OFF: <NEW_LINE> <INDENT> return self.async_turn_off() <NEW_LINE> <DEDENT> return se... | Representation of a fan. | 62598f1450812a4eaa620221 |
class EditSamplesSepTest(EditSamplesTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(EditSamplesSepTest, self).setUp() <NEW_LINE> self.digitizer.cb_edit_separate.setChecked(True) <NEW_LINE> <DEDENT> def _test_position(self, pos, value, row, col): <NEW_LINE> <INDENT> self.assertEqual( tuple(pos), (v... | Test the editing of samples | 62598f149f28863672817463 |
class Document: <NEW_LINE> <INDENT> def __init__(self,doc_id=0,doc_name=""): <NEW_LINE> <INDENT> self.doc_id=doc_id <NEW_LINE> self.doc_name=doc_name <NEW_LINE> self.vector=np.zeros(10,dtype=int) <NEW_LINE> self.tf_idf_vector=np.zeros(10,dtype=int) <NEW_LINE> <DEDENT> def set_tf_idf_vector(self,p_vector=np.zeros(10,dty... | Document properties | 62598f148a349b6b43684eaf |
class DataSource(object): <NEW_LINE> <INDENT> def __init__(self, url): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> yield "url", self.url | DataSource defines config for data source. | 62598f1460cbc95b06362f9c |
class GLMatrixScope(Scope): <NEW_LINE> <INDENT> def __init__(self, matrixmode=None, identity=False): <NEW_LINE> <INDENT> super(GLMatrixScope, self).__init__() <NEW_LINE> self._nextmode = matrixmode <NEW_LINE> self._identity = identity <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> if self._nextmode: <NEW_... | GLClientAttribScope provides a context manager for an OpenGL Matrix Stack operations (i.e. GL.glPushMatrix / GL.glPopMatrix) | 62598f14a05bb46b384894e5 |
class GoogleParser(WebsiteParser): <NEW_LINE> <INDENT> browser = None <NEW_LINE> prev_oil_price = 0 <NEW_LINE> prev_oil_check_day = -1 <NEW_LINE> def __init__(self, place_id: str): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.place = place_id <NEW_LINE> if GoogleParser.browser is None: <NEW_LINE> <INDENT> fop... | Represents a basic parser to collect information for the scraper by parsing a google search result for nearby
gas stations and finds their affiliation, address and price. It also finds the crude oil barrel price | 62598f14283ffb24f3cf2511 |
class DynamicLoopingCall(LoopingCallBase): <NEW_LINE> <INDENT> def start(self, initial_delay=None, periodic_interval_max=None): <NEW_LINE> <INDENT> self._running = True <NEW_LINE> done = event.Event() <NEW_LINE> def _inner(): <NEW_LINE> <INDENT> if initial_delay: <NEW_LINE> <INDENT> greenthread.sleep(initial_delay) <NE... | A looping call which sleeps until the next known event.
The function called should return how long to sleep for before being
called again. | 62598f14956e5f7376df4cb2 |
class LoginResponse(object): <NEW_LINE> <INDENT> swagger_types = { 'token': 'str', 'refresh_token': 'str' } <NEW_LINE> attribute_map = { 'token': 'token', 'refresh_token': 'refreshToken' } <NEW_LINE> def __init__(self, token=None, refresh_token=None): <NEW_LINE> <INDENT> self._token = None <NEW_LINE> self._refresh_toke... | NOTE: This class is auto generated by the swagger code generator program.
from tb_rest_client.api_client import ApiClient
Do not edit the class manually.
| 62598f14ad47b63b2c5a647b |
class AggregationTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> ind = pd.DatetimeIndex(freq='12h', start='2015-01-01', end='2015-01-02 23:59') <NEW_LINE> self.insol = pd.Series(data=[500, 1000, 500, 1000], index=ind) <NEW_LINE> self.energy = pd.Series(data=[1.0, 4, 1.0, 4], index=... | Unit tests for aggregation module | 62598f147b180e01f3e4867e |
class CfgEC2VMSpec(object): <NEW_LINE> <INDENT> def __init__(self, ami_id, ssh_key_name, flavor='t2.micro', user_data=None, security_group_id=None, subnet_id=None): <NEW_LINE> <INDENT> self.ami_id = ami_id <NEW_LINE> self.ssh_key_name = ssh_key_name <NEW_LINE> self.flavor = flavor <NEW_LINE> self.user_data = user_data ... | Specification of an EC2 VM | 62598f1450812a4eaa620222 |
class FinishThread(QtCore.QThread): <NEW_LINE> <INDENT> finish = QtCore.Signal() <NEW_LINE> def __init__(self, view): <NEW_LINE> <INDENT> super(FinishThread, self).__init__() <NEW_LINE> self.view = view <NEW_LINE> self.running_flag = True <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> while self.running_flag an... | Monitor thread to check whether all copy processes are complete. | 62598f148a349b6b43684eb1 |
class Direction(enum.IntEnum): <NEW_LINE> <INDENT> LEFT = 0 <NEW_LINE> RIGHT = 1 <NEW_LINE> UP = 2 <NEW_LINE> DOWN = 3 <NEW_LINE> NONE = 4 | direction | 62598f14099cdd3c63674a0d |
class PythonRecombinationMap: <NEW_LINE> <INDENT> def __init__(self, positions, rates): <NEW_LINE> <INDENT> assert len(positions) == len(rates) <NEW_LINE> assert len(positions) >= 2 <NEW_LINE> assert sorted(positions) == positions <NEW_LINE> assert positions[0] == 0 <NEW_LINE> self._positions = positions <NEW_LINE> sel... | A Python implementation of the RecombinationMap interface.
This uses a simple algorithm used in previous versions of msprime. | 62598f14283ffb24f3cf2513 |
class Simplifier(Transposer): <NEW_LINE> <INDENT> def __init__(self, scale=None): <NEW_LINE> <INDENT> if scale is not None: <NEW_LINE> <INDENT> self.scale = scale <NEW_LINE> <DEDENT> <DEDENT> def transpose(self, pitch): <NEW_LINE> <INDENT> if pitch.alter == 1: <NEW_LINE> <INDENT> doct, note = divmod(pitch.note + 1, 7) ... | Make complicated accidentals simpler by substituting naturals where possible.
| 62598f14ab23a570cc2d43a3 |
class VolumeEncryptor(executor.Executor, metaclass=abc.ABCMeta): <NEW_LINE> <INDENT> def __init__(self, root_helper, connection_info, keymgr, execute=None, *args, **kwargs): <NEW_LINE> <INDENT> super(VolumeEncryptor, self).__init__(root_helper, execute=execute, *args, **kwargs) <NEW_LINE> self._key_manager = keymgr <NE... | Base class to support encrypted volumes.
A VolumeEncryptor provides hooks for attaching and detaching volumes, which
are called immediately prior to attaching the volume to an instance and
immediately following detaching the volume from an instance. This class
performs no actions for either hook. | 62598f14ad47b63b2c5a647d |
class CommandLineOption: <NEW_LINE> <INDENT> _enabled = True <NEW_LINE> short_flag = None <NEW_LINE> arg = None <NEW_LINE> arg_description = None <NEW_LINE> @classmethod <NEW_LINE> def get_flag(cls): <NEW_LINE> <INDENT> flag = cls.__name__ <NEW_LINE> if flag.endswith("Option"): <NEW_LINE> <INDENT> flag = flag[:-6] <NEW... | Base class for all command-line options.
To implement a new command-line option just inherit from this class.
Then add the `flag` class-attribute to specify the name and a class
docstring with the description.
If your command-line option should take an argument you must also provide
its name via the `arg` class attrib... | 62598f14bf627c535bcb00e5 |
class DriveNSeconds(TimedCommand): <NEW_LINE> <INDENT> def __init__(self, moveValue, turnValue, duration): <NEW_LINE> <INDENT> super().__init__('Record', duration) <NEW_LINE> self.requires(subsystems.drivetrain) <NEW_LINE> self.moveValue = moveValue <NEW_LINE> self.turnValue = turnValue <NEW_LINE> <DEDENT> def initiali... | Drives the robot with a `moveValue` and `turnValue` for
`duration` seconds. It stops at the end of the `duration`
seconds. | 62598f14187af65679d2923c |
class ProfileDetail(RetrieveAPIView): <NEW_LINE> <INDENT> queryset = Profile.objects.all() <NEW_LINE> serializer_class = ProfileDetailSerializer <NEW_LINE> permission_classes = [AllowAny] <NEW_LINE> lookup_field = 'user__username' | This view for an APi get request for Profile
Attributes:
queryset: Query holding all of the Profile Objects
serializer_class: Using profile detail serializer
permission_classes: Any one is allowed to call a profile's detail
even those who are unathenticated users | 62598f1426238365f5fab7f9 |
class HTML2JSON(HTMLParser): <NEW_LINE> <INDENT> GotDT = 1 <NEW_LINE> GotDTA = 2 <NEW_LINE> GotDTH3 = 3 <NEW_LINE> GotNone = 4 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.state = HTML2JSON.GotNone <NEW_LINE> self.bookmarks = [] <NEW_LINE> self.path_stack = [''] <NEW_LINE> <DEDE... | A class to parse HTML and return a bookmark data structure.
The data structure is a list of tuples:
(<bookmark path>, <URL>)
Uses a state machine to parse the Chrome bookmarks HTML data. | 62598f1455399d3f05625193 |
class TemplateTagTestCase(TestCase): <NEW_LINE> <INDENT> def validate_template_code_result(self, fixtures): <NEW_LINE> <INDENT> for (template_code, valid_output) in fixtures: <NEW_LINE> <INDENT> t = Template(template_code) <NEW_LINE> c = Context() <NEW_LINE> output = t.render(c) <NEW_LINE> self.assertEquals(output, val... | Base class to test template tags. | 62598f1460cbc95b06362fa0 |
class BankRulesApi: <NEW_LINE> <INDENT> def __init__(self, authtoken, organization_id): <NEW_LINE> <INDENT> self.details = { 'authtoken': authtoken, 'organization_id': organization_id } <NEW_LINE> <DEDENT> def get_rules(self, account_id): <NEW_LINE> <INDENT> param = { 'account_id': account_id } <NEW_LINE> resp = zoho_h... | This class is used to
1.Fetch all the rules created for a specified bank or credit card account.
2.Get details of a specific rule.
3.Create a rule.
4.Update an existing rule.
5.Delete a rule. | 62598f14a05bb46b384894e9 |
class Entropy(TF): <NEW_LINE> <INDENT> def __init__(self, docs, X=None, **kwargs): <NEW_LINE> <INDENT> assert X is not None <NEW_LINE> super(Entropy, self).__init__(docs, X=X, **kwargs) <NEW_LINE> self.wordWeight = self.entropy(docs, X, self.word2id) <NEW_LINE> <DEDENT> @property <NEW_LINE> def wordWeight(self): <NEW_L... | Vector Space using 1 - entropy as the weighting scheme
Usage:
>>> from microtc.weighting import Entropy
>>> tokens = [['buenos', 'dia', 'microtc'], ['excelente', 'dia'], ['buenas', 'tardes'], ['las', 'vacas', 'me', 'deprimen', 'al', 'dia'], ['odio', 'los', 'lunes'], ['odio', 'el', 'trafico'], ['la', 'computadora'], [... | 62598f14283ffb24f3cf2515 |
class ResolvedRecordReferenceNode(RecordReferenceNode): <NEW_LINE> <INDENT> __recordTypeRef = None <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(ResolvedRecordReferenceNode, self).__init__(*args, **kwargs) <NEW_LINE> self.__recordTypeRef = None <NEW_LINE> <DEDENT> def setRecordTypeRef(self, ... | classdocs | 62598f14a219f33f346c549a |
class Data(QC.QObject): <NEW_LINE> <INDENT> updated = QC.pyqtSignal() <NEW_LINE> NUM_CURVES = 2 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.buffer = b'' <NEW_LINE> self.data = [[] for i in range(0,self.NUM_CURVES)] <NEW_LINE> self.ymin = 0 <NEW_LINE> self.ymax = 0 <NEW_LINE> super().__init__() <NEW_LINE> <D... | The class handling the data, to store and give to matplotlib | 62598f148a349b6b43684eb5 |
class Thing: <NEW_LINE> <INDENT> pass | This class is expected to be a classic class. | 62598f14ad47b63b2c5a6480 |
class ValidateNoDefaultCameras(pyblish.api.Validator): <NEW_LINE> <INDENT> families = ['animation'] <NEW_LINE> hosts = ['maya'] <NEW_LINE> version = (0, 1, 0) <NEW_LINE> label = "No Default Cameras" <NEW_LINE> def process(self, instance): <NEW_LINE> <INDENT> cameras = cmds.ls(instance, type='camera', long=True) <NEW_LI... | Ensure no default (startup) cameras are in the instance.
This might be unnecessary. In the past there were some issues with
referencing/importing files that contained the start up cameras overriding
settings when being loaded and sometimes being skipped. | 62598f14ab23a570cc2d43a5 |
class LdapDNSTestCase(test.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(LdapDNSTestCase, self).setUp() <NEW_LINE> self.useFixture(fixtures.MonkeyPatch( 'nova.network.ldapdns.ldap', fake_ldap)) <NEW_LINE> dns_class = 'nova.network.ldapdns.LdapDNS' <NEW_LINE> self.driver = importutils.import_... | Tests nova.network.ldapdns.LdapDNS. | 62598f14adb09d7d5dc09219 |
class RoleCreateView(ProjectViwMixin, FormView, UserListMixin, PermissionListMixin): <NEW_LINE> <INDENT> form_class = forms.CreateRolForm <NEW_LINE> template_name = 'proyecto/role_crud' <NEW_LINE> context_object_name = 'project' <NEW_LINE> pk_url_kwarg = 'project_id' <NEW_LINE> section_title = 'Crear Rol' <NEW_LINE> le... | Clase correspondiente a la vista que permite crear un rol dentro de un proyecto
:param form_class: Formulario que se encarga de la validacion de los datos ingresados por usuarios
:param template_name: Nombre del template que sera utilizado
:param pk_url_kwarg: Nombre del parametro de url que contiene el id del proyect... | 62598f147cff6e4e811b465e |
class Supplier(models.Model): <NEW_LINE> <INDENT> address = models.ForeignKey(Address, verbose_name=_("Supplier Address"), related_name='supplier', on_delete=models.SET_NULL, blank=True, null=True) | Supplier supplies the products. Supplier can supply
a range of products from different brands. | 62598f1455399d3f05625197 |
class ChatroomView(LoginRequiredMixin, DetailView): <NEW_LINE> <INDENT> model = Chatroom <NEW_LINE> context_object_name = 'recent_messages' <NEW_LINE> context_object_name = 'chatroom' <NEW_LINE> template_name = 'chat/chatroom.html' <NEW_LINE> slug_url_kwarg = 'slug' <NEW_LINE> def get_object(self, queryset=None): <NEW_... | View of Messages in individual Chatroom | 62598f14ad47b63b2c5a6483 |
class removeChatRoomAnnouncement_result(object): <NEW_LINE> <INDENT> def __init__(self, e=None,): <NEW_LINE> <INDENT> self.e = e <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None: <... | Attributes:
- e | 62598f14377c676e912f63a0 |
class ServiceDescriptionDisabledNotice(object): <NEW_LINE> <INDENT> swagger_types = { 'disabled_notice': 'str' } <NEW_LINE> attribute_map = { 'disabled_notice': 'disabled_notice' } <NEW_LINE> def __init__(self, disabled_notice=None): <NEW_LINE> <INDENT> self._disabled_notice = None <NEW_LINE> self.discriminator = None ... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f1455399d3f05625199 |
class Emitter(ABC, Options): <NEW_LINE> <INDENT> functions : List[Function] = [] <NEW_LINE> declarations : List[Declaration] = [] <NEW_LINE> @property <NEW_LINE> @abstractmethod <NEW_LINE> def language(self) -> str: <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @property <NEW_LINE> @abstractmethod <NEW_LINE> def filenam... | An AST to source code emitter. | 62598f14ec188e330fdf752b |
class BulkCountryUpdateInstance(InstanceResource): <NEW_LINE> <INDENT> def __init__(self, version, payload): <NEW_LINE> <INDENT> super(BulkCountryUpdateInstance, self).__init__(version) <NEW_LINE> self._properties = { 'update_count': deserialize.integer(payload['update_count']), 'update_request': payload['update_reques... | PLEASE NOTE that this class contains preview products that are subject
to change. Use them with caution. If you currently do not have developer
preview access, please contact help@twilio.com. | 62598f14099cdd3c63674a11 |
class Person(models.Model): <NEW_LINE> <INDENT> last_name = models.CharField(_("last name"), max_length=64) <NEW_LINE> first_name = models.CharField(_("first name"), max_length=64) <NEW_LINE> middle_name = models.CharField(_("middle name"), max_length=64) <NEW_LINE> vacation_scheme = models.ForeignKey("VacationScheme",... | People with their full names in this model | 62598f14bf627c535bcb00ed |
class LivingSpace(Room): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> super(LivingSpace, self).__init__(name) | LivingSpace is a Room | 62598f1450812a4eaa620227 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.