code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ImgModel(DeclarativeBase): <NEW_LINE> <INDENT> __tablename__ = "imgtable" <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> id_product = Column(Integer, ForeignKey('productable.id')) <NEW_LINE> id_site = Column(Integer, ForeignKey('sitetable.id')) <NEW_LINE> producturl = Column('producturl', String, nu... | Sqlalchemy ImgModel model
Crea la tabla imgtable
Relacion con sitetable campo id_site
Relacion con productable campo producturl | 62598f56462c4b4f79dbaecc |
class VerbExtension(object): <NEW_LINE> <INDENT> NAME = None <NEW_LINE> EXTENSION_POINT_VERSION = '0.1' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(VerbExtension, self).__init__() <NEW_LINE> satisfies_version(PLUGIN_SYSTEM_VERSION, '^0.1') <NEW_LINE> <DEDENT> def add_arguments(self, parser, cli_name): <NEW... | The extension point for 'msg' verb extensions.
The following properties must be defined:
* `NAME` (will be set to the entry point name)
The following methods must be defined:
* `main`
The following methods can be defined:
* `add_arguments` | 62598f56be8e80087fbbe523 |
class MOUSEINPUT(ctypes.Structure): <NEW_LINE> <INDENT> _fields_ = [ ('dx', ctypes.c_long), ('dy', ctypes.c_long), ('mouseData', ctypes.c_long), ('dwFlags', ctypes.c_long), ('time', ctypes.c_long), ('dwExtraInfo', ctypes.POINTER(ctypes.c_ulong)) ] | https://docs.microsoft.com/en-us/windows/desktop/api/winuser/ns-winuser-tagmouseinput
typedef struct tagMOUSEINPUT {
LONG dx;
LONG dy;
DWORD mouseData;
DWORD dwFlags;
DWORD time;
ULONG_PTR dwExtraInfo;
} MOUSEINPUT, *PMOUSEINPUT, *LPMOUSEINPUT; | 62598f56ff9c53063f519b1a |
class NavMessageFileV2: <NEW_LINE> <INDENT> def __init__(self, stream): <NEW_LINE> <INDENT> self.stream = stream <NEW_LINE> <DEDENT> def _skip_header(self): <NEW_LINE> <INDENT> while 1: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> line = next(self.stream) <NEW_LINE> if line[60:].rstrip() == 'END OF HEADER': <NEW_LINE> ... | Iterate over lines of the file and yield slot, epoch and frequency
number for each navigation message.
Parameters
----------
stream : file-like object
Returns
-------
generator iterator which yields tuple (slot, epoch, frequency_number),
where
slot : int
GLONASS slot number
epoch : datetime.datetime object
... | 62598f5656b00c62f0fb1d82 |
class WComboBox(QComboBox): <NEW_LINE> <INDENT> def addItems(self,datos): <NEW_LINE> <INDENT> for item in datos: <NEW_LINE> <INDENT> self.addItem(item) <NEW_LINE> <DEDENT> <DEDENT> def addItem(self,*lparm,**kwparm): <NEW_LINE> <INDENT> if kwparm: <NEW_LINE> <INDENT> super().addItem(*lparm,**kwparm) <NEW_LINE> <DEDENT> ... | Un intento para que los combos con valor interno y externo sean transparentes (lo mas posible)
He sobrecargado las add* y las insert* para que admitan cualquier tipo de valor
Ademas he creado dos metodos genericos currentValue y currentItemInfo para obtener los datos interno y todos respectivamente
He creado un metodo... | 62598f56925a0f43d25e74fe |
class HtbCanvasBase(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.InitCanvas() <NEW_LINE> <DEDENT> def InitCanvas(self): <NEW_LINE> <INDENT> self.canvas = rt.TCanvas('canvas', 'canvas', 1000, 1000) <NEW_LINE> <DEDENT> def ClearCanvas(self): <NEW_LINE> <INDENT> self.canvas.Clear() <NEW_LINE> ... | Base class for canvas | 62598f56a8ecb033258706ce |
class PHD2000(Pump): <NEW_LINE> <INDENT> def stop(self): <NEW_LINE> <INDENT> self.write('STP') <NEW_LINE> resp = self.read(5) <NEW_LINE> if resp[-1] == '*': <NEW_LINE> <INDENT> logging.info('%s: stopped',self.name) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> raise PumpError('%s: unexpected response to stop', self.nam... | Harvard PHD2000 pump object.
Inherits from Pump class, but needs its own class as it doesn't
stick to the Pump 11 protocol with commands to stop and set the
target volume. | 62598f5621a7993f00c65443 |
class Msg(object): <NEW_LINE> <INDENT> DRAW = "DRAW" <NEW_LINE> BLIT = "BLIT" <NEW_LINE> WORKING = "WORKING" <NEW_LINE> RESIZE_EVENT = "RESIZE" <NEW_LINE> MOUSE_PRESS_EVENT = "MOUSE_PRESS" <NEW_LINE> MOUSE_MOVE_EVENT = "MOUSE_MOVE" <NEW_LINE> MOUSE_RELEASE_EVENT = "MOUSE_RELEASE" <NEW_LINE> MOUSE_DOUBLE_CLICK_EVENT = "... | Messages sent between the local and remote canvases.
There is an identical class in `matplotlib_backend_remote` because we
don't want these two modules requiring one another | 62598f5676d4e153a661c0db |
class File(object): <NEW_LINE> <INDENT> def __init__(self, filepath="", postfield="", boundary_size=30): <NEW_LINE> <INDENT> self.__boundarySize = boundary_size <NEW_LINE> if filepath is not "": <NEW_LINE> <INDENT> self.__path = path.expanduser(path.normpath(filepath)) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self... | File object class | 62598f56bf627c535bcb094a |
class Window(QMainWindow): <NEW_LINE> <INDENT> def __init__(self, clock, message_source, *args, **kwargs): <NEW_LINE> <INDENT> super(Window, self).__init__(*args, **kwargs) <NEW_LINE> self.timer = QTimer() <NEW_LINE> self.clock_view = ClockView(clock, self.timer) <NEW_LINE> self.message_view = MessageView(clock, messag... | The main window of the application.
| 62598f56925a0f43d25e7500 |
class Commit(BaseCommit): <NEW_LINE> <INDENT> def _update_attributes(self, commit): <NEW_LINE> <INDENT> super(Commit, self)._update_attributes(commit) <NEW_LINE> self.author = self._get_attribute(commit, 'author', {}) <NEW_LINE> self._author_name = self._get_attribute(self.author, 'name') <NEW_LINE> self.committer = se... | The :class:`Commit <Commit>` object. This represents a commit made in a
repository.
See also: http://developer.github.com/v3/git/commits/ | 62598f56507cdc57c63a426c |
class ARTemplatePartitionsView(BikaListingView): <NEW_LINE> <INDENT> def __init__(self, context, request, fieldvalue, allow_edit): <NEW_LINE> <INDENT> BikaListingView.__init__(self, context, request) <NEW_LINE> self.context_actions = {} <NEW_LINE> self.contentFilter = {'review_state': 'impossible_state'} <NEW_LINE> sel... | bika listing to display Partition table for an ARTemplate.
| 62598f56be8e80087fbbe527 |
class TestNeighbor(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 testNeighbor(self): <NEW_LINE> <INDENT> pass | Neighbor unit test stubs | 62598f56796e427e5384dc63 |
class ClusterMemberError(Exception): <NEW_LINE> <INDENT> pass | Simple custom exception to be raised when a cluster determined by k-Means contains fewer data points than
the data points have dimensions.
In this case further processing is not possible because the covariance matrix of this cluster isnot invertible.
This case also suggests that the members of this cluster is most like... | 62598f5621a7993f00c65447 |
class AbstractActional(AbstractPollingLoop): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super().__init__(None, **kwargs) <NEW_LINE> self.comms_channel = None <NEW_LINE> self.polling_timeout = self.sample_frequency / 2 <NEW_LINE> <DEDENT> def set_scoreboard(self, scoreboard): <NEW_LINE> <INDEN... | Abstract class to take an action based on inputs.
The 'action' is probably via a subclass of :class:`AbstractOutput` and the inputs are probably
subclasses of :class:`AbstractSensor`.
Each Actional is instantiated in it's own Process (see multiprocessing.Process) and is
connected to the rest of the system by an insta... | 62598f56711fe17d825dfbc8 |
class VcfHeader: <NEW_LINE> <INDENT> def __init__(self, line): <NEW_LINE> <INDENT> line = re.split('<|>|"', line) <NEW_LINE> h_dict = {} <NEW_LINE> for i in re.split(',(?!\s)', line[1]): <NEW_LINE> <INDENT> h_dict.update({i.split('=')[0]: i.split('=')[1]}) <NEW_LINE> <DEDENT> self.meta = line[0][:-1].replace('#', '') <... | Meta info lines in vcf
| 62598f56507cdc57c63a426e |
class HasGenre(Edge): <NEW_LINE> <INDENT> label = 'has_genre' | Identify which Genre(s) a Movie has | 62598f564d74a7450cd58941 |
class AuxCoord(Coord): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) | A CF auxiliary coordinate. | 62598f56a8ecb033258706d3 |
class TestFileWalk: <NEW_LINE> <INDENT> def test_file_walk(self, testfs_fat_stable1): <NEW_LINE> <INDENT> for img_path in testfs_fat_stable1: <NEW_LINE> <INDENT> print("IMAGE:", img_path) <NEW_LINE> with open(img_path, 'rb') as img_stream: <NEW_LINE> <INDENT> fatfs = FileSlack(img_stream) <NEW_LINE> entry = fatfs.fatfs... | Test recursive file listing | 62598f56d164cc6175820451 |
class Resize(object): <NEW_LINE> <INDENT> def __init__(self, size, interpolation='BILINEAR'): <NEW_LINE> <INDENT> if isinstance(size, int): <NEW_LINE> <INDENT> self.size = (size,size) <NEW_LINE> <DEDENT> elif isinstance(size, collections.Iterable) and len(size) == 2: <NEW_LINE> <INDENT> if type(size) == list: <NEW_LINE... | Resize the input numpy ndarray to the given size.
Args:
size (sequence or int): Desired output size. If size is a sequence like
(h, w), output size will be matched to this. If size is an int,
smaller edge of the image will be matched to this number.
i.e, if height > width, then image will b... | 62598f568c3a8732951f5a31 |
class Post(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(User, related_name='posts') <NEW_LINE> topic = models.ForeignKey(Topic, related_name='posts') <NEW_LINE> body = models.TextField() <NEW_LINE> body_html = models.TextField(editable=False) <NEW_LINE> posted_at = models.DateTimeField(edit... | A post which forms part of a discussion. | 62598f56167d2b6e312b6453 |
class Mem(IntervalModule): <NEW_LINE> <INDENT> format = "{avail_mem} MB" <NEW_LINE> settings = ( ("format", "format string used for output."), ) <NEW_LINE> def run(self): <NEW_LINE> <INDENT> vm = virtual_memory() <NEW_LINE> used = vm.used - vm.cached <NEW_LINE> self.output = { "full_text": self.format.format( used_mem=... | Shows memory load
Available formatters:
* {avail_mem}
* {percent_used_mem}
* {used_mem}
* {total_mem}
Requires psutil (from PyPI) | 62598f565e10d32532ce3351 |
class LogoutHandler(BaseHandler): <NEW_LINE> <INDENT> @tornado.web.authenticated <NEW_LINE> def get(self): <NEW_LINE> <INDENT> self.clear_cookie('r_u_a') <NEW_LINE> self.clear_cookie('r_u_a_e') <NEW_LINE> self.record_log(content=u"用户登出:" + self.current_user.username) <NEW_LINE> return self.redirect('/') | 管理成员账号登出 | 62598f564d74a7450cd58943 |
class Portfolio: <NEW_LINE> <INDENT> def __init__(self, dt, holdings): <NEW_LINE> <INDENT> self.dt = dt <NEW_LINE> self.holdings = holdings <NEW_LINE> <DEDENT> def __getitem__(self, arg): <NEW_LINE> <INDENT> if arg in self.__dict__.keys(): <NEW_LINE> <INDENT> return self.__dict__[arg] <NEW_LINE> <DEDENT> elif arg == tr... | snapshot of Portfolio for date dt | 62598f56ff9c53063f519b24 |
class FileSystem(object): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> @abc.abstractmethod <NEW_LINE> def exists(self, path): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def remove(self, path, recursive=True): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def mkdir(self, pat... | File system abstraction class | 62598f56d164cc6175820455 |
class InvalidPointCutError(ValueError): <NEW_LINE> <INDENT> pass | object of type PointCut expected, but something else given | 62598f56167d2b6e312b6457 |
class SearchFormMeta(type(forms.Form)): <NEW_LINE> <INDENT> def __new__(mcls, clsname, bases, dict_): <NEW_LINE> <INDENT> if 'Meta' in dict_: <NEW_LINE> <INDENT> fields = mcls._setup_fields(dict_['Meta']) <NEW_LINE> dict_, prev = fields, dict_ <NEW_LINE> dict_.update(prev) <NEW_LINE> for k, v in dict_.items(): <NEW_LIN... | Metaclass for search form. | 62598f5676d4e153a661c0e7 |
class InvalidProviderTokenException(APNSProgrammingException): <NEW_LINE> <INDENT> pass | The provider token is not valid or the token signature could not be verified. | 62598f56167d2b6e312b6459 |
class lacp(pcs.Packet): <NEW_LINE> <INDENT> _layout = pcs.Layout() <NEW_LINE> _map = None <NEW_LINE> _descr = None <NEW_LINE> def __init__(self, bytes = None, timestamp = None, **kv): <NEW_LINE> <INDENT> tlvs = pcs.OptionListField("tlvs") <NEW_LINE> pcs.Packet.__init__(self, [ tlvs ], bytes = bytes, **kv) <NEW_LINE> se... | IEEE 802.3ad Slow Protocols -- LACP | 62598f56d164cc6175820459 |
class Input(Layer): <NEW_LINE> <INDENT> def __init__(self, data, shape: tuple): <NEW_LINE> <INDENT> super().__init__('Input', shape, activation=None, last=False) <NEW_LINE> self.A = data <NEW_LINE> <DEDENT> def initialize(self, previous_shape): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_shape(self): <NEW_LINE... | Input layer. Child of the Layer class.
__init__ requires the full layer shape,
because it is the first layer in the Network
and the next layer depends on its shape.
:param data: Input data (expected to be normalized and vectorized).
:param shape: Shape of the data (tuple of ints). | 62598f566fece00bbaccae6a |
class CrossROI(HandleBasedROI, items.LineMixIn): <NEW_LINE> <INDENT> ICON = 'add-shape-cross' <NEW_LINE> NAME = 'cross marker' <NEW_LINE> SHORT_NAME = "cross" <NEW_LINE> _plotShape = "point" <NEW_LINE> def __init__(self, parent=None): <NEW_LINE> <INDENT> HandleBasedROI.__init__(self, parent=parent) <NEW_LINE> items.Lin... | A ROI identifying a point in a 2D plot and displayed as a cross
| 62598f56796e427e5384dc6d |
@MATCH_COST.register_module() <NEW_LINE> class IoUCost(object): <NEW_LINE> <INDENT> def __init__(self, iou_mode='giou', weight=1.): <NEW_LINE> <INDENT> self.weight = weight <NEW_LINE> self.iou_mode = iou_mode <NEW_LINE> <DEDENT> def __call__(self, bboxes, gt_bboxes): <NEW_LINE> <INDENT> overlaps = bbox_overlaps( bboxes... | IoUCost.
Args:
iou_mode (str, optional): iou mode such as 'iou' | 'giou'
weight (int | float, optional): loss weight
Examples:
>>> from mmdet.core.bbox.match_costs.match_cost import IoUCost
>>> import torch
>>> self = IoUCost()
>>> bboxes = torch.FloatTensor([[1,1, 2, 2], [2, 2, 3, 4]])
>>... | 62598f56507cdc57c63a4278 |
class BaseTestCase(object): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(BaseTestCase, self).setUp() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> CONF.reset() <NEW_LINE> super(BaseTestCase, self).tearDown() <NEW_LINE> <DEDENT> def config(self, **kw): <NEW_LINE> <INDENT> for k, v in kw.i... | Basic test cases for glance image stores.
To run these tests on a new store X, create a test case like
class TestXStore(BaseTestCase, testtools.TestCase):
(MULTIPLE INHERITANCE REQUIRED)
def get_store(...):
(STORE SPECIFIC)
def stash_image(...):
(STORE SPECIFIC) | 62598f5615fb5d323ce7e206 |
class Post(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=200) <NEW_LINE> content = models.TextField() <NEW_LINE> created_date = models.DateTimeField(auto_now=True) <NEW_LINE> published_date = models.DateTimeField(blank=True, null=True, default=timezone.now) <NEW_LINE> views = models.IntegerFiel... | A single Blog post | 62598f56be8e80087fbbe533 |
class Tenant(object): <NEW_LINE> <INDENT> def __init__(self, tenant_id, token, event_producers=None, _id=None, tenant_name=None): <NEW_LINE> <INDENT> if event_producers is None: <NEW_LINE> <INDENT> event_producers = list() <NEW_LINE> <DEDENT> if tenant_name is None: <NEW_LINE> <INDENT> tenant_name = tenant_id <NEW_LINE... | Tenants are users of the environments being monitored for
application events. | 62598f56ff9c53063f519b2a |
class InstrumentConfigurationVisitor(Visitor): <NEW_LINE> <INDENT> def __init__(self) -> None: <NEW_LINE> <INDENT> self.instruments: List[Instrument] = [] <NEW_LINE> <DEDENT> def visit(self, element: Union[InstrumentAdapter, InstrumentConfiguration]) -> None: <NEW_LINE> <INDENT> if isinstance(element, InstrumentAdapter... | Implementation of Visitor interface to visit InstrumentConfiguration. | 62598f5656b00c62f0fb1d92 |
class Page(object): <NEW_LINE> <INDENT> def __init__(self, item_count, page_index=1, page_size=10): <NEW_LINE> <INDENT> self.item_count = item_count <NEW_LINE> self.page_size = page_size <NEW_LINE> self.page_count = item_count // page_size + (1 if item_count % page_size > 0 else 0) <NEW_LINE> if (item_count == 0) or (p... | Page object for display pages | 62598f56796e427e5384dc70 |
class BasketDetailViewSet(GenericAPIView): <NEW_LINE> <INDENT> permission_classes = [IsAuthenticated, ] <NEW_LINE> serializer_class = AddToBasketSerializer <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> request_user = self.request.user <NEW_LINE> basket = get_object_or_404(Basket, pk=self.kwargs.get('pk')) <NEW... | Управление определенной корзиной | 62598f56d164cc617582045d |
class AbelianLieConformalAlgebra(GradedLieConformalAlgebra): <NEW_LINE> <INDENT> def __init__(self, R, ngens=1, weights=None, parity=None, names=None, index_set=None): <NEW_LINE> <INDENT> if (names is None) and (index_set is None): <NEW_LINE> <INDENT> names = 'a' <NEW_LINE> self._latex_names = tuple(r'a_{%d}' % i for i... | The Abelian Lie conformal algebra.
INPUT:
- ``R`` -- a commutative ring; the base ring of this Lie
conformal algebra
- ``ngens`` -- a positive integer (default: ``1``); the number
of generators of this Lie conformal algebra
- ``weights`` -- a list of positive rational numbers (default:
``1`` for each
generato... | 62598f56711fe17d825dfbd5 |
class ExtendedInfo(base.Component): <NEW_LINE> <INDENT> locator_cls = locator.ExtendedInfo <NEW_LINE> def __init__(self, driver): <NEW_LINE> <INDENT> super(ExtendedInfo, self).__init__(driver) <NEW_LINE> self.is_mapped = None <NEW_LINE> self.button_map = None <NEW_LINE> self.title = base.Label(driver, self.locator_cls.... | Model representing an extended info box that allows the object to be
mapped | 62598f56eab8aa0e5d30b257 |
class Meta: <NEW_LINE> <INDENT> icon = 'title' <NEW_LINE> template = 'common/_cta.html' | Class specific attributes. | 62598f56d18da76e235b6ba6 |
class AtomActor(BaseActor): <NEW_LINE> <INDENT> def __call__(self, data): <NEW_LINE> <INDENT> iou_pred = self.net(data['train_images'], data['test_images'], data['train_anno'], data['test_proposals']) <NEW_LINE> iou_pred = iou_pred.view(-1, iou_pred.shape[2]) <NEW_LINE> iou_gt = data['proposal_iou'].view(-1, data['prop... | Actor for training the IoU-Net in ATOM | 62598f56bf627c535bcb095c |
class LastLogger(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._last_logs = [] <NEW_LINE> <DEDENT> @property <NEW_LINE> def last_logs(self): <NEW_LINE> <INDENT> return self._last_logs <NEW_LINE> <DEDENT> @last_logs.setter <NEW_LINE> def last_logs(self, value): <NEW_LINE> <INDENT> self._last_... | provide method for getting last log | 62598f56d164cc617582045f |
class Solution: <NEW_LINE> <INDENT> def nextGreaterElements(self, nums): <NEW_LINE> <INDENT> flattened = nums + nums ; <NEW_LINE> stack = [] <NEW_LINE> nextGreater = {} <NEW_LINE> for i in range(len(flattened)): <NEW_LINE> <INDENT> while stack and flattened [stack[-1] ] < flattened[i]: <NEW_LINE> <INDENT> currentIdx = ... | @param nums: an array
@return: the Next Greater Number for every element | 62598f56507cdc57c63a427e |
class Temp(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'temp' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> mark = db.Column(db.String) <NEW_LINE> identify = db.Column(db.String) <NEW_LINE> content = db.Column(db.Text) <NEW_LINE> date = db.Column(db.DateTime(), default=datetime.utcnow) <NEW_LINE... | 缓存表 缓存字符串 | 62598f568c3a8732951f5a40 |
class ControllerException(Exception): <NEW_LINE> <INDENT> pass | Something went wrong with the SDN controller | 62598f56ff9c53063f519b30 |
class LibBadWordsIsSuspiciousUsernameTestCase(CubaneTestCase): <NEW_LINE> <INDENT> def test_suspicious_usernames(self): <NEW_LINE> <INDENT> self.assertTrue(is_suspicious_username('@riot.')) <NEW_LINE> self.assertTrue(is_suspicious_username('foo_bar_')) <NEW_LINE> self.assertTrue(is_suspicious_username('foo.bar.')) <NEW... | cubane.lib.bad_words.is_suspicious_username() | 62598f566fece00bbaccae72 |
class RegionNotKnownError(Exception): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> msg = ('The Amazon Web Services (AWS) region was not set and could ' 'not be determined.') <NEW_LINE> super().__init__(msg) | Raised when the Amazon Web Services (AWS) region is not known. | 62598f5621a7993f00c65459 |
class TFLiteSavedModelConverterV2(TFLiteConverterBaseV2): <NEW_LINE> <INDENT> def __init__(self, saved_model_dir, saved_model_tags=None, saved_model_exported_names=None, trackable_obj=None): <NEW_LINE> <INDENT> super(TFLiteSavedModelConverterV2, self).__init__() <NEW_LINE> self.saved_model_dir = saved_model_dir <NEW_LI... | Converts the given SavedModel into TensorFlow Lite model.
Attributes:
saved_model_dir: Directory of the SavedModel. | 62598f56d164cc6175820463 |
class TestBinaryExpr(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.lineNumber = randint(1, 10) <NEW_LINE> self.value1 = randint(1, 100) <NEW_LINE> self.value2 = randint(1, 100) <NEW_LINE> self.opText = '+' <NEW_LINE> self.left = ASTLeaf(NumToken(self.lineNumber, self.value1)) <NEW_LI... | Test case docstring. | 62598f56eab8aa0e5d30b25b |
class ImagesDownloader(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, gui, game): <NEW_LINE> <INDENT> threading.Thread.__init__(self, name = "ImagesDownloader") <NEW_LINE> self.fullinfo = game[GAME_FULLINFO] <NEW_LINE> self.release_number = game[GAME_RELEASE_NUMBER] <NEW_LINE> self.filename1 = game[GAME_IMG1... | Download 'game' images and show them (if possible).
Take care of local path's creation when needed. | 62598f56925a0f43d25e7516 |
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>... | Serializer for users object | 62598f56be8e80087fbbe53d |
class Group(models.Model): <NEW_LINE> <INDENT> name = models.CharField(_('name'), max_length=80, unique=True) <NEW_LINE> permissions = models.ManyToManyField(Permission, verbose_name=_('permissions'), blank=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> verbose_name = _('group') <NEW_LINE> verbose_name_plural = _('gr... | Groups are a generic way of categorizing users to apply permissions, or some other label, to those users.
A user can belong to any number of groups.
A user in a group automatically has all the permissions granted to that group.
Beyond permissions, groups are a convenient way to categorize users to apply some label,... | 62598f565166f23b2e2428c2 |
class Solution: <NEW_LINE> <INDENT> def findFirstBadVersion(self, n): <NEW_LINE> <INDENT> if n == 0 or n is None: <NEW_LINE> <INDENT> return -1 <NEW_LINE> <DEDENT> start = 1 <NEW_LINE> end = n <NEW_LINE> while start + 1 < end: <NEW_LINE> <INDENT> mid = start + (end - start) // 2 <NEW_LINE> if SVNRepo.isBadVersion(mid)... | @param n: An integer
@return: An integer which is the first bad version. | 62598f5615fb5d323ce7e211 |
class OnboardingState(object): <NEW_LINE> <INDENT> __slots__ = ( '_stateNum', ) <NEW_LINE> @property <NEW_LINE> def stateNum(self): <NEW_LINE> <INDENT> return self._stateNum <NEW_LINE> <DEDENT> @stateNum.setter <NEW_LINE> def stateNum(self, value): <NEW_LINE> <INDENT> self._stateNum = msgbuffers.validate_integer( 'Onbo... | Generated message-passing message. | 62598f5621a7993f00c6545d |
class GAState: <NEW_LINE> <INDENT> def __init__(self, genes): <NEW_LINE> <INDENT> self.genes = genes <NEW_LINE> <DEDENT> def mate(self, other): <NEW_LINE> <INDENT> c = random.randrange(len(self.genes)) <NEW_LINE> return self.__class__(self.genes[:c] + other.genes[c:]) <NEW_LINE> <DEDENT> def mutate(self): <NEW_LINE> <I... | Abstract class for individuals in a genetic search. | 62598f56a8ecb033258706e9 |
class Scatter(Selection2DExpr, Chart): <NEW_LINE> <INDENT> group = param.String(default='Scatter', constant=True) | Scatter is a Chart element representing a set of points in a 1D
coordinate system where the key dimension maps to the points
location along the x-axis while the first value dimension
represents the location of the point along the y-axis. | 62598f5615fb5d323ce7e212 |
class Solution: <NEW_LINE> <INDENT> def isReflected(self, points): <NEW_LINE> <INDENT> pointsByY = {} <NEW_LINE> for p in points: <NEW_LINE> <INDENT> if p[1] not in pointsByY: <NEW_LINE> <INDENT> pointsByY[p[1]] = [] <NEW_LINE> <DEDENT> pointsByY[p[1]].append(p[0]) <NEW_LINE> <DEDENT> reflect = None <NEW_LINE> for pair... | @param points: n points on a 2D plane
@return: if there is such a line parallel to y-axis that reflect the given points | 62598f5621a7993f00c6545f |
class ThirdPartyOAuthTestMixinGoogle(object): <NEW_LINE> <INDENT> BACKEND = "google-oauth2" <NEW_LINE> USER_URL = "https://www.googleapis.com/plus/v1/people/me" <NEW_LINE> UID_FIELD = "email" | Tests oauth with the Google backend | 62598f56796e427e5384dc7c |
class BaseAddPhotoView(APIView): <NEW_LINE> <INDENT> model = None <NEW_LINE> def post(self, request): <NEW_LINE> <INDENT> assert self.model is not None <NEW_LINE> user = request.user <NEW_LINE> object_id_name = self._get_object_id_name() <NEW_LINE> object_id = request.data.get(object_id_name, None) <NEW_LINE> if object... | The model has to have a 'photo_urls' ArrayField() attribute to which the url it's appended. | 62598f566fece00bbaccae78 |
class ActualizarTipoEventoEvaluacionExternaView(LoginRequiredMixin, GroupRequiredMixin, UserFormKwargsMixin, UpdateView): <NEW_LINE> <INDENT> model = TipoEventoEvaluacionExterna <NEW_LINE> form_class = ActualizarTipoEventoEvaluacionExternaForm <NEW_LINE> template_name = 'administracion/formulario_tipo_evento_evaluacion... | Muestra el formulario para actualizar una TipoEvento especifica. | 62598f57be8e80087fbbe541 |
class FetchFailedException(IOError): <NEW_LINE> <INDENT> pass | Exception that is thrown when fetching fails. | 62598f57ff9c53063f519b38 |
class PQEquipmentSinglePhase(EquipmentSinglePhase): <NEW_LINE> <INDENT> def __init__(self, mrid: str, name: str, phase: str, controllable: bool, p: Union[int, float], q: Union[int, float], rated_s: Union[int, float], operable: bool = True): <NEW_LINE> <INDENT> self.log = logging.getLogger(self.__class__.__name__) <NEW_... | ABSTRACT class for representing equipment whose state includes
active power (p) and reactive power (q), and the magnitude of the
apparent power must not exceed some rating. | 62598f5715fb5d323ce7e214 |
class Tanabe65MNProjectedToStandard16(Tanabe65MNModel): <NEW_LINE> <INDENT> def __init__(self,humanModel): <NEW_LINE> <INDENT> bm = humanModel.bodyDataModel <NEW_LINE> humanParam = PersonalizedTanabe17SegmentModel(gender=bm.gender,height=bm.height, weight=bm.weight,a... | An interface to the Tanabe16MN model that solves the system on the standard body and projects the results to
the given mesh | 62598f5776d4e153a661c0f9 |
class DOMHTMLFullCreditsParser(DOMParserBase): <NEW_LINE> <INDENT> kind = 'full credits' <NEW_LINE> extractors = [ Extractor( label='cast', path="//table[@class='cast_list']//tr[@class='odd' or @class='even']", attrs=Attribute( key="cast", multi=True, path={ 'person': ".//text()", 'link': "td[2]/a/@href", 'roleID': "td... | Parser for the "full credits" (series cast section) page of a given movie.
The page should be provided as a string, as taken from
the akas.imdb.com server. The final result will be a
dictionary, with a key for every relevant section.
Example:
osparser = DOMHTMLFullCreditsParser()
result = osparser.parse(offic... | 62598f57925a0f43d25e751e |
class BasicAuthentication(Authentication): <NEW_LINE> <INDENT> def __init__(self, backend=None, realm='django-tastypie', **kwargs): <NEW_LINE> <INDENT> super(BasicAuthentication, self).__init__(**kwargs) <NEW_LINE> self.backend = backend <NEW_LINE> self.realm = realm <NEW_LINE> <DEDENT> def _unauthorized(self): <NEW_LI... | Handles HTTP Basic auth against a specific auth backend if provided,
or against all configured authentication backends using the
``authenticate`` method from ``django.contrib.auth``.
Optional keyword arguments:
``backend``
If specified, use a specific ``django.contrib.auth`` backend instead
of checking all ba... | 62598f57796e427e5384dc80 |
class EventDetail(ResourceDetail): <NEW_LINE> <INDENT> def before_get(self, args, kwargs): <NEW_LINE> <INDENT> kwargs = get_id(kwargs) <NEW_LINE> if 'Authorization' in request.headers and has_access('is_coorganizer', event_id=kwargs['id']): <NEW_LINE> <INDENT> self.schema = EventSchema <NEW_LINE> <DEDENT> else: <NEW_LI... | EventDetail class for EventSchema | 62598f576fece00bbaccae7c |
class TestStringParse(unittest.TestCase): <NEW_LINE> <INDENT> def test_filename_length_zero(self): <NEW_LINE> <INDENT> values = ('', 'a') <NEW_LINE> self.assertEqual(parse_string(*values), False) <NEW_LINE> <DEDENT> def test_filename_length_less_than_pattern(self): <NEW_LINE> <INDENT> values = ('a', 'ab') <NEW_LINE> se... | test some use cases | 62598f5756b00c62f0fb1da3 |
class ResetCmd(Command): <NEW_LINE> <INDENT> def __init__(self, monitor): <NEW_LINE> <INDENT> super().__init__("reset") <NEW_LINE> self.monitor = monitor <NEW_LINE> self.peer = monitor.peer <NEW_LINE> <DEDENT> def _execute(self, msg_arr): <NEW_LINE> <INDENT> if msg_arr == []: <NEW_LINE> <INDENT> for each in self.peer.c... | ResetCmd
reset specific or every peer's status in monitor's list.
Usage in prompt: monitor reset all | 62598f57eab8aa0e5d30b265 |
class JsonRpcProxy: <NEW_LINE> <INDENT> def __init__(self, host): <NEW_LINE> <INDENT> self.host = host <NEW_LINE> <DEDENT> def __getattr__(self, *args): <NEW_LINE> <INDENT> host = self.host <NEW_LINE> method = args[0] <NEW_LINE> def jsonRpcFunction(**kwargs): <NEW_LINE> <INDENT> jsonRpcRequest = { 'jsonrpc': '2.0', 'id... | Wraps function calls to JSON-RPC calls to the host | 62598f575166f23b2e2428ca |
class URIBaseModelSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> uri = serializers.SerializerMethodField(read_only=True) <NEW_LINE> def get_uri(self, obj): <NEW_LINE> <INDENT> obj_url = obj.get_absolute_url() <NEW_LINE> context = self.context.get('request') <NEW_LINE> if context: <NEW_LINE> <INDENT> retur... | Base Serializer returning the URI of the object from the model's
get_absolute_url field (if set up) | 62598f57ff9c53063f519b3e |
class UpgradeDBInstanceResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.DealIds = None <NEW_LINE> self.AsyncRequestId = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.DealIds = params.get("DealIds") <NEW_LINE> s... | UpgradeDBInstance返回参数结构体
| 62598f57a8ecb033258706f1 |
class BlobType(Type, MixinLobType): <NEW_LINE> <INDENT> type_code = type_codes.BLOB | BLOB type class | 62598f57d18da76e235b6bae |
@run_only_on('sat') <NEW_LINE> @ddt <NEW_LINE> class ProductUpdateTestCase(APITestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.product_n = entities.Product( id=entities.Product().create_json()['id'] ) <NEW_LINE> <DEDENT> @data( {u'name': gen_string('alphanumeric', rand... | Tests for updating a product. | 62598f5715fb5d323ce7e21d |
class ContentTypeRegistryXMLAdapter(XMLAdapterBase): <NEW_LINE> <INDENT> adapts(IContentTypeRegistry, ISetupEnviron) <NEW_LINE> _LOGGER_ID = 'contenttypes' <NEW_LINE> name = 'contenttyperegistry' <NEW_LINE> def _exportNode(self): <NEW_LINE> <INDENT> node = self._getObjectNode('object') <NEW_LINE> node.appendChild(self.... | XML im- and exporter for ContentTypeRegistry.
| 62598f575e10d32532ce3360 |
class DNSException(Ice.LocalException): <NEW_LINE> <INDENT> def __init__(self, error=0, host=''): <NEW_LINE> <INDENT> self.error = error <NEW_LINE> self.host = host <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return IcePy.stringifyException(self) <NEW_LINE> <DEDENT> __repr__ = __str__ <NEW_LINE> _ice_nam... | This exception indicates a DNS problem. For details on the cause,
DNSException#error should be inspected. | 62598f57d18da76e235b6baf |
class MiddlewareFactory(providers.Factory): <NEW_LINE> <INDENT> pass | Aiohttp middleware factory provider. | 62598f57d164cc6175820473 |
class PluginManager(BaseManager): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.conf_dict = {} <NEW_LINE> self.plugin_dict = collections.OrderedDict() <NEW_LINE> with open(join(dirname(abspath(__file__)), "plugin.conf"), "r", encoding="utf-8") as f: <NEW_LINE> <INDENT> self.conf_dict = json.load(f) <... | 插件管理服务类 | 62598f57bf627c535bcb0971 |
class AdvancedPublishModuleToHiveTest(HiveTest): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def smvAppInitArgs(cls): <NEW_LINE> <INDENT> return super(AdvancedPublishModuleToHiveTest, cls).smvAppInitArgs() + ['--publish-hive', '-m', "stage.modules.M", "stage.modules.MAdv"] <NEW_LINE> <DEDENT> def test_publis... | Use the advanced hive publish option of overriding the publishHiveSql method
in a module to overwrite contents of an existing module. | 62598f57a8ecb033258706f5 |
class Stroke: <NEW_LINE> <INDENT> LEFT_TO_RIGHT = 1 <NEW_LINE> DOWN_RIGHT = 2 <NEW_LINE> DOWN = 3 <NEW_LINE> DOWN_LEFT = 4 <NEW_LINE> RIGHT_TO_LEFT = 5 <NEW_LINE> UP_LEFT = 6 <NEW_LINE> UP = 7 <NEW_LINE> UP_RIGHT = 8 | Container of stroke attributes
direction int(1-8)
Stroke direction encoded as number.
pause boolean
Should there be a short pause after the stroke animation? (used for
building complex strokes from primitives)
radical boolean
Is this stroke a part of the radical?
points List of tuples (x,y), 0 <= x,y <= ... | 62598f578c3a8732951f5a52 |
class SshArchiver(Archiver): <NEW_LINE> <INDENT> def start(self): <NEW_LINE> <INDENT> self.ssh_client = SSHClient() <NEW_LINE> self.ssh_client.set_missing_host_key_policy(WarningPolicy()) <NEW_LINE> self.ssh_client.connect( self.target.host, pkey=self.target.ssh_credentials.get_pkey()) <NEW_LINE> self.sftp_client = SFT... | Archives artifacts using ssh. | 62598f574d74a7450cd58953 |
class Manipulator(Body): <NEW_LINE> <INDENT> def __init__(self, manipulator, pos=None, rpy=None, pose=None, color=None, visible=True, shape=None, friction=None): <NEW_LINE> <INDENT> super(Manipulator, self).__init__( manipulator, pos=pos, rpy=rpy, pose=pose, color=color, visible=visible) <NEW_LINE> self.end_effector = ... | Manipulators are special bodies with an end-effector property.
Parameters
----------
manipulator : openravepy.KinBody
OpenRAVE manipulator object.
pos : array, shape=(3,), optional
Initial position in inertial frame.
rpy : array, shape=(3,), optional
Initial orientation in inertial frame.
pose : array, sha... | 62598f5776d4e153a661c105 |
class ReshapePop(Pop): <NEW_LINE> <INDENT> def __init__(self, shape, **kwargs): <NEW_LINE> <INDENT> super(ReshapePop, self).__init__(1,1, **kwargs) <NEW_LINE> shape = tuple(shape) <NEW_LINE> for s in shape: <NEW_LINE> <INDENT> if isinstance(s, int): <NEW_LINE> <INDENT> if s == 0 or s < - 1: <NEW_LINE> <INDENT> raise Va... | A layer reshaping its input tensor to another tensor of the same total
number of elements.
:parameters:
- incoming : a :class:`Layer` instance or a tuple
the layer feeding into this layer, or the expected input shape
- shape : tuple
The target shape specification. Any of its elements can be `[... | 62598f57507cdc57c63a4295 |
class User(UserMixin, db.Model): <NEW_LINE> <INDENT> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> username = db.Column(db.String(30), unique=True) <NEW_LINE> password = db.Column(db.Text) | User data stored in the database | 62598f574d74a7450cd58954 |
class DotaBetsAnalytics: <NEW_LINE> <INDENT> def __init__(self, graph: nx.DiGraph=None): <NEW_LINE> <INDENT> self.graph = graph <NEW_LINE> self.matches_matrix = nx.adjacency_matrix(graph, weight='matches') <NEW_LINE> self.winrate_matrix = nx.adjacency_matrix(graph, weight='weight') <NEW_LINE> self.teams = graph.nodes()... | Class with analytics methods. | 62598f578c3a8732951f5a56 |
class MeanIoU: <NEW_LINE> <INDENT> def __init__(self, skip_channels=(), ignore_index=None): <NEW_LINE> <INDENT> self.ignore_index = ignore_index <NEW_LINE> self.skip_channels = skip_channels <NEW_LINE> <DEDENT> def __call__(self, input, target): <NEW_LINE> <INDENT> n_classes = input.size()[1] <NEW_LINE> if target.dim()... | Computes IoU for each class separately and then averages over all classes. | 62598f575166f23b2e2428d4 |
class Integrity(Plugin): <NEW_LINE> <INDENT> spec = ('file', { 'sha1_hash': six.text_type, 'size': int, 'user': six.text_type, 'group': six.text_type, 'permissions': six.text_type, }) <NEW_LINE> is_slow = True <NEW_LINE> def prepare(self, settings): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> def get_files_to_c... | Tracks the integrity of system files by checking their owner, permissions
and checksum hashes. | 62598f5715fb5d323ce7e223 |
class PlaceBook(BaseModel): <NEW_LINE> <INDENT> place = ForeignKeyField(Place) <NEW_LINE> user = ForeignKeyField(User, related_name = "places_booked") <NEW_LINE> is_validated = BooleanField(default = False) <NEW_LINE> date_start = DateTimeField(null = False) <NEW_LINE> number_nights = IntegerField(default = 1) <NEW_LIN... | Definition of PlaceBook Model | 62598f5776d4e153a661c107 |
class TLSMDAnalysis(object): <NEW_LINE> <INDENT> def __init__(self, struct = None, struct_file_path = None, struct_file_object = None, struct2_file_path = None, struct2_chain_id = None, sel_chain_ids = None): <NEW_LINE> <INDENT> conf.globalconf.prnt() <NEW_LINE> self.struct2_file_path = struct2_fi... | Central object for a whole-structure TLS analysis.
| 62598f57796e427e5384dc8c |
class EnumArrays( DictSchema ): <NEW_LINE> <INDENT> class just_symbol( _SchemaEnumMaker( enum_value_to_name={ ">=": "GREATER_THAN_EQUALS", "$": "DOLLAR", } ), StrSchema ): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> @property <NEW_LINE> def GREATER_THAN_EQUALS(cls): <NEW_LINE> <INDENT> return cls._enum_by_value[">="]("... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 62598f57462c4b4f79dbaefa |
class RedisLiteServerStartError(Exception): <NEW_LINE> <INDENT> pass | Redislite redis-server start error | 62598f57d164cc6175820479 |
class TestBasicScalaAPI(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> local_simple_http_server = ThreadClass() <NEW_LINE> local_simple_http_server.deamon = False <NEW_LINE> local_simple_http_server.start() <NEW_LINE> <DEDENT> def test_basic_connection(self): <NEW_LINE> <INDENT> result = c... | This will check for basic function of the Scala API.
It's only check that the function will send some date. | 62598f575166f23b2e2428d6 |
class MissManners: <NEW_LINE> <INDENT> def __init__(self, obj): <NEW_LINE> <INDENT> self.obj = obj <NEW_LINE> <DEDENT> def ask(self, message, *args): <NEW_LINE> <INDENT> magic_word = 'please ' <NEW_LINE> if not message.startswith(magic_word): <NEW_LINE> <INDENT> return 'You must learn to say please first.' <NEW_LINE> <... | A container class that only forwards messages that say please.
>>> v = VendingMachine('teaspoon', 10)
>>> v.restock(2)
'Current teaspoon stock: 2'
>>> m = MissManners(v)
>>> m.ask('vend')
'You must learn to say please first.'
>>> m.ask('please vend')
'You must deposit $10 more.'
>>> m.ask('please deposit', 20)
'Curre... | 62598f576fece00bbaccae8a |
class FSMLightsUnittest(TestCase): <NEW_LINE> <INDENT> def test_initial_state(self): <NEW_LINE> <INDENT> fsm = LightFSM() <NEW_LINE> self.assertEqual(fsm.current_state.name, 'OFF') <NEW_LINE> <DEDENT> def test_turn_on(self): <NEW_LINE> <INDENT> fsm = LightFSM() <NEW_LINE> subsys = MockLightSubsystem("Lights Unittest") ... | Unittest for the Lights FSM.
Inputs will be tested for the correct state transitions | 62598f579b70327d1c57e2a5 |
class TbUsersleepfeatureSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> latelymaintentime = serializers.DateTimeField('%Y-%m-%d %H:%M:%S') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = TbUsersleepfeature <NEW_LINE> fields = ( 'sleepfeatureid', 'airhumidity', 'ambienttemperature', 'ambientnoise', 'bedt... | 用户睡眠特征信息(包括睡眠环境:温度、湿度、噪声情况等) | 62598f57a8ecb033258706fd |
class ForwardRef: <NEW_LINE> <INDENT> __slots__ = ('__forward_arg__', '__forward_code__', '__forward_evaluated__', '__forward_value__', '__forward_is_argument__') <NEW_LINE> def __init__(self, arg, is_argument=True): <NEW_LINE> <INDENT> if not isinstance(arg, str): <NEW_LINE> <INDENT> raise TypeError(f"Forward referenc... | Internal wrapper to hold a forward reference. | 62598f5715fb5d323ce7e227 |
class GetSmsAmountInfoRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.License = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.License = params.get("License") | GetSmsAmountInfo请求参数结构体
| 62598f576fece00bbaccae8c |
class EIDASGetEidasLinkException(Exception): <NEW_LINE> <INDENT> pass | Error raised when the server endpoint returned an error on an eidas link request | 62598f579b70327d1c57e2a7 |
class PullFromShoppingCartTablesTask(DatabaseImportMixin, OverwriteOutputMixin, luigi.WrapperTask): <NEW_LINE> <INDENT> def requires(self): <NEW_LINE> <INDENT> kwargs = { 'destination': self.destination, 'credentials': self.credentials, 'num_mappers': self.num_mappers, 'verbose': self.verbose, 'import_date': self.impor... | Imports a set of shopping cart database tables from an external LMS RDBMS into a destination directory. | 62598f57bf627c535bcb0979 |
class OuterSerializer(serializers.Serializer): <NEW_LINE> <INDENT> state = InnerSerializer(required=True) | The top level of a state document. This serializer should be used to
validate the 'unwrapped' messages from whatever broker library is being
used.
For example, in IBM messages this will actually be wrapped in a message like
this:
.. code-block:: python
{
"category": "event",
"d": {
"s... | 62598f57711fe17d825dfbf4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.