code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ConfigurationDialog(QtGui.QDialog, Ui_configurationDialog): <NEW_LINE> <INDENT> def __init__(self, name, settings, configuration_page, parent): <NEW_LINE> <INDENT> QtGui.QDialog.__init__(self, parent) <NEW_LINE> self.setupUi(self) <NEW_LINE> self.uiTitleLabel.setText(name) <NEW_LINE> self.setWindowTitle(configura... | Configuration dialog implementation.
:param name: node template name
:param settings: node template settings
:param configuration_page: QWidget page
:param parent: parent widget | 62598fada79ad1619776a031 |
@register_command <NEW_LINE> class XFilesCommand(GenericCommand): <NEW_LINE> <INDENT> _cmdline_ = "xfiles" <NEW_LINE> _syntax_ = f"{_cmdline_} [FILE [NAME]]" <NEW_LINE> _example_ = f"\n{_cmdline_} libc\n{_cmdline_} libc IO_vtables" <NEW_LINE> @only_if_gdb_running <NEW_LINE> def do_invoke(self, argv: List[str]) -> None... | Shows all libraries (and sections) loaded by binary. This command extends the GDB command
`info files`, by retrieving more information from extra sources, and providing a better
display. If an argument FILE is given, the output will grep information related to only that file.
If an argument name is also given, the outp... | 62598fad4e4d5625663723f1 |
class PosListApiView(ListAPIView): <NEW_LINE> <INDENT> queryset = Post.objects.all() <NEW_LINE> serializer_class = PostSerializer <NEW_LINE> permission_classes = [AllowAny] | API view for posts list | 62598fad5166f23b2e2433a4 |
class MySQLConnector(DBConnector): <NEW_LINE> <INDENT> INSTANCE = None <NEW_LINE> connection = None <NEW_LINE> cursor = None <NEW_LINE> def __new__(cls): <NEW_LINE> <INDENT> if not cls.INSTANCE: <NEW_LINE> <INDENT> cls.INSTANCE = super().__new__(cls) <NEW_LINE> <DEDENT> return cls.INSTANCE <NEW_LINE> <DEDENT> def conne... | Connector for exection common MySQL database methods | 62598fad7cff6e4e811b59f8 |
class UserGroupPagedResponse(ModelNormal): <NEW_LINE> <INDENT> allowed_values = { } <NEW_LINE> validations = { } <NEW_LINE> additional_properties_type = None <NEW_LINE> _nullable = False <NEW_LINE> @cached_property <NEW_LINE> def openapi_types(): <NEW_LINE> <INDENT> lazy_import() <NEW_LINE> return { 'total': (int,), 'o... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
Attributes:
allowed_values (dict): The key is the tuple path to the attribute
and the for var_name this is (var_name,). The value is a dict
with a capitalized key describing the a... | 62598fad796e427e5384e75f |
class DepthwiseXGBPipeline(BaseXGBPipeline): <NEW_LINE> <INDENT> def __init__(self, y_col: str, model_dir: str = None, error_function: Callable = ErrorFunctions.log_loss(), include_cols: OptStrList = None, n_calls: int = 100, random_state: int = 0) -> None: <NEW_LINE> <INDENT> super(DepthwiseXGBPipeline, self).__init__... | Fit ensemble of gradient boosted regression trees.
Args:
y_col (str): Name of column denoting the prediction target.
model_dir (str): Path to directory to write fitted model and
hyper-parameters to.
included_cols (list of str, optional): Names of columns in the
local_data to consider during... | 62598fad283ffb24f3cf3858 |
class ViewPlugin(AdhocView): <NEW_LINE> <INDENT> view_name=_("Generic view plugin") <NEW_LINE> view_id='viewplugin' <NEW_LINE> tooltip=_("You should not ever see this tooltip...") <NEW_LINE> def __init__(self, controller=None, parameters=None): <NEW_LINE> <INDENT> super(ViewPlugin, self).__init__(controller=controller)... | Abstract class defining the interface of ViewPlugins.
=====================================================
The generic way of dealing with a ViewPlugin is to create an
instance of it, then call the get_widget () method to get the
corresponding Gtk widget.
In the advene framework, the view should be registered via
ca... | 62598fada219f33f346c67e2 |
class BotanicalPlantDeleteView(LoginRequiredMixin, PermissionRequiredMixin, View): <NEW_LINE> <INDENT> permission_required = ('botanical.add_botsystgenus') <NEW_LINE> def get(self, request, plant_id): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> plant = PlntLibraries.objects.get(id=plant_id) <NEW_LINE> <DEDENT> except ... | USUWANIE ROŚLINY
Widok usuwa istniejące rośliny z katalogu
get -Wyświetla szablon z informacjami o roślinie
post - Wyświetla szablon z informacjami oraz formularz usunięcia rośliny | 62598fad091ae35668704bea |
class EventDayModelAdmin(ModelAdmin): <NEW_LINE> <INDENT> model = EventDay <NEW_LINE> menu_label = "Event days" <NEW_LINE> menu_icon = "fa-calendar" <NEW_LINE> menu_order = 102 <NEW_LINE> add_to_settings_menu = False <NEW_LINE> exclude_from_explorer = True <NEW_LINE> list_display = ( "event_date_with_day", "partial_day... | Registrant model admin. | 62598fad76e4537e8c3ef579 |
class CreateCommentAPIView(APIView): <NEW_LINE> <INDENT> serializer_class = CommentCreateUpdateSerializer <NEW_LINE> permission_classes = [IsAuthenticated] <NEW_LINE> def post(self, request, slug, *args, **kwargs): <NEW_LINE> <INDENT> post = get_object_or_404(Post, slug=slug) <NEW_LINE> serializer = CommentCreateUpdate... | post:
Create a comment instnace. Returns created comment data
parameters: [slug, body] | 62598fad090684286d5936c2 |
class _ImageVersionItem(object): <NEW_LINE> <INDENT> def __init__(self, image_ver=None, composer_ver=None, airflow_ver=None): <NEW_LINE> <INDENT> if image_ver is not None: <NEW_LINE> <INDENT> iv_parts = image_ver.split('-', 4) <NEW_LINE> self.composer_ver = iv_parts[1] <NEW_LINE> self.airflow_ver = iv_parts[3] <NEW_LIN... | Class used to dissect and analyze image version components and strings. | 62598fadcc0a2c111447afdd |
class DynamicTypeField(models.Model): <NEW_LINE> <INDENT> TYPE_CHOICES = ( (u'varchar', u'Short Text (less than 255 characters)'), (u'text', u'Long Text'), (u'int', u'Integer'), (u'bool', u'Flag (Boolean)'), ) <NEW_LINE> TYPE_FIELDS = { 'varchar': models.CharField(max_length=255, blank=True, null=True, default=None), '... | A single, dynamically-defined field for customizing a model. | 62598fadbaa26c4b54d4f27f |
class Meta: <NEW_LINE> <INDENT> model_class = ConnectionTarget | ConnectionTargetSchema metadata. | 62598fad2c8b7c6e89bd3792 |
class UserNameNotFoundError(Error): <NEW_LINE> <INDENT> def __init__(self, message_type = "showerror", message = "Incorrect username!"): <NEW_LINE> <INDENT> super().__init__(message_type, message) | UserNameNotFoundError Exeption raised for errors in get_post_by_name function
Args:
Error (error.Error): Base class for custom errors | 62598fad3d592f4c4edbae98 |
class UNet_Colorization(nn.Module): <NEW_LINE> <INDENT> output_downscaled = 1 <NEW_LINE> module = UNetModule <NEW_LINE> def __init__(self, input_channels=3, filters_base=32, down_filter_factors=(1, 2, 4, 8, 16), up_filter_factors=(1, 2, 4, 8, 16), bottom_s=4, num_classes=1): <NEW_LINE> <INDENT> super(UNet_Colorization,... | Vanilla UNet.
Implementation from https://github.com/lopuhin/mapillary-vistas-2017/blob/master/unet_models.py | 62598fad009cb60464d014ed |
class Home(View): <NEW_LINE> <INDENT> def get(self, request): <NEW_LINE> <INDENT> return render(request, "home.html") | Homepage view. | 62598fad4428ac0f6e6584f1 |
class BYTreeIsomorphism(SageObject): <NEW_LINE> <INDENT> def __init__(self, A, B, f, eps): <NEW_LINE> <INDENT> self._domain = A <NEW_LINE> self._codomain = B <NEW_LINE> self._f = f <NEW_LINE> self._epsilon = eps <NEW_LINE> <DEDENT> def domain(self): <NEW_LINE> <INDENT> return self._domain <NEW_LINE> <DEDENT> def codoma... | Isomorphisms between BY trees, these are graph isomorphisms that preserve
the BY tree structure, and additionally assign an sign to each yellow
component of the tree.
EXAMPLES::
sage: from sage_cluster_pictures.cluster_pictures import BYTree, BYTreeIsomorphism
sage: T = BYTree()
sage: T.add_blue_vertex('v... | 62598fad91f36d47f2230e8c |
class FacebookUsername(models.Model): <NEW_LINE> <INDENT> post = models.ForeignKey(FacebookGame, related_name='facebook_username') <NEW_LINE> username = models.CharField(_('username'), max_length=255, choices=FacebookUserName.choices, default='empty') <NEW_LINE> x = models.PositiveIntegerField(_('x')) <NEW_LINE> y = mo... | The username options for a Facebook Game. | 62598fad7047854f4633f3a6 |
class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): <NEW_LINE> <INDENT> VERSION = 1 <NEW_LINE> CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_PUSH <NEW_LINE> async def async_step_user(self, user_input=None): <NEW_LINE> <INDENT> errors = {} <NEW_LINE> try: <NEW_LINE> <INDENT> if "ihc" not in self.hass.data: ... | Handle a config flow for IHC Viewer. | 62598fad6e29344779b00628 |
class PrepareFailure(PrepareResult): <NEW_LINE> <INDENT> def __init__(self, logs, statuses, errors, environ, overrides): <NEW_LINE> <INDENT> super(PrepareFailure, self).__init__(logs, statuses, environ, overrides) <NEW_LINE> self._errors = errors <NEW_LINE> <DEDENT> @property <NEW_LINE> def failed(self): <NEW_LINE> <IN... | Class describing the failed result of preparing the project to run. | 62598fadaad79263cf42e7a0 |
class Led: <NEW_LINE> <INDENT> def __init__(self, pin): <NEW_LINE> <INDENT> self.pin = pin <NEW_LINE> self.isOn = False <NEW_LINE> GPIO.setup(self.pin, GPIO.OUT) <NEW_LINE> <DEDENT> def on(self): <NEW_LINE> <INDENT> self.isOn = True <NEW_LINE> GPIO.output(self.pin, True) <NEW_LINE> <DEDENT> def off(self): <NEW_LINE> <I... | Class to represent a single, MONOCHROME LED. Recommended ports are 19, 17 | 62598fad8e7ae83300ee906f |
class Config: <NEW_LINE> <INDENT> SECRET_KEY = environ.get('SECRET_KEY') <NEW_LINE> SESSION_COOKIE_NAME = environ.get('SESSION_COOKIE_NAME') <NEW_LINE> STATIC_FOLDER = 'static' <NEW_LINE> TEMPLATES_FOLDER = 'templates' | Base config. | 62598fad1f037a2d8b9e40bb |
class CommitResponse(object): <NEW_LINE> <INDENT> def __init__(self, response, doc_service, sdf): <NEW_LINE> <INDENT> self.response = response <NEW_LINE> self.doc_service = doc_service <NEW_LINE> self.sdf = sdf <NEW_LINE> try: <NEW_LINE> <INDENT> if hasattr(response.content, 'decode') and not hasattr(response.content, ... | Wrapper for response to Cloudsearch document batch commit.
:type response: :class:`requests.models.Response`
:param response: Response from Cloudsearch /documents/batch API
:type doc_service: :class:`boto.cloudsearch.document.DocumentServiceConnection`
:param doc_service: Object containing the documents posted and me... | 62598fad7047854f4633f3a7 |
class DuplicateVendorIdError(CvError): <NEW_LINE> <INDENT> def __init__(self, stanza): <NEW_LINE> <INDENT> CvError.__init__(self, stanza) <NEW_LINE> self.msg = '%s' % self.stanza['vendorId'] <NEW_LINE> self.strict = 0 | When there exists more than one connected component of stanzas (through derivedFrom) with the same vendorId | 62598fadaad79263cf42e7a1 |
class HomeRedirectView(RedirectView): <NEW_LINE> <INDENT> permanent = True <NEW_LINE> def get_redirect_url(self, *args, **kwargs): <NEW_LINE> <INDENT> if self.request.user.is_authenticated: <NEW_LINE> <INDENT> return reverse('subscription_list') <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return reverse('plan_list') | Choose the right home page for logged in and logged out users. | 62598fadadb09d7d5dc0a557 |
class LocationViewSet(viewsets.ReadOnlyModelViewSet): <NEW_LINE> <INDENT> queryset = Location.objects.filter(point__isnull=False) <NEW_LINE> serializer_class = LocationSerializer | API endpoint that allows Locations to be viewed | 62598fad97e22403b383aeda |
class PathString(str): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> super(PathString, self).__init__(value) <NEW_LINE> self.full_path = value | Helper class so that the file name strings
can pick up a full_path attribute. | 62598fadd7e4931a7ef3c063 |
class Question(Timestamps): <NEW_LINE> <INDENT> content = models.CharField(max_length=256, unique=True) <NEW_LINE> categories = models.ManyToManyField(Category) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return f"{self.content}" <NEW_LINE> <DEDENT> def get_categories(self): <NEW_LINE> <INDENT> return ", ".join([... | model for card question:
how do you feel about etc... | 62598fad67a9b606de545f9a |
class TraceGenerator(ElementGenerator): <NEW_LINE> <INDENT> def __init__(self, source, attributes=None): <NEW_LINE> <INDENT> if attributes is None: <NEW_LINE> <INDENT> attributes, classifiers, extensions = dict(), dict(), dict() <NEW_LINE> omni = {"trace": dict(), "event": dict()} <NEW_LINE> attributes = { 'attributes'... | Generating trace class, representation for an event log.
Parameters
----------
source: iterable or list-like
Underlying generator.
attributes: dict, default `None`
Set of attributs, such as event log attributes, classifiers,
extensions and global trace and event definitions.
Examples
--------
First a si... | 62598fada219f33f346c67e4 |
class ChatPhoto(TelegramObject): <NEW_LINE> <INDENT> def __init__( self, small_file_id: str, small_file_unique_id: str, big_file_id: str, big_file_unique_id: str, bot: 'Bot' = None, **_kwargs: Any, ): <NEW_LINE> <INDENT> self.small_file_id = small_file_id <NEW_LINE> self.small_file_unique_id = small_file_unique_id <NEW... | This object represents a chat photo.
Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`small_file_unique_id` and :attr:`big_file_unique_id` are
equal.
Args:
small_file_id (:obj:`str`): Unique file identifier of small (160x160) chat photo. Th... | 62598fad091ae35668704bec |
class Project(models.Model): <NEW_LINE> <INDENT> WEB_CATEGORY = 1 <NEW_LINE> PROGRAMMING_CATEGORY = 2 <NEW_LINE> GAME_CATEGORY = 3 <NEW_LINE> CATEGORY_CHOICES = ((WEB_CATEGORY, 'Web Development'), (PROGRAMMING_CATEGORY, 'Programming'), (GAME_CATEGORY, 'Game Development'),) <NEW_LINE> PUBLISHED_CHOICES = ( (False, 'Save... | A project in the portfolio | 62598fad76e4537e8c3ef57b |
class ServiceHandlerBase(object): <NEW_LINE> <INDENT> url = None <NEW_LINE> service_type = None <NEW_LINE> name = "" <NEW_LINE> indexing_method = None <NEW_LINE> def __init__(self, url): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> <DEDENT> @property <NEW_LINE> def is_cascaded(self): <NEW_LINE> <INDENT> return True if... | Base class for remote service handlers
This class is not to be instantiated directly, but rather subclassed by
concrete implementations. The method stubs defined here must be implemented
in derived classes. | 62598faddd821e528d6d8f03 |
class Sip_Acc(object): <NEW_LINE> <INDENT> def __init__(self, Name, Passw=0, Dep=0, Number=0, Mailbox=0): <NEW_LINE> <INDENT> self.Name = Name <NEW_LINE> self.Passw = Passw <NEW_LINE> self.Dep = Dep <NEW_LINE> self.Number = Number <NEW_LINE> self.Mailbox = Mailbox | This is a class of sip users | 62598fadcb5e8a47e493c160 |
class PageLanguageUrl(InclusionTag): <NEW_LINE> <INDENT> name = 'page_language_url' <NEW_LINE> template = 'cms/content.html' <NEW_LINE> options = Options( Argument('lang'), ) <NEW_LINE> def get_context(self, context, lang): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> request = context['request'] <NEW_LINE> <DEDENT> ex... | Displays the url of the current page in the defined language.
You can set a language_changer function with the set_language_changer function in the utils.py if there is no page.
This is needed if you have slugs in more than one language. | 62598fadfff4ab517ebcd7b3 |
class AccessIPs(extensions.V3APIExtensionBase): <NEW_LINE> <INDENT> name = "AccessIPs" <NEW_LINE> alias = ALIAS <NEW_LINE> namespace = ("http://docs.openstack.org/compute/ext/" "os-access-ips/api/v3") <NEW_LINE> version = 1 <NEW_LINE> v4_key = '%s:access_ip_v4' % ALIAS <NEW_LINE> v6_key = '%s:access_ip_v6' % ALIAS <NEW... | Access IPs support. | 62598fadd486a94d0ba2bf9d |
class FloatValidator(Validator): <NEW_LINE> <INDENT> minimum = Typed(float) <NEW_LINE> maximum = Typed(float) <NEW_LINE> allow_exponent = Bool(True) <NEW_LINE> def validate(self, text): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> value = float(text) <NEW_LINE> <DEDENT> except ValueError: <NEW_LINE> <INDENT> return Fal... | A concrete Validator which handles floating point input.
This validator ensures that the text represents a floating point
number within a specified range. | 62598fad5fdd1c0f98e5df5b |
class OrderList(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'value': {'readonly': True}, 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[Order]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_... | List of order entities.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar value: The list of orders.
:vartype value: list[~azure.mgmt.databoxedge.v2020_09_01_preview.models.Order]
:ivar next_link: Link to the next set of results.
:vartype next_link: str | 62598fad009cb60464d014ef |
@admin.register(EpicMember) <NEW_LINE> class UserAdmin(UserAdmin): <NEW_LINE> <INDENT> fieldsets = [ ( None, { "fields": [ "username", "password", "first_name", "last_name", "email", "team", ] }, ), ( "Status", { "classes": [ "collapse", ], "fields": ["is_active", "is_staff", "is_superuser"], }, ), ( "Dates", { "fields... | Define the 'EpicMember' admin section behaviors & displays. | 62598fad6e29344779b0062a |
class Executor(object): <NEW_LINE> <INDENT> def execute(self, node): <NEW_LINE> <INDENT> if isinstance(node, DataAccess): <NEW_LINE> <INDENT> return self.execute_data_access(node) <NEW_LINE> <DEDENT> if isinstance(node, Aggregate): <NEW_LINE> <INDENT> return self.execute_aggregate(node) <NEW_LINE> <DEDENT> if isinstanc... | The Executor interface. ALL methods must be copied over (and implemented)
to an Executor implementation, including the first method below which sets
up the dynamic dispatcher. | 62598fad627d3e7fe0e06e7c |
@reversion.register(follow=['owner_type']) <NEW_LINE> @encoding.python_2_unicode_compatible <NEW_LINE> class Owner(AbstractBase, SequenceMixin): <NEW_LINE> <INDENT> name = models.CharField( max_length=100, unique=True, help_text="The name of owner e.g Ministry of Health.") <NEW_LINE> description = models.TextField( nul... | Entity that has exclusive legal rights to the facility.
For the master facility list, ownership especially for the faith-based
facilities is broadened to also include the body that coordinates
service delivery and health programs. Therefore, the Christian Health
Association of Kenya (CHAK), Kenya Episcopal Conference ... | 62598fadfff4ab517ebcd7b4 |
class EpitheliumSegmentation: <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self._args = kwargs <NEW_LINE> <DEDENT> @lazy_property <NEW_LINE> def datasets(self): <NEW_LINE> <INDENT> logger.info('loading epithelium dataset...') <NEW_LINE> folds = create_cv(**self._args) <NEW_LINE> datasets = np.a... | A cross-validation loader for the epithelium segmentation dataset.
| 62598fad01c39578d7f12d4e |
class PlainTextCommandRenderer(renderers.BaseRenderer): <NEW_LINE> <INDENT> shebang = '#!/usr/bin/env sh' <NEW_LINE> media_type = 'text/plain' <NEW_LINE> format = 'txt' <NEW_LINE> def render(self, data, media_type=None, renderer_context=None): <NEW_LINE> <INDENT> if isinstance(data, dict) and data.has_key('execute'): <... | Renders a single command object to a shell script | 62598fad63d6d428bbee277a |
class TestMultipleNormals(unittest.TestCase): <NEW_LINE> <INDENT> def runTest(self): <NEW_LINE> <INDENT> dir = N.array([[1, 1, -1], [-1, 1, -1], [-1, -1, -1], [1, -1, -1]]).T / math.sqrt(3) <NEW_LINE> normal = N.array([[0, 0, 1], [1, 0, 1], [1, 1, 1], [0, 1, 1]]).T / N.sqrt([1, 2, 3, 2]) <NEW_LINE> correct_reflection =... | When each ray has its own normal, each reflection uses the corresponding
normal | 62598fad10dbd63aa1c70b82 |
class FooterModule(PatchewModule): <NEW_LINE> <INDENT> name = "footer" <NEW_LINE> default_config = _default_config <NEW_LINE> def render_page_hook(self, request, context_data): <NEW_LINE> <INDENT> context_data.setdefault("footer", "") <NEW_LINE> context_data["footer"] += self.get_config_raw() | Documentation
-------------
This is a simple module to inject any HTML code into the page bottom. Can be
useful to add statistic code, etc..
The config is the raw HTML code to inject. | 62598fad60cbc95b0636431e |
class Main(BrowserView): <NEW_LINE> <INDENT> def _getRoot(self): <NEW_LINE> <INDENT> if not putils.base_hasattr(self, '_root'): <NEW_LINE> <INDENT> portal_url = getToolByName(self.context, 'portal_url') <NEW_LINE> portal = portal_url.getPortalObject() <NEW_LINE> obj = self.context <NEW_LINE> while aq_base(obj) is not a... | Main View
| 62598faddd821e528d6d8f04 |
class ArNMEAParser(object): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def __init__(self, name = "NMEA Parser"): <NEW_LINE> <INDENT> this = _AriaPy.new_ArNMEAParser(name) <NEW_LINE> try: self.thi... | Proxy of C++ ArNMEAParser class | 62598fad56b00c62f0fb2884 |
class Uncrustify(Package): <NEW_LINE> <INDENT> homepage = "http://uncrustify.sourceforge.net/" <NEW_LINE> url = "http://downloads.sourceforge.net/project/uncrustify/uncrustify/uncrustify-0.61/uncrustify-0.61.tar.gz" <NEW_LINE> version('0.67', '0c9a08366e5c97cd02ae766064e957de41827611') <NEW_LINE> version('0.61', '... | Source Code Beautifier for C, C++, C#, ObjectiveC, Java, and others. | 62598fadf7d966606f747fb5 |
class MissingError(Exception): <NEW_LINE> <INDENT> pass | Indicates something is missing | 62598fade76e3b2f99fd8a06 |
class Missing: <NEW_LINE> <INDENT> def __bool__(self): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> return isinstance(other, self.__class__) <NEW_LINE> <DEDENT> __nonzero__ = __bool__ <NEW_LINE> def __repr__(self): <NEW_LINE> <INDENT> return "<dynaconf.missing>" | Sentinel value object/singleton used to differentiate between ambiguous
situations where `None` is a valid value. | 62598fade5267d203ee6b8da |
class SetNode(ExprNode): <NEW_LINE> <INDENT> subexprs = ['args'] <NEW_LINE> type = set_type <NEW_LINE> is_set_literal = True <NEW_LINE> gil_message = "Constructing Python set" <NEW_LINE> def analyse_types(self, env): <NEW_LINE> <INDENT> for i in range(len(self.args)): <NEW_LINE> <INDENT> arg = self.args[i] <NEW_LINE> a... | Set constructor. | 62598fadac7a0e7691f724d9 |
class ModelData: <NEW_LINE> <INDENT> def __init__(self, dirname): <NEW_LINE> <INDENT> if not os.path.isdir(dirname): <NEW_LINE> <INDENT> raise ValueError("dirname needs to be a valid directory") <NEW_LINE> <DEDENT> files = os.listdir(dirname) <NEW_LINE> self.__meta_file = None <NEW_LINE> self.__data_files = {} <NEW_LIN... | Provides access to model meta and checkpoint files by index from a given directory | 62598fad435de62698e9bdc0 |
class ActiveVWProcess(): <NEW_LINE> <INDENT> _buffer = b'' <NEW_LINE> def __init__(self, command, port=DEFAULT_PORT): <NEW_LINE> <INDENT> self.vw_process = pexpect.spawn(command) <NEW_LINE> time.sleep(5) <NEW_LINE> self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) <NEW_LINE> connection_tries = 0 <NEW_LINE> ... | Class for spawning and interacting with a WV process
in active learning mode. This class implements a subset of the interface
of a pexpect.spawn() object so that it can be a drop-in replacement
for the VW.vw_process member. | 62598fadeab8aa0e5d30bd5c |
class AjaxSaveCusotmMarker(View): <NEW_LINE> <INDENT> def post(self, request, *args, **kwargs): <NEW_LINE> <INDENT> client_ip, is_routable = get_client_ip(request) <NEW_LINE> if BlockedIP.objects.filter(ip=client_ip).count() == 0: <NEW_LINE> <INDENT> form = CustomPlacemarkForm(request.POST) <NEW_LINE> if form.is_valid(... | Ajax - Save cusotm marker | 62598fadd268445f26639b6b |
class TimingRepeat(element.Element): <NEW_LINE> <INDENT> resource_type = "TimingRepeat" <NEW_LINE> def __init__(self, jsondict=None, strict=True, **kwargs): <NEW_LINE> <INDENT> self.boundsDuration = None <NEW_LINE> self.boundsPeriod = None <NEW_LINE> self.boundsRange = None <NEW_LINE> self.count = None <NEW_LINE> self.... | When the event is to occur.
A set of rules that describe when the event is scheduled. | 62598fad2c8b7c6e89bd3795 |
class LineTester(LineReceiver): <NEW_LINE> <INDENT> delimiter = b'\n' <NEW_LINE> MAX_LENGTH = 64 <NEW_LINE> def __init__(self, clock=None): <NEW_LINE> <INDENT> self.clock = clock <NEW_LINE> <DEDENT> def connectionMade(self): <NEW_LINE> <INDENT> self.received = [] <NEW_LINE> <DEDENT> def lineReceived(self, line): <NEW_L... | A line receiver that parses data received and make actions on some tokens.
@type delimiter: C{bytes}
@ivar delimiter: character used between received lines.
@type MAX_LENGTH: C{int}
@ivar MAX_LENGTH: size of a line when C{lineLengthExceeded} will be called.
@type clock: L{twisted.internet.task.Clock}
@ivar clock: cloc... | 62598fad45492302aabfc4a1 |
class IExternalizedObject(interface.Interface): <NEW_LINE> <INDENT> pass | A fully externalized object. | 62598fadfff4ab517ebcd7b5 |
class LoadingFailedNode: <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> self._parent = parent <NEW_LINE> self.children = [] <NEW_LINE> self.name = 'loading failed' <NEW_LINE> self.date_modified = '' <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> def __getite... | A node to represent failed loading of children | 62598fad16aa5153ce4004d2 |
class Serializable(object): <NEW_LINE> <INDENT> VERSION = 1 <NEW_LINE> @classmethod <NEW_LINE> def deserialize(cls, state): <NEW_LINE> <INDENT> ver = state.pop('version') <NEW_LINE> assert ver == cls.VERSION <NEW_LINE> return cls(**state) <NEW_LINE> <DEDENT> def serialize(self): <NEW_LINE> <INDENT> state = attr.asdict(... | Base class supplying basic serialization methods and
used to mark things that are intended to be serialzable.
By serializable, we mean 'able to be rendered to dict of base types'
such that this state can be easily pickled. | 62598fad91f36d47f2230e8e |
class InformationSetting: <NEW_LINE> <INDENT> def __init__(self, spliting_factor=0.8,mode= Mode.ALL, strategy = Strategy.DISKDA): <NEW_LINE> <INDENT> self.mode = mode <NEW_LINE> self.strategy = strategy <NEW_LINE> loadService=StaticDataService() <NEW_LINE> df= loadService.df <NEW_LINE> if(mode!=Mode.ALL and spliting_fa... | Abstract information setting class.
Attributes
----------
observation_space: gym.spaces object
The specification of the observation space under this setting. | 62598fad7c178a314d78d46d |
class DecodeImg(Transform): <NEW_LINE> <INDENT> def __init__(self, mode_x='RGB', mode_y=None): <NEW_LINE> <INDENT> self.mode_x,self.mode_y = mode_x,mode_y <NEW_LINE> <DEDENT> def apply(self, x): return x.convert(self.mode_x) <NEW_LINE> def apply_image(self, y): return y.convert(self.mode_x if self.mode_y is None ... | Convert regular image to RGB, masks to L mode. | 62598fad21bff66bcd722c37 |
class FiniteDimensionalAlgebraMorphism(RingHomomorphism_im_gens): <NEW_LINE> <INDENT> def __init__(self, parent, f, check=True, unitary=True): <NEW_LINE> <INDENT> A = parent.domain() <NEW_LINE> B = parent.codomain() <NEW_LINE> RingHomomorphism_im_gens.__init__(self, parent=parent, im_gens=f.rows(), check=check) <NEW_LI... | Create a morphism between two :class:`finite-dimensional algebras <FiniteDimensionalAlgebra>`.
INPUT:
- ``parent`` -- the parent homset
- ``f`` -- matrix of the underlying `k`-linear map
- ``unitary`` -- boolean (default: ``True``); if ``True`` and ``check``
is also ``True``, raise a ``ValueError`` unless ``A`` a... | 62598fad1b99ca400228f518 |
class Font(ABC): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def render(self) -> Any: <NEW_LINE> <INDENT> pass | Abstract interface for an event. | 62598fadadb09d7d5dc0a55b |
class Evaluator(metaclass=abc.ABCMeta): <NEW_LINE> <INDENT> @abc.abstractmethod <NEW_LINE> def __init__(self, interpreter=None, *, initial_context: Mapping=None) -> None: <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @property <NEW_LINE> @abc.abstractmethod <NEW_LINE> def context(self) -> Mapping: <NEW_LINE> <INDENT> ra... | Abstract base class for any evaluator.
An instance of this class defines what can be done with piece of codes
contained in a statechart (condition, action, etc.).
Notice that the execute_* methods are called at each step, even if there is no
code to execute. This allows the evaluator to keep track of the states that ... | 62598fad10dbd63aa1c70b84 |
class HuffmanTreeNode(object): <NEW_LINE> <INDENT> def __init__(self, value, possibility): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> self.possibility = possibility <NEW_LINE> self.left = None <NEW_LINE> self.right = None <NEW_LINE> self.Huffman = '' <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> ret... | 霍夫曼树结点 | 62598fadd7e4931a7ef3c067 |
class GetTaskInfoResponse(BaseFlowerClientResponse): <NEW_LINE> <INDENT> pass | A dict-like object as:
{
"root_id": "b4931472-3150-49a2-b33a-ea97d15190dd",
"result": null,
"children": [],
"uuid": "7d4d92db-39d0-4918-bd86-7ec243ba008d",
"clock": 7258101,
"exchange": null,
"routing_key": null,
"failed": null,
"state": "STARTED",
"client": null,
"parent_id": "b4931472-3150-49a2-... | 62598fad60cbc95b06364320 |
class Colors: <NEW_LINE> <INDENT> RED = '\x1B[38;5;196m' <NEW_LINE> GREEN = '\x1B[38;5;83m' <NEW_LINE> ORANGE = '\x1B[38;5;214m' <NEW_LINE> ENDC = '\x1B[0m' | Color enum | 62598fad55399d3f056264f5 |
class NodeServer(csi_pb2_grpc.NodeServicer): <NEW_LINE> <INDENT> def NodePublishVolume(self, request, context): <NEW_LINE> <INDENT> start_time = time.time() <NEW_LINE> hostvol = request.volume_context.get("hostvol", "") <NEW_LINE> pvpath = request.volume_context.get("path", "") <NEW_LINE> pvtype = request.volume_contex... | NodeServer object is responsible for handling host
volume mount and PV mounts.
Ref:https://github.com/container-storage-interface/spec/blob/master/spec.md | 62598fad99cbb53fe6830ea9 |
class InputOutput(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.reset() <NEW_LINE> <DEDENT> def get_dictionary(self): <NEW_LINE> <INDENT> return self.dictionary <NEW_LINE> <DEDENT> def set_dictionary(self, dictionary): <NEW_LINE> <INDENT> self.dictionary = dictionary <NEW_LINE> <DEDENT> def ... | database class | 62598fad4e4d5625663723f7 |
class UIEventSyntheticProvider(NSObject.NSObjectSyntheticProvider): <NEW_LINE> <INDENT> def __init__(self, value_obj, internal_dict): <NEW_LINE> <INDENT> super(UIEventSyntheticProvider, self).__init__(value_obj, internal_dict) <NEW_LINE> self.type_name = "UIEvent" <NEW_LINE> self.register_child_value("timestamp", ivar_... | Class representing UIEvent. | 62598fade76e3b2f99fd8a08 |
class IMemberSite(form.Schema): <NEW_LINE> <INDENT> pass | Schema interface for MemberSite | 62598fad8e7ae83300ee9074 |
class Song(object): <NEW_LINE> <INDENT> def __init__(self, json_dict, lyrics=''): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self._body = json_dict['song'] <NEW_LINE> <DEDENT> except Exception: <NEW_LINE> <INDENT> self._body = json_dict <NEW_LINE> <DEDENT> self._body['lyrics'] = lyrics <NEW_LINE> self._url = self._bo... | A song from the Genius.com database.
Attributes:
title: (str) Title of the song.
artist: (str) Primary artist on the song.
lyrcis: (str) Full set of song lyrics.
album: (str) Name of the album the song is on.
year: (int) Year the song was released. | 62598fad32920d7e50bc6026 |
class EditVideoSizeError(OAuthException): <NEW_LINE> <INDENT> error_code = 350 <NEW_LINE> error_id = "EDIT_VIDEO_SIZE" <NEW_LINE> error_description = 'Video file is too large' | Autogenerated exception class for API error code 350 | 62598faddd821e528d6d8f07 |
class TestObjectPropertyTypes(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 testObjectPropertyTypes(self): <NEW_LINE> <INDENT> pass | ObjectPropertyTypes unit test stubs | 62598fadeab8aa0e5d30bd5e |
class CalculateTeamScores(beam.PTransform): <NEW_LINE> <INDENT> def __init__(self, team_window_duration, allowed_lateness): <NEW_LINE> <INDENT> super(CalculateTeamScores, self).__init__() <NEW_LINE> self.team_window_duration = team_window_duration * 60 <NEW_LINE> self.allowed_lateness_sec = allowed_lateness * 60 <NEW_L... | Calculates scores for each team within the configured window duration.
Extract team/score pairs from the event stream, using hour-long windows by default. | 62598fadcc0a2c111447afe3 |
class StringPattern(Pattern): <NEW_LINE> <INDENT> def __init__(self, text, user=None): <NEW_LINE> <INDENT> Pattern.__init__(self, user) <NEW_LINE> self.text = text <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return makePrintable(self.text, 'ASCII') <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDE... | Static string pattern | 62598fad2c8b7c6e89bd3797 |
class StaticFilesStorage(FileSystemStorage): <NEW_LINE> <INDENT> def __init__(self, location=None, base_url=None, *args, **kwargs): <NEW_LINE> <INDENT> if location is None: <NEW_LINE> <INDENT> location = settings.STATICFILES_ROOT <NEW_LINE> <DEDENT> if base_url is None: <NEW_LINE> <INDENT> base_url = settings.STATICFIL... | Standard file system storage for site media files.
The defaults for ``location`` and ``base_url`` are
``STATICFILES_ROOT`` and ``STATICFILES_URL``. | 62598fadbaa26c4b54d4f285 |
class MainJavaLibraryComponent(JarFilesMixin, SubdirectoryComponent): <NEW_LINE> <INDENT> @property <NEW_LINE> def subdirectory(self): <NEW_LINE> <INDENT> return 'src/main/java' <NEW_LINE> <DEDENT> @property <NEW_LINE> def target_type(self): <NEW_LINE> <INDENT> return Target.java_library <NEW_LINE> <DEDENT> @property <... | Generates targets for src/main/java. | 62598fadfff4ab517ebcd7b7 |
class Glimpse(CMSPlugin): <NEW_LINE> <INDENT> title = models.CharField(max_length=255, blank=True, null=True) <NEW_LINE> variant = models.CharField( _("Variant"), max_length=50, choices=GLIMPSE_VARIANTS, default=GLIMPSE_VARIANTS[0][0], blank=True, null=True, help_text=_("Form factor variant"), ) <NEW_LINE> image = File... | Glimpse plugin model | 62598fad38b623060ffa906c |
@python_2_unicode_compatible <NEW_LINE> class GoalOption(OrderedModel): <NEW_LINE> <INDENT> goal_type = models.CharField( max_length=255, choices=GOAL_TYPES, default='services', db_index=True, ) <NEW_LINE> text = models.TextField( help_text='An option for the dropdowns in a specific ' + 'GoalSetting pageblock.') <NEW_L... | GoalSettingBlock dropdowns are populated by GoalOptions.
The contents of each GoalSettingBlock's dropdown depends on its
goal_type. | 62598fadd486a94d0ba2bfa1 |
class Questions(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'questions' <NEW_LINE> __table_args__ = {'extend_existing': True} <NEW_LINE> id = Column(BigInteger, primary_key=True) <NEW_LINE> question = Column(Text) <NEW_LINE> question_type = Column(BigInteger) <NEW_LINE> answer = Column(Text) <NEW_LINE> manually_grad... | Keeps all questions according to all tests in the system | 62598fad4527f215b58e9eb3 |
class MemoryMeasureProcess(Process): <NEW_LINE> <INDENT> def __init__(self, process_id: int, child_connection: Connection, interval: float): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.process_id = process_id <NEW_LINE> self.interval = interval <NEW_LINE> self.connection = child_connection <NEW_LINE> self.nu... | `MemoryMeasureProcess` inherits from `Process` and overwrites
its `run()` method. Used to measure the memory usage of a process | 62598fadf9cc0f698b1c52b2 |
class Room_WorldThree (Room): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> walls = [[0, 0, 20, 250, LIGHTPURPLE], [0, 350, 20, 250, LIGHTPURPLE], [780, 0, 20, 600, LIGHTPURPLE], [20, 0, 760, 20, LIGHTPURPLE], [20, 580, 760, 20, LIGHTPURPLE] ] <NEW_LINE> for item in walls: <N... | This creates all the walls in room 3 | 62598fad3346ee7daa337632 |
class JalaliDatePersianNumbers(khayyam.JalaliDate): <NEW_LINE> <INDENT> def strftime(self, frmt): <NEW_LINE> <INDENT> result = _replace_if_match(frmt, '%Y', self.year) <NEW_LINE> result = _replace_if_match(result, '%y', lambda: str(self.year)[-2:]) <NEW_LINE> result = _replace_if_match(result, '%m', self.month) <NE... | JalaliDate class with Persian numbers | 62598fad8a43f66fc4bf214f |
class Lunch(Meal): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Meal.__init__(self, 'sandwich', 'gin and tonic') <NEW_LINE> self.setName('midday meal') <NEW_LINE> <DEDENT> def setFood(self, food='sandwich'): <NEW_LINE> <INDENT> if food != 'sandwich' and food != 'omelet': <NEW_LINE> <INDENT> raise AngryCh... | Holds the food and drink for lunch. | 62598fadaad79263cf42e7a7 |
class Solution: <NEW_LINE> <INDENT> def findNearestStore(self, stores, houses): <NEW_LINE> <INDENT> stores.sort() <NEW_LINE> print(stores) <NEW_LINE> closest = [] <NEW_LINE> for house in houses: <NEW_LINE> <INDENT> i = bisect(stores, house) <NEW_LINE> if i >= len(stores): <NEW_LINE> <INDENT> closest.append(stores[-1]) ... | @param stores: The location of each store.
@param houses: The location of each house.
@return: The location of the nearest store to each house. | 62598fad8c0ade5d55dc367b |
class req(object): <NEW_LINE> <INDENT> def __init__(self, method, url, ver, rest, headers, fd): <NEW_LINE> <INDENT> self.method = method <NEW_LINE> self.url = url <NEW_LINE> self.ver = ver <NEW_LINE> self.rest = rest <NEW_LINE> self.headers = headers <NEW_LINE> self.bsk = socket.fromfd(fd, socket.AF_UNIX, socket.SOCK_S... | Represents a single ashd request. Normally, you would not
create instances of this class manually, but receive them from the
recvreq function.
For the abstract structure of ashd requests, please see the
ashd(7) manual page. This class provides access to the HTTP
method, raw URL, HTTP version and rest string via the `m... | 62598fad55399d3f056264f7 |
class ContentConfig(BaseConfig): <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> super().__init__(data) <NEW_LINE> self.modules = ModulesConfig(data.get('modules', {})) <NEW_LINE> self.python_versions = [version for version in SUPPORTED_PYTHON_VERSIONS if version in CONTROLLER_PYTHON_VERSIONS or versi... | Configuration for all content. | 62598fad2ae34c7f260ab0b5 |
class Pylint(PylintWidget, SpyderPluginMixin): <NEW_LINE> <INDENT> CONF_SECTION = 'pylint' <NEW_LINE> CONFIGWIDGET_CLASS = PylintConfigPage <NEW_LINE> edit_goto = Signal(str, int, str) <NEW_LINE> def __init__(self, parent=None): <NEW_LINE> <INDENT> PylintWidget.__init__(self, parent=parent, max_entries=self.get_option(... | Python source code analysis based on pylint | 62598fad4c3428357761a28d |
class NotifierListTestCase(test.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(NotifierListTestCase, self).setUp() <NEW_LINE> list_notifier._reset_drivers() <NEW_LINE> def mock_exception(cls, *args): <NEW_LINE> <INDENT> self.exception_count += 1 <NEW_LINE> <DEDENT> self.exception_count = 0 <N... | Test case for notifications | 62598fad63b5f9789fe8513a |
class NodeView(core.NodeViewBase, Node): <NEW_LINE> <INDENT> side_comment = core.DelegatedAttribute( 'side_comment', 'parent', descriptor = Node.side_comment, default_value_list = (None,) ) <NEW_LINE> comment = core.DelegatedAttribute( 'comment', 'parent', descriptor = Node.comment, default_value_list = (None,) ) | This class is the C implementation of :class:`~brownbat.core.NodeViewBase` class.
| 62598fad30dc7b766599f821 |
class Dumper(yaml.SafeDumper): <NEW_LINE> <INDENT> def represent_mapping( self, tag: str, mapping: OrderedDict, flow_style: None = None ) -> MappingNode: <NEW_LINE> <INDENT> value = [] <NEW_LINE> node = yaml.MappingNode(tag, value, flow_style=flow_style) <NEW_LINE> if self.alias_key is not None: <NEW_LINE> <INDENT> sel... | A PyYAML Dumper that represents OrderedDicts as ordinary mappings
(in order, of course). | 62598fad283ffb24f3cf3860 |
class AdmWebPage(QWebEnginePage): <NEW_LINE> <INDENT> def __init__(self, config, parent=None, profile=None, debug=None): <NEW_LINE> <INDENT> self.debug = debug or (lambda x: None) <NEW_LINE> self.config = config <NEW_LINE> if not profile: <NEW_LINE> <INDENT> super().__init__(parent) <NEW_LINE> <DEDENT> else: <NEW_LINE>... | Subclassed QWebEnginePage,
representing the actual web page object in the browser.
This was subclassed so that some functions can be overridden. | 62598fade76e3b2f99fd8a0a |
class modelBase: <NEW_LINE> <INDENT> def __init__(self,dimensions,w0): <NEW_LINE> <INDENT> self.w=w0 <NEW_LINE> self.dim=len(w0) <NEW_LINE> self.dimensions=dimensions <NEW_LINE> self.signal=[0 for i in range(dimensions[1])] <NEW_LINE> self.dsdw=[0 for i in range(dimensions[1])] <NEW_LINE> self.input=[0 for i in range(d... | This is the base class for the function. The key point is to have way to update the parameters w. | 62598faddd821e528d6d8f09 |
class MeasureGroup(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_type = Field("MeasureGroup", const=True) <NEW_LINE> code: fhirtypes.CodeableConceptType = Field( None, alias="code", title="Meaning of the group", description=( "Indicates a meaning for the group. This can be as simple as a unique " "iden... | Disclaimer: Any field name ends with ``__ext`` doesn't part of
Resource StructureDefinition, instead used to enable Extensibility feature
for FHIR Primitive Data Types.
Population criteria group.
A group of population criteria for the measure. | 62598fad7b25080760ed7483 |
class CVSDiffParser(DiffParser): <NEW_LINE> <INDENT> regex_small = re.compile('^RCS file: (.+)$') <NEW_LINE> def __init__(self, data, repo): <NEW_LINE> <INDENT> DiffParser.__init__(self, data) <NEW_LINE> self.regex_full = re.compile('^RCS file: %s/(.*),v$' % re.escape(repo)) <NEW_LINE> <DEDENT> def parse_special_header... | This class is able to parse diffs created with CVS. | 62598fadcc0a2c111447afe5 |
class AuthFailedException(PickupGitException): <NEW_LINE> <INDENT> pass | Base class for Auth Failed exceptions | 62598fad7b180e01f3e4903a |
class InvalidPassword(Exception): <NEW_LINE> <INDENT> pass | Exception used for invalid password. | 62598fad498bea3a75a57af2 |
class RSAPublicKey(CompositeType): <NEW_LINE> <INDENT> def __init__(self, readLen): <NEW_LINE> <INDENT> CompositeType.__init__(self, readLen = readLen) <NEW_LINE> self.magic = UInt32Le(0x31415352, constant = True) <NEW_LINE> self.keylen = UInt32Le(lambda:(sizeof(self.modulus) + sizeof(self.padding))) <NEW_LINE> self.bi... | @see: http://msdn.microsoft.com/en-us/library/cc240520.aspx | 62598fad91f36d47f2230e90 |
class AdminPostForm(PostForm): <NEW_LINE> <INDENT> login = forms.CharField(widget=forms.HiddenInput()) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> if args: <NEW_LINE> <INDENT> kwargs.update(dict(zip(inspect.getargspec(forms.ModelForm.__init__)[0][1:], args))) <NEW_LINE> <DEDENT> if 'instance' in... | Superusers can post messages from any user and from any time
If no user with specified name - new user will be created | 62598fad4428ac0f6e6584f9 |
class ListIdentifiers(OAI_PMH): <NEW_LINE> <INDENT> def __init__(self, base_url, from_date=None, until_date=None, oai_set=None, metadata_prefix=None): <NEW_LINE> <INDENT> super(ListIdentifiers, self).__init__(base_url) <NEW_LINE> self.verb = "ListIdentifiers" <NEW_LINE> self.from_date = from_date <NEW_LINE> self.until_... | Serialisable object representing a ListIdentifiers response | 62598fad5fdd1c0f98e5df61 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.