code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class CVRF_Syntax(object): <NEW_LINE> <INDENT> NAMESPACES = {x.upper(): "{http://www.icasi.org/CVRF/schema/%s/1.1}" % x for x in ("cvrf", "vuln", "prod")} <NEW_LINE> CVRF_ARGS = ["all", "DocumentTitle", "DocumentType", "DocumentPublisher", "DocumentTracking", "DocumentNotes", "DocumentDistribution", "AggregateSeverity"... | All of the CVRF Elements and Namespaces are kept here. As CVRF evolves, make appropriate changes here. | 62598fc3656771135c489905 |
class Algorithm(CaomObject): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> caom_util.type_check(name, six.text_type, 'name', override=False) <NEW_LINE> self._name = str(name) <NEW_LINE> <DEDENT> def _key(self): <NEW_LINE> <INDENT> return self._name <NEW_LINE> <DEDENT> def __ne__(self, y): <NEW_LINE>... | The concept of Algorithm is to provide a way for users to find all
composite observation sets that have been built using a particular
grouping algorithm (eg. the MegaPipe stacks). For simple
observations the algorithm is 'exposure'. | 62598fc3283ffb24f3cf3b1a |
class VersionAction(argparse.Action): <NEW_LINE> <INDENT> def __init__(self, option_strings, dest=argparse.SUPPRESS): <NEW_LINE> <INDENT> super(VersionAction, self).__init__( option_strings=option_strings, dest=dest, nargs=0, help="show program's version information and exit" ) <NEW_LINE> <DEDENT> def __call__(self, pa... | argparse --version action | 62598fc350812a4eaa620d30 |
class ChatClient(object): <NEW_LINE> <INDENT> def __init__(self, name, port, host=SERVER_HOST): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.connected = False <NEW_LINE> self.host = host <NEW_LINE> self.port = port <NEW_LINE> self.prompt= '[' + '@'.join((name, socket.gethostname().split('.')[0])) + ']> ' <NEW_L... | a command lin chat client using select | 62598fc3bf627c535bcb173d |
class BANKMAILRQ(Aggregate): <NEW_LINE> <INDENT> bankacctfrom = SubAggregate(BANKACCTFROM) <NEW_LINE> ccacctfrom = SubAggregate(CCACCTFROM) <NEW_LINE> mail = SubAggregate(MAIL, required=True) <NEW_LINE> requiredMutexes = [["bankacctfrom", "ccacctfrom"]] | OFX section 11.11.1.1 | 62598fc3796e427e5384ea2c |
class Exercise(NamedTuple): <NEW_LINE> <INDENT> fitid: str <NEW_LINE> dttrade: datetime.datetime <NEW_LINE> memo: str <NEW_LINE> uniqueidtype: str <NEW_LINE> uniqueid: str <NEW_LINE> units: decimal.Decimal <NEW_LINE> currency: str <NEW_LINE> total: decimal.Decimal <NEW_LINE> uniqueidtypeFrom: str <NEW_LINE> uniqueidFro... | Synthetic data type implementing OFX CLOSUREOPT interface.
| 62598fc3be7bc26dc9251fa7 |
class DateHourParameter(Parameter): <NEW_LINE> <INDENT> date_format = '%Y-%m-%dT%H' <NEW_LINE> def parse(self, s): <NEW_LINE> <INDENT> return datetime.datetime.strptime(s, self.date_format) <NEW_LINE> <DEDENT> def serialize(self, dt): <NEW_LINE> <INDENT> if dt is None: <NEW_LINE> <INDENT> return str(dt) <NEW_LINE> <DED... | Parameter whose value is a :py:class:`~datetime.datetime` specified to the hour.
A DateHourParameter is a `ISO 8601 <http://en.wikipedia.org/wiki/ISO_8601>`_ formatted
date and time specified to the hour. For example, ``2013-07-10T19`` specifies July 10, 2013 at
19:00. | 62598fc3091ae35668704ebe |
class ConfigData: <NEW_LINE> <INDENT> def __init__( self, setup_dir ): <NEW_LINE> <INDENT> if not ( isinstance( setup_dir, str ) or isinstance( setup_dir, pathlib.Path ) ): <NEW_LINE> <INDENT> raise TypeError( 'Parameter \'setup_dir\' must be of type \'str\' or \'pathlib.Path\'' ) <NEW_LINE> <DEDENT> try: <NEW_LINE> <I... | This class handles access to simulation setup configuration data. | 62598fc3cc40096d6161a324 |
class Meta: <NEW_LINE> <INDENT> verbose_name = 'Despesa e Receita' <NEW_LINE> verbose_name_plural = 'Despesas e Receitas' | Meta definition for ExpenseAndReceive. | 62598fc3283ffb24f3cf3b1c |
class Trips(Uri): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Uri.__init__(self, is_collection, "trips", output_type_serializer=api.TripsSerializer) <NEW_LINE> self.collections = get_collections(self.collection) <NEW_LINE> self.get_decorators.insert(1, get_obj_serializer(self)) | Retrieves trips | 62598fc35fc7496912d483c7 |
class Controller(object): <NEW_LINE> <INDENT> def __init__(self, program_id=DEFAULT_PROGRAM): <NEW_LINE> <INDENT> self.messages = Queue() <NEW_LINE> self.program_id = program_id <NEW_LINE> self.program = PROGRAMS[program_id]() <NEW_LINE> self.green = None <NEW_LINE> self.can_reset = False <NEW_LINE> <DEDENT> def start(... | Manages a program's main loop in a Greenlet. | 62598fc3d8ef3951e32c7fa8 |
class Location(mathematics.Point): <NEW_LINE> <INDENT> def __init__(self,a_x=0, a_y=0, a_z=0): <NEW_LINE> <INDENT> super(Location,self).__init__(a_x,a_y,a_z) <NEW_LINE> <DEDENT> def get_quadrant(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return Quadrant(int(self.x/Quadrant.resolution),int(self.y/Quadrant.resol... | A representation for a point | 62598fc392d797404e388cae |
class HiFiGANMultiScaleMultiPeriodDiscriminator(torch.nn.Module): <NEW_LINE> <INDENT> def __init__( self, scales=3, scale_downsample_pooling="AvgPool1d", scale_downsample_pooling_params={ "kernel_size": 4, "stride": 2, "padding": 2, }, scale_discriminator_params={ "in_channels": 1, "out_channels": 1, "kernel_sizes": [1... | HiFi-GAN multi-scale + multi-period discriminator module. | 62598fc35fdd1c0f98e5e22c |
class ConfigMgr(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._initialized = False <NEW_LINE> self._configer = None <NEW_LINE> self.lib_dir = os.path.dirname(os.path.realpath(__file__)) <NEW_LINE> self.work_dir = os.path.dirname(self.lib_dir) <NEW_LINE> self.conf_dir = os.path.join(self.work... | conf manage instance class | 62598fc360cbc95b063645d6 |
class Multiply(Math): <NEW_LINE> <INDENT> def __call__(self, state): <NEW_LINE> <INDENT> v1, v2 = self.binary(state) <NEW_LINE> push(state, v1*v2) | Multiply the top two items from the stack | 62598fc3a8370b77170f067b |
class BasicLogic(DiscardStrategy): <NEW_LINE> <INDENT> def __init__(self, Hand): <NEW_LINE> <INDENT> super().__init__(Hand) <NEW_LINE> self.Max = np.max(Hand) <NEW_LINE> self.Min = np.min(Hand) <NEW_LINE> <DEDENT> def discard_check(self): <NEW_LINE> <INDENT> self.less_then(6) <NEW_LINE> if((self.Max - self.Min) < 4): <... | Players on BasicLogic strategy discard ...
less then 6, because a high possibility to draw any of 5-9.
If the difference of Max and Min is less then 4, other then nine.
To raise the posibility of 9. | 62598fc3e1aae11d1e7ce972 |
class Delfrom(Parameter): <NEW_LINE> <INDENT> pass | RFC 5545: Delegator
| 62598fc3ad47b63b2c5a7af1 |
class AutoRestSwaggerBATService(object): <NEW_LINE> <INDENT> def __init__( self, base_url=None): <NEW_LINE> <INDENT> self.config = AutoRestSwaggerBATServiceConfiguration(base_url) <NEW_LINE> self._client = ServiceClient(None, self.config) <NEW_LINE> client_models = {k: v for k, v in models.__dict__.items() if isinstanc... | Test Infrastructure for AutoRest Swagger BAT
:ivar config: Configuration for client.
:vartype config: AutoRestSwaggerBATServiceConfiguration
:ivar string: String operations
:vartype string: fixtures.acceptancetestsbodystring.operations.StringOperations
:ivar enum: Enum operations
:vartype enum: fixtures.acceptancetes... | 62598fc363b5f9789fe8540d |
class ConvDenseLayer(Layer): <NEW_LINE> <INDENT> def __init__(self, n, weight_factory='xavier_uniform', activation='linear', weights=None, w_regulariser=None, b_regulariser=None, input_shape=None, **kwargs): <NEW_LINE> <INDENT> self.weightFactory = get_weightfactory(weight_factory) <NEW_LINE> self.activation = get_acti... | A dense layer that immediately follows a distributed
convolution without any flattening.
See the first layers of 'Deep Speech 2' for functionality | 62598fc37d847024c075c657 |
class DeltaUploads(fixtures.Fixture): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self.useFixture(fixtures.EnvironmentVariable( 'DELTA_UPLOADS_EXPERIMENTAL', 'True')) | Enable the Delta Uploads Experimental flag. | 62598fc3f9cc0f698b1c541e |
class TestLiveVmmDomain(TestLiveAPIC): <NEW_LINE> <INDENT> def test_get(self): <NEW_LINE> <INDENT> session = self.login_to_apic() <NEW_LINE> vmm_domains = VmmDomain.get(session) <NEW_LINE> for vmm_domain in vmm_domains: <NEW_LINE> <INDENT> self.assertTrue(isinstance(vmm_domain, VmmDomain)) <NEW_LINE> <DEDENT> return vm... | Live tests for VmmDomain class | 62598fc3ff9c53063f51a8e8 |
class pantheraConfig: <NEW_LINE> <INDENT> values = dict() <NEW_LINE> path = os.path.expanduser("~/.panthera-cdn/config") <NEW_LINE> createNewFile = True <NEW_LINE> panthera = "" <NEW_LINE> def __init__(self, panthera): <NEW_LINE> <INDENT> self.panthera = panthera <NEW_LINE> self.panthera.hooking.add_option('server.exit... | Configuration manager based on JSON files | 62598fc392d797404e388caf |
class RegexpNormalizer(SimpleNormalizer): <NEW_LINE> <INDENT> _possibleSettings = { 'char': { 'docs': ("Character(s) to replace matches in the regular " "expression with. Defaults to empty string (eg strip " "matches)") }, 'regexp': { 'docs': "Regular expression to match in the data.", 'required': True }, 'keep': { 'do... | Strip, replace or keep data matching a regular expression. | 62598fc33d592f4c4edbb152 |
class Category(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=100, unique=True) <NEW_LINE> slug = models.SlugField(max_length=100, unique=True) <NEW_LINE> description = models.TextField(null=True, blank=True) <NEW_LINE> pic = models.ImageField(upload_to='images/catalog/categorievs', null=True, bl... | Represents a Category for Products | 62598fc30fa83653e46f5181 |
class TestUpdateGetTestcaseKarma(BasePyTestCase): <NEW_LINE> <INDENT> def test_feedback_wrong_testcase(self): <NEW_LINE> <INDENT> update = model.Update.query.first() <NEW_LINE> tck = model.TestCaseKarma(karma=1, comment=update.comments[0], testcase=update.builds[0].testcases[0]) <NEW_LINE> self.db.add(tck) <NEW_LINE> t... | Test the get_testcase_karma() method. | 62598fc3956e5f7376df57cc |
class Typed(Core): <NEW_LINE> <INDENT> def __init__(self, schema): <NEW_LINE> <INDENT> self.resolver = NodeResolver(schema) <NEW_LINE> <DEDENT> def process(self, node, type): <NEW_LINE> <INDENT> content = Content(node) <NEW_LINE> content.type = type <NEW_LINE> return Core.process(self, content) <NEW_LINE> <DEDENT> def ... | A I{typed} XML unmarshaller
@ivar resolver: A schema type resolver.
@type resolver: L{NodeResolver} | 62598fc363b5f9789fe8540f |
class BJ_Deck(cards.Deck): <NEW_LINE> <INDENT> def populate(self): <NEW_LINE> <INDENT> for suit in BJ_Card.SUITS: <NEW_LINE> <INDENT> for rank in BJ_Card.RANKS: <NEW_LINE> <INDENT> self.cards.append(BJ_Card(rank, suit)) | Deck of cards required to plaj BJ | 62598fc37d847024c075c659 |
class DomainWhitelist(models.Model): <NEW_LINE> <INDENT> domain = models.CharField(validators=[domain_validator], max_length=255) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.domain | A white list of external domains that we can redirect users to
This is currently only used to verify the next url on the /logout/ page | 62598fc357b8e32f5250826c |
class ExcHandler(object): <NEW_LINE> <INDENT> def __init__(self, testname, todohandler): <NEW_LINE> <INDENT> self.testname = testname <NEW_LINE> self.todohandler = todohandler <NEW_LINE> self.screenpath = os.path.join("tests/logs", testname + ".png") <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> pass <NE... | Контекст менеджер для перехвата и обработки исключений
При любой ошибке будет сделан скриншот. | 62598fc392d797404e388cb0 |
class TaskLineRestView(BaseRestView): <NEW_LINE> <INDENT> def get_schema(self, submitted): <NEW_LINE> <INDENT> excludes = ('group_id',) <NEW_LINE> return get_add_edit_taskline_schema(excludes=excludes) <NEW_LINE> <DEDENT> def collection_get(self): <NEW_LINE> <INDENT> return self.context.lines <NEW_LINE> <DEDENT> def po... | Rest views used to handle the task lines
Collection views : Context Task
GET
Return all the items belonging to the parent task
POST
Add a new item
Item views
GET
Return the Item
PUT/PATCH
Edit the item
DELETE
Delete the item | 62598fc3442bda511e95c6fc |
class trip_weighted_average_time_hbw_from_home_am_transit_walk(Variable): <NEW_LINE> <INDENT> def dependencies(self): <NEW_LINE> <INDENT> return [my_attribute_label("zone_id"), "psrc.zone.trip_weighted_average_time_hbw_from_home_am_transit_walk"] <NEW_LINE> <DEDENT> def compute(self, dataset_pool): <NEW_... | Value of this variable from this gridcell's zone. | 62598fc3dc8b845886d53858 |
class ProcessSampler(RandomSampler): <NEW_LINE> <INDENT> def __init__(self, data_source, augments=(('resize', [(128, 128)]))): <NEW_LINE> <INDENT> super(ProcessSampler, self).__init__(data_source) <NEW_LINE> self.augments = augments <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> super_iter = self(ProcessSa... | Samples randomly over our dataset, and performs augmentation on sample
:param data_source: instance of PixDataset
:param augments: list containing tuples of
('func_name', [args]), where [args] must be at least []
and func_name must be a valid static function in the Augments class
**order of augment functions matters** | 62598fc37b180e01f3e4919e |
class Application(LoggingApp): <NEW_LINE> <INDENT> name = "insulaudit" <NEW_LINE> devices = { } <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> kwds = { 'root': True } <NEW_LINE> super(Application, self).__init__(**kwds) <NEW_LINE> <DEDENT> def setup(self): <NEW_LINE> <INDENT> super(Application, self).setup( ) <NEW_... | Test Hello World
| 62598fc371ff763f4b5e7a1a |
class Token(ABC): <NEW_LINE> <INDENT> HAS_PATTERN = False <NEW_LINE> @abstractmethod <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.content + "\n" | The abstract base class (ABC) for all tokens.
Each non-abstract child class must have a ``content`` attribute. If
the token is not a combination of other tokens, that ``content``
attribute must be a string of the original content of the raw line
of text. Otherwise, the ``content`` attribute is the list of
subtokens. T... | 62598fc34f88993c371f0659 |
class EF_CallconfC(TransparentEF): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__(fid='6ff2', sfid=None, name='EF.CallconfC', size={24, 24}, desc='Call Configuration of emergency calls Configuration') <NEW_LINE> self._construct = Struct('pl_conf'/PlConfAdapter(Int8ub), 'conf_nr'/BcdAdapter... | Section 7.3 | 62598fc34a966d76dd5ef172 |
class DirectoryChanger(object): <NEW_LINE> <INDENT> def change(self, directory=None): <NEW_LINE> <INDENT> os.chdir(directory) | Change current directory | 62598fc376e4537e8c3ef843 |
class QuantumBlock(Statement): <NEW_LINE> <INDENT> def __init__(self, statements=None, loops=None): <NEW_LINE> <INDENT> self.statements = statements <NEW_LINE> self.loops = loops <NEW_LINE> <DEDENT> def eval(self): <NEW_LINE> <INDENT> x={ 'type': 'quantumBlock', 'stmts': [] } <NEW_LINE> if self.statements!=None: <NEW_L... | quantumBlock =
| { quantumStatement }
| { quantumLoop }
| { quantumStatement* | quantumLoop*} | 62598fc3e1aae11d1e7ce974 |
class CellChannelDescription(Packet): <NEW_LINE> <INDENT> name = "Cell Channel Description " <NEW_LINE> fields_desc = [ BitField("bit128", 0x0, 1), BitField("bit127", 0x0, 1), BitField("spare1", 0x0, 1), BitField("spare2", 0x0, 1), BitField("bit124", 0x0, 1), BitField("bit123", 0x0, 1), BitField("bit122", 0x0, 1), BitF... | Cell Channel Description Section 10.5.2.1b | 62598fc3956e5f7376df57cd |
class InstalledAddOnExtensionInstance(InstanceResource): <NEW_LINE> <INDENT> def __init__(self, version, payload, installed_add_on_sid, sid=None): <NEW_LINE> <INDENT> super(InstalledAddOnExtensionInstance, self).__init__(version) <NEW_LINE> self._properties = { 'sid': payload.get('sid'), 'installed_add_on_sid': payload... | PLEASE NOTE that this class contains preview products that are subject
to change. Use them with caution. If you currently do not have developer
preview access, please contact help@twilio.com. | 62598fc3283ffb24f3cf3b22 |
class ModelMixin: <NEW_LINE> <INDENT> model = None <NEW_LINE> def __init__(self, model=None, url_part=None, **kwargs): <NEW_LINE> <INDENT> if model is not None: <NEW_LINE> <INDENT> self.model = model <NEW_LINE> <DEDENT> elif self.model is None: <NEW_LINE> <INDENT> raise ValueError( "No ``model`` argument provided to __... | ModelRouter with no views. Give :attr:`model` kwarg where needed,
ask it in :func:`__init__`, and map ``SingleObjectMixin`` and
``MultipleObjectMixin`` to
:class:`django_crucrudile.routes.ModelViewRoute` in register
functions.
.. inheritance-diagram:: ModelMixin | 62598fc392d797404e388cb1 |
class F6s(Platform): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.platformName = "F6s" <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_LINE... | A <Platform> object for F6s. | 62598fc3a219f33f346c6aa6 |
class LazyDijkstra: <NEW_LINE> <INDENT> def __init__(self, weighted_grapgh: WeightedGraph, start): <NEW_LINE> <INDENT> self.__g = weighted_grapgh <NEW_LINE> self.__marked = set() <NEW_LINE> self.__pq = Heap(compare) <NEW_LINE> self._dist_to = dict() <NEW_LINE> self._edge_to = dict() <NEW_LINE> self._start = start <NEW_... | alg-1 p421
延时版Dijkstra有向图最短路径算法,不能处理含有负权重的图
时间复杂度 O(ElogE) | 62598fc3d8ef3951e32c7fab |
class RandomSampler(Sampler): <NEW_LINE> <INDENT> def __init__(self, data_source): <NEW_LINE> <INDENT> self.num_samples = len(data_source) <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> return iter(torch.randperm(self.num_samples).long()) <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT> return se... | Samples elements randomly, without replacement.
Arguments:
data_source (Dataset): dataset to sample from | 62598fc33d592f4c4edbb156 |
class State: <NEW_LINE> <INDENT> def __init__(self, likes, save): <NEW_LINE> <INDENT> self.likes = likes <NEW_LINE> self.xp = likes * CONST.XP_FACTOR <NEW_LINE> self.level = int(self.xp / 10) <NEW_LINE> if(save): <NEW_LINE> <INDENT> self.save() <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.load() <NEW_LINE> <DEDEN... | Represents the actual state of the user | 62598fc3f548e778e596b83d |
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> dept... | 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. | 62598fc3a05bb46b3848ab0b |
class Inverse(Player): <NEW_LINE> <INDENT> name = 'Inverse' <NEW_LINE> def strategy(self, opponent): <NEW_LINE> <INDENT> index = next((index for index,value in enumerate(opponent.history, start = 1) if value == 'D'), None) <NEW_LINE> if index == None: <NEW_LINE> <INDENT> return 'C' <NEW_LINE> <DEDENT> rnd_num = random.... | A player who defects with a probability that diminishes relative to how long ago the opponent defected. | 62598fc399fddb7c1ca62f3c |
class CFuncPtr(_CData): <NEW_LINE> <INDENT> def __bool__(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __call__(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def _... | Function Pointer | 62598fc34a966d76dd5ef174 |
class _BaseEvergreenObject(object): <NEW_LINE> <INDENT> def __init__(self, json: Dict[str, Any], api: "EvergreenApi") -> None: <NEW_LINE> <INDENT> self.json = json <NEW_LINE> self._api = api <NEW_LINE> self._date_fields = None <NEW_LINE> <DEDENT> def _is_field_a_date(self, item: str) -> bool: <NEW_LINE> <INDENT> return... | Common evergreen object. | 62598fc3aad79263cf42ea75 |
class GenericObjectList(APIView): <NEW_LINE> <INDENT> def get(self, request, format=None): <NEW_LINE> <INDENT> queryset = GenericObject.objects.all() <NEW_LINE> serializer = GenericObjectSerializer(queryset, many=True) <NEW_LINE> return Response(serializer.data) <NEW_LINE> <DEDENT> def post(self, request, format=None... | API endpoint that allows users to be viewed or edited. | 62598fc34c3428357761a55c |
class PoiExtHotelOrderCommitResponse(object): <NEW_LINE> <INDENT> swagger_types = { 'surname': 'str', 'given_name': 'str', 'cn_name': 'str' } <NEW_LINE> attribute_map = { 'surname': 'surname', 'given_name': 'given_name', 'cn_name': 'cn_name' } <NEW_LINE> def __init__(self, surname=None, given_name=None, cn_name=None): ... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fc3ec188e330fdf8b34 |
class QdSchema(schema.Schema): <NEW_LINE> <INDENT> CONFIGURATION_ENTITY = "configurationEntity" <NEW_LINE> OPERATIONAL_ENTITY = "operationalEntity" <NEW_LINE> ROUTER_ID_MAX_LEN = 127 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> qd_schema = get_data('qpid_dispatch.management', 'qdrouter.json').decode('utf8') <NEW_... | Qpid Dispatch Router management schema. | 62598fc357b8e32f5250826e |
class DescribeComputeEnvCreateInfosRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.EnvIds = None <NEW_LINE> self.Filters = None <NEW_LINE> self.Offset = None <NEW_LINE> self.Limit = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.EnvIds = params... | DescribeComputeEnvCreateInfos请求参数结构体
| 62598fc355399d3f056267b8 |
class TestExport(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 make_instance(self, include_optional): <NEW_LINE> <INDENT> if include_optional : <NEW_LINE> <INDENT> return Export( id = 56, created... | Export unit test stubs | 62598fc350812a4eaa620d35 |
class CommonGramTokenFilter(TokenFilter): <NEW_LINE> <INDENT> _validation = { 'odata_type': {'required': True}, 'name': {'required': True}, 'common_words': {'required': True}, } <NEW_LINE> _attribute_map = { 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'common_words': {... | Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. This token filter is implemented using Apache Lucene.
All required parameters must be populated in order to send to Azure.
:ivar odata_type: Required. Identifies the concrete type of the token f... | 62598fc3377c676e912f6ec4 |
class Vector(object): <NEW_LINE> <INDENT> def toArray(self): <NEW_LINE> <INDENT> raise NotImplementedError | Abstract class for DenseVector and SparseVector | 62598fc3442bda511e95c700 |
class AvailabilitySymlinks (object): <NEW_LINE> <INDENT> def __init__(self, dir_a, dir_e, supports_activation): <NEW_LINE> <INDENT> self.dir_a, self.dir_e = dir_a, dir_e <NEW_LINE> self.supports_activation = supports_activation <NEW_LINE> <DEDENT> def list_available(self): <NEW_LINE> <INDENT> return os.listdir(self.dir... | Manage directories of following style::
--sites.available
|-a.site
--b.site
--sites.enabled
--a.site -> ../sites.available/a.site | 62598fc3ff9c53063f51a8ee |
class Robot(object): <NEW_LINE> <INDENT> def __init__(self, name, version, image_url='', profile_url=''): <NEW_LINE> <INDENT> self._handlers = {} <NEW_LINE> self.name = name <NEW_LINE> self.version = version <NEW_LINE> self.image_url = image_url <NEW_LINE> self.profile_url = profile_url <NEW_LINE> self.cron_jobs = [] <... | Robot metadata class.
This class holds on to basic robot information like the name and profile.
It also maintains the list of event handlers and cron jobs and
dispatches events to the appropriate handlers. | 62598fc34527f215b58ea170 |
class OdomNode(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.sub_odom = rospy.Subscriber("odom", Odometry, self.odom_callback) <NEW_LINE> self.tfBroad = tf.TransformBroadcaster() <NEW_LINE> <DEDENT> def odom_callback(self, msg): <NEW_LINE> <INDENT> trans = (msg.pose.pose.position.x, msg.pose... | Class to hold all ROS related transactions to use split and merge algorithm. | 62598fc39f288636728189cc |
class RetryDetail(AtomDetail): <NEW_LINE> <INDENT> def __init__(self, name, uuid): <NEW_LINE> <INDENT> super(RetryDetail, self).__init__(name, uuid) <NEW_LINE> self.results = [] <NEW_LINE> <DEDENT> def reset(self, state): <NEW_LINE> <INDENT> self.results = [] <NEW_LINE> self.failure = None <NEW_LINE> self.state = state... | This class represents a retry detail for retry controller object. | 62598fc3656771135c489910 |
class _CoordMetaData(namedtuple('CoordMetaData', ['defn', 'dims', 'points_dtype', 'bounds_dtype', 'kwargs'])): <NEW_LINE> <INDENT> def __new__(cls, coord, dims): <NEW_LINE> <INDENT> defn = coord._as_defn() <NEW_LINE> points_dtype = coord.points.dtype <NEW_LINE> bounds_dtype = coord.bounds.dtype if coord.bounds is not N... | Container for the metadata that defines a dimension or auxiliary
coordinate.
Args:
* defn:
The :class:`iris.coords.CoordDefn` metadata that represents a
coordinate.
* dims:
The dimension(s) associated with the coordinate.
* points_dtype:
The points data :class:`np.dtype` of an associated coordinate.... | 62598fc32c8b7c6e89bd3a64 |
class RenewInstanceRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Period = None <NEW_LINE> self.InstanceId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Period = params.get("Period") <NEW_LINE> self.InstanceId = params.get("InstanceId") | RenewInstance request structure.
| 62598fc371ff763f4b5e7a1e |
class IntegrationSQS(testing.AsyncTestCase): <NEW_LINE> <INDENT> integration = True <NEW_LINE> queue_name = 'integration-test-%s' % UUID <NEW_LINE> region = 'us-east-1' <NEW_LINE> @attr('integration', 'dry') <NEW_LINE> @testing.gen_test(timeout=60) <NEW_LINE> def integration_01a_create_queue_dry(self): <NEW_LINE> <INDE... | High level SQS Actor testing.
This suite of tests performs the following actions:
* Create a queue with a randomized name
* Add a few messages to the queue
* Start the WaitUntilEmpty task
* Check that this task is not exiting while there are messages
* Remove all the messages from the queue
* Check that the WaitUntilE... | 62598fc33d592f4c4edbb159 |
class FlagsService(base_api.BaseApiService): <NEW_LINE> <INDENT> _NAME = u'flags' <NEW_LINE> def __init__(self, client): <NEW_LINE> <INDENT> super(SqladminV1beta3.FlagsService, self).__init__(client) <NEW_LINE> self._method_configs = { 'List': base_api.ApiMethodInfo( http_method=u'GET', method_id=u'sql.flags.list', ord... | Service class for the flags resource. | 62598fc3851cf427c66b8557 |
class InputFormContainer(ViewElement): <NEW_LINE> <INDENT> def __init__(self, parent, view_types, collector): <NEW_LINE> <INDENT> ViewElement.__init__(self, parent) <NEW_LINE> self.__views = [] <NEW_LINE> for type_ in view_types: <NEW_LINE> <INDENT> self.__views.append(type_(self, collector)) <NEW_LINE> <DEDENT> self.g... | Display the current input form.
Attributes:
parent: parent frame/view/window
view_types (list): all available view types
collector: data collector | 62598fc3ad47b63b2c5a7af9 |
class AuthSignUpHandler(BaseHandler): <NEW_LINE> <INDENT> def post(self): <NEW_LINE> <INDENT> data = tornado.escape.json_decode(self.request.body) <NEW_LINE> username = data["username"] <NEW_LINE> password = hashlib.sha1( bytes( data["password"], "utf-8" ) ).hexdigest() <NEW_LINE> try: <NEW_LINE> <INDENT> db.Users.sele... | Authorization API
endpoint: /auth/signup | 62598fc363b5f9789fe85415 |
class SearchItemsViewSet(generics.ListCreateAPIView): <NEW_LINE> <INDENT> queryset = Item.objects.all() <NEW_LINE> serializer_class = ItemSerializer <NEW_LINE> permission_classes = (IsAuthenticated,) <NEW_LINE> def filter_queryset(self, queryset): <NEW_LINE> <INDENT> return queryset.filter(name__contains=self.kwargs['p... | List all items from a specific tag. | 62598fc3283ffb24f3cf3b26 |
class SettingsDialog(wx.Dialog): <NEW_LINE> <INDENT> def __init__(self, parent, id, title): <NEW_LINE> <INDENT> wx.Dialog.__init__(self, parent, id, title, size=(600, 250), style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER, pos=wx.DefaultPosition) <NEW_LINE> self.parent = parent <NEW_LINE> self.safetyMode = self.parent.sa... | The class settingsDialog is derived from wx.Dialog and builds
a dialog to configure the applications settings | 62598fc3956e5f7376df57cf |
class NSNitroNserrSslPendingCmds(NSNitroSsl2Errors): <NEW_LINE> <INDENT> pass | Nitro error code 3625
Other commands (card health monitoring/traffic) are pending to
FIPS card. Please try the firmware update command after some
time | 62598fc37d847024c075c65f |
class loc: <NEW_LINE> <INDENT> def set_path(path = ''): <NEW_LINE> <INDENT> import os <NEW_LINE> if os.path.exists(path): <NEW_LINE> <INDENT> if not os.chdir(path): <NEW_LINE> <INDENT> os.chdir(path) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> os.chdir(path) <NEW_LINE> <DEDENT> <DEDENT> else: <NEW_LINE> <INDENT> rais... | Class Location:
Contains elementary functions for
getting path and data
| 62598fc3442bda511e95c702 |
class JSONPath(object): <NEW_LINE> <INDENT> def find(self, data): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def update(self, data, val): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def child(self, child): <NEW_LINE> <INDENT> if isinstance(self, This) or isinstance(self,... | The base class for JSONPath abstract syntax; those
methods stubbed here are the interface to supported
JSONPath semantics. | 62598fc35fdd1c0f98e5e235 |
class SplitPptxPresentationResult(object): <NEW_LINE> <INDENT> swagger_types = { 'result_presentations': 'list[PresentationResult]', 'successful': 'bool' } <NEW_LINE> attribute_map = { 'result_presentations': 'ResultPresentations', 'successful': 'Successful' } <NEW_LINE> def __init__(self, result_presentations=None, su... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fc323849d37ff851355 |
class StructureParser(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.body = None <NEW_LINE> self.structure = None <NEW_LINE> <DEDENT> def accept(self, visitor): <NEW_LINE> <INDENT> self.structure = visitor.visit(self.body) <NEW_LINE> <DEDENT> def load(self, src): <NEW_LINE> <INDENT> try: <NEW... | Parser for the source code
| 62598fc3d486a94d0ba2c273 |
class Reporter: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._content = list() <NEW_LINE> self._field_widths = list() <NEW_LINE> <DEDENT> def append(self,line): <NEW_LINE> <INDENT> self._content.append(line) <NEW_LINE> for ix,item in enumerate(line): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self... | Class for reporting column data
Given multiple "lines" of column data (supplied
as lists), pretty print the data in columns.
Example usage:
>>> output = Reporter()
>>> output.append(['Some data',1.0,3])
>>> output.append(['More stuff',21.9,19])
>>> output.report()
Some data 1.0 3
More stuff 21.9 19 | 62598fc3d8ef3951e32c7fad |
class TropeExtractor(BasePageHandler): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def get_tropes_from_page(cls, page_url): <NEW_LINE> <INDENT> logging.info("attempting to get tropes for url: %s", page_url) <NEW_LINE> return cls.get_from_url(page_url) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def _get_items_from_soup... | Helper to extract tropes from a page | 62598fc3fff4ab517ebcda89 |
@js_defined('window.LibraryContentAuthorView') <NEW_LINE> class StudioLibraryContainerXBlockWrapper(XBlockWrapper): <NEW_LINE> <INDENT> url = None <NEW_LINE> def is_browser_on_page(self): <NEW_LINE> <INDENT> return self.q(css='article.content-primary').visible <NEW_LINE> <DEDENT> def is_finished_loading(self): <NEW_LIN... | Wraps :class:`.container.XBlockWrapper` for use with LibraryContent blocks | 62598fc33d592f4c4edbb15a |
class Stock: <NEW_LINE> <INDENT> def __init__(self, name, code): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.code = code <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "名称:" + self.name +"股票代码:" + self.code | 股票类 | 62598fc37b180e01f3e491a1 |
class Player(BasePlayer): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.name = "Player" <NEW_LINE> <DEDENT> def hunt_choices( self, round_number, current_food, current_reputation, m, player_reputations, ): <NEW_LINE> <INDENT> return ['s']*len(player_reputations) <NEW_LINE> <DEDENT> def hunt_outcomes(... | Your strategy starts here. | 62598fc3aad79263cf42ea79 |
class VideoSerializer(DispatchModelSerializer): <NEW_LINE> <INDENT> title = serializers.CharField(required=False, allow_null=True, allow_blank=True) <NEW_LINE> url = serializers.CharField(required=True, allow_null=True, allow_blank=False) <NEW_LINE> authors = AuthorSerializer(many=True, read_only=True) <NEW_LINE> autho... | Serializes the Video model. | 62598fc3851cf427c66b8559 |
class MyModule(Module): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def add_arguments(cls, parser): <NEW_LINE> <INDENT> parser.add_argument("-c", "--count", type=int, help="number of bytes in each chunk", default=1) <NEW_LINE> <DEDENT> def handle(self, input, count): <NEW_LINE> <INDENT> assert input is not None, "Must ... | Flip input data in reverse. | 62598fc376e4537e8c3ef849 |
class DampedHarmonicOscillatorInfo: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Name = 'Damped Harmonic Oscillator (Bose corrected)' <NEW_LINE> self.Order = 6 <NEW_LINE> self.ParameterNumber = 5 <NEW_LINE> self.ParameterNames = ['Position', 'Gamma', 'Amplitude', 'Tempe', 'Assymetry']... | ###############################################################################
This class will contain information about the function, parameters and names
############################################################################### | 62598fc3656771135c489914 |
class FolderListView(SuperPermissionsMixin, DokumenListView): <NEW_LINE> <INDENT> template_name = 'folder/list.html' <NEW_LINE> model = Carpeta <NEW_LINE> context_object_name = 'folder_data' <NEW_LINE> user_types = [User.ADMIN, User.MANAGER] <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> queryset = super(Folder... | carpeta List View. | 62598fc33346ee7daa33779b |
class FileObjectManager: <NEW_LINE> <INDENT> def __init__(self, rootFile): <NEW_LINE> <INDENT> self.rootFile = None <NEW_LINE> if isinstance(rootFile, FileObject): <NEW_LINE> <INDENT> self.rootFile = rootFile <NEW_LINE> <DEDENT> <DEDENT> def all_file_objects(self): <NEW_LINE> <INDENT> filesList = [] <NEW_LINE> if self.... | 用来扫描FileObject的类 | 62598fc34f88993c371f065d |
class TimeAttestation: <NEW_LINE> <INDENT> TAG = None <NEW_LINE> TAG_SIZE = 8 <NEW_LINE> MAX_PAYLOAD_SIZE = 8192 <NEW_LINE> def _serialize_payload(self, ctx): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def serialize(self, ctx): <NEW_LINE> <INDENT> ctx.write_bytes(self.TAG) <NEW_LINE> payload_ctx ... | Time-attesting signature | 62598fc37c178a314d78d745 |
class ValidationError(BuildMagicException): <NEW_LINE> <INDENT> msg = 'Validation failed' | Parameter validation failed. | 62598fc397e22403b383b1af |
class SecurityErrorTestCase(ExceptionTestCase): <NEW_LINE> <INDENT> def test_unauthorized_exposure(self): <NEW_LINE> <INDENT> self.opt(debug=False) <NEW_LINE> risky_info = uuid.uuid4().hex <NEW_LINE> e = exception.Unauthorized(message=risky_info) <NEW_LINE> self.assertValidJsonRendering(e) <NEW_LINE> self.assertNotIn(r... | Tests whether security-related info is exposed to the API user. | 62598fc3167d2b6e312b721c |
class MockP4Source(P4Source): <NEW_LINE> <INDENT> invocation = 0 <NEW_LINE> def __init__(self, p4changes, p4change, *args, **kwargs): <NEW_LINE> <INDENT> P4Source.__init__(self, *args, **kwargs) <NEW_LINE> self.p4changes = p4changes <NEW_LINE> self.p4change = p4change <NEW_LINE> <DEDENT> def _get_changes(self): <NEW_LI... | Test P4Source which doesn't actually invoke p4. | 62598fc34a966d76dd5ef17a |
class User(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'users' <NEW_LINE> id = db.Column(db.Integer, primary_key=True, autoincrement=True) <NEW_LINE> first_name = db.Column(db.String(30), nullable=False) <NEW_LINE> last_name = db.Column(db.String(30), nullable=False) <NEW_LINE> image_url = db.Column(db.String, defau... | User model | 62598fc33d592f4c4edbb15d |
class FieldSet(DOM.FieldSet): <NEW_LINE> <INDENT> __slots__ = ('legend') <NEW_LINE> properties = DOM.FieldSet.properties.copy() <NEW_LINE> properties['legend'] = {'action':'setLegendText'} <NEW_LINE> def _create(self, id=None, name=None, parent=None, **kwargs): <NEW_LINE> <INDENT> DOM.FieldSet._create(self, id, name, p... | Groups child elements together with a labeled border | 62598fc3e1aae11d1e7ce978 |
@final <NEW_LINE> class TooManyElifsViolation(ASTViolation): <NEW_LINE> <INDENT> error_template = 'Found too many `elif` branches: {0}' <NEW_LINE> code = 223 | Forbids to use many ``elif`` branches.
Reasoning:
This rule is specifically important because of many ``elif``
branches indicate a complex flow in your design:
you are reimplementing ``switch`` in python.
Solution:
There are different design patterns to use instead.
For example, you can use some i... | 62598fc37047854f4633f679 |
class SiamCiReceiverServiceTest(SiamCiTestCase): <NEW_LINE> <INDENT> @defer.inlineCallbacks <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> yield self._start_container() <NEW_LINE> services = [ {'name':receiver_service_name, 'module':'siamci.receiver_service', 'class':'SiamCiReceiverService', 'spawnargs':{ 'servicename... | Basic tests of SiamCiReceiverService. | 62598fc3a8370b77170f0686 |
class SimpleComm(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> import numpy <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> numpy = None <NEW_LINE> <DEDENT> self._numpy = numpy <NEW_LINE> self._color = None <NEW_LINE> self._group = None <NEW_LINE> <DEDENT> def _is_ndarray... | Simple Communicator for serial operation.
Attributes:
_numpy: Reference to the Numpy module, if found
_color: The color associated with the communicator, if colored
_group: The group ID associated with the communicator's color | 62598fc3377c676e912f6ec7 |
class Principal(models.Base): <NEW_LINE> <INDENT> id = Column(Integer, primary_key=True) <NEW_LINE> active = Column(Boolean) <NEW_LINE> email = Column(Unicode(100), nullable=False, unique=True) <NEW_LINE> password = Column(Unicode(100)) <NEW_LINE> firstname = Column(Unicode()) <NEW_LINE> lastname = Column(Unicode()) <N... | An implementation of 'Principal', i.e. users and groups. | 62598fc323849d37ff851359 |
class CopyTo(object): <NEW_LINE> <INDENT> __COPY_CHUNK_SIZE = 100 * 1024 <NEW_LINE> __sql = None <NEW_LINE> __cursor = None <NEW_LINE> __temp_file_buffer = None <NEW_LINE> def __init__(self, cursor: DictCursor, sql: str): <NEW_LINE> <INDENT> sql = decode_object_from_bytes_if_needed(sql) <NEW_LINE> self.__start_copy_to(... | COPY TO helper. Implements iterator methods too. | 62598fc3d8ef3951e32c7faf |
class ExtSpace(object): <NEW_LINE> <INDENT> def __init__(self, e=None): <NEW_LINE> <INDENT> if e is not None: <NEW_LINE> <INDENT> self.extensions = e | Simple class to test out namespace implementations of validate_extensions() | 62598fc35fdd1c0f98e5e23a |
class ServiceBookDetailAllotment(ServiceBookDetail, BookAllotmentData): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = 'Service Book Detail Accomodation' <NEW_LINE> verbose_name_plural = 'Services Book Details Accomodations' <NEW_LINE> <DEDENT> book_service = models.ForeignKey(Allotment, on_delete=m... | Service Book Detail Allotment | 62598fc39f288636728189cf |
class KLCRule(KLCRuleBase): <NEW_LINE> <INDENT> def __init__(self, module, args, description): <NEW_LINE> <INDENT> KLCRuleBase.__init__(self, description) <NEW_LINE> self.module = module <NEW_LINE> self.args = args <NEW_LINE> self.needsFixMore=False <NEW_LINE> self.illegal_chars = ['*', '?', ':', '/', '\\', '[', ']', '... | A base class to represent a KLC rule | 62598fc34f88993c371f065e |
class RevisionLogList(mixins.ListModelMixin, mixins.CreateModelMixin, generics.GenericAPIView): <NEW_LINE> <INDENT> queryset = RevisionLogs.objects.all().order_by('-id') <NEW_LINE> filter_backends = (DjangoFilterBackend, SearchFilter, OrderingFilter) <NEW_LINE> pagination_class = MyPageNumberPagination <NEW_LINE> filte... | 修改日志列表、新增 | 62598fc37b180e01f3e491a3 |
class Output: <NEW_LINE> <INDENT> report = FileField( label="Tab-separated file containing the overall conversion rates" ) <NEW_LINE> plot = FileField(label="Overall conversion rate plot file") <NEW_LINE> species = StringField(label="Species") <NEW_LINE> build = StringField(label="Build") | Output fields to process AlleyoopRates. | 62598fc3cc40096d6161a32c |
class FooException(Exception): <NEW_LINE> <INDENT> class InternalFoo(object): <NEW_LINE> <INDENT> pass | Docstring of :class:`format.numpy.foo.FooException`.
Another class of :mod:`format.numpy.foo` module. | 62598fc3aad79263cf42ea7d |
class TwitterModel(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.param_defaults = {} <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.AsJsonString() <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> return other and self.AsDict() == other.AsDict... | Base class from which all twitter models will inherit. | 62598fc3adb09d7d5dc0a824 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.