code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class CSSRule(cssutils.util.Base2): <NEW_LINE> <INDENT> COMMENT = -1 <NEW_LINE> UNKNOWN_RULE = 0 <NEW_LINE> STYLE_RULE = 1 <NEW_LINE> CHARSET_RULE = 2 <NEW_LINE> IMPORT_RULE = 3 <NEW_LINE> MEDIA_RULE = 4 <NEW_LINE> FONT_FACE_RULE = 5 <NEW_LINE> PAGE_RULE = 6 <NEW_LINE> NAMESPACE_RULE = 7 <NEW_LINE> _typestrings = ['UNK...
Abstract base interface for any type of CSS statement. This includes both rule sets and at-rules. An implementation is expected to preserve all rules specified in a CSS style sheet, even if the rule is not recognized by the parser. Unrecognized rules are represented using the :class:`CSSUnknownRule` interface.
6259905999cbb53fe68324a6
class Users(base.ECMCommand): <NEW_LINE> <INDENT> name = 'users' <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self.add_subcommand(List, default=True) <NEW_LINE> self.add_subcommand(Create) <NEW_LINE> self.add_subcommand(Remove) <NEW_LINE> self.add_subc...
Manage ECM Users.
6259905945492302aabfda9f
class LocalBuild(build_ext): <NEW_LINE> <INDENT> def initialize_options(self): <NEW_LINE> <INDENT> super().initialize_options() <NEW_LINE> <DEDENT> def finalize_options(self): <NEW_LINE> <INDENT> super().finalize_options() <NEW_LINE> print(f"compiler {type(self.compiler)}") <NEW_LINE> <DEDENT> def run(self): <NEW_LINE>...
A builder that knows our c++ compiler.
625990593c8af77a43b68a24
class User(AbstractUser): <NEW_LINE> <INDENT> last_action = models.DateTimeField(editable=False, null=True) <NEW_LINE> def save( self, force_insert=False, force_update=False, using=None, update_fields=None ): <NEW_LINE> <INDENT> self.set_password(self.password) <NEW_LINE> super().save(force_insert, force_update, using,...
Override standard user model
62599059097d151d1a2c2634
class _ControlEventManager: <NEW_LINE> <INDENT> def __init__(self, loop: asyncio.BaseEventLoop = None, priority: CONTROL_PRIORITY_LEVEL = None): <NEW_LINE> <INDENT> self._granted_event = asyncio.Event(loop=loop) <NEW_LINE> self._lost_event = asyncio.Event(loop=loop) <NEW_LINE> self._request_event = asyncio.Event(loop=l...
This manages every :class:`asyncio.Event` that handles the behavior control system. These include three events: granted, lost, and request. :class:`granted_event` represents the behavior system handing control to the SDK. :class:`lost_event` represents a higher priority behavior taking control away from the SDK. :c...
625990590a50d4780f7068a2
class BiDirectionalRNNLayer(object): <NEW_LINE> <INDENT> def __init__(self, hidden_size, rnn_type='lstm'): <NEW_LINE> <INDENT> self.hidden_size = hidden_size <NEW_LINE> type_cast = {'lstm': LSTMCell, 'gru': GRUCell} <NEW_LINE> if rnn_type not in type_cast: <NEW_LINE> <INDENT> cell_type = GRUCell <NEW_LINE> <DEDENT> els...
a layer class: Bi-directional LSTM/gru
62599059e76e3b2f99fd9fc7
class LandsatConfidence(object): <NEW_LINE> <INDENT> high = 3 <NEW_LINE> medium = 2 <NEW_LINE> low = 1 <NEW_LINE> undefined = 0 <NEW_LINE> none = -1
Level of confidence that a condition exists high - Algorithm has high confidence that this condition exists (67-100 percent confidence). medium - Algorithm has medium confidence that this condition exists (34-66 percent confidence). low - Algorithm has low ...
6259905956ac1b37e63037cb
class SingleCellSimple(fixtures.Fixture): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(SingleCellSimple, self).setUp() <NEW_LINE> self.useFixture(fixtures.MonkeyPatch( 'nova.objects.CellMappingList._get_all_from_db', self._fake_cell_list)) <NEW_LINE> self.useFixture(fixtures.MonkeyPatch( 'nova.objects...
Setup the simplest cells environment possible This should be used when you do not care about multiple cells, or having a "real" environment for tests that should not care. This will give you a single cell, and map any and all accesses to that cell (even things that would go to cell0). If you need to distinguish betwe...
625990590c0af96317c57843
class Round(Operator): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Round, self).__init__() <NEW_LINE> <DEDENT> def forward(self, x): <NEW_LINE> <INDENT> return singa.Round(x) <NEW_LINE> <DEDENT> def backward(self, dy): <NEW_LINE> <INDENT> dy = singa.Tensor(dy.shape(), dy.device()) <NEW_LINE> dy.Se...
Element-wise round the input
625990593cc13d1c6d466d08
class TestSpiderMiddleware1: <NEW_LINE> <INDENT> def process_request(self,request): <NEW_LINE> <INDENT> return request <NEW_LINE> <DEDENT> def process_response(self,response): <NEW_LINE> <INDENT> return response
实现下载器中间件
6259905945492302aabfdaa0
class DigitalTwinsEventRoute(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'endpoint_name': {'required': True}, 'filter': {'required': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'endpoint_name': {'key': 'endpointName', 'type': 'str'}, 'filter'...
A route which directs notification and telemetry events to an endpoint. Endpoints are a destination outside of Azure Digital Twins such as an EventHub. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar id...
625990597047854f46340988
class UserGroupInHostGroup(models.Model): <NEW_LINE> <INDENT> usergroup = models.ForeignKey(UserGroup) <NEW_LINE> hostgroup = models.ForeignKey(HostGroup) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> unique_together = ("usergroup", "hostgroup") <NEW_LINE> permissions = ( ( "list_usergroups_in_hostgroups", "Can see which ...
Assings usergroups to hostgroups, meaning that all users in the usergroup can login into all hosts in the hostgroup. Relates to :model:`keys.UserGroup` and :model:`keys.HostGroup`
625990593617ad0b5ee07713
class Item(object): <NEW_LINE> <INDENT> def __init__(self, name, ptree, locations, fields): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.ptree = ptree <NEW_LINE> self.locations = locations <NEW_LINE> self.fields = fields <NEW_LINE> self.common_prefix = self._common_prefix() <NEW_LINE> self.common_suffix = self....
A collection of fields and the location of the item instances Attributes ---------- name : string The item name ptree : PageTree locations : List[ItemLocation] fields : List[Field] common_prefix: List[HtmlFragment] Common prefix shared by all item locations common_suffix: List[HtmlFragment] Common suffix ...
6259905901c39578d7f1421b
class Veteranx(Estudante): <NEW_LINE> <INDENT> def __init__(self, dict_json): <NEW_LINE> <INDENT> self.ciente_de = dict_json['ciente_de'] <NEW_LINE> super().__init__(Tipo.VETERANX, dict_json) <NEW_LINE> <DEDENT> def atualizar(self, dict_atualizado): <NEW_LINE> <INDENT> super().atualizar(dict_atualizado) <NEW_LINE> self...
Veteranx é a estrutura Estudante com as variáveis número de ingressantes que deseja apadrinhar e apelido
62599059adb09d7d5dc0bb33
class PackedVersionedCollectionCompactor(cronjobs.SystemCronFlow): <NEW_LINE> <INDENT> frequency = rdfvalue.Duration("5m") <NEW_LINE> lifetime = rdfvalue.Duration("40m") <NEW_LINE> @flow.StateHandler() <NEW_LINE> def Start(self): <NEW_LINE> <INDENT> processed_count = 0 <NEW_LINE> errors_count = 0 <NEW_LINE> freeze_time...
A Compactor which runs over all versioned collections.
62599059baa26c4b54d5086d
@dataclass <NEW_LINE> class FanSpeedDataTemplate: <NEW_LINE> <INDENT> def get_speed_config(self, resolved_data: dict[str, Any]) -> list[int] | None: <NEW_LINE> <INDENT> raise NotImplementedError
Mixin to define get_speed_config.
6259905999cbb53fe68324a8
class FCN(Network): <NEW_LINE> <INDENT> def __init__(self, nchannels=1, nlabels=2, cross_hair=False, dim=3, activation='tanh', levels=None, **kwargs): <NEW_LINE> <INDENT> if 'loading' in kwargs: <NEW_LINE> <INDENT> super(FCN, self).__init__(**kwargs) <NEW_LINE> return <NEW_LINE> <DEDENT> inputs = {'main_input': {'shape...
Implementation of DeepVesselNet-FCN with capability of using 3D/2D kernels with or with cross-hair filters
6259905930dc7b76659a0d64
class DatabaseClient: <NEW_LINE> <INDENT> def __init__(self, dbpass_path, dbname): <NEW_LINE> <INDENT> self.dbpass_path = dbpass_path <NEW_LINE> self.dbname = dbname <NEW_LINE> self.db_url = self.get_db_url() <NEW_LINE> self.engine = create_engine(self.db_url) <NEW_LINE> <DEDENT> def get_db_url(self): <NEW_LINE> <INDEN...
Takes care of the database pass opening to find the url and can query the respected database. Input: dbpass_path path to the text file with the list of database urls dbname database name so we know which database to query from the list
625990594428ac0f6e659b05
class BlockStencilMatrixGlobalBasis(BlockMatrixNode): <NEW_LINE> <INDENT> def __new__(cls, trials, tests, pads, multiplicity, expr, tag=None): <NEW_LINE> <INDENT> if not isinstance(pads, (list, tuple, Tuple)): <NEW_LINE> <INDENT> raise TypeError('Expecting an iterable') <NEW_LINE> <DEDENT> pads = Tuple(*pads) <NEW_LINE...
used to describe local dof over an element as a block stencil matrix
62599059097d151d1a2c2636
class NightingaleDetailView(DetailView, LoginRequiredMixin): <NEW_LINE> <INDENT> model = Admision <NEW_LINE> template_name = 'enfermeria/nightingale_detail.html' <NEW_LINE> slug_field = 'uuid' <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super(NightingaleDetailView, self).get_context_d...
Permite ver los datos de una :class:`Admision` desde la interfaz de enfermeria Esta vista se utiliza en conjunto con varias plantillas que permite mostrar una diversidad de datos como ser resumenes, :class:`NotaEnfermeria`s, :class:`SignoVital`es, :class:`OrdenMedica`s, y todos los demas datos que se relacionan con un...
625990591f037a2d8b9e5350
class CampusCoursesFavorite(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(User) <NEW_LINE> campus = models.ForeignKey(Campus) <NEW_LINE> courses = models.ManyToManyField(Course) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> app_label = 'feti'
Integrated model of relationships between Campus, Courses and user.
6259905907f4c71912bb0a05
class FromOptionalDependency: <NEW_LINE> <INDENT> def __init__(self, module, exception=None): <NEW_LINE> <INDENT> self._module = module <NEW_LINE> if exception is None: <NEW_LINE> <INDENT> exception = ( "The optional dependency '{}' is required for the " "functionality you tried to use.".format(self._module) ) <NEW_LIN...
This is a utility class for importing classes from a module or replacing them with dummy types if the module can not be loaded. Assume module 'a' that does: .. sourcecode:: Python from b import C, D and module 'e' which does: .. sourcecode:: Python from a import F where 'b' is a hard to install dependenc...
62599059cb5e8a47e493cc6b
class BrewBoilerTemperature(RangeSetting): <NEW_LINE> <INDENT> address = 0x02 <NEW_LINE> range = (80, 110)
The desired temperature of the brew boiler.
625990592ae34c7f260ac6b1
class JSONSerializer(MetadataSerializer): <NEW_LINE> <INDENT> def __init__(self, compact: bool = False, validate: Optional[bool] = False): <NEW_LINE> <INDENT> self.compact = compact <NEW_LINE> self.validate = validate <NEW_LINE> <DEDENT> def serialize(self, metadata_obj: Metadata) -> bytes: <NEW_LINE> <INDENT> try: <NE...
Provides Metadata to JSON serialize method. Args: compact: A boolean indicating if the JSON bytes generated in 'serialize' should be compact by excluding whitespace. validate: Check that the metadata object can be deserialized again without change of contents and thus find common mistakes. ...
625990593cc13d1c6d466d0a
class MultiHeadedAttention(nn.Module): <NEW_LINE> <INDENT> def __init__(self, num_heads: int, size: int, dropout: float = 0.1): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> assert size % num_heads == 0 <NEW_LINE> self.head_size = head_size = size // num_heads <NEW_LINE> self.model_size = size <NEW_LINE> self.num_h...
Multi-Head Attention module from "Attention is All You Need" Implementation modified from OpenNMT-py. https://github.com/OpenNMT/OpenNMT-py
625990598e7ae83300eea657
class ProbabilityScale(ScaleBase): <NEW_LINE> <INDENT> name = 'probability' <NEW_LINE> def __init__(self, axis, dist, nonpos='mask', percentage=True, **kwargs): <NEW_LINE> <INDENT> if nonpos not in ['mask', 'clip']: <NEW_LINE> <INDENT> raise ValueError("nonposx, nonposy kwarg must be 'mask' or 'clip'") <NEW_LINE> <DEDE...
Probability scale for data between zero and one, both excluded. Send p -> dist.ppf(p) It maps the interval ]0, 1[ onto ]-infty, +infty[.
62599059e64d504609df9eb4
class LikeDislike(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> unique_together = (('article', 'user')) <NEW_LINE> <DEDENT> user = models.ForeignKey(User, on_delete=models.CASCADE) <NEW_LINE> article = models.ForeignKey(Article, on_delete=models.CASCADE) <NEW_LINE> like = models.BooleanField() <NEW...
Like and dislike data model
62599059460517430c432b37
class GnuLibLinker(GnuFileCompiler): <NEW_LINE> <INDENT> name = "AR" <NEW_LINE> in_type = GnuObjectFileType.get() <NEW_LINE> out_type = bkl.compilers.NativeLibFileType.get() <NEW_LINE> def commands(self, toolset, target, input, output): <NEW_LINE> <INDENT> return [ListExpr([LiteralExpr("$(AR) rcu $@"), input]), ListExp...
GNU library linker.
625990598e71fb1e983bd094
class BaOracleSQLContextManager: <NEW_LINE> <INDENT> def __init__(self, host="192.168.12.61", user="BI", password="CREATING2020", tnsnname="ORCL"): <NEW_LINE> <INDENT> self.host = host <NEW_LINE> self.user = user <NEW_LINE> self.password = password <NEW_LINE> self.tnsnname = tnsnname <NEW_LINE> <DEDENT> def __enter__(s...
oraclesQL Context Manager
625990592ae34c7f260ac6b2
class IsAccountOwner(BasePermission): <NEW_LINE> <INDENT> def has_object_permission(self, request, view, obj): <NEW_LINE> <INDENT> return request.user == obj
Verify that object is the user owner
6259905991f36d47f2231975
class CommunityCardUserForeignKeyRawIdWidget(CardUserForeignKeyRawIdWidget): <NEW_LINE> <INDENT> rel_to = CommunityCardUserProxyModel
Overrides ``django.contrib.admin.widgets.ForeignKeyRawIdWidget`` to provide a ``raw_id_fields`` option in admin interface classes for those places where a user filtering by particular user types is needed. The widget actually will show a list of ``cyclos.User``s filtered to those who are in CYCLOS_CARD_USER_MEMBER_GRO...
62599059d53ae8145f919a2c
class Organizations(DSLdapObjects): <NEW_LINE> <INDENT> def __init__(self, instance, basedn): <NEW_LINE> <INDENT> super(Organizations, self).__init__(instance) <NEW_LINE> self._objectclasses = [ 'organization', ] <NEW_LINE> self._filterattrs = [RDN] <NEW_LINE> self._childobject = Organization <NEW_LINE> self._basedn = ...
DSLdapObjects that represents Organizations entry :param instance: An instance :type instance: lib389.DirSrv :param basedn: Base DN for all group entries below :type basedn: str
6259905915baa7234946355d
class ApikeyElement: <NEW_LINE> <INDENT> key: str <NEW_LINE> type: Optional[str] <NEW_LINE> value: Any <NEW_LINE> def __init__(self, key: str, type: Optional[str], value: Any) -> None: <NEW_LINE> <INDENT> self.key = key <NEW_LINE> self.type = type <NEW_LINE> self.value = value <NEW_LINE> <DEDENT> @staticmethod <NEW_LIN...
Represents an attribute for any authorization method provided by Postman. For example `username` and `password` are set as auth attributes for Basic Authentication method.
6259905999cbb53fe68324aa
class Smoosher(BaseObject): <NEW_LINE> <INDENT> def __init__(self, universal=False, equal_char=False, underscore=False, hierarchy=False, opposite_pair=False, big_x=False, hardblank=False, vertical_equal_char=False, vertical_underscore=False, vertical_hierarchy=False, horizontal_line=False, vertical_line=False, unknown_...
Uses various rules to combine characters into a single character.
62599059009cb60464d02b00
class ReservableResource(BaseResource): <NEW_LINE> <INDENT> def __init__(self, name, sync, flag=None): <NEW_LINE> <INDENT> super(ReservableResource, self).__init__(name, flag=flag) <NEW_LINE> self.sync = sync
Describe a reservable resource.
62599059507cdc57c63a6370
class Invite(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> db_table = 'invite' <NEW_LINE> <DEDENT> invite_id = models.AutoField(primary_key=True) <NEW_LINE> created_by = models.ForeignKey('users.User', related_name='+', on_delete=models.CASCADE) <NEW_LINE> created_on = models.DateTimeField(auto_now...
An invitation to review a report. Arbitrary people can be invited (via email) to review and leave comments on a report.
62599059a17c0f6771d5d687
class ToolFeatureParameterDefinitionMapping(ImportMapping): <NEW_LINE> <INDENT> MAP_TYPE = "ToolFeatureParameterDefinition" <NEW_LINE> def _import_row(self, source_data, state, mapped_data): <NEW_LINE> <INDENT> tool_feature = state[ImportKey.TOOL_FEATURE] <NEW_LINE> parameter = str(source_data) <NEW_LINE> tool_feature....
Maps tool feature parameter definitions. Cannot be used as the topmost mapping; must have :class:`ToolFeatureEntityClassMapping` as parent.
625990598e71fb1e983bd095
class UpdateOrganisationResponse(object): <NEW_LINE> <INDENT> openapi_types = { 'validation_errors': 'list[str]' } <NEW_LINE> attribute_map = { 'validation_errors': 'ValidationErrors' } <NEW_LINE> def __init__(self, validation_errors=None, local_vars_configuration=None): <NEW_LINE> <INDENT> if local_vars_configuration ...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
6259905916aa5153ce401aaf
class DomainHostObj(objref) : <NEW_LINE> <INDENT> id = 0 <NEW_LINE> name = ''
Object to link domain nameserver to host object
6259905945492302aabfdaa3
class ReadLengthViewSet(viewsets.ReadOnlyModelViewSet): <NEW_LINE> <INDENT> queryset = ReadLength.objects.filter(obsolete=settings.NON_OBSOLETE) <NEW_LINE> serializer_class = ReadLengthSerializer
Get the list of read lengths.
6259905921bff66bcd724230
class KonnectedSensor(Entity): <NEW_LINE> <INDENT> def __init__(self, device_id, data, sensor_type, addr=None, initial_state=None): <NEW_LINE> <INDENT> self._addr = addr <NEW_LINE> self._data = data <NEW_LINE> self._device_id = device_id <NEW_LINE> self._type = sensor_type <NEW_LINE> self._pin_num = self._data.get(CONF...
Represents a Konnected DHT Sensor.
625990594428ac0f6e659b07
class CSVStatisticsBackend(AbstractStatisticsBackend): <NEW_LINE> <INDENT> _logger = logging.getLogger(__name__) <NEW_LINE> def __init__(self) -> None: <NEW_LINE> <INDENT> csv.field_size_limit(int(ctypes.c_ulong(-1).value // 2)) <NEW_LINE> <DEDENT> def write_data(self, data: Dict[str, OutputVariable]) -> None: <NEW_LIN...
A statistics backend writing all (selected) output variables to a CSV file.
6259905907f4c71912bb0a06
class ConversionError(FieldError, TypeError): <NEW_LINE> <INDENT> pass
Exception raised when data cannot be converted to the correct python type
62599059e5267d203ee6cea6
class CommandCollection(): <NEW_LINE> <INDENT> def __init__(self, db): <NEW_LINE> <INDENT> self.db = db <NEW_LINE> <DEDENT> def clean(self): <NEW_LINE> <INDENT> documents = self.db.commands.find({'$or': [{'status': enums.Status.PENDING}, {'status': enums.Status.RUNNING}]}) <NEW_LINE> for document in documents: <NEW_LIN...
Synchronous Command Collection. Attributes: db (obj): The database object
625990599c8ee82313040c70
class GetDevicesRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ProductId = None <NEW_LINE> self.Offset = None <NEW_LINE> self.Length = None <NEW_LINE> self.Keyword = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.ProductId = params.get("Produc...
GetDevices请求参数结构体
62599059d486a94d0ba2d594
class IndexView(generic.ListView): <NEW_LINE> <INDENT> template_name = 'music/index.html' <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> return [1] <NEW_LINE> <DEDENT> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super(IndexView, self).get_context_data(**kwargs) <NEW_LINE> context['record...
View for displaying home page.
6259905907d97122c4218270
class IsOwnerOrReadOnly(permissions.BasePermission): <NEW_LINE> <INDENT> def has_object_permission(self, request, view, obj): <NEW_LINE> <INDENT> if request.method in permissions.SAFE_METHODS: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> return obj.user == request.user
删除的时候验证一个权限问题 自定义的一个权限方法,用于判断请求用户是否和数据库中的当前用户相同
62599059097d151d1a2c2638
class BugMessageAddFormView(LaunchpadFormView, BugAttachmentContentCheck): <NEW_LINE> <INDENT> schema = IBugMessageAddForm <NEW_LINE> initial_focus_widget = None <NEW_LINE> @property <NEW_LINE> def label(self): <NEW_LINE> <INDENT> return 'Add a comment or attachment to bug #%d' % self.context.bug.id <NEW_LINE> <DEDENT>...
Browser view class for adding a bug comment/attachment.
6259905973bcbd0ca4bcb85f
class WorksHandler(webapp.RequestHandler): <NEW_LINE> <INDENT> def get(self, work_id): <NEW_LINE> <INDENT> work = models.Work.get_by_id(int(work_id)) <NEW_LINE> scenes = models.Scene.all().ancestor(work).order('act_num').order('scene_num') <NEW_LINE> path = os.path.join(os.path.dirname(__file__), 'templates', 'work.htm...
A simple handler to return the TOC for a work.
62599059cb5e8a47e493cc6c
class DeleteRecordResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.RequestId = params.get("RequestId")
DeleteRecord返回参数结构体
625990593cc13d1c6d466d0c
class ThinkGearMeditationData(ThinkGearData): <NEW_LINE> <INDENT> code = 0x05 <NEW_LINE> _strfmt = '%(value)s' <NEW_LINE> _decode = staticmethod(ord)
MEDITATION eSense (0 to 100)
6259905938b623060ffaa334
class ImageTk_Missing(Error): <NEW_LINE> <INDENT> pass
debugging aid to track calls
6259905932920d7e50bc7612
class SourceTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.new_source = Source("crypto-coins-news","Crypto Coins News","Providing breaking cryptocurrency news.", "https://www.ccn.com","technology","en","us") <NEW_LINE> <DEDENT> def test_instance(self): <NEW_LINE> <INDENT> self.as...
Test Class to test the behaviour of the Movie class
62599059379a373c97d9a5f1
class ssStub(object): <NEW_LINE> <INDENT> def __init__(self, channel): <NEW_LINE> <INDENT> self.CreateUser = channel.unary_unary( "/aioshadowsocks.ss/CreateUser", request_serializer=aioshadowsocks__pb2.UserReq.SerializeToString, response_deserializer=aioshadowsocks__pb2.User.FromString, ) <NEW_LINE> self.UpdateUser = c...
service
625990594a966d76dd5f04be
class Pi(NumberSymbol, metaclass=Singleton): <NEW_LINE> <INDENT> is_real = True <NEW_LINE> is_positive = True <NEW_LINE> is_negative = False <NEW_LINE> is_irrational = True <NEW_LINE> is_number = True <NEW_LINE> is_algebraic = False <NEW_LINE> is_transcendental = True <NEW_LINE> __slots__ = () <NEW_LINE> def _latex(sel...
The `\pi` constant. Explanation =========== The transcendental number `\pi = 3.141592654\ldots` represents the ratio of a circle's circumference to its diameter, the area of the unit circle, the half-period of trigonometric functions, and many other things in mathematics. Pi is a singleton, and can be accessed by ``...
625990593617ad0b5ee07717
class DataDrop(BaseProtocol): <NEW_LINE> <INDENT> PORT = 8007 <NEW_LINE> def dataReceived(self, data): <NEW_LINE> <INDENT> if data.find("favico") >= 0: <NEW_LINE> <INDENT> self.write("HTTP/1.1 404 Not Found\r\n\r\n") <NEW_LINE> self.transport.loseConnection() <NEW_LINE> return <NEW_LINE> <DEDENT> BaseProtocol.dataRecei...
Drop connection in body
6259905991f36d47f2231976
class rv_discrete_float(object): <NEW_LINE> <INDENT> def __init__(self, xk, pk): <NEW_LINE> <INDENT> self.xk = xk <NEW_LINE> self.pk = pk <NEW_LINE> self.cpk = np.cumsum(self.pk, axis=1) <NEW_LINE> <DEDENT> def rvs(self, n=None): <NEW_LINE> <INDENT> n = self.xk.shape[0] <NEW_LINE> u = np.random.uniform(size=n) <NEW_LIN...
A class representing a collection of discrete distributions. Parameters ---------- xk : 2d array_like The support points, should be non-decreasing within each row. pk : 2d array_like The probabilities, should sum to one within each row. Notes ----- Each row of `xk`, and the corresponding row of `pk` descr...
62599059baa26c4b54d50871
class _LastTxnTime(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._lock = threading.Lock() <NEW_LINE> self._time = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def time(self): <NEW_LINE> <INDENT> with self._lock: <NEW_LINE> <INDENT> return self._time <NEW_LINE> <DEDENT> <DEDENT> @property <N...
Wraps tracking the last transaction time supplied from the database.
625990590fa83653e46f64b2
class s(object): <NEW_LINE> <INDENT> def __init__(self,dictionary): <NEW_LINE> <INDENT> for key, value in dictionary.items(): <NEW_LINE> <INDENT> setattr(self, key, value)
class with symbol attributes
62599059adb09d7d5dc0bb37
class UpdateFileMemberArgs(ChangeFileMemberAccessArgs): <NEW_LINE> <INDENT> __slots__ = [ ] <NEW_LINE> _has_required_fields = True <NEW_LINE> def __init__(self, file=None, member=None, access_level=None): <NEW_LINE> <INDENT> super(UpdateFileMemberArgs, self).__init__(file, member, access_level) <NEW_LINE> <DEDENT> def ...
Arguments for :meth:`dropbox.dropbox_client.Dropbox.sharing_update_file_member`.
6259905999cbb53fe68324ac
class UserDataCreate(generic.CreateView): <NEW_LINE> <INDENT> form_class = UserCreateForm <NEW_LINE> def form_valid(self, form): <NEW_LINE> <INDENT> year = self.kwargs.get('year') <NEW_LINE> month = self.kwargs.get('month') <NEW_LINE> day = self.kwargs.get('day') <NEW_LINE> hour = self.kwargs.get('hour') <NEW_LINE> sta...
ユーザーデータの登録ビュー。ここ以外では、CreateViewを使わないでください
6259905991af0d3eaad3b3f5
class RepoConfederaciones(object): <NEW_LINE> <INDENT> def __init__(self, configuracion, cliente_mongo): <NEW_LINE> <INDENT> self.cfg = configuracion <NEW_LINE> self.bd_mongo = cliente_mongo <NEW_LINE> <DEDENT> def obtener_confederacion(self, codigo_confederacion): <NEW_LINE> <INDENT> return self.bd_mongo.confederacion...
Clase para gestionar la consulta e insercion de datos de Confederaciones
62599059627d3e7fe0e08459
class ExposeSensor(Device): <NEW_LINE> <INDENT> def __init__(self, xknx, name, group_address=None, value_type=None, device_updated_cb=None): <NEW_LINE> <INDENT> super().__init__(xknx, name, device_updated_cb) <NEW_LINE> self.sensor_value = None <NEW_LINE> if value_type == "binary": <NEW_LINE> <INDENT> self.sensor_value...
Class for managing a sensor.
625990598e71fb1e983bd097
class AlphaBetaPlayer(IsolationPlayer): <NEW_LINE> <INDENT> def get_move(self, game, time_left): <NEW_LINE> <INDENT> self.time_left = time_left <NEW_LINE> best_move = (-1,-1) <NEW_LINE> try: <NEW_LINE> <INDENT> depth = 1 <NEW_LINE> while True: <NEW_LINE> <INDENT> best_move = self.alphabeta(game, depth) <NEW_LINE> depth...
Game-playing agent that chooses a move using iterative deepening minimax search with alpha-beta pruning. You must finish and test this player to make sure it returns a good move before the search time limit expires.
62599059a219f33f346c7dd2
class ActiveCampaignManager(models.Manager): <NEW_LINE> <INDENT> def get_query_set(self): <NEW_LINE> <INDENT> return ActiveCampaigns.objects.all()
Manager Campaign filter by Active status
6259905916aa5153ce401ab1
class TimeStamp_db_mixin(object): <NEW_LINE> <INDENT> ISO8601_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S' <NEW_LINE> def _change_since_result_filter_hook(self, query, filters): <NEW_LINE> <INDENT> values = filters and filters.get('changed_since', []) <NEW_LINE> if not values: <NEW_LINE> <INDENT> return query <NEW_LINE> <DEDENT> ...
Mixin class to add Time Stamp methods.
625990598da39b475be047b3
class RecognitionJobs(object): <NEW_LINE> <INDENT> def __init__(self, recognitions): <NEW_LINE> <INDENT> self.recognitions = recognitions <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def _from_dict(cls, _dict): <NEW_LINE> <INDENT> args = {} <NEW_LINE> if 'recognitions' in _dict: <NEW_LINE> <INDENT> args['recognitions'] ...
RecognitionJobs. :attr list[RecognitionJob] recognitions: An array of objects that provides the status for each of the user's current jobs. The array is empty if the user has no current jobs.
62599059d486a94d0ba2d596
class BertForTokenClassification(BaseModel): <NEW_LINE> <INDENT> r <NEW_LINE> def __init__(self, embed: BertEmbedding, num_labels, dropout=0.1): <NEW_LINE> <INDENT> super(BertForTokenClassification, self).__init__() <NEW_LINE> self.num_labels = num_labels <NEW_LINE> self.bert = embed <NEW_LINE> self.dropout = nn.Dropou...
BERT model for token classification.
6259905963d6d428bbee3d6e
class IxnOspfRouter(IxnProtocolRouter): <NEW_LINE> <INDENT> objType = 'router'
Represents IXN OSPF router.
62599059f7d966606f74939f
class Packetizable: <NEW_LINE> <INDENT> def packet_key(self): <NEW_LINE> <INDENT> pass
Implementing classes declare that they can be packetized and provide an identifying key
62599059379a373c97d9a5f2
class FilterAction(BaseAction): <NEW_LINE> <INDENT> name = "filter" <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(FilterAction, self).__init__(**kwargs) <NEW_LINE> self.method = kwargs.get('method', "POST") <NEW_LINE> self.name = kwargs.get('name', self.name) <NEW_LINE> self.verbose_name = kwargs.g...
A base class representing a filter action for a table. .. attribute:: name The short name or "slug" representing this action. Defaults to ``"filter"``. .. attribute:: verbose_name A descriptive name used for display purposes. Defaults to the value of ``name`` with the first letter of each word capit...
6259905963b5f9789fe86740
class SutraTextField(models.TextField): <NEW_LINE> <INDENT> description = '存储经文内容,换行用\n,每页前有换页标记p\n' <NEW_LINE> def get_prep_value(self, value): <NEW_LINE> <INDENT> value = value.replace('\r\n', '\n') <NEW_LINE> value = super().get_prep_value(value) <NEW_LINE> return self.to_python(value)
格式说明:存储经文内容,换行用 ,每页前有换页标记p 。读取处理原始数据 为 。
62599059e64d504609df9eb6
class DirichletParameter(Parameter): <NEW_LINE> <INDENT> def __init__( self, k: int = 2, shape: Union[int, List[int]] = [], posterior=Dirichlet, prior=None, transform=None, initializer={"concentration": pos_xavier}, var_transform={"concentration": O.softplus}, name="DirichletParameter", ): <NEW_LINE> <INDENT> if not is...
Dirichlet parameter. This is a convenience class for creating a parameter :math:`\theta` with a Dirichlet posterior: .. math:: \theta \sim \text{Dirichlet}(\mathbf{\alpha}) By default, a uniform Dirichlet prior is used: .. math:: \theta \sim \text{Dirichlet}_K(\mathbf{1}/K) TODO: explain that a sample is...
62599059dd821e528d6da467
class SNMPException(Exception): <NEW_LINE> <INDENT> pass
SNMP related base exception. All SNMP exceptions are inherited from this one. The inherited exceptions are named after the name of the corresponding SNMP error.
625990593539df3088ecd86a
class Or(Filter): <NEW_LINE> <INDENT> def __init__(self, *filters): <NEW_LINE> <INDENT> self._filters = filters <NEW_LINE> <DEDENT> def __call__(self, event): <NEW_LINE> <INDENT> return any(f(event) for f in self._filters)
At least one underlying filter must return `True` for this filter to be `True`.
625990594e4d5625663739d5
class FbuserAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> list_display = ('username', 'email')
[어드민] 사용자
6259905955399d3f05627aee
class IsActive(BasePermission): <NEW_LINE> <INDENT> message = _("The account is deactivated!") <NEW_LINE> def has_permission(self, request, view): <NEW_LINE> <INDENT> return request.user and request.user.is_active
Allows access only to active users.
625990593539df3088ecd86b
class KnownHostsStore(BaseJSONStore): <NEW_LINE> <INDENT> def __init__(self, filename=None): <NEW_LINE> <INDENT> if filename is None: <NEW_LINE> <INDENT> filename = os.path.join(get_home(), 'known_hosts') <NEW_LINE> <DEDENT> super(KnownHostsStore, self).__init__(filename) <NEW_LINE> <DEDENT> def add(self, addr, server_...
Handle storage and retrival of known hosts
6259905923849d37ff852694
class LinuxChromeOSPlatform(cr.Platform): <NEW_LINE> <INDENT> ACTIVE = cr.Config.From( CR_BINARY=os.path.join('{CR_BUILD_DIR}', '{CR_BUILD_TARGET}'), CHROME_DEVEL_SANDBOX='/usr/local/sbin/chrome-devel-sandbox', GN_ARG_target_os='"chromeos"', ) <NEW_LINE> @property <NEW_LINE> def enabled(self): <NEW_LINE> <INDENT> retur...
Platform for Linux Chrome OS target
625990597047854f4634098e
@dataclass(frozen=True) <NEW_LINE> class Dataset: <NEW_LINE> <INDENT> url: URL <NEW_LINE> name: str <NEW_LINE> key_attribute_names: Tuple[str, ...] <NEW_LINE> description: Optional[str] = None
A Tamr dataset See https://docs.tamr.com/reference/dataset-models Args: url: The canonical dataset-based URL for this dataset e.g. `/datasets/1` name key_attribute_names description
625990590fa83653e46f64b4
class CreateSecurityRulesResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.RuleIdList = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.RuleIdList = params.get("RuleIdList") <NEW_LINE> self.RequestId = params.get(...
CreateSecurityRules返回参数结构体
625990592ae34c7f260ac6b6
class HeaderList(FileList): <NEW_LINE> <INDENT> include_regex = re.compile(r'(.*?)(\binclude\b)(.*)') <NEW_LINE> def __init__(self, files): <NEW_LINE> <INDENT> super(HeaderList, self).__init__(files) <NEW_LINE> self._macro_definitions = [] <NEW_LINE> self._directories = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def...
Sequence of absolute paths to headers. Provides a few convenience methods to manipulate header paths and get commonly used compiler flags or names.
6259905a009cb60464d02b04
class LiterateWorkflow(pe.Workflow): <NEW_LINE> <INDENT> def __init__(self, name, base_dir=None): <NEW_LINE> <INDENT> super(LiterateWorkflow, self).__init__(name, base_dir) <NEW_LINE> self.__desc__ = None <NEW_LINE> self.__postdesc__ = None <NEW_LINE> <DEDENT> def visit_desc(self): <NEW_LINE> <INDENT> desc = [] <NEW_LI...
Controls the setup and execution of a pipeline of processes.
625990591b99ca400229001f
class NetworkProfile(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'network_interfaces': {'key': 'networkInterfaces', 'type': '[NetworkInterfaceReference]'}, } <NEW_LINE> def __init__( self, *, network_interfaces: Optional[List["NetworkInterfaceReference"]] = None, **kwargs ): <NEW_LINE> <INDENT> ...
Specifies the network interfaces of the virtual machine. :ivar network_interfaces: Specifies the list of resource Ids for the network interfaces associated with the virtual machine. :vartype network_interfaces: list[~azure.mgmt.compute.v2019_12_01.models.NetworkInterfaceReference]
6259905a3c8af77a43b68a28
class PStatsLoader( object ): <NEW_LINE> <INDENT> def __init__( self, *filenames ): <NEW_LINE> <INDENT> self.filename = filenames <NEW_LINE> self.rows = {} <NEW_LINE> self.stats = pstats.Stats( *filenames ) <NEW_LINE> self.tree = self.load( self.stats.stats ) <NEW_LINE> self.location_rows = {} <NEW_LINE> self.location_...
Load profiler statistic from
6259905ad486a94d0ba2d598
class Group(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=32) <NEW_LINE> menu = models.ForeignKey(to='Menu')
权限之Group表
6259905a9c8ee82313040c72
class AsyncQueuePublisher(object): <NEW_LINE> <INDENT> implements(IQueuePublisher) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.reconnect() <NEW_LINE> <DEDENT> def reconnect(self): <NEW_LINE> <INDENT> connectionInfo = getUtility(IAMQPConnectionInfo) <NEW_LINE> queueSchema = getUtility(IQueueSchema) <NEW_LINE...
Sends the protobuf to an exchange in a non-blocking manner
6259905a29b78933be26abac
class StandardExit: <NEW_LINE> <INDENT> def __init__(self, exitable, utxo_pos, output_id, exit_target, amount, bond_size): <NEW_LINE> <INDENT> self.owner = exit_target <NEW_LINE> self.amount = amount <NEW_LINE> self.position = utxo_pos <NEW_LINE> self.exitable = exitable <NEW_LINE> self.output_id = output_id <NEW_LINE>...
Represents a Plasma exit. Attributes: owner (str): Address of the exit's owner. amount (int): How much value is being exited. position (int): UTXO position exitable (boolean): whether will exit at processing output_id (str): output exit identifier (not exit id) bond_size (int): value of paid bo...
6259905a7b25080760ed87c7
class Message(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.active = False <NEW_LINE> self.flash = False <NEW_LINE> self.border = False <NEW_LINE> self.anim = 0 <NEW_LINE> self.speed = 3 <NEW_LINE> self.bitmap = None <NEW_LINE> self.text = '' <NEW_LINE> self.font = 'Sans' <NEW_LINE> self.off...
Represents a single message. It can be in one of two modes: if self.bitmap is None, it is generated on the fly from self.text and associated font settings. Otherwise the bitmap is used directly.
6259905af7d966606f7493a0
class RazerBlackWidowChromaOverwatch(_RippleKeyboard): <NEW_LINE> <INDENT> EVENT_FILE_REGEX = re.compile(r'.*BlackWidow_Chroma(-if01)?-event-kbd') <NEW_LINE> USB_VID = 0x1532 <NEW_LINE> USB_PID = 0x0211 <NEW_LINE> HAS_MATRIX = True <NEW_LINE> DEDICATED_MACRO_KEYS = True <NEW_LINE> MATRIX_DIMS = [6, 22] <NEW_LINE> METHO...
Class for the Razer BlackWidow Chroma (Overwatch)
6259905a2ae34c7f260ac6b7
class Worker(Person): <NEW_LINE> <INDENT> objects = WorkerQuerySet.as_manager() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> proxy = True <NEW_LINE> verbose_name = _('worker') <NEW_LINE> verbose_name_plural = _('workers')
Proxy class to tickle.Person so we can add some Fungus specific methods.
6259905a462c4b4f79dbcfd5
class ModuleTests(unittest.TestCase): <NEW_LINE> <INDENT> def test_waterregulation_system(self): <NEW_LINE> <INDENT> self.sensor = Sensor('127.0.0.1', '8000') <NEW_LINE> self.pump = Pump('127.0.0.1', '8000') <NEW_LINE> self.decider = Decider(100, 0.05) <NEW_LINE> self.controller = Controller(self.sensor, self.pump, sel...
Module tests for the water-regulation module
6259905add821e528d6da468
class TransitionError(Error): <NEW_LINE> <INDENT> def __init__(self, previous, next, message): <NEW_LINE> <INDENT> self.previous = previous <NEW_LINE> self.next = next <NEW_LINE> self.message = message
Raised when an operation attempts a state transition that' not allowed Attributes: previous -- state at beginning of transition next -- attempted new state message -- explanation of thwy the specific transition is not allowed
6259905a379a373c97d9a5f5
class MBDynAssignLabels(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "import.mdbyn_labels" <NEW_LINE> bl_label = "Import labels of MBDyn objects" <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> ret_val = assign_labels(context) <NEW_LINE> if ret_val == {'NOTHING_DONE'}: <NEW_LINE> <INDENT> message = '...
Assigns 'recognisable' labels to MBDyn nodes and elements by parsing the .log file
6259905a009cb60464d02b06
class TestingConfig(Config): <NEW_LINE> <INDENT> TESTING = True
Production configuration
6259905a2ae34c7f260ac6b8
class UserProfileAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> list_display = [ 'user', ]
Admin for UserProfile model.
6259905a45492302aabfdaa9
class ChatSession(async_chat): <NEW_LINE> <INDENT> def __init__(self, server, sock): <NEW_LINE> <INDENT> async_chat.__init__(self, sock) <NEW_LINE> self.server = server <NEW_LINE> self.set_terminator('\n') <NEW_LINE> self.data = [] <NEW_LINE> self.name = None <NEW_LINE> self.enter(LoginRoom(server)) <NEW_LINE> <DEDENT>...
responsible for communicating with a single user
6259905a8e71fb1e983bd09b
class CableGraphics: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.cable = ParticleCable() <NEW_LINE> self.shape = cylinder(radius = 0.1,color=color.cyan)
Class responsible for rendering cable links --------- properties: rod - ParticleRod shape - vpython.cylinder
6259905a004d5f362081fad6
class glcmCalculator(object): <NEW_LINE> <INDENT> def __init__(self, eeImage, info): <NEW_LINE> <INDENT> self.eeImage = eeImage <NEW_LINE> self.info = info <NEW_LINE> <DEDENT> def calc_glcm(self): <NEW_LINE> <INDENT> img = [] <NEW_LINE> for band in self.info: <NEW_LINE> <INDENT> dummy = self.eeImage.bands_dic[band] <NE...
Docstring.
6259905a99cbb53fe68324b1
class Agent(Entity): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Agent, self).__init__() <NEW_LINE> self.movable = True <NEW_LINE> self.silent = False <NEW_LINE> self.blind = False <NEW_LINE> self.u_noise = None <NEW_LINE> self.c_noise = None <NEW_LINE> self.u_range = 1.0 <NEW_LINE> self.state = A...
Properties of agent entities
6259905a0a50d4780f7068a7