code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ObjectGroupMapping(ImportObjectsMixin, ImportMapping): <NEW_LINE> <INDENT> MAP_TYPE = "ObjectGroup" <NEW_LINE> def _import_row(self, source_data, state, mapped_data): <NEW_LINE> <INDENT> object_class_name = state[ImportKey.OBJECT_CLASS_NAME] <NEW_LINE> group_name = state.get(ImportKey.OBJECT_NAME) <NEW_LINE> if g... | Maps object groups.
Cannot be used as the topmost mapping; must have :class:`ObjectClassMapping` and :class:`ObjectMapping` as parents. | 62598fd6099cdd3c6367566b |
class I2cScan(Test): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__( name="scan", summary="I2C Scanner", descr="This plugin scans the I2C bus and displays all the " "addresses connected to the bus.", author="Arun Magesh", email="arun.m@payatu.com", ref=["https://github.com/eblot/pyftdi"], ... | Scan the I2C bus for connected units.
Output Format:
[
{"address_found"="0x51"}, # Address for an I2C device on PCB
# ... May be more than one address found
{
"total_found":6,
"total_not_found": 7
}
] | 62598fd6a219f33f346c6d20 |
class BFSWithQueue: <NEW_LINE> <INDENT> def __init__(self, graph): <NEW_LINE> <INDENT> self.graph = graph <NEW_LINE> self.color = dict(((node, "WHITE") for node in self.graph.iternodes())) <NEW_LINE> self.distance = dict(((node, float("inf")) for node in self.graph.iternodes())) <NEW_LINE> self.parent = dict(((node, No... | Breadth-First Search.
Attributes
----------
graph : input graph
color : dict with nodes, private
distance : dict with nodes (distances to source node)
parent : dict (BFS tree)
dag : graph (BFS tree)
Examples
--------
>>> from graphtheory.structures.edges import Edge
>>> from graphtheory.structures.graphs import Graph... | 62598fd626238365f5fad07e |
class EconomicIndicator(Base): <NEW_LINE> <INDENT> __tablename__ = 'EconomicIndicators' <NEW_LINE> Date = Column(Date, ForeignKey('Quotes.Date'),primary_key=True) <NEW_LINE> bank_prime_loan_rate = Column(Float) <NEW_LINE> primary_credit_rate = Column(Float) <NEW_LINE> consumer_price_index = Column(Float) <NEW_LINE> rea... | Economic Indicators Table Model | 62598fd650812a4eaa620e70 |
class ExtensionsV1beta1RunAsGroupStrategyOptions(object): <NEW_LINE> <INDENT> openapi_types = { 'ranges': 'list[ExtensionsV1beta1IDRange]', 'rule': 'str' } <NEW_LINE> attribute_map = { 'ranges': 'ranges', 'rule': 'rule' } <NEW_LINE> def __init__(self, ranges=None, rule=None, local_vars_configuration=None): <NEW_LINE> <... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 62598fd68a349b6b4368675b |
class Connection: <NEW_LINE> <INDENT> def __init__(self, ssh_input=None): <NEW_LINE> <INDENT> self._sshHost = None <NEW_LINE> self._dataFile = None <NEW_LINE> self._pathToDir = None <NEW_LINE> self._pathToTool = None <NEW_LINE> self._pathToData = None <NEW_LINE> self._sshInput = ssh_input <NEW_LINE> self._errorObject =... | Manages the connection with the server. | 62598fd6099cdd3c6367566c |
class PasswordResetView(GenericAPIView): <NEW_LINE> <INDENT> serializer_class = PasswordResetSerializer <NEW_LINE> permission_classes = (AllowAny,) <NEW_LINE> def post(self, request, *args, **kwargs): <NEW_LINE> <INDENT> serializer = self.get_serializer(data=request.data) <NEW_LINE> if not serializer.is_valid(): <NEW_L... | Calls Django Auth PasswordResetForm save method.
Accepts the following POST parameters: email
Returns the success/fail message. | 62598fd6ab23a570cc2d4ffb |
class PrivateIngredientsApiTests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.client = APIClient() <NEW_LINE> self.user = get_user_model().objects.create_user( 'test@testmail.com', 'password123' ) <NEW_LINE> self.client.force_authenticate(self.user) <NEW_LINE> <DEDENT> def test_retrieve_ingr... | Test the private ingredients api | 62598fd63617ad0b5ee06663 |
class ComponentQuotaStatusOperations(object): <NEW_LINE> <INDENT> models = models <NEW_LINE> def __init__(self, client, config, serializer, deserializer): <NEW_LINE> <INDENT> self._client = client <NEW_LINE> self._serialize = serializer <NEW_LINE> self._deserialize = deserializer <NEW_LINE> self.api_version = "2015-05-... | ComponentQuotaStatusOperations operations.
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An objec model deserializer.
:ivar api_version: Client Api Version. Constant value: "2015-05-01". | 62598fd67cff6e4e811b5f49 |
class DirectoryListingResultsSchema(BaseSchema): <NEW_LINE> <INDENT> directories = fields.List( cls_or_instance=fields.Dict, required=True, description="A list of directories in the given path", example=[ { 'value': "home", 'label': "/home", }, { 'value': "tmp", 'label': "/tmp", }, ], validate=validate.Length(min=0), )... | Schema for directory listing results returned | 62598fd6ec188e330fdf8db6 |
class CloudToDeviceMethod(Model): <NEW_LINE> <INDENT> _validation = { 'payload': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'method_name': {'key': 'methodName', 'type': 'str'}, 'payload': {'key': 'payload', 'type': 'object'}, 'response_timeout_in_seconds': {'key': 'responseTimeoutInSeconds', 'type': 'int'}, 'c... | Parameters to execute a direct method on the device.
Variables are only populated by the server, and will be ignored when
sending a request.
:param method_name: Method to run
:type method_name: str
:ivar payload: Payload
:vartype payload: object
:param response_timeout_in_seconds:
:type response_timeout_in_seconds: i... | 62598fd7099cdd3c6367566f |
class ProductIndex(dict): <NEW_LINE> <INDENT> def __init__(self, filepath): <NEW_LINE> <INDENT> for product in load_data(filepath): <NEW_LINE> <INDENT> if product['shop_id'] not in self: <NEW_LINE> <INDENT> self[product['shop_id']] = [] <NEW_LINE> <DEDENT> product['popularity'] = float(product['popularity']) <NEW_LINE>... | The index of products, this is a subclass of `dict` with extra convenience methods.
Each `key` is the id of a shop.
The data is loaded when this class is initialized. | 62598fd7091ae3566870513d |
class ValueIterationAgent(ValueEstimationAgent): <NEW_LINE> <INDENT> def __init__(self, mdp, discount = 0.9, iterations = 100): <NEW_LINE> <INDENT> self.mdp = mdp <NEW_LINE> self.discount = discount <NEW_LINE> self.iterations = iterations <NEW_LINE> self.values = util.Counter() <NEW_LINE> states = mdp.getStates(); <NEW... | * Please read learningAgents.py before reading this.*
A ValueIterationAgent takes a Markov decision process
(see mdp.py) on initialization and runs value iteration
for a given number of iterations using the supplied
discount factor. | 62598fd7fbf16365ca7945e0 |
class MTPostalCodeField(RegexField): <NEW_LINE> <INDENT> default_error_messages = { 'invalid': _('Enter a valid postal code in format AAA 0000.'), } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super().__init__(r'^[A-Z]{3}\ \d{4}$', **kwargs) | A form field that validates its input as a Maltese postal code.
Maltese postal code is a seven digits string, with first three
being letters and the final four numbers. | 62598fd7377c676e912f700b |
class NTP(Page): <NEW_LINE> <INDENT> def __init__(self, display): <NEW_LINE> <INDENT> self._display = display <NEW_LINE> self._current_ticks = 0 <NEW_LINE> self._previous_ticks = 0 <NEW_LINE> self._previous_connected = False <NEW_LINE> self._sta_if = network.WLAN(network.STA_IF) <NEW_LINE> <DEDENT> def ready(self, curr... | Page to check the clock is connected to WiFi and get time from NTP
| 62598fd7dc8b845886d53ae0 |
class ElevationLimit(Constraint): <NEW_LINE> <INDENT> def __init__(self, limit): <NEW_LINE> <INDENT> self.limit = limit * u.deg <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return 'Elevation limit: {0:.2f}'.format(self.limit) <NEW_LINE> <DEDENT> def get(self, source_coord, frame): <NEW_LINE> <INDENT> alta... | Elevation limit: only sources above a specified elevation are
observable. | 62598fd7099cdd3c63675670 |
class TestSessionManagement(object): <NEW_LINE> <INDENT> @pytest.fixture(autouse=True) <NEW_LINE> def setup_teardown(self, auth_session): <NEW_LINE> <INDENT> self.admin_slot = hsm_config["test_slot"] <NEW_LINE> self.h_session = auth_session <NEW_LINE> <DEDENT> def test_c_get_session_info(self): <NEW_LINE> <INDENT> ret,... | Tests session management functions | 62598fd7091ae3566870513f |
class ProdConfig(Config): <NEW_LINE> <INDENT> ENV = 'prod' <NEW_LINE> DEBUG = False <NEW_LINE> SQLALCHEMY_DATABASE_URI = 'postgresql://postgres@localhost:5432/postgres' <NEW_LINE> DEBUG_TB_ENABLED = False <NEW_LINE> ASSETS_DEBUG = True | Production configuration. | 62598fd7a219f33f346c6d2a |
class played_track(Event): <NEW_LINE> <INDENT> pass | Evemt when x time of current track are played | 62598fd7956e5f7376df590f |
class MultipleResultsException(Exception): <NEW_LINE> <INDENT> pass | Raised when more than one item was found where at most one was expected. | 62598fd73617ad0b5ee0666b |
class Nbody(IntegrateBase): <NEW_LINE> <INDENT> def __init__(self, dt=0., time=0., iteration=0, restart=False, **kwargs): <NEW_LINE> <INDENT> super(Nbody, self).__init__(dt=dt, time=time, iteration=iteration, restart=restart) <NEW_LINE> <DEDENT> def set_gravity_tree(self, gravity_tree): <NEW_LINE> <INDENT> self.gravity... | Class that solves nbody problem.
Nbody solver for collisionless particles without
hydrodynamics.
Attributes
----------
domain_manager : DomainManager
Class that handels all things related with the domain.
dt : float
Time step of the simulation.
particles : CarrayContainer
Class that holds all informati... | 62598fd78a349b6b43686765 |
class StartRHSMTask(Task): <NEW_LINE> <INDENT> def __init__(self, verify_ssl=True): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._verify_ssl = verify_ssl <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return "Start RHSM DBus service" <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> ... | Task for starting the RHSM DBus service. | 62598fd7adb09d7d5dc0aa9e |
class EmaneEventService(Wrapper): <NEW_LINE> <INDENT> def register(self, registrar): <NEW_LINE> <INDENT> registrar.register_argument('loglevel', 3, 'log level - [0,3]') <NEW_LINE> registrar.register_argument('daemonize', True, 'Run as daemon [True, False].') <NEW_LINE> registrar.register_infile_name('eventservice.xml')... | Run emaneeventservice with the provided configuration file. | 62598fd7656771135c489b98 |
class RocketgramStopRequest(RocketgramError): <NEW_LINE> <INDENT> pass | A special exception that can be raised to abort request processing.
Should never be intercepted in user code. | 62598fd73617ad0b5ee0666d |
class ProgressLogger(CallbackAny2Vec): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.epoch = 1 <NEW_LINE> self.epoch_start_time = 0 <NEW_LINE> self.last_training_loss = 0 <NEW_LINE> <DEDENT> def on_epoch_begin(self, model): <NEW_LINE> <INDENT> self.epoch_start_time = time.time() <NEW_LINE> <DEDENT> d... | Callback to show progress and training parameters | 62598fd7ad47b63b2c5a7d78 |
class ClassTime(models.Model): <NEW_LINE> <INDENT> id = models.AutoField(primary_key=True) <NEW_LINE> section = models.CharField(blank=True,max_length=1) <NEW_LINE> day = models.CharField(blank=True,max_length=1) <NEW_LINE> start_time = models.TimeField() <NEW_LINE> end_time = models.TimeField() <NEW_LINE> def __str__(... | it have 16 period per day,and 7 days per week. | 62598fd7ad47b63b2c5a7d79 |
class PowerWallEnergyDirectionSensor(PowerWallEntity, SensorEntity): <NEW_LINE> <INDENT> _attr_state_class = SensorStateClass.TOTAL_INCREASING <NEW_LINE> _attr_native_unit_of_measurement = ENERGY_KILO_WATT_HOUR <NEW_LINE> _attr_device_class = SensorDeviceClass.ENERGY <NEW_LINE> def __init__( self, powerwall_data: Power... | Representation of an Powerwall Direction Energy sensor. | 62598fd70fa83653e46f5410 |
class NubiaTogglExtraPlugin(PluginInterface): <NEW_LINE> <INDENT> def create_context(self): <NEW_LINE> <INDENT> return NubiaTogglExtraContext() <NEW_LINE> <DEDENT> def validate_args(self, args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_commands(self): <NEW_LINE> <INDENT> return [ AutoCommand(nubia_commands.... | The PluginInterface class is a way to customize nubia_wiring for every customer
use case. It allows custom argument validation, control over command
loading, custom context objects, and much more. | 62598fd7956e5f7376df5911 |
class ELKFormatter(logging.Formatter): <NEW_LINE> <INDENT> def format(self, record: logging.LogRecord) -> str: <NEW_LINE> <INDENT> if not hasattr(record, 'asctime'): <NEW_LINE> <INDENT> record.asctime = self.formatTime(record, self.datefmt) <NEW_LINE> <DEDENT> log = { 'timestamp': record.asctime, 'timestamp_msec': reco... | Formats log records as JSON for shipping to ELK | 62598fd7377c676e912f700e |
class DevicePackagesTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def testPackages(self): <NEW_LINE> <INDENT> dev1 = DiskDevice("name", fmt=getFormat("mdmember")) <NEW_LINE> dev2 = DiskDevice("other", fmt=getFormat("mdmember")) <NEW_LINE> dev = MDRaidArrayDevice("dev", level="raid1", parents=[dev1,dev2]) <NEW_LINE> ... | Test device name validation | 62598fd7dc8b845886d53ae6 |
class CameraEntityPreferences: <NEW_LINE> <INDENT> def __init__(self, prefs): <NEW_LINE> <INDENT> self._prefs = prefs <NEW_LINE> <DEDENT> def as_dict(self): <NEW_LINE> <INDENT> return self._prefs <NEW_LINE> <DEDENT> @property <NEW_LINE> def preload_stream(self): <NEW_LINE> <INDENT> return self._prefs.get(PREF_PRELOAD_S... | Handle preferences for camera entity. | 62598fd79f28863672818b12 |
class Worker(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, path_queue, result_queue): <NEW_LINE> <INDENT> threading.Thread.__init__(self) <NEW_LINE> self.path_queue = path_queue <NEW_LINE> self.result_queue = result_queue <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> while True: <NEW_LINE> <INDENT>... | Get tasks from queue and run. | 62598fd7a219f33f346c6d30 |
class Cylinder(ThreeDimensionalShape): <NEW_LINE> <INDENT> def __init__( self, diameter: float, width: float, ): <NEW_LINE> <INDENT> self.diameter = diameter <NEW_LINE> self.width = width <NEW_LINE> self._validate_args() <NEW_LINE> <DEDENT> def _validate_args( self, ) -> None: <NEW_LINE> <INDENT> args = { "diameter": s... | A right angled cylinder.
Parameters
----------
diameter : float
the length of the straight line that passes through the center of the circular cross section
width : float
The length of the side orthagonol to the circular cross section | 62598fd7956e5f7376df5912 |
class TestReportFilters(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 testReportFilters(self): <NEW_LINE> <INDENT> pass | ReportFilters unit test stubs | 62598fd7dc8b845886d53ae8 |
class HOST(CIMElement): <NEW_LINE> <INDENT> def __init__(self, pcdata): <NEW_LINE> <INDENT> Element.__init__(self, 'HOST') <NEW_LINE> self.appendChild(Text(pcdata)) | The HOST element is used to define a single Host. The element
content MUST specify a legal value for a hostname in accordance
with the CIM specification.
<!ELEMENT HOST (#PCDATA)> | 62598fd7656771135c489b9c |
class Command(MuxCommand): <NEW_LINE> <INDENT> pass | Note that in the code, most of the default commands most likely do NOT inherit from this class, so be careful if
you change this class.
Inherit from this if you want to create your own command styles
from scratch. Note that Evennia's default commands inherits from
MuxCommand instead.
Note that the class's `__doc__` ... | 62598fd7956e5f7376df5913 |
class ServiceReference(pb.Referenceable): <NEW_LINE> <INDENT> def __init__(self, service, name, monitor, routes, executors): <NEW_LINE> <INDENT> self.__service = service <NEW_LINE> self.__name = name <NEW_LINE> self.__monitor = monitor <NEW_LINE> self.__executors = executors <NEW_LINE> self.__routes = routes <NEW_LINE>... | Delegates remote message handling to another object.
An 'executor' object is used to execute the method of the named
service. | 62598fd7dc8b845886d53aea |
class PhysicalTest(unittest.TestCase): <NEW_LINE> <INDENT> @unittest.skip("skip until all test runners have poppler >= 0.88") <NEW_LINE> def test_physical_vs_not(self): <NEW_LINE> <INDENT> filename = "three_columns.pdf" <NEW_LINE> pdf = pdftotext.PDF(get_file(filename)) <NEW_LINE> physical_pdf = pdftotext.PDF(get_file(... | Test reading in physical layout. | 62598fd7283ffb24f3cf3dad |
class BacktestingBroker(backtesting.Broker): <NEW_LINE> <INDENT> def __init__(self, cash, barFeed, commission=None): <NEW_LINE> <INDENT> if commission is None: <NEW_LINE> <INDENT> commission = backtesting.TradePercentage(0.006) <NEW_LINE> <DEDENT> backtesting.Broker.__init__(self, cash, barFeed, commission) <NEW_LINE> ... | A backtesting broker.
:param cash: The initial amount of cash.
:type cash: int/float.
:param barFeed: The bar feed that will provide the bars.
:type barFeed: :class:`pyalgotrade.barfeed.BarFeed`
:param commission: An object responsible for calculating order commissions. **If None, a 0.6% trade commision will be used**... | 62598fd70fa83653e46f5416 |
class UserEditForm(UserNewForm): <NEW_LINE> <INDENT> original = forms.CharField(widget=forms.PasswordInput(), label=_("Original")) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = get_user_model() <NEW_LINE> fields = ('password', 'password_confirm', 'original') <NEW_LINE> widgets = {'password': forms.PasswordInput(at... | Formulaire de modification du mot de passe du compte | 62598fd7a219f33f346c6d34 |
class DataFrameSelector(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def __init__(self, attribute_names): <NEW_LINE> <INDENT> self.atrribute_names = attribute_names <NEW_LINE> <DEDENT> def fit(self, X, y=None): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def transform(self, X): <NEW_LINE> <INDENT> retu... | Scikit-Learn doesn't know how to handle Pandas DataFrames. | 62598fd750812a4eaa620e7a |
class FdtPropertyWords(FdtProperty): <NEW_LINE> <INDENT> def __init__(self, name, words): <NEW_LINE> <INDENT> FdtProperty.__init__(self, name) <NEW_LINE> for word in words: <NEW_LINE> <INDENT> if not 0 <= word <= 4294967295: <NEW_LINE> <INDENT> raise Exception(("Invalid word value %d, requires " + "0 <= number <= 42949... | Property with words as value | 62598fd7ad47b63b2c5a7d80 |
class FakturaUpdate(views.LoginRequiredMixin, generic.UpdateView): <NEW_LINE> <INDENT> form_class = FakturaUpdateForm <NEW_LINE> form_valid_message = 'Faktūra pataisyta.' <NEW_LINE> template_name = 'update_form.html' <NEW_LINE> def get_object(self, queryset=None): <NEW_LINE> <INDENT> obj = Sf.objects.get(pk=self.kwargs... | Saskaitos fakturos redagavimas
| 62598fd7ad47b63b2c5a7d81 |
class MB_IntervalMul: <NEW_LINE> <INDENT> def get_result_interval(self, lhs, rhs): <NEW_LINE> <INDENT> if lhs.interval is None or rhs.interval is None: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> return lhs.interval * rhs.interval | Parent virtual class for meta-multiplication | 62598fd70fa83653e46f5418 |
class Converter(_Converter): <NEW_LINE> <INDENT> pass | Converter for PROZA simulation. | 62598fd7c4546d3d9def751b |
class IsThisReaction(Reaction): <NEW_LINE> <INDENT> IDENTIFIER = "THIS IS PATRICK" <NEW_LINE> SOURCE = "https://www.youtube.com/watch?v=YSzOXtXm8p0" <NEW_LINE> CHANNEL_TYPES = [ChannelType.Channel, ChannelType.Group] <NEW_LINE> THIS_IS_PATRICK_MOOD_DICT = {0: "No this is Patrick :slightly_smiling_face:", ... | Reaction when somebody asks if sth is sth | 62598fd7dc8b845886d53af0 |
class Tag(db.Model): <NEW_LINE> <INDENT> tag = models.CharField(max_length=100, unique=True) <NEW_LINE> users = models.ManyToManyField(User, related_name="tags") <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.tag | A Tag which can be applied to a user. | 62598fd78a349b6b43686773 |
class NewsImageForm(ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = NewsImages <NEW_LINE> widgets = { 'image' : AdminImageWidget, } | Image Admin Form | 62598fd7283ffb24f3cf3db3 |
class OneHotCharacterExtractor(BaseExtractor): <NEW_LINE> <INDENT> def __init__(self, field=None, include_space=True): <NEW_LINE> <INDENT> super().__init__(field) <NEW_LINE> self.include_space = include_space <NEW_LINE> <DEDENT> def _process(self, symbols): <NEW_LINE> <INDENT> if self.include_space and " " not in symbo... | Convert your characters to one hot features.
Note: if your data contains diacritics, such as 'é', you might be better
off normalizing these. The OneHotCharacterExtractor will assign these
completely dissimilar representations.
Example
-------
>>> from wordkit.feature_extraction import OneHotCharacterExtractor
>>> wor... | 62598fd7656771135c489ba4 |
class PassivateWiggler(Person): <NEW_LINE> <INDENT> next_target = movement.person_next_target_random <NEW_LINE> def act_at_node(self, node): <NEW_LINE> <INDENT> if 'amenity' in node.tags: <NEW_LINE> <INDENT> if node.tags['amenity'] == 'cafe': <NEW_LINE> <INDENT> sys.stderr.write(' '+self.name+' visited '+str(node.id)+'... | Random moving person, when arriving at an cafe road node being passivated. | 62598fd7ab23a570cc2d5007 |
class IdGenerator(object): <NEW_LINE> <INDENT> instances = [] <NEW_LINE> def __init__(self, prefix): <NEW_LINE> <INDENT> self.instances.append(self) <NEW_LINE> self.prefix = prefix <NEW_LINE> self.uid = str(uuid.uuid4()) <NEW_LINE> self.generator = self.get_generator() <NEW_LINE> <DEDENT> def get_generator(self): <NEW_... | Generate some uuid for actions:
.. code-block:: python
>>> g = IdGenerator('mycounter')
..
>>> IdGenerator.reset(uid='an_uuid4')
It increment counters at each calls:
.. code-block:: python
>>> print(g())
mycounter/an_uuid4/1/1
>>> print(g())
mycounter/an_uuid4/1/2 | 62598fd7099cdd3c63675678 |
class TestChrootName(TestChroot): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def command(cls, arch, *args): <NEW_LINE> <INDENT> return super(TestChrootName, cls).command( arch, "-n", "testname", *args) <NEW_LINE> <DEDENT> def test_exists_different_name_fails(self): <NEW_LINE> <INDENT> with self.assertRaises(subprocess... | Run the chroot tests again with a different --name. | 62598fd73617ad0b5ee0667b |
class IStored(zope.interface.Interface): <NEW_LINE> <INDENT> metadata = zope.interface.Attribute("A dictionary of metadata returned by the storage provider.") | Placeholder interface for post-Storage (WorkedStored) events. | 62598fd78a349b6b43686775 |
class UrlRewriteEztv(object): <NEW_LINE> <INDENT> def url_rewritable(self, task, entry): <NEW_LINE> <INDENT> return urlparse(entry['url']).netloc == 'eztv.ch' <NEW_LINE> <DEDENT> def url_rewrite(self, task, entry): <NEW_LINE> <INDENT> url = entry['url'] <NEW_LINE> page = None <NEW_LINE> for (scheme, netloc) in EZTV_MIR... | Eztv url rewriter. | 62598fd7ad47b63b2c5a7d86 |
class TestInterfaceFunctional(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> payments.app.debug = True <NEW_LINE> if not payments.app.config['TESTING']: <NEW_LINE> <INDENT> payments.app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('LOCAL_DB') <NEW_LINE> <DEDENT> app_db.create_all() <... | A class for doing more functional tests involving the interface.py classes.
Actual db connections are used, so db resources are created and destroyed. | 62598fd7ad47b63b2c5a7d87 |
class SlotDefaultAccess: <NEW_LINE> <INDENT> def __init__(self, instance=None): <NEW_LINE> <INDENT> object.__setattr__(self, '_instance', instance) <NEW_LINE> <DEDENT> def _get_plug(self, name, default=None): <NEW_LINE> <INDENT> slot = getattr(type(self._instance), name) <NEW_LINE> if not isinstance(slot, Slot): <NEW_L... | A proxy-object descriptor class to access Plug default values of the owning class, since Plug-instances can not
be returned except by accessing a classes' __dict__.
See Also
--------
:obj:`Slot`
:obj:`Plugboard`
:obj:`Plug` | 62598fd70fa83653e46f541e |
class MDWCdma(SCPINode, SCPISet): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> _cmd = "MDWCdma" <NEW_LINE> args = [] | MEMory:DELete:MDWCdma
Arguments: | 62598fd7c4546d3d9def751d |
class Library(object): <NEW_LINE> <INDENT> def object(func, name=None): <NEW_LINE> <INDENT> if name is None: <NEW_LINE> <INDENT> name = getattr(func, '__name__') <NEW_LINE> <DEDENT> env.globals[name] = func <NEW_LINE> return func <NEW_LINE> <DEDENT> object = staticmethod(object) <NEW_LINE> def filter(func, name=None): ... | Continues a general feel of wrapping all the registration
methods for easy importing.
This is available in `jinja.contrib.djangosupport` as `register`.
For more details see the docstring of the `jinja.contrib.djangosupport` module. | 62598fd7dc8b845886d53af4 |
class CloseAllAction(PyFaceAction): <NEW_LINE> <INDENT> name = 'C&lose All' <NEW_LINE> tooltip = "Close all open editors" <NEW_LINE> description = tooltip <NEW_LINE> def perform(self, event=None): <NEW_LINE> <INDENT> while len(self.window.editors) > 0: <NEW_LINE> <INDENT> editor = self.window.editors[0] <NEW_LINE> if e... | ...
| 62598fd7d8ef3951e32c80f7 |
class TokenNotSpecifiedException(Exception): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return 'Bot token is not specified.' | Исключение в случае не указанного токена бота. | 62598fd7c4546d3d9def751e |
class Value(Node): <NEW_LINE> <INDENT> def __init__(self, type=None, source=None): <NEW_LINE> <INDENT> self.type = type <NEW_LINE> self.source = source <NEW_LINE> <DEDENT> def depends(self): <NEW_LINE> <INDENT> if self.source is None: <NEW_LINE> <INDENT> return [] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return [s... | Represents single value (array, slice, constant). Once created, cannot be
changed, can be reused. | 62598fd79f28863672818b19 |
class Player(pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, com): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.image = pygame.Surface([60, 10]) <NEW_LINE> self.image.fill(RED) <NEW_LINE> self.rect = self.image.get_rect() <NEW_LINE> self.coms = com <NEW_LINE> <DEDENT> def update(self): <NEW_LINE... | This class represents the Player. | 62598fd7adb09d7d5dc0aab2 |
class SubmissionData(Base): <NEW_LINE> <INDENT> __tablename__ = 'submissiondata' <NEW_LINE> submissiondata_id = Column(Integer, primary_key=True) <NEW_LINE> bucketname = Column(String) <NEW_LINE> event_id = Column(Integer, ForeignKey('events.event_id'), nullable=False) <NEW_LINE> eventName = Column(String) <NEW_LINE> ... | Class to hold submission data messages produced from S3 and sent to SQS | 62598fd7ab23a570cc2d500a |
class Alien(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.image = pygame.image.load("images/alien.bmp") <NEW_LINE> self.rect = self.image.get_rect() <NEW_LINE> self.rect... | A class to represent a single alien in the fleet | 62598fd77cff6e4e811b5f63 |
class TopologyParameters(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'target_resource_group_name': {'key': 'targetResourceGroupName', 'type': 'str'}, 'target_virtual_network': {'key': 'targetVirtualNetwork', 'type': 'SubResource'}, 'target_subnet': {'key': 'targetSubnet', 'type': 'SubResource'},... | Parameters that define the representation of topology.
:param target_resource_group_name: The name of the target resource group to perform topology
on.
:type target_resource_group_name: str
:param target_virtual_network: The reference to the Virtual Network resource.
:type target_virtual_network: ~azure.mgmt.network.... | 62598fd7a219f33f346c6d40 |
class Square: <NEW_LINE> <INDENT> def __init__(self, size): <NEW_LINE> <INDENT> self.__size = size | class whit atribute | 62598fd79f28863672818b1a |
class NoTestResultsTests(unittest.TestCase): <NEW_LINE> <INDENT> def test_properties_return_correct_values(self): <NEW_LINE> <INDENT> MODULE_NAME = 'module' <NEW_LINE> CASE_NAME = 'case' <NEW_LINE> test_results = NoTestResults(MODULE_NAME, CASE_NAME) <NEW_LINE> self.assertEqual(test_results.module_name, MODULE_NAME) <N... | Tests for `NoTestResults`. | 62598fd7656771135c489bac |
@ALGORITHMS.register_module() <NEW_LINE> class DeepCluster(BaseModel): <NEW_LINE> <INDENT> def __init__(self, backbone, with_sobel=True, neck=None, head=None, init_cfg=None): <NEW_LINE> <INDENT> super(DeepCluster, self).__init__(init_cfg) <NEW_LINE> self.with_sobel = with_sobel <NEW_LINE> if with_sobel: <NEW_LINE> <IND... | DeepCluster.
Implementation of `Deep Clustering for Unsupervised Learning
of Visual Features <https://arxiv.org/abs/1807.05520>`_.
The clustering operation is in `core/hooks/deepcluster_hook.py`.
Args:
backbone (dict): Config dict for module of backbone.
with_sobel (bool): Whether to apply a Sobel filter on i... | 62598fd7ab23a570cc2d500b |
class Molecule(object): <NEW_LINE> <INDENT> def __init__(self, name, formula, cell_volume=None, density=None, charge=0): <NEW_LINE> <INDENT> elements = default_table() <NEW_LINE> M = parse_formula(formula, natural_density=density) <NEW_LINE> if elements.T in M.atoms: <NEW_LINE> <INDENT> warnings.warn("Use of tritium fo... | Specify a biomolecule by name, chemical formula, cell volume and charge.
Labile hydrogen positions should be coded using H[1] rather than H.
H[1] will be substituded with H for solutions with natural water
or D for solutions with heavy water. Any deuterated non-labile hydrogen
can be marked with D, and they will stay ... | 62598fd70fa83653e46f5424 |
class Foundation(Stack): <NEW_LINE> <INDENT> def __init__(self, location): <NEW_LINE> <INDENT> self._location = location <NEW_LINE> self._type = None <NEW_LINE> super().__init__() <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return str(super().peek()) if not self.is_empty() else Color.GREEN.value + '-:-' ... | This class is sometimes called as winner deck, because it will hold stack of cards that will be moved from either
Tableau or Cells. All cards must be placed according to its suit and number sequentially.
The number of foundation object will depend on the number of suits that will be created in the beginning, with the ... | 62598fd79f28863672818b1b |
class SilacData(BaseData): <NEW_LINE> <INDENT> mass = FloatField() <NEW_LINE> ratio = FloatField(index=True) <NEW_LINE> rsquared = FloatField(index=True) <NEW_LINE> charge = IntegerField(index=True) <NEW_LINE> segment = IntegerField(index=True) <NEW_LINE> num_ms2 = IntegerField(index=True) | Holds actual experimental data. | 62598fd78a349b6b4368677d |
class VNFSvcKeystoneContext(wsgi.Middleware): <NEW_LINE> <INDENT> @webob.dec.wsgify <NEW_LINE> def __call__(self, req): <NEW_LINE> <INDENT> user_id = req.headers.get('X_USER_ID') <NEW_LINE> if not user_id: <NEW_LINE> <INDENT> LOG.debug(_("X_USER_ID is not found in request")) <NEW_LINE> return webob.exc.HTTPUnauthorized... | Make a request context from keystone headers. | 62598fd7656771135c489bae |
class OmptInstallation(CMakeInstallation): <NEW_LINE> <INDENT> def __init__(self, sources, target_arch, target_os, compilers): <NEW_LINE> <INDENT> if sources['ompt'] == 'download-tr6': <NEW_LINE> <INDENT> sources['ompt'] = [ 'http://tau.uoregon.edu/LLVM-openmp-ompt-tr6.tar.gz', 'http://fs.paratools.com/tau-mirror/LLVM-... | Encapsulates an OMPT installation. | 62598fd7ad47b63b2c5a7d8e |
class DeleteUserInputSet(InputSet): <NEW_LINE> <INDENT> def set_APIKey(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'APIKey', value) <NEW_LINE> <DEDENT> def set_ID(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'ID', value) | An InputSet with methods appropriate for specifying the inputs to the DeleteUser
Choreo. The InputSet object is used to specify input parameters when executing this Choreo. | 62598fd7fbf16365ca7945fc |
class BBoxCanvasController: <NEW_LINE> <INDENT> debug_output = Output(layout={'border': '1px solid black'}) <NEW_LINE> def __init__(self, gui: BBoxCanvasGUI, state: BBoxCanvasState): <NEW_LINE> <INDENT> self._state = state <NEW_LINE> self._gui = gui <NEW_LINE> state.subscribe(self._draw_all_bbox, 'bbox_coords') <NEW_LI... | Handle the GUI and state communication | 62598fd7377c676e912f7019 |
class FollowManager(GFKManager): <NEW_LINE> <INDENT> def for_object(self, instance): <NEW_LINE> <INDENT> content_type = ContentType.objects.get_for_model(instance).pk <NEW_LINE> return self.filter(content_type=content_type, object_id=instance.pk) <NEW_LINE> <DEDENT> def is_following(self, user, instance): <NEW_LINE> <I... | Manager for Follow model. | 62598fd78a349b6b4368677e |
class Meta(SelfClosingTag): <NEW_LINE> <INDENT> tag = 'meta' | renders meta tag | 62598fd7656771135c489bb0 |
class GitRepoInstaller(KVMBaseInstaller, base_installer.GitRepoInstaller): <NEW_LINE> <INDENT> pass | Installer that deals with source code on Git repositories | 62598fd73617ad0b5ee06687 |
class Individual(AbstractIndividual, Accessible): <NEW_LINE> <INDENT> ex = models.ForeignKey( IndividualEx, related_name="individuals", null=True, on_delete=models.CASCADE ) <NEW_LINE> group = models.ForeignKey( Group, on_delete=models.CASCADE, related_name="individuals" ) <NEW_LINE> name = models.CharField(max_length=... | Single individual in data base.
This does not contain any mappings are splits any more. | 62598fd78a349b6b43686780 |
class PrivateLinkResourcesListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["PrivateLinkResource"]] = None, next_link: Option... | Result of the List private link resources operation.
:param value: A collection of private link resources.
:type value: list[~azure.mgmt.servicebus.v2021_01_01_preview.models.PrivateLinkResource]
:param next_link: A link for the next page of private link resources.
:type next_link: str | 62598fd8fbf16365ca794600 |
class Ctrl(object): <NEW_LINE> <INDENT> info = logger.info <NEW_LINE> warn = logger.warn <NEW_LINE> error = logger.error <NEW_LINE> debug = logger.debug <NEW_LINE> def __init__(self, trials, current_trial=None): <NEW_LINE> <INDENT> if trials is None: <NEW_LINE> <INDENT> self.trials = Trials() <NEW_LINE> <DEDENT> else: ... | Control object for interruptible, checkpoint-able evaluation
| 62598fd826238365f5fad0a5 |
class RunMetrics(dict): <NEW_LINE> <INDENT> _metrics = [] <NEW_LINE> ignore = "|".join(["tmp", "tx", "-split", "log"]) <NEW_LINE> reignore = re.compile(ignore) <NEW_LINE> def __init__(self, log=None): <NEW_LINE> <INDENT> self["_id"] = uuid4().hex <NEW_LINE> self["entity_type"] = self.entity_type() <NEW_LINE> self["name... | Generic Run class | 62598fd8adb09d7d5dc0aabc |
class KMSKey(KMSBase): <NEW_LINE> <INDENT> def __init__(self, ctx_node, resource_id=None, client=None, logger=None): <NEW_LINE> <INDENT> KMSBase.__init__(self, ctx_node, resource_id, client, logger) <NEW_LINE> self.type_name = RESOURCE_TYPE <NEW_LINE> <DEDENT> @property <NEW_LINE> def properties(self): <NEW_LINE> <INDE... | AWS KMS Key interface | 62598fd89f28863672818b1f |
class TipoEntregaAddForm(base.AddForm): <NEW_LINE> <INDENT> grok.context(INavigationRoot) <NEW_LINE> grok.name('add-tipoentrega') <NEW_LINE> grok.require('cmf.ManagePortal') <NEW_LINE> schema = ITipoEntrega <NEW_LINE> klass = TipoEntrega <NEW_LINE> label = _(u'Adicionar Tipo de Entrega') <NEW_LINE> description = _(u'Fo... | Formulário de cadastro de um tipo de entrega.
| 62598fd8ad47b63b2c5a7d96 |
@base.Hidden <NEW_LINE> @base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA) <NEW_LINE> class VpcAccess(base.Group): <NEW_LINE> <INDENT> def Filter(self, context, args): <NEW_LINE> <INDENT> del context, args <NEW_LINE> base.EnableUserProjectQuota() | Manage VPC Access Service resources.
Commands for managing Google VPC Access Service resources. | 62598fd8fbf16365ca794604 |
class Store(Base, Store, Explicit): <NEW_LINE> <INDENT> pass | `Store` wrapper facilitating access to the request (and the Zope session). | 62598fd8fbf16365ca794606 |
class Widget(EventHandler): <NEW_LINE> <INDENT> event_mask = EventMask.Exposure <NEW_LINE> override_redirect = False <NEW_LINE> def __init__(self, client=None, manager=None, config=None, **kwargs): <NEW_LINE> <INDENT> self.client = client <NEW_LINE> self.manager = manager <NEW_LINE> self.conn = manager.conn <NEW_LINE> ... | A manager for a window, possibly on behalf of some client. | 62598fd850812a4eaa620e86 |
class AgentCreator: <NEW_LINE> <INDENT> def __init__(self, agent_class, agent_kwargs, crs="epsg:3857"): <NEW_LINE> <INDENT> if "unique_id" in agent_kwargs: <NEW_LINE> <INDENT> agent_kwargs.remove("unique_id") <NEW_LINE> warnings.warn("Unique_id should not be in the agent_kwargs") <NEW_LINE> <DEDENT> self.agent_class = ... | Create GeoAgents from files, GeoDataFrames, GeoJSON or Shapely objects. | 62598fd8956e5f7376df5921 |
class DbtAssetResource: <NEW_LINE> <INDENT> def __init__(self, asset_key_prefix: List[str]): <NEW_LINE> <INDENT> self._asset_key_prefix = asset_key_prefix <NEW_LINE> <DEDENT> def _get_metadata(self, result: Dict[str, Any]) -> List[MetadataEntry]: <NEW_LINE> <INDENT> return [ MetadataEntry.float(value=result["execution_... | This class defines a resource that is capable of producing a list of AssetMaterializations from
a DbtOutput. It has one public function, get_asset_materializations(), which finds all the
generated models in the dbt output and produces corresponding asset materializations.
Putting this logic in a resource makes it easi... | 62598fd8ab23a570cc2d5012 |
class Cross_section(): <NEW_LINE> <INDENT> def __init__(self,ax): <NEW_LINE> <INDENT> self.ax = ax <NEW_LINE> <DEDENT> def create_data(self, directory, data_list): <NEW_LINE> <INDENT> f = open(directory, newline="") <NEW_LINE> reader = csv.reader(f, quoting=csv.QUOTE_NONNUMERIC) <NEW_LINE> for row in reader: <NEW_LINE>... | Provide methods to build and slice 3D surfaces.
Build 3D surfaces within a matplotlib figure. Take in user-specified
X, Y, and Z coordinates and slice the data along upper and lower
limits. Assign NaN to any data outside of these limits. | 62598fd8099cdd3c63675683 |
class LibraryResultPage(TypedItem): <NEW_LINE> <INDENT> type_name = "LibraryResultPage" <NEW_LINE> title = Field() <NEW_LINE> link = Field() <NEW_LINE> browse_url = Field() <NEW_LINE> document_type = Field() | Stores individual results pages, for debugging | 62598fd850812a4eaa620e87 |
class ProductTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.form_submission = PackageScanFormSubmission(VOUCHER_JSON) <NEW_LINE> <DEDENT> def test_voucher_qr_codes(self): <NEW_LINE> <INDENT> self.assertEqual(['test'], self.form_submission.get_qr_codes()) <NEW_LINE> <DEDENT> d... | Basic test for Product object. | 62598fd8c4546d3d9def7527 |
class DDQNAgent(object): <NEW_LINE> <INDENT> def __init__(self, state_size, action_size, buffer_size=BUFFER_SIZE, batch_size=BATCH_SIZE, gamma=GAMMA, tau=TAU, lr=LR, update_every=UPDATE_EVERY, seed=0): <NEW_LINE> <INDENT> self.state_size = state_size <NEW_LINE> self.action_size = action_size <NEW_LINE> self.buffer_size... | Double DQN agent. Interacts with and learns from the environment. | 62598fd83617ad0b5ee06691 |
class QuestionModel(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.db = questions <NEW_LINE> if len(self.db) == 0: <NEW_LINE> <INDENT> self.id = 1 <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.id = len(self.db)+1 <NEW_LINE> <DEDENT> <DEDENT> def save(self): <NEW_LINE> <INDENT> parser.parse_ar... | Class with methods to perform CRUD operations on the DB | 62598fd826238365f5fad0ad |
class TestOpenFlowController(unittest.TestCase): <NEW_LINE> <INDENT> @mock.patch("ryu.controller.controller.CONF") <NEW_LINE> def _test_ssl(self, this_dir, port, conf_mock): <NEW_LINE> <INDENT> conf_mock.ofp_ssl_listen_port = port <NEW_LINE> conf_mock.ofp_listen_host = "127.0.0.1" <NEW_LINE> conf_mock.ca_certs = None <... | Test cases for OpenFlowController | 62598fd8283ffb24f3cf3dcb |
class ValueIterationAgent(ValueEstimationAgent): <NEW_LINE> <INDENT> def __init__(self, mdp, discount = 0.9, iterations = 100): <NEW_LINE> <INDENT> self.mdp = mdp <NEW_LINE> self.discount = discount <NEW_LINE> self.iterations = iterations <NEW_LINE> self.values = util.Counter() <NEW_LINE> self.runValueIteration() <NEW_... | * Please read learningAgents.py before reading this.*
A ValueIterationAgent takes a Markov decision process
(see mdp.py) on initialization and runs value iteration
for a given number of iterations using the supplied
discount factor. | 62598fd87cff6e4e811b5f74 |
class Character: <NEW_LINE> <INDENT> def __init__(self, dir_path, rotation=0): <NEW_LINE> <INDENT> self.dir_path = dir_path <NEW_LINE> self.rotation = rotation <NEW_LINE> self._cache = {} <NEW_LINE> <DEDENT> def sample(self, num_images): <NEW_LINE> <INDENT> names = [f for f in os.listdir(self.dir_path) if f.endswith('.... | A single character class. | 62598fd8c4546d3d9def7528 |
class UUIDUserAdmin(UserAdmin): <NEW_LINE> <INDENT> fieldsets = ( (None, {'fields': ('username', 'password')}), ('Personal info', {'fields': ('name', 'short_name')}), ('Permissions', {'fields': ('is_active', 'is_staff', 'is_superuser', 'groups', 'user_permissions')}), ('Important dates', {'fields': ('last_login', 'date... | Handle a UUIDUser-based User model properly in the admin. | 62598fd8377c676e912f7020 |
class Database: <NEW_LINE> <INDENT> def __init__(self, db_name): <NEW_LINE> <INDENT> self.db_name = name <NEW_LINE> <DEDENT> def create_database(): <NEW_LINE> <INDENT> mycursor.execute(CREATE_DB.format(DB_NAME)) <NEW_LINE> print("Database {} created!".format(DB_NAME)) <NEW_LINE> <DEDENT> def create_tables(): <NEW_LINE>... | op project Openfoodfacts database | 62598fd8656771135c489bbe |
class Element(Base): <NEW_LINE> <INDENT> def __init__(self, name, bucket, parent, content): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.bucket = bucket <NEW_LINE> self.parent = parent <NEW_LINE> self.content = content <NEW_LINE> if parent is None: <NEW_LINE> <INDENT> self.path = [] <NEW_LINE> <DEDENT> else: <N... | The Element class. | 62598fd8adb09d7d5dc0aac6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.