code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Disk(nagiosplugin.Resource): <NEW_LINE> <INDENT> def __init__(self, params): <NEW_LINE> <INDENT> self.params = params <NEW_LINE> self.mountpoint = params.mountpoint <NEW_LINE> self.disksize = params.disksize <NEW_LINE> <DEDENT> def probe(self): <NEW_LINE> <INDENT> usage = psutil.disk_usage(self.mountpoint) <NEW_L... | Does the actual work of querying space usage. | 62598fba66656f66f7d5a576 |
class FakeTask(Requester): <NEW_LINE> <INDENT> NAME = 'task' <NEW_LINE> def __init__(self, **fake_script_options): <NEW_LINE> <INDENT> self._queue = None <NEW_LINE> self._ready = threading.Event() <NEW_LINE> self.fake_script_options = fake_script_options <NEW_LINE> self.loop = None <NEW_LINE> <DEDENT> async def end_req... | fake task for debugging. | 62598fba442bda511e95c5e0 |
class RegisterIFrameCheckJS(UpgradeStep): <NEW_LINE> <INDENT> def __call__(self): <NEW_LINE> <INDENT> self.install_upgrade_profile() | Register i frame check js.
| 62598fba10dbd63aa1c70d3e |
class Eth_100Gbase_Cr4Identity(Ethernet_Pmd_TypeIdentity): <NEW_LINE> <INDENT> _prefix = 'oc-opt-types' <NEW_LINE> _revision = '2016-06-17' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> Ethernet_Pmd_TypeIdentity.__init__(self) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def _meta_info(): <NEW_LINE> <INDENT> from ... | Ethernet compliance code\: 100GBASE\_CR4 | 62598fba3346ee7daa33770a |
class Topology(object): <NEW_LINE> <INDENT> def __init__(self, layers, extra_layers=None): <NEW_LINE> <INDENT> def __check__(layers): <NEW_LINE> <INDENT> if not isinstance(layers, collections.Sequence): <NEW_LINE> <INDENT> __check_layer_type__(layers) <NEW_LINE> layers = [layers] <NEW_LINE> <DEDENT> for layer in layers... | Topology is used to store the information about all layers
and network configs. | 62598fbaec188e330fdf8a16 |
class Meta(object): <NEW_LINE> <INDENT> model = CourseTeamMembership <NEW_LINE> fields = ("user", "date_joined", "last_activity_at") <NEW_LINE> read_only_fields = ("date_joined", "last_activity_at") | Defines meta information for the ModelSerializer. | 62598fba0fa83653e46f5068 |
class BrkBase(object): <NEW_LINE> <INDENT> model = models.KadastraalObject <NEW_LINE> index = 'DS_BRK_INDEX' <NEW_LINE> db = 'brk' <NEW_LINE> q_func = meta_q <NEW_LINE> keywords = [ 'eigenaar_type', 'eigenaar_categorie_id', 'eigenaar_cat', 'buurt_naam', 'buurt_code', 'buurtcombinatie_naam', 'buurtcombinatie_code', 'ggw... | Base class mixin for data settings | 62598fba2c8b7c6e89bd394a |
class GeoIP2WebServiceNotConfigured(Exception): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> message = "You tried a query to GeoIP2 webservice, but no valid " "credentials were found in configuration." <NEW_LINE> Exception.__init__(self, message) | GeoIP2 WebService access is still not configured. | 62598fbaa8370b77170f0564 |
class Headers(DataContainer): <NEW_LINE> <INDENT> def __init__(self, init_val=(), encoding=UTF8): <NEW_LINE> <INDENT> cleaned_vals = self.clean_values(init_val) <NEW_LINE> super(Headers, self).__init__(cleaned_vals, encoding) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_string(cls, headers_str): <NEW_LINE> <IND... | This class represents the set of HTTP request headers.
:author: Javier Andalia (jandalia AT gmail DOT com) | 62598fbaa05bb46b3848a9f0 |
class FulfilledPrerequisite(models.Model): <NEW_LINE> <INDENT> prerequisite = models.ForeignKey( 'prerequisites.Prerequisite', on_delete=models.CASCADE, ) <NEW_LINE> helper = models.ForeignKey( 'registration.Helper', on_delete=models.CASCADE, ) <NEW_LINE> has_prerequisite = models.BooleanField( default=False, verbose_n... | Link between helpers and prerequisites
Columns:
:has_prerequisite: The helper fulfils this prerequisite | 62598fba4f88993c371f05cf |
class SoftDynamicTimeWarping(torch.nn.Module): <NEW_LINE> <INDENT> def __init__( self, penalty: float = 1.0, gamma: float = 0.01, normalize: bool = False, bandwidth: int = None, dist_func: str = "manhattan", ): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.penalty = penalty <NEW_LINE> self.normalize = normaliz... | High-level wrapper for soft dynamic time warmping implementation that optionally supports CUDA.
Args:
use_cuda: whether to use CUDA implementation
gamma: soft minimum temperature parameter
normalize: whether to perform normalization, as discussed in
https://github.com/mblondel/soft-dtw/issues/10#is... | 62598fba60cbc95b063644c4 |
class ValidateComponents(AbsValidator): <NEW_LINE> <INDENT> def __init__(self, path: str, component_regex: str, *extensions: str) -> None: <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.path = path <NEW_LINE> self.component_regex = component_regex <NEW_LINE> self.extensions = extensions <NEW_LINE> self._compone... | Validator for components. | 62598fba377c676e912f6e33 |
class SimpleContent(BaseObject): <NEW_LINE> <INDENT> def __init__(self, ID=None, children=None, attributes=None): <NEW_LINE> <INDENT> self.hasAnnotation = False <NEW_LINE> self.hasContent = False <NEW_LINE> super(SimpleContent, self).__init__(ID, children, attributes) <NEW_LINE> <DEDENT> def addChild(self, newChildren)... | Contains extensions or restrictions on a text-only ComplexType or on a
SimpleType as content and contains no elements. | 62598fba63b5f9789fe852f4 |
class AttributeProxy(CommandProxy): <NEW_LINE> <INDENT> @property <NEW_LINE> def base(self) -> BaseProxy: <NEW_LINE> <INDENT> return self._proxy(BaseProxy, 'base') <NEW_LINE> <DEDENT> @property <NEW_LINE> def modifier(self) -> ModifierProxy: <NEW_LINE> <INDENT> return self._proxy(ModifierProxy, 'modifier') <NEW_LINE> <... | Proxy for attribute actions. | 62598fba99fddb7c1ca62eae |
class NEditable(QObject): <NEW_LINE> <INDENT> def __init__(self, filepath=None, project=None): <NEW_LINE> <INDENT> super(NEditable, self).__init__() <NEW_LINE> self.__editor = None <NEW_LINE> self._nfile = nfile.NFile(filepath) <NEW_LINE> self.text_modified = False <NEW_LINE> self._has_checkers = False <NEW_LINE> self.... | SIGNALS:
@checkersUpdated() | 62598fba4a966d76dd5ef058 |
class ItsmReceiver(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'name': {'required': True}, 'workspace_id': {'required': True}, 'connection_id': {'required': True}, 'ticket_configuration': {'required': True}, 'region': {'required': True}, } <NEW_LINE> _attribute_map = { 'name': {'key': 'name', 'type... | An Itsm receiver.
All required parameters must be populated in order to send to Azure.
:param name: Required. The name of the Itsm receiver. Names must be unique across all receivers
within an action group.
:type name: str
:param workspace_id: Required. OMS LA instance identifier.
:type workspace_id: str
:param conn... | 62598fba23849d37ff851239 |
class SetIamPolicyRequest(_messages.Message): <NEW_LINE> <INDENT> policy = _messages.MessageField('Policy', 1) <NEW_LINE> updateMask = _messages.StringField(2) | Request message for `SetIamPolicy` method.
Fields:
policy: REQUIRED: The complete policy to be applied to the `resource`. The
size of the policy is limited to a few 10s of KB. An empty policy is a
valid policy but certain Cloud Platform services (such as Projects)
might reject them.
updateMask: OPTIONA... | 62598fbacc40096d6161a29c |
class TestAll(unittest.TestCase): <NEW_LINE> <INDENT> def test01_size(self): <NEW_LINE> <INDENT> gen = PixelGen() <NEW_LINE> self.assertEqual(len(gen.size), 2) <NEW_LINE> self.assertEqual(int(gen.size[0]), gen.size[0]) <NEW_LINE> self.assertEqual(int(gen.size[1]), gen.size[1]) <NEW_LINE> <DEDENT> def test02_background_... | Tests. | 62598fba099cdd3c636754a5 |
class Alien(Sprite): <NEW_LINE> <INDENT> def __init__(self, ai_settings, screen): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.screen = screen <NEW_LINE> self.ai_settings = ai_settings <NEW_LINE> self.image = pygame.image.load('images/pig.bmp') <NEW_LINE> self.rect = self.image.get_rect() <NEW_LINE> self.loca... | 表示单个外星人的类 | 62598fba851cf427c66b843c |
class InvPOSResourcePurpose(models.Model): <NEW_LINE> <INDENT> id = models.IntegerField(unique=True, primary_key=True) <NEW_LINE> purpose = models.CharField(max_length=100, blank=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> app_label = 'eve_db' <NEW_LINE> ordering = ['id'] <NEW_LINE> verbose_name = 'POS Resource Pu... | Types of tasks for which POS need resources, i.e. Online, Reinforced.
CCP Table: invControlTowerResourcePurposes
CCP Primary key: "purpose" tinyint(4) | 62598fbabe7bc26dc9251f1f |
class SIDLoss(nn.Module): <NEW_LINE> <INDENT> def __init__(self, eps=1e-3): <NEW_LINE> <INDENT> super(SIDLoss, self).__init__() <NEW_LINE> self.eps = eps <NEW_LINE> <DEDENT> def forward(self, p, q): <NEW_LINE> <INDENT> N, C, H, W = p.shape <NEW_LINE> kl_1 = p * torch.log10((p+self.eps) / (q+self.eps)) <NEW_LINE> kl_2 =... | Spectral Information Divergency | 62598fba66673b3332c30557 |
class Configuration: <NEW_LINE> <INDENT> initialized = False <NEW_LINE> project_name = "" <NEW_LINE> project_location = "" <NEW_LINE> component_type = "" <NEW_LINE> template_source = "" <NEW_LINE> platform_type = 0 <NEW_LINE> platform_version = "" <NEW_LINE> modules = [] <NEW_LINE> qt_libs = [] <NEW_LINE> libs = [] <NE... | 用来存储每个页面生成的配置信息 | 62598fba56b00c62f0fb2a41 |
@patch.dict('django.conf.settings.FEATURES', {'ENABLE_FEEDBACK_SUBMISSION': True}) <NEW_LINE> class HelpModalTests(ModuleStoreTestCase): <NEW_LINE> <INDENT> shard = 5 <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super(HelpModalTests, self).setUp() <NEW_LINE> self.course = CourseFactory.create() <NEW_LINE> <DEDENT> d... | Tests for the help modal | 62598fba10dbd63aa1c70d40 |
class DeMorgan: <NEW_LINE> <INDENT> def filter(self, node): <NEW_LINE> <INDENT> return is_not(node) and has_name(node[1]) <NEW_LINE> <DEDENT> def mutations(self, node): <NEW_LINE> <INDENT> if get_name(node[1]) == 'and': <NEW_LINE> <INDENT> res = [['not', t] for t in node[1][1:]] <NEW_LINE> return [['or', *res]] <NEW_LI... | Uses de Morgans rules to push negations inside. | 62598fba0fa83653e46f506a |
class SeracDevtools(BundlePackage): <NEW_LINE> <INDENT> version('fakeversion') <NEW_LINE> depends_on('cmake') <NEW_LINE> depends_on('cppcheck') <NEW_LINE> depends_on('doxygen') <NEW_LINE> depends_on("llvm+clang@10.0.0") <NEW_LINE> depends_on('python') <NEW_LINE> depends_on('py-ats') <NEW_LINE> depends_on('py-sphinx') | This is a set of tools necessary for the developers of Serac | 62598fba71ff763f4b5e7900 |
class TargetedClickthroughsByCodename(Base): <NEW_LINE> <INDENT> __tablename__ = "traffic_clicktarget" <NEW_LINE> codename = Column("fullname", String(), nullable=False, primary_key=True) <NEW_LINE> subreddit = Column(String(), nullable=False, primary_key=True) <NEW_LINE> date = Column(DateTime(), nullable=False, prima... | Clickthroughs for ads, correlated by ad campaign. | 62598fba091ae35668704da9 |
class BaseHandle(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def input_text(element, text): <NEW_LINE> <INDENT> element.clear() <NEW_LINE> element.send_keys(text) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def click_func(element): <NEW_LINE> <INDENT> element.click() | 操作层基类 | 62598fba60cbc95b063644c6 |
class startswithExpression(textcompareExpression): <NEW_LINE> <INDENT> def __init__(self, field, text, caseless): <NEW_LINE> <INDENT> super(startswithExpression, self).__init__(field, text, caseless) <NEW_LINE> <DEDENT> def operator(self): <NEW_LINE> <INDENT> return "starts with" | Text STARTSWITH (sub-string match) expression. | 62598fba76e4537e8c3ef72e |
class WeaponDB(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.wepdb = {'None' : "Error: No Weapon stats to get selected.", 'Sword' : ("Sword", 3, 5, 1.5, 2.0), 'Sword1' : ("Sword+1", 4, 6, 1.5, 2.0), 'Sword2' : ("Sword+2", 5, 7, 1.5, 2.0), 'Sword3' : ("Sword+3", 6, 8, 1.5, 2.0), } <NEW_LINE... | Here be thine weapons of thy holy might | 62598fba91f36d47f2230f6e |
class CareerCommitment(Inventory): <NEW_LINE> <INDENT> name = 'Career Commitment' <NEW_LINE> template = 'career_commitment.html' <NEW_LINE> question_text = { 1: 'My major/career field is an important part of who I am.', 2: 'My major/career field has a great deal of personal meaning to me.', 3: 'I do not feel "emotional... | Define the questions and score computation | 62598fba5166f23b2e243565 |
class Count(sdb.Command): <NEW_LINE> <INDENT> names = ["count", "cnt", "wc"] <NEW_LINE> def _call(self, objs: Iterable[drgn.Object]) -> Iterable[drgn.Object]: <NEW_LINE> <INDENT> yield sdb.create_object('unsigned long long', sum(1 for _ in objs)) | Return a count of the number of objects in the pipeline
EXAMPLES
Print the number of addresses given
sdb> addr 0 | count
(unsigned long long)1
sdb> addr 0 | addr 1 | count
(unsigned long long)2
Print the number of ZFS dbufs
sdb> dbuf | count
(unsigned long lon... | 62598fba4527f215b58ea05c |
class Feed(models.Model): <NEW_LINE> <INDENT> uuid = models.UUIDField(default=uuid4, editable=False, unique=True) <NEW_LINE> user = models.ForeignKey( get_user_model(), on_delete=models.CASCADE, related_name="feeds" ) <NEW_LINE> url = models.URLField(_("Url")) <NEW_LINE> title = models.CharField( _("Title"), max_length... | All of these fields are from Feedparser's Feed object | 62598fba3539df3088ecc434 |
@pytest.mark.usefixtures('db') <NEW_LINE> class TestAuthController: <NEW_LINE> <INDENT> def test_create_jwt(self): <NEW_LINE> <INDENT> token = auth.create_jwt(12345) <NEW_LINE> assert isinstance(token, str) <NEW_LINE> <DEDENT> def test_login_success_new_user(self): <NEW_LINE> <INDENT> mock_amazon = Mock(name='get') <NE... | Tests for AuthController | 62598fbaf548e778e596b72d |
class HelpIntentHandler(AbstractRequestHandler): <NEW_LINE> <INDENT> def can_handle(self, handler_input): <NEW_LINE> <INDENT> return ( is_intent_name("AMAZON.HelpIntent")(handler_input) or is_intent_name("noticias_ayuda")(handler_input) ) <NEW_LINE> <DEDENT> def handle(self, handler_input): <NEW_LINE> <INDENT> logger.i... | Handler for Help Intent. | 62598fbad7e4931a7ef3c21e |
class Session(pydantic.BaseModel, orm_mode=True): <NEW_LINE> <INDENT> uuid: uuid.UUID <NEW_LINE> expiration_time: datetime <NEW_LINE> revoked: bool | This related to refresh tokens, which have a session uuid ("sid") claim.
When the client attempts to use a refresh token, we first check
here to ensure that the "session", which is associated with a chain
of refresh tokens that came from a single authentication, are still valid. | 62598fbaff9c53063f51a7d6 |
class _Loader(object): <NEW_LINE> <INDENT> def __init__(self, object_graph_proto, saved_model_proto, export_dir): <NEW_LINE> <INDENT> meta_graph = saved_model_proto.meta_graphs[0] <NEW_LINE> self._asset_file_def = meta_graph.asset_file_def <NEW_LINE> self._proto = object_graph_proto <NEW_LINE> self._export_dir = export... | Helper class to load an object-based SavedModel. | 62598fba656771135c4897f6 |
class Dataset(data.Dataset): <NEW_LINE> <INDENT> def __init__(self, table, vocab, transform=None): <NEW_LINE> <INDENT> with open(table, 'rb') as f: <NEW_LINE> <INDENT> self.table = pickle.load(f) <NEW_LINE> <DEDENT> self.ids = list(self.table.id) <NEW_LINE> self.vocab = vocab <NEW_LINE> self.transform = transform <NEW_... | COCO Custom Dataset compatible with torch.utils.data.DataLoader. | 62598fba3346ee7daa33770c |
@ut.skipUnless(h5py.version.hdf5_version_tuple >= (1, 9, 178), 'SWMR requires HDF5 >= 1.9.178') <NEW_LINE> class TestDatasetSwmrRead(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> TestCase.setUp(self) <NEW_LINE> self.data = np.arange(13).astype('f') <NEW_LINE> self.dset = self.f.create_dataset('dat... | Testing SWMR functions when reading a dataset.
Skip this test if the HDF5 library does not have the SWMR features. | 62598fba2c8b7c6e89bd394e |
class ConfigHelper: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_agent_service_address() -> str: <NEW_LINE> <INDENT> address = os.getenv("TP_AGENT_URL") <NEW_LINE> if address is None: <NEW_LINE> <INDENT> logging.info( "No Agent service address found in TP_AGENT_URL environment variable, " "defaulting to http://... | Contains helper methods for SDK configuration | 62598fbaa05bb46b3848a9f4 |
class Bebee(Platform): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.platformName = "Bebee" <NEW_LINE> self.tags = ["jobs"] <NEW_LINE> self.isValidMode = {} <NEW_LINE> self.isValidMode["phonefy"] = False <NEW_LINE> self.isValidMode["usufy"] = True <NEW_LINE> self.isValidMode["searchfy"] = False <NEW_... | A <Platform> object for Bebee. | 62598fba283ffb24f3cf3a0c |
class treeNode(object): <NEW_LINE> <INDENT> def __init__(self,variableBindings,predicate): <NEW_LINE> <INDENT> self.variableBindings = variableBindings <NEW_LINE> self.predicate = predicate <NEW_LINE> self.proved = False <NEW_LINE> <DEDENT> def allVariablesBound(self,fact): <NEW_LINE> <INDENT> for variable in self.vari... | class for a node in the proof tree | 62598fba63b5f9789fe852f8 |
class Task(object): <NEW_LINE> <INDENT> def __init__(self, init_time, init_rect, labels=None, last_time=None, attributes=None): <NEW_LINE> <INDENT> self.init_time = init_time <NEW_LINE> self.init_rect = init_rect <NEW_LINE> if labels: <NEW_LINE> <INDENT> if init_time in labels: <NEW_LINE> <INDENT> raise ValueError('lab... | Describes a tracking task with optional ground-truth annotations. | 62598fba4a966d76dd5ef05c |
class Grid(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.grid_size = params.grid_size <NEW_LINE> self.grid = [[Cell(i, j) for j in range(params.grid_size[0])] for i in range(params.grid_size[1])] <NEW_LINE> self.nests = [] <NEW_LINE> self.update_time = 0 <NEW_LINE> self.s... | Definig the Grid object
The Grid is basically a matrix of Cells | 62598fba21bff66bcd722df3 |
class Post(models.Model): <NEW_LINE> <INDENT> title = models.CharField(u'标题',max_length = 200) <NEW_LINE> body = models.TextField(u'内容') <NEW_LINE> createDatetime = models.DateTimeField(u'创建时间',auto_now_add = True) <NEW_LINE> updateDatetime = models.DateTimeField(u'修改时间',auto_now = True) <NEW_LINE> tag = models.ManyToM... | 存储blog的主表 | 62598fbadc8b845886d53742 |
class ScopeTracker(object): <NEW_LINE> <INDENT> def __init__(self, fn=None): <NEW_LINE> <INDENT> self._scopes = [] <NEW_LINE> self._fn = fn if fn is not None else lambda *args, **kwargs: None <NEW_LINE> <DEDENT> def scopes(self): <NEW_LINE> <INDENT> return self._scopes <NEW_LINE> <DEDENT> def latest(self): <NEW_LINE> <... | Function class that just tracks the tf.VariableScope. | 62598fba7047854f4633f55f |
class XsrfSecret(ndb.Model): <NEW_LINE> <INDENT> secret = ndb.StringProperty(required=True) <NEW_LINE> @staticmethod <NEW_LINE> def get(): <NEW_LINE> <INDENT> secret = memcache.get('xsrf_secret') <NEW_LINE> if not secret: <NEW_LINE> <INDENT> xsrf_secret = XsrfSecret.query().get() <NEW_LINE> if not xsrf_secret: <NEW_LIN... | Model for datastore to store the XSRF secret. | 62598fba5fc7496912d48340 |
class ChunkReader(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.mode = "start" <NEW_LINE> self.start = True <NEW_LINE> self.remaining = 0 <NEW_LINE> <DEDENT> def feed_predict(self): <NEW_LINE> <INDENT> if self.mode == 'start': <NEW_LINE> <INDENT> return None, '\r\n' <NEW_LINE> <DEDENT> elif ... | Reads the body of a HTTP message with chunked encoding. | 62598fba283ffb24f3cf3a0d |
class FanStatusP5(DeviceStatus): <NEW_LINE> <INDENT> def __init__(self, data: Dict[str, Any]) -> None: <NEW_LINE> <INDENT> self.data = data <NEW_LINE> <DEDENT> @property <NEW_LINE> def power(self) -> str: <NEW_LINE> <INDENT> return "on" if self.data["power"] else "off" <NEW_LINE> <DEDENT> @property <NEW_LINE> def is_on... | Container for status reports from the Xiaomi Mi Smart Pedestal Fan DMaker P5. | 62598fbacc0a2c111447b197 |
class _AtomType(object): <NEW_LINE> <INDENT> def __init__(self, name, atomClass, mass, element): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.atomClass = atomClass <NEW_LINE> self.mass = mass <NEW_LINE> self.element = element | Inner class used to record atom types and associated properties. | 62598fbad7e4931a7ef3c220 |
class x_amber_mdout_single_configuration_calculation(MCategory): <NEW_LINE> <INDENT> m_def = Category( a_legacy=LegacyDefinition(name='x_amber_mdout_single_configuration_calculation')) | Parameters of mdout belonging to section_single_configuration_calculation. | 62598fba57b8e32f525081e1 |
class Movie(): <NEW_LINE> <INDENT> def __init__(self, movie_title, poster_image, trailer_youtube): <NEW_LINE> <INDENT> self.title = movie_title <NEW_LINE> self.poster_image_url = poster_image <NEW_LINE> self.trailer_youtube_url = trailer_youtube | This class provides a way to store movie related information,
including the title, poster image and trailer URL. | 62598fba56ac1b37e6302377 |
class InlineCommand(CommandBase): <NEW_LINE> <INDENT> RE = re.compile(r'\[' r'!(?P<command>\w+)' r'(?:!(?P<subcommand>\S+))?' r' *(?P<settings>\w+=.*?)?' r'\]' r'(?:\((?P<inline>.*?)\))?', flags=re.UNICODE|re.DOTALL) | Inline commands as:
[!command key=value]
[!command](content in here)
[!command!subcommand key=value]
[!command!subcommand key=value](content in here)
https://regex101.com/r/B7er21/1 | 62598fba92d797404e388c28 |
class Subscription(models.BASE, models.NovaBase): <NEW_LINE> <INDENT> __tablename__ = 'subscriptions' <NEW_LINE> id = Column(Integer, primary_key=True, nullable=False, autoincrement=True) <NEW_LINE> project_id = Column(Integer, nullable=False, index=True) <NEW_LINE> product_id = Column(Integer, ForeignKey(Product.id), ... | Represents subscriptions. | 62598fba442bda511e95c5e6 |
class Export_pc2(bpy.types.Operator, ExportHelper): <NEW_LINE> <INDENT> bl_idname = "export_shape.pc2" <NEW_LINE> bl_label = "Export Pointcache (.pc2)" <NEW_LINE> filename_ext = ".pc2" <NEW_LINE> rot_x90 = BoolProperty(name="Convert to Y-up", description="Rotate 90 degrees around X to convert to y-up", default=True, ) ... | Export the active Object as a .pc2 Pointcache file | 62598fba66673b3332c3055b |
class ProdConfig(Config): <NEW_LINE> <INDENT> SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URL") <NEW_LINE> JWT_SECRET_KEY = os.getenv('JWT_SECRET_KEY') | Production configuration child class
Args:
Config: The parent configuration class with General configuration settings | 62598fba8a349b6b436863c7 |
class UserMixin(object): <NEW_LINE> <INDENT> @declared_attr <NEW_LINE> def created_by_id(cls): <NEW_LINE> <INDENT> return Column(None, ForeignKey('users.id'), nullable=False, default=1) <NEW_LINE> <DEDENT> @declared_attr <NEW_LINE> def created_time(cls): <NEW_LINE> <INDENT> return Column('created_time', types.DateTime,... | Use as a mixin on a sqlalchemy declarative class to add the created_by,
created_time, updated_by, and updated_time attributes to track modification
history. | 62598fbaaad79263cf42e95f |
@dataclass(frozen=True) <NEW_LINE> class EventPaymentSentFailed(Event): <NEW_LINE> <INDENT> token_network_registry_address: TokenNetworkRegistryAddress <NEW_LINE> token_network_address: TokenNetworkAddress <NEW_LINE> identifier: PaymentID <NEW_LINE> target: TargetAddress <NEW_LINE> reason: str <NEW_LINE> def __repr__(s... | Event emitted by the payer when a transfer has failed.
Note:
Mediators cannot use this event since they don't know when a transfer
has failed, they may infer about lock successes and failures. | 62598fba167d2b6e312b7100 |
class PermissionHelper(object): <NEW_LINE> <INDENT> def __init__(self, model, inspect_view_enabled=False): <NEW_LINE> <INDENT> self.model = model <NEW_LINE> self.opts = model._meta <NEW_LINE> self.inspect_view_enabled = inspect_view_enabled <NEW_LINE> <DEDENT> def get_all_model_permissions(self): <NEW_LINE> <INDENT> re... | Provides permission-related helper functions to help determine what a
user can do with a 'typical' model (where permissions are granted
model-wide), and to a specific instance of that model. | 62598fba091ae35668704dad |
class BaseOneHotEncodingFeaturizer(ParallelBaseFeaturizer): <NEW_LINE> <INDENT> ALPHABET = None <NEW_LINE> def __init__(self, dictionary: dict = None, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> if dictionary is None: <NEW_LINE> <INDENT> dictionary = {c: i for i, c in enumerate(self.ALPHABET)} ... | Base class for Featurizers concerning one hot encoding. | 62598fbaa05bb46b3848a9f6 |
class Device(object): <NEW_LINE> <INDENT> config = EnlightnsConfig() <NEW_LINE> @classmethod <NEW_LINE> def interfaces_only(self): <NEW_LINE> <INDENT> local_interfaces = ni.interfaces() <NEW_LINE> return local_interfaces <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def interfaces(self): <NEW_LINE> <INDENT> local_interfa... | Represents the device where the CLI is executed. | 62598fba91f36d47f2230f70 |
class User(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'users' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> name = db.Column(db.String(20), nullable=False) <NEW_LINE> email = db.Column(db.String(20), unique=True, nullable=False) <NEW_LINE> idade = db.Column(db.Integer, default=0) <NEW_LINE> def... | Classe que representa uma tabela no banco de dados
tem que herdar de db.Model pro SQLAlquemy reconhecer. | 62598fbaf548e778e596b732 |
class Solution: <NEW_LINE> <INDENT> def bfs(self, node, tmp): <NEW_LINE> <INDENT> queue = collections.deque() <NEW_LINE> queue.append(node) <NEW_LINE> self.v[node.label] = True <NEW_LINE> while queue: <NEW_LINE> <INDENT> size = len(queue) <NEW_LINE> for i in range(0, size): <NEW_LINE> <INDENT> currnode = queue.popleft(... | @param: nodes: a array of Undirected graph node
@return: a connected set of a Undirected graph | 62598fba23849d37ff85123f |
class IOHandler(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> _lib.JupyROOTExecutorHandler_Ctor() <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> _lib.JupyROOTExecutorHandler_Dtor() <NEW_LINE> <DEDENT> def Clear(self): <NEW_LINE> <INDENT> _lib.JupyROOTExecutorHandler_Clear() <NEW_LINE>... | Class used to capture output from C/C++ libraries.
>>> import sys
>>> h = IOHandler()
>>> h.GetStdout()
''
>>> h.GetStderr()
''
>>> h.GetStreamsDicts()
(None, None)
>>> del h | 62598fba4527f215b58ea061 |
class AjaxDeleteImgBgPanelFront(View): <NEW_LINE> <INDENT> def post(self, request, *args, **kwargs): <NEW_LINE> <INDENT> map_id = request.POST.get('mapID') <NEW_LINE> ymap = Map.objects.get(pk=map_id) <NEW_LINE> general_settings = ymap.general_settings <NEW_LINE> general_settings.img_bg_panel_front = None <NEW_LINE> ge... | Ajax - Delete the background image for the panel. | 62598fba099cdd3c636754a8 |
class Society(models.Model): <NEW_LINE> <INDENT> def __str__(self):return self.name <NEW_LINE> name=models.CharField(max_length=50) | Society in college | 62598fba5fdd1c0f98e5e11d |
class Dealer(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.suits = SUITS <NEW_LINE> self.card_values = VALUES <NEW_LINE> self.cards = [Card(x, y) for x in self.suits for y in self.card_values] <NEW_LINE> self.counter = 0 <NEW_LINE> self.shuffle() <NEW_LINE> <DEDENT> def __iter__(self): <NEW_... | deals with the mechanics of how the cards are dealt
| 62598fba44b2445a339b6a3b |
class Feature(db.Model): <NEW_LINE> <INDENT> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> user_id = db.Column(db.Integer, db.ForeignKey(User.id)) <NEW_LINE> client_id = db.Column(db.Integer, db.ForeignKey(Client.id)) <NEW_LINE> product_id = db.Column(db.Integer, db.ForeignKey(Product.id)) <NEW_LINE> created ... | Feature table, stores each individual feature request. | 62598fba656771135c4897fa |
class Neuron: <NEW_LINE> <INDENT> def __init__(self, weights): <NEW_LINE> <INDENT> self.weights = list(weights) <NEW_LINE> self.value = 0 <NEW_LINE> <DEDENT> def calculate(self, inputs, activation_function, bias): <NEW_LINE> <INDENT> if len(inputs) != len(self.weights): <NEW_LINE> <INDENT> raise ValueError('Different n... | Basic structural unit of networks | 62598fbad486a94d0ba2c15b |
class SubStatsFormatter(LatexFormatter): <NEW_LINE> <INDENT> template_path = templates_path / 'subplot-stats-template.tex' <NEW_LINE> template = template_path.read_text() <NEW_LINE> headers = False <NEW_LINE> title = False <NEW_LINE> def format(self, lot): <NEW_LINE> <INDENT> table = self._build_table(lot) <NEW_LINE> r... | Operate on lot to produce the Suplot stats text
for the Subplot stats table | 62598fba7cff6e4e811b5bae |
class TabsExtraFilePathCommand(sublime_plugin.WindowCommand): <NEW_LINE> <INDENT> def run(self, group=-1, index=-1, path_type='path'): <NEW_LINE> <INDENT> if group >= 0 and index >= 0: <NEW_LINE> <INDENT> view = get_group_view(self.window, group, index) <NEW_LINE> if view is not None: <NEW_LINE> <INDENT> self.window.fo... | Get file paths. | 62598fba3617ad0b5ee062d4 |
class AuthenticationError(_error.Error): <NEW_LINE> <INDENT> code = 13001 <NEW_LINE> description = "身份验证错误" | 身份验证错误 | 62598fba55399d3f056266a1 |
class CorrelationReducer(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def __init__(self, thresh=.8, method='pearson'): <NEW_LINE> <INDENT> self.thresh = thresh <NEW_LINE> self.method = method <NEW_LINE> <DEDENT> def fit(self, X, y=None): <NEW_LINE> <INDENT> check_is_dataframe(X) <NEW_LINE> self.correlated_cols... | Removes correlated columns exceeding the thresh value.
Parameters
----------
method: string, optional (default='pearson')
Compute pairwise correlation of columns, excluding NA/null values
(based on pandas.DataFrame.corr).
- `pearson`: Standard correlation coefficient.
- `kendall`: Kendall Tau correlat... | 62598fbbf548e778e596b733 |
class PyIdc_cvt_int64__(pyidc_cvt_helper__): <NEW_LINE> <INDENT> def __init__(self, v): <NEW_LINE> <INDENT> super(self.__class__, self).__init__(PY_ICID_INT64, v) <NEW_LINE> <DEDENT> __op_table = { 0: lambda a, b: a + b, 1: lambda a, b: a - b, 2: lambda a, b: a * b, 3: lambda a, b: a / b } <NEW_LINE> def __op(self, ... | Helper class for explicitly representing VT_INT64 values | 62598fbb3d592f4c4edbb04b |
class SimpleAttentionWriter2d(SimpleAttentionCore2d): <NEW_LINE> <INDENT> def __init__(self, x_dim, con_dim, height, width, N, img_scale, att_scale, stay_within_boundary=False, **kwargs): <NEW_LINE> <INDENT> super(SimpleAttentionWriter2d, self).__init__( x_dim=x_dim, con_dim=con_dim, height=height, width=width, N=N, im... | This wraps SimpleAttentionCore2d -- for use as a "writer MLP".
Parameters:
x_dim: dimension of "vectorized" inputs
con_dim: dimension of the controller providing attention params
height: #rows after reshaping inputs to 2d
width: #cols after reshaping inputs to 2d
N: this will be an N x N reader -- ... | 62598fbb3d592f4c4edbb04c |
class Normed(MathFunctionsMixin, ABC): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> def __abs__(self): <NEW_LINE> <INDENT> return self.norm(None) <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def norm(self, which=None): <NEW_LINE> <INDENT> tname = type(self).__name__ <NEW_LINE> raise TypeError('%s object does not... | Base class for all objects that have a notion of norm | 62598fbb4c3428357761a449 |
class SignalMixin(object): <NEW_LINE> <INDENT> signal_name = "data_changed" <NEW_LINE> def __set__(self, instance, value): <NEW_LINE> <INDENT> signal = rec_getattr(instance, self.signal_name, None) <NEW_LINE> if signal is not None: <NEW_LINE> <INDENT> old = getattr(instance, self.label) <NEW_LINE> with signal.ignore():... | A descriptor mixin that will invoke a signal on the instance
owning this property when set.
Expects two more keyword arguments to be passed to the property constructor:
- signal_name: a dotted string describing where to get the signal object
from the instance | 62598fbbcc40096d6161a2a0 |
class NIONAT(NIO): <NEW_LINE> <INDENT> def __init__(self, identifier): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._identifier = identifier <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "NIO_NAT" <NEW_LINE> <DEDENT> def identifier(self): <NEW_LINE> <INDENT> return self._identifier | NAT NIO. | 62598fbb01c39578d7f12f09 |
class INeighborhoodSkin(ISkinLayer, ICommonSkinLayer): <NEW_LINE> <INDENT> pass | Neighborhood skin | 62598fbb56ac1b37e630237b |
class ATMetricsTestCase(): <NEW_LINE> <INDENT> def test_flowup(self): <NEW_LINE> <INDENT> at = testAT1() <NEW_LINE> at.flowup() <NEW_LINE> correct_values_dict = { 'risk': 10, 'cost': 1, 'impact': 8 } <NEW_LINE> for k, v in correct_values_dict.items(): <NEW_LINE> <INDENT> assert v == at.rootnode.values[k] <NEW_LINE> <DE... | Test the calculation methods for the AttackTree class | 62598fbb9c8ee8231304023b |
class PrimaryKeyFetchException(Exception): <NEW_LINE> <INDENT> pass | Custom exception thrown when a query fails while trying to retrieve a collection of primary keys. | 62598fbb66656f66f7d5a581 |
class Cue(Communication): <NEW_LINE> <INDENT> def __init__(self, id=1, location=( 0, 0), radius=20, object_to_communicate=None): <NEW_LINE> <INDENT> super().__init__(id, location, radius, object_to_communicate) <NEW_LINE> self.dropable = False <NEW_LINE> self.carryable = False <NEW_LINE> self.passable = True <NEW_LINE>... | Cue object with provides stationary information. | 62598fbb0fa83653e46f5072 |
class TestSimple(MockServerTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(TestSimple, self).setUp() <NEW_LINE> self.request.access = MagicMock() <NEW_LINE> <DEDENT> def test_upload(self): <NEW_LINE> <INDENT> self.params = { ':action': 'file_upload', } <NEW_LINE> name, version, content = 'foo', 'b... | Unit tests for the /simple endpoints | 62598fbb3346ee7daa33770f |
class LengthHist(Graph): <NEW_LINE> <INDENT> short_name = 'length_hist' <NEW_LINE> sep = ('x', 'y') <NEW_LINE> y_grid = True <NEW_LINE> width = 10 <NEW_LINE> height = 6 <NEW_LINE> remove_frame = True <NEW_LINE> def __init__(self, parent): <NEW_LINE> <INDENT> self.parent = parent <NEW_LINE>... | The length distribution of the sequences with a histogram. | 62598fbbec188e330fdf8a20 |
class Game: <NEW_LINE> <INDENT> def __init__(self, item): <NEW_LINE> <INDENT> self.item = item <NEW_LINE> self.gameId = item["GameId"] <NEW_LINE> self.hostId = item["HostId"] <NEW_LINE> self.opponent = item["OpponentId"] <NEW_LINE> self.statusDate = item["StatusDate"].split("_") <NEW_LINE> self.o ... | This Game class acts as a wrapper on top of an item in the Games table.
Each of the fields in the table is of a String type.
GameId is the primary key.
HostId-StatusDate, Opponent-StatusDate are Global Secondary Indexes that are Hash-Range Keys.
The other attributes are used to maintain game state. | 62598fbb167d2b6e312b7104 |
class TableScale(PyoObject): <NEW_LINE> <INDENT> def __init__(self, table, outtable, mul=1, add=0): <NEW_LINE> <INDENT> pyoArgsAssert(self, "ttOO", table, outtable, mul, add) <NEW_LINE> PyoObject.__init__(self, mul, add) <NEW_LINE> self._table = table <NEW_LINE> self._outtable = outtable <NEW_LINE> table, outtable, mul... | Scales all the values contained in a PyoTableObject.
TableScale scales the values of `table` argument according
to `mul` and `add` arguments and writes the new values in
`outtable`.
:Parent: :py:class:`PyoObject`
:Args:
table: PyoTableObject
Table containing the original values.
outtable: PyoTableOb... | 62598fbbadb09d7d5dc0a70b |
class IsServiceOwner(BasePermission): <NEW_LINE> <INDENT> def has_permission(self, request, view): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> user = request.user.user_client <NEW_LINE> if user == view.service.user_client: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return False <NEW_... | This permission allow determine if the user
is a client, if not permission is denied. | 62598fbb7d43ff24874274cb |
class Enum(Codec): <NEW_LINE> <INDENT> def __init__(self, values): <NEW_LINE> <INDENT> if not isinstance(values, collections.Iterable): <NEW_LINE> <INDENT> raise TypeError('enum values must be iterable, not ' + repr(values)) <NEW_LINE> <DEDENT> values = frozenset(values) <NEW_LINE> for v in values: <NEW_LINE> <INDENT> ... | Codec that accepts only predefined fixed types of values::
gender = Enum(['male', 'female'])
Actually it doesn't any encoding nor decoding, but it simply *validates*
all values from XML and Python both.
Note that values have to consist of only strings.
:param values: any iterable that yields all possible values... | 62598fbb1f5feb6acb162daf |
class GeneralizedMeanPooling2d(nn.Module): <NEW_LINE> <INDENT> def __init__(self, p: float = 3, eps=1e-6, flatten=False): <NEW_LINE> <INDENT> super(GeneralizedMeanPooling2d, self).__init__() <NEW_LINE> self.p = nn.Parameter(torch.ones(1) * p) <NEW_LINE> self.eps = eps <NEW_LINE> self.flatten = flatten <NEW_LINE> <DEDEN... | https://arxiv.org/pdf/1902.05509v2.pdf
https://amaarora.github.io/2020/08/30/gempool.html | 62598fbba05bb46b3848a9fa |
class Color(str): <NEW_LINE> <INDENT> def __init__(self, s): <NEW_LINE> <INDENT> self.r = None <NEW_LINE> self.g = None <NEW_LINE> self.b = None <NEW_LINE> if s is None: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> try: <NEW_LINE> <INDENT> self.r = int(s[0:2], 16) <NEW_LINE> <DEDENT> except ValueError: <NEW_LINE> <IN... | Simple color object: r, g, b, a.
The object is in fact a string with class variables. | 62598fbb283ffb24f3cf3a12 |
class BoltzmannDiscreteExplorerNode(DiscreteExplorerNode): <NEW_LINE> <INDENT> def __init__(self, n_actions, temperature=50., decay=0.999, dtype=None, numx_rng=None): <NEW_LINE> <INDENT> super(BoltzmannDiscreteExplorerNode, self).__init__(n_actions=n_actions, prob_vec=None, input_dim=None, dtype=dtype, numx_rng=numx_rn... | BoltzmannDiscreteExplorerNode is an online explorer node for reinforcement
learning that balances exploration (random action) and exploitation (optimal action)
modes based on a decaying temperature parameter.
The train function of this node only updates the temperature parameter.
The input to the node is a action/stat... | 62598fbb55399d3f056266a3 |
class SHA3_256_Hash(object): <NEW_LINE> <INDENT> digest_size = 32 <NEW_LINE> oid = "2.16.840.1.101.3.4.2.8" <NEW_LINE> def __init__(self, data, update_after_digest): <NEW_LINE> <INDENT> self._update_after_digest = update_after_digest <NEW_LINE> self._digest_done = False <NEW_LINE> state = VoidPointer() <NEW_LINE> resul... | A SHA3-256 hash object.
Do not instantiate directly.
Use the :func:`new` function.
:ivar oid: ASN.1 Object ID
:vartype oid: string
:ivar digest_size: the size in bytes of the resulting hash
:vartype digest_size: integer | 62598fbb3539df3088ecc43c |
class BaseResource(Resource): <NEW_LINE> <INDENT> _is_test_mode = 0 <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> config_name = kwargs['config_name'] <NEW_LINE> if config_name == 'testing': <NEW_LINE> <INDENT> self._is_test_mode = 1 | Base class for end points if we want to pass additional parameters when defining end points. | 62598fbb67a9b606de546162 |
class V1Endpoints(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'kind': 'str', 'api_version': 'str', 'metadata': 'V1ObjectMeta', 'subsets': 'list[V1EndpointSubset]' } <NEW_LINE> self.attribute_map = { 'kind': 'kind', 'api_version': 'apiVersion', 'metadata': 'metadata', 'sub... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fbbf548e778e596b736 |
class CYXXYPowGate(cirq.EigenGate, cirq.ThreeQubitGate): <NEW_LINE> <INDENT> @deprecation.deprecated( deprecated_in='v0.4.0', removed_in='v0.5.0', details=('Use cirq.ControlledGate and cirq.PhasedISwapPowGate, ' 'instead.')) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(CYXXYPowGate, self)._... | Controlled YX - XY interaction. | 62598fbba8370b77170f056f |
class ThrowerAnt(Ant): <NEW_LINE> <INDENT> name = 'Thrower' <NEW_LINE> implemented = True <NEW_LINE> damage = 1 <NEW_LINE> food_cost = 4 <NEW_LINE> min_range = 0 <NEW_LINE> max_range = 10 <NEW_LINE> def nearest_bee(self, hive): <NEW_LINE> <INDENT> if last_element(self.place) not in zero_to_nine and self.place != 'Hive'... | ThrowerAnt throws a leaf each turn at the nearest Bee in its range. | 62598fbb4527f215b58ea065 |
class MetricStatus(_kuber_definitions.Definition): <NEW_LINE> <INDENT> def __init__( self, external: "ExternalMetricStatus" = None, object_: "ObjectMetricStatus" = None, pods: "PodsMetricStatus" = None, resource: "ResourceMetricStatus" = None, type_: str = None, ): <NEW_LINE> <INDENT> super(MetricStatus, self).__init__... | MetricStatus describes the last-read state of a single
metric. | 62598fbb66673b3332c30561 |
class WorkflowEvent(models.Model): <NEW_LINE> <INDENT> _name = "crapo.workflow.event" <NEW_LINE> _sql_constraints = [ ( "unique_name_per_trigger_id", "unique(name, trigger_id)", "Trigger event can't have the same name in the same trigger", ) ] <NEW_LINE> name = fields.Char() <NEW_LINE> trigger_id = fields.Many2one("cra... | Event definition | 62598fbbff9c53063f51a7de |
class retrieveRequestToken_args: <NEW_LINE> <INDENT> thrift_spec = ( None, None, (2, TType.I32, 'carrier', None, None, ), ) <NEW_LINE> def __init__(self, carrier=None,): <NEW_LINE> <INDENT> self.carrier = carrier <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol.TBinar... | Attributes:
- carrier | 62598fbb8a349b6b436863cd |
class RTEllisonStop(RTPhraseMarker): <NEW_LINE> <INDENT> def __init__(self, src=u'*|', container=None): <NEW_LINE> <INDENT> super(RTEllisonStop, self).__init__(src, container) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return '<RTEllisonStop %r>' % self.src | >>> phrase = romanText.rtObjects.RTEllisonStop('*|')
>>> phrase
<RTEllisonStop '*|'> | 62598fbb656771135c4897fe |
class TestWebServer(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._test_app = TestApplication() <NEW_LINE> <DEDENT> def start(self): <NEW_LINE> <INDENT> logging.info("Starting Test Application ...") <NEW_LINE> self._test_app.start() | Wrappered tornado.web.Application | 62598fbb56ac1b37e630237e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.