code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class MetacategorieCreateView(CreateView): <NEW_LINE> <INDENT> model = Categorie <NEW_LINE> template_name = 'create.html' <NEW_LINE> fields = ['categorie'] <NEW_LINE> success_url = reverse_lazy('administration') <NEW_LINE> def form_valid(self, form): <NEW_LINE> <INDENT> user = self.request.user <NEW_LINE> form.instance... | Création d'une nouvelle métacatégorie | 62598fd055399d3f05626973 |
class Cuisine(BaseModel): <NEW_LINE> <INDENT> name = models.CharField(max_length=255) <NEW_LINE> classification = models.ForeignKey( Classification, models.PROTECT, related_name='cuisine') <NEW_LINE> ingestion_kcal = models.IntegerField( blank=True, null=True, validators=[MinValueValidator(1), MaxValueValidator(9999)])... | メニュー | 62598fd08a349b6b4368669a |
class BasePosition: <NEW_LINE> <INDENT> def __init__(self, cash=0.0, *args, **kwargs): <NEW_LINE> <INDENT> self._settle_type = self.ST_NO <NEW_LINE> <DEDENT> def skip_update(self) -> bool: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> def check_stock(self, stock_id: str) -> bool: <NEW_LINE> <INDENT> raise NotImp... | The Position want to maintain the position like a dictionary
Please refer to the `Position` class for the position | 62598fd03617ad0b5ee065a1 |
class EditUserNameRepeatValidate(object): <NEW_LINE> <INDENT> def __init__(self, message=None): <NEW_LINE> <INDENT> self.message = message <NEW_LINE> <DEDENT> def __call__(self, form, field): <NEW_LINE> <INDENT> condition = [ User.name == field.data, User.id != form.id.data, ] <NEW_LINE> row = get_user_row(*condition) ... | 编辑用户名称重复校验
(编辑重复校验排除当前用户名称) | 62598fd04527f215b58ea329 |
class ParquetSerDe(AWSProperty): <NEW_LINE> <INDENT> props: PropsDictType = { "BlockSizeBytes": (integer, False), "Compression": (str, False), "EnableDictionaryCompression": (boolean, False), "MaxPaddingBytes": (integer, False), "PageSizeBytes": (integer, False), "WriterVersion": (str, False), } | `ParquetSerDe <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-parquetserde.html>`__ | 62598fd03d592f4c4edbb30f |
class DeleteSingleCheckmarksTest(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.one = Checkmarks.objects.create(name='one', value=True) <NEW_LINE> self.two = Checkmarks.objects.create(name='two', value=False) <NEW_LINE> <DEDENT> def test_valid_delete_checkmark(self): <NEW_LINE> <INDENT> respon... | Test module for deleting an existing checkmark record | 62598fd0099cdd3c6367560c |
class Seq2SeqEncoder(nn.Module): <NEW_LINE> <INDENT> def __init__(self, rnn_type, input_size, hidden_size, num_layers=1, bias=True, dropout=0.0, bidirectional=False): <NEW_LINE> <INDENT> assert issubclass(rnn_type, nn.RNNBase), "rnn_type must be a class inheriting from torch.nn.RNNBase" <NEW_LINE> super(Seq2... | RNN taking variable length padded sequences of vectors as input and
encoding them into padded sequences of vectors of the same length.
This module is useful to handle batches of padded sequences of vectors
that have different lengths and that need to be passed through a RNN.
The sequences are sorted in descending orde... | 62598fd0ad47b63b2c5a7cb6 |
class MyUDPHandler(socketserver.BaseRequestHandler): <NEW_LINE> <INDENT> clienthello = "" <NEW_LINE> ddid = 0 <NEW_LINE> ctx = "" <NEW_LINE> device_id = "" <NEW_LINE> dname = "" <NEW_LINE> connmode = "udp" <NEW_LINE> blocked_from_client_list = [] <NEW_LINE> blocked_from_cloud_list = [] <NEW_LINE> Cloudi = CloudClient()... | This class works similar to the TCP handler class, except that
self.request consists of a pair of data and client socket, and since
there is no connection the client address must be given explicitly
when sending data back via sendto(). | 62598fd0ec188e330fdf8cf1 |
class Reservoir(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._lock = threading.Lock() <NEW_LINE> self._quota = None <NEW_LINE> self._TTL = None <NEW_LINE> self._this_sec = 0 <NEW_LINE> self._taken_this_sec = 0 <NEW_LINE> self._borrowed_this_sec = 0 <NEW_LINE> self._report_interval = 1 <NEW_... | Centralized thread-safe reservoir which holds fixed sampling
quota, borrowed count and TTL. | 62598fd155399d3f05626975 |
class UsageKey(CourseObjectMixin, OpaqueKey): <NEW_LINE> <INDENT> KEY_TYPE = 'usage_key' <NEW_LINE> __slots__ = () <NEW_LINE> @property <NEW_LINE> @abstractmethod <NEW_LINE> def definition_key(self): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> @property <NEW_LINE> @abstractmethod <NEW_LINE> def ... | An :class:`opaque_keys.OpaqueKey` identifying an XBlock usage. | 62598fd17cff6e4e811b5e84 |
class TLSSocketServerMixIn: <NEW_LINE> <INDENT> def finish_request(self, sock, client_address): <NEW_LINE> <INDENT> tlsConnection = TLSConnection(sock) <NEW_LINE> if self.handshake(tlsConnection) == True: <NEW_LINE> <INDENT> self.RequestHandlerClass(tlsConnection, client_address, self) <NEW_LINE> tlsConnection.close() ... | This class can be mixed in with any L{SocketServer.TCPServer} to
add TLS support.
To use this class, define a new class that inherits from it and
some L{SocketServer.TCPServer} (with the mix-in first). Then
implement the handshake() method, doing some sort of server
handshake on the connection argument. If the handsh... | 62598fd13d592f4c4edbb311 |
class FirmwareAssociation(object): <NEW_LINE> <INDENT> openapi_types = { 'firmwarename': 'str', 'nodes': 'list[str]' } <NEW_LINE> attribute_map = { 'firmwarename': 'firmwarename', 'nodes': 'nodes' } <NEW_LINE> def __init__(self, firmwarename=None, nodes=None): <NEW_LINE> <INDENT> self._firmwarename = None <NEW_LINE> se... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 62598fd197e22403b383b365 |
class EmotionScores(object): <NEW_LINE> <INDENT> def __init__(self, anger=None, disgust=None, fear=None, joy=None, sadness=None): <NEW_LINE> <INDENT> self.anger = anger <NEW_LINE> self.disgust = disgust <NEW_LINE> self.fear = fear <NEW_LINE> self.joy = joy <NEW_LINE> self.sadness = sadness <NEW_LINE> <DEDENT> @classmet... | EmotionScores.
:attr float anger: (optional) Anger score from 0 to 1. A higher score means that the text is more likely to convey anger.
:attr float disgust: (optional) Disgust score from 0 to 1. A higher score means that the text is more likely to convey disgust.
:attr float fear: (optional) Fear score from 0 to 1. A... | 62598fd155399d3f05626977 |
class OAuthFixture: <NEW_LINE> <INDENT> def __init__(self, hass, aiohttp_client, aioclient_mock): <NEW_LINE> <INDENT> self.hass = hass <NEW_LINE> self.aiohttp_client = aiohttp_client <NEW_LINE> self.aioclient_mock = aioclient_mock <NEW_LINE> <DEDENT> async def async_oauth_flow(self, result): <NEW_LINE> <INDENT> state =... | Simulate the oauth flow used by the config flow. | 62598fd18a349b6b4368669e |
class TestBlacklistChangeForm(BlackWhitelistEditFormMixin, TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(TestBlacklistChangeForm, self).setUp() <NEW_LINE> self.factory = BlacklistFactory <NEW_LINE> self.form = BlacklistedNumberEditForm | Exercise Blacklist number editing | 62598fd1ab23a570cc2d4f9c |
class TagsFactory(JSBASE): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.__jslocation__ = "j.data.tags" <NEW_LINE> JSBASE.__init__(self) <NEW_LINE> <DEDENT> def getObject(self, tagstring="", setFunction4Tagstring=None, keepcase=False): <NEW_LINE> <INDENT> return Tags(tagstring, setFunction4Tagstring,... | Factory Class of dealing with TAGS | 62598fd13d592f4c4edbb313 |
class ScoreForm(messages.Message): <NEW_LINE> <INDENT> user_name = messages.StringField(1, required=True) <NEW_LINE> date = messages.StringField(2, required=True) <NEW_LINE> won = messages.BooleanField(3, required=True) <NEW_LINE> attempts_remaining = messages.IntegerField(4, required=True) | outbound Score information | 62598fd1099cdd3c6367560e |
class TreeViewDelegate(QtWidgets.QStyledItemDelegate): <NEW_LINE> <INDENT> def __init__(self, tree): <NEW_LINE> <INDENT> QtWidgets.QStyledItemDelegate.__init__(self) <NEW_LINE> self.tree = tree <NEW_LINE> <DEDENT> def paint(self, painter, option, index): <NEW_LINE> <INDENT> item = self.tree.model.itemFromIndex(index.si... | Extended QStyledItemDelegate class for providing a custom painter for CommonStandardItems in the tree view
Args:
tree (pe_tree.tree.PETree): PE Tree | 62598fd1fbf16365ca79451c |
class Text(Descriptor, CodecDescriptor): <NEW_LINE> <INDENT> def __init__(self, tag, codec=None, xmlns=None, required=False, multiple=False, encoder=None, decoder=None): <NEW_LINE> <INDENT> Descriptor.__init__(self, tag, xmlns=xmlns, required=required, multiple=multiple) <NEW_LINE> CodecDescriptor.__init__(self, codec=... | Descriptor that declares a possible child element that only cosists
of character data. All other attributes and child nodes are ignored.
:param tag: the XML tag name
:type tag: :class:`str`
:param codec: an optional codec object to use. if it's callable and
not an instance of :class:`Codec`, its return... | 62598fd14527f215b58ea32f |
class ManageIngredient(ListCreateViewSet): <NEW_LINE> <INDENT> serializer_class = IngredientSerializer <NEW_LINE> queryset = Ingredient.objects.all() | manage the ingredient objects. | 62598fd1956e5f7376df58ad |
class DETR(tf.keras.Model): <NEW_LINE> <INDENT> def __init__(self,d_model = 256,nhead = 8,num_decoder_layer = 6,num_encoder_layer = 6,num_classes = 1000,num_query = 100): <NEW_LINE> <INDENT> super(DETR, self).__init__() <NEW_LINE> self.d_model = d_model <NEW_LINE> self.backbone = ResNet50(include_top = False,input_shap... | Class for the DETR
Args:
d_model: d_model in the paper (depth size of the model) (default = 256)
num_decoder_layer: number of layer in decoder (default = 6)
num_encoder_layer: number of layer in encoder (default = 6)
nhead: number of heads in multiattention layer (default = 8)
num_classes: number of... | 62598fd1dc8b845886d53a1e |
class DebugWrapper(object): <NEW_LINE> <INDENT> def __init__(self, runnable, prompt): <NEW_LINE> <INDENT> import pdb <NEW_LINE> self.debugger = pdb.Pdb() <NEW_LINE> self.debugger.prompt = prompt <NEW_LINE> self.runnable = runnable <NEW_LINE> if hasattr(runnable, "func_name"): <NEW_LINE> <INDENT> self.__name__ = runnabl... | Wrapper to run a thread inside the debugger | 62598fd1bf627c535bcb190f |
class FakeRequest(object): <NEW_LINE> <INDENT> def __init__(self, user, sessionDict=None, method='POST', dataDict=None, path='/ct/somewhere/'): <NEW_LINE> <INDENT> self.user = user <NEW_LINE> self.path = path <NEW_LINE> self.method = method <NEW_LINE> if not sessionDict: <NEW_LINE> <INDENT> sessionDict = {} <NEW_LINE> ... | trivial holder for request data to pass to test calls | 62598fd1cc40096d6161a408 |
class ImageExtension(markdown.Extension): <NEW_LINE> <INDENT> def extendMarkdown(self, md, md_globals): <NEW_LINE> <INDENT> md.preprocessors.add('dw-images', ImagePreprocessor(md), '>html_block') <NEW_LINE> md.postprocessors.add('dw-images-cleanup', ImagePostprocessor(md), '>raw_html') | Images plugin markdown extension for django-wiki. | 62598fd10fa83653e46f534a |
class UserStatisticViewSet(mixins.ListModelMixin, viewsets.GenericViewSet): <NEW_LINE> <INDENT> filter_backends = (DjangoFilterBackend,) <NEW_LINE> filterset_class = UserStatisticFilterSet <NEW_LINE> queryset = Ticket.objects.all() <NEW_LINE> def list(self, request, **kwargs): <NEW_LINE> <INDENT> queryset = self.filter... | Докстринг статистики тикетов по пользователям | 62598fd1283ffb24f3cf3ce8 |
class ModFidMismatchError(ModError): <NEW_LINE> <INDENT> def __init__(self, in_name, debug_str, fid_expected, fid_actual): <NEW_LINE> <INDENT> debug_str = _join_sigs(debug_str) <NEW_LINE> message_form = f'{debug_str}: FormIDs do not match - expected ' f'{fid_expected!r} but got {fid_actual!r}' <NE... | Mod Error: Two FormIDs that should be equal are not. | 62598fd1dc8b845886d53a20 |
class Pen: <NEW_LINE> <INDENT> color = _get_hslf_color(0.5, 0.75, 0.5) <NEW_LINE> selection_color = QColor(0, 120, 255) <NEW_LINE> get_red_pen = _create_pen_getter(QColor(255, 0, 0), 1.43) <NEW_LINE> get_green_pen = _create_pen_getter(QColor(0, 255, 0), 0.67) <NEW_LINE> get_purple_pen = _create_pen_getter(QColor(255, 0... | Used pens parameters. Usage example:
from gui.pen import Pen
my_pen1 = Pen.get_red_pen()
my_pen2 = Pen.get_red_pen(width=1.5) | 62598fd1ec188e330fdf8cf9 |
class ComputedEntry(MSONable): <NEW_LINE> <INDENT> def __init__(self, composition, energy, correction=0.0, parameters=None, data=None, entry_id=None, attribute=None): <NEW_LINE> <INDENT> self.uncorrected_energy = energy <NEW_LINE> self.composition = Composition(composition) <NEW_LINE> self.correction = correction <NEW_... | An lightweight ComputedEntry object containing key computed data
for many purposes. Extends a PDEntry so that it can be used for phase
diagram generation. The difference between a ComputedEntry and a standard
PDEntry is that it includes additional parameters like a correction and
run_parameters. | 62598fd17cff6e4e811b5e8c |
class Regression: <NEW_LINE> <INDENT> def __init__(self, no_of_iters, step_rate): <NEW_LINE> <INDENT> self.iters = no_of_iters <NEW_LINE> self.learning_factor = step_rate <NEW_LINE> self.training_errs = [] <NEW_LINE> <DEDENT> def set_up_weights(self, features_count): <NEW_LINE> <INDENT> threshold = 1 / pow(features_cou... | Models the relationship between a scalar independent and
a dependent variable | 62598fd1a05bb46b3848accf |
class Shares(Base): <NEW_LINE> <INDENT> __tablename__ = 'shares' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> number = Column(Integer()) <NEW_LINE> date_of_acquisition = Column(Date(), nullable=False) <NEW_LINE> reference_code = Column(Unicode(255), unique=True) <NEW_LINE> signature_received = Column(Bo... | A package of shares which a member acquires.
Each shares package consists of one to sixty shares. One member may own
several packages, e.g. from membership application, crowdfunding and
requesting the acquisition of additional shares.
Shares packages only come to existence once the business process is finished
and th... | 62598fd1bf627c535bcb1911 |
class List(LoginRequiredMixin, StaticContextMixin, generic.ListView): <NEW_LINE> <INDENT> form_class, model = forms.Application, models.Application <NEW_LINE> template_name = 'inventory/list.html' <NEW_LINE> static_context = { 'page_title': 'Applications', } <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <... | View names of visible Applications. | 62598fd13d592f4c4edbb319 |
class ChangeSourceMixin(object): <NEW_LINE> <INDENT> changesource = None <NEW_LINE> started = False <NEW_LINE> DUMMY_CHANGESOURCE_ID = 20 <NEW_LINE> OTHER_MASTER_ID = 93 <NEW_LINE> DEFAULT_NAME = "ChangeSource" <NEW_LINE> def setUpChangeSource(self): <NEW_LINE> <INDENT> self.master = fakemaster.make_master(wantDb=True,... | This class is used for testing change sources, and handles a few things:
- starting and stopping a ChangeSource service
- a fake master with a data API implementation | 62598fd1cc40096d6161a409 |
class _InvalidFunctionArgException(_ExpGeneratorException): <NEW_LINE> <INDENT> pass | This exception may be raised in response to invalid or incompatible function
arguments. | 62598fd150812a4eaa620e16 |
class DecisionTreeClassifier(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def fit(self, X, t): <NEW_LINE> <INDENT> mask = np.ones(X.shape[1], dtype=bool) <NEW_LINE> self.tree = self._ID3(X, t, mask) <NEW_LINE> return self <NEW_LINE> <DEDENT> def predict(self, X): <NEW_LINE> <I... | Decision Tree Classifier using ID3 | 62598fd19f28863672818aaf |
class WritingReceiver(DummyReceiver): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> dsp = 'disposable' if self.disposable else 'persistent' <NEW_LINE> self.print('%s writer running'%dsp) <NEW_LINE> last_print = 0. <NEW_LINE> frames_since_last_print = 0 <NEW_LINE> total_frames = 0 <NEW_LINE> while True: <NEW_LI... | Receiver which reads from the data PUB socket and writes to hdf5. | 62598fd1d8ef3951e32c808e |
class EAWTextField(models.TextField): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> if self.max_length is not None: <NEW_LINE> <INDENT> self.validators.append(EAWMaxLengthValidator(self.max_length)) | Derived TextField that checks for its content's EAW lengh.
This adds an extra validator that counts EAW wide characters as two
instead of one. | 62598fd14527f215b58ea335 |
class WM_OT_studiolight_copy_settings(Operator): <NEW_LINE> <INDENT> bl_idname = 'wm.studiolight_copy_settings' <NEW_LINE> bl_label = "Copy Studio Light settings" <NEW_LINE> index: bpy.props.IntProperty() <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> prefs = context.preferences <NEW_LINE> system = prefs.sy... | Copy Studio Light settings to the Studio light editor | 62598fd1956e5f7376df58b0 |
@command(user_commands) <NEW_LINE> class user_list(_init_synnefo_astakosclient, _optional_json): <NEW_LINE> <INDENT> arguments = dict( detail=FlagArgument('Detailed listing', ('-l', '--detail')) ) <NEW_LINE> @errors.generic.all <NEW_LINE> @errors.user.astakosclient <NEW_LINE> def _run(self): <NEW_LINE> <INDENT> self._p... | List (cached) session users | 62598fd13d592f4c4edbb31b |
class EntityNotFound(MoltenError): <NEW_LINE> <INDENT> pass | Raised when an entity is not found using an `exists` check in sqlalchemy. | 62598fd1dc8b845886d53a24 |
class FetchRequest(Request): <NEW_LINE> <INDENT> api = "fetch" <NEW_LINE> parts = ( ("replica_id", Int32), ("max_wait_time", Int32), ("min_bytes", Int32), ("topics", Array.of(TopicRequest)), ) | ::
FetchRequest =>
replica_id => Int32
max_wait_time => Int32
min_bytes => Int32
topics => [TopicRequest] | 62598fd14527f215b58ea337 |
class CustomerFollowUp(models.Model): <NEW_LINE> <INDENT> customer = models.ForeignKey('Customer', on_delete=models.CASCADE) <NEW_LINE> content = models.TextField(verbose_name='Follow-up Content') <NEW_LINE> consultant = models.ForeignKey('UserProfile', on_delete=models.CASCADE) <NEW_LINE> intention_choices = ((0, 'Enr... | Customer Follow-up Table | 62598fd1a05bb46b3848acd3 |
class Node: <NEW_LINE> <INDENT> def __init__(self, val: int): <NEW_LINE> <INDENT> self.val = val <NEW_LINE> self.prev = None <NEW_LINE> self.next = None | Node of a linked list | 62598fd150812a4eaa620e18 |
class NetworkManager(object): <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> super(NetworkManager, self).__init__() <NEW_LINE> self.sockets = {} <NEW_LINE> self.wininets = {} <NEW_LINE> self.curr_fd = 4 <NEW_LINE> self.curr_handle = 0x20 <NEW_LINE> self.config = config <NEW_LINE> self.dns = {} <NEW... | Class that manages network connections during emulation | 62598fd1a219f33f346c6c70 |
class Heap(object): <NEW_LINE> <INDENT> def __init__(self, is_max=False): <NEW_LINE> <INDENT> self._array = [] <NEW_LINE> self._size = 0 <NEW_LINE> self._is_max = is_max <NEW_LINE> self._left = lambda index: 2 * index + 1 <NEW_LINE> self._right = lambda index: 2 * index + 2 <NEW_LINE> self._parent = lambda index: (inde... | Binary heap implementation of priority queue.
| 62598fd160cbc95b063647a7 |
class _ContentTypesItem(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(_ContentTypesItem, self).__init__() <NEW_LINE> self.__defaults = None <NEW_LINE> self.__overrides = None <NEW_LINE> <DEDENT> def __getitem__(self, partname): <NEW_LINE> <INDENT> if self.__defaults is None or self.__overri... | Lookup content type by part name using dictionary syntax, e.g.
``content_type = cti['/ppt/presentation.xml']``. | 62598fd1ab23a570cc2d4fa2 |
class Solution: <NEW_LINE> <INDENT> def findRec(self, n1, n2, s, found): <NEW_LINE> <INDENT> if s=="" and found: return True <NEW_LINE> n3 = str(n1+n2) <NEW_LINE> if s[:min(len(n3), len(s))] == n3: return self.findRec(n2, int(n3), s[len(n3):], True) <NEW_LINE> return False <NEW_LINE> <DEDENT> def isAdditiveNumber(self,... | The idea is to recursively solve the problem
Break the string at every possible point, and see if we can find a combination which actually holds this fibonaci property | 62598fd1956e5f7376df58b2 |
class ComplexAugmentedAssignmentMixinTests: <NEW_LINE> <INDENT> def test_generic_2282_isub_definition(self, a: ClassUnderTest, b: ClassUnderTest): <NEW_LINE> <INDENT> a_expected = a - b <NEW_LINE> a -= b <NEW_LINE> self.assertEqual(a, a_expected) <NEW_LINE> <DEDENT> def test_generic_2284_iadd_definition(self, a: ClassU... | Tests of the basic arithmetic assignment operators. | 62598fd17cff6e4e811b5e92 |
class MainListView(ListView): <NEW_LINE> <INDENT> model = CompanyInformation <NEW_LINE> template_name = "mainapp/main_page.html" <NEW_LINE> context_object_name = "companies" <NEW_LINE> paginate_by = 3 <NEW_LINE> def get_ordering(self): <NEW_LINE> <INDENT> ordering = self.request.GET.get("order_by") <NEW_LINE> return or... | Главная страница
вывод всех компаний с пагинацией и сортировкой | 62598fd1377c676e912f6fad |
class BattleSide(object): <NEW_LINE> <INDENT> def __init__(self,members,state = 1,matrixType = PLAYER_PET, matrixSetting = {}, preDict = {'extVitper':1,'extStrper':1, 'extDexper':1,'extWisper':1,'extSpiper':1}): <NEW_LINE> <INDENT> self.matrixType = matrixType <NEW_LINE> self.preDict = preDict <NEW_LINE> self.members =... | 战斗方类 | 62598fd13346ee7daa33787c |
class Graph(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.nodes = set() <NEW_LINE> self.edges = defaultdict(list) <NEW_LINE> self.distances = {} <NEW_LINE> self.stops = {} <NEW_LINE> self.airlines = {} <NEW_LINE> <DEDENT> def add_edge(self, from_node, to_node, weight, stops, airline_code): <... | Graph class
This class represents an airport.
:param airline_code: The airline code.
:param from_node: The source airport code.
:param stops: The number of stops.
:param to_node: The destination airport code.
:param status: The status of the Vertex indicating visited or unvisited. | 62598fd1cc40096d6161a40c |
class Result(Generic[Output]): <NEW_LINE> <INDENT> def or_die(self) -> Output: <NEW_LINE> <INDENT> raise NotImplementedError() | Abstract algebraic base class for ``Success`` and ``Failure``.
The class of all values returned from Parser.parse. | 62598fd197e22403b383b373 |
class VideoBackend: <NEW_LINE> <INDENT> re_code = None <NEW_LINE> re_detect = None <NEW_LINE> pattern_url = None <NEW_LINE> pattern_thumbnail_url = None <NEW_LINE> allow_https = True <NEW_LINE> template_name = "embed_video/embed_code.html" <NEW_LINE> default_query = "" <NEW_LINE> is_secure = False <NEW_LINE> def __init... | Base class used as parental class for backends.
Backend variables:
.. autosummary::
url
code
thumbnail
query
info
is_secure
protocol
template_name
.. code-block:: python
class MyBackend(VideoBackend):
... | 62598fd150812a4eaa620e19 |
class TwoLayerNet(object): <NEW_LINE> <INDENT> def __init__(self, input_dim=3*32*32, hidden_dims=100, num_classes=10, dropout=0, weight_scale=1e-3, reg=0.0): <NEW_LINE> <INDENT> self.params = {} <NEW_LINE> self.reg = reg <NEW_LINE> self.params['W1'] = np.random.normal(scale = weight_scale,size = (input_dim,hidden_dims)... | A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dimension
of D, a hidden dimension of H, and perform classification over C classes.
The architecure should be affine - relu - affine - softmax.
Note that this class does not implemen... | 62598fd1adb09d7d5dc0a9e5 |
class itkShrinkImageFilterIUL2IUL2(itkImageToImageFilterAPython.itkImageToImageFilterIUL2IUL2): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") <NEW_... | Proxy of C++ itkShrinkImageFilterIUL2IUL2 class | 62598fd1ad47b63b2c5a7cc6 |
class ModTest(TestCase): <NEW_LINE> <INDENT> def do_test(self, mod, o, *a): <NEW_LINE> <INDENT> args = [data.HexData(i) for i in a] <NEW_LINE> self.assertEqual(mod(*args), data.HexData(o)) | A TestCase base class for any mods. | 62598fd1dc8b845886d53a28 |
class boleto_boleto(osv.osv): <NEW_LINE> <INDENT> _name = 'boleto.boleto' <NEW_LINE> _columns = { 'name': fields.char('Name', size=20, required=True), 'carteira': fields.char('Carteira', size=10), 'instrucoes': fields.text(u'Instruções'), 'sacado': fields.many2one('res.partner', 'Sacado'), 'banco': fields.selection([('... | Boleto | 62598fd19f28863672818ab2 |
class PromocaoInline(nested_admin.NestedTabularInline): <NEW_LINE> <INDENT> extra = 3 <NEW_LINE> model = models.Promocao | Inline para o model Promocao. | 62598fd1a219f33f346c6c72 |
class GeneralData: <NEW_LINE> <INDENT> def __init__(self, meter: int = None, number_of_rooms: int = None, tariff: float = None, consumption: int = None, communal_per_person: int = None) -> None: <NEW_LINE> <INDENT> self.meter = meter <NEW_LINE> self.number_of_rooms = number_of_rooms <NEW_LINE> self.tariff = tariff <NEW... | Класс, содержащий в качестве атрибутов общие данниые по квартире,
необходимые для рассчетов. | 62598fd1d8ef3951e32c8091 |
class CabinetInfo(object): <NEW_LINE> <INDENT> def __init__(self, filename=None, date_time=None): <NEW_LINE> <INDENT> self.filename, self.date_time = filename, date_time <NEW_LINE> self.file_size = 0 <NEW_LINE> self.external_attr = 0 <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "<CabinetInfo %s, s... | A simple class to encapsulate information about cabinet members | 62598fd1fbf16365ca794528 |
class TestSoledadDbSync(test_sync.TestDbSync, BaseSoledadTest): <NEW_LINE> <INDENT> scenarios = [ ('py-http', { 'make_app_with_state': make_soledad_app, 'make_database_for_test': tests.make_memory_database_for_test, }), ('py-token-http', { 'make_app_with_state': make_token_soledad_app, 'make_database_for_test': tests.m... | Test db.sync remote sync shortcut | 62598fd1656771135c489adc |
class MagGrad(Gradient): <NEW_LINE> <INDENT> def preprocess(self, img): <NEW_LINE> <INDENT> gray = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY) <NEW_LINE> sobelx = cv2.Sobel(gray, cv2.CV_64F, 1, 0, ksize=self.sobel_kernel) <NEW_LINE> sobely = cv2.Sobel(gray, cv2.CV_64F, 0, 1, ksize=self.sobel_kernel) <NEW_LINE> mag = np.sqrt(... | Calculate gradient magnitude | 62598fd1ff9c53063f51aab8 |
class Reference(ReferenceBase): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> ReferenceBase.__init__(self, value) <NEW_LINE> self.split = value.split('/') <NEW_LINE> self.resolved = None <NEW_LINE> <DEDENT> def getPaths(self): <NEW_LINE> <INDENT> return [self.value] <NEW_LINE> <DEDENT> def resolve(... | A value a setting can have to point to another setting.
Formats of a reference are like
/foo/bar/setting or
../Line/width
alternatively style sheets can be used with the format, e.g.
/StyleSheet/linewidth | 62598fd150812a4eaa620e1a |
class ControllerManager: <NEW_LINE> <INDENT> def __init__(self, hass, controller): <NEW_LINE> <INDENT> self._hass = hass <NEW_LINE> self._device_registry = None <NEW_LINE> self._entity_registry = None <NEW_LINE> self.controller = controller <NEW_LINE> self._signals = [] <NEW_LINE> <DEDENT> async def connect_listeners(s... | Class that manages events of the controller. | 62598fd17b180e01f3e49286 |
@pytest.mark.usefixtures('mocker') <NEW_LINE> class TestWriterManager: <NEW_LINE> <INDENT> @pytest.mark.parametrize('file_name,expected_class', [ ('test.csv', CSVWriter), ('test.xml', XMLWriter), ('test.csvvv', XMLWriter), ]) <NEW_LINE> def test_select_csv_writer(self, file_name, expected_class): <NEW_LINE> <INDENT> ma... | Tests class for Writer Manager. | 62598fd1656771135c489ade |
class Operation(object): <NEW_LINE> <INDENT> def __init__(self, *args): <NEW_LINE> <INDENT> if len(args) < 1: <NEW_LINE> <INDENT> self.terms = [0]*2 <NEW_LINE> <DEDENT> elif type(args[0]) is list: <NEW_LINE> <INDENT> self.terms = args[0] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.terms = args <NEW_LINE> <DEDENT... | Abstract base operation class | 62598fd1377c676e912f6faf |
class InvoiceDetailViewTestCase(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> user = User.objects.create(username="nerd", is_staff=True) <NEW_LINE> self.client = APIClient() <NEW_LINE> self.client.force_authenticate(user=user) <NEW_LINE> self.invoice_data = { "first_name": "Test name", "last_name"... | Test suite for invoice detail view | 62598fd15fdd1c0f98e5e3fa |
class Node: <NEW_LINE> <INDENT> def __init__(self, val, l = None, r = None): <NEW_LINE> <INDENT> self.l_child = None <NEW_LINE> self.r_child = None <NEW_LINE> self.data = val | Constructor for Node class with attributes:
l_child = None
r_child = None
data = val | 62598fd13d592f4c4edbb323 |
class _DawgNode: <NEW_LINE> <INDENT> _nextid = 1 <NEW_LINE> @staticmethod <NEW_LINE> def stringify_edges(edges, arr): <NEW_LINE> <INDENT> for prefix, node in edges.items(): <NEW_LINE> <INDENT> arr.append(prefix + u':' + (u'0' if node is None else str(node.id))) <NEW_LINE> <DEDENT> return "_".join(arr) <NEW_LINE> <DEDEN... | A _DawgNode is a node in a Directed Acyclic Word Graph (DAWG).
It contains:
* a node identifier (a simple unique sequence number);
* a dictionary of edges (children) where each entry has a prefix
(following letter(s)) together with its child _DawgNode;
* and a Bool (final) indicating whether this no... | 62598fd14a966d76dd5ef346 |
class Replacement(Fitness): <NEW_LINE> <INDENT> def __init__(self, fitness_list): <NEW_LINE> <INDENT> Fitness.__init__(self, fitness_list) <NEW_LINE> self._replacement_count = 0 | This is the base class for the classes that identify which members are to
be replaced. It is basically the same as a fitness class, but attempts to
identify the worst, not the best. | 62598fd1283ffb24f3cf3cf4 |
class Dom0BridgePIFParamTestClass2(Dom0BridgePIFParamTestClass1): <NEW_LINE> <INDENT> caps = [] <NEW_LINE> required = False <NEW_LINE> OFFLOAD_CONFIG = {'sg': 'on', 'tso': 'on', 'gso': 'on', 'gro': 'off', 'lro': 'off', 'rxvlan': 'on', 'txvlan': 'on'} | A class for Dom0 - VM PIF param testing | 62598fd150812a4eaa620e1b |
class Product(VariadicExpression): <NEW_LINE> <INDENT> return_types = frozenset(["int", "long", "float", "complex"]) | Arithmetic * (variadic). | 62598fd1adb09d7d5dc0a9e9 |
class HcronTreeCache: <NEW_LINE> <INDENT> def __init__(self, username, ignore_match_fn=None): <NEW_LINE> <INDENT> def false_match(*args): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> self.username = username <NEW_LINE> self.ignore_match_fn = ignore_match_fn or false_match <NEW_LINE> self.path = get_hcron_tree_f... | Interface to packaged hcron tree file containing members as:
events/... | 62598fd17b180e01f3e49287 |
class WorkflowListResponseSchema(BaseSchema): <NEW_LINE> <INDENT> id = fields.Integer(required=True) <NEW_LINE> name = fields.String(required=True) <NEW_LINE> description = fields.String(required=False, allow_none=True) <NEW_LINE> enabled = fields.Boolean( required=False, allow_none=True, missing=True, default=True) <N... | JSON serialization schema | 62598fd1fbf16365ca79452c |
class _RebarGroup: <NEW_LINE> <INDENT> def __init__(self, obj_name): <NEW_LINE> <INDENT> self.Type = "RebarGroup" <NEW_LINE> self.rebar_group = FreeCAD.ActiveDocument.addObject( "App::DocumentObjectGroupPython", obj_name ) <NEW_LINE> self.ties_group = self.rebar_group.newObject( "App::DocumentObjectGroupPython", "Ties"... | A Rebar Group object. | 62598fd1956e5f7376df58b5 |
class RecordNotFoundError(Error): <NEW_LINE> <INDENT> pass | %s with uid=%d not found | 62598fd17cff6e4e811b5e98 |
class LocationFilterIDL(object): <NEW_LINE> <INDENT> thrift_spec = (None, (1, TType.I32, 'subtype', None, None)) <NEW_LINE> def __init__(self, subtype = None): <NEW_LINE> <INDENT> self.subtype = subtype <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol.TBinaryProtocolA... | Attributes:
- subtype | 62598fd10fa83653e46f5358 |
class RouterWebServiceReverseWeb(RouterWebService): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def create(transport, path, config): <NEW_LINE> <INDENT> personality = transport.worker.personality <NEW_LINE> personality.WEB_SERVICE_CHECKERS['reverseproxy'](personality, config) <NEW_LINE> host = config['host'] <NEW_LINE... | Reverse Web proxy service. | 62598fd1dc8b845886d53a2e |
class Tcp(UpdateMonitorMixin, Resource): <NEW_LINE> <INDENT> def __init__(self, tcps): <NEW_LINE> <INDENT> super(Tcp, self).__init__(tcps) <NEW_LINE> self._meta_data['required_json_kind'] = 'tm:ltm:monitor:tcp:tcpstate' | BIG-IP® Tcp monitor resource. | 62598fd13617ad0b5ee065b9 |
class BrotabClient: <NEW_LINE> <INDENT> clients = {} <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @cached(ttl=15) <NEW_LINE> def is_installed(self): <NEW_LINE> <INDENT> result = subprocess.run(['which', 'brotab']) <NEW_LINE> if result.returncode == 0: <NEW_LINE> <INDENT> return True <NEW_... | Client to interact with Brotab Command line tool | 62598fd1fbf16365ca79452e |
class EventViewTabs(renderers.TabLayout): <NEW_LINE> <INDENT> event_queue = "event_select" <NEW_LINE> names = ["Event", "Subject"] <NEW_LINE> delegated_renderers = ["EventView", "EventSubjectView"] <NEW_LINE> def Layout(self, request, response): <NEW_LINE> <INDENT> self.state["container"] = request.REQ.get("container")... | Show tabs to allow inspection of the event.
Listening Javascript Events:
- event_select(event_id): Indicates the user has selected this event in the
table, we re-render ourselves with the new event_id.
Post Parameters:
- container: The container name for the timeline.
- event: The event id within the timese... | 62598fd155399d3f0562698c |
class MENUITEMINFOW(common.MayhemStructure): <NEW_LINE> <INDENT> _fields_ = [ ('cbSize', ctypes.c_uint), ('fMask', ctypes.c_uint), ('fType', ctypes.c_uint), ('fState', ctypes.c_uint), ('wID', ctypes.c_uint), ('hSubMenu', HANDLE), ('hbmpChecked', HANDLE), ('hbmpUnchecked', HANDLE), ('dwItemData', ctypes.POINTER(ctypes.c... | see:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms647578(v=vs.85).aspx | 62598fd1656771135c489ae2 |
class ActionLog(BASE): <NEW_LINE> <INDENT> __tablename__ = 'action_log' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> timestamp = Column(Interval, index=True) <NEW_LINE> match_id = Column(Integer, ForeignKey('matches.id', ondelete='cascade'), index=True) <NEW_LINE> match = relationship('Match', foreign_k... | Action log. | 62598fd1956e5f7376df58b6 |
class Authentication(object): <NEW_LINE> <INDENT> def __init__(self, headers): <NEW_LINE> <INDENT> self.username = None <NEW_LINE> self.password = None <NEW_LINE> auth_schemes = {b"Basic": self.decode_basic} <NEW_LINE> if "authorization" in headers: <NEW_LINE> <INDENT> header = headers.get("authorization") <NEW_LINE> a... | Object for dealing with HTTP Authentication
.. attribute:: username
The username supplied in the HTTP Authorization
header, or None
.. attribute:: password
The password supplied in the HTTP Authorization
header, or None
Both attributes are binary strings (`str` in Py2, `bytes` in Py3), since
RFC7617 Section 2.1 do... | 62598fd1a05bb46b3848acdd |
class Subject(): <NEW_LINE> <INDENT> def __init__(self, code, name, weight, grade): <NEW_LINE> <INDENT> self.code = code <NEW_LINE> self.name = name <NEW_LINE> self.weight = weight <NEW_LINE> self.grade = grade <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> return self.code == other.code and self.name... | Store code, name, weight and grade for subject | 62598fd1bf627c535bcb191f |
class Organization(Location): <NEW_LINE> <INDENT> __tablename__ = _TN <NEW_LINE> __mapper_args__ = {'polymorphic_identity': _TN} <NEW_LINE> valid_parents = [] <NEW_LINE> id = Column(ForeignKey(Location.id, ondelete='CASCADE'), primary_key=True) <NEW_LINE> __table_args__ = ({'info': {'unique_fields': ['name']}},) | Organization is a subtype of location | 62598fd1099cdd3c63675618 |
class BaseLayout(object): <NEW_LINE> <INDENT> layout = None <NEW_LINE> @classmethod <NEW_LINE> def create(cls, source_low, source_up, dest_low, dest_up): <NEW_LINE> <INDENT> source_dict = {} <NEW_LINE> source = source_low + source_up <NEW_LINE> dest_dict = {} <NEW_LINE> dest = dest_low + dest_up <NEW_LINE> for index, c... | Base class for keyboard layout. | 62598fd1283ffb24f3cf3cf6 |
class GomaOAuth2Config(dict): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> dict.__init__(self) <NEW_LINE> self._path = self._GetLocation() <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def _GetLocation(): <NEW_LINE> <INDENT> env_name = 'GOMA_OAUTH2_CONFIG_FILE' <NEW_LINE> env = os.environ.get(env_name) <N... | File-backed OAuth2 configuration. | 62598fd155399d3f0562698d |
class CheckListFormTestCase(SimpleTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self.request = mock.MagicMock( user=mock.MagicMock( token=generate_tokens(), ), ) <NEW_LINE> <DEDENT> def test_get_object_list(self): <NEW_LINE> <INDENT> with responses.RequestsMock() as rsps... | Tests related to the CheckListForm. | 62598fd1cc40096d6161a411 |
class Maybe(object): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> if isinstance(value, Maybe): <NEW_LINE> <INDENT> self.__value = value.get() <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.__value = value <NEW_LINE> <DEDENT> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return str(self) <NE... | Maybe object
>>> x_ = Maybe(123)
>>> y_ = Maybe(None)
>>> z_ = Maybe(['A', 'B', 'C'])
>>> x_, y_, z_
(123?, None?, ['A', 'B', 'C']?)
>>> x_.get()
123
>>> y_.get()
Traceback (most recent call last):
...
ValueError
>>> x_.exists(), y_.exists(), z_.exists()
(True, False, True)
>>> x_.or_('ABC'), y_.or_('ABC'), z_.or_('AB... | 62598fd1bf627c535bcb1921 |
class CharIconPainter: <NEW_LINE> <INDENT> def paint(self, iconic, painter, rect, mode, state, options): <NEW_LINE> <INDENT> for opt in options: <NEW_LINE> <INDENT> self._paint_icon(iconic, painter, rect, mode, state, opt) <NEW_LINE> <DEDENT> <DEDENT> def _paint_icon(self, iconic, painter, rect, mode, state, options): ... | Char icon painter | 62598fd150812a4eaa620e1e |
class ConvertPointsFromHomogeneous(nn.Module): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(ConvertPointsFromHomogeneous, self).__init__() <NEW_LINE> <DEDENT> def forward(self, input): <NEW_LINE> <INDENT> return convert_points_from_homogeneous(input) | Creates a transformation that converts points from homogeneous to
Euclidean space.
Args:
points (Tensor): tensor of N-dimensional points.
Returns:
Tensor: tensor of N-1-dimensional points.
Shape:
- Input: :math:`(B, D, N)` or :math:`(D, N)`
- Output: :math:`(B, D, N + 1)` or :math:`(D, N + 1)`
Examp... | 62598fd1656771135c489ae6 |
class UserNotFound(WordPressORMException): <NEW_LINE> <INDENT> pass | WordPress user not found. | 62598fd17cff6e4e811b5e9e |
@python_2_unicode_compatible <NEW_LINE> class release_raw(models.Model): <NEW_LINE> <INDENT> id = models.AutoField(primary_key=True) <NEW_LINE> title = models.CharField(max_length=255) <NEW_LINE> artist = models.CharField(max_length=255) <NEW_LINE> added = models.DateTimeField(auto_now=True) <NEW_LINE> last_modified = ... | Not all parameters are listed here, only those that present some interest
in their Django implementation. | 62598fd1dc8b845886d53a34 |
class Bib82x(db.Model): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> __tablename__ = 'bib82x' <NEW_LINE> id = db.Column(db.MediumInteger(8, unsigned=True), primary_key=True, autoincrement=True) <NEW_LINE> tag = db.Column(db.String(6), nullable=False, index=True, server_default=''... | Represents a Bib82x record. | 62598fd1ab23a570cc2d4fa9 |
class BrowseResponse(FrozenClass): <NEW_LINE> <INDENT> def __init__(self, binary=None): <NEW_LINE> <INDENT> if binary is not None: <NEW_LINE> <INDENT> self._binary_init(binary) <NEW_LINE> self._freeze = True <NEW_LINE> return <NEW_LINE> <DEDENT> self.TypeId = FourByteNodeId(ObjectIds.BrowseResponse_Encoding_DefaultBina... | Browse the references for one or more nodes from the server address space.
:ivar TypeId:
:vartype TypeId: NodeId
:ivar ResponseHeader:
:vartype ResponseHeader: ResponseHeader
:ivar Results:
:vartype Results: BrowseResult
:ivar DiagnosticInfos:
:vartype DiagnosticInfos: DiagnosticInfo | 62598fd10fa83653e46f535f |
class Issue(object): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> for arg in args: <NEW_LINE> <INDENT> if isinstance(arg, dict): <NEW_LINE> <INDENT> for name, value in arg.items(): <NEW_LINE> <INDENT> setattr(self, name, value) <NEW_LINE> <DEDENT> <DEDENT> <DEDENT> for name, value in kwa... | A generic issue | 62598fd13d592f4c4edbb32e |
class TestClient(RpcClient): <NEW_LINE> <INDENT> def __init__(self, req_ip, req_port, sub_addr, sub_port): <NEW_LINE> <INDENT> super(TestClient, self).__init__(req_ip, req_port, sub_addr, sub_port) <NEW_LINE> <DEDENT> def callback(self, topic, data): <NEW_LINE> <INDENT> print('client received topic:', topic, ', data:',... | RPC测试客户端 | 62598fd160cbc95b063647b5 |
class InstanceCreateStart(EventBaseModel): <NEW_LINE> <INDENT> kwarg_map = {'image_name': 'image_name'} <NEW_LINE> kwarg_map.update(BASE_KWARG_MAP) <NEW_LINE> def __init__(self, access_ip_v4, access_ip_v6, architecture, availability_zone, cell_name, created_at, deleted_at, disk_gb, display_name, ephemeral_gb, host, hos... | Compute Instance Create Start Response Model
@summary: Response model for a compute.instance.create.start
event notification
@note: Represents a single event notification
JSON Example:
{
"access_ip_v4": "10.10.0.0",
"access_ip_v6": null,
"architecture": "x64",
"availability_zon... | 62598fd19f28863672818ab9 |
class GetComment(AuthenticatedMethod): <NEW_LINE> <INDENT> method_name = 'wp.getComment' <NEW_LINE> method_args = ('comment_id',) <NEW_LINE> results_class = WordPressComment | Retrieve an individual comment.
Parameters:
`comment_id`: ID of the comment to retrieve.
Returns: `WordPressPost` instance. | 62598fd17b180e01f3e4928c |
class SaltNewEdit(View): <NEW_LINE> <INDENT> def get(self, request, salt_new_id): <NEW_LINE> <INDENT> new_salt = _models.SaltNew.objects.filter(is_delete=False, id=salt_new_id).first() <NEW_LINE> salt_na_queryset = view_model.view_common(_models.SaltNA, "id", "name") <NEW_LINE> team_set = view_model.view_common(_models... | 新盐数据编辑 | 62598fd1d8ef3951e32c8098 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.