code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class TestAddress(DatabaseTestCase): <NEW_LINE> <INDENT> address_test = {"street": "Slinko"} <NEW_LINE> def test_create(self): <NEW_LINE> <INDENT> country = Country.objects.get(pk=1) <NEW_LINE> city = City.objects.get(pk=2) <NEW_LINE> self.address_test['city'] = city <NEW_LINE> self.assert_create(Address, **self.addres...
Test Address model
62598efe3317a56b869bda30
class AWSRequest(object): <NEW_LINE> <INDENT> _REQUEST_PREPARER_CLS = AWSRequestPreparer <NEW_LINE> def __init__(self, method=None, url=None, headers=None, data=None, params=None, auth_path=None, stream_output=False): <NEW_LINE> <INDENT> self._request_preparer = self._REQUEST_PREPARER_CLS() <NEW_LINE> params = {} if pa...
Represents the elements of an HTTP request. This class was originally inspired by requests.models.Request, but has been boiled down to meet the specific use cases in botocore. That being said this class (even in requests) is effectively a named-tuple.
62598efefff4ab517ebcc16b
class getProduct_result(object): <NEW_LINE> <INDENT> def __init__(self, success=None, e=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> self.e = e <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and...
Attributes: - success - e
62598efe0fa83653e46f387a
class RouteFilter(Resource): <NEW_LINE> <INDENT> _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'etag': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type...
Route Filter Resource. Variables are only populated by the server, and will be ignored when sending a request. :param id: Resource ID. :type id: str :ivar name: Resource name. :vartype name: str :ivar type: Resource type. :vartype type: str :param location: Resource location. :type location: str :param tags: Resource...
62598efe23849d37ff84fa58
class Login(Resource): <NEW_LINE> <INDENT> parser = reqparse.RequestParser() <NEW_LINE> parser.add_argument('username', type=str, required=True, help='Please enter your username.', ) <NEW_LINE> parser.add_argument('password', type=str, required=True, help='Please enter your email.', ) <NEW_LINE> @classmethod <NEW_LINE>...
this class handles fetching a specific question and deleting it
62598efe5166f23b2e241d77
class ServerInfo(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._token = None <NEW_LINE> self._features = [] <NEW_LINE> self._applications = [] <NEW_LINE> <DEDENT> def add_feature(self, feature): <NEW_LINE> <INDENT> self._features.append(feature) <NEW_LINE> self._token = None <NEW_LINE> <DEDE...
Server info.
62598efeec188e330fdf7246
class EstimateDerivativeByrne2013: <NEW_LINE> <INDENT> @u.quantity_input(times=u.s, position=u.degree, error=u.degree) <NEW_LINE> def __init__(self, times, position, error, n_trials, window_length, polyorder, **savitsky_golay_kwargs): <NEW_LINE> <INDENT> self.times = times.to(u.s).value <NEW_LINE> self.position = posit...
An object that calculates the velocity and acceleration of a portion of the wavefront. The calculation is implemented using the Byrne et al 2013, A&A, 557, A96, 2013 approach. Parameters ---------- times : one-dimensional Quantity array of size nt with units convertible to seconds position : one-dimensional ...
62598efe7d847024c075ad63
class ImpacketPopen: <NEW_LINE> <INDENT> def __init__(self, hostname, username, password, domain): <NEW_LINE> <INDENT> server = PushySMB("*SMBSERVER", hostname) <NEW_LINE> server.login(username, password, domain) <NEW_LINE> tid_ipc = server.tree_connect_andx(r"\\*SMBSERVER\IPC$") <NEW_LINE> fid = server.open(tid_ipc, r...
SMB transport implementation which uses Impacket for connecting to a remote named pipe.
62598efedc8b845886d51f61
class UserScoreQuerySet(models.query.QuerySet): <NEW_LINE> <INDENT> def promoters(self) -> UserScoreQuerySet: <NEW_LINE> <INDENT> return self.filter(group=UserScore.GROUP_PROMOTER) <NEW_LINE> <DEDENT> def detractors(self) -> UserScoreQuerySet: <NEW_LINE> <INDENT> return self.filter(group=UserScore.GROUP_DETRACTOR) <NEW...
Custom UserScore queryset - calculates the NPS.
62598efe3317a56b869bda31
class ScrollText(Frame): <NEW_LINE> <INDENT> ok_button_label = 'OK / Go Back' <NEW_LINE> def __init__(self, root, restore_to, **options): <NEW_LINE> <INDENT> self.restore_to = restore_to <NEW_LINE> Frame.__init__(self, root) <NEW_LINE> self.text = Text(self, **options) <NEW_LINE> self.text.grid(column=0, row=0, sticky=...
A scrollable text (in the vertical direction)
62598efe2ae34c7f260a9a7d
class PostsView(LoginRequiredMixin, ListView): <NEW_LINE> <INDENT> login_url = '/' <NEW_LINE> redirect_field_name = 'redirect_to' <NEW_LINE> template_name = 'posts/posts.html' <NEW_LINE> def get_context_data(self): <NEW_LINE> <INDENT> all_posts = Post.objects.all().order_by('-id') <NEW_LINE> return {'posts': all_posts}...
Posts View.
62598efebf627c535bcafe0d
class _Base: <NEW_LINE> <INDENT> def __rmul__(self, other): <NEW_LINE> <INDENT> float(other) <NEW_LINE> return Fraction(other, self) <NEW_LINE> <DEDENT> def __add__(self, other): <NEW_LINE> <INDENT> if isinstance(other, _Base): <NEW_LINE> <INDENT> return Add(self, other) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> fl...
Base class
62598efecc0a2c111447999d
class SystemTool: <NEW_LINE> <INDENT> def mount(self, path=None): <NEW_LINE> <INDENT> if os.path.exists(path): <NEW_LINE> <INDENT> mount_result = run(['mount', path]) <NEW_LINE> if mount_result.returncode != 0: <NEW_LINE> <INDENT> print("Mounting failed") <NEW_LINE> return mount_result.returncode <NEW_LINE> <DEDENT> el...
Provides utilities to interact with the underlying system. Creates an object that is given temporary root access to execute very specific methods to interact with the underlying system architecture.
62598efef9cc0f698b1c479c
class TextCheckerTest(unittest.TestCase): <NEW_LINE> <INDENT> def mock_handle_style_error(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_init(self): <NEW_LINE> <INDENT> checker = TextChecker("foo.txt", self.mock_handle_style_error) <NEW_LINE> self.assertEquals(checker.file_path, "foo.txt") <NEW_LINE> self...
Tests TextChecker class.
62598efe76e4537e8c3edf55
class TestXmlNs0NamedDescribedResourceReference(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 testXmlNs0NamedDescribedResourceReference(self): <NEW_LINE> <INDENT> pass
XmlNs0NamedDescribedResourceReference unit test stubs
62598efe4f88993c371ef9b6
class ReducingState(MergingState[T, T]): <NEW_LINE> <INDENT> pass
:class:`State` interface for reducing state. Elements can be added to the state, they will be combined using a reduce function. The current state can be inspected. The state is accessed and modified by user functions, and checkpointed consistently by the system as part of the distributed snapshots. The state is only ...
62598efe283ffb24f3cf2246
class keyspace(namespace): <NEW_LINE> <INDENT> def __init__(self,ns=None): <NEW_LINE> <INDENT> if ns is None: <NEW_LINE> <INDENT> ns = {} <NEW_LINE> <DEDENT> super(keyspace,self).__init__(ns) <NEW_LINE> <DEDENT> def _replace_opcode(self, instr, frame): <NEW_LINE> <INDENT> Instr = bytecode.Instr <NEW_LINE> return super(...
WithHack sending assignments to a specified dict-like object. This WithHack permits a construct simlar to the "with" statement from Visual Basic or JavaScript. Inside a namespace context, all local variable accesses are actually accesses to the keys of that object. >>> import sys >>> with keyspace(sys.__dict...
62598efea05bb46b38489211
class GeoLocation(): <NEW_LINE> <INDENT> def __init__(self, api_key): <NEW_LINE> <INDENT> self.api_key = api_key <NEW_LINE> <DEDENT> def getLatLong(self, address): <NEW_LINE> <INDENT> raise NotImplementedError("Subclass must implement abstract method")
Abstract class containing geo-location methods
62598efe4a966d76dd5ed86f
class ReviewRevoke(ShellCommand, ReviewShellUI, ChangeStateOptions): <NEW_LINE> <INDENT> cmd = 'revoke' <NEW_LINE> func = call(ReviewShellUI.controller.change_review_state) <NEW_LINE> func_defaults = {'method': 'revoke', 'item_selector_factory': ItemSelectorFactory}
Revoke a specific review. If no message is specified $EDITOR is opened. Example: revoke [--message MESSAGE]
62598efe5fc7496912d47740
class Geodata: <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> self.city = City(data['city']) <NEW_LINE> self.country = Country(data['country'], data['country_code']) <NEW_LINE> self.continent = Continent(data['continent'], data['continent_code']) <NEW_LINE> self.location = Location(data['latitude'], ...
data - dictionary of geographic info
62598efe60cbc95b06362ccc
class DummyWorkItem(WorkItem, fromTable(schema.DUMMY_WORK_ITEM)): <NEW_LINE> <INDENT> def doWork(self): <NEW_LINE> <INDENT> return DummyWorkDone.create(self.transaction, workID=self.workID, aPlusB=self.a + self.b)
Sample L{WorkItem} subclass that adds two integers together and stores them in another table.
62598efea8370b77170eed80
class TokenManager(object): <NEW_LINE> <INDENT> def __init__(self, client): <NEW_LINE> <INDENT> self._client = client <NEW_LINE> <DEDENT> def revoke_token(self, token): <NEW_LINE> <INDENT> token_id = _calc_id(token) <NEW_LINE> headers = {'X-Subject-Token': token_id} <NEW_LINE> return self._client.delete('/auth/tokens',...
Manager class for manipulating Identity tokens.
62598efe167d2b6e312b5937
class BetterEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, obj): <NEW_LINE> <INDENT> if isinstance(obj, datetime.datetime): <NEW_LINE> <INDENT> return int(mktime(obj.timetuple())) <NEW_LINE> <DEDENT> if isinstance(obj, datetime.date): <NEW_LINE> <INDENT> return int(mktime(obj.timetuple())) <NEW_LINE> ...
Date/Time objects are not serializable by the built-in json library because there is no agreed upon standard of how to do so This class can be used as follows to allow your json.dumps to serialize dates properly. You should make sure your client is happy with this serialization: print json.dumps(obj, cls=BetterEnc...
62598efe97e22403b3839882
class SingletonAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> def add_view(self, *args, **kwargs): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> singleton = self.model.objects.get() <NEW_LINE> <DEDENT> except (self.model.DoesNotExist, self.model.MultipleObjectsReturned): <NEW_LINE> <INDENT> return super(SingletonAdmin, se...
Admin class for models that should only contain a single instance in the database. Redirect all views to the change view when the instance exists, and to the add view when it doesn't.
62598efe4c34283577618c84
class GradientBoostingClassifier_bench(Benchmark, Estimator, Predictor): <NEW_LINE> <INDENT> param_names = ['representation'] <NEW_LINE> params = (['dense', 'sparse'],) <NEW_LINE> def setup_cache(self): <NEW_LINE> <INDENT> super().setup_cache() <NEW_LINE> <DEDENT> def setup_cache_(self, params): <NEW_LINE> <INDENT> rep...
Benchmarks for GradientBoostingClassifier.
62598efe3317a56b869bda32
class ResourceDict(DataDict): <NEW_LINE> <INDENT> item_cls = Resource <NEW_LINE> key = "name" <NEW_LINE> def get_attr_matched_resources(self, specs, attrs): <NEW_LINE> <INDENT> return [x for x in self.q_get(specs) if x.match_attributes(attrs)]
A container for resources, keyed by name
62598efe4428ac0f6e656ee9
class ExportDialog(sized_controls.SizedDialog): <NEW_LINE> <INDENT> title = 'Override in subclass' <NEW_LINE> section = 'export' <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.window = args[0] <NEW_LINE> self.settings = kwargs.pop('settings') <NEW_LINE> super(ExportDialog, self).__init__(title...
Base class for all export dialogs. Use control classes below to add features.
62598efe5fdd1c0f98e5c941
class TextWrapper(textwrap.TextWrapper): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> <DEDENT> def shorten(self, text): <NEW_LINE> <INDENT> wrapped_text = self.wrap(' '.join(text.strip().split())) <NEW_LINE> if len(wrapped_text) > 1: <NEW_LINE> <INDENT> sho...
Custom subclass that uses a different word splitter.
62598efefff4ab517ebcc16f
class PollAddForm(PollEditForm): <NEW_LINE> <INDENT> start = forms.DateTimeField(required=False) <NEW_LINE> valid_groups = forms.ModelChoiceField( queryset=Group.objects.all().exclude(name='Mozillians'), error_messages={'required': 'Please select an option from the list.'}) <NEW_LINE> def __init__(self, *args, **kwargs...
Poll Add Form.
62598efe21bff66bcd7215f2
class AssetResponse(object): <NEW_LINE> <INDENT> openapi_types = { 'data': 'Asset' } <NEW_LINE> attribute_map = { 'data': 'data' } <NEW_LINE> def __init__(self, data=None, local_vars_configuration=None): <NEW_LINE> <INDENT> if local_vars_configuration is None: <NEW_LINE> <INDENT> local_vars_configuration = Configuratio...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62598efef9cc0f698b1c479d
class OkBox(Container): <NEW_LINE> <INDENT> def __init__(self, message): <NEW_LINE> <INDENT> Container.__init__(self, str(id(self)), padding = 5) <NEW_LINE> linecount = 0 <NEW_LINE> for line in message.split("\n"): <NEW_LINE> <INDENT> self.sub(Label("message-line_{}".format(linecount), line, pygame.Rect((0, 0), (len(li...
A box which displays a message and an OK button. It is destroyed when OK is clicked. The message will be wrapped at newline characters.
62598efe67a9b606de544966
class DummyDevice(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.logger = logging.getLogger(self.__class__.__name__) <NEW_LINE> self.logger.setLevel(logging.INFO) <NEW_LINE> self.height = 4 <NEW_LINE> self.width = 20 <NEW_LINE> self._backlight_state = None <NEW_LINE> self._brightness_level = ...
A dummy device for tests on a dev station
62598efe23849d37ff84fa5c
class MCTSNode(object): <NEW_LINE> <INDENT> def __init__(self, parent, prob, c_uct=5.0): <NEW_LINE> <INDENT> self.__parent = parent <NEW_LINE> self.__children = {} <NEW_LINE> self.__c_uct = c_uct <NEW_LINE> self.__action_prob = prob <NEW_LINE> self.__action_q = 0.0 <NEW_LINE> self.__action_n = 0 <NEW_LINE> <DEDENT> def...
蒙特卡洛树搜索节点
62598efe627d3e7fe0e0582b
class Rectangle: <NEW_LINE> <INDENT> number_of_instances = 0 <NEW_LINE> print_symbol = "#" <NEW_LINE> def __init__(self, width=0, height=0): <NEW_LINE> <INDENT> self.width = width <NEW_LINE> self.height = height <NEW_LINE> Rectangle.number_of_instances += 1 <NEW_LINE> <DEDENT> @property <NEW_LINE> def width(self): <NEW...
Show the attribute of rectangle
62598efef548e778e5969f23
class CGIXMLRPCRequestHandler(SimpleXMLRPCDispatcher): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> SimpleXMLRPCDispatcher.__init__(self) <NEW_LINE> <DEDENT> def handle_xmlrpc(self, request_text): <NEW_LINE> <INDENT> response = self._marshaled_dispatch(request_text) <NEW_LINE> print('Content-Type: text/x...
Simple handler for XML-RPC data passed through CGI.
62598efe44b2445a339b5e3e
class TestInstall(RAConfigurationIntegrationTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.portal = self.layer['portal'] <NEW_LINE> <DEDENT> def test_product_installed(self): <NEW_LINE> <INDENT> qi = getToolByName(self.portal, 'portal_quickinstaller') <NEW_LINE> self.assertTrue(qi.isProductIns...
Test installation of raptus.article.configuration into Plone.
62598efe091ae356687035b7
class CeleryResult(Model, ReaperMixin): <NEW_LINE> <INDENT> collection_name = 'celery_taskmeta' <NEW_LINE> unique_indices = tuple() <NEW_LINE> @classmethod <NEW_LINE> def reap_old_documents(cls, config_days): <NEW_LINE> <INDENT> last_valid_date_done = datetime.utcnow() - timedelta(days=config_days) <NEW_LINE> collectio...
Model reference to the Celery Results backend.
62598efed486a94d0ba2a967
class NumberType(_ApiType): <NEW_LINE> <INDENT> __slots__ = ('_format',) <NEW_LINE> def __init__(self, value_format): <NEW_LINE> <INDENT> self._format = value_format <NEW_LINE> <DEDENT> def Validate(self, method, path, value): <NEW_LINE> <INDENT> if not isinstance(value, (int, long, float)): <NEW_LINE> <INDENT> raise V...
Represents a floating point number in the API type system.
62598efecc40096d616196a8
class Collection(Base): <NEW_LINE> <INDENT> __tablename__ = 'collection' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> user_id = Column(Integer, ForeignKey("user.id")) <NEW_LINE> name = Column(String) <NEW_LINE> description = Column(String) <NEW_LINE> user = relationship("User", back_populates="collectio...
The model class representing a single collection belonging to a single user account.
62598efead47b63b2c5a61b6
class Intent(object): <NEW_LINE> <INDENT> slit = 'intensity' <NEW_LINE> spec = 'specular' <NEW_LINE> back = 'background' <NEW_LINE> backp = 'background+' <NEW_LINE> backm = 'background-' <NEW_LINE> rockQ = 'rock qx' <NEW_LINE> rock3 = 'rock sample' <NEW_LINE> rock4 = 'rock detector' <NEW_LINE> none = 'unknown' <NEW_LIN...
Intent is one of the following: intensity: Normalization scan for computing absolute reflection specular: Specular intensity measurement background+: Background measurement, sample rotated background-: Background measurement, detector offset rock qx: Rocking curve with fixed Qz rock sample: Roc...
62598efe7c178a314d78be3a
class SessionTypes(messages.Enum): <NEW_LINE> <INDENT> WORKSHOP = 1 <NEW_LINE> LECTURE = 2 <NEW_LINE> KEYNOTE= 3 <NEW_LINE> UNKNOWN = 4
SessionTypes -- typeOfSession enumeration value
62598efe76e4537e8c3edf59
class Article(TranslatableModel): <NEW_LINE> <INDENT> translations = TranslatedFields( title = models.CharField("Title", max_length=200), slug = models.SlugField("Slug", unique=True), content = models.TextField() ) <NEW_LINE> published = models.BooleanField("Is published", default=False) <NEW_LINE> class Meta: <NEW_LIN...
Example translatable model.
62598efe956e5f7376df4b4a
class MemoryCache(CacheMixin): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.storage = {} <NEW_LINE> <DEDENT> def clean(self): <NEW_LINE> <INDENT> self.storage = {} <NEW_LINE> <DEDENT> def get(self, key): <NEW_LINE> <INDENT> state = self.storage.get(key) <NEW_LINE> if state is None: <NEW_LINE> <INDEN...
Simple cache which stores all the states in a dictionary. Note that continuous heavy use of the system with MemoryCache may lead to filling the memory, therefore this is not ideal for long running services.
62598efee5267d203ee6a2a1
class getWordList_args: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRING, 'wordlist', None, None, ), ) <NEW_LINE> def __init__(self, wordlist=None,): <NEW_LINE> <INDENT> self.wordlist = wordlist <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol.TBinaryProtoco...
Attributes: - wordlist
62598efee1aae11d1e7cdd12
class Function (Doc): <NEW_LINE> <INDENT> def __init__(self, name, module, func_obj, cls=None, method=False): <NEW_LINE> <INDENT> super(Function, self).__init__(name, module, inspect.getdoc(func_obj)) <NEW_LINE> self.func = func_obj <NEW_LINE> self.cls = cls <NEW_LINE> self.method = method <NEW_LINE> <DEDENT> @property...
Representation of documentation for a Python function or method.
62598efe099cdd3c636748a6
class ExportMonitor(EveryN): <NEW_LINE> <INDENT> @deprecated("2017-03-25", "ExportMonitor is deprecated. Please pass an " "ExportStrategy to Experiment instead.") <NEW_LINE> def __init__(self, every_n_steps, export_dir, input_fn=None, input_feature_key=None, exports_to_keep=5, signature_fn=None, default_batch_size=1): ...
Monitor that exports Estimator every N steps.
62598efe5fcc89381b2655f9
class TransactionInline(admin.TabularInline): <NEW_LINE> <INDENT> model = Transaction <NEW_LINE> verbose_name = "Transaction" <NEW_LINE> verbose_name_plural = "Transactions" <NEW_LINE> fields = ["hash", "idx"] <NEW_LINE> readonly_fields = ("hash", "idx") <NEW_LINE> show_change_link = True <NEW_LINE> class Media: <NEW_L...
TODO: tidy up with https://stackoverflow.com/a/5556813
62598efe2c8b7c6e89bd2161
class IntegerStat: <NEW_LINE> <INDENT> def __init__(self, max_value, init_value=None, AllowBelowZero=False, AllowAboveMax=False): <NEW_LINE> <INDENT> self.max_value = max_value <NEW_LINE> self.value = init_value if init_value else max_value <NEW_LINE> self.AllowBelowZero = AllowBelowZero <NEW_LINE> self.AllowAboveMax =...
Individual combat stat (health, power, etc) Keeps track of a single number with bounds
62598efe9c8ee8231303f62c
class MLJobResultViewSet( viewsets.GenericViewSet): <NEW_LINE> <INDENT> name = "mljob_result" <NEW_LINE> model = MLJobResult <NEW_LINE> queryset = MLJobResult.objects.all() <NEW_LINE> serializer_class = MLJobResultsSerializer <NEW_LINE> def get_permissions(self): <NEW_LINE> <INDENT> if self.request.method == 'POST': <N...
retrieve: Return a ML Job Result. list: Return recent ML Job Results create: Create a new ML Job Result delete: Remove an existing ML Job Result update: Update a ML Job Result
62598efe99fddb7c1ca622d1
class TagsView(ListingView): <NEW_LINE> <INDENT> def get_paginator_objects(self): <NEW_LINE> <INDENT> return self.realm.model.get_objects_in_category(self.kwargs['category_id']) <NEW_LINE> <DEDENT> def get_most_voted_objects(self): <NEW_LINE> <INDENT> return self.realm.model.get_most_voted_objects_in_category(self.kwar...
Список меток (категорий) для объекта.
62598efe5fc7496912d47742
class TestValidationOptionsValidator(object): <NEW_LINE> <INDENT> def test_no_default_validation_options(self): <NEW_LINE> <INDENT> value = '{"headers":3}' <NEW_LINE> assert_equals(validation_options_validator(value, {}), value) <NEW_LINE> <DEDENT> @change_config('ckanext.validation.default_validation_options', '{"deli...
Note: At the point this validator is run the value should already be a valid JSON string (ie `scheming_valid_json_object` has been run)
62598efe57b8e32f525075d1
class Init(SubCommand): <NEW_LINE> <INDENT> help = """initialize a site for first use""" <NEW_LINE> def add_arguments(self, parser): <NEW_LINE> <INDENT> parser.add_argument( "-l", "--location", dest="location", default=None, metavar="PATH", help="location of the Moya server code", ) <NEW_LINE> parser.add_argument( "-i"...
initialize a site for first use
62598efe7d847024c075ad69
class NoJSONFileFoundError(OSError): <NEW_LINE> <INDENT> pass
Represent a problem finding the input JSON file(s).
62598efedc8b845886d51f66
class ServiceConfigurationException(Exception): <NEW_LINE> <INDENT> pass
Exception thrown when a service cannot be instantiated because of a bad configuration.
62598efed486a94d0ba2a969
class TCPObject(_ObjectService): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> _ObjectService.__init__(self, name) <NEW_LINE> self.register_child(TCPUDPSubComnand('tcp'))
Model after 'object service service tcp object
62598efeff9c53063f519001
class Scope(object): <NEW_LINE> <INDENT> def __init__(self,title='',x=100,y=100,width=400,height=300): <NEW_LINE> <INDENT> self.idx=_data.Data.execute("JavaNewWindow($,-1)",title) <NEW_LINE> self.x=x <NEW_LINE> self.y=y <NEW_LINE> self.width=width <NEW_LINE> self.height=height <NEW_LINE> <DEDENT> def show(self): <NEW_L...
The Scope class utilizes the jScope java implementation to generate plots of MDSplus data
62598efe283ffb24f3cf224a
class VMIPInfoSchema(schema.ResponseSchema): <NEW_LINE> <INDENT> fields = { "IP": fields.Str(required=False, load_from="IP"), "IPVersion": fields.Str(required=False, load_from="IPVersion"), "InterfaceID": fields.Str(required=False, load_from="InterfaceID"), "IsElastic": fields.Str(required=False, load_from="IsElastic")...
VMIPInfo - UCloudStack虚拟机IP信息
62598efe5fdd1c0f98e5c946
class Score(): <NEW_LINE> <INDENT> def __init__(self,xpos,ypos,canvas=None): <NEW_LINE> <INDENT> self.t = 0 <NEW_LINE> self.x = xpos <NEW_LINE> self.y = ypos <NEW_LINE> <DEDENT> def inc(self,inc=100): <NEW_LINE> <INDENT> self.t = self.t + inc <NEW_LINE> return self.t <NEW_LINE> <DEDENT> def add_canvas(self,canvas): <NE...
The Score class is used for the scoring system in helicopter_game Constructor: Score(xpos,ypos,canvas=None) xpos,ypos: x and postion of high score text on the canvas canvas: the canvas object on which the score is displayed
62598efe67a9b606de54496a
class BowlingData(models.Model): <NEW_LINE> <INDENT> timetaken = models.IntegerField() <NEW_LINE> frame_num = models.CharField(max_length = 2) <NEW_LINE> velocity = models.ManyToManyField(InstantaenousVelocity) <NEW_LINE> distances = models.ManyToManyField(DistancePlot) <NEW_LINE> angles ...
Defines the model of the data values to be displayed
62598efeaad79263cf42d1b0
class RecipeViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Recipe.objects.all() <NEW_LINE> serializer_class = serializers.RecipeSerializer <NEW_LINE> authentication_classes = (TokenAuthentication,) <NEW_LINE> permission_classes = (IsAuthenticated,) <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> ...
Manage recipe in the database
62598efef548e778e5969f27
class NestedOrganizationalRoleGroupType(NestedMemberDNGroupType): <NEW_LINE> <INDENT> def __init__(self, name_attr="cn"): <NEW_LINE> <INDENT> super(NestedOrganizationalRoleGroupType, self).__init__( "roleOccupant", name_attr )
An LDAPGroupType subclass that handles groups of class OrganizationalRoleGroupType with nested group references.
62598efe656771135c48802b
class Scanner( object ): <NEW_LINE> <INDENT> def __init__( self, path ): <NEW_LINE> <INDENT> self._path = path <NEW_LINE> self._conf = dict( _conf ) <NEW_LINE> path_dir = os.path.dirname( self._path ) <NEW_LINE> if path_dir not in self._conf[ 'paths' ]: <NEW_LINE> <INDENT> self._conf[ 'paths' ].insert( 0, path_dir ) <N...
Provides an interface for defining dependency scanning techniques.
62598efe091ae356687035bb
class Deployment(Base, meta.InnoDBMix): <NEW_LINE> <INDENT> __tablename__ = "Deployment" <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> name = Column(String(255)) <NEW_LINE> description = Column(String(255)) <NEW_LINE> startDate = Column(DateTime) <NEW_LINE> endDate = Column(DateTime) <NEW_LINE> meta = re...
Table to hold information about deployments. :var integer id: deployment id (pk) :var string name: deployment name :var string description: deployment description :var DateTime startDate: deployment start date :var DateTime endDate: deployment end date :var list meta: *Backref:* all :class:`cogentviewer.models.ho...
62598efe3346ee7daa336b37
class RedisUserOperation(BaseRedis): <NEW_LINE> <INDENT> def __init__(self, db, redis): <NEW_LINE> <INDENT> super().__init__(db, redis)
the operation of save verification code regarding to redis
62598efe3317a56b869bda35
class OrderedUniqueLoader(loader): <NEW_LINE> <INDENT> NO_DUPE_SIBLINGS = ["stacks", "class_path"] <NEW_LINE> NO_DUPE_CHILDREN = ["stacks"] <NEW_LINE> def _error_mapping_on_dupe(self, node, node_name): <NEW_LINE> <INDENT> if isinstance(node, MappingNode): <NEW_LINE> <INDENT> mapping = {} <NEW_LINE> for n in node.value:...
Subclasses the given pyYAML `loader` class. Validates all sibling keys to insure no duplicates. Returns an OrderedDict instead of a Dict.
62598efe63b5f9789fe83b01
@configmapper.map("embeddings", "glove") <NEW_LINE> class GloveEmbedding(Module): <NEW_LINE> <INDENT> def __init__(self, embedding_matrix, padding_idx, static=True): <NEW_LINE> <INDENT> super(GloveEmbedding, self).__init__() <NEW_LINE> self.embedding = Embedding.from_pretrained(embedding_matrix) <NEW_LINE> self.embeddi...
Implement Glove based Word Embedding.
62598efe21bff66bcd7215f8
class XyzrnTest(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.structure = FromFilenameStructureParser('data/1A1X.pdb') <NEW_LINE> self.residues = einput(self.structure, 'R') <NEW_LINE> self.atoms = einput(self.structure, 'A') <NEW_LINE> self.residue8 = self.residues.values()[8] <NEW_LINE> sel...
Tests conversion of PDB files into the informal xyzrn format.
62598efea219f33f346c51d0
class DialogflowProjectsAgentIntentsBatchUpdateRequest(_messages.Message): <NEW_LINE> <INDENT> googleCloudDialogflowV2BatchUpdateIntentsRequest = _messages.MessageField('GoogleCloudDialogflowV2BatchUpdateIntentsRequest', 1) <NEW_LINE> parent = _messages.StringField(2, required=True)
A DialogflowProjectsAgentIntentsBatchUpdateRequest object. Fields: googleCloudDialogflowV2BatchUpdateIntentsRequest: A GoogleCloudDialogflowV2BatchUpdateIntentsRequest resource to be passed as the request body. parent: Required. The name of the agent to update or create intents in. Format: `projects/<P...
62598efe4f6381625f19898d
class ContextIface: <NEW_LINE> <INDENT> def query(self, handler_ctx, s=None, i=None): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def has_arg_docs(self, handler_ctx, s=None, i=None): <NEW_LINE> <INDENT> pass
This is a service-level docblock
62598efef9cc0f698b1c47a0
class Filter(object): <NEW_LINE> <INDENT> last_weight = 10 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._rules = [] <NEW_LINE> <DEDENT> def install_rule(self, func, ok_stop=False, weight=last_weight+1): <NEW_LINE> <INDENT> self._rules.append(Rule(func, ok_stop, weight)) <NEW_LINE> self.last_weight = weight +...
Filter good invest.
62598efeaad79263cf42d1b3
class Submissions: <NEW_LINE> <INDENT> def __init__(self, vmpaths): <NEW_LINE> <INDENT> self.vmpaths = vmpaths <NEW_LINE> <DEDENT> def _get_submission_config_fname(self, assignment, user): <NEW_LINE> <INDENT> sbroot = self.vmpaths.dir_cur_submission_root(assignment, user) <NEW_LINE> if not os.path.isdir(sbroot): <NEW_L...
A class to manipulate submissions from a given repository
62598efe656771135c48802d
class justServer(test_pb2_grpc.pushServerServicer): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ccObj = clientContext() <NEW_LINE> <DEDENT> def subscribe(self, req, cont): <NEW_LINE> <INDENT> print("Get Subscribed") <NEW_LINE> print(cont.peer()) <NEW_LINE> sys.stdout.write(">>") <NEW_LINE> sys.stdo...
just Server
62598efedc8b845886d51f6a
class Routerrole(extensions.ExtensionDescriptor): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def get_name(cls): <NEW_LINE> <INDENT> return "Role info for routing service" <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def get_alias(cls): <NEW_LINE> <INDENT> return ROUTERROLE_ALIAS <NEW_LINE> <DEDENT> @classmethod <NEW_LI...
Extension class to introduce role information for routers. This class is used by Neutron's extension framework to add role attribute to Neutron Routers implemented in virtual/physical appliances.
62598efea8370b77170eed88
class ClassificationModelEndpoint(ClassificationModel): <NEW_LINE> <INDENT> def __init__(self, verbosity=1, numLabels=3): <NEW_LINE> <INDENT> super(ClassificationModelEndpoint, self).__init__(verbosity, numLabels) <NEW_LINE> self.encoder = CioEncoder(cacheDir="./experiments/cache") <NEW_LINE> self.client = CorticalClie...
Class to run the survey response classification task with Cortical.io text endpoint encodings and classification system. From the experiment runner, the methods expect to be fed one sample at a time.
62598efe167d2b6e312b593f
class ErrorMsg(base_tests.SimpleProtocol): <NEW_LINE> <INDENT> def runTest(self): <NEW_LINE> <INDENT> logging.info("Running Error Msg test") <NEW_LINE> logging.info("Sending a Echo request with a version which is not supported by the switch") <NEW_LINE> request=ofp.message.echo_request() <NEW_LINE> request.version=0 <N...
Verify OFPT_ERROR msg is implemented When the header in the request msg contains a version field which is not supported by the switch , it generates OFPT_ERROR_msg with Type field OFPET_BAD_REQUEST and code field OFPBRC_BAD_VERSION
62598efed486a94d0ba2a96d
class PowerOnSpeed_Enum (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin): <NEW_LINE> <INDENT> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'PowerOnSpeed.Enum') <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location('C:\\Users\\IBM_ADMIN\\Desktop\\pmc.schema.pcm-8.8.2.2\\schema\\pcm\\Common...
62598efe851cf427c66b6c6c
class LoggerHelper(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_basic_logger(logger_name, level=logging.DEBUG): <NEW_LINE> <INDENT> logger = logging.getLogger(logger_name) <NEW_LINE> logger.setLevel(level) <NEW_LINE> return logger <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def add_stream_handler(logg...
Helper class for setting up a logger
62598efea219f33f346c51d2
class GCSServer(Application, wsgi_server.WsgiServer): <NEW_LINE> <INDENT> def __init__(self, host, port): <NEW_LINE> <INDENT> self._host = host <NEW_LINE> super(GCSServer, self).__init__((host, port), self) <NEW_LINE> <DEDENT> def start(self): <NEW_LINE> <INDENT> super(GCSServer, self).start() <NEW_LINE> logging.info('...
Serves API calls over HTTP.
62598efe3d592f4c4edb9893
class PushPopRemoval: <NEW_LINE> <INDENT> def filter(self, node): <NEW_LINE> <INDENT> return not has_name(node) <NEW_LINE> <DEDENT> def mutations(self, node): <NEW_LINE> <INDENT> res = [] <NEW_LINE> pairs = [] <NEW_LINE> stack = [] <NEW_LINE> for i in range(len(node)): <NEW_LINE> <INDENT> if node[i] == ['push']: <NEW_L...
Removes matching :code:`(push)(pop)` pairs. First tries successive pairs, distant ones later.
62598efe9f2886367281719a
class AsnReal(AsnBasicNode): <NEW_LINE> <INDENT> validOptions = ['range', 'mantissa', 'base', 'exponent', 'defaultValue', 'lineno', 'asnFilename'] <NEW_LINE> def __init__(self, **args: Any) -> None: <NEW_LINE> <INDENT> AsnBasicNode.__init__(self, args.get('asnFilename', '')) <NEW_LINE> self._name = "REAL" <NEW_LINE> se...
This class stores the semantic content of an ASN.1 REAL. Members: _name : the name of the type (or var) _range : a tuple containing the valid range for the integer or [] _baseRange, _mantissaRange, _exponentRange : single or double element tuples containing the allowed ranges ...
62598efebe7bc26dc9251336
@resource('/users/sendcode/email', _web=True) <NEW_LINE> class SendEmailCode(Resource): <NEW_LINE> <INDENT> def add_args(self): <NEW_LINE> <INDENT> super(SendEmailCode, self).add_args() <NEW_LINE> self.req.add_argument('email', type=unicode, required=True) <NEW_LINE> <DEDENT> @condom('send_email_code') <NEW_LINE> def p...
发送邮箱验证码
62598efe796e427e5384d140
class DeprecatedAttributes: <NEW_LINE> <INDENT> _deprecated_ = {} <NEW_LINE> def __getattribute__(self, key): <NEW_LINE> <INDENT> def get(k): <NEW_LINE> <INDENT> return object.__getattribute__(self, k) <NEW_LINE> <DEDENT> deprecated = get("_deprecated_") <NEW_LINE> if key in deprecated: <NEW_LINE> <INDENT> _deprecated_...
Mark a class attribute as deprecated
62598efedc8b845886d51f6c
class RoutePoint(object): <NEW_LINE> <INDENT> swagger_types = { 'type': 'str', 'coordinates': 'list[object]' } <NEW_LINE> attribute_map = { 'type': 'type', 'coordinates': 'coordinates' } <NEW_LINE> def __init__(self, type=None, coordinates=None): <NEW_LINE> <INDENT> self._type = None <NEW_LINE> self._coordinates = None...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598efe97e22403b383988c
@DatasetReader.register("simple_language_modeling") <NEW_LINE> class SimpleLanguageModelingDatasetReader(DatasetReader): <NEW_LINE> <INDENT> def __init__(self, tokenizer: Tokenizer = None, token_indexers: Dict[str, TokenIndexer] = None, max_sequence_length: int = None) -> None: <NEW_LINE> <INDENT> super().__init__(True...
Reads sentences, one per line, for language modeling. This does not handle arbitrarily formatted text with sentences spanning multiple lines. Parameters ---------- tokenizer : ``Tokenizer``, optional Tokenizer to use to split the input sentences into words or other kinds of tokens. Defaults to ``WordTokenizer(...
62598efe55399d3f05624ecc
@dataclass <NEW_LINE> class Raw: <NEW_LINE> <INDENT> text: str <NEW_LINE> def node(self): <NEW_LINE> <INDENT> return create_node('raw', self.text, [], {}) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def object(node): <NEW_LINE> <INDENT> return Raw(node.text)
Raw layer class
62598efe63b5f9789fe83b06
class IpAllocationListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[IpAllocation]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["IpAllocation"]] = None, next_link: Optional[str] = None, **kwar...
Response for the ListIpAllocations API service call. :param value: A list of IpAllocation resources. :type value: list[~azure.mgmt.network.v2020_08_01.models.IpAllocation] :param next_link: The URL to get the next set of results. :type next_link: str
62598efef9cc0f698b1c47a2
class HistPanel(wx.Panel): <NEW_LINE> <INDENT> def __init__(self, parent, hist=None, size=(256, 80), app=None): <NEW_LINE> <INDENT> wx.Panel.__init__ ( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = (size[0], size[1]+1), style = wx.TAB_TRAVERSAL ) <NEW_LINE> self.init_buf() <NEW_LINE> self.hist = None <...
HistCanvas: diverid from wx.core.Panel
62598efeadb09d7d5dc08f5c
class Spout(Component): <NEW_LINE> <INDENT> def initialize(self, storm_conf, context): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def ack(self, tup_id): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def fail(self, tup_id): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def next_tuple(self): <NEW_LINE> <INDENT> raise Not...
Base class for all pystorm spouts. For more information on spouts, consult Storm's `Concepts documentation <http://storm.apache.org/documentation/Concepts.html>`_.
62598efe956e5f7376df4b4e
class TestUSer(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.new_user = User(username = "Marvin",bio = "haha",password ="marvin") <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> User.query.delete() <NEW_LINE> Post.query.delete() <NEW_LINE> <DEDENT> def test_is_instance(se...
This is the class we will be using to test the users
62598efeaad79263cf42d1b7
@field_level_annotation('count') <NEW_LINE> class CountAnnotation(FieldLevelAnnotation): <NEW_LINE> <INDENT> def __init__(self, field, model): <NEW_LINE> <INDENT> FieldLevelAnnotation.__init__(self, field, model) <NEW_LINE> assert len(model.params) <= 1, '@count can have at most one parameter: %s' % field.name <...
@count is used for a field storing the number of items in another repreated field. In the latter case, user need to pass the field name as the parameter (e.g., @count(field)). Packet runtime automatically sets count in the respective field. Note: count cannot be overriden in the child classes.
62598efe9c8ee8231303f630
class MainWindow(System.Windows.Window): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Width = 300 <NEW_LINE> self.Height = 300 <NEW_LINE> grid = System.Windows.Controls.Grid() <NEW_LINE> self.Content = grid <NEW_LINE> self.Button1 = System.Windows.Controls.Button() <NEW_LINE> self.Button1.Content = ...
Class which represents a WPF main window.
62598efe4a966d76dd5ed87b
class MonthEnd(MonthOffset): <NEW_LINE> <INDENT> @apply_wraps <NEW_LINE> def apply(self, other): <NEW_LINE> <INDENT> n = self.n <NEW_LINE> _, days_in_month = tslib.monthrange(other.year, other.month) <NEW_LINE> if other.day != days_in_month: <NEW_LINE> <INDENT> other = other + relativedelta(months=-1, day=31) <NEW_LINE...
DateOffset of one month end
62598efe57b8e32f525075d5
class UserLog(object): <NEW_LINE> <INDENT> def __init__(self, user_id=None, total=None, adjusted_total=None, log=None): <NEW_LINE> <INDENT> self.swagger_types = { 'user_id': 'str', 'total': 'UserLogTotal', 'adjusted_total': 'UserLogTotal', 'log': 'list[OnCallInterval]' } <NEW_LINE> self.attribute_map = { 'user_id': 'us...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598efe7d847024c075ad71
class nodeMapParser(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._input_file_name = '' <NEW_LINE> self._messages = [] <NEW_LINE> <DEDENT> @property <NEW_LINE> def input_file_name(self): <NEW_LINE> <INDENT> return self._input_file_name <NEW_LINE> <DEDENT> @input_file_name.setter <NEW_LINE> d...
Parses ancestral states text files that are generated by the MEGA/MEGA-CC software as a part of Maximum Parsimony tree construction On success, call get_ancestral_states to a list of AncestralState objects generated from the ancestral states text file
62598efe3346ee7daa336b3a
class Model(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> raise NotImplentedError <NEW_LINE> <DEDENT> @property <NEW_LINE> def parameters(self): <NEW_LINE> <INDENT> raise NotImplentedError <NEW_LINE> <DEDENT> @parameters.setter <NEW_LINE> def parameters(self, value): <NEW_LINE> <INDENT> raise Not...
Abstract base-class for a Hebel model
62598efe1f5feb6acb1615fc
class SubFamilySerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = ant_models.SubFamily <NEW_LINE> fields = ('id', 'name') <NEW_LINE> read_only_fields = fields
Serializer for a sub family object.
62598efe21bff66bcd7215fe
class PlaneGame(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> print("游戏初始化...") <NEW_LINE> self.screen = pygame.display.set_mode(SCREEN_RECT.size) <NEW_LINE> self.clock = pygame.time.Clock() <NEW_LINE> self.__create_sprites() <NEW_LINE> pygame.time.set_timer(CREATE_ENEMY_EVENT, 1000) <NEW_LINE> p...
飞机大战主游戏
62598efea219f33f346c51d6
class User(db.Model): <NEW_LINE> <INDENT> __tablename__ = "users" <NEW_LINE> id = db.Column(db.Integer, primary_key=True, autoincrement=True) <NEW_LINE> email = db.Column(db.String(255), unique=True, nullable=False) <NEW_LINE> password = db.Column(db.String(255), nullable=False) <NEW_LINE> registered_on = db.Column(db....
Untuk mendeskripsikan tabel user
62598efefff4ab517ebcc17b
class RecipeSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> ingridient = serializers.PrimaryKeyRelatedField( many=True, queryset=Ingridient.objects.all() ) <NEW_LINE> tag = serializers.PrimaryKeyRelatedField( many=True, queryset=Tag.objects.all() ) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = Recipe ...
Serializer for recipe objects
62598efebf627c535bcafe1c
@enum.unique <NEW_LINE> class RC(enum.Enum): <NEW_LINE> <INDENT> unconfirmed = CvssEnumValue("UC", 0.9) <NEW_LINE> uncorroborated = CvssEnumValue("UR", 0.95) <NEW_LINE> confirmed = CvssEnumValue("C", 1.0) <NEW_LINE> not_defined = CvssEnumValue("ND", 1.0)
Report Confidence.
62598efef9cc0f698b1c47a3