code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class projection: <NEW_LINE> <INDENT> def __init__(self, a_projection='epsg:2192'): <NEW_LINE> <INDENT> if not isinstance(a_projection, str): <NEW_LINE> <INDENT> raise ValueError("The projection parameter should be a string") <NEW_LINE> <DEDENT> self.projection = pyproj.Proj(init=a_projection) <NEW_LINE> <DEDENT> def l... | Check if an object is float, int or long.
Args:
object to test
Returns:
True if is is as float, int or long, False otherwise | 6259905345492302aabfd9d7 |
class Flujo(models.Model): <NEW_LINE> <INDENT> nombre = models.CharField(max_length=30) <NEW_LINE> proyecto = models.ForeignKey(Proyecto) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.nombre <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> default_permissions = () <NEW_LINE> verbose_name = 'flujo... | Los flujos que forman parte de un proyecto. | 62599053379a373c97d9a523 |
class UnroutedNotificationDAO(dao.ESDAO): <NEW_LINE> <INDENT> __type__ = 'unrouted' <NEW_LINE> @classmethod <NEW_LINE> def example(cls): <NEW_LINE> <INDENT> from service.tests import fixtures <NEW_LINE> return cls(fixtures.NotificationFactory.unrouted_notification()) | DAO for UnroutedNotifications | 625990533c8af77a43b689bf |
class DefaultNBitQuantizeScheme(quantize_scheme.QuantizeScheme): <NEW_LINE> <INDENT> def __init__(self, disable_per_axis=False, num_bits_weight=8, num_bits_activation=8): <NEW_LINE> <INDENT> self._disable_per_axis = disable_per_axis <NEW_LINE> self._num_bits_weight = num_bits_weight <NEW_LINE> self._num_bits_activation... | Default N-Bit Scheme supported by TFLite. | 62599053dd821e528d6da3de |
class Options(usage.Options): <NEW_LINE> <INDENT> optParameters = [ ["admin", "a", "tcp:9001", "strports description of the admin API port."], ["port", "p", "tcp:9000", "strports description of the port for API connections."], ["config", "c", "config.json", "path to JSON configuration file."] ] <NEW_LINE> optFlags = [ ... | Options for the otter-api node.
TODO: Force some common parameters in a base class.
TODO: Tracing support.
TODO: Debugging.
TODO: Environments.
TODO: Admin HTTP interface.
TODO: Specify store | 62599053a219f33f346c7d03 |
class GtkBaseBox(Gtk.Box): <NEW_LINE> <INDENT> def __init__(self, child, params, name, prev_page, next_page): <NEW_LINE> <INDENT> self.backwards_button = params['backwards_button'] <NEW_LINE> self.callback_queue = params['callback_queue'] <NEW_LINE> self.disable_tryit = params['disable_tryit'] <NEW_LINE> self.forward_b... | Base class for our screens | 62599053a79ad1619776b53d |
class Send(Page): <NEW_LINE> <INDENT> form_model = 'group' <NEW_LINE> form_fields = ['sent_amount'] <NEW_LINE> def is_displayed(self): <NEW_LINE> <INDENT> return self.player.id_in_group == 1 | This page is only for P1
P1 sends amount (all, some, or none) to P2
This amount is tripled by experimenter,
i.e if sent amount by P1 is 5, amount received by P2 is 15 | 6259905326068e7796d4de47 |
class Camera(Camera): <NEW_LINE> <INDENT> camera = None <NEW_LINE> recording = False <NEW_LINE> record_splitter_port = 2 <NEW_LINE> recordings_folder = RecordingsFolder(get_env_recordings_path()) <NEW_LINE> @staticmethod <NEW_LINE> def frames(): <NEW_LINE> <INDENT> if not Camera.camera or Camera.camera.closed: <NEW_LIN... | Raspberry Pi camera driver. | 62599053fff4ab517ebced21 |
class PendingServiceChainInsertions(object): <NEW_LINE> <INDENT> def __init__(self, context, node_stacks, chain_instance_id, provider_ptg_id, consumer_ptg_id, classifier_id): <NEW_LINE> <INDENT> self.context = context <NEW_LINE> self.node_stacks = node_stacks <NEW_LINE> self.chain_instance_id = chain_instance_id <NEW_L... | Encapsulates a ServiceChain Insertion Operation | 6259905323e79379d538d9fb |
class HTKFeat_write(object): <NEW_LINE> <INDENT> def __init__(self, filename=None, veclen=13, sampPeriod=100000, paramKind = (MFCC | _O)): <NEW_LINE> <INDENT> self.veclen = veclen <NEW_LINE> self.sampPeriod = sampPeriod <NEW_LINE> self.sampSize = veclen * 4 <NEW_LINE> self.paramKind = paramKind <NEW_LINE> self.dtype = ... | Write Sphinx-II format feature files | 62599053baa26c4b54d507a3 |
class FileFormatError(Exception): <NEW_LINE> <INDENT> pass | Error raised when a problem is encountered parsing a file | 625990534e696a045264e8a2 |
class Identify(OAIItem): <NEW_LINE> <INDENT> def __init__(self, identify_response): <NEW_LINE> <INDENT> super(Identify, self).__init__(identify_response.xml, strip_ns=True) <NEW_LINE> self.xml = self.xml.find('.//' + self._oai_namespace + 'Identify') <NEW_LINE> self._identify_dict = xml_to_dict(self.xml, strip_ns=True)... | Represents an Identify container.
This object differs from the other entities in that is has to be created
from a :class:`sickle.app.OAIResponse` instead of an XML element.
:param identify_response: The response for an Identify request.
:type identify_response: :class:`sickle.app.OAIResponse` | 625990537cff6e4e811b6f40 |
class TimestampedTemporaryUploadedFile(TemporaryUploadedFile): <NEW_LINE> <INDENT> def __init__(self, name, content_type, size, charset, content_type_extra=None): <NEW_LINE> <INDENT> timestamp_suffix = str(int(time.time())) + '.' <NEW_LINE> suffix = '.tmp.' + content_type_to_ext(content_type) <NEW_LINE> if settings.FIL... | A file uploaded to a temporary location (i.e. stream-to-disk) and
suffixed with creation timestamp in order to allow old temp files
correct removing. | 6259905323849d37ff8525c3 |
class HTTPBadGateway(ClientException): <NEW_LINE> <INDENT> http_status = 502 <NEW_LINE> message = "Bad Gateway" | HTTP 502 - The server was acting as a gateway or proxy and received an invalid response from the upstream server. | 62599053e64d504609df9e50 |
class Account(object): <NEW_LINE> <INDENT> def __init__(self, credentials, *, protocol=None, main_resource=ME_RESOURCE, **kwargs): <NEW_LINE> <INDENT> protocol = protocol or MSGraphProtocol <NEW_LINE> self.protocol = protocol(default_resource=main_resource, **kwargs) if isinstance(protocol, type) else protocol <NEW_LIN... | Class helper to integrate all components into a single object | 62599053004d5f362081fa6c |
class TestLLABColourAppearanceModel(ColourAppearanceModelTest): <NEW_LINE> <INDENT> FIXTURE_BASENAME = 'llab.csv' <NEW_LINE> OUTPUT_ATTRIBUTES = {'L_L': 'J', 'Ch_L': 'C', 'h_L': 'h', 's_L': 's', 'C_L': 'M', 'A_L': 'a', 'B_L': 'b'} <NEW_LINE> def output_specification_from_data(self, data): <NEW_LINE> <INDENT> XYZ = np.a... | Defines :mod:`colour.appearance.llab` module unit tests methods for
*LLAB(l:c)* colour appearance model. | 6259905315baa72349463492 |
class BufferDataBus(RLESymbols): <NEW_LINE> <INDENT> def __init__(self, width_data, width_size, width_runlength): <NEW_LINE> <INDENT> super(BufferDataBus, self).__init__( width_data, width_size, width_runlength) <NEW_LINE> self.buffer_sel = Signal(bool(0)) <NEW_LINE> self.read_enable = Signal(bool(0)) <NEW_LINE> self.f... | Connections related to output data buffer
Amplitude : amplitude of the number
size : size required to store amplitude
runlength : number of zeros
dovalid : asserts if ouput data is valid
buffer_sel : select the buffer in double buffer
read_enable : read data from the output fifo
fifo_empty : asserts i... | 6259905310dbd63aa1c720e2 |
class Element(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self._kwargs = kwargs <NEW_LINE> <DEDENT> def __dir__(self): <NEW_LINE> <INDENT> return list(self._kwargs.keys()) + ["get"] <NEW_LINE> <DEDENT> def get(self, key, default): <NEW_LINE> <INDENT> if key in self: <NEW_LINE> <INDENT... | Representation of a single element.
Implemented as a frozen dictionary with attribute access. | 62599053462c4b4f79dbcf05 |
class WideTree(Tree): <NEW_LINE> <INDENT> def getASCIITrunk(self): <NEW_LINE> <INDENT> result = "" <NEW_LINE> for i in range(self._trunkHeight): <NEW_LINE> <INDENT> result += " || \n" <NEW_LINE> <DEDENT> return result <NEW_LINE> <DEDENT> def getASCIILeaves(self): <NEW_LINE> <INDENT> result = "" <NEW_LINE> if self._leav... | represent a wide tree: grows twice as wide as a normal tree, e.g.
#####
######
######
||
|| | 62599053a8ecb03325872717 |
class DottedLine(Line): <NEW_LINE> <INDENT> code = 129 <NEW_LINE> stroke_len: int <NEW_LINE> space_len: int <NEW_LINE> def parse(self): <NEW_LINE> <INDENT> super().parse() <NEW_LINE> self.stroke_len = struct.unpack('<I', self.raw_data[8:12])[0] <NEW_LINE> self.space_len = struct.unpack('<I', self.raw_data[12:16])[0] | Пунктирная линия. | 6259905382261d6c5273094a |
class Info(BaseCommand): <NEW_LINE> <INDENT> name = 'info' | Returns general info about the Broker. | 625990530a50d4780f70683f |
class BaseModelError(BaseError): <NEW_LINE> <INDENT> pass | Base exception class for base model errors. | 6259905307d97122c42181ab |
class LocationHDFS(AWSObject): <NEW_LINE> <INDENT> resource_type = "AWS::DataSync::LocationHDFS" <NEW_LINE> props: PropsDictType = { "AgentArns": ([str], True), "AuthenticationType": (str, True), "BlockSize": (integer, False), "KerberosKeytab": (str, False), "KerberosKrb5Conf": (str, False), "KerberosPrincipal": (str, ... | `LocationHDFS <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datasync-locationhdfs.html>`__ | 62599053e76e3b2f99fd9eff |
class WAVMdata: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_metadata(header): <NEW_LINE> <INDENT> mdata = dict() <NEW_LINE> mdata["riff"] = header[:4] <NEW_LINE> mdata["size"] = to_int(header[4:8]) + 8 <NEW_LINE> mdata["wave"] = header[8:12] <NEW_LINE> mdata["fmt"] = header[12:16] <NEW_LINE> mdata["16"] = to_i... | Clase con métodos estáticos útiles
para trabajar con metadata de un .wav | 6259905376e4537e8c3f0a8c |
class TextField(Field): <NEW_LINE> <INDENT> def __init__(self, fts=False, stemmer=True, metaphone=False, stopwords_file=None, min_word_length=None, *args, **kwargs): <NEW_LINE> <INDENT> super(TextField, self).__init__(*args, **kwargs) <NEW_LINE> self._fts = fts <NEW_LINE> self._stemmer = stemmer <NEW_LINE> self._metaph... | Store unicode strings, encoded as UTF-8. :py:class:`TextField`
also supports full-text search through the optional ``fts``
parameter.
.. note:: If full-text search is enabled for the field, then
the ``index`` argument is implied.
:param bool fts: Enable simple full-text search.
:param bool stemmer: Use porter ste... | 62599053a219f33f346c7d05 |
class ReportManager: <NEW_LINE> <INDENT> def __init__(self, locale): <NEW_LINE> <INDENT> self.locale = locale <NEW_LINE> <DEDENT> def get_report_urls(self, report_page, only_new=True): <NEW_LINE> <INDENT> report_urls = [] <NEW_LINE> reports_raw_list = self._get_reports_from_page(report_page, only_new) <NEW_LINE> for ra... | Helps to create AttackReport objects with the next
methods:
get_report_urls:
takes HTML (string) of report page and
returns list of URLs for each report on this page
build_report:
takes HTML (string) of single report and
returns new AttackReport object. | 62599053a79ad1619776b53e |
class surface_unusual_rows(): <NEW_LINE> <INDENT> def __init__(self,df,dates=[],numerics=[],categoricals=[]): <NEW_LINE> <INDENT> self.df = df <NEW_LINE> self.scores = pd.DataFrame(index=df.index) <NEW_LINE> for col in dates: <NEW_LINE> <INDENT> self.scores[col] = self.date_score(col) <NEW_LINE> <DEDENT> for col in num... | Give each row a score that sums up how 'unusual' its values are, where
a value is considered unusual for a column of continuous variables when
it has a high percentile, and is considered unusual for a column of
categorical variables when it is rare. | 6259905355399d3f05627a20 |
class AssignmentViewSet(UpdateSerializerMixin, viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Assignment.objects.all() <NEW_LINE> serializer_class = AssignmentSerializer <NEW_LINE> update_serializer_class = AssignmentUpdateSerializer <NEW_LINE> def get_permissions(self): <NEW_LINE> <INDENT> if self.request.meth... | retrieve:
Returns the requested roster/assignment.
list:
Returns all assignments in this roster.
create:
Create a new assignment in this roster.
update:
Update an assignment in this roster.
delete:
Delete an assignment in this roster. | 62599053be383301e0254d0d |
class UploadRawDataFileForm(SourceInForm): <NEW_LINE> <INDENT> error_css_class = 'error' <NEW_LINE> required_css_class = 'required' <NEW_LINE> filedata = forms.FileField() <NEW_LINE> title = forms.CharField(required=True) <NEW_LINE> tool_name = forms.CharField(required=True) <NEW_LINE> tool_version = forms.CharField(re... | Django form for uploading raw data as a file. | 625990538e7ae83300eea599 |
class _RightBarPage(object): <NEW_LINE> <INDENT> RIGHT_BAR_ENTRIES_PER_PAGES = 8 <NEW_LINE> def __init__(self, client, index): <NEW_LINE> <INDENT> self.client = client <NEW_LINE> self.index = index <NEW_LINE> <DEDENT> @property <NEW_LINE> def soup(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self._soup <N... | A page returned by /rightbar.action
This page lists all available presentations with pagination. | 62599053baa26c4b54d507a5 |
class UserSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = get_user_model() <NEW_LINE> fields = ('email', 'password', 'name') <NEW_LINE> extra_kwargs = {'password': {'write_only': True, 'min_length': 5}} <NEW_LINE> <DEDENT> def create(self, validated_data): <NEW_LINE>... | Serializers for the users object | 625990536e29344779b01b4b |
class SqlCompiledQuery(object): <NEW_LINE> <INDENT> def __init__(self, maintable, relationDict=None,maintable_as=None): <NEW_LINE> <INDENT> self.maintable = maintable <NEW_LINE> self.relationDict = relationDict or {} <NEW_LINE> self.aliasDict = {} <NEW_LINE> self.resultmap = Bag() <NEW_LINE> self.distinct = '' <NEW_LIN... | SqlCompiledQuery is a private class used by the :class:`SqlQueryCompiler` class.
It is used to store all parameters needed to compile a query string. | 62599053dc8b845886d54ac7 |
class Servo(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.pwm = Adafruit_PCA9685.PCA9685() <NEW_LINE> self.max = 600 <NEW_LINE> self.min = 150 <NEW_LINE> self.pulse_length = 1000000 <NEW_LINE> self.pulse_length //= 60 <NEW_LINE> logger.debug('{0}us per period'.format(self.pulse_length)) <NEW... | class to move the servo up/down and left/right | 6259905399cbb53fe68323ed |
class Mul(Layer): <NEW_LINE> <INDENT> def forward(self, x, is_training=False): <NEW_LINE> <INDENT> self.x = x <NEW_LINE> self.y = np.prod(x, axis=0) <NEW_LINE> return self.y <NEW_LINE> <DEDENT> def backward(self, dJdy): <NEW_LINE> <INDENT> return dJdy * (self.y / self.x) | Multiplication Layer: [a,b,c] => a*b*c
backward: dJdy * [bc, ac, ab] | 625990533617ad0b5ee07649 |
class Hub(EnvironmentObject): <NEW_LINE> <INDENT> def __init__(self, id=1, location=(0, 0), radius=20): <NEW_LINE> <INDENT> super().__init__(id, location, radius) <NEW_LINE> self.dropable = True <NEW_LINE> self.carryable = False <NEW_LINE> self.passable = True <NEW_LINE> self.deathable = False <NEW_LINE> self.moveable ... | Hub object. | 6259905307d97122c42181ac |
class TypTraits: <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return self.__class__.__name__ <NEW_LINE> <DEDENT> def to_literal(self, value): <NEW_LINE> <INDENT> return value <NEW_LINE> <DEDENT> def from_json(self, value): <NEW_LINE> <INDENT> return value <NEW_LINE> <DEDENT> def to_json(self, value): <NE... | Encapsulated differences between types | 62599053435de62698e9d305 |
class ChangeSpeed(object): <NEW_LINE> <INDENT> def __init__(self, term, speed): <NEW_LINE> <INDENT> self.term = term <NEW_LINE> self.speed = speed <NEW_LINE> <DEDENT> def __getstate__(self): <NEW_LINE> <INDENT> return [('frames', self.term.expr), ('type', self.speed.type), ('value', self.speed.value.expr)] <NEW_LINE> <... | Speed change over time. | 625990533cc13d1c6d466c40 |
class L3NatDBSepTestCase(L3BaseForSepTests, L3NatTestCaseBase, L3NatDBTestCaseMixin): <NEW_LINE> <INDENT> def test_port_deletion_prevention_handles_missing_port(self): <NEW_LINE> <INDENT> pl = manager.NeutronManager.get_service_plugins().get( service_constants.L3_ROUTER_NAT) <NEW_LINE> self.assertIsNone( pl.prevent_l3_... | Unit tests for a separate L3 routing service plugin. | 6259905345492302aabfd9da |
class SnapshotReport(CallbackBase): <NEW_LINE> <INDENT> xref = None <NEW_LINE> def start(self, doc): <NEW_LINE> <INDENT> if doc.get("plan_name", "nope") == "snapshot": <NEW_LINE> <INDENT> self.xref = {} <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.xref = None <NEW_LINE> <DEDENT> <DEDENT> def descriptor(self, doc)... | Show the data from a ``apstools.plans.snapshot()``.
Find most recent snapshot between certain dates::
headers = db(plan_name="snapshot", since="2018-12-15", until="2018-12-21")
h = list(headers)[0] # pick the first one, it's the most recent
apstools.callbacks.SnapshotReport().print_report(h)
Use a... | 625990534e4d562566373909 |
class _ASTNodeWithStatus(_ast_base.ASTNodeBase): <NEW_LINE> <INDENT> def clear_status(self): <NEW_LINE> <INDENT> self.set_status(None) <NEW_LINE> <DEDENT> def set_status(self, status_id): <NEW_LINE> <INDENT> self.set_property("status_id", status_id) <NEW_LINE> <DEDENT> def get_status(self): <NEW_LINE> <INDENT> return s... | Protocols for nodes which have to save status. | 625990538da39b475be046ee |
class VEOProject(object): <NEW_LINE> <INDENT> def __init__(self, name=None, annotations=None, synapse_client=None, config_tree=None, **kwargs): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.syn = synapse_client <NEW_LINE> self._get_project_entity() <NEW_LINE> self.syn_id = self.project['id'] <NEW_LINE> self._par... | Manage a collection of Synapse Entities common to a single project. | 62599053d53ae8145f919964 |
class ElectricCar(Car): <NEW_LINE> <INDENT> def __init__(self, make, model, year, battery_size=75): <NEW_LINE> <INDENT> super().__init__(make, model, year) <NEW_LINE> self.battery = Battery(battery_size) <NEW_LINE> <DEDENT> def description(self): <NEW_LINE> <INDENT> msg = f"Car info: make: {self.make} " <NEW_LINE> msg ... | Model to represent the electric cars | 6259905391af0d3eaad3b32b |
class BrowseTreeField(BrowseField): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self._model = kwargs.pop('model') <NEW_LINE> if 'queryset' not in kwargs: <NEW_LINE> <INDENT> kwargs['queryset'] = self._model.objects.all() <NEW_LINE> try: <NEW_LINE> <INDENT> if self._model and get_listing... | browse select field for browsing tree content. | 625990533c8af77a43b689c1 |
class ImportSshPublicKeyResponse(_messages.Message): <NEW_LINE> <INDENT> loginProfile = _messages.MessageField('LoginProfile', 1) | A response message for importing an SSH public key.
Fields:
loginProfile: The login profile information for the user. | 6259905326068e7796d4de4b |
class NoneAdapter(object): <NEW_LINE> <INDENT> def __init__(self, obj): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def getquoted(self, _null=b"NULL"): <NEW_LINE> <INDENT> return _null | Adapt None to NULL.
This adapter is not used normally as a fast path in mogrify uses NULL,
but it makes easier to adapt composite types. | 62599053fff4ab517ebced26 |
class AccountManagerConfig(AppConfig): <NEW_LINE> <INDENT> name = 'account_manager' <NEW_LINE> verbose_name = 'Gestionnaire de comptes utilisateurs' <NEW_LINE> def ready(self): <NEW_LINE> <INDENT> register_observation_links(self) | Account manager app: App's config | 6259905363d6d428bbee3cd6 |
class BookCreateView(CreateView): <NEW_LINE> <INDENT> model = Book <NEW_LINE> fields = '__all__' | Create a new book. | 62599053baa26c4b54d507a6 |
class TestEnvironSetTemp(unittest.TestCase): <NEW_LINE> <INDENT> def test_environ_set(self): <NEW_LINE> <INDENT> os.environ['QUTEBROWSER_ENVIRON_TEST'] = 'oldval' <NEW_LINE> with helpers.environ_set_temp({'QUTEBROWSER_ENVIRON_TEST': 'newval'}): <NEW_LINE> <INDENT> self.assertEqual(os.environ['QUTEBROWSER_ENVIRON_TEST']... | Test the environ_set_temp helper. | 625990533eb6a72ae038bb63 |
class PluginWarningOnPyTracer(CoverageTest): <NEW_LINE> <INDENT> def test_exception_if_plugins_on_pytracer(self): <NEW_LINE> <INDENT> if env.C_TRACER: <NEW_LINE> <INDENT> self.skipTest("This test is only about PyTracer.") <NEW_LINE> <DEDENT> self.make_file("simple.py", """a = 1""") <NEW_LINE> cov = coverage.Coverage() ... | Test that we get a controlled exception with plugins on PyTracer. | 625990537cff6e4e811b6f44 |
@dataclass <NEW_LINE> class EntityMention(EntityMention): <NEW_LINE> <INDENT> id: Optional[str] <NEW_LINE> is_filler: Optional[bool] <NEW_LINE> def __init__(self, pack: DataPack, begin: int, end: int): <NEW_LINE> <INDENT> super().__init__(pack, begin, end) <NEW_LINE> self.id: Optional[str] = None <NEW_LINE> self.is_fil... | Attributes:
id (Optional[str]):
is_filler (Optional[bool]): | 62599053507cdc57c63a62a9 |
class prelu: <NEW_LINE> <INDENT> def __init__(self, slope=0.1): <NEW_LINE> <INDENT> self.slope = Tensor(slope) <NEW_LINE> <DEDENT> def __call__(self, x): <NEW_LINE> <INDENT> return leaky_relu(x, self.slope) <NEW_LINE> <DEDENT> @property <NEW_LINE> def parameters(self): <NEW_LINE> <INDENT> return (self.slope,) | A parametric rectified linear unit.
This class maintains the learned slope parameter of a PReLU unit, which is a leaky ReLU with
learned slope in the negative region. | 625990537d847024c075d8df |
class IssuerElementTree(Issuer): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def toXML(cls, issuer): <NEW_LINE> <INDENT> if not isinstance(issuer, Issuer): <NEW_LINE> <INDENT> raise TypeError("Expecting %r class got %r" % (Issuer, type(issuer))) <NEW_LINE> <DEDENT> attrib = {} <NEW_LINE> if issuer.format is not None: <... | Represent a SAML Issuer element in XML using ElementTree | 6259905315baa72349463496 |
class UnknownOSVersionException(BaseException): <NEW_LINE> <INDENT> pass | UnknownOSVersion Exception | 625990533cc13d1c6d466c42 |
class StepsManager(object): <NEW_LINE> <INDENT> def __init__(self, wizard): <NEW_LINE> <INDENT> self._wizard = wizard <NEW_LINE> <DEDENT> def __dir__(self): <NEW_LINE> <INDENT> return self.all <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> return self.count <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE>... | A helper class that makes accessing steps easier. | 62599053a17c0f6771d5d623 |
class AutoFlush(Wrapper): <NEW_LINE> <INDENT> def __init__(self, wrapped, delay): <NEW_LINE> <INDENT> super(AutoFlush, self).__init__(wrapped) <NEW_LINE> if not hasattr(self, 'lock'): <NEW_LINE> <INDENT> self.lock = threading.Lock() <NEW_LINE> <DEDENT> self.__last_flushed_at = time.time() <NEW_LINE> self.delay = delay ... | Creates a file object clone to automatically flush after N seconds. | 6259905338b623060ffaa2d1 |
class TestMomJobDir(TestFunctional): <NEW_LINE> <INDENT> def change_server_name(self, servername): <NEW_LINE> <INDENT> self.server.stop() <NEW_LINE> self.assertFalse(self.server.isUp(), 'Failed to stop PBS') <NEW_LINE> conf = self.du.parse_pbs_config(self.server.hostname) <NEW_LINE> self.du.set_pbs_config( self.server.... | This test suite tests the mom's ability to create job directories. | 6259905330dc7b76659a0d01 |
class Solution: <NEW_LINE> <INDENT> def findSpecialInteger(self, arr: List[int]) -> int: <NEW_LINE> <INDENT> target = len(arr) // 4 <NEW_LINE> current = arr[0] <NEW_LINE> if len(arr) == 1: return current <NEW_LINE> i = 1 <NEW_LINE> while i < len(arr): <NEW_LINE> <INDENT> if arr[i + target] == current: <NEW_LINE> <INDEN... | Time: 60% (90ms) | 6259905307d97122c42181af |
class FloScriptLexer(RegexLexer): <NEW_LINE> <INDENT> name = 'FloScript' <NEW_LINE> aliases = ['floscript', 'flo'] <NEW_LINE> filenames = ['*.flo'] <NEW_LINE> def innerstring_rules(ttype): <NEW_LINE> <INDENT> return [ (r'%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?' '[hlL]?[E-GXc-giorsux%]', String.Interpol), (r'[... | For `FloScript <https://github.com/ioflo/ioflo>`_ configuration language source code.
.. versionadded:: 2.4 | 62599053b5575c28eb71374e |
class testAuthent (unittest.TestCase) : <NEW_LINE> <INDENT> pass | def testGetUser(self):
user = User()
user.email = 'brian@brian.com'
user.put()
user2 = User.get_by_email('brian@brian.com')
#self.assert_(user == user2) # fails - why?
self.assert_(user.email == user2.email) | 6259905345492302aabfd9dd |
class ColdCaller: <NEW_LINE> <INDENT> def __init__(self, roster): <NEW_LINE> <INDENT> roster_file = open(roster, 'r') <NEW_LINE> self.roster = roster_file.read().splitlines() <NEW_LINE> self.students = len(self.roster) <NEW_LINE> <DEDENT> '''Call on a student from roster randomly''' <NEW_LINE> def call(self): <NEW_LINE... | ColdCaller class
takes roster - string of filename with list of students, names separated by linebreaks | 62599053b830903b9686ef00 |
class Team(dataobjects.ValueObject): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.players = [] <NEW_LINE> <DEDENT> def equalsVariables(self): <NEW_LINE> <INDENT> return ['name'] <NEW_LINE> <DEDENT> def addPlayer(self, player): <NEW_LINE> <INDENT> self.players.append... | from gameengine import game
game.Team(...) | 62599053be8e80087fbc0586 |
@python_2_unicode_compatible <NEW_LINE> class AbstractAttachment(models.Model): <NEW_LINE> <INDENT> post = models.ForeignKey('forum_conversation.Post', verbose_name=_('Post'), related_name='attachments') <NEW_LINE> file = models.FileField(verbose_name=_('File'), upload_to=machina_settings.ATTACHMENT_FILE_UPLOAD_TO) <NE... | Represents a post attachment. An attachment is always linked to a post. | 6259905326068e7796d4de4d |
class MetaDataManager(models.Manager): <NEW_LINE> <INDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self.get_query_set().get(name=key).value <NEW_LINE> <DEDENT> except MetaData.DoesNotExist: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> <DEDENT> def __setitem__(self, key, va... | This manager allow to with MetaData.objects as a Dict (useful for
templates). | 6259905329b78933be26ab47 |
class DeviceError(MeFrame): <NEW_LINE> <INDENT> _SOURCE = "!" <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(DeviceError, self).__init__() <NEW_LINE> self._ERRORS = [] <NEW_LINE> for error in ERRORS: <NEW_LINE> <INDENT> self._ERRORS.append(Error(error)) <NEW_LINE> <DEDENT> <DEDENT> def _get_by_code(self, code... | Queries failing return a device error, implemented as repsonse by this class. | 625990533eb6a72ae038bb65 |
class TMQStream(NMEAStream): <NEW_LINE> <INDENT> def _get_type(self, sentence): <NEW_LINE> <INDENT> sentence = sentence.split(',') <NEW_LINE> sen_type = sentence[0].lstrip('$') <NEW_LINE> if not sen_type[:-1] == 'PTMQ': <NEW_LINE> <INDENT> raise TypeError('Not a TMQ sentence') <NEW_LINE> <DEDENT> sen_type = sen_type[-3... | This class is used to process "NMEA" data sent by TMQ devices.
This privilege is bestowed upon TMQ, since they are a bunch of fuktards who can't
get right as simple a task as implementing a simple serial protocol. Even.
There are some major problems with TMQ data, which is sent in binary format. Such ... | 625990534a966d76dd5f03f5 |
class FlowConversionMode(Enum, IComparable, IFormattable, IConvertible): <NEW_LINE> <INDENT> def __eq__(self, *args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __format__(self, *args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __ge__(self, *args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __gt__(se... | Enumerated type listing possible flow conversion modes for piping calculations.
enum FlowConversionMode, values: Invalid (-1), Tanks (1), Valves (0) | 6259905394891a1f408ba179 |
class MultiScrapper: <NEW_LINE> <INDENT> sourceURLs = [] <NEW_LINE> goodOnes = [] <NEW_LINE> badOnes = [] <NEW_LINE> counter = 0 <NEW_LINE> def scrap_data(self, startingPoint=0, sleepInt=300, logFile="scrap.log"): <NEW_LINE> <INDENT> import time <NEW_LINE> import sys <NEW_LINE> import traceback <NEW_LINE> from nourishe... | This is for collecting data for multiple source URLs
Attributes
----------
sourceURLs : list of strings
list of URLs which we want to scrap
goodOnes : list of strings
urls which were processed correctly
badOnes : list of strings
urls which were processed correctly
counter : int
number of processed URL... | 625990536e29344779b01b4f |
class TopicReadTracker(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(settings.AUTH_USER_MODEL, blank=False, null=False) <NEW_LINE> topic = models.ForeignKey(Topic, blank=True, null=True) <NEW_LINE> time_stamp = models.DateTimeField(auto_now=True) <NEW_LINE> objects = TopicReadTrackerManager() <NEW_LINE> c... | Save per user topic read tracking | 62599053507cdc57c63a62ab |
class RetinaNetModule(nn.Module): <NEW_LINE> <INDENT> def __init__(self, cfg): <NEW_LINE> <INDENT> super(RetinaNetModule, self).__init__() <NEW_LINE> self.cfg = cfg.clone() <NEW_LINE> anchor_generator = make_anchor_generator_retinanet(cfg) <NEW_LINE> head = RetinaNetHead(cfg) <NEW_LINE> box_coder = BoxCoder(weights=(10... | Module for RetinaNet computation. Takes feature maps from the backbone and RPN
proposals and losses. | 625990537d847024c075d8e1 |
class int16(vs_bases.v_int): <NEW_LINE> <INDENT> def __init__(self, valu=0, endian='little'): <NEW_LINE> <INDENT> vs_bases.v_int.__init__(self, valu=valu, size=2, endian=endian, signed=True) | Signed 16 bit integer type | 62599053d7e4931a7ef3d584 |
class UnreadableFileError(Exception): <NEW_LINE> <INDENT> def __init__(self, path): <NEW_LINE> <INDENT> Exception.__init__(self, path) | Mutagen is not able to extract information from the file.
| 625990533cc13d1c6d466c44 |
class Identity(object): <NEW_LINE> <INDENT> def __init__(self, enrollment_id, user): <NEW_LINE> <INDENT> if not isinstance(user, Enrollment): <NEW_LINE> <INDENT> raise ValueError('"user" is not a valid Enrollment object') <NEW_LINE> <DEDENT> self._enrollment_id = enrollment_id <NEW_LINE> self._EnrollmentCert = user.cer... | Class represents a tuple containing
1) enrollment_id
2) Enrollment Certificate of user
3) Private Key of user | 62599053462c4b4f79dbcf0b |
class TestSuite(unittest.TestCase): <NEW_LINE> <INDENT> def test_ArrayStack(self): <NEW_LINE> <INDENT> stack = ArrayStack() <NEW_LINE> stack.push(1) <NEW_LINE> stack.push(2) <NEW_LINE> stack.push(3) <NEW_LINE> it = stack.__iter__() <NEW_LINE> self.assertEqual(3, next(it)) <NEW_LINE> self.assertEqual(2, next(it)) <NEW_L... | Test suite for the stack data structures (above) | 62599053d99f1b3c44d06ba6 |
class ResourcedTestCase(unittest.TestCase): <NEW_LINE> <INDENT> resources = [] <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super(ResourcedTestCase, self).setUp() <NEW_LINE> self.setUpResources() <NEW_LINE> <DEDENT> def setUpResources(self): <NEW_LINE> <INDENT> setUpResources(self, self.resources, _get_result()) <NE... | A TestCase parent or utility that enables cross-test resource usage.
ResourcedTestCase is a thin wrapper around the
testresources.setUpResources and testresources.tearDownResources helper
functions. It should be trivially reimplemented where a different base
class is neded, or you can use multiple inheritance and call... | 625990532ae34c7f260ac5ed |
class MyRobot(wpilib.SampleRobot): <NEW_LINE> <INDENT> def robotInit(self): <NEW_LINE> <INDENT> self.lstick = wpilib.Joystick(0) <NEW_LINE> self.rstick = wpilib.Joystick(1) <NEW_LINE> self.lr_motor = wpilib.Jaguar(1) <NEW_LINE> self.rr_motor = wpilib.Jaguar(2) <NEW_LINE> self.lf_motor = wpilib.Jaguar(3) <NEW_LINE> self... | Main robot class | 6259905391af0d3eaad3b32f |
class RegistrationManager(models.Manager): <NEW_LINE> <INDENT> def activate_user(self, activation_key): <NEW_LINE> <INDENT> from registration.signals import user_activated <NEW_LINE> if SHA1_RE.search(activation_key): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> profile = self.get(activation_key=activation_key) <NEW_LI... | Custom manager for the ``RegistrationProfile`` model.
The methods defined here provide shortcuts for account creation
and activation (including generation and emailing of activation
keys), and for cleaning out expired inactive accounts. | 625990530a50d4780f706842 |
class EGGAnimJoint(Group): <NEW_LINE> <INDENT> def make_hierarchy_from_list(self, obj_list): <NEW_LINE> <INDENT> for obj in obj_list: <NEW_LINE> <INDENT> if ((obj.parent == self.object) or ((self.object == None) and (str(obj.parent) not in map(str, obj_list)) and (str(obj) not in [str(ch.object) for ch in self.children... | Representation of the <Joint> animation data. Has the same
hierarchy as the character's skeleton. | 625990530fa83653e46f63eb |
class SpeedRPM(SpeedValue): <NEW_LINE> <INDENT> def __init__(self, rotations_per_minute, desc=None): <NEW_LINE> <INDENT> self.rotations_per_minute = rotations_per_minute <NEW_LINE> self.desc = desc <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "{} ".format(self.desc) if self.desc else "" + str(self.... | Speed in rotations-per-minute. | 625990538e71fb1e983bcfd0 |
class MainMenu(Screen): <NEW_LINE> <INDENT> pass | The main menu widget. | 6259905307f4c71912bb0941 |
class Dynamic(object): <NEW_LINE> <INDENT> ForwardPriority = 1 <NEW_LINE> ReversedPriority = -1 <NEW_LINE> def __init__(self, priority): <NEW_LINE> <INDENT> self._priority = Dynamic.ForwardPriority <NEW_LINE> if priority == Dynamic.ReversedPriority: <NEW_LINE> <INDENT> self._priority = Dynamic.ReversedPriority <NEW_LIN... | Dynamic class keeps information that is necessary for applying dynamic
algorithms and ranking. One of the attributes is _priority that is
priority order and indicates whether first element in a sequence has
more priority (forward) or less priority (reversed) comparing to the
last element in naturally sorted sequence, e... | 62599053be8e80087fbc0588 |
class NumDiff(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.h = 1.0e-6 <NEW_LINE> self.points = (2.0 * self.h, self.h, -self.h, -2.0 * self.h) <NEW_LINE> self.coeffs = numpy.array((-1.0, 8.0, -8.0, 1.0), dtype=DTYPE) <NEW_LINE> self.divizor = 12.0 * self.h <NEW_LINE> self.errs = numpy.zeros_... | Numeric differentiation helper.
WARNING: it is invalid for single precision float data type. | 62599053379a373c97d9a52b |
class FileDB: <NEW_LINE> <INDENT> def __init__(self, filename): <NEW_LINE> <INDENT> from ZODB import FileStorage, DB <NEW_LINE> self.storage = FileStorage.FileStorage(filename) <NEW_LINE> db = DB(self.storage) <NEW_LINE> connection = db.open() <NEW_LINE> self.root = connection.root() <NEW_LINE> <DEDENT> def commit(self... | automate zodb connect and close protocols | 62599053ac7a0e7691f739e8 |
class NavListProcess(mfgames_writing.ncx.ReportNcxFileProcess): <NEW_LINE> <INDENT> def get_help(self): <NEW_LINE> <INDENT> return "Lists the nav entries of a NCX." <NEW_LINE> <DEDENT> def report_tsv(self): <NEW_LINE> <INDENT> index = 1 <NEW_LINE> for nav in self.ncx.navpoints: <NEW_LINE> <INDENT> fields = [format(inde... | Scans the NCX file and lists the nav entries. | 6259905316aa5153ce4019ec |
class AudioHarmonicity(object): <NEW_LINE> <INDENT> def __init__(self, sampling_freq, frame_length, overlap): <NEW_LINE> <INDENT> self._aff = fundamental_frequency.FundamentalFrequency(sampling_freq, frame_length, overlap) <NEW_LINE> self._window = window.Hamming(frame_length) <NEW_LINE> self._dft_length = 2048 <NEW_LI... | Harmonicity algorithm test implementation | 62599053fff4ab517ebced2a |
class SiteThemeDbIO(BaseDbIO): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.model_name = SiteTheme | Database I/O operations are handled using this class | 625990532ae34c7f260ac5ee |
class Button(Clickeable, Dibujable): <NEW_LINE> <INDENT> def __init__(self, posicion_x, posicion_y, nombre_archivo, ancho=None, alto=None, dibujado=False): <NEW_LINE> <INDENT> super().__init__(posicion_x, posicion_y, nombre_archivo) <NEW_LINE> <DEDENT> def _al_clickear(self): <NEW_LINE> <INDENT> if len(self.sprite.imag... | Clase para generar los botones necesarios dentro de la interfaz gráfica | 6259905316aa5153ce4019ed |
class TimeElapsedColumn(rich.progress.ProgressColumn): <NEW_LINE> <INDENT> def render(self, task: "Task") -> Text: <NEW_LINE> <INDENT> elapsed = task.finished_time if task.finished else task.elapsed <NEW_LINE> if elapsed is None: <NEW_LINE> <INDENT> return Text("-:--:--", style="progress.elapsed") <NEW_LINE> <DEDENT> f... | Renders time elapsed. | 62599053baa26c4b54d507ab |
class MEA(object): <NEW_LINE> <INDENT> def __init__(self, channels=None, positions=None, adjacency=None, probe=None, ): <NEW_LINE> <INDENT> self._probe = probe <NEW_LINE> self._channels = channels <NEW_LINE> self._check_positions(positions) <NEW_LINE> self._positions = positions <NEW_LINE> if adjacency is None and prob... | A Multi-Electrode Array.
There are two modes:
* No probe specified: one single channel group, positions and adjacency
list specified directly.
* Probe specified: one can change the current channel_group. | 6259905394891a1f408ba17a |
class Like(Choreography): <NEW_LINE> <INDENT> def __init__(self, temboo_session): <NEW_LINE> <INDENT> Choreography.__init__(self, temboo_session, '/Library/Foursquare/Checkins/Like') <NEW_LINE> <DEDENT> def new_input_set(self): <NEW_LINE> <INDENT> return LikeInputSet() <NEW_LINE> <DEDENT> def _make_result_set(self, res... | Create a new instance of the Like Choreography. A TembooSession object, containing a valid
set of Temboo credentials, must be supplied. | 625990537d847024c075d8e3 |
class GetSmsCampaigns(object): <NEW_LINE> <INDENT> swagger_types = { 'campaigns': 'list[object]', 'count': 'int' } <NEW_LINE> attribute_map = { 'campaigns': 'campaigns', 'count': 'count' } <NEW_LINE> def __init__(self, campaigns=None, count=None): <NEW_LINE> <INDENT> self._campaigns = None <NEW_LINE> self._count = None... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 625990533cc13d1c6d466c46 |
class ExtraFieldSerializerOptions(serializers.ModelSerializerOptions): <NEW_LINE> <INDENT> def __init__(self, meta): <NEW_LINE> <INDENT> super(ExtraFieldSerializerOptions, self).__init__(meta) <NEW_LINE> self.non_native_fields = getattr(meta, 'non_native_fields', ()) | Meta class options for ExtraFieldSerializerOptions | 62599053a17c0f6771d5d625 |
class JST(datetime.tzinfo): <NEW_LINE> <INDENT> def utcoffset(self,dt): <NEW_LINE> <INDENT> return datetime.timedelta(hours=9) <NEW_LINE> <DEDENT> def dst(self,dt): <NEW_LINE> <INDENT> return datetime.timedelta(0) <NEW_LINE> <DEDENT> def tzname(self,dt): <NEW_LINE> <INDENT> return "JST" | UTCを日本標準時にするクラス
| 6259905330dc7b76659a0d03 |
@method_decorator(csrf_exempt, name="dispatch") <NEW_LINE> class QueryView(View): <NEW_LINE> <INDENT> def get_model(self, model_name: str) -> BaseModel: <NEW_LINE> <INDENT> app_lable__model_name = model_name_map.get(model_name) <NEW_LINE> if not app_lable__model_name: <NEW_LINE> <INDENT> raise APIError(10008) <NEW_LINE... | 通用Restful API接口 | 6259905363b5f9789fe8667a |
class Terminal(ABC): <NEW_LINE> <INDENT> def __init__(self, size: Size = None): <NEW_LINE> <INDENT> self.bg_color = color.BLACK <NEW_LINE> self.fg_color = color.WHITE <NEW_LINE> size = (80, 24) if size is None else size <NEW_LINE> self.size = Rect(0, 0, *size) <NEW_LINE> <DEDENT> def color(self, fg: Color, bg: Color): ... | Terminal base class, represent a virtual terminal window.
Only requires the implementation of the `draw_glyph` method.
properties:
size -- the rectangle that defines the size of the terminal,
mainly its width and height.
terminal instances always have x and y set to 0
and defaul... | 62599053b830903b9686ef02 |
class User: <NEW_LINE> <INDENT> def __init__(self, username: str, password: str, role: str, realname: str = None): <NEW_LINE> <INDENT> self.username = username <NEW_LINE> self.password = password <NEW_LINE> self.roles = [role] <NEW_LINE> self.realname = realname <NEW_LINE> self.id = username <NEW_LINE> self.classes = [... | Defines the properties of a User within the system. | 62599053e5267d203ee6cdf8 |
class Cube(object): <NEW_LINE> <INDENT> def __init__(self, v_min: list, edge_length: float): <NEW_LINE> <INDENT> self.v_min = v_min <NEW_LINE> self.edge_length = edge_length <NEW_LINE> self.centre = [j + 0.5 * edge_length for j in v_min] <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "Cube from {0} ... | Bounding box | 62599053cb5e8a47e493cc0c |
class AgentPayDealsRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.OwnerUin = None <NEW_LINE> self.AgentPay = None <NEW_LINE> self.DealNames = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.OwnerUin = params.get("OwnerUin") <NEW_LINE> self.Agen... | AgentPayDeals请求参数结构体
| 625990533539df3088ecd7b0 |
class MmapedValue(object): <NEW_LINE> <INDENT> _multiprocess = True <NEW_LINE> def __init__(self, typ, metric_name, name, labelnames, labelvalues, multiprocess_mode='', **kwargs): <NEW_LINE> <INDENT> self._params = typ, metric_name, name, labelnames, labelvalues, multiprocess_mode <NEW_LINE> with lock: <NEW_LINE> <INDE... | A float protected by a mutex backed by a per-process mmaped file. | 62599053a17c0f6771d5d626 |
class GetHeaders: <NEW_LINE> <INDENT> def get_header_value(self, name: str) -> Optional[str]: <NEW_LINE> <INDENT> for header in self.raw_entry["headers"]: <NEW_LINE> <INDENT> if header["name"].lower() == name.lower(): <NEW_LINE> <INDENT> return header["value"] <NEW_LINE> <DEDENT> <DEDENT> return None | Mixin to get a header | 62599053462c4b4f79dbcf0f |
class Category(namedtuple('Category', [ 'ID', 'dbname', 'items' ])): <NEW_LINE> <INDENT> def name(self): <NEW_LINE> <INDENT> return self.dbname.upper() | Item Category
Items are organized into categories (Food, Drugs, Metals, etc).
Category object describes a category's ID, name and list of items.
Attributes:
ID
The database ID
dbname
The name as present in the database.
items
List of Item objects within this category.
Member Funct... | 6259905345492302aabfd9e2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.