code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class Scheduler(Resource): <NEW_LINE> <INDENT> rest_entity_path = "scheduler" <NEW_LINE> @staticmethod <NEW_LINE> def list(page = None, per_page = None): <NEW_LINE> <INDENT> conn = Qubole.agent() <NEW_LINE> url_path = Scheduler.rest_entity_path <NEW_LINE> page_attr = [] <NEW_LINE> if page is not None: <NEW_LINE> <INDEN...
qds_sdk.Schedule is the base Qubole Schedule class.
6259908566673b3332c31f50
class PeprCoreSettings(Settings): <NEW_LINE> <INDENT> roles = {} <NEW_LINE> def validate(self, config): <NEW_LINE> <INDENT> if 'roles' in config: <NEW_LINE> <INDENT> roles = (role if issubclass(role, Role) else self.import_item(role) for role in config['roles']) <NEW_LINE> config['roles'] = { role.access: role for role...
Settings for Pepr Core application.
625990853317a56b869bf2ec
class Cours(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name_plural = "cours" <NEW_LINE> <DEDENT> enseignant = models.ForeignKey('Enseignant', on_delete=models.PROTECT) <NEW_LINE> horaire = models.ForeignKey('Horaire', on_delete=models.PROTECT) <NEW_LINE> formation = models.ForeignKey...
Représente un cours, c'est à dire décrit les caractéristiques complètes d'un cours d'AP : l'enseignant qui intervient, la granule de formation que l'enseignant dispensera, l'heure de début, la capacité (nombre maximal d'élèves qui peuvent voter pour ce cours), et les dates de début/fin d'ouverture des votes pour s'...
62599085283ffb24f3cf53f1
class PolygonList(GUIStructure, PolygonList): <NEW_LINE> <INDENT> pass
Overloading PolygonList class
6259908550812a4eaa62196d
class VPNBrokerDomain(Element): <NEW_LINE> <INDENT> typeof = "vpn_broker_domain" <NEW_LINE> @classmethod <NEW_LINE> def create(cls, name, mac_address_prefix, file_ref, comment=None, **kw): <NEW_LINE> <INDENT> kw.update( name=name, comment=comment, mac_address_prefix=mac_address_prefix, file_ref=file_ref ) <NEW_LINE> re...
VPN Broker Domain element defines the virtual network that contains the VPN Broker gateway and the VPN Broker members.
62599085f9cc0f698b1c6074
class EasyModes(Pass): <NEW_LINE> <INDENT> name = "Easy addressing modes pass" <NEW_LINE> def visitMemory(self, node, env): <NEW_LINE> <INDENT> if Ops.opcodes[node.data[0]][Ops.modes.index("Relative")] is not None: <NEW_LINE> <INDENT> node.nodetype = "Relative" <NEW_LINE> return <NEW_LINE> <DEDENT> if Ops.opcodes[node....
Assigns address modes to hardcoded and branch instructions
6259908592d797404e389905
class ArdbInvXMLWriterTests(SutekhTest): <NEW_LINE> <INDENT> def test_deck_writer(self): <NEW_LINE> <INDENT> oPhysCardSet1 = make_set_1() <NEW_LINE> sCurDate = time.strftime('>%Y-%m-%d<', time.localtime()) <NEW_LINE> oWriter = WriteArdbInvXML() <NEW_LINE> sData = self._round_trip_obj(oWriter, CardSetWrapper(oPhysCardSe...
class for the ARDB inventory XML writer tests
62599085a8370b77170f1f1e
class ECKey(Key): <NEW_LINE> <INDENT> members = ["kty", "alg", "use", "kid", "crv", "x", "y", "d"] <NEW_LINE> longs = ['x', 'y', 'd'] <NEW_LINE> public_members = ["kty", "alg", "use", "kid", "crv", "x", "y"] <NEW_LINE> required = ['crv', 'key', 'x', 'y'] <NEW_LINE> def __init__(self, kty="EC", alg="", use="", kid="", k...
JSON Web key representation of a Elliptic curve key
62599085d8ef3951e32c8c07
class UartAdvertisement(Advertisement): <NEW_LINE> <INDENT> uuid = '7d2fd14b-8897-48de-9719-15aa4edb5d57' <NEW_LINE> def __init__(self, bus, index, local_name): <NEW_LINE> <INDENT> Advertisement.__init__(self, bus, index, "peripheral") <NEW_LINE> self.add_service_uuid(self.uuid) <NEW_LINE> self.add_local_name(local_nam...
Generic UUART advertisement.
625990855fcc89381b266f06
class KirillovReshetikhinGenericCrystal(AffineCrystalFromClassical): <NEW_LINE> <INDENT> def __init__(self, cartan_type, r, s, dual=None): <NEW_LINE> <INDENT> Parent.__init__(self, category=KirillovReshetikhinCrystals()) <NEW_LINE> if dual is None: <NEW_LINE> <INDENT> self._cartan_type = cartan_type <NEW_LINE> <DEDENT>...
Generic class for Kirillov-Reshetikhin crystal `B^{r,s}` of the given type. Input is a Dynkin node ``r``, a positive integer ``s``, and a Cartan type ``cartan_type``.
6259908566673b3332c31f52
class TokenPrinter: <NEW_LINE> <INDENT> currentCol, currentLine = 0, 1 <NEW_LINE> lastIdentifier = parameters = 0 <NEW_LINE> encoding = "utf-8" <NEW_LINE> def __init__(self, writer): <NEW_LINE> <INDENT> self.writer = writer <NEW_LINE> <DEDENT> def printtoken(self, type, token, sCoordinates, eCoordinates, line): <NEW_LI...
Format a stream of tokens and intermediate whitespace, for pretty-printing.
625990854c3428357761be0d
class Personal_Key_Dialog(MacMozyUIBase): <NEW_LINE> <INDENT> parent_match = {'AXRole': 'AXWindow', 'AXTitle': "Save"} <NEW_LINE> elements =[] <NEW_LINE> elements.append(Element("btn_cancel", {'AXRole': 'AXButton', 'AXTitle': 'Cancel'}, parent_matcher=parent_match)) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> su...
description:
62599085656771135c48adda
class GoslingAgentWrapper(GoslingAgent, SharedInfo): <NEW_LINE> <INDENT> def __init__(self, name: str, team: int, index: int): <NEW_LINE> <INDENT> self.flush: bool = None <NEW_LINE> self.stack: List = None <NEW_LINE> self.index = index <NEW_LINE> super(GoslingAgentWrapper, self).__init__(name, team, index) <NEW_LINE> s...
"Gosling wrapper used to enable the use of Gosling routines together with the CCP model. :param name: The name of the drone as given by RLBOT. :param team: The team of the drone as given by RLBOT (0 for blue or 1 for orange). :param index: The unique index of the drone as given by RLBOT.
62599085f9cc0f698b1c6075
class _ITopicSubscriptionProxy: <NEW_LINE> <INDENT> __jsii_type__: typing.ClassVar[str] = "@aws-cdk/aws-sns.ITopicSubscription" <NEW_LINE> @jsii.member(jsii_name="bind") <NEW_LINE> def bind(self, topic: ITopic) -> "TopicSubscriptionConfig": <NEW_LINE> <INDENT> return jsii.invoke(self, "bind", [topic])
Topic subscription.
6259908563b5f9789fe86cbc
class ZoneToHandlerAcceptBagCreateSet(CreateViewSet): <NEW_LINE> <INDENT> queryset = CustomerBag.objects.all() <NEW_LINE> serializer_class = ZoneToHandlerAcceptSerializer <NEW_LINE> def create(self, request, *args, **kwargs): <NEW_LINE> <INDENT> self.response = {} <NEW_LINE> self.response['result'] = [] <NEW_LINE> seri...
Description: This class is used to create a Zone-Handler view set When handler receives the bag from zoner ( Zone->Handler => receive ) Author : Sakeer P Created At: 1st February 2018
625990855fcc89381b266f07
class command_grep(HoneyPotCommand): <NEW_LINE> <INDENT> def grep_get_contents(self, filename, match): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> contents = self.fs.file_contents(filename) <NEW_LINE> self.grep_application(contents, match) <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> self.errorWrite("grep: {}: No s...
grep command
625990857cff6e4e811b7596
class HitCount(models.Model): <NEW_LINE> <INDENT> hits = models.PositiveIntegerField(default=0) <NEW_LINE> modified = models.DateTimeField(auto_now=True) <NEW_LINE> content_type = models.ForeignKey( ContentType, related_name="content_type_set_for_%(class)s", on_delete=models.CASCADE) <NEW_LINE> object_pk = models.TextF...
Model that stores the hit totals for any content object.
62599085283ffb24f3cf53f5
class InteractiveInterpreter: <NEW_LINE> <INDENT> def __init__(self, locals=None): <NEW_LINE> <INDENT> if locals is None: <NEW_LINE> <INDENT> locals = {"__name__": "__console__", "__doc__": None} <NEW_LINE> <DEDENT> self.locals = locals <NEW_LINE> self.compile = CommandCompiler() <NEW_LINE> <DEDENT> async def runsource...
Base class for InteractiveConsole. This class deals with parsing and interpreter state (the user's namespace); it doesn't deal with input buffering or prompting or input file naming (the filename is always passed in explicitly).
6259908523849d37ff852c0f
class DMM(Module): <NEW_LINE> <INDENT> def __init__(self, dim: int, n_components: int) -> None: <NEW_LINE> <INDENT> super(DMM, self).__init__() <NEW_LINE> self._dim = dim <NEW_LINE> self._n_components = n_components <NEW_LINE> mixture_logits = torch.zeros((n_components,), dtype=torch.float) <NEW_LINE> self.mixture_logi...
Dirichlet Mixture Model Parameters ========== dim : ``int`` Dimension of the observed data. n_components : ``int`` Number of mixture components.
6259908599fddb7c1ca63b85
class StatusView(Resource, ParcelOrder): <NEW_LINE> <INDENT> @jwt_required <NEW_LINE> def put(self, parcel_id): <NEW_LINE> <INDENT> user_id = get_jwt_identity() <NEW_LINE> user = UserModel().get_user_by_id(user_id) <NEW_LINE> parcel = ParcelOrder().get_parcel_by_id(parcel_id) <NEW_LINE> if user and parcel: <NEW_LINE> <...
docstring for StatusView.
62599085a8370b77170f1f22
class SecretSetParameters(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'value': {'required': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'content_type': {'key': 'contentType', 'type': 'str'}, 'secret_attributes': {'key': ...
The secret set parameters. All required parameters must be populated in order to send to Azure. :ivar value: Required. The value of the secret. :vartype value: str :ivar tags: A set of tags. Application specific metadata in the form of key-value pairs. :vartype tags: dict[str, str] :ivar content_type: Type of the sec...
6259908563b5f9789fe86cbe
class MicrosoftBingSearch(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.header = api_request_header <NEW_LINE> self.img_search_url = img_search_url <NEW_LINE> self.current_query = "" <NEW_LINE> self.current_offset = 0 <NEW_LINE> self.query_threshold = kwargs.get('query_threshold') ...
Interact with Microsoft Bing Search API
6259908544b2445a339b7707
class DatePicker(TextInput): <NEW_LINE> <INDENT> pHint_x = NumericProperty(0.9) <NEW_LINE> pHint_y = NumericProperty(0.9) <NEW_LINE> pHint = ReferenceListProperty(pHint_x ,pHint_y) <NEW_LINE> format = StringProperty("%Y/%m/%d") <NEW_LINE> def __init__(self, touch_switch=False, *args, **kwargs): <NEW_LINE> <INDENT> supe...
Date picker is a textinput, if it focused shows popup with calendar which allows you to define the popup dimensions using pHint_x, pHint_y, and the pHint lists. The `format` property defines how the date is formatted in string using strftime() and strptime(). For example in kv: DatePicker: pHint: 0.7,0.4 text...
625990857cff6e4e811b7598
class IPsecEnforcerNotification(object): <NEW_LINE> <INDENT> process_fqdn = 'localhost' <NEW_LINE> process_port = 8082 <NEW_LINE> @classmethod <NEW_LINE> def listener(cls): <NEW_LINE> <INDENT> LOG.info("IPsec Enforcer Notification agent started") <NEW_LINE> ipsec_enforcer_socket = Listener((cls.process_fqdn, cls.proces...
This notification module notifies the IPSec enforcer about any new peer IPsec Enforcer registrations or new in modules to runs as a independent background process. This process is started by a custom command. The command name is 'ipsecenforcernotify'. This custom command is defined in 'management' module.
62599085091ae35668706797
class User(Model): <NEW_LINE> <INDENT> id = IDField() <NEW_LINE> query_id = TextField() <NEW_LINE> name = TextField() <NEW_LINE> contacts_statistics = MapField() <NEW_LINE> @staticmethod <NEW_LINE> def statistics_to_chart(data): <NEW_LINE> <INDENT> data = data['contacts_statistics'] <NEW_LINE> chart_data = {} <NEW_LINE...
User Class Model, extending from ```fireo.models.Model``` package. Attributes ---------- id : str User unique id composed by subject id given by google auth. name : str User display name. contacts_statistics : dict dictionary containg the statistics about contacts, in other words, contacts per domain, ...
625990855fc7496912d49016
class MultiDict: <NEW_LINE> <INDENT> def __init__(self, keylen): <NEW_LINE> <INDENT> if keylen < 10 or keylen > 26: <NEW_LINE> <INDENT> raise Exception('Error: unknown key length: {0:d}'.format(keylen)) <NEW_LINE> <DEDENT> self._dict = defaultdict(list) <NEW_LINE> self._keylen = keylen <NEW_LINE> <DEDENT> def __getitem...
A dict in which the values are lists.
62599085ec188e330fdfa402
class TurtleOpenLoop(TurtleKinematics): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> TurtleKinematics.__init__(self) <NEW_LINE> self.turtle_pose = Pose(x=0, y=0, theta=0) <NEW_LINE> <DEDENT> def move_untill(self, time, vel, ang): <NEW_LINE> <INDENT> now = rospy.get_time() <NEW_LINE> wait_time = now + tim...
Classe para o controle em malha aberta da tartaruga. O movimento da tartaruga deve se basear na cinematica classica: - Deslocamento = Velcidade x Tempo
625990854a966d76dd5f0a3c
@pytest.mark.crypto <NEW_LINE> class TestAes128Decrypt(object): <NEW_LINE> <INDENT> decrypted = ( (b'f\x00\xfd\x0f\x1av\n\x92\x1a\xb1|\xb4\xe0\xa7\xdd^', b'\x49\x00\x00\x00\x00\x00\x9f\x29\x28\x01\x00\x00\x00\x00\x00\x05'), (b'\xcf\x19c`\x19uP.9]?\xa40\x00\xa91', b')(\x01\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00...
Tests the implementation of the AES 128 decryption. lorawan.utils.aes128_decrypt decrypts a message using AES128.
62599085aad79263cf430311
class AccountHandler(Handler): <NEW_LINE> <INDENT> def render_front(self, error=""): <NEW_LINE> <INDENT> user = db.GqlQuery("SELECT * FROM User") <NEW_LINE> self.render("account.html", user=user) <NEW_LINE> <DEDENT> def get(self): <NEW_LINE> <INDENT> self.render_front()
Handler subclass for the "/account" extension.
6259908560cbc95b06365b17
class Topology(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'created_date_time': {'readonly': True}, 'last_modified': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'},...
Topology of the specified resource group. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: GUID representing the operation id. :vartype id: str :ivar created_date_time: The datetime when the topology was initially created for the resource group. :vartype created_date_...
625990857b180e01f3e49e10
class UnbindCmqDeadLetterRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.SourceQueueName = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.SourceQueueName = params.get("SourceQueueName") <NEW_LINE> memeber_set = set(params.keys()) <NEW_LINE> for...
UnbindCmqDeadLetter请求参数结构体
62599085167d2b6e312b8342
class CustomBuild(build_ext): <NEW_LINE> <INDENT> def run(self) -> None: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> subprocess.run(['wget', '--version'], check=True) <NEW_LINE> <DEDENT> except OSError: <NEW_LINE> <INDENT> raise RuntimeError( "Wget must be installed to build pyquest " ) <NEW_LINE> <DEDENT> try: <NEW_L...
Custom C builder
62599085e1aae11d1e7cf5bf
class QueryFilterAggregation(QueryAggregation): <NEW_LINE> <INDENT> def __init__(self, type: str, match: str, matching_results: int, *, aggregations: List['QueryAggregation'] = None) -> None: <NEW_LINE> <INDENT> self.type = type <NEW_LINE> self.match = match <NEW_LINE> self.matching_results = matching_results <NEW_LINE...
A modifier that will narrow down the document set of the sub aggregations it precedes. :attr str match: The filter written in Discovery Query Language syntax applied to the documents before sub aggregations are run. :attr int matching_results: Number of documents matching the filter. :attr List[QueryAggregation]...
625990857047854f46340f0d
class LibraryPackage(models.Model): <NEW_LINE> <INDENT> full_title = models.CharField(max_length=100) <NEW_LINE> description = models.TextField(null=True, blank=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.full_title
Model represents the library price package Example: Free, Premium, Mixed (Some premium & some free breakdowns)
625990855fdd1c0f98e5fad8
class GrowlMESender(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> import gntp.notifier <NEW_LINE> self.growl = gntp.notifier.GrowlNotifier( applicationName = "MacroServer", notifications = ["Key Modifier","Debug"], defaultNotifications = ["Key Modifier"], ) <NEW_LINE> se...
https://github.com/kfdm/gntp NB: You need to pip install --upgrade gntp, and then http://www.canebas.org/LWC/Tutorials/Growl_networking/
625990853617ad0b5ee07ca9
class MyghtyTemplatePlugin(object): <NEW_LINE> <INDENT> extension = "myt" <NEW_LINE> def __init__(self, extra_vars_func=None, options=None): <NEW_LINE> <INDENT> if options is None: <NEW_LINE> <INDENT> options = {} <NEW_LINE> <DEDENT> myt_opts = {} <NEW_LINE> for k, v in options.iteritems(): <NEW_LINE> <INDENT> if k.sta...
Myghty Template Plugin This Myghty Template Plugin varies from the official BuffetMyghty in that it will properly populate all the default Myghty variables needed and render fragments.
62599085aad79263cf430313
class MatchTUNNELID(MatchField): <NEW_LINE> <INDENT> name = 'tun_id' <NEW_LINE> oxm_field = OxmOfbMatchField.OFPXMT_OFB_TUNNEL_ID <NEW_LINE> def as_of_tlv(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> value = int(self.value) <NEW_LINE> mask = None <NEW_LINE> oxm_hasmask = False <NEW_LINE> <DEDENT> except ValueErr...
Match for tunnel id.
6259908550812a4eaa621971
class AlphaBetaAgent(MultiAgentSearchAgent): <NEW_LINE> <INDENT> def getAction(self, gameState): <NEW_LINE> <INDENT> action,value = self.maximizer(gameState, self.depth, -100000000, 100000000) <NEW_LINE> return action <NEW_LINE> <DEDENT> def maximizer(self,gameState,depth, alpha, betha): <NEW_LINE> <INDENT> if gameStat...
Your minimax agent with alpha-beta pruning (question 3)
62599085f9cc0f698b1c6078
class CleanupPlannerNode: <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> rospy.init_node("cleanup_planner_node") <NEW_LINE> self.pioneer = pioneer_wrapper.PioneerWrapper() <NEW_LINE> rospy.Subscriber("robot_pose", Pose2D, self.robot_pose_callback) <NEW_LINE> rospy.Subscriber("goal_pose", Pose2D, self.goal_pose_...
ROS node that spins a FSA to control for the cleanup task
62599085e1aae11d1e7cf5c0
class Summary: <NEW_LINE> <INDENT> def __init__(self, debug_logger: logging.Logger): <NEW_LINE> <INDENT> self.return_codes = [] <NEW_LINE> self.return_codes_frequencies = {} <NEW_LINE> self.return_codes_iterations = {int: []} <NEW_LINE> self.debug_logger = debug_logger <NEW_LINE> <DEDENT> def add_return_code(self, retu...
Class holding functionality of summary of the runner session. Return codes of each command are aggregated. A summary of frequencies and iterations can be printed and most frequent return code returned.
6259908571ff763f4b5e9307
class _SpinnakerRequestReadDataRequest(object): <NEW_LINE> <INDENT> def __init__(self, channel, region_id, start_address, space_to_be_read): <NEW_LINE> <INDENT> if not isinstance(channel, list): <NEW_LINE> <INDENT> self._channel = [channel] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self._channel = channel <NEW_LINE...
Contains a set of requests which refer to the channels used
625990857cff6e4e811b759c
class BaseSerializer(object): <NEW_LINE> <INDENT> def __init__(self, activity_class): <NEW_LINE> <INDENT> self.activity_class = activity_class <NEW_LINE> <DEDENT> def check_type(self, data): <NEW_LINE> <INDENT> if not isinstance(data, Activity): <NEW_LINE> <INDENT> raise ValueError('we only know how to dump activities'...
The base serializer class, only defines the signature for loads and dumps It serializes Activity objects
625990855fc7496912d49018
class ComponentTestGitRepository(GitRepository): <NEW_LINE> <INDENT> def submodule_status(self): <NEW_LINE> <INDENT> out, err, ret = self._git_inout('submodule', ['status'], capture_stderr=True) <NEW_LINE> if ret: <NEW_LINE> <INDENT> raise GitRepositoryError("Cannot get submodule status: %s" % err.strip()) <NEW_LINE> <...
Git repository class for component tests
62599085283ffb24f3cf53fb
class Constraint(object): <NEW_LINE> <INDENT> def __call__(self, w): <NEW_LINE> <INDENT> return w <NEW_LINE> <DEDENT> def get_config(self): <NEW_LINE> <INDENT> return {}
Constraint template
62599085dc8b845886d55115
class SequencingChemistry (DataEntityType): <NEW_LINE> <INDENT> _TypeDefinition = None <NEW_LINE> _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY <NEW_LINE> _Abstract = False <NEW_LINE> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'SequencingChemistry') <NEW_LINE> _XSDLocation = py...
A container for a set of analogs
62599085d486a94d0ba2db12
class UserViewSet(viewsets.ReadOnlyModelViewSet): <NEW_LINE> <INDENT> queryset = User.objects.all() <NEW_LINE> serializer_class = UserSerializer <NEW_LINE> lookup_field = "username"
This viewset automatically provides `list` and `detail` actions.
6259908544b2445a339b770a
class AeffServicePar: <NEW_LINE> <INDENT> def __init__(self,ebins,czbins,aeff_egy_par,aeff_coszen_par,**params): <NEW_LINE> <INDENT> logging.info('Initializing AeffServicePar...') <NEW_LINE> self.ebins = ebins <NEW_LINE> self.czbins = czbins <NEW_LINE> aeff_coszen_par_str = from_json(find_resource(aeff_coszen_par)) <NE...
Takes a .json file with the names of .dat files, and creates a dictionary of the 2D effective area in terms of energy and coszen, for each flavor (nue,nue_bar,numu,...) and interaction type (CC, NC) The final aeff dict for each flavor is in units of [m^2] in each energy/coszen bin.
625990857c178a314d78e998
class ColorLevelFormatter(logging.Formatter, object): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> colors = kwargs.pop('colors', None) <NEW_LINE> super(ColorLevelFormatter, self).__init__(*args, **kwargs) <NEW_LINE> if colors is not None: <NEW_LINE> <INDENT> self._level_color_mapping = d...
A formatter for colors.
62599085ad47b63b2c5a93ae
class BlogTest(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.client = Client() <NEW_LINE> <DEDENT> def _test_get(self, url, status_code, active_page=None, **kwargs): <NEW_LINE> <INDENT> response = self.client.get(url, **kwargs) <NEW_LINE> self.assertEqual(response.status_code, status_code) <N...
Test blog app
6259908566673b3332c31f5c
class RandomSampleCrop(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.sample_options = ( None, ) <NEW_LINE> <DEDENT> def __call__(self, image): <NEW_LINE> <INDENT> height, width, _ = image.shape <NEW_LINE> while True: <NEW_LINE> <INDENT> mode = random.choice(self.sample_options) <NEW_LINE> if...
Crop Arguments: img (Image): the image being input during training boxes (Tensor): the original bounding boxes in pt form labels (Tensor): the class labels for each bbox mode (float tuple): the min and max jaccard overlaps Return: (img, boxes, classes) img (Image): the cropped image ...
625990854c3428357761be17
class Checksum(ChecksumBase): <NEW_LINE> <INDENT> _check_result = None <NEW_LINE> _check_result_littleendian = None <NEW_LINE> def __init__(self, width, initvalue=0, byteorder='big'): <NEW_LINE> <INDENT> super(Checksum, self).__init__(initvalue, byteorder) <NEW_LINE> width = int(width) <NEW_LINE> if width <= 0 or width...
General additive checksum. Args: width (int): bit width of checksum. Must be positive and a multiple of 8. initvalue (int): Initial value. If None then the default value for the class is used. byteorder ('big' or 'little'): byte order (endianness) used when reading the input bytes.
6259908550812a4eaa621973
class CheckForStrUnicodeExc(BaseASTChecker): <NEW_LINE> <INDENT> CHECK_DESC = ('N325 str() and unicode() cannot be used on an ' 'exception. Remove or use six.text_type()') <NEW_LINE> def __init__(self, tree, filename): <NEW_LINE> <INDENT> super(CheckForStrUnicodeExc, self).__init__(tree, filename) <NEW_LINE> self.name...
Checks for the use of str() or unicode() on an exception. This currently only handles the case where str() or unicode() is used in the scope of an exception handler. If the exception is passed into a function, returned from an assertRaises, or used on an exception created in the same scope, this does not catch it.
62599085283ffb24f3cf53fd
class FPSDisplay: <NEW_LINE> <INDENT> update_period = 0.25 <NEW_LINE> def __init__(self, window): <NEW_LINE> <INDENT> from time import time <NEW_LINE> from pyglet.text import Label <NEW_LINE> self.label = Label('', x=10, y=10, font_size=24, bold=True, color=(127, 127, 127, 127)) <NEW_LINE> self.window = window <NEW_LIN...
Display of a window's framerate. This is a convenience class to aid in profiling and debugging. Typical usage is to create an `FPSDisplay` for each window, and draw the display at the end of the windows' :py:meth:`~pyglet.window.Window.on_draw` event handler:: window = pyglet.window.Window() fps_display = FP...
6259908599fddb7c1ca63b89
class RandomSummarizer(AbstractSummarizer): <NEW_LINE> <INDENT> def __call__(self, document, sentences_count): <NEW_LINE> <INDENT> sentences = document.sentences <NEW_LINE> ratings = self._get_random_ratings(sentences) <NEW_LINE> return self._get_best_sentences(sentences, sentences_count, ratings) <NEW_LINE> <DEDENT> d...
Summarizer that picks sentences randomly.
62599085167d2b6e312b8345
class InvalidChecksumError(TChannelError): <NEW_LINE> <INDENT> pass
Represent invalid checksum type in the message
625990854428ac0f6e65a08b
class MobileRedirectMiddleware(object): <NEW_LINE> <INDENT> def process_request(self, request): <NEW_LINE> <INDENT> domain = request.META.get('HTTP_HOST', '') <NEW_LINE> mobile_domain = settings.OPPS_DOMAIN_MOBILE <NEW_LINE> current_cookie = request.COOKIES.get('template_mode', None) <NEW_LINE> template_mode = request....
Allows setting and deleting of cookies from requests in exactly the same way as responses. request.set_cookie('name', 'value') The set_cookie and delete_cookie are exactly the same as the ones built into the Django HttpResponse class. http://docs.djangoproject.com/en/dev/ref/request-response /#django.http.HttpRe...
625990852c8b7c6e89bd5343
class Experience(models.Model): <NEW_LINE> <INDENT> id = models.UUIDField(primary_key=True, editable=False, default=uuid.uuid4) <NEW_LINE> place = models.CharField('work place', max_length=120) <NEW_LINE> title = models.CharField(max_length=120) <NEW_LINE> description = models.TextField(blank=True) <NEW_LINE> start = m...
Work experience history.
6259908555399d3f05628072
class FrozenLakeQlearningBrain( Brain ): <NEW_LINE> <INDENT> def __init__( self, n_states, n_actions, epsilon = 0.5, gamma = 0.9, learning_rate = 0.1 ): <NEW_LINE> <INDENT> super().__init__( n_states, n_actions ) <NEW_LINE> self._epsilon = epsilon <NEW_LINE> self._gamma = gamma <NEW_LINE> self._learning_rate = learning...
FrozenLake の Brain ・経路選択ロジックは、Q学習 [public] [protected] 変数名の前にアンダースコア _ を付ける _q_function : list<float> / shape = [n_states, n_actions] 行動状態関数 Q(s,a) 行を状態 s, 列を行動 a とする表形式表現 _epsilon : <float> ε-greedy 法の ε 値 _gamma : <float> 割引利得の γ 値 _learning_rate : <float> 学習率 [p...
62599085bf627c535bcb3031
class QueryBuilder: <NEW_LINE> <INDENT> def __init__(self, dois = None): <NEW_LINE> <INDENT> self.__dois = dois <NEW_LINE> <DEDENT> @property <NEW_LINE> def dois(self): <NEW_LINE> <INDENT> return self.__dois <NEW_LINE> <DEDENT> @dois.setter <NEW_LINE> def dois(self, dois): <NEW_LINE> <INDENT> self.__dois = dois <NEW_LI...
Creates the query string to send to Dimensions, using their Domain Specific Language. You can test the DSL here: https://app.dimensions.ai/dsl . It is documented here: http://docs.dimensions.ai/dsl/1.5.0/ At present, for the bare-minimum release, the query searches publications by DOI, using an or modifier to search ...
6259908523849d37ff852c19
class MockRecvServer(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, port): <NEW_LINE> <INDENT> self._sock = socket.socket() <NEW_LINE> self._sock.bind(('localhost', port)) <NEW_LINE> self._buf = BytesIO() <NEW_LINE> threading.Thread.__init__(self) <NEW_LINE> self.start() <NEW_LINE> <DEDENT> def run(self): <N...
Single threaded server accepts one connection and recv until EOF.
62599085167d2b6e312b8346
class Unpool3DLayer(lasagne.layers.Layer): <NEW_LINE> <INDENT> def __init__(self, incoming, scale_factor, **kwargs): <NEW_LINE> <INDENT> super(Unpool3DLayer, self).__init__(incoming, **kwargs) <NEW_LINE> self.scale_factor = (scale_factor, scale_factor, scale_factor) <NEW_LINE> <DEDENT> def get_output_shape_for(self, in...
please use the lasagne new API Note that this implementation: [1,2] --> [0,1,0,2], however the lasagne new Unpool3DLayer_new API get [1,0,2,0] based on the Upscale2DLayer ------------ usages: >>> x = T.tensor5() >>> p = T.iscalar() # integer >>> l_in = InputLayer((None,)*5, input_var=x) >>> l1 = Unpool3DLayer(l_i...
625990852c8b7c6e89bd5345
class ShowIsisSegmentRoutingPrefixSidMapSchema(MetaParser): <NEW_LINE> <INDENT> schema = { 'process_id': { Any(): { 'policy': { Any(): { 'sid': { Any(): { 'prefix': str, 'range': int, Optional('flags'): str, }, }, 'number_of_mapping_entries': int, }, } }, } }
Schema for: * show isis segment-routing prefix-sid-map active-policy * show isis segment-routing prefix-sid-map backup-policy
62599085283ffb24f3cf5400
class AttrDict(dict): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(AttrDict, self).__init__(*args, **kwargs) <NEW_LINE> self.__dict__ = self <NEW_LINE> for key, value in self.__dict__.items(): <NEW_LINE> <INDENT> if isinstance(value, dict): <NEW_LINE> <INDENT> self.__dict__[key] = ...
Dict as attribute trick.
62599085d486a94d0ba2db16
class Payment(models.Model): <NEW_LINE> <INDENT> customer=models.ForeignKey('Customer',verbose_name='缴费学员',related_name='payment',on_delete=models.CASCADE) <NEW_LINE> course=models.ForeignKey('Course',verbose_name='所报课程',related_name='payment',on_delete=models.CASCADE) <NEW_LINE> amount=models.PositiveIntegerField(verb...
缴费记录
625990855fcc89381b266f0d
class Graph: <NEW_LINE> <INDENT> def __init__(self, **kw_args): <NEW_LINE> <INDENT> super().__init__(**kw_args) <NEW_LINE> self._vertices = set() <NEW_LINE> self._pred = dict() <NEW_LINE> self._succ = dict() <NEW_LINE> <DEDENT> def vertices(self): <NEW_LINE> <INDENT> return iter(self._vertices) <NEW_LINE> <DEDENT> def ...
Basic graph class. This is an implementation of the graph protocol defined at http://pycog.codiecodemonkey.com/graph-protocol.html.
62599085aad79263cf43031a
class Manager(object, metaclass=abc.ABCMeta): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> verify_attribute(self, "options", dict) <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def run(self, options, *args, **kwargs): <NEW_LINE> <INDENT> raise NotImplementedError()
Base class of all managers
62599085099cdd3c636761aa
class TestDeleteCategory: <NEW_LINE> <INDENT> def test_not_authenticated(self, client, mock_category): <NEW_LINE> <INDENT> assert client.delete(f'/api/category/{mock_category.id}/delete').status_code == 401 <NEW_LINE> <DEDENT> def test_unauthorized(self, client, fake_auth, mock_category): <NEW_LINE> <INDENT> student = ...
Delete Category API.
625990857c178a314d78e99a
class Losses: <NEW_LINE> <INDENT> losses = [] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.losses = [] <NEW_LINE> <DEDENT> def addLoss(self, name, formula, **kwargs): <NEW_LINE> <INDENT> self.losses.append(Compound(name=name, formula=formula)) <NEW_LINE> <DEDENT> def hasLoss(self): <NEW_LINE> <INDENT> return...
An abstract class containing attributes and methods dealing with neutral losses of a compound. Attributes: losses (list): List of Compounds describing a neutral loss of a part of the molecule. Arguments: None
62599085aad79263cf43031b
class ClientSSHTransportDHGroupExchangeBaseCase(ClientSSHTransportBaseCase): <NEW_LINE> <INDENT> def test_KEXINIT_groupexchange(self): <NEW_LINE> <INDENT> self.proto.supportedKeyExchanges = [self.kexAlgorithm] <NEW_LINE> self.proto.dataReceived(self.transport.value()) <NEW_LINE> self.assertEqual(self.packets, [( transp...
Diffie-Hellman group exchange tests for SSHClientTransport.
62599085283ffb24f3cf5401
class Velocity: <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> <DEDENT> def __call__(self, oldValue, dt, index=None): <NEW_LINE> <INDENT> if index is None: <NEW_LINE> <INDENT> return oldValue + self.value * dt <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return oldValu...
A class that can be used as an integration function for Value and Vector. The given velocity should match the data type and number of elements. The velocity vector contents can be accessed transparently from this class.
625990854527f215b58eb750
class Order: <NEW_LINE> <INDENT> def __init__(self, user_name: str, city: str, postoffice: int, items: list, vehicle=None): <NEW_LINE> <INDENT> self.orderId = randint(100000000, 999999999) <NEW_LINE> self.user_name = user_name <NEW_LINE> self.location = Location(city, postoffice) <NEW_LINE> self.items = items <NEW_LINE...
Order class which contains all info about order and user
6259908597e22403b383ca59
class Project(models.GitHubCore): <NEW_LINE> <INDENT> CUSTOM_HEADERS = {"Accept": "application/vnd.github.inertia-preview+json"} <NEW_LINE> def _update_attributes(self, project): <NEW_LINE> <INDENT> self._api = project["url"] <NEW_LINE> self.body = project["body"] <NEW_LINE> self.created_at = self._strptime(project["cr...
Object representing a single project from the API. See http://developer.github.com/v3/projects/ for more details. .. attribute:: body The Markdown formatted text describing the project. .. attribute:: created_at A :class:`~datetime.datetime` representing the date and time when this project was created....
625990852c8b7c6e89bd5347
class SearchArgs(ma.Schema): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> strict = True <NEW_LINE> <DEDENT> name = Str(missing=None, strict=True) <NEW_LINE> exact = Bool(missing=False, strict=True, required=False) <NEW_LINE> @validates_schema(pass_original=True) <NEW_LINE> def check_unknown_fields(self, data, or...
Read in arguments for searching
62599085dc8b845886d5511b
class Folder(models.Model, Serializer): <NEW_LINE> <INDENT> title = models.CharField(max_length=80) <NEW_LINE> user = models.ForeignKey( User, related_name='folders', on_delete=models.CASCADE ) <NEW_LINE> parent = models.ForeignKey( 'self', related_name='subfolders', null=True, blank=True, on_delete=models.CASCADE ) <N...
Folder is a container for notepads or other folders
625990857cff6e4e811b75a4
class Square: <NEW_LINE> <INDENT> def __init__(self, size=0): <NEW_LINE> <INDENT> if isinstance(size, int): <NEW_LINE> <INDENT> if size < 0: <NEW_LINE> <INDENT> raise ValueError("size must be >= 0") <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.__size = size <NEW_LINE> <DEDENT> <DEDENT> elif not isinstance(size, i...
Sq Class defines sq by size, a private instance attribute
62599085aad79263cf43031c
class TestCreateLock(unittest.TestCase): <NEW_LINE> <INDENT> def test_create_lock(self): <NEW_LINE> <INDENT> xml = creator.create_lock() <NEW_LINE> self.assertEqual(xml, '<lockinfo xmlns="DAV:"><lockscope>' '<exclusive /></lockscope><locktype><write />' '</locktype></lockinfo>') <NEW_LINE> <DEDENT> def test_create_ille...
Test creator.create_lock function.
62599085be7bc26dc9252c07
class App: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.root = build_root_window() <NEW_LINE> self.time_label = tk.Label(text="", font=( "Mono", 18), bg="black", fg="orange") <NEW_LINE> self.time_label.pack() <NEW_LINE> Hovertip(self.time_label, date.today()) <NEW_LINE> self.root.geometry("+20+20") ...
Application object for the clock.
62599085aad79263cf43031d
class TFChainTypeFactory: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._transaction_factory = TransactionFactory() <NEW_LINE> self._fulfillment_factory = FulfillmentFactory() <NEW_LINE> self._condition_factory = ConditionFactory() <NEW_LINE> self._threebot_types_factory = ThreeBotTypesFactory() <NEW...
TFChain Types Factory class
62599085a8370b77170f1f2f
class UserChangeForm(forms.ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = User <NEW_LINE> fields = ['username', 'email']
Форма для обновления данных пользователей. Нужна только для того, чтобы не видеть постоянных ошибок "Не заполнено поле password" при обновлении данных пользователя.
62599085283ffb24f3cf5404
class TestOuterString(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 testOuterString(self): <NEW_LINE> <INDENT> pass
OuterString unit test stubs
62599085d8ef3951e32c8c10
class WorkspaceForm(BorgModelForm): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(WorkspaceForm, self).__init__(*args, **kwargs) <NEW_LINE> if 'instance' in kwargs and kwargs['instance'] and kwargs['instance'].pk: <NEW_LINE> <INDENT> self.fields['name'].widget.attrs['readonly'] = T...
A form for Workspace Model
625990855fcc89381b266f0f
class GenericIdentityProvider(IdentityProvider): <NEW_LINE> <INDENT> def fetch_pubkey(self, euid): <NEW_LINE> <INDENT> eics = EICs.fetch(euid, PUBLIC_ID_SYMKEY, self.storage_providers)
Implements an access provider solely tasked with unlocking identities.
62599085d486a94d0ba2db1a
class Terminal: <NEW_LINE> <INDENT> def __init__(self, top_x, top_y, width, height, font_path, font_color, font_size, background_color, destination): <NEW_LINE> <INDENT> self.top_x = top_x <NEW_LINE> self.top_y = top_y <NEW_LINE> self.width = width <NEW_LINE> self.height = height <NEW_LINE> self.font_path = font_path <...
This class is responsible for the functionality of the message terminal on the bottom of the play screen (or anywhere you put it).
62599085ad47b63b2c5a93b6
class TestAmenity(unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.amenity = Amenity() <NEW_LINE> cls.amenity.name = "Breakfast" <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def teardown(cls): <NEW_LINE> <INDENT> del cls.amenity <NEW_LINE> <DEDENT> def tearDown...
this will test the Amenity class
625990854a966d76dd5f0a4a
class TodoSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Todo <NEW_LINE> fields = ( 'id', 'task', 'description', ) <NEW_LINE> read_only_fields = ('id',)
Serialize a todos
62599085adb09d7d5dc0c0c0
class PCA(BaseLearner, Transformer): <NEW_LINE> <INDENT> def __init__(self, n_components=0.95, tolerance=1.0e-9, max_iterations=1000): <NEW_LINE> <INDENT> BaseLearner.__init__(self) <NEW_LINE> Transformer.__init__(self) <NEW_LINE> self._n_components = n_components <NEW_LINE> self._tolerance = tolerance <NEW_LINE> self....
Principal component analysis
62599085dc8b845886d5511f
class OSError(Exception): <NEW_LINE> <INDENT> pass
OSError.
6259908576e4537e8c3f10e5
class IncorrectPageExpection(Exception): <NEW_LINE> <INDENT> pass
The expection should be thrown when the page cannot be displayed.
625990857cff6e4e811b75a8
class Person(core.XmlElement): <NEW_LINE> <INDENT> name = Name <NEW_LINE> email = Email <NEW_LINE> uri = Uri
A foundation class which atom:author and atom:contributor extend. A person contains information like name, email address, and web page URI for an author or contributor to an Atom feed.
62599085fff4ab517ebcf37c
class Bullet(Sprite): <NEW_LINE> <INDENT> def __init__(self, ai_settings, screen, ship): <NEW_LINE> <INDENT> super(Bullet,self).__init__() <NEW_LINE> self.screen = screen <NEW_LINE> self.rect = pygame.Rect(0,0,ai_settings.bullet_width, ai_settings.bullet_height) <NEW_LINE> self.rect.centerx = ship.rect.centerx <NEW_LIN...
Класс для управления пулями
625990855fc7496912d4901e
class DescribeProxyAndStatisticsListenersRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ProjectId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.ProjectId = params.get("ProjectId")
DescribeProxyAndStatisticsListeners request structure.
625990853317a56b869bf2f7
class BertTransformer(layers.Layer): <NEW_LINE> <INDENT> def __init__(self, hidden_size, seq_length, num_hidden_layers, num_attention_heads=12, intermediate_size=3072, attention_probs_dropout_prob=0.1, use_one_hot_embeddings=False, initializer_range=0.02, hidden_dropout_prob=0.1, use_relative_positions=False, hidden_ac...
Multi-layer bert transformer. Args: hidden_size (int): Size of the encoder layers. seq_length (int): Length of input sequence. num_hidden_layers (int): Number of hidden layers in encoder layers. num_attention_heads (int): Number of attention heads in encoder layers. Default: 12. intermediate_size (...
625990854c3428357761be21
class Future(object): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> raise NotImplementedError
Generic class to defer some work. Handled specially in RegexLexerMeta, to support regex string construction at first use.
62599085283ffb24f3cf5407
class DeleteUserFeedback(FeedbackUserMixin, DeleteView): <NEW_LINE> <INDENT> model = models.UserFeedback <NEW_LINE> success_url = reverse_lazy("feedback:user_feedback") <NEW_LINE> def get(self, *args, **kwargs): <NEW_LINE> <INDENT> return HttpResponseNotAllowed(["POST"])
View for deleting user feedback.
6259908560cbc95b06365b1f
class SimpleCacheBackend(BaseCacheBackend): <NEW_LINE> <INDENT> thumbnails = {} <NEW_LINE> def _get(self, thumbnail_name): <NEW_LINE> <INDENT> if thumbnail_name in self.thumbnails: <NEW_LINE> <INDENT> return self.thumbnails[thumbnail_name] <NEW_LINE> <DEDENT> <DEDENT> def _set(self, thumbnail_name, thumbnail): <NEW_LIN...
Cache backend that stores objects in a dict on the backend instance.
62599085dc8b845886d55121
class GameDetail(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=100) <NEW_LINE> platform = models.CharField(max_length=100) <NEW_LINE> shorthand_name = models.CharField(max_length=10) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.name + ' on ' + self.platform
This is the actual game definition. Should only have one instance per game per platform.
6259908563b5f9789fe86cd0
class BatchSamplerWithNegativeSamples(torch.utils.data.Sampler): <NEW_LINE> <INDENT> def __init__(self, pos_sampler, neg_sampler, batch_size, items): <NEW_LINE> <INDENT> self._pos_sampler = pos_sampler <NEW_LINE> self._neg_sampler = neg_sampler <NEW_LINE> self._items = items <NEW_LINE> assert batch_size % 2 == 0, 'Batc...
Samples batches where first half is positive, second half are negative. We discard the last batch and check that we never use the same positive and negative sample.
62599085a8370b77170f1f33
class ApiVersion(proto.Enum): <NEW_LINE> <INDENT> V2 = 0 <NEW_LINE> V1 = 1
Logging API version.
625990857c178a314d78e99e
class Page(Article): <NEW_LINE> <INDENT> pass
Holds information about an individual page.
625990855fdd1c0f98e5fae3
class Contact(BaseModel): <NEW_LINE> <INDENT> name: Optional[str] = None <NEW_LINE> url: Optional[AnyUrl] = None <NEW_LINE> email: Optional[str] = None <NEW_LINE> class Config: <NEW_LINE> <INDENT> extra = Extra.allow <NEW_LINE> schema_extra = { "examples": [ {"name": "API Support", "url": "http://www.example.com/suppor...
Contact information for the exposed API. See Also: - https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#contactObject
625990867cff6e4e811b75ac