code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class IFileInfo(Interface): <NEW_LINE> <INDENT> name = Attribute('The name of the file in its container') <NEW_LINE> title = Attribute('The title of the file or folder') <NEW_LINE> modified = Attribute('A string representing the modification time/date ' 'of the file or folder') <NEW_LINE> url = Attribute('A url for the... | An interface representing file info for display in views | 6259905ad486a94d0ba2d59a |
@base.vectorize <NEW_LINE> class rpeeks(base.StackInstruction): <NEW_LINE> <INDENT> code = base.opcodes['RPEEKS'] <NEW_LINE> arg_format = ['sw', 'r'] | RPEEKS i j
Peeks at position pointed to by register stack_pointer - r_j from the thread-local
sint stack and assigns to sint register s_i.
This instruction is vectorizable | 6259905a498bea3a75a590e5 |
class VGGExtractor(VGGBase): <NEW_LINE> <INDENT> def __init__(self, layers, filters, extras, batch_norm=False, **kwargs): <NEW_LINE> <INDENT> super(VGGExtractor, self).__init__(layers, filters, batch_norm, **kwargs) <NEW_LINE> with self.name_scope(): <NEW_LINE> <INDENT> self.extras_feature = nn.HybridSequential() <NEW_... | VGG multi layer feature extractor which produces multiple output feature maps
Parameters
------------
layers : list of int
Number of layer for vgg base network.
filters : list of int
Number of convolution filters for each layer.
extras : dict of str to list
Extra layers configurations
batch_norm : bool
... | 6259905abe8e80087fbc0656 |
class Attribute(str): <NEW_LINE> <INDENT> struct = struct.Struct('>2H') <NEW_LINE> def __new__(cls, data, *args, **kwargs): <NEW_LINE> <INDENT> return str.__new__(cls, data) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def decode(cls, data, offset, length): <NEW_LINE> <INDENT> return cls(buffer(data, offset, length)) <N... | STUN message attribute structure
:see: http://tools.ietf.org/html/rfc5389#section-15 | 6259905a23849d37ff852698 |
class DownloadLimitReached(OpenSubtitlesError, DownloadLimitExceeded): <NEW_LINE> <INDENT> pass | Exception raised when status is '407 Download limit reached'. | 6259905aa219f33f346c7dd8 |
class DefaultThemePlugin(DefaultThemeUniteOptions, UnitePlugin): <NEW_LINE> <INDENT> saved_conf = models.ForeignKey( DefaultThemeSavedUniteOptions, related_name='instances', related_query_name='instance', blank=True, null=True, verbose_name=_('saved configuration'), help_text=_('Override the unite options with the valu... | Default theme CMS plugin | 6259905a21bff66bcd724238 |
class Layout: <NEW_LINE> <INDENT> def __init__(self, elem_count, col_count, spacing): <NEW_LINE> <INDENT> self.col_count = col_count <NEW_LINE> self.row_count = math.ceil(elem_count / col_count) <NEW_LINE> self.col_widths = [0] * col_count <NEW_LINE> self.full_width = spacing * (col_count - 1) <NEW_LINE> self.spacing =... | A layout defines how to represent a list of words.
:attr col_count: the number of columns
:attr row_count: the number of rows
:attr col_widths: the width for each column
:attr full_width: the full width of the layout
:attr spacing: the spacing between each column | 6259905a99cbb53fe68324b3 |
class Component(object): <NEW_LINE> <INDENT> ... | A component that can be drawn in CAD. | 6259905a63b5f9789fe86746 |
class BulkSerializerMixin(object): <NEW_LINE> <INDENT> def to_internal_value(self, data): <NEW_LINE> <INDENT> ret = super(BulkSerializerMixin, self).to_internal_value(data) <NEW_LINE> view = self.context.get('view') <NEW_LINE> id_attr = view.lookup_url_kwarg or view.lookup_field <NEW_LINE> request_method = getattr(view... | 序列器支持批量操作的混合类 | 6259905a76e4537e8c3f0b60 |
class Contact(models.Model): <NEW_LINE> <INDENT> email = models.CharField(max_length=255, null=True) <NEW_LINE> subject = models.CharField(max_length=255, null=True, blank=True) <NEW_LINE> message = models.TextField(null=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return str(self.email) <NEW_LINE> <DEDENT> ... | Contact information | 6259905a0c0af96317c57849 |
class NaverDict: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.url = 'http://endic.naver.com/search.nhn?sLn=en&isOnlyViewEE=N&query=[word]' <NEW_LINE> <DEDENT> def get_def(self, org_word): <NEW_LINE> <INDENT> kor_word = None <NEW_LINE> eng_defs = "" <NEW_LINE> eng_def = "" <NEW_LINE> hanja = None <NE... | This class looks up korean vocabulary words using the
Naver korean-english dictionary. | 6259905acb5e8a47e493cc70 |
class WithdrawBill(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.WithdrawOrderId = None <NEW_LINE> self.Date = None <NEW_LINE> self.PayAmt = None <NEW_LINE> self.InSubAppId = None <NEW_LINE> self.OutSubAppId = None <NEW_LINE> self.CurrencyType = None <NEW_LINE> self.MetaData = None <N... | 聚鑫提现订单内容
| 6259905a462c4b4f79dbcfd9 |
class MedicalAppointmentStage(models.Model): <NEW_LINE> <INDENT> _name = "medical.appointment.stage" <NEW_LINE> _description = "Stage of Appointment" <NEW_LINE> _rec_name = 'name' <NEW_LINE> _order = "sequence" <NEW_LINE> name = fields.Char( 'Stage Name', size=64, required=True, translate=True, ) <NEW_LINE> sequence = ... | Model for case stages. This models the main stages of an appointment
management flow. Main CRM objects (leads, opportunities, project
issues, ...) will now use only stages, instead of state and stages.
Stages are for example used to display the kanban view of records. | 6259905aa8ecb033258727eb |
class Record(): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.__dict__ = kwargs <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def parse(cls, buf): <NEW_LINE> <INDENT> kwargs = {} <NEW_LINE> for row in buf.split('\n'): <NEW_LINE> <INDENT> if not row: <NEW_LINE> <INDENT> continue <NEW_LINE> <DE... | Record object of OVSDB table.
Attributes are corresponding to columns of parsed tables. | 6259905a8a43f66fc4bf3762 |
class Commentable(models.Model): <NEW_LINE> <INDENT> n_comments = models.IntegerField( verbose_name=_('number of comments'), blank=True, default=0, editable=False, db_index=True ) <NEW_LINE> commenting = EnumIntegerField(Commenting, verbose_name=_('commenting'), default=Commenting.NONE) <NEW_LINE> commenting_map_tools ... | Mixin for models which can be commented. | 6259905a3539df3088ecd870 |
@register_resource <NEW_LINE> class v1_NamedRole(Resource): <NEW_LINE> <INDENT> __kind__ = 'v1.NamedRole' <NEW_LINE> __fields__ = { 'name': 'name', 'role': 'role', } <NEW_LINE> __types__ = { 'role': 'v1.Role', } <NEW_LINE> __required__ = set([ 'name', 'role', ]) <NEW_LINE> name = None <NEW_LINE> role = None <NEW_LINE> ... | NamedRole relates a Role with a name | 6259905a3617ad0b5ee0771f |
class DiscreteGenerational(Network): <NEW_LINE> <INDENT> __mapper_args__ = {"polymorphic_identity": "discrete-generational"} <NEW_LINE> def __init__(self, generations, generation_size, initial_source): <NEW_LINE> <INDENT> self.property1 = repr(generations) <NEW_LINE> self.property2 = repr(generation_size) <NEW_LINE> se... | A discrete generational network.
A discrete generational network arranges agents into none-overlapping
generations. Each agent is connected to all agents in the previous
generation. If initial_source is true agents in the first generation will
connect to the oldest source in the network. generation_size dictates how
m... | 6259905a4e4d5625663739dc |
class ctrlport_probe_c(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> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def m... | A ControlPort probe to export vectors of signals.
This block acts as a sink in the flowgraph but also exports vectors of complex samples over ControlPort. This block simply sends the current vector held in the work function when the queried by a ControlPort client.
Constructor Specific Documentation:
Make a ControlP... | 6259905a097d151d1a2c2641 |
class Entry: <NEW_LINE> <INDENT> @property <NEW_LINE> def nodes(self): <NEW_LINE> <INDENT> return self.__nodes <NEW_LINE> <DEDENT> @property <NEW_LINE> def time(self): <NEW_LINE> <INDENT> return self.__time <NEW_LINE> <DEDENT> @property <NEW_LINE> def reason(self): <NEW_LINE> <INDENT> return self.__reason <NEW_LINE> <D... | PRIVATE-PUBLIC : accessed through a Slurm.State object
Describes a group of nodes which share a time and reason for being in a Slurm state | 6259905a7cff6e4e811b7018 |
class PubSubAPIServicer(object): <NEW_LINE> <INDENT> def PubSub(self, request_iterator, context): <NEW_LINE> <INDENT> context.set_code(grpc.StatusCode.UNIMPLEMENTED) <NEW_LINE> context.set_details('Method not implemented!') <NEW_LINE> raise NotImplementedError('Method not implemented!') | PubSubAPI provides a libp2p pubsub API and is equivalent to go-ipfs
`ipfs pubsub` subset of commands. | 6259905a507cdc57c63a637a |
class SearchContinuousSetsRunner(AbstractSearchRunner): <NEW_LINE> <INDENT> def __init__(self, args): <NEW_LINE> <INDENT> super(SearchContinuousSetsRunner, self).__init__(args) <NEW_LINE> self._datasetId = args.datasetId <NEW_LINE> <DEDENT> def _run(self, datasetId): <NEW_LINE> <INDENT> iterator = self._client.search_c... | Runner class for the continuoussets/search method. | 6259905a2ae34c7f260ac6bc |
class CachedContextlessDistributionSmoother(ContextlessDistributionSmoother): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._parse_result_smooth_count_map = { 0: 0.008502447849533839, 1: 0.21471040149642595, 2: 1.1129522477195453, 3: 1.8991528085245906, 4: 3.488358849588453, 5: 3.9048094131380293 } <... | Since SimpleGoodTuringContextlessDistributionSmoother takes a lot of time to initialize,
this class returns the smooth counts which are calculated before.
The values are calculated using test_simplegoodturingcontextlessdistributionsmoother.py.
In a production app, these values should be cached in a db collection and ... | 6259905a0fa83653e46f64bb |
class TaxonomyAdminMenuPlugin(Plugin): <NEW_LINE> <INDENT> implements(IPluginBlock) <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.name = 'AdminLeftPanelBottomPanePlugin' <NEW_LINE> self.plugin_guid = '63eadfa2-aa3b-4a0c-9232-b3ff568e5eb6' <NEW_LINE> <DEDENT> def return_string(self, tagname, *args): <NEW_LINE>... | adds a menu item to the admin screen
| 6259905a435de62698e9d3d9 |
class TranslateWizard(Wizard): <NEW_LINE> <INDENT> __name__ = 'translate.wizard' <NEW_LINE> start = StateView( 'translate.wizard.start', 'translate.view_translate_wizard_start', [ Button('Cancel', 'end', 'tryton-cancel'), Button('Translate', 'translate', 'tryton-ok', default=True), ]) <NEW_LINE> translate = StateTransi... | Translate Wizard | 6259905a004d5f362081fad8 |
class VGG2L(torch.nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_channel: int = 1): <NEW_LINE> <INDENT> super(VGG2L, self).__init__() <NEW_LINE> self.conv1_1 = torch.nn.Conv2d(in_channel, 64, 3, stride=1, padding=1) <NEW_LINE> self.conv1_2 = torch.nn.Conv2d(64, 64, 3, stride=1, padding=1) <NEW_LINE> self.conv2_1... | VGG-like module.
Args:
in_channel: number of input channels | 6259905acc0a2c111447c5b9 |
class DiskGroupsDiskIdSchema(DefinitionsSchema): <NEW_LINE> <INDENT> title = "Diskgroups Disk Id Schema" <NEW_LINE> description = "ESXi host diskgroup schema containing disk ids" <NEW_LINE> diskgroups = ArrayItem( title="DiskGroups", description="List of disk groups in an ESXi host", min_items=1, items=DiskGroupDiskIdI... | Schema of ESXi host diskgroups containing disk ids | 6259905a8e7ae83300eea663 |
class NeuralNetwork: <NEW_LINE> <INDENT> def __init__(self, input_layer_nodes, hidden_layer_nodes, output_layer_nodes, learning_rate): <NEW_LINE> <INDENT> self.input_layer_nodes = input_layer_nodes <NEW_LINE> self.hidden_layer_nodes = hidden_layer_nodes <NEW_LINE> self.output_layer_nodes = output_layer_nodes <NEW_LINE>... | 神经网络
| 6259905a0c0af96317c5784a |
class On(Builtin): <NEW_LINE> <INDENT> attributes = ('HoldAll',) <NEW_LINE> def apply(self, expr, evaluation): <NEW_LINE> <INDENT> seq = expr.get_sequence() <NEW_LINE> quiet_messages = set(evaluation.get_quiet_messages()) <NEW_LINE> if not seq: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> for e in seq: <NEW_LINE> <IN... | <dl>
<dt>'On[$symbol$::$tag$]'
<dd>turns a message on for printing.
</dl>
>> Off[Power::infy]
>> 1 / 0
= ComplexInfinity
>> On[Power::infy]
>> 1 / 0
: Infinite expression 1 / 0 encountered.
= ComplexInfinity | 6259905a8a43f66fc4bf3764 |
class PartySeatingTest(unittest.TestCase): <NEW_LINE> <INDENT> logger = logging.getLogger('PartySeatingTest') <NEW_LINE> data = data <NEW_LINE> party = party <NEW_LINE> def known_test(self, known, A, B): <NEW_LINE> <INDENT> self.assertEqual( len(A) + len(B), len(known), "wrong number of guests: " f"{len(known)} guests,... | Test suite for party seating problem | 6259905add821e528d6da46b |
class SingleObjectTemplateResponseMixin(JinjaTemplateResponseMixin, _generic_detail.SingleObjectTemplateResponseMixin): <NEW_LINE> <INDENT> pass | Equivalent of django mixin SingleObjectTemplateResponseMixin, but uses Jinja template renderer. | 6259905a4e4d5625663739dd |
class MeanStatisticGame(object): <NEW_LINE> <INDENT> def __init__(self, N, choices): <NEW_LINE> <INDENT> self.N = N <NEW_LINE> self.choices = choices <NEW_LINE> self.statistics = xrange((self.N-1)*min(self.choices), (self.N-1)*max(self.choices)+1) <NEW_LINE> <DEDENT> def table(self): <NEW_LINE> <INDENT> return [ [ own,... | A general mean statistic game: a symmetric game in which the
player's payoff depends on his choice and the sum of the choices
of the other players.
This class is abstract in that it depends upon, but does not define,
the method payoff(own, others), which provides the payoff for
any given vector of own choice and sum o... | 6259905a4e4d5625663739de |
class PingCtrl (Alive): <NEW_LINE> <INDENT> pingLim=3 <NEW_LINE> def __init__ (self): <NEW_LINE> <INDENT> super(PingCtrl, self).__init__(timeoutSec['arpReply']) <NEW_LINE> self.pending = 0 <NEW_LINE> <DEDENT> def sent (self): <NEW_LINE> <INDENT> self.refresh() <NEW_LINE> self.pending += 1 <NEW_LINE> <DEDENT> def failed... | Holds information for handling ARP pings for hosts | 6259905a7047854f46340996 |
class IOType(enum.Enum): <NEW_LINE> <INDENT> NONE = enum.auto() <NEW_LINE> INPUT = enum.auto() <NEW_LINE> OUTPUT = enum.auto() | Enum to distinguish between input and output types
| 6259905a3539df3088ecd873 |
class SomeComponent: <NEW_LINE> <INDENT> def __init__(self, some_int, some_list_of_objects, some_circular_ref): <NEW_LINE> <INDENT> self.some_int = some_int <NEW_LINE> self.some_list_of_objects = some_list_of_objects <NEW_LINE> self.some_circular_ref = some_circular_ref <NEW_LINE> <DEDENT> def __copy__(self): <NEW_LINE... | Python provides its own interface of Prototype via `copy.copy` and
`copy.deepcopy` functions. And any class that wants to implement custom
implementations have to override `__copy__` and `__deepcopy__` member
functions. | 6259905a55399d3f05627af6 |
class EntityExtractor(ABC): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def extract_entities(self, text: str, max_retries=5): <NEW_LINE> <INDENT> return dict() | Abstract class for entity extractors.
Responsible for processing text and extracting entities such as names, dates, places etc. | 6259905a097d151d1a2c2643 |
class CheckNetworks(action.Action): <NEW_LINE> <INDENT> def run(self, **kwargs): <NEW_LINE> <INDENT> LOG.debug("Checking networks...") <NEW_LINE> overlapped_resources = {} <NEW_LINE> src_net = self.src_cloud.resources[utils.NETWORK_RESOURCE] <NEW_LINE> dst_net = self.dst_cloud.resources[utils.NETWORK_RESOURCE] <NEW_LIN... | Check networks segmentation ID, subnets and floating IPs overlapping. Also
check if VMs from SRC spawned in external networks directly.
Returns list of all overlaps and prints it to the LOG. If this list is
non-empty, raise exception (AbortMigrationError).
It must be done before actual migration in the 'preparation' ... | 6259905a23849d37ff85269c |
class editMessageCaption(MessageUpdate): <NEW_LINE> <INDENT> def __init__(self, chat_id=None, message_id=None, inline_message_id=None, caption=None, parse_mode=None, reply_markup: InlineKeyboardMarkup = None, message: Message = None, propagate_values: bool = False, propagate_fields: dict = None): <NEW_LINE> <INDENT> su... | Use this method to edit captions of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
Parameters
----------
chat_id : Integer or String, optional
Required if inline_message_id is not specified. Unique identifier for the target chat or username ... | 6259905ad53ae8145f919a38 |
class EmailAuth: <NEW_LINE> <INDENT> def authenticate(self, username=None, password=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> user = User.objects.get(email=username) <NEW_LINE> if user.check_password(password): <NEW_LINE> <INDENT> return user <NEW_LINE> <DEDENT> return None <NEW_LINE> <DEDENT> except User.Doe... | Authenticate a user by an exact match on the email and password | 6259905a7cff6e4e811b701a |
class Cluster: <NEW_LINE> <INDENT> def __init__(self, extents): <NEW_LINE> <INDENT> assert len(extents)==7 <NEW_LINE> self.extents = list(extents) <NEW_LINE> self.space = [reduce(mul, extents[:i]) for i in range(1,len(extents))] <NEW_LINE> self.space.append(extents[-1]*self.space[3]) <NEW_LINE> <DEDENT> def address_fro... | stub class for testing | 6259905abaa26c4b54d5087b |
class LLG2: <NEW_LINE> <INDENT> def __init__(self, mesh, material, **kwargs): <NEW_LINE> <INDENT> self.mesh = mesh <NEW_LINE> self.material = material <NEW_LINE> self.scale = kwargs.pop('scale', 1.0) <NEW_LINE> self.demag_order = kwargs.pop('demag_order', 2) <NEW_LINE> self.VV = VectorFunctionSpace(self... | This class defines methods for the numerical integration of the LLG. The
effective field includes exchange, demagnetization and external field terms.
As opposed to the LLG class here CBC.Block is used and the micromagnetic
constraint is imposed only on the nodes. | 6259905aa17c0f6771d5d68d |
class WithFixtures(object): <NEW_LINE> <INDENT> _FIXTURE_SEPARATOR = '==================================================' <NEW_LINE> @classmethod <NEW_LINE> def setup_class(cls): <NEW_LINE> <INDENT> cls._fixtures = {} <NEW_LINE> base_dir = path.abspath(path.dirname(__file__)) <NEW_LINE> cls_dir = cls.__name__[4:] <NEW_... | Preload class fixtures (if any) on class initialization and
check with special fixture tester function does the computed
result equal precomputed output in fixture.
Example of location:
tests/
test_serializers.py
test_validators.py
fixtures/
XML2Config/ # <- class name (without Test prefix)
... | 6259905a2c8b7c6e89bd4dc5 |
class CocoValidationDataset(data.Dataset): <NEW_LINE> <INDENT> def __init__(self, root, json, vocab, transform=None): <NEW_LINE> <INDENT> self.root = root <NEW_LINE> self.vocab = vocab <NEW_LINE> self.transform = transform <NEW_LINE> self.coco = COCO(json) <NEW_LINE> ids = list(self.coco.anns.keys()) <NEW_LINE> caption... | COCO Custom Dataset compatible with torch.utils.data.DataLoader. | 6259905ab7558d5895464a17 |
class NameDict(dict): <NEW_LINE> <INDENT> def __init__(self,iterable=[]): <NEW_LINE> <INDENT> dict.__init__(self, ((x.name,x) for x in iterable)) <NEW_LINE> <DEDENT> def append(self,obj): <NEW_LINE> <INDENT> if obj.name in self: <NEW_LINE> <INDENT> raise KeyError("%s already in dict" % obj.name) <NEW_LINE> <DEDENT> sel... | A dictionary whose constructor accepts an iterable of objects
that has a name property. This name property becomes the keys in
the dictionary. The objects are the values | 6259905a097d151d1a2c2644 |
class TestCreateSmtpTemplateSender(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 testCreateSmtpTemplateSender(self): <NEW_LINE> <INDENT> pass | CreateSmtpTemplateSender unit test stubs | 6259905a0a50d4780f7068aa |
class drivetrain_csm(object): <NEW_LINE> <INDENT> def __init__(self, drivetrain_type='geared'): <NEW_LINE> <INDENT> self.drivetrain_type = drivetrain_type <NEW_LINE> power = np.zeros(161) <NEW_LINE> <DEDENT> def compute(self, aero_power, aero_torque, aero_thrust, rated_power): <NEW_LINE> <INDENT> if self.drivetrain_typ... | drivetrain losses from NREL cost and scaling model | 6259905aa79ad1619776b5a9 |
class GetLatestFoodInputSet(InputSet): <NEW_LINE> <INDENT> def set_AccessToken(self, value): <NEW_LINE> <INDENT> super(GetLatestFoodInputSet, self)._set_input('AccessToken', value) <NEW_LINE> <DEDENT> def set_AccessTokenSecret(self, value): <NEW_LINE> <INDENT> super(GetLatestFoodInputSet, self)._set_input('AccessTokenS... | An InputSet with methods appropriate for specifying the inputs to the GetLatestFood
Choreo. The InputSet object is used to specify input parameters when executing this Choreo. | 6259905a2ae34c7f260ac6bf |
class Triangle(PXPath): <NEW_LINE> <INDENT> SIZE = 20 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> PXPath.__init__(self) <NEW_LINE> x, y = 0, 0 <NEW_LINE> self.moveTo(x, y) <NEW_LINE> x -= self.SIZE * math.cos(math.pi / 6) <NEW_LINE> y -= self.SIZE * math.sin(math.PI / 6) <NEW_LINE> self.lineTo(x, y) <NEW_LINE> y... | Icon which is basically a right-facing equilateral triangle | 6259905acc0a2c111447c5ba |
class ViewListTest(ListsTest): <NEW_LINE> <INDENT> def test_001(self): <NEW_LINE> <INDENT> self.browser.get(self.live_server_url) <NEW_LINE> self.add_list_item('买一些孔雀羽毛') <NEW_LINE> self.add_list_item('用孔雀羽毛做假蝇') <NEW_LINE> url = self.browser.current_url <NEW_LINE> self.quit_browser() <NEW_LINE> self.init_browser() <NE... | 显示清单测试
| 6259905a63b5f9789fe8674a |
class FilterWindowed(deeding.DeedLapse): <NEW_LINE> <INDENT> Ioinits = odict( group = 'filter.sensor.generic', output = 'state.generic', input = 'ctd', field = 'generic', depth = 'state.depth', parms = dict(window = 60.0, frac = 0.9, preload = 30.0, layer = 40.0, tolerance = 5.0)) <NEW_LINE> def __init__(self, **kw): ... | Class | 6259905a379a373c97d9a5fc |
class Attachment(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'attachments' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> issue_id = db.Column(db.ForeignKey(u'issues.id'), index=True) <NEW_LINE> image_url = db.Column(db.Text) <NEW_LINE> issue = db.relationship(u'Issue') <NEW_LINE> def get_thumbna... | Attachment table in the database. | 6259905aa8ecb033258727ef |
class GdalImage: <NEW_LINE> <INDENT> def __init__(self, gdaldataset): <NEW_LINE> <INDENT> self.dataset = gdaldataset <NEW_LINE> <DEDENT> def close(self): <NEW_LINE> <INDENT> self.dataset = None <NEW_LINE> <DEDENT> def read_band(self, band_idx, subset=None): <NEW_LINE> <INDENT> if band_idx < 1 or band_idx > self.dataset... | A sample class to access a image with GDAL library | 6259905ab57a9660fecd3053 |
class VoiceEqualityNumberOfNotesFeature(featuresModule.FeatureExtractor): <NEW_LINE> <INDENT> id = 'T4' <NEW_LINE> def __init__(self, dataOrStream=None, *arguments, **keywords): <NEW_LINE> <INDENT> super().__init__(dataOrStream=dataOrStream, *arguments, **keywords) <NEW_LINE> self.name = 'Voice Equality - Number of Not... | Not implemented
TODO: implement
Standard deviation of the total number of Note Ons in each channel
that contains at least one note. | 6259905aac7a0e7691f73aba |
class RBiomartr(RPackage): <NEW_LINE> <INDENT> homepage = "https://docs.ropensci.org/biomartr" <NEW_LINE> url = "https://cloud.r-project.org/src/contrib/biomartr_0.9.2.tar.gz" <NEW_LINE> list_url = "https://cloud.r-project.org/src/contrib/Archive/biomartr" <NEW_LINE> version('0.9.2', sha256='d88085696e9c5614828602... | Perform large scale genomic data retrieval and functional annotation
retrieval. This package aims to provide users with a standardized way to
automate genome, proteome, 'RNA', coding sequence ('CDS'), 'GFF', and
metagenome retrieval from 'NCBI RefSeq', 'NCBI Genbank', 'ENSEMBL',
'ENSEMBLGENOMES', and 'UniProt' database... | 6259905a99cbb53fe68324b8 |
class PlaneWall(Resistance): <NEW_LINE> <INDENT> def __init__(self, Material, Node1, Node2, L1, L2, A): <NEW_LINE> <INDENT> super().__init__(Material, Node1, Node2) <NEW_LINE> self.L1 = L1 <NEW_LINE> self.L2 = L2 <NEW_LINE> self.A = A <NEW_LINE> <DEDENT> @property <NEW_LINE> def resistance_value(self): <NEW_LINE> <INDE... | Material,Node1,Node2,L1,L2,A | 6259905a30dc7b76659a0d6c |
class Actor(): <NEW_LINE> <INDENT> def __init__(self,state_size,action_size,action_low,action_high): <NEW_LINE> <INDENT> self.state_size = state_size <NEW_LINE> self.action_size = action_size <NEW_LINE> self.action_high = action_high <NEW_LINE> self.action_low = action_low <NEW_LINE> self.action_range = self.action_hig... | Actor (Policy) Model | 6259905ad99f1b3c44d06c79 |
class ValidationError(Exception): <NEW_LINE> <INDENT> pass | A generic validation error. | 6259905a56b00c62f0fb3ea4 |
class django_disabled(uh.StaticHandler): <NEW_LINE> <INDENT> name = "django_disabled" <NEW_LINE> @classmethod <NEW_LINE> def identify(cls, hash): <NEW_LINE> <INDENT> if not hash: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> if isinstance(hash, bytes): <NEW_LINE> <INDENT> return hash == b("!") <NEW_LINE> <DEDENT... | This class provides disabled password behavior for Django, and follows the :ref:`password-hash-api`.
This class does not implement a hash, but instead
claims the special hash string ``"!"`` which Django uses
to indicate an account's password has been disabled.
* newly encrypted passwords will hash to ``!``.
* it reje... | 6259905a32920d7e50bc761f |
class BsdfComponentExtension(bsdf.Extension): <NEW_LINE> <INDENT> name = 'flexx.app.component' <NEW_LINE> cls = BaseAppComponent <NEW_LINE> def match(self, s, c): <NEW_LINE> <INDENT> return isinstance(c, self.cls) <NEW_LINE> <DEDENT> def encode(self, s, c): <NEW_LINE> <INDENT> if isinstance(c, PyComponent): <NEW_LINE> ... | A BSDF extension to encode flexx.app Component objects based on their
session id and component id. | 6259905a627d3e7fe0e08466 |
class FileSPIRVShader(PlaceHolder): <NEW_LINE> <INDENT> def __init__(self, source, suffix, assembly_substr=None): <NEW_LINE> <INDENT> assert isinstance(source, str) <NEW_LINE> assert isinstance(suffix, str) <NEW_LINE> self.source = source <NEW_LINE> self.suffix = suffix <NEW_LINE> self.filename = None <NEW_LINE> self.a... | Stands for a source shader file which must be converted to SPIR-V. | 6259905a16aa5153ce401abc |
class StatusView(ViewSet): <NEW_LINE> <INDENT> def list(self, request): <NEW_LINE> <INDENT> statuses = Status.objects.all() <NEW_LINE> serializer = StatusSerializer( statuses, many=True, context={'request': None}) <NEW_LINE> return Response(serializer.data) | Handle GET requests to list all statuses | 6259905a16aa5153ce401abd |
class SentPageMessageReply(LoginRequiredMixin, CreateView): <NEW_LINE> <INDENT> form_class = ReplyForm <NEW_LINE> def form_valid(self, form): <NEW_LINE> <INDENT> particular_message = get_object_or_404(DefuseMessage, pk=self.kwargs['pk']) <NEW_LINE> receiver = get_object_or_404(User, username=particular_message.receiver... | Reply to a specific message | 6259905a99cbb53fe68324b9 |
class ListPolicy(lister.Lister): <NEW_LINE> <INDENT> log = logging.getLogger(__name__ + '.ListPolicy') <NEW_LINE> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(ListPolicy, self).get_parser(prog_name) <NEW_LINE> return parser <NEW_LINE> <DEDENT> def take_action(self, parsed_args): <NEW_LINE> <INDEN... | List Policy. | 6259905a6e29344779b01c26 |
class Block(metaclass=ABCMeta): <NEW_LINE> <INDENT> def __init__(self, name, block_id, position): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._block_id = block_id <NEW_LINE> self._position = position <NEW_LINE> <DEDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self._name <NEW_LINE> <DED... | Abstract class: Block | 6259905a097d151d1a2c2646 |
class PreciseTimer(Timer): <NEW_LINE> <INDENT> __slots__ = ('format_string',) <NEW_LINE> TIME_SENSITIVE = True <NEW_LINE> def __init__(self, format='Elapsed Time: %s'): <NEW_LINE> <INDENT> self.format_string = format <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def format_time(seconds): <NEW_LINE> <INDENT> return str(d... | Widget which displays the elapsed seconds. | 6259905a07d97122c421827e |
class Collectors(ListCollector): <NEW_LINE> <INDENT> def collect(self, component): <NEW_LINE> <INDENT> collectors = component.get_export('collectors', []) <NEW_LINE> for collector in collectors: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> collector = component.get_object(collector) <NEW_LINE> <DEDENT> except ImportErr... | This class handles member group collector exports. The member group
collectors should be :py:class:`Collector` subclasses that manage
individual groups. | 6259905a07f4c71912bb0a14 |
class MessageAnnouncer: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.listeners = [] <NEW_LINE> <DEDENT> def listen(self): <NEW_LINE> <INDENT> q = queue.Queue(maxsize=5) <NEW_LINE> self.listeners.append(q) <NEW_LINE> return q <NEW_LINE> <DEDENT> def announce(self, msg): <NEW_LINE> <INDENT> for i in r... | See https://maxhalford.github.io/blog/flask-sse-no-deps/ | 6259905ad486a94d0ba2d5a2 |
class PushChannel: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def factory(opts, **kwargs): <NEW_LINE> <INDENT> return SyncWrapper( AsyncPushChannel.factory, (opts,), kwargs, loop_kwarg="io_loop", ) <NEW_LINE> <DEDENT> def send(self, load, tries=3, timeout=60): <NEW_LINE> <INDENT> raise NotImplementedError() | Factory class to create Sync channel for push side of push/pull IPC | 6259905a73bcbd0ca4bcb86d |
class FileFinder(HTMLParser): <NEW_LINE> <INDENT> def __init__(self, url): <NEW_LINE> <INDENT> HTMLParser.__init__(self) <NEW_LINE> self.fileLinks, self.dirLinks = [], [] <NEW_LINE> self.basePath = self._getParent(urlparse.urlparse(url).path) <NEW_LINE> if not self.basePath.endswith('/'): <NEW_LINE> <INDENT> self.baseP... | Parser for an Apache index page, gathering all links to files and subdirectories. | 6259905a63b5f9789fe8674c |
class SubmissionsTrelloClient(Trello): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> with app.app_context(): <NEW_LINE> <INDENT> super().__init__( api_key=app.config["TRELLO_API_KEY"], token=app.config["TRELLO_API_TOKEN"], ) <NEW_LINE> <DEDENT> <DEDENT> @property <NEW_LINE> @functools.lru_cache() <NEW_LIN... | Wrap the base Trello client with one that understands the business logic of the Submissions
app. | 6259905a76e4537e8c3f0b66 |
class DictItem(MutableMapping, BaseItem): <NEW_LINE> <INDENT> fields = {} <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self._values = {} <NEW_LINE> if args or kwargs: <NEW_LINE> <INDENT> for k, v in six.iteritems(dict(*args, **kwargs)): <NEW_LINE> <INDENT> self[k] = v <NEW_LINE> <DEDENT> <DEDENT>... | https://github.com/scrapy/scrapy/blob/master/scrapy/item.py | 6259905a379a373c97d9a5fe |
class TransRamHsW_addr(TransRamHsR_addr): <NEW_LINE> <INDENT> def _config(self): <NEW_LINE> <INDENT> TransRamHsR_addr._config(self) <NEW_LINE> self.USE_FLUSH = Param(True) <NEW_LINE> <DEDENT> def _declr(self): <NEW_LINE> <INDENT> TransRamHsR_addr._declr(self) <NEW_LINE> if(self.USE_FLUSH == True): <NEW_LINE> <INDENT> s... | .. hwt-autodoc:: | 6259905a8e7ae83300eea667 |
class ipaddr(nla_base_string): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> sql_type = 'TEXT' <NEW_LINE> def ft_encode(self, offset): <NEW_LINE> <INDENT> if self.value.find(':') > -1: <NEW_LINE> <INDENT> family = AF_INET6 <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> family = AF_INET <NEW_LINE> <DEDENT> self['value'] ... | This class is used to decode IP addresses according to
the family. Socket library currently supports only two
families, AF_INET and AF_INET6.
We do not specify here the string size, it will be
calculated in runtime. | 6259905afff4ab517ebcedfe |
class HTTPNotFound(HTTPError): <NEW_LINE> <INDENT> def __init__(self, title='Not found', description=None): <NEW_LINE> <INDENT> super(HTTPNotFound, self).__init__(nfw.HTTP_404, title, description) | 404 Not Found.
| 6259905a0c0af96317c5784c |
class MSRulerData(object): <NEW_LINE> <INDENT> def addGuideWithValue(self, value): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def numberOfGuides(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def guideAtIndex(self, index): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def removeGuideAtIndex(self, index): <NEW_LIN... | Stores the guides used on its ruler. MSPage and MSArtboardGroup both return their ruler
data using horizontalRulerData and verticalRulerData. | 6259905a3539df3088ecd876 |
class SiteDef: <NEW_LINE> <INDENT> def __init__(self, n, ss=[]): <NEW_LINE> <INDENT> self.name = n <NEW_LINE> self.state_list = ss <NEW_LINE> <DEDENT> def write_as_bngl(self): <NEW_LINE> <INDENT> if self.state_list: <NEW_LINE> <INDENT> return "%s~%s" % (self.name, '~'.join(self.state_list)) <NEW_LINE> <DEDENT> else: <N... | A site definition composed of a name and a finite set of states | 6259905ab5575c28eb7137b9 |
class Meta(object): <NEW_LINE> <INDENT> model = models.Template | Django instruction to link the form to UserGroup model. | 6259905a097d151d1a2c2647 |
class LineageFetcher(object): <NEW_LINE> <INDENT> def __init__(self, db=None, cursor=None): <NEW_LINE> <INDENT> self._db = db or getDatabaseConnection() <NEW_LINE> self._cursor = cursor or self._db.cursor() <NEW_LINE> self._cache = {} <NEW_LINE> <DEDENT> def lineage(self, title): <NEW_LINE> <INDENT> if title in self._c... | Provide access to the NCBI taxonomy database so we can retrieve the lineage
of title sequences hit by BLAST. | 6259905a009cb60464d02b0f |
class Ec2Instance(object): <NEW_LINE> <INDENT> def __init__(self, instance_id, instance_ip, tags): <NEW_LINE> <INDENT> self.instance_id = instance_id <NEW_LINE> self.instance_ip = instance_ip <NEW_LINE> self.tags = {} <NEW_LINE> for tag in tags: <NEW_LINE> <INDENT> self.tags[tag['Key']] = tag['Value'] <NEW_LINE> <DEDEN... | Contains configuration info for an EC2 instance, including the
instance ID, IP address and tags | 6259905a30dc7b76659a0d6d |
class WordsegBuild(distutils.command.build.build): <NEW_LINE> <INDENT> targets = ['dpseg'] <NEW_LINE> def run(self): <NEW_LINE> <INDENT> distutils.command.build.build.run(self) <NEW_LINE> if on_readthedocs(): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> for target in self.targets: <NEW_LINE> <INDENT> build_dir = os.p... | Compile the C++ code needed by wordseg | 6259905a2ae34c7f260ac6c2 |
class HostPrepCommand(TemareCommand): <NEW_LINE> <INDENT> def __init__(self, base): <NEW_LINE> <INDENT> TemareCommand.__init__(self, base) <NEW_LINE> self.failed = 0 <NEW_LINE> self.names = ['hostprep'] <NEW_LINE> self.usage = 'HOSTNAME...' <NEW_LINE> self.summary = 'Prepare and start testruns on the specified hosts' <... | Output guest configurations for a new test run on a given host
| 6259905a0fa83653e46f64c0 |
class AzureFirewallApplicationRuleCollection(SubResource): <NEW_LINE> <INDENT> _validation = { 'etag': {'readonly': True}, 'priority': {'maximum': 65000, 'minimum': 100}, 'provisioning_state': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'},... | Application rule collection resource.
Variables are only populated by the server, and will be ignored when sending a request.
:param id: Resource ID.
:type id: str
:param name: Gets name of the resource that is unique within a resource group. This name can be
used to access the resource.
:type name: str
:ivar etag: ... | 6259905a32920d7e50bc7621 |
class TestSwiftTelemetry(manager.SwiftScenarioTest): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def resource_setup(cls): <NEW_LINE> <INDENT> if not CONF.service_available.ceilometer: <NEW_LINE> <INDENT> skip_msg = ("%s skipped as ceilometer is not available" % cls.__name__) <NEW_LINE> raise cls.skipException(skip_msg)... | Test that swift uses the ceilometer middleware.
* create container.
* upload a file to the created container.
* retrieve the file from the created container.
* wait for notifications from ceilometer. | 6259905a004d5f362081fadb |
class MainPage(Page): <NEW_LINE> <INDENT> login_assert_text_loc = (By.CLASS_NAME, "alert-success") <NEW_LINE> def assert_login_text(self): <NEW_LINE> <INDENT> return self.find_element(self.login_assert_text_loc).text | 主页 | 6259905a16aa5153ce401abf |
class TitleInfo: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.value = '' <NEW_LINE> <DEDENT> def to_mods_element(self, parent_element): <NEW_LINE> <INDENT> top_level = ET.SubElement(parent_element, 'titleInfo') <NEW_LINE> return top_level | Holds identifier information | 6259905aa219f33f346c7de0 |
class UserManager(BaseUserManager): <NEW_LINE> <INDENT> use_in_migrations = True <NEW_LINE> def _create_user(self, username, password, is_staff, **extra_fields): <NEW_LINE> <INDENT> now = timezone.now() <NEW_LINE> if not username: <NEW_LINE> <INDENT> raise ValueError('The given username must be set') <NEW_LINE> <DEDENT... | Email is required to create users by default, and
the implementation here removes the email | 6259905a4428ac0f6e659b17 |
class EncryptError(AnidbApiError): <NEW_LINE> <INDENT> pass | Encryption error, encrypted session cannot be established. | 6259905a99cbb53fe68324bb |
class ErrorProperties(object): <NEW_LINE> <INDENT> openapi_types = { 'type': 'str', 'message': 'str', 'fields': 'dict(str, object)' } <NEW_LINE> attribute_map = { 'type': 'type', 'message': 'message', 'fields': 'fields' } <NEW_LINE> def __init__(self, type=None, message=None, fields=None): <NEW_LINE> <INDENT> self._typ... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 6259905a07d97122c4218280 |
class GifConvertOptions(ImageConvertOptions): <NEW_LINE> <INDENT> swagger_types = { } <NEW_LINE> attribute_map = { } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> base = super(GifConvertOptions, self) <NEW_LINE> base.__init__(**kwargs) <NEW_LINE> self.swagger_types.update(base.swagger_types) <NEW_LINE> s... | Gif convert options | 6259905a3cc13d1c6d466d1b |
class GhostController: <NEW_LINE> <INDENT> def __init__(self, maxlen: int = 10): <NEW_LINE> <INDENT> self._queue: Deque[int] = deque(maxlen=maxlen) <NEW_LINE> self._learning_team: int = -1 <NEW_LINE> self._ghost_trainers: Dict[int, GhostTrainer] = {} <NEW_LINE> self._changed_training_team = False <NEW_LINE> <DEDENT> @p... | GhostController contains a queue of team ids. GhostTrainers subscribe to the GhostController and query
it to get the current learning team. The GhostController cycles through team ids every 'swap_interval'
which corresponds to the number of trainer steps between changing learning teams.
The GhostController is a unique... | 6259905abaa26c4b54d50880 |
class DetectorDataset(utils.Dataset): <NEW_LINE> <INDENT> def __init__(self, image_fps, image_annotations, orig_height, orig_width): <NEW_LINE> <INDENT> super().__init__(self) <NEW_LINE> self.add_class('pneumonia', 1, 'Lung Opacity') <NEW_LINE> for i, fp in enumerate(image_fps): <NEW_LINE> <INDENT> annotations = image_... | Dataset class for training pneumonia detection on the RSNA pneumonia dataset. | 6259905a7b25080760ed87cd |
class ScanTask(QThread): <NEW_LINE> <INDENT> stepComplete = Signal(int) <NEW_LINE> def __init__(self, sipa, fipa, rdir, ignoreUnk=True, includeLocalhost=False, parent=None): <NEW_LINE> <INDENT> self.sipa = sipa <NEW_LINE> self.fipa = fipa <NEW_LINE> self.rdir = rdir <NEW_LINE> self.ignoreUnk = ignoreUnk <NEW_LINE> self... | QThread to manage a scan of multiple addresses
using a QThreadPool. Because QTP's waitForDone
method blocks, it cannot be run in the main thread.
Hence, it is outsourced to this thread!
str sipa: start IP address for the scan
str fipa: finish IP address for the scan
QDir dir: where to put the result directory
QObject p... | 6259905a29b78933be26abb2 |
class PooremptyError(Exception): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Exception.__init__() <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return repr("poor is empty") | ip池获取不到ip的错误 | 6259905a07f4c71912bb0a17 |
class AdSiteDiscoverer(DaoDiscoverer): <NEW_LINE> <INDENT> def _discover(self): <NEW_LINE> <INDENT> result = AdDiscoveryResult() <NEW_LINE> subnetDtoToOshMap = result.getSubnetDtoToOshMap() <NEW_LINE> siteDtoToOshMap = result.getMap() <NEW_LINE> siteDao = self._daoService.getSiteDao() <NEW_LINE> client = self._daoServi... | This class represents discoverer of Active Directory site objects | 6259905a3eb6a72ae038bc3b |
class GeoFilter(Model): <NEW_LINE> <INDENT> _validation = { 'relative_path': {'required': True}, 'action': {'required': True}, 'country_codes': {'required': True}, } <NEW_LINE> _attribute_map = { 'relative_path': {'key': 'relativePath', 'type': 'str'}, 'action': {'key': 'action', 'type': 'GeoFilterActions'}, 'country_c... | Rules defining user geo access within a CDN endpoint.
:param relative_path: Relative path applicable to geo filter. (e.g.
'/mypictures', '/mypicture/kitty.jpg', and etc.)
:type relative_path: str
:param action: Action of the geo filter, i.e. allow or block access.
Possible values include: 'Block', 'Allow'
:type acti... | 6259905a379a373c97d9a600 |
class SKIP_POST_VALIDATION(Validator): <NEW_LINE> <INDENT> def __init__(self, other=None): <NEW_LINE> <INDENT> if other and isinstance(other, (list, tuple)): <NEW_LINE> <INDENT> other = other[0] <NEW_LINE> <DEDENT> self.other = other <NEW_LINE> if other: <NEW_LINE> <INDENT> if hasattr(other, "multiple"): <NEW_LINE> <IN... | Pseudo-validator that allows introspection of field options
during GET, but does nothing during POST. Used for Ajax-validated
inline-components to prevent them from throwing validation errors
when the outer form gets submitted. | 6259905a498bea3a75a590ea |
class TmpSgpr: <NEW_LINE> <INDENT> def __init__(self, regPool, num, align, tag=None): <NEW_LINE> <INDENT> self.regPool = regPool <NEW_LINE> self.regIdx = regPool.checkOutAligned(num, align, tag=tag, preventOverflow=False) <NEW_LINE> <DEDENT> def idx(self): <NEW_LINE> <INDENT> return self.regIdx <NEW_LINE> <DEDENT> def ... | A temporary register which is automatically returned to sgpr pool when class is destroyed. | 6259905ad6c5a102081e36fd |
class SingleRequestTransport(xmlrpclib.Transport): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> if 'timeout' in kwargs: <NEW_LINE> <INDENT> self.timeout = kwargs['timeout'] <NEW_LINE> del kwargs['timeout'] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.timeout = sslutils.SOCKET_DEFAU... | Python 2.7 Transport introduced a change that makes it reuse connections
by default when new connections are requested for a host with an existing
connection. This class reverts the change to avoid the concurrency
issues. | 6259905ae64d504609df9ebd |
class GIFRequest(object): <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> self.type = None <NEW_LINE> self.config = None <NEW_LINE> self.x_forwarded_for = None <NEW_LINE> self.user_agent = None <NEW_LINE> self.__Q = Q() <NEW_LINE> if isinstance(config, Config): <NEW_LINE> <INDENT> self.config = conf... | Properties:
type -- Indicates the type of request, will be mapped to "utmt" parameter
config -- base.Config object
x_forwarded_for --
user_agent -- User Agent String | 6259905acb5e8a47e493cc74 |
class DifferentSamplerateError(InvalidSamplerateError): <NEW_LINE> <INDENT> def __init__(self, frequencies: typing.Tuple[float, ...]) -> None: <NEW_LINE> <INDENT> ValueError.__init__( self, 'all samplerates must be the same value but got {}'.format( ' and '.join(str(x) for x in set(frequencies)) ) ) <NEW_LINE> self.fre... | The exception that raises when different samplerates of sounds to joint
:var frequency: List of passed frequencies. | 6259905ab57a9660fecd3057 |
class RTOpenParens(RTAtom): <NEW_LINE> <INDENT> def __init__(self, src='(', container=None): <NEW_LINE> <INDENT> super().__init__(src, container) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return '<RTOpenParens %r>' % self.src | A simple open parenthesis Atom with a sensible default
>>> romanText.rtObjects.RTOpenParens('(')
<RTOpenParens '('> | 6259905ab5575c28eb7137ba |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.