code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class OrbitNorthernPole(OrbitEvent): <NEW_LINE> <INDENT> name = "Orbit.NorthernPole" <NEW_LINE> def _occur(self,message): <NEW_LINE> <INDENT> if self._ready(message): <NEW_LINE> <INDENT> m0 = self.prev.w <NEW_LINE> m1 = self.next.w <NEW_LINE> if (m0 >= 0 and m1 <= 0): <NEW_LINE> <INDENT> x0 = self.prev.epoch <NEW_LINE>... | Story: Orbit northern pole
IN ORDER TO perform analyses at the northern pole
AS A generic segment
I WANT TO be notified when northern pole is reached | 62598fbabe383301e025396a |
class LeafEntity(Entity): <NEW_LINE> <INDENT> def __init__(self, car: Leaf) -> None: <NEW_LINE> <INDENT> self.car = car <NEW_LINE> <DEDENT> def log_registration(self) -> None: <NEW_LINE> <INDENT> _LOGGER.debug( "Registered %s integration for VIN %s", self.__class__.__name__, self.car.leaf.vin, ) <NEW_LINE> <DEDENT> @pr... | Base class for Nissan Leaf entity. | 62598fba1f5feb6acb162d8d |
class TestAppleUpdatesModule(mox.MoxTestBase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> mox.MoxTestBase.setUp(self) <NEW_LINE> self.stubs = stubout.StubOutForTesting() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> self.mox.UnsetStubs() <NEW_LINE> self.stubs.UnsetAll() <NEW_LINE> <DEDENT> d... | Test appleupdates module. | 62598fba091ae35668704d8f |
class PLSR(bases.ImplicitAlgorithm, bases.IterativeAlgorithm): <NEW_LINE> <INDENT> def __init__(self, max_iter=200, eps=consts.TOLERANCE, **kwargs): <NEW_LINE> <INDENT> super(PLSR, self).__init__(max_iter=max_iter, **kwargs) <NEW_LINE> self.eps = max(consts.TOLERANCE, float(eps)) <NEW_LINE> <DEDENT> def run(self, XY, w... | A NIPALS implementation for PLS regresison.
Parameters
----------
max_iter : Non-negative integer. Maximum allowed number of iterations.
Default is 200.
eps : Positive float. The tolerance used in the stopping criterion.
Examples
--------
>>> from parsimony.algorithms.nipals import PLSR
>>> import numpy as n... | 62598fba3539df3088ecc41a |
class Node(dictobj.DictionaryObject): <NEW_LINE> <INDENT> def __init__(self, path, oid, **kwargs): <NEW_LINE> <INDENT> super(Node, self).__init__() <NEW_LINE> children = kwargs.get('children', {}) <NEW_LINE> if any(filter(lambda key: not isinstance(children[key], Node), children)): <NEW_LINE> <INDENT> raise TypeError( ... | This class exists as a helper to the jsTree. Its "jsonData" method can
generate sub-tree JSON without putting the logic directly into the jsTree.
This data structure is only semi-immutable. The jsTree uses a directly
iterative (i.e. no stack is managed) builder pattern to construct a
tree out of paths. Therefore, t... | 62598fba4f88993c371f05c4 |
class ExcaliburInternalError(ExcaliburError): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(ExcaliburInternalError, self).__init__(*args, **kwargs) | base exception for excalibur | 62598fba55399d3f05626681 |
class DeploymentValidateResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'error': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'error': {'key': 'error', 'type': 'ErrorResponse'}, 'properties': {'key': 'properties', 'type': 'DeploymentPropertiesExtended'}, } <NEW_LINE> def __init__( self, *... | Information from validate template deployment response.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar error: The deployment validation error.
:vartype error: ~azure.mgmt.resource.resources.v2021_04_01.models.ErrorResponse
:ivar properties: The template deployment proper... | 62598fba3617ad0b5ee062b4 |
class VertsDelDoublesNode(bpy.types.Node, SverchCustomTreeNode): <NEW_LINE> <INDENT> bl_idname = 'VertsDelDoublesNode' <NEW_LINE> bl_label = 'Delete Double vertices' <NEW_LINE> bl_icon = 'OUTLINER_OB_EMPTY' <NEW_LINE> def draw_buttons(self, context, layout): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def sv_init(self... | Delete doubles vertices | 62598fba5166f23b2e24354b |
class LMV(LyaInstruction): <NEW_LINE> <INDENT> _mnemonic = 'lmv' <NEW_LINE> def __init__(self, k): <NEW_LINE> <INDENT> super().__init__(k) <NEW_LINE> self.k = k | (’lmv’, k) # Load multiple values
t=M[sp]
for i in range(0,k-1):
M[sp+i]=M[t+i]
sp=sp + k - 1 | 62598fba66656f66f7d5a560 |
class RDBVocabulary(ObjectVocabulary): <NEW_LINE> <INDENT> implements(IRDBVocabulary) <NEW_LINE> select = None <NEW_LINE> def _load(self): <NEW_LINE> <INDENT> if self.select is not None: <NEW_LINE> <INDENT> self._v_skipObjectTypeCheckOnCreation = False <NEW_LINE> params = {} <NEW_LINE> return self.objectC.load_many(dbq... | Словарь объектов, загружаемых из БД | 62598fba851cf427c66b8424 |
class SaltApi(SaltDaemonScriptBase): <NEW_LINE> <INDENT> def get_script_args(self): <NEW_LINE> <INDENT> return ['-l', 'quiet'] <NEW_LINE> <DEDENT> def get_check_ports(self): <NEW_LINE> <INDENT> if 'rest_cherrypy' in self.config: <NEW_LINE> <INDENT> return [self.config['rest_cherrypy']['port']] <NEW_LINE> <DEDENT> if 'r... | Class which runs the salt-api daemon | 62598fba3317a56b869be605 |
class Negative(Dataset): <NEW_LINE> <INDENT> def __init__(self, sta_date_items): <NEW_LINE> <INDENT> self.sta_date_items = sta_date_items <NEW_LINE> <DEDENT> def __getitem__(self, index): <NEW_LINE> <INDENT> train_paths_i, valid_paths_i = [], [] <NEW_LINE> sta_date, samples = self.sta_date_items[index] <NEW_LINE> net_s... | Dataset for cutting negative sample
| 62598fba377c676e912f6e27 |
class Resolver(metaclass=ABCMeta): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def resolve_srv(self, domain, service, protocol, callback): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def resolve_address(self, hostname, callback, allow_cname = True): <NEW_LINE> <INDENT... | Abstract base class for asynchronous DNS resolvers to be used
with PyxMPP. | 62598fbafff4ab517ebcd951 |
class ModelInteritanceTestCase(unittest.TestCase): <NEW_LINE> <INDENT> @httpretty.activate <NEW_LINE> def test_inheritantce_full(self): <NEW_LINE> <INDENT> httpretty.register_uri( httpretty.GET, 'http://petstore.swagger.wordnik.com/api/user/mary', status=200, body=json.dumps(uwi_mary) ) <NEW_LINE> resp = client.request... | test cases for model inheritance | 62598fba656771135c4897dd |
class LimeTextExplainer(object): <NEW_LINE> <INDENT> def __init__(self, kernel_width=25, verbose=False, class_names=None, feature_selection='auto', split_expression=r'\W+', bow=True): <NEW_LINE> <INDENT> kernel = lambda d: np.sqrt(np.exp(-(d**2) / kernel_width ** 2)) <NEW_LINE> self.base = lime_base.LimeBase(kernel, ve... | Explains text classifiers.
Currently, we are using an exponential kernel on cosine distance, and
restricting explanations to words that are present in documents. | 62598fba498bea3a75a57c92 |
class Thing: <NEW_LINE> <INDENT> def draw(self, camera): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def update(self): <NEW_LINE> <INDENT> pass | Base class for all entities that may contain behavior. | 62598fbad486a94d0ba2c13d |
class ProgBar(Prog): <NEW_LINE> <INDENT> def __init__(self, iterations, track_time=True, width=30, bar_char='#', stream=2, title='', monitor=False, update_interval=None): <NEW_LINE> <INDENT> Prog.__init__(self, iterations, track_time, stream, title, monitor, update_interval) <NEW_LINE> self.bar_width = width <NEW_LINE>... | Initializes a progress bar object that allows visuzalization
of an iterational computation in the standard output screen.
Parameters
----------
iterations : `int`
Number of iterations for the iterative computation.
track_time : `bool` (default: `True`)
Prints elapsed time when loop has finished.
width : `int` ... | 62598fba627d3e7fe0e07021 |
class EnableWhenDialog(HasTraits): <NEW_LINE> <INDENT> bool_item = Bool(True) <NEW_LINE> labelled_item = Str("test") <NEW_LINE> unlabelled_item = Str("test") <NEW_LINE> traits_view = View( VGroup( Item("bool_item"), Item("labelled_item", enabled_when="bool_item"), Item( "unlabelled_item", enabled_when="bool_item", show... | Test labels for enable when. | 62598fbaa8370b77170f054e |
class MultiDataframeAnalysis(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.logger = get_logger() <NEW_LINE> return super().__init__(**kwargs) <NEW_LINE> <DEDENT> def tiingo_fred_dataframe_merge(self, tiingo_symbol_list, tiingo_start_date, tiingo_end_date, class_of_data, local_symbo... | description of class | 62598fba097d151d1a2c11a2 |
class button(object): <NEW_LINE> <INDENT> def __init__(self, text = None, x = None, y = None, w = 10, h = 10, color = None, tColor = None, fnt = None): <NEW_LINE> <INDENT> self.rect = pygame.Rect(x, y, w, h) <NEW_LINE> self.x, self.y, self.w, self.h = x, y, w, h <NEW_LINE> self.text = text <NEW_LINE> self.color = color... | Class to store and operate on button. | 62598fbaa8370b77170f054f |
class IndexConfig(object): <NEW_LINE> <INDENT> def __init__(self, ttl=1, line_config=None, key_config_list=None, all_keys_config=None): <NEW_LINE> <INDENT> if key_config_list is None: <NEW_LINE> <INDENT> key_config_list = {} <NEW_LINE> <DEDENT> self.ttl = ttl <NEW_LINE> self.all_keys_config = all_keys_config <NEW_LINE>... | The index config of a logstore
:type ttl: int
:param ttl: this parameter is deprecated, the ttl is same as logstore's ttl
:type line_config: IndexLineConfig
:param line_config: the index config of the whole log line
:type key_config_list: dict
:param key_config_list: dict (string => IndexKeyConfig), the index key co... | 62598fba5fc7496912d48333 |
class Renderer: <NEW_LINE> <INDENT> def __init__(self, map_size, fig_width=8): <NEW_LINE> <INDENT> self.fig_width = fig_width <NEW_LINE> self.map_size = map_size <NEW_LINE> scale = 1. / self.map_size <NEW_LINE> self.text_coordinates_scale_transform = np.array([ [scale[0], 0], [0, scale[1]] ]) <NEW_LINE> self.coordinate... | Notes: Tile size is always (width=1, height=1) | 62598fbaf548e778e596b715 |
class TestReplenishment(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 testReplenishment(self): <NEW_LINE> <INDENT> pass | Replenishment unit test stubs | 62598fba851cf427c66b8426 |
class DefaultNonExpiringCacheKeyTests(SimpleTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.DEFAULT_TIMEOUT = caches[DEFAULT_CACHE_ALIAS].default_timeout <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> del(self.DEFAULT_TIMEOUT) <NEW_LINE> <DEDENT> def test_default_expiration_time_fo... | Tests that verify that settings having Cache arguments with a TIMEOUT
set to `None` will create Caches that will set non-expiring keys.
This fixes ticket #22085. | 62598fbad7e4931a7ef3c206 |
class Plotter: <NEW_LINE> <INDENT> def __init__(self, n_predictions): <NEW_LINE> <INDENT> self.fig = plt.axes() <NEW_LINE> self.legend = [] <NEW_LINE> self.n_predictions = n_predictions <NEW_LINE> self.fig.set_xticks(range(1,n_predictions)) <NEW_LINE> self.TARGET_FEATURE = 0 <NEW_LINE> <DEDENT> def plot(self,y_data,nam... | Responsible for plotting data | 62598fba9c8ee8231304022c |
class RequestSensingAgent(AbstractAgent): <NEW_LINE> <INDENT> def __init__(self, horizon, inventory_size, requests, environment, num_sequences=1000, seed=1): <NEW_LINE> <INDENT> super(RequestSensingAgent, self).__init__(horizon, inventory_size, requests, environment, num_sequences, seed) <NEW_LINE> self.actions = [ act... | Agent that can manipulate edges and requests. It perceives exactly the set
of requests that are currently served in the topology. | 62598fba442bda511e95c5cc |
class MainPage(AbstractPage): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> AbstractPage.__init__(self) <NEW_LINE> <DEDENT> def process(self): <NEW_LINE> <INDENT> return render_template("main_page.html") | Main page of the site, where we can send a link | 62598fba7c178a314d78d60f |
class config(luigi.Config): <NEW_LINE> <INDENT> star = luigi.Parameter(description="Path to the STAR executable") <NEW_LINE> star_params = luigi.Parameter(description="Params for STAR") <NEW_LINE> star_load_params = luigi.Parameter(description="Params for STAR to load a genome file") <NEW_LINE> genome_dir = luigi.Param... | Initialize values from configuration file
| 62598fba10dbd63aa1c70d2a |
class UserDebugPanel(DebugPanel): <NEW_LINE> <INDENT> name = 'User' <NEW_LINE> has_content = True <NEW_LINE> def title(self): <NEW_LINE> <INDENT> return 'Users' <NEW_LINE> <DEDENT> def url(self): <NEW_LINE> <INDENT> return '' <NEW_LINE> <DEDENT> def process_request(self, request): <NEW_LINE> <INDENT> self.request = req... | A panel to show info about the current user and allow to switch user
access. | 62598fba656771135c4897de |
class TestUser(unittest.TestCase): <NEW_LINE> <INDENT> def test_City_inheritance(self): <NEW_LINE> <INDENT> new_city = City() <NEW_LINE> self.assertIsInstance(new_city, BaseModel) <NEW_LINE> <DEDENT> def test_City_attributes(self): <NEW_LINE> <INDENT> new_city = City() <NEW_LINE> self.assertTrue("state_id" in new_city.... | Testing User class | 62598fba2c8b7c6e89bd3936 |
class Column(object): <NEW_LINE> <INDENT> def __init__(self, name, ctype, nullable, primary_key, autoincrement, server_default, symbols): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> self._ctype = ctype <NEW_LINE> self._nullable = nullable <NEW_LINE> self._primary_key = primary_key <NEW_LINE> self._autoincrement = ... | Column container
Attributes:
_name (unicode):
Name
_ctype (SA type):
Column type
_nullable (bool):
Nullable?
_primary_key (bool):
Part of a primary key?
_autoincrement (bool):
Possible autoincrement?
_server_default (Default clause):
Default clause
_symbols (Symbols):
Sy... | 62598fba167d2b6e312b70e6 |
class RiscoSensor(CoordinatorEntity): <NEW_LINE> <INDENT> def __init__(self, coordinator, category_id, excludes, name, entry_id) -> None: <NEW_LINE> <INDENT> super().__init__(coordinator) <NEW_LINE> self._event = None <NEW_LINE> self._category_id = category_id <NEW_LINE> self._excludes = excludes <NEW_LINE> self._name ... | Sensor for Risco events. | 62598fbad486a94d0ba2c13f |
class NodeResize(Layer): <NEW_LINE> <INDENT> def __init__(self, index, cur_channels, start_size, tr_conv_kernel, fabric, **kwargs): <NEW_LINE> <INDENT> self.index = index <NEW_LINE> self.cur_channels = cur_channels <NEW_LINE> self.start_size = start_size <NEW_LINE> self.tr_conv_kernel = tr_conv_kernel <NEW_LINE> self.f... | Docstring for Node. | 62598fba091ae35668704d93 |
class Test_Wrappers( unittest.TestCase ): <NEW_LINE> <INDENT> def wrap_ok(self, wrapper, base): <NEW_LINE> <INDENT> print( wrapper ) <NEW_LINE> self.assertEqual( list(wrapper(iter(base))), list(base) ) <NEW_LINE> self.assertEqual( [i for i in wrapper(iter(base))], [i for i in base] ) <NEW_LINE> <DEDENT> def test_wrappe... | Test the wrapping of iterator wrappers | 62598fbaa8370b77170f0551 |
class LogBuffer(eclib.OutputBuffer): <NEW_LINE> <INDENT> RE_WARN_MSG = re.compile(r'\[err\]|\[error\]|\[warn\]') <NEW_LINE> ERROR_STYLE = eclib.OPB_STYLE_MAX + 1 <NEW_LINE> def __init__(self, parent): <NEW_LINE> <INDENT> eclib.OutputBuffer.__init__(self, parent) <NEW_LINE> self._filter = SHOW_ALL_MSG <NEW_LINE> self._s... | Buffer for displaying log messages that are sent on Editra's
log channel.
@todo: make line buffering configurable through interface | 62598fba26068e7796d4cacb |
class LinkedStorageAccountsListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[LinkedStorageAccountsResource]'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["LinkedStorageAccountsResource"]] = None, **kwargs ): <NEW_LINE> <INDENT> super(LinkedS... | The list linked storage accounts service operation response.
:ivar value: A list of linked storage accounts instances.
:vartype value: list[~azure.mgmt.loganalytics.models.LinkedStorageAccountsResource] | 62598fba236d856c2adc94f9 |
class Date(ArgTypeMixin, Enum): <NEW_LINE> <INDENT> All = 0 <NEW_LINE> Past12 = 1 <NEW_LINE> CurrentYear = 3 <NEW_LINE> LastYear = 4 | 0 = No date filter
1 = The last 12 months (eg. if today is 12 June 2016, then the range is 12 June 2015 to 12 June 2016)
2 = Not used
3 = This year (e.g. if today is between 1 January and 31 December 2016, then the year is 2016)
4 = Last year (e.g. if today is between 1 January and 31 December 2016, then last year is 2... | 62598fba3d592f4c4edbb030 |
class RefundApproved(fsm.Event): <NEW_LINE> <INDENT> description: str = settings.Description.RefundApproved | 退款审核已经通过, 等待支付平台处理退款 | 62598fba99fddb7c1ca62ea4 |
class RainCloudSwitch(RainCloudEntity, SwitchEntity): <NEW_LINE> <INDENT> def __init__(self, default_watering_timer, *args): <NEW_LINE> <INDENT> super().__init__(*args) <NEW_LINE> self._default_watering_timer = default_watering_timer <NEW_LINE> <DEDENT> @property <NEW_LINE> def is_on(self): <NEW_LINE> <INDENT> return s... | A switch implementation for raincloud device. | 62598fba91f36d47f2230f63 |
class MiningViews(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> user = UserFactory(username='bob', email='bob@bob.net') <NEW_LINE> user.set_password('password') <NEW_LINE> user.save() <NEW_LINE> <DEDENT> def test_start_mining_on_page(self): <NEW_LINE> <INDENT> self.client.post(reverse_lazy('login'... | Test mininig views. | 62598fba3346ee7daa337701 |
class n_c(Variable): <NEW_LINE> <INDENT> unit = mole | molar mass of gas in chamber | 62598fba10dbd63aa1c70d2c |
class LoadBalancerLoadBalancingRuleListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[LoadBalancingRule]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, v... | Response for ListLoadBalancingRule API service call.
Variables are only populated by the server, and will be ignored when sending a request.
:param value: A list of load balancing rules in a load balancer.
:type value: list[~azure.mgmt.network.v2020_11_01.models.LoadBalancingRule]
:ivar next_link: The URL to get the ... | 62598fba7cff6e4e811b5b94 |
class XspeedGateway(VtGateway): <NEW_LINE> <INDENT> def __init__(self, eventEngine, gatewayName='XSPEED'): <NEW_LINE> <INDENT> super(XspeedGateway, self).__init__(eventEngine, gatewayName) <NEW_LINE> self.mdApi = XspeedMdApi(self) <NEW_LINE> self.tdApi = XspeedTdApi(self) <NEW_LINE> self.mdConnected = False <NEW_LINE> ... | XSPEED接口 | 62598fbaec188e330fdf8a04 |
class Left(Cell): <NEW_LINE> <INDENT> @profile <NEW_LINE> def __init__(self, cell): <NEW_LINE> <INDENT> self.x = cell.x - 1 <NEW_LINE> self.y = cell.y | docstring for Left | 62598fbaadb09d7d5dc0a6f0 |
class PeriodicCallback(object): <NEW_LINE> <INDENT> def __init__(self, callback, callback_time, io_loop=None): <NEW_LINE> <INDENT> self.callback = callback <NEW_LINE> if callback_time <= 0: <NEW_LINE> <INDENT> raise ValueError("Periodic callback must have a positive callback_time") <NEW_LINE> <DEDENT> self.callback_tim... | Schedules the given callback to be called periodically.
The callback is called every ``callback_time`` milliseconds.
Note that the timeout is given in milliseconds, while most other
time-related functions in Tornado use seconds.
If the callback runs for longer than ``callback_time`` milliseconds,
subsequent invocatio... | 62598fba627d3e7fe0e07025 |
class Deck(SimpleDeck): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.clear() <NEW_LINE> <DEDENT> def remove(self, card): <NEW_LINE> <INDENT> if self.cardcount[card.index()] > 0: <NEW_LINE> <INDENT> self.cardcount[card.index()] -= 1 <NEW_LINE> self.cardlist.remove(card) <NEW_LINE> <DEDENT> <DEDENT> d... | A deck of cards. Holds both an ordered and unordered list. Used for decks, discard
piles, hands... 0 is the top, n is the bottom. | 62598fba091ae35668704d95 |
class BookCreateView(generics.CreateAPIView): <NEW_LINE> <INDENT> permission_classes = [permissions.IsAdminUser, permissions.IsAuthenticated] <NEW_LINE> queryset = Book.objects.all() <NEW_LINE> serializer_class = serializers.BookSerializer <NEW_LINE> def create(self, request, *args, **kwargs): <NEW_LINE> <INDENT> super... | View to add a new book.
* Requires token authentication.
* Only admin users are able to access this view. | 62598fbaa8370b77170f0552 |
@properties(action_chance=1.0) <NEW_LINE> @mod_dep(Actor) <NEW_LINE> class ActionChance(Entity): <NEW_LINE> <INDENT> pass | Actor with actions having chance of succeeding | 62598fba21bff66bcd722ddd |
class RigidBody(common.Diff): <NEW_LINE> <INDENT> __slots__=[ 'name', 'english_name', 'bone_index', 'collision_group', 'no_collision_group', 'shape_type', 'shape_size', 'shape_position', 'shape_rotation', 'param', 'mode', ] <NEW_LINE> def __init__(self, name, english_name, bone_index, collision_group, no_collision_grou... | pmx rigidbody
Attributes:
name:
english_name:
bone_index:
collision_group:
no_collision_group:
shape:
param:
mode: | 62598fba4527f215b58ea049 |
class Sampler(Slicer): <NEW_LINE> <INDENT> def __init__(self, n_samples, duration, *ops, **kwargs): <NEW_LINE> <INDENT> super(Sampler, self).__init__(*ops) <NEW_LINE> self.n_samples = n_samples <NEW_LINE> self.duration = duration <NEW_LINE> random_state = kwargs.pop('random_state', None) <NEW_LINE> if random_state is N... | Generate samples uniformly at random from a pumpp data dict.
Attributes
----------
n_samples : int or None
the number of samples to generate.
If `None`, generate indefinitely.
duration : int > 0
the duration (in frames) of each sample
random_state : None, int, or np.random.RandomState
If int, random_... | 62598fba5166f23b2e243551 |
class Documents(Base): <NEW_LINE> <INDENT> __tablename__ = 'Documents' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> handle = Column(String(256)) <NEW_LINE> document_type = Column(String(256)) <NEW_LINE> status = Column(String(256)) <NEW_LINE> summary = Column(Text) <NEW_LINE> created = Column(DateTime, ... | Requirements Documents. | 62598fba236d856c2adc94fa |
class CustomPageNumberPagination(PageNumberPagination): <NEW_LINE> <INDENT> page_size_query_param = "page_size" <NEW_LINE> max_page_size = 10000 <NEW_LINE> def get_paginated_response(self, data): <NEW_LINE> <INDENT> return Response( OrderedDict( [ ("page", self.page.number), ("total_page", self.page.paginator.num_pages... | 自定义分页格式,综合页码和url | 62598fba099cdd3c6367549c |
class PolyIon(BaseIon): <NEW_LINE> <INDENT> pass | PolyIon is the base class for electrically charged polymers. | 62598fba63d6d428bbee2924 |
class user_search_infosharing(object): <NEW_LINE> <INDENT> def __init__(self, username, searchquery, realtime): <NEW_LINE> <INDENT> self.userName = username <NEW_LINE> self.userSearchQuery = searchquery <NEW_LINE> self.isSearchRealtime = realtime <NEW_LINE> self.tweetFetchComplete = False <NEW_LINE> self.metaModelCompl... | This is the object which will be created when user first time logs in and gives first
search string for the session. This class has all necessary information needed to
execute complete functionality. Object will be put in the user_searches_ongoing dictionary
along with the username as key. So every new search retrive f... | 62598fba377c676e912f6e2a |
class TestCloc(TestCaseAnalyzer): <NEW_LINE> <INDENT> def test_initialization(self): <NEW_LINE> <INDENT> c = Cloc() <NEW_LINE> self.assertEqual(c.diff_timeout, DEFAULT_DIFF_TIMEOUT) <NEW_LINE> c = Cloc(diff_timeout=50) <NEW_LINE> self.assertEqual(c.diff_timeout, 50) <NEW_LINE> <DEDENT> def test_analyze(self): <NEW_LINE... | Cloc tests | 62598fbaf548e778e596b71a |
class MathematicalEvaluation(LogicAdapter): <NEW_LINE> <INDENT> def __init__(self, chatbot, **kwargs): <NEW_LINE> <INDENT> super().__init__(chatbot, **kwargs) <NEW_LINE> self.language = kwargs.get('language', languages.ENG) <NEW_LINE> self.cache = {} <NEW_LINE> <DEDENT> def can_process(self, statement): <NEW_LINE> <IND... | The MathematicalEvaluation logic adapter parses input to determine
whether the user is asking a question that requires math to be done.
If so, the equation is extracted from the input and returned with
the evaluated result.
For example:
User: 'What is three plus five?'
Bot: 'Three plus five equals eight'
:kwa... | 62598fba7c178a314d78d613 |
class NSNitroNserrArpDisabled(NSNitro0x300Errors): <NEW_LINE> <INDENT> pass | Nitro error code 784
IP has arp disabled. | 62598fba4c3428357761a42f |
class DiskSize(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def _posix_size(path): <NEW_LINE> <INDENT> st = os.statvfs(path) <NEW_LINE> disk_info = DiskInfo() <NEW_LINE> disk_info.free = st.f_bavail * st.f_frsize <NEW_LINE> disk_info.used = (st.f_blocks - st.f_bfree) * st.f_frsize <NEW_LINE> disk_info.total = ... | DiskSize object
| 62598fba10dbd63aa1c70d2e |
class reader(object): <NEW_LINE> <INDENT> fp = None <NEW_LINE> dialect = 'excel' <NEW_LINE> fmtparams = None <NEW_LINE> line_iterator = None <NEW_LINE> def __init__(self, csvfile, dialect='excel', **fmtparams): <NEW_LINE> <INDENT> self.fp = csvfile <NEW_LINE> self.dialect = dialect <NEW_LINE> self.fmtparams = fmtparams... | Like `csv.reader`, but yield successive pairs of:
(
<int> file position,
<list> row,
) | 62598fba3346ee7daa337702 |
class DOHolder(object): <NEW_LINE> <INDENT> def __init__(self, rawclient): <NEW_LINE> <INDENT> self.raw = rawclient <NEW_LINE> <DEDENT> def __call__(self, term): <NEW_LINE> <INDENT> return DO(self.raw, term) <NEW_LINE> <DEDENT> @property <NEW_LINE> def status(self): <NEW_LINE> <INDENT> flags = self.raw.acop(unit=2) <NE... | Holds the DOs. | 62598fba656771135c4897e2 |
class PartialView(TemplateView): <NEW_LINE> <INDENT> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> if not self.request.is_ajax(): <NEW_LINE> <INDENT> raise Http404 <NEW_LINE> <DEDENT> context = super(PartialView, self).get_context_data(**kwargs) <NEW_LINE> return context | Class for processing requests for templates from the client | 62598fba8a349b6b436863b1 |
class Persona(): <NEW_LINE> <INDENT> def __init__(self, dni, nombre, edad): <NEW_LINE> <INDENT> self.dni = dni <NEW_LINE> self.nombre = nombre <NEW_LINE> self.edad = edad <NEW_LINE> <DEDENT> @property <NEW_LINE> def dni(self): <NEW_LINE> <INDENT> return self._dni <NEW_LINE> <DEDENT> @property <NEW_LINE> def nombre(self... | A continuación creamos la clase Persona. Una persona tendrá un DNI, un nombre y una edad.
Creamos el constructor.
Crearemos también los métodos seters y getters.
Se debe definir el método __str__ para imprimir los objetos. | 62598fbad486a94d0ba2c143 |
class ModifyPasswordForm(forms.Form): <NEW_LINE> <INDENT> password = forms.CharField(required=True, min_length=5) <NEW_LINE> password_repeat = forms.CharField(required=True, min_length=5) | 修改密码 | 62598fba2c8b7c6e89bd393b |
class DocumentListView(generics.ListAPIView): <NEW_LINE> <INDENT> queryset = Document.objects.all() <NEW_LINE> serializer_class = DocumentSerializer <NEW_LINE> permission_classes = (AllowAny,) | List View for Documents | 62598fba0fa83653e46f5058 |
class PackageViewSet(ViewSet): <NEW_LINE> <INDENT> serializer_class = PackageSerializer <NEW_LINE> queryset = Package.objects.all() <NEW_LINE> renderer_class = JSONRenderer <NEW_LINE> permission_classes = (IsAuthenticated,) <NEW_LINE> def create(self, request): <NEW_LINE> <INDENT> serializer = PackageSerializer(data=re... | Package viewset. | 62598fbaa8370b77170f0554 |
class SourceCatalog3FHL(SourceCatalog): <NEW_LINE> <INDENT> name = '3fhl' <NEW_LINE> description = 'LAT third high-energy source catalog' <NEW_LINE> source_object_class = SourceCatalogObject3FHL <NEW_LINE> def __init__(self, filename='$GAMMAPY_EXTRA/datasets/catalogs/fermi/gll_psch_v11.fit.gz'): <NEW_LINE> <INDENT> fil... | Fermi-LAT 3FHL source catalog.
One source is represented by `~gammapy.catalog.SourceCatalogObject3FHL`. | 62598fbaad47b63b2c5a79c9 |
class TestMulticlass(TestCase): <NEW_LINE> <INDENT> def test_constructor(self): <NEW_LINE> <INDENT> char = Character(name='Multiclass', classes=['wizard', 'fighter'], levels=[5, 4]) <NEW_LINE> <DEDENT> def test_level(self): <NEW_LINE> <INDENT> char = Character(name='Multiclass', classes=['wizard', 'fighter'], levels=[5... | Tests for Multiclass character. | 62598fba01c39578d7f12ef0 |
@iso_register('CH-GL') <NEW_LINE> class Glarus(Switzerland): <NEW_LINE> <INDENT> include_berchtolds_day = True <NEW_LINE> include_all_saints = True <NEW_LINE> FIXED_HOLIDAYS = Switzerland.FIXED_HOLIDAYS + ( (4, 3, "Näfels Ride"), ) | Glarus (Glaris) | 62598fba26068e7796d4cacf |
class PositionViewSet(mixins.ListModelMixin, mixins.UpdateModelMixin, viewsets.GenericViewSet): <NEW_LINE> <INDENT> queryset = Position.objects.all() <NEW_LINE> serializer_class = PositionSerializer <NEW_LINE> pagination_class = DefaultPagination <NEW_LINE> filter_backends = (DjangoFilterBackend, filters.SearchFilter, ... | 仓位列表 | 62598fba5166f23b2e243553 |
class ResourceParameterWidget(FloatParameterWidget): <NEW_LINE> <INDENT> def __init__(self, parameter, parent=None): <NEW_LINE> <INDENT> super(ResourceParameterWidget, self).__init__(parameter, parent) <NEW_LINE> self.set_unit() <NEW_LINE> <DEDENT> def get_parameter(self): <NEW_LINE> <INDENT> self._parameter.value = se... | Widget class for Resource parameter. | 62598fba7047854f4633f54b |
class _RuntimeException(FSLException): <NEW_LINE> <INDENT> pass | errno (300, 400)
| 62598fba97e22403b383b07c |
class HasMemberOfType(ElementComparator): <NEW_LINE> <INDENT> def process(self, all_props, key, value, type, attribute, attribute_content): <NEW_LINE> <INDENT> errors = [] <NEW_LINE> if key == "extension": <NEW_LINE> <INDENT> value = all_props[attribute]["value"] <NEW_LINE> <DEDENT> if len(value) == 0: <NEW_LINE> <INDE... | Checks if a member of a certain ``type`` existing in the value list of attribute ``attribute``
Can be used e.g. as extension condition to allow an extension only if a certain type is member of a *GroupOfNames*
.. code-block::
<ExtensionCondition extension="GroupOfNames">
<Condition>
... | 62598fba63b5f9789fe852e4 |
class RegisterForm(Form): <NEW_LINE> <INDENT> username = TextField( 'Username', validators=[Required(REQUIRED_FIELD % 'Username'), Length(min=2, max=20, message=LENGTH_FIELD % ('Username', 20))] ) <NEW_LINE> email = TextField( 'E-mail', validators=[Required(REQUIRED_FIELD % 'E-mail'), Email('Incorrect e-mail')]) <NEW_L... | Register user form. Contains the following fields:
- username: TextField
- email: TextField
- password: PasswordField
- confirmpass: PasswordField
- submit: SubmitField | 62598fbabf627c535bcb161a |
class SlimGraphExecutor(object): <NEW_LINE> <INDENT> def __init__(self, place): <NEW_LINE> <INDENT> self.exe = executor.Executor(place) <NEW_LINE> self.place = place <NEW_LINE> <DEDENT> def run(self, graph, scope, data=None): <NEW_LINE> <INDENT> assert isinstance(graph, GraphWrapper) <NEW_LINE> feed = None <NEW_LINE> i... | Wrapper of executor used to run GraphWrapper. | 62598fbabe7bc26dc9251f17 |
@implementer(IEncodable, IRecord) <NEW_LINE> class SimpleRecord(tputil.FancyStrMixin, tputil.FancyEqMixin): <NEW_LINE> <INDENT> showAttributes = (('name', 'name', '%s'), 'ttl') <NEW_LINE> compareAttributes = ('name', 'ttl') <NEW_LINE> TYPE = None <NEW_LINE> name = None <NEW_LINE> def __init__(self, name=b'', ttl=None):... | A Resource Record which consists of a single RFC 1035 domain-name.
@type name: L{Name}
@ivar name: The name associated with this record.
@type ttl: L{int}
@ivar ttl: The maximum number of seconds which this record should be
cached. | 62598fbad7e4931a7ef3c20c |
class Atlanta(Team): <NEW_LINE> <INDENT> full_name: str = 'Atlanta Hawks' <NEW_LINE> tri_code: str = 'ATL' <NEW_LINE> team_id: str = '1610612737' <NEW_LINE> nick_name: str = 'Hawks' <NEW_LINE> url_name: str = 'hawks' | Represent `Atlanta Hawks` nba team. | 62598fbacc0a2c111447b183 |
class ProfileModelTests(TestCase): <NEW_LINE> <INDENT> def test_correct_team(self): <NEW_LINE> <INDENT> testuser = User.objects.create( username='testuser', password='password') <NEW_LINE> testuser.profile.fav_team = 'LAL' <NEW_LINE> self.assertEqual(testuser.profile.fav_team, 'LAL') <NEW_LINE> <DEDENT> def test_incorr... | Testing Profile model. | 62598fba97e22403b383b07d |
class Saver(object): <NEW_LINE> <INDENT> def __init__(self, save_prefix, num_max_keeping=1): <NEW_LINE> <INDENT> self.save_prefix = save_prefix.rstrip(".") <NEW_LINE> save_dir = os.path.dirname(self.save_prefix) <NEW_LINE> if not os.path.exists(save_dir): <NEW_LINE> <INDENT> os.mkdir(save_dir) <NEW_LINE> <DEDENT> self.... | Saver to save and restore objects.
Saver only accept objects which contain two method: ```state_dict``` and ```load_state_dict``` | 62598fba009cb60464d0169a |
class Log(Logn): <NEW_LINE> <INDENT> def __init__(self, dist): <NEW_LINE> <INDENT> super(Log, self).__init__(dist=dist, base=numpy.e) <NEW_LINE> self._repr_args = [dist] | Logarithm with base Euler's constant.
Args:
dist (Distribution):
Distribution to perform transformation on.
Example:
>>> distribution = chaospy.Log(chaospy.Uniform(1, 2))
>>> distribution
Log(Uniform(lower=1, upper=2)) | 62598fbaaad79263cf42e94b |
class ProjectorVersionTests(TestCase): <NEW_LINE> <INDENT> def test_version(self): <NEW_LINE> <INDENT> self.assertTrue(isinstance(projector.__version__, str)) <NEW_LINE> self.assertTrue(isinstance(projector.VERSION, tuple)) <NEW_LINE> VERSION_LENGTH = len(projector.VERSION) <NEW_LINE> self.assertTrue(3 <= VERSION_LENGT... | Checks if ``__version__`` and ``VERSION`` attributes
are set correctly in main module. | 62598fba7d43ff24874274bf |
class Pdpt(MMUTable): <NEW_LINE> <INDENT> addr_shift = 30 <NEW_LINE> addr_mask = 0x7FFFFFFFFFFFF000 <NEW_LINE> type_code = 'Q' <NEW_LINE> num_entries = 512 <NEW_LINE> supported_flags = INT_FLAGS | Page directory pointer table for IA-32e | 62598fba627d3e7fe0e07029 |
class TupleOfGenerators(ArbitraryInterface): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def arbitrary(cls): <NEW_LINE> <INDENT> return tuple([ arbitrary(generator) for generator in generators if generator is not tuple ]) | A closure class around the generators specified above, which
generates a tuple of the generators. | 62598fba60cbc95b063644b5 |
class GrrApplicationLogger(object): <NEW_LINE> <INDENT> def WriteFrontendLogEntry(self, event_id, request, response): <NEW_LINE> <INDENT> log_msg = "%s-%s %d: %s %s %s %d %s" % (event_id, request.source_ip, response.code, request.method, request.url, request.user_agent, response.size, request.user) <NEW_LINE> logging.i... | The GRR application logger.
These records are used for machine readable authentication logging of security
critical events. | 62598fba97e22403b383b07e |
class NdarrayParam(Parameter): <NEW_LINE> <INDENT> equatable = True <NEW_LINE> def __init__(self, name, default=Unconfigurable, shape=None, optional=False, readonly=None): <NEW_LINE> <INDENT> if shape is not None: <NEW_LINE> <INDENT> assert shape.count('...') <= 1, ( "Cannot have more than one ellipsis") <NEW_LINE> <DE... | A parameter where the value is a NumPy ndarray.
If the passed value is an ndarray, a view onto that array is stored.
If the passed value is not an ndarray, it will be cast to an ndarray
of float64s and stored. | 62598fba4527f215b58ea04d |
class FrameType(Enum): <NEW_LINE> <INDENT> DATA = "data" <NEW_LINE> START = "start" <NEW_LINE> STOP = "stop" | Enum defining the message frame types | 62598fba99fddb7c1ca62ea7 |
class Punctuation(Tokenize): <NEW_LINE> <INDENT> punclist = [] <NEW_LINE> xlist = [" ", ""] <NEW_LINE> getstring = "" <NEW_LINE> def __init__(self, text): <NEW_LINE> <INDENT> Tokenize.__init__(self, text) <NEW_LINE> <DEDENT> def load(self): <NEW_LINE> <INDENT> self.getstring = Tokenize.load(self) <NEW_LINE> self.puncli... | делает токенизацию по символам | 62598fba91f36d47f2230f66 |
class TestSearchTMRequestDto(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 testSearchTMRequestDto(self): <NEW_LINE> <INDENT> pass | SearchTMRequestDto unit test stubs | 62598fba377c676e912f6e2c |
class BandwidthMeasuringProtocol(policies.ProtocolWrapper): <NEW_LINE> <INDENT> def write(self, data): <NEW_LINE> <INDENT> self.factory.registerWritten(len(data)) <NEW_LINE> policies.ProtocolWrapper.write(self, data) <NEW_LINE> <DEDENT> def writeSequence(self, seq): <NEW_LINE> <INDENT> self.factory.registerWritten(sum(... | Wraps a Protocol and sends bandwidth stats to a BandwidthMeasuringFactory. | 62598fba63b5f9789fe852e6 |
class ParameterInversionManager(MethodManager): <NEW_LINE> <INDENT> def __init__(self, funct=None, fop=None, **kwargs): <NEW_LINE> <INDENT> if fop is not None: <NEW_LINE> <INDENT> if not isinstance(fop, pg.frameworks.ParameterModelling): <NEW_LINE> <INDENT> pg.critical("We need a fop if type ", pg.frameworks.ParameterM... | Framework to invert unconstrained parameters. | 62598fbad7e4931a7ef3c20e |
class StorageFolderLocation(object): <NEW_LINE> <INDENT> swagger_types = { 'storage': 'str', 'folder_path': 'str' } <NEW_LINE> attribute_map = { 'storage': 'storage', 'folder_path': 'folderPath' } <NEW_LINE> def __init__(self, storage: str = None, folder_path: str = None): <NEW_LINE> <INDENT> self._storage = None <NEW_... | A storage folder location information
| 62598fba7c178a314d78d617 |
class GitProfile(Resource): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> github_username, bitbucket_username = self.get_usernames() <NEW_LINE> if (github_username == None) or (bitbucket_username == None): <NEW_LINE> <INDENT> return { 'message': 'A merged user profile could not be returned. Please provide a gi... | Return a merged git profile for a user.
Given a valid BitBucket and a valid GitHub usernames, the class will return a merged profile
of the user in JSON format. | 62598fba56ac1b37e6302365 |
class ExceptionLogger(object): <NEW_LINE> <INDENT> def __init__(self, logger, warn=None): <NEW_LINE> <INDENT> self.logger = logger <NEW_LINE> self.warn = warn <NEW_LINE> self.exception = None <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def __exit__(self, type_, value, tr... | Context that intercepts and logs exceptions.
Usage::
LOG = logging.getLogger(__name__)
...
def foobar():
with ExceptionLogger(LOG, "foobar warning") as e:
return house_of_raising_exception()
if e.exception:
raise e.exception # remove if not required | 62598fba56b00c62f0fb2a33 |
class PathModification(object): <NEW_LINE> <INDENT> FILENAME = 1 <NEW_LINE> EXTENSION = 2 <NEW_LINE> def __init__(self, path=None, range=None): <NEW_LINE> <INDENT> self.path = path <NEW_LINE> if range is not None and range in [PathModification.FILENAME, PathModification.EXTENSION, PathModification.BASENAME]: <NEW_LINE>... | Modifier une partie du nom de fichier
@author: Julien | 62598fba10dbd63aa1c70d32 |
class ForumPortlet(AbstractPortlet): <NEW_LINE> <INDENT> def _query(self): <NEW_LINE> <INDENT> searcher = getAdapter(self.context, ICatalogSearch) <NEW_LINE> path = { 'query':model_path(self.context), } <NEW_LINE> total, docids, resolver = searcher( path=path, sort_index='modified_date', interfaces=[IForumTopic], rever... | Adapter for showing file entry data in views | 62598fba9f28863672818937 |
class Env(object): <NEW_LINE> <INDENT> def __new__(cls, *args, **kwargs): <NEW_LINE> <INDENT> env = super(Env, cls).__new__(cls) <NEW_LINE> env._env_closer_id = env_closer.register(env) <NEW_LINE> env._closed = False <NEW_LINE> env.spec = None <NEW_LINE> return env <NEW_LINE> <DEDENT> metadata = {'render.modes': []} <N... | The main OpenAI Gym class. It encapsulates an environment with
arbitrary behind-the-scenes dynamics. An environment can be
partially or fully observed.
The main API methods that users of this class need to know are:
reset
step
render
close
When implementing an environment, override the following meth... | 62598fba7cff6e4e811b5b9a |
class Address(object): <NEW_LINE> <INDENT> def __init__(self, address=None, pubkey=None, prefix="STM"): <NEW_LINE> <INDENT> self.prefix = prefix <NEW_LINE> if pubkey is not None: <NEW_LINE> <INDENT> self._pubkey = Base58(pubkey, prefix=prefix) <NEW_LINE> self._address = None <NEW_LINE> <DEDENT> elif address is not None... | Address class
This class serves as an address representation for Public Keys.
:param str address: Base58 encoded address (defaults to ``None``)
:param str pubkey: Base58 encoded pubkey (defaults to ``None``)
:param str prefix: Network prefix (defaults to ``GPH``)
Example::
Address("GPHFN9r6VYzBK8EKtMewfNbfiGCr56... | 62598fbae5267d203ee6ba79 |
class OsidOperableForm(OsidForm): <NEW_LINE> <INDENT> def get_enabled_metadata(self): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> enabled_metadata = property(fget=get_enabled_metadata) <NEW_LINE> def set_enabled(self, enabled): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def clear_enabled(self): <NEW_LINE> <INDENT>... | This form is used to create and update operables. | 62598fba0fa83653e46f505c |
class MSTRConstant: <NEW_LINE> <INDENT> _value = None <NEW_LINE> _dataType = None <NEW_LINE> def __init__(self, rootObj, dataType=None): <NEW_LINE> <INDENT> self._value = rootObj <NEW_LINE> self._dataType = self._detectdatatype(dataType) <NEW_LINE> <DEDENT> def _detectdatatype(self, dataType=None): <NEW_LINE> <INDENT> ... | Represents a constant in MSTR
The available typer are: Date, Time, TimeStamp, Real, Char | 62598fba091ae35668704d9b |
class RequestTooLongError(Fault): <NEW_LINE> <INDENT> def __init__(self, faultstring): <NEW_LINE> <INDENT> Fault.__init__(self, 'Client.RequestTooLong', faultstring) | Raised when the request is too long. | 62598fbaa219f33f346c697f |
class _Api(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def query(client, endpoint, **kwargs): <NEW_LINE> <INDENT> return client.post(endpoint=endpoint, **kwargs).json().get('data') <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def tables_and_columns(client, endpoint, **kwargs): <NEW_LINE> <INDENT> return clien... | For testing convenience | 62598fba796e427e5384e90f |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.