code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class GoToBottomItemsAndClick(Action): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> <DEDENT> def execute(self) -> None: <NEW_LINE> <INDENT> pyautogui.moveTo(ITEMS_COLUMN_X, BOTTOM_LINE_Y) <NEW_LINE> scroll_max(-1) <NEW_LINE> sleep(1) <NEW_LINE> nbr_of_items = 13 <NEW_LINE> f... | Scroll to the bottom of the item's list, then click on every item until we reach the top of the list.
Then we switch to action ClickOnTopItem | 62598f83711fe17d825e0171 |
class MPTTFilteredSelectMultiple(widgets.FilteredSelectMultiple): <NEW_LINE> <INDENT> def render_option(self, selected_choices, option_value, option_label, sort_fields): <NEW_LINE> <INDENT> option_value = force_text(option_value) <NEW_LINE> option_label = escape(force_text(option_label)) <NEW_LINE> if option_value in s... | MPTT version of FilteredSelectMultiple. | 62598f8396565a6dacd2ccbc |
class ReadUtilsMixin: <NEW_LINE> <INDENT> def _rpm_request_by_name(self, point_list): <NEW_LINE> <INDENT> points = [] <NEW_LINE> requests = [] <NEW_LINE> for each in point_list: <NEW_LINE> <INDENT> str_list = [] <NEW_LINE> point = self._findPoint(each, force_read=False) <NEW_LINE> points.append(point) <NEW_LINE> str_li... | Handle ReadPropertyMultiple for a device | 62598f83009cb60464d00fb5 |
class InvalidMove(Exception): <NEW_LINE> <INDENT> pass | Raise an Invalid Move Exception | 62598f83baa26c4b54d4ed3a |
class Volreg(AFNICommand): <NEW_LINE> <INDENT> _cmd = '3dvolreg' <NEW_LINE> input_spec = VolregInputSpec <NEW_LINE> output_spec = VolregOutputSpec | Register input volumes to a base volume using AFNI 3dvolreg command
For complete details, see the `3dvolreg Documentation.
<https://afni.nimh.nih.gov/pub/dist/doc/program_help/3dvolreg.html>`_
Examples
========
>>> from nipype.interfaces import afni
>>> volreg = afni.Volreg()
>>> volreg.inputs.in_file = 'functional.... | 62598f83b57a9660fecd1506 |
class TestPO4(self.TestPO1): <NEW_LINE> <INDENT> z = param.Parameter(default=self.TestPO1()) | Nested parameterized objects | 62598f83d164cc6175820a01 |
class DownUnit(HybridBlock): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels_list, bn_use_global_stats, **kwargs): <NEW_LINE> <INDENT> super(DownUnit, self).__init__(**kwargs) <NEW_LINE> with self.name_scope(): <NEW_LINE> <INDENT> self.blocks = nn.HybridSequential(prefix="") <NEW_LINE> for i, out_chann... | FishNet down unit.
Parameters:
----------
in_channels : int
Number of input channels.
out_channels_list : list of int
Number of output channels for each block.
bn_use_global_stats : bool
Whether global moving statistics is used instead of local batch-norm for BatchNorm layers. | 62598f83097d151d1a2c0aae |
class ReplyTo(EndpointReferenceType_): <NEW_LINE> <INDENT> c_tag = 'ReplyTo' <NEW_LINE> c_namespace = NAMESPACE <NEW_LINE> c_children = EndpointReferenceType_.c_children.copy() <NEW_LINE> c_attributes = EndpointReferenceType_.c_attributes.copy() <NEW_LINE> c_child_order = EndpointReferenceType_.c_child_order[:] <NEW_LI... | The http://www.w3.org/2005/08/addressing:ReplyTo element | 62598f8394891a1f408b9433 |
class TftpMetrics(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.bytes = 0 <NEW_LINE> self.resent_bytes = 0 <NEW_LINE> self.dups = {} <NEW_LINE> self.dupcount = 0 <NEW_LINE> self.start_time = 0 <NEW_LINE> self.end_time = 0 <NEW_LINE> self.duration = 0 <NEW_LINE> self.bps = 0 <NEW_LINE> self.k... | A class representing metrics of the transfer. | 62598f8330dc7b766599f2e1 |
class ExpiringTokenAuthentication(TokenAuthentication): <NEW_LINE> <INDENT> def authenticate_credentials(self, key): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.model = self.get_model() <NEW_LINE> token = self.model.objects.get(key=key) <NEW_LINE> <DEDENT> except self.model.DoesNotExist: <NEW_LINE> <INDENT> raise... | source: https://stackoverflow.com/questions/14567586/token-authentication-for-restful-api-should-the-token-be-periodically-changed | 62598f83dc8b845886d5303f |
class PreviewContainer(UnityIntrospectionObject): <NEW_LINE> <INDENT> @property <NEW_LINE> def content(self): <NEW_LINE> <INDENT> return self.get_content() <NEW_LINE> <DEDENT> def get_num_previews(self): <NEW_LINE> <INDENT> previews = self.content.get_children_by_type(Preview) <NEW_LINE> return len(previews) <NEW_LINE>... | A container view for the main dash preview widget. | 62598f83004d5f362081ed3f |
class JsonResponse(Response): <NEW_LINE> <INDENT> def __init__(self, data=None, statusCode=None, msg=None, status=None, template_name=None, headers=None, exception=False, content_type=None): <NEW_LINE> <INDENT> super(Response, self).__init__(None, status=status) <NEW_LINE> if isinstance(data, Serializer): <NEW_LINE> <I... | An HttpResponse that allows its data to be rendered into
arbitrary media types. | 62598f83b830903b9686e1b6 |
class CondorDAGJob(object): <NEW_LINE> <INDENT> def __init__(self, jobname, submitfile): <NEW_LINE> <INDENT> self.jobname = jobname <NEW_LINE> self.submitfile = submitfile <NEW_LINE> self.daughters = [] <NEW_LINE> self.parents = [] <NEW_LINE> self.status = ("UNKNOWN", "") <NEW_LINE> <DEDENT> def __hash__(self): <NEW_LI... | Representation of a single CondorDAG job. | 62598f83fbf16365ca793b33 |
class GetchUnix: <NEW_LINE> <INDENT> def get_key(self): <NEW_LINE> <INDENT> fd = sys.stdin.fileno() <NEW_LINE> old_settings = termios.tcgetattr(fd) <NEW_LINE> try: <NEW_LINE> <INDENT> tty.setraw(sys.stdin.fileno()) <NEW_LINE> ch = sys.stdin.read(1) <NEW_LINE> <DEDENT> finally: <NEW_LINE> <INDENT> termios.tcsetattr(fd, ... | This class is used for fetching pressed key from terminal. | 62598f83a17c0f6771d5bccd |
class GrantResourceAuthorizationRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Platform = None <NEW_LINE> self.Owner = None <NEW_LINE> self.Resources = None <NEW_LINE> self.Authorizees = None <NEW_LINE> self.Permissions = None <NEW_LINE> self.Operator = None <NEW_LINE> <DEDENT>... | GrantResourceAuthorization请求参数结构体
| 62598f8373bcbd0ca4bc9cdb |
class Tile: <NEW_LINE> <INDENT> def __init__(self, block_move=True, block_sight=None, hardness=1): <NEW_LINE> <INDENT> self.block_move = block_move <NEW_LINE> if block_sight is None: <NEW_LINE> <INDENT> self.block_sight = block_move <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.block_sight = block_sight <NEW_LINE>... | A tile on the map | 62598f83d10714528d69d959 |
class AttractionSerializer(serializers.HyperlinkedModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Attraction <NEW_LINE> url = serializers.HyperlinkedIdentityField( view_name='attraction', lookup_field='id' ) <NEW_LINE> fields = ('id', 'url', 'name', 'area') <NEW_LINE> depth = 2 | Serialize the Attraction model | 62598f8371ff763f4b5e71f7 |
@dataclass <NEW_LINE> class RetireGGORequest(AbstractRequest): <NEW_LINE> <INDENT> settlement_address: str = field() <NEW_LINE> measurement_address: str = field() <NEW_LINE> measurement_private_key: bytes = field() <NEW_LINE> parts: List[RetireGGOPart] = field() <NEW_LINE> def get_signed_transactions(self, batch_signer... | :param str settlement_address: The address of where to create the settlement for a measurement.
:param str measurement_address: The address of the measurement to retire GGOs to.
:param bytes measurement_private_key: The owners private key of the measurement.
:param List[RetireGGOPart] parts: The GGOs to retire to the s... | 62598f83442bda511e95bee5 |
class BaseStorage(object): <NEW_LINE> <INDENT> def save_image(self, image): <NEW_LINE> <INDENT> raise NotImplementedError() | Base class for storages. | 62598f83287bf620b627163d |
class DisorderedAtom(DisorderedEntityWrapper): <NEW_LINE> <INDENT> def __init__(self, id): <NEW_LINE> <INDENT> self.last_occupancy = -999999 <NEW_LINE> DisorderedEntityWrapper.__init__(self, id) <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> for i in self.disordered_get_list(): <NEW_LINE> <INDENT> yield i ... | Contains all Atom objects that represent the same disordered atom.
One of these atoms is "selected" and all method calls not caught
by DisorderedAtom are forwarded to the selected Atom object. In that way, a
DisorderedAtom behaves exactly like a normal Atom. By default, the selected
Atom object represents the Atom obj... | 62598f836fb2d068a7693b73 |
class Matrix4x4(object): <NEW_LINE> <INDENT> def __init__(self, matrix=None): <NEW_LINE> <INDENT> self.data = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] if matrix is None else matrix <NEW_LINE> <DEDENT> def __mul__(self, other): <NEW_LINE> <INDENT> if isinstance(other, Vector4): <NEW_LINE> <INDENT> result... | 4*4矩阵 | 62598f838a349b6b43685ccf |
class Limit352TestCase(ElementTestCase): <NEW_LINE> <INDENT> def _build_element(self): <NEW_LINE> <INDENT> from dragonfly.language.en.number import IntegerContent <NEW_LINE> return Integer(content=IntegerContent, min=230, max=352) <NEW_LINE> <DEDENT> input_output = [ ("three hundred forty nine", 349), ("three ... | Verify integer limits of range up to 352. | 62598f8366656f66f7d59e7f |
class NetworkIntentPolicyConfiguration(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'network_intent_policy_name': {'key': 'networkIntentPolicyName', 'type': 'str'}, 'source_network_intent_policy': {'key': 'sourceNetworkIntentPolicy', 'type': 'NetworkIntentPolicy'}, } <NEW_LINE> def __init__( self... | Details of NetworkIntentPolicyConfiguration for PrepareNetworkPoliciesRequest.
:param network_intent_policy_name: The name of the Network Intent Policy for storing in target
subscription.
:type network_intent_policy_name: str
:param source_network_intent_policy: Source network intent policy.
:type source_network_inte... | 62598f833c8af77a43b67c79 |
class ClouderDomain(models.Model): <NEW_LINE> <INDENT> _name = 'clouder.domain' <NEW_LINE> _inherit = ['clouder.model'] <NEW_LINE> name = fields.Char('Domain name', required=True) <NEW_LINE> organisation = fields.Char('Organisation', required=True) <NEW_LINE> dns_id = fields.Many2one('clouder.service', 'DNS Node', requ... | Define the domain object, which represent all domains which can be linked
to the bases hosted in this clouder. | 62598f83d4950a0f3b110b7a |
class KalturaEntryResource(KalturaContentResource): <NEW_LINE> <INDENT> def __init__(self, entryId=NotImplemented, flavorParamsId=NotImplemented): <NEW_LINE> <INDENT> KalturaContentResource.__init__(self) <NEW_LINE> self.entryId = entryId <NEW_LINE> self.flavorParamsId = flavorParamsId <NEW_LINE> <DEDENT> PROPERTY_LOAD... | Used to ingest media that is already ingested to Kaltura system as a different entry in the past, the new created flavor asset will be ready immediately using a file sync of link type that will point to the existing file sync of the existing entry. | 62598f8307d97122c421672e |
class Volume(base.Resource): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return "<Volume: %s>" % self.id <NEW_LINE> <DEDENT> def delete(self): <NEW_LINE> <INDENT> self.manager.delete(self) <NEW_LINE> <DEDENT> def update(self, **kwargs): <NEW_LINE> <INDENT> self.manager.update(self, **kwargs) <NEW_LINE> ... | A volume is an extra block level storage to the OpenStack instances. | 62598f83d53ae8145f917f19 |
class User_Role(db.base): <NEW_LINE> <INDENT> __tablename__ = 'sys_user_roles' <NEW_LINE> id = Column(Integer,primary_key=True) <NEW_LINE> uid = Column(Integer,ForeignKey('sys_users.uid')) <NEW_LINE> rid = Column(Integer,ForeignKey('sys_roles.rid')) | Docstring for MyClass. | 62598f83bde94217f37073ab |
class Album(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=254) <NEW_LINE> slug = models.CharField(max_length=270, db_index=True, unique=True) <NEW_LINE> description = models.TextField(blank=True, verbose_name="Album description") <NEW_LINE> user = models.ForeignKey(settings.AUTH_USER_MODEL, on_... | Table for all albums. | 62598f835f7d997b871f911d |
class KNN: <NEW_LINE> <INDENT> def __init__(self, k=None, data=None, query=None): <NEW_LINE> <INDENT> self.k = k <NEW_LINE> self.data = data <NEW_LINE> self.query = query <NEW_LINE> <DEDENT> def nearest_neighbors(self): <NEW_LINE> <INDENT> neighbor_distances_and_indices = [] <NEW_LINE> for idx, data_point in enumerate(... | K-Nearest Neighbors class | 62598f83097d151d1a2c0ab0 |
class BSTNode: <NEW_LINE> <INDENT> def __init__(self, key, left=None, right=None): <NEW_LINE> <INDENT> self.key = key <NEW_LINE> self.size = 1 <NEW_LINE> self.left = left <NEW_LINE> self.right = right <NEW_LINE> self.height = 0 <NEW_LINE> self.bf = 0 <NEW_LINE> <DEDENT> def isLeaf(self): <NEW_LINE> <INDENT> return not ... | AVL Tree node | 62598f833eb6a72ae038a0c3 |
class intoSQLPipeline(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> engine = create_engine(SQLALCHEMY_DATABASE_URI) <NEW_LINE> self.Session = sessionmaker(bind=engine) <NEW_LINE> <DEDENT> def process_item(self, item, spider): <NEW_LINE> <INDENT> session = self.Session() <NEW_LINE> cpu = models.CP... | this serves as a pipeline into the database | 62598f8373bcbd0ca4bc9cdc |
class SqlDepotK(SqlObjetK): <NEW_LINE> <INDENT> SQL_ARGS=['nom','surnom','volume','poid','prix_unite','remarque','nb_paquet','nb_carton','dbid_genre','dbid_contrat'] <NEW_LINE> INIT_SQL_ARGS= {'nom':'Sans nom', 'surnom':'Sans nom', 'volume':0, 'poid':0, 'prix_unite':0, 'quantite':0, 'remarque':'Sans remarque', 'nb_paqu... | Sous class sql du depot | 62598f83004d5f362081ed40 |
class Command(metaclass=ABCMeta): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def execute(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def undo(self): <NEW_LINE> <INDENT> pass | This class is ABC for command | 62598f8326238365f5fac5fa |
class CountryColumn(ContainerColumn): <NEW_LINE> <INDENT> def getRawValue(self, obj): <NEW_LINE> <INDENT> country = super(CountryColumn, self).getRawValue(obj) <NEW_LINE> if country: <NEW_LINE> <INDENT> country = country.token <NEW_LINE> <DEDENT> return country | ContainerColumn for gocept.country objects. | 62598f830383005118f6d18c |
class TestFilemapBuildNewFn(object): <NEW_LINE> <INDENT> skiptests = not TEST_FILEMAP_BUILD_DST_FN <NEW_LINE> @pytest.mark.skipif(skiptests, reason="Work in progress") <NEW_LINE> @pytest.mark.parametrize( "src_fn, image_type, expected_dst_fn, exif_data", [ (SRC_FN_JPG_LOWER, IMAGE_TYPE_JPEG, EXIF_DATA_VALID['expected_d... | Tests for method build_dst_fn() are in this class. | 62598f8329b78933be269e20 |
class Deck: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.__cards = [] <NEW_LINE> self.build_deck().shuffle() <NEW_LINE> <DEDENT> @property <NEW_LINE> def cards(self): <NEW_LINE> <INDENT> return self.__cards <NEW_LINE> <DEDENT> def build_deck(self): <NEW_LINE> <INDENT> for suits in Card.suits_availab... | A class that is used to represent 52 cards in a deck
of poker cards
. . .
Attributes
_ _ _ _ _
cards: list
Cards that are in the current deck created
Methods
_ _ _ _
build_deck(self)
Build a deck of cards with value ranging from
0 to 11 and available suits | 62598f8363d6d428bbee2244 |
class ValidateMetadataController(cement.Controller): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> label = 'validate-metadata' <NEW_LINE> stacked_on = 'base' <NEW_LINE> stacked_type = 'nested' <NEW_LINE> help = "Validate metadata (OMEX Metadata file)" <NEW_LINE> description = "Validate metadata (OMEX Metadata fil... | Controller for validating metadata (OMEX Metadata files) | 62598f8307f4c71912baeed0 |
class DescribeSlowLogDataRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.InstanceId = None <NEW_LINE> self.StartTime = None <NEW_LINE> self.EndTime = None <NEW_LINE> self.UserHosts = None <NEW_LINE> self.UserNames = None <NEW_LINE> self.DataBases = None <NEW_LINE> self.SortBy = ... | DescribeSlowLogData请求参数结构体
| 62598f83d10714528d69d95c |
class PageForm(ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Page <NEW_LINE> fields = ['title', 'author', 'content'] | Form for new pages | 62598f8366656f66f7d59e81 |
class Snowflake(): <NEW_LINE> <INDENT> def reset_pos(self): <NEW_LINE> <INDENT> self.y = random.randrange(SCREEN_HEIGHT, SCREEN_HEIGHT + 100) <NEW_LINE> self.x = random.randrange(SCREEN_WIDTH) | Each instance of this class represents a single snowflake.
Based on drawing filled-circles. | 62598f830a366e3fb87dc459 |
class ViewSite(object): <NEW_LINE> <INDENT> def __init__(self, name=None, app_name=None): <NEW_LINE> <INDENT> self._registry = OrderedDict() <NEW_LINE> self.name = name <NEW_LINE> self.app_name = app_name <NEW_LINE> <DEDENT> def __call__(self, *args, **options): <NEW_LINE> <INDENT> if args: <NEW_LINE> <INDENT> assert l... | Site management for view classes | 62598f8330c21e258be98296 |
@register_command <NEW_LINE> class Version(Command): <NEW_LINE> <INDENT> name = 'version' <NEW_LINE> description = "Prints program version" <NEW_LINE> @classmethod <NEW_LINE> def add_parser(cls, subparser): <NEW_LINE> <INDENT> parser = super(Version, cls).add_parser(subparser) <NEW_LINE> parser.add_argument( '--bare', ... | Print version. | 62598f836fece00bbaccb415 |
class DownloaderThread(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, name, task, params_q, res_q=None): <NEW_LINE> <INDENT> threading.Thread.__init__(self, name=name) <NEW_LINE> self.task = task <NEW_LINE> self.params_q = params_q <NEW_LINE> self.res_q = res_q <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <... | Threaded downloader | 62598f83d99f1b3c44d0513b |
class TransactionContainer(object): <NEW_LINE> <INDENT> def __init__(self, transaction_list): <NEW_LINE> <INDENT> if not isinstance(transaction_list, list): <NEW_LINE> <INDENT> raise TypeError('transaction_list must be of type list, ' 'not {type}'.format(type=type(transaction_list))) <NEW_LINE> <DEDENT> self.transactio... | Represents a sequence of transactions (normal and internal). | 62598f833eb6a72ae038a0c5 |
class Solution: <NEW_LINE> <INDENT> def lengthOfLIS(self, nums: List[int]) -> int: <NEW_LINE> <INDENT> if not nums: <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> res = [] <NEW_LINE> for i in range(len(nums)): <NEW_LINE> <INDENT> if len(res) == 0 or nums[i] > res[-1]: <NEW_LINE> <INDENT> res.append(nums[i]) <NEW_LINE... | 维护一个递增数组,利用二分法寻找新元素的插入位置,插入到数组中 | 62598f8324f1403a926855f4 |
class NewAccountsAvailableWebhook(ModelNormal): <NEW_LINE> <INDENT> allowed_values = { } <NEW_LINE> validations = { } <NEW_LINE> additional_properties_type = None <NEW_LINE> _nullable = False <NEW_LINE> @cached_property <NEW_LINE> def openapi_types(): <NEW_LINE> <INDENT> lazy_import() <NEW_LINE> return { 'webhook_type'... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
Attributes:
allowed_values (dict): The key is the tuple path to the attribute
and the for var_name this is (var_name,). The value is a dict
with a capitalized key describing the a... | 62598f8373bcbd0ca4bc9cde |
class FM(Injector): <NEW_LINE> <INDENT> def __init__(self, input_size: Union[int, float], output_size: Union[int, float], deemphasis: float = 75e-6, cuda: bool = False): <NEW_LINE> <INDENT> self._cuda: bool = cuda <NEW_LINE> self._input_size: int = int(input_size) <NEW_LINE> self._output_size: int = int(output_size) <N... | The FM class provides a generic demodulator for FM signals.
For broadcast FM stations, use the MFM for mono or WBFM for stereo.
Parameters
----------
input_size : int, float
input signal buffer size
output_size : int, float
output signal buffer size
deemphasis: float
not used in fm mode
cuda : bool
us... | 62598f830fa83653e46f497d |
class IFTTTAlarmPanel(alarm.AlarmControlPanel): <NEW_LINE> <INDENT> def __init__(self, name, code, event_away, event_home, event_night, event_disarm, optimistic): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._code = code <NEW_LINE> self._event_away = event_away <NEW_LINE> self._event_home = event_home <NEW_LIN... | Representation of an alarm control panel controlled through IFTTT. | 62598f830383005118f6d18d |
@torch.jit.script <NEW_LINE> class IouSimilarity(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def compare(self, boxlist1: BoxList, boxlist2: BoxList): <NEW_LINE> <INDENT> return iou(boxlist1, boxlist2) | Class to compute similarity based on Intersection over Union (IOU) metric.
This class computes pairwise similarity between two BoxLists based on IOU. | 62598f83be383301e0253288 |
class NetworkResource(Resource): <NEW_LINE> <INDENT> def on_get(self, req, resp, name): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> store_manager = cherrypy.engine.publish('get-store-manager')[0] <NEW_LINE> network = store_manager.get(Network.new(name=name)) <NEW_LINE> resp.status = falcon.HTTP_200 <NEW_LINE> req.cont... | Resource for working with a single Network. | 62598f83a17c0f6771d5bcd1 |
class sale_order_line_extra(osv.osv): <NEW_LINE> <INDENT> _name="sale.order.line" <NEW_LINE> _inherit="sale.order.line" <NEW_LINE> import openerp.addons.decimal_precision as dp <NEW_LINE> def _amount_line(self, cr, uid, ids, field_name, arg, context=None): <NEW_LINE> <INDENT> return super(sale_order_line_extra, self)._... | Create extra fields in sale.order.line obj
| 62598f838a43f66fc4bf1c0e |
class SyncEvent(_BaseNote): <NEW_LINE> <INDENT> kind = _flags.BPM <NEW_LINE> value = 0 <NEW_LINE> def __init__(self, time, kind, value): <NEW_LINE> <INDENT> self.time, self.kind, self.value = time, kind, value <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return '<SyncEvent {} = {} {}>'.format(self.time, ... | Represents the special TS, A and B notes in the SyncTrack instrument. | 62598f8307f4c71912baeed1 |
class Logger(object): <NEW_LINE> <INDENT> _record = None <NEW_LINE> _levels = {'error': 40, 'warning': 30, 'info': 20, 'debug': 10} <NEW_LINE> @staticmethod <NEW_LINE> def inline(msg='', status='info'): <NEW_LINE> <INDENT> if None is Logger._record: <NEW_LINE> <INDENT> Logger._record = type('record', (object,), dict(ex... | Logger class | 62598f83f7d966606f747a76 |
class LazyOperatorNormInfo: <NEW_LINE> <INDENT> def __init__(self, A, A_1_norm=None, ell=2): <NEW_LINE> <INDENT> self._A = A <NEW_LINE> self._A_1_norm = A_1_norm <NEW_LINE> self._ell = ell <NEW_LINE> self._d = {} <NEW_LINE> <DEDENT> def onenorm(self): <NEW_LINE> <INDENT> if self._A_1_norm is None: <NEW_LINE> <INDENT> s... | Information about an operator is lazily computed.
The information includes the exact 1-norm of the operator,
in addition to estimates of 1-norms of powers of the operator.
This uses the notation of Computing the Action (2011).
This class is specialized enough to probably not be of general interest
outside of this modu... | 62598f8350485f2cf55daa00 |
class PaymentAdmin(BaseAdmin): <NEW_LINE> <INDENT> list_display = ('id', 'external_id', 'amount', 'patient') <NEW_LINE> list_filter = ('created', ) <NEW_LINE> def patient(self, obj): <NEW_LINE> <INDENT> return str(obj.patient) | Handle /admin/payments/payments. | 62598f83379a373c97d98aa0 |
class OperationBuffer( object ): <NEW_LINE> <INDENT> def __init__( self ): <NEW_LINE> <INDENT> self.ops = {} <NEW_LINE> self.registered = False <NEW_LINE> <DEDENT> def add( self, op ): <NEW_LINE> <INDENT> doc_id = op.document_id <NEW_LINE> previous = self.ops.get( doc_id ) <NEW_LINE> if previous is not None: <NEW_LINE>... | an operation buffer aggregates operations across a transaction | 62598f83498bea3a75a575b2 |
class ProcTestKill(proctest.ProcTest): <NEW_LINE> <INDENT> def test_kill_before_run(self): <NEW_LINE> <INDENT> p = processhandler.ProcessHandler([self.python, '-V']) <NEW_LINE> self.assertRaises(RuntimeError, p.kill) <NEW_LINE> <DEDENT> def test_process_kill(self): <NEW_LINE> <INDENT> p = processhandler.ProcessHandler(... | Class to test various process tree killing scenatios | 62598f83c432627299fa2a5d |
class NoPresidentialDay: <NEW_LINE> <INDENT> def test_presidential_day(self): <NEW_LINE> <INDENT> holidays = self.cal.holidays_set(2017) <NEW_LINE> day, _ = self.cal.get_presidents_day(2017) <NEW_LINE> self.assertNotIn(day, holidays) | Washington's birthday is not included in Delaware calendar. | 62598f8315baa72349461a0d |
class RegisterForm(FlaskForm): <NEW_LINE> <INDENT> username = StringField("Username", validators=[InputRequired()]) <NEW_LINE> password = PasswordField("Password", validators=[InputRequired()]) <NEW_LINE> email = StringField("Email", validators=[InputRequired()]) <NEW_LINE> first_name = StringField("First Name", valida... | Form for registering a user | 62598f8396565a6dacd2ccbf |
class Aristocrat(ChessPiece): <NEW_LINE> <INDENT> def __setRowInit(self, color='undef'): <NEW_LINE> <INDENT> if color == 'white': <NEW_LINE> <INDENT> self.setRow(0) <NEW_LINE> <DEDENT> elif color == 'black': <NEW_LINE> <INDENT> self.setRow(7) <NEW_LINE> <DEDENT> return self.row | Abstract non-pawn class | 62598f83cad5886f8bdc4db4 |
class SaturnFieldModel(SphericalHarmonicModel): <NEW_LINE> <INDENT> def __init__(self, name="CASSINI_SOI"): <NEW_LINE> <INDENT> super(SaturnFieldModel, self).__init__("SATURN", name.upper()) <NEW_LINE> self.g = np.zeros((4,4)) <NEW_LINE> self.h = np.zeros((4,4)) <NEW_LINE> self.rp = 60268.0 <NEW_LINE> if self.name == '... | Saturnian field models, mainly for comparison purposes | 62598f8323e79379d538bf89 |
class RedisWQ(object): <NEW_LINE> <INDENT> def __init__(self, name, **redis_kwargs): <NEW_LINE> <INDENT> self._db = redis.StrictRedis(**redis_kwargs) <NEW_LINE> self._session = str(uuid.uuid4()) <NEW_LINE> self._main_q_key = name <NEW_LINE> self._processing_q_key = name + ":processing" <NEW_LINE> self._lease_key_prefix... | Based on http://peter-hoffmann.com/2012/python-simple-queue-redis-queue.html
and the suggestion in the redis documentation for RPOPLPUSH, at
http://redis.io/commands/rpoplpush, which suggests how to implement a work-queue.
Simple Finite Work Queue with Redis Backend
This work queue is finite: as long as no more work... | 62598f833eb6a72ae038a0c7 |
class TaskBuildData(CliAction): <NEW_LINE> <INDENT> def __init__(self, api_client, task_id): <NEW_LINE> <INDENT> super().__init__(api_client) <NEW_LINE> self.task_id = task_id <NEW_LINE> <DEDENT> def invoke(self): <NEW_LINE> <INDENT> return self.api_client.get_task_build_data(self.task_id) | Action to retrieve task build data. | 62598f83b830903b9686e1b9 |
class GasCommodity(Commodity): <NEW_LINE> <INDENT> pressure = EAttribute(eType=EDouble, derived=False, changeable=True) <NEW_LINE> def __init__(self, *, pressure=None, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> if pressure is not None: <NEW_LINE> <INDENT> self.pressure = pressure | Defines a gas commodity. This class can be used as an abstract way of modelling gas commodity and can be used in conjunction with electricity commodity and heat commodity. If more detailed modelling is necessary, use energy carriers. | 62598f831d351010ab8f35cc |
class Level: <NEW_LINE> <INDENT> def __init__(self, file): <NEW_LINE> <INDENT> self.file = "level.txt" <NEW_LINE> self.structure = 0 <NEW_LINE> <DEDENT> def generate(self): <NEW_LINE> <INDENT> with open(self.file) as file: <NEW_LINE> <INDENT> structure_level = [] <NEW_LINE> for line in file: <NEW_LINE> <INDENT> line_le... | create labyrinth | 62598f8376d4e153a661c6a3 |
class DialogNodeNextStep(object): <NEW_LINE> <INDENT> def __init__(self, behavior, dialog_node=None, selector=None): <NEW_LINE> <INDENT> self.behavior = behavior <NEW_LINE> self.dialog_node = dialog_node <NEW_LINE> self.selector = selector <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def _from_dict(cls, _dict): <NEW_LIN... | The next step to execute following this dialog node.
:attr str behavior: What happens after the dialog node completes. The valid values depend on the node type: - The following values are valid for any node: - `get_user_input` - `skip_user_input` - `jump_to` - If the node is of type `event_handler` and its ... | 62598f8345492302aabfbf6d |
class SetType(types.TypeDecorator): <NEW_LINE> <INDENT> impl = types.Text <NEW_LINE> def __init__(self, coerce=int, separator=" ", **kwargs): <NEW_LINE> <INDENT> self.coerce = coerce <NEW_LINE> self.separator = separator <NEW_LINE> super(SetType, self).__init__(**kwargs) <NEW_LINE> <DEDENT> def process_bind_param(self,... | Represents an immutable set.
:param coerce: coercion function that ensures correct
type is returned
:param separator: separator character | 62598f831f037a2d8b9e3b78 |
class LabelSmoothing(nn.Module): <NEW_LINE> <INDENT> def __init__(self, size, padding_idx, smoothing=0.0): <NEW_LINE> <INDENT> super(LabelSmoothing, self).__init__() <NEW_LINE> self.criterion = nn.KLDivLoss(reduction='sum') <NEW_LINE> self.padding_idx = padding_idx <NEW_LINE> self.confidence = 1.0 - smoothing <NEW_LINE... | Implement label smoothing. | 62598f8316aa5153ce3fff91 |
class Ledger(object): <NEW_LINE> <INDENT> swagger_types = { 'id': 'int', 'name': 'str', 'display_name': 'str' } <NEW_LINE> attribute_map = { 'id': 'id', 'name': 'name', 'display_name': 'displayName' } <NEW_LINE> def __init__(self, id=None, name=None, display_name=None): <NEW_LINE> <INDENT> self._id = None <NEW_LINE> se... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f836e29344779b000f3 |
class GGlyph: <NEW_LINE> <INDENT> __slots__ = ("advance", "size", "bearing", "texture", "__weakref__") <NEW_LINE> def __init__(self, ctx, glyph): <NEW_LINE> <INDENT> self.advance = Vec2(glyph.advance.x, glyph.advance.y) <NEW_LINE> self.size = Vec2(glyph.bitmap.width, glyph.bitmap.rows) <NEW_LINE> self.bearing = Vec2(gl... | Class for storing glyph data: *advance*, *size*, *bearing*, and opengl *texture* | 62598f8363d6d428bbee2248 |
class InfoTagVideo(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def getDbId(self): <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> def getDirector(self): <NEW_LINE> <INDENT> return "" <NEW_LINE> <DEDENT> def getWritingCredits(self): <NEW_LINE> <INDENT> return "" <NEW_LI... | Kodi's video info tag class
To get video info tag data of currently played source.
Info tag load is only be possible from present player class.
Example::
...
tag = xbmc.Player().getVideoInfoTag()
title = tag.getTitle()
file = tag.getFile()
... | 62598f8323849d37ff850b4d |
class Main: <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.config() <NEW_LINE> sys.exit(self.run()) <NEW_LINE> <DEDENT> except (EOFError, KeyboardInterrupt): <NEW_LINE> <INDENT> sys.exit(114) <NEW_LINE> <DEDENT> except SystemExit as exception: <NEW_LINE> <INDENT> sys.e... | Main class | 62598f8366656f66f7d59e85 |
class ProfilePage(LoginRequiredMixin, View): <NEW_LINE> <INDENT> def get(self, request, username): <NEW_LINE> <INDENT> thisuser = User.objects.get(username=username) <NEW_LINE> projects = Project.objects.filter(user=thisuser) <NEW_LINE> posts = Post.objects.filter(user=thisuser).order_by('-timestamp') <NEW_LINE> return... | Returns the Profile Page for each user. | 62598f833c8af77a43b67c7c |
class Pipe: <NEW_LINE> <INDENT> def __init__(self, mode='b'): <NEW_LINE> <INDENT> self.fds = tuple( FD(fd, f'{rw}{mode}') for fd, rw in zip(os.pipe(), 'rw') ) <NEW_LINE> <DEDENT> @property <NEW_LINE> def read_fd(self): <NEW_LINE> <INDENT> return self.fds[0] <NEW_LINE> <DEDENT> @property <NEW_LINE> def write_fd(self): <... | wrapper around os.pipe
>>> p = Pipe()
>>> p.write(b'hello')
5
>>> p.read()
b'hello' | 62598f83c432627299fa2a5f |
class RequestFromCodeRunner(object): <NEW_LINE> <INDENT> pass | Message from the code runner | 62598f83b5575c28eb712a0f |
class RegistrationForm(UserCreationForm): <NEW_LINE> <INDENT> email = forms.EmailField(max_length=254, help_text='Required. Inform a valid email address.') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = User <NEW_LINE> fields = ('username', 'email', 'password1', 'password2') | Basic registration form | 62598f83507cdc57c63a481d |
class TestCubQMCCLT(unittest.TestCase): <NEW_LINE> <INDENT> def test_raise_distribution_compatibility_error(self): <NEW_LINE> <INDENT> integrand = Keister(IIDStdUniform(dimension=2)) <NEW_LINE> self.assertRaises(DistributionCompatibilityError, CubQMCCLT, integrand) <NEW_LINE> <DEDENT> def test_n_max_single_level(self):... | Unit tests for CubQMCCLT StoppingCriterion. | 62598f838a349b6b43685cd5 |
class PoemRetrieve(generics.RetrieveAPIView): <NEW_LINE> <INDENT> queryset = Poem.objects.all() <NEW_LINE> serializer_class = PoemRetrieveSerializer | Get poems by their primary key. | 62598f83009cb60464d00fbd |
class ReadText(VbaLibraryFunc): <NEW_LINE> <INDENT> def eval(self, context, params=None): <NEW_LINE> <INDENT> with_str = str(context.with_prefix).strip() <NEW_LINE> if (with_str.endswith("GetDecodedContentStream")): <NEW_LINE> <INDENT> var_name = with_str.replace("GetDecodedContentStream", "GetEncodedContentStream") + ... | ReadText() stream method (stubbed). | 62598f833eb6a72ae038a0c8 |
class Zsh(AutotoolsPackage): <NEW_LINE> <INDENT> homepage = "http://www.zsh.org" <NEW_LINE> url = "http://downloads.sourceforge.net/project/zsh/zsh/5.1.1/zsh-5.1.1.tar.gz" <NEW_LINE> version('5.3.1', checksum='d583fbca0c2410bf9542ce8a651c26ca') <NEW_LINE> version('5.1.1', checksum='8ba28a9ef82e40c3a271602f18343b2f') <N... | Zsh is a shell designed for interactive use, although it is also a
powerful scripting language. Many of the useful features of bash, ksh, and
tcsh were incorporated into zsh; many original features were added. | 62598f8394891a1f408b9437 |
class State(object): <NEW_LINE> <INDENT> def __init__(self, board, actions, insertion, terminal=False): <NEW_LINE> <INDENT> self.board = board <NEW_LINE> self.actions = actions <NEW_LINE> self.terminal = terminal <NEW_LINE> self.insertion = insertion <NEW_LINE> <DEDENT> def terminal_test(self): <NEW_LINE> <INDENT> if s... | State class including board(current game board),
actions(actions left), terminal(if the state is complete ) ,
insertion(current insertion 'x' or 'o') | 62598f83fbf16365ca793b3b |
class TuyaOCSwitch(TuyaDevice): <NEW_LINE> <INDENT> dpsmap = ["state"] <NEW_LINE> dpsvalmap = [ lambda x: str(1+["open","close","idle"].index(x.lower())) ] <NEW_LINE> def __init__(self,devid, key, ip_addr, port=DFLTPORT, parent=[], vers=DFLTVERS, heartbeat=10, invert = False): <NEW_LINE> <INDENT> super().__init__(devid... | Connection to a given Tuya Open/Close/Idle device.
:param: devid: The device id
:type devud: string
:param: key: The device encryption key
:type key: string
:param ip_addr: The device IPv4 address
:type ip_addr: string
:param port: The port used by the unicast connection
:type port: into
:param parent: Parent object w... | 62598f8345492302aabfbf6f |
class TableProperties(pg): <NEW_LINE> <INDENT> name = StringProperty( name="Name", description="Specify a name for the table", update=name_update) <NEW_LINE> name_mem = StringProperty( name="NameMem", description="Memory for updating name") <NEW_LINE> icon = StringProperty( name="Icon", description="Icon for preset", d... | Properties of table. | 62598f83fb3f5b602db47ef9 |
class Question(models.Model): <NEW_LINE> <INDENT> BLOOMS_TAGS = ( (0, 'remembering'), (1, 'understanding'), (2, 'applying'), (3, 'analyzing'), (4, 'evaluating'), (5, 'creating') ) <NEW_LINE> text = models.TextField(db_index=True) <NEW_LINE> answer_text = models.TextField() <NEW_LINE> qset = models.ForeignKey(Qset, on_d... | Describes all the Qset's and the Organization's models and their behaviours. | 62598f8326238365f5fac5ff |
class PrefixUnit(Unit): <NEW_LINE> <INDENT> pass | A unit that is simply a SI-prefixed version of another unit.
For example, ``mm`` is a `PrefixUnit` of ``.001 * m``.
The constructor is the same as for `Unit`. | 62598f8316aa5153ce3fff92 |
class _Point: <NEW_LINE> <INDENT> def __init__(self, color, x_extents, y_extents): <NEW_LINE> <INDENT> self.x, self.y = None, None <NEW_LINE> self.color = color <NEW_LINE> self.x_min, self.x_max = x_extents <NEW_LINE> self.y_min, self.y_max = y_extents <NEW_LINE> <DEDENT> def update(self, coord): <NEW_LINE> <INDENT> x,... | Holds data for a point on the LED matrix | 62598f8371ff763f4b5e71ff |
class Preferences(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'preferred_data_center_region': {'key': 'preferredDataCenterRegion', 'type': '[str]'}, 'transport_preferences': {'key': 'transportPreferences', 'type': 'TransportPreferences'}, } <NEW_LINE> def __init__( self, *, preferred_data_center... | Preferences related to the order.
:param preferred_data_center_region: Preferred Data Center Region.
:type preferred_data_center_region: list[str]
:param transport_preferences: Preferences related to the shipment logistics of the sku.
:type transport_preferences: ~azure.mgmt.databox.models.TransportPreferences | 62598f8321bff66bcd7226fc |
class Authorizer(BaseAuthorizer): <NEW_LINE> <INDENT> AUTHENTICATOR_CLASS = BaseAuthenticator <NEW_LINE> def __init__( self, authenticator, *, post_refresh_callback=None, pre_refresh_callback=None, refresh_token=None, ): <NEW_LINE> <INDENT> super(Authorizer, self).__init__(authenticator) <NEW_LINE> self._post_refresh_c... | Manages OAuth2 authorization tokens and scopes. | 62598f8350485f2cf55daa04 |
class GregorianTutorialTimelineCreator(TutorialTimelineCreator): <NEW_LINE> <INDENT> def get_time_type(self): <NEW_LINE> <INDENT> from timelinelib.calendar.gregorian.timetype import GregorianTimeType <NEW_LINE> return GregorianTimeType() <NEW_LINE> <DEDENT> def get_start_end(self): <NEW_LINE> <INDENT> now = GregorianDa... | A Gregorian calendar, tutorial timeline. | 62598f8307f4c71912baeed6 |
class EntityResolutionError(BaseEntityException): <NEW_LINE> <INDENT> def __init__(self, message="Error resolving entity", entityReference=None): <NEW_LINE> <INDENT> super(EntityResolutionError, self).__init__(message, entityReference) | Thrown during @ref Entity resolution, if the
Entity is valid, but has no meaningful @ref primary_string, or it can't be
retrieved for some other reason. It is also used during version finalisation
and any other entity-based operations on a valid @ref entity_reference that
fail for some reason. | 62598f8323849d37ff850b4f |
class SkipRow(Exception): <NEW_LINE> <INDENT> pass | Raised when a problem with a row means it should be omitted from output | 62598f8330c21e258be9829c |
class Inversion(object): <NEW_LINE> <INDENT> def __init__(self, inverter): <NEW_LINE> <INDENT> self.inverter = inverter <NEW_LINE> <DEDENT> def __call__(self, inputs): <NEW_LINE> <INDENT> meas, target = inputs <NEW_LINE> inv = self.inverter(meas) <NEW_LINE> return inv, target | Inverse transform on (meas, target) tuples.
Inverts meas to image domain and returns (inv, target) pair.
Parameters
----------
inverter : callable
The inversion operation to use. | 62598f83d4950a0f3b110b7e |
class SyntaxData(syndata.SyntaxDataBase): <NEW_LINE> <INDENT> def __init__(self, langid): <NEW_LINE> <INDENT> syndata.SyntaxDataBase.__init__(self, langid) <NEW_LINE> self.SetLexer(stc.STC_LEX_CONTAINER) <NEW_LINE> self.RegisterFeature(synglob.FEATURE_STYLETEXT, StyleText) <NEW_LINE> <DEDENT> def GetKeywords(self): <NE... | SyntaxData object for Mako | 62598f83d99f1b3c44d05140 |
class LystoBackbone(HydrogenBond): <NEW_LINE> <INDENT> def __init__(self, model, rcutoff=3.2, *args, **kwds): <NEW_LINE> <INDENT> HydrogenBond.__init__(self, model, *args, **kwds) <NEW_LINE> listik1 = model.atom_lister('rat', rats=['LYSNZ']) <NEW_LINE> listik2 = model.atom_lister('name_O', listik=model.atom_lister('p_b... | Lysine nitrogen (donor) to backbone oxygen | 62598f8323e79379d538bf8d |
class RcPoint( object ): <NEW_LINE> <INDENT> def __init__( self, x, y ): <NEW_LINE> <INDENT> super( RcPoint, self ).__init__() <NEW_LINE> self.coord_x = x <NEW_LINE> self.coord_y = y | docstring for RcPoint | 62598f836fece00bbaccb41b |
class AssetModel( CreatableFromString, TimeTrackable, EditorTrackable, Named.NonUnique, WithConcurrentGetOrCreate ): <NEW_LINE> <INDENT> manufacturer = models.ForeignKey( AssetManufacturer, on_delete=models.PROTECT, blank=True, null=True) <NEW_LINE> category = models.ForeignKey( 'AssetCategory', null=True, blank=True, ... | Asset models describing hardware and contain standard information like
created at | 62598f83d99f1b3c44d05141 |
@final <NEW_LINE> class CognitiveModuleComplexityViolation(SimpleViolation): <NEW_LINE> <INDENT> error_template = 'Found module cognitive complexity that is too high: {0}' <NEW_LINE> code = 232 | Forbid modules with average cognitive complexity that is too high.
Reasoning:
Modules with lots of functions might hide cognitive complexity
inside many small and relatively simple functions.
Solution:
Rewrite your code to be simpler
or use several modules.
Configuration:
This rule is configurabl... | 62598f83fbf16365ca793b3d |
class RosslerMap: <NEW_LINE> <INDENT> def __init__(_, a=0.2, b=0.2, c=5.7, delta_t=1e-3): <NEW_LINE> <INDENT> _.a, _.b, _.c = a, b, c <NEW_LINE> _.delta_t = delta_t <NEW_LINE> <DEDENT> def v_eq(_, t=None, v=None): <NEW_LINE> <INDENT> x, y, z = v[0], v[1], v[2] <NEW_LINE> dot_x = -y - z <NEW_LINE> dot_y = x + _.a*y <NEW... | Rossler attractor
With a=0.2, b=0.2, and c=5.7 | 62598f8330c21e258be9829d |
class BookmarkDetail(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=255) <NEW_LINE> user = models.ForeignKey( settings.AUTH_USER_MODEL, on_delete=models.CASCADE ) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.name | Model for bookmark details | 62598f8376d4e153a661c6a6 |
class AccessDenied(Error): <NEW_LINE> <INDENT> pass | User does not have permission to perform the requested action. | 62598f8326238365f5fac602 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.