code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class LatticeError(Exception): <NEW_LINE> <INDENT> pass | Exception for impossible lattice parameters.
| 625990643617ad0b5ee0787c |
class GlobalRecoveryEvent(Event): <NEW_LINE> <INDENT> def __init__(self, message, refs, add_to_ceph_s, start_epoch, active_clean_num): <NEW_LINE> <INDENT> super().__init__(str(uuid.uuid4()), message, refs, add_to_ceph_s) <NEW_LINE> self._add_to_ceph_s = add_to_ceph_s <NEW_LINE> self._progress = 0.0 <NEW_LINE> self._sta... | An event whoese completion is determined by active+clean/total_pg_num | 625990647cff6e4e811b7173 |
class TestNsxLibIPSet(nsxlib_testcase.NsxClientTestCase): <NEW_LINE> <INDENT> def test_get_ipset_reference(self): <NEW_LINE> <INDENT> mock_ip_set = uuidutils.generate_uuid() <NEW_LINE> result = self.nsxlib.ip_set.get_ipset_reference( mock_ip_set) <NEW_LINE> expected = { 'target_id': mock_ip_set, 'target_type': const.IP... | Tests for vmware_nsxlib.v3.security.NsxLibIPSet | 625990648a43f66fc4bf38bc |
class Dīc(MuxCommand): <NEW_LINE> <INDENT> key = "dīc" <NEW_LINE> aliases = ['dic'] <NEW_LINE> locks = "cmd:all()" <NEW_LINE> help_category = "Iussa Latīna" <NEW_LINE> auto_help = True <NEW_LINE> def func(self): <NEW_LINE> <INDENT> caller = self.caller <NEW_LINE> if not self.args: <NEW_LINE> <INDENT> caller.msg("Quid d... | Speak as your character
Usage:
dīc <message>
Talk to those in your current location | 625990648e71fb1e983bd1f2 |
class SummaryAutosave(GetEventMixinWithAccessCheck, View): <NEW_LINE> <INDENT> def post(self, request, **kwargs): <NEW_LINE> <INDENT> if 'id' in request.POST: <NEW_LINE> <INDENT> return self.do_update(request) <NEW_LINE> <DEDENT> return self.do_create(request) <NEW_LINE> <DEDENT> def do_create(self, request): <NEW_LINE... | автосохранение черновика конспекта | 625990648e7ae83300eea7bb |
class LO(rdfSubject): <NEW_LINE> <INDENT> rdf_type = lom.LearningObject <NEW_LINE> title = rdfSingle(dcterms.title) <NEW_LINE> identifier = rdfSingle(dcterms.identifier) <NEW_LINE> description = rdfSingle(dcterms.description) <NEW_LINE> subject = rdfMultiple(dcterms.subject) | Representacao de Objeto de Aprendizagem | 625990640a50d4780f706956 |
class BankMixin(ProviderMixin): <NEW_LINE> <INDENT> @property <NEW_LINE> def processor_token_id(self): <NEW_LINE> <INDENT> return get_broker().processor_backend.token_id <NEW_LINE> <DEDENT> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super(BankMixin, self).get_context_data(**kwargs) <NEW_LINE> c... | Adds bank information to the context. | 625990644e4d562566373b34 |
class SiteDaoRedis(SiteDaoBase, RedisDaoBase): <NEW_LINE> <INDENT> def insert(self, site: Site, **kwargs): <NEW_LINE> <INDENT> hash_key = self.key_schema.site_hash_key(site.id) <NEW_LINE> site_ids_key = self.key_schema.site_ids_key() <NEW_LINE> client = kwargs.get('pipeline', self.redis) <NEW_LINE> client.hset(hash_key... | SiteDaoRedis persists Site models to Redis.
This class allows persisting (and querying for) Sites in Redis. | 62599064cb5e8a47e493cd1b |
class TestPath(modulespecific.ModuleSpecificTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.basic_repo = self.test_module.BasicRepository() <NEW_LINE> self.repo = self.basic_repo.repo() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> self.basic_repo.teardown() | Test the Path interface. | 6259906467a9b606de547639 |
class PluginDiscoveryJSONFile(PanoptesDiscoveryPlugin): <NEW_LINE> <INDENT> def run(self, context): <NEW_LINE> <INDENT> assert context and isinstance(context, PanoptesPluginContext), 'context must be a PanoptesPluginContext' <NEW_LINE> conf = context.config <NEW_LINE> logger = context.logger <NEW_LINE> config_file = No... | Standalone discovery plugin to populate PanoptesResources from a JSON file. | 625990646e29344779b01d7d |
class TempleDetailParser(html.parser.HTMLParser): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> html.parser.HTMLParser.__init__(self) <NEW_LINE> self.data = [] <NEW_LINE> self.pictureLink = ' ' <NEW_LINE> <DEDENT> def handle_data(self, data): <NEW_LINE> <INDENT> self.data.append(data) <NEW_LINE> <DEDENT> ... | Returns a list of all data collected when called. | 62599064460517430c432beb |
class Window(Gtk.Window): <NEW_LINE> <INDENT> __gtype_name__ = "Window" <NEW_LINE> def __new__(cls): <NEW_LINE> <INDENT> builder = get_builder('CatfishWindow') <NEW_LINE> new_object = builder.get_object("catfish_window") <NEW_LINE> new_object.finish_initializing(builder) <NEW_LINE> return new_object <NEW_LINE> <DEDENT>... | This class is meant to be subclassed by CatfishWindow. It provides
common functions and some boilerplate. | 625990641f5feb6acb164319 |
class Entity(object): <NEW_LINE> <INDENT> def __init__(self, classes=None, applications=None, parameters=None, uri=None, name=None): <NEW_LINE> <INDENT> if classes is None: classes = Classes() <NEW_LINE> self._set_classes(classes) <NEW_LINE> if applications is None: applications = Applications() <NEW_LINE> self._set_ap... | A collection of Classes, Parameters, and Applications, mainly as a wrapper
for merging. The name and uri of an Entity will be updated to the name and
uri of the Entity that is being merged. | 6259906444b2445a339b74f7 |
class ConnectToken(Resource): <NEW_LINE> <INDENT> keys = ['token', 'email', 'created', 'used', 'expires', 'callback_url', 'first_name', 'last_name', 'account'] <NEW_LINE> def __init__(self, parent, defn): <NEW_LINE> <INDENT> super(ConnectToken, self).__init__( parent, 'connect_tokens/{token}', defn ) <NEW_LINE> if 'acc... | Class to represent the connect_token resource.
Properties:
token: string - Id of the connect_token
email: string - email address specified on token creation
created: integer - Unix timestamp of the connect_token was created
used: integer - Unix time this token was been used. 0 means it no
acco... | 62599064435de62698e9d537 |
class GtmMonitorSmtp(GtmMonitorSmtpSchema): <NEW_LINE> <INDENT> cli_command = "/mgmt/tm/gtm/monitor/smtp" <NEW_LINE> def rest(self): <NEW_LINE> <INDENT> response = self.device.get(self.cli_command) <NEW_LINE> response_json = response.json() <NEW_LINE> if not response_json: <NEW_LINE> <INDENT> return {} <NEW_LINE> <DEDE... | To F5 resource for /mgmt/tm/gtm/monitor/smtp
| 6259906429b78933be26ac5b |
class FibreChannelTestCase(DriverTestCase): <NEW_LINE> <INDENT> driver_name = "cinder.volume.driver.FibreChannelDriver" <NEW_LINE> def test_initialize_connection(self): <NEW_LINE> <INDENT> self.driver = driver.FibreChannelDriver() <NEW_LINE> self.driver.do_setup(None) <NEW_LINE> self.assertRaises(NotImplementedError, s... | Test Case for FibreChannelDriver | 625990642ae34c7f260ac816 |
class CourseAccessRedirect(Redirect): <NEW_LINE> <INDENT> pass | Redirect raised when user does not have access to a course. | 625990643617ad0b5ee0787e |
class Bitbar(Configuration): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Bitbar, self).__init__() | Bitbar is a class which represents an instance of Bitbar.
In a distinction from BitbarProject, methods implemented in
Bitbar can be called without requiring a project id. | 6259906445492302aabfdc0a |
class FakeSession(object): <NEW_LINE> <INDENT> def __init__(self, md5_error=False, connection_error=False): <NEW_LINE> <INDENT> self.s3 = {} <NEW_LINE> self.service = FakeService(self) <NEW_LINE> self.md5_error = md5_error <NEW_LINE> self.connection_error = connection_error <NEW_LINE> <DEDENT> def get_config(self): <NE... | This class drives the operations for the unit tests for the plugin by
providing an emulation of botocore's session module. It is by no
means a complete emulation of the session module. The class also
keeps track of dictionary that tracks an emulated state of s3.
This feature allows the unit tests to preform commands ... | 625990647cff6e4e811b7175 |
class Compartment: <NEW_LINE> <INDENT> def __init__(self, index: float, volume: float, in_func, out_func) -> None: <NEW_LINE> <INDENT> self.input_funcs = [in_func] if in_func is not None else [] <NEW_LINE> self.output_funcs = [out_func] if out_func is not None else [] <NEW_LINE> self.index = index <NEW_LINE> self.volum... | Class to represent a pharmacological compartment, to be used in generating
a graph of compartments in the PKModel class. Functionality is to sum
up the appropriate partial differential equation for this compartment.
Fields:
- index: Index of this Compartment within the PKModel
- volume: Vo... | 6259906416aa5153ce401c0b |
class ProjectSearchViaDatabase(object): <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> self._database = Database(config) <NEW_LINE> <DEDENT> def set_config(self, config): <NEW_LINE> <INDENT> self._database.set_config(config) <NEW_LINE> <DEDENT> def set_alternate_connection(self, conn): <NEW_LINE> <... | Searches for Projects via Database
| 62599064f7d966606f749451 |
class Environment(object): <NEW_LINE> <INDENT> def __init__(self, name="environment"): <NEW_LINE> <INDENT> self.__name = name <NEW_LINE> self.theta_t = 0. <NEW_LINE> self.phi_t = 0. <NEW_LINE> <DEDENT> def __call__(self, theta=None, phi=None, *args, **kwargs): <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> @proper... | Basic environment class. More specific classes can inherit from this class to let agents sense light. | 625990641b99ca40022900cd |
class GetResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_NewAccessToken(self): <NEW_LINE> <INDENT> return self._output.get('NewAccessToken', None) <NEW_LINE> <DEDENT> def get_Response(self): <NEW_LINE> <INDENT> return sel... | A ResultSet with methods tailored to the values returned by the Get Choreo.
The ResultSet object is used to retrieve the results of a Choreo execution. | 6259906463d6d428bbee3e20 |
class PublicUserApiTests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.client = APIClient() <NEW_LINE> <DEDENT> def test_create_valid_user_success(self): <NEW_LINE> <INDENT> payload = { 'email': 'test@test.com', 'password': 'testpass', 'name': 'Test Name' } <NEW_LINE> res = self.client.post(C... | Test the users API(public) | 625990644428ac0f6e659c61 |
class ProgressBarDrawer: <NEW_LINE> <INDENT> def __init__(self, progress_image): <NEW_LINE> <INDENT> self._progress_image = progress_image <NEW_LINE> <DEDENT> def draw(self, surface, rect, percentage): <NEW_LINE> <INDENT> crop_rect = self._progress_image.get_rect() <NEW_LINE> crop_rect.width = crop_rect.width * percent... | Progress bar drawer | 625990643d592f4c4edbc60c |
class HTTPProxy( Entity, EntityCreateMixin, EntityDeleteMixin, EntityReadMixin, EntitySearchMixin, EntityUpdateMixin, ): <NEW_LINE> <INDENT> def __init__(self, server_config=None, **kwargs): <NEW_LINE> <INDENT> self._fields = { 'name': entity_fields.StringField( required=True, str_type='alpha', length=(6, 12), unique=T... | A representation of a HTTP Proxy entity. | 625990640a50d4780f706957 |
class TableType(enum.Enum): <NEW_LINE> <INDENT> NEUTRON_CONTINUOUS = 'c' <NEW_LINE> NEUTRON_DISCRETE = 'd' <NEW_LINE> THERMAL_SCATTERING = 't' <NEW_LINE> DOSIMETRY = 'y' <NEW_LINE> PHOTOATOMIC = 'p' <NEW_LINE> PHOTONUCLEAR = 'u' <NEW_LINE> PROTON = 'h' <NEW_LINE> DEUTERON = 'o' <NEW_LINE> TRITON = 'r' <NEW_LINE> HELIUM... | Type of ACE data table. | 625990644e4d562566373b36 |
class ActionCurves(object): <NEW_LINE> <INDENT> def __init__(self, curves=None): <NEW_LINE> <INDENT> super(ActionCurves, self).__init__() <NEW_LINE> if not curves: <NEW_LINE> <INDENT> curves = cmds.keyframe(q=True, selected=True, name=True) <NEW_LINE> <DEDENT> self.curves = curves <NEW_LINE> <DEDENT> def __iter__(self)... | docstring for ActionCurves | 625990644f88993c371f10b6 |
class Enclosure(object): <NEW_LINE> <INDENT> def __init__(self, headers=()): <NEW_LINE> <INDENT> self.headers = Headers(headers) <NEW_LINE> self.content = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def sender(self): <NEW_LINE> <INDENT> return self.headers.sender <NEW_LINE> <DEDENT> @property <NEW_LINE> def receivers... | Base class for Enclosure objects to inherit from.
An enclosure can be sent on it's own or wrapped
inside an Envelope object.
:param headers: Iterable of headers to include. | 62599064f548e778e596ccb9 |
class NoEnvironmentError(Exception): <NEW_LINE> <INDENT> pass | exception raised when no environment is matched | 62599064e76e3b2f99fda12f |
@Operations.register_operation("create_unique_constraint") <NEW_LINE> @BatchOperations.register_operation( "create_unique_constraint", "batch_create_unique_constraint" ) <NEW_LINE> @AddConstraintOp.register_add_constraint("unique_constraint") <NEW_LINE> class CreateUniqueConstraintOp(AddConstraintOp): <NEW_LINE> <INDEN... | Represent a create unique constraint operation. | 6259906491af0d3eaad3b558 |
@provider(IFormFieldProvider) <NEW_LINE> class IMaybeMustRead(model.Schema): <NEW_LINE> <INDENT> must_read = schema.Bool( title=_( u'label_must_read_authenticated', default=u'All users must read this' ), required=False, default=False, ) | Choice whether this object MUST be read.
Only makes sense in combination with a read tracking behavior. | 62599064baa26c4b54d509d4 |
class InvalidFilePathException(OrigamiException): <NEW_LINE> <INDENT> STATUS_CODE = 502 | File not found for the path provided | 62599064be8e80087fbc07b8 |
class HypernetApiService(WsgiService): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def create(cls, app_name='hypernet'): <NEW_LINE> <INDENT> cfg.CONF.log_opt_values(LOG, std_logging.DEBUG) <NEW_LINE> service = cls(app_name) <NEW_LINE> return service | Class for hypernet-api service. | 6259906499cbb53fe6832614 |
class InternetExplorerRedirectMiddleware: <NEW_LINE> <INDENT> def _parse_major_ie_version_from_user_agent(self, user_agent): <NEW_LINE> <INDENT> search_result = _ie_version_regex.search(user_agent) <NEW_LINE> if search_result: <NEW_LINE> <INDENT> return int(search_result.groups()[0]) <NEW_LINE> <DEDENT> else: <NEW_LINE... | Sets `from_ie` and `ie_version` on the request. If the `ie_version` is
less than `settings.IE_VERSION_MINIMUM` the response redirects to
`settings.IE_VERSION_UNSUPPORTED_REDIRECT_PATH` | 62599064fff4ab517ebcef51 |
class NotificationList(ListResource): <NEW_LINE> <INDENT> def __init__(self, version, service_sid): <NEW_LINE> <INDENT> super(NotificationList, self).__init__(version) <NEW_LINE> self._solution = {'service_sid': service_sid, } <NEW_LINE> self._uri = '/Services/{service_sid}/Notifications'.format(**self._solution) <NEW_... | PLEASE NOTE that this class contains beta products that are subject to
change. Use them with caution. | 62599064f548e778e596ccba |
class Mint(AptGetInstall, rosdep.base_rosdep.RosdepBaseOS): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.mint_detector = roslib.os_detect.Mint() <NEW_LINE> self.version_map = {'9':'10.04', '8':'9.10', '7':'9.04', '6':'8.10', '5':'8.04'} <NEW_LINE> <DEDENT> def get_version(self): <NEW_LINE> <INDENT> ... | This is an implementation of a standard interface for
interacting with rosdep. Mint is closely coupled to Ubuntu, it
will masquerade as ubuntu for the purposes of rosdep. | 625990640c0af96317c578f7 |
class CollDeexcRateCoeff(ProcessingPlasmaProperty): <NEW_LINE> <INDENT> outputs = ("coll_deexc_coeff",) <NEW_LINE> latex_name = ("c_{ul}",) <NEW_LINE> def calculate(self, thermal_lte_level_boltzmann_factor, coll_exc_coeff): <NEW_LINE> <INDENT> level_lower_index = coll_exc_coeff.index.droplevel("level_number_upper") <NE... | Attributes
----------
coll_deexc_coeff : pandas.DataFrame, dtype float
Rate coefficient for collisional deexcitation. | 6259906432920d7e50bc7777 |
class Bucket(Object): <NEW_LINE> <INDENT> def __init__( self, id=None, name=None, status=None, user=None, created=None, storage=None, transfer=None, pubkeys=None, publicPermissions=None, encryptionKey=None, index=None ): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.name = name <NEW_LINE> self.status = status <NEW_L... | Storage bucket.
A bucket is a logical grouping of files
which the user can assign permissions and limits to.
Attributes:
id (str): unique identifier.
name (str): name.
status (str): bucket status (Active, ...).
user (str): user email address.
created (:py:class:`datetime.datetime`): time when the bu... | 625990643eb6a72ae038bd90 |
class Map(object): <NEW_LINE> <INDENT> n = None <NEW_LINE> m = None <NEW_LINE> units = {} <NEW_LINE> maze = None <NEW_LINE> def __init__(self, n, m): <NEW_LINE> <INDENT> self.n, self.m = n, m <NEW_LINE> self.maze = [['_'] * m for i in range(n)] | General visible map | 625990647047854f46340ae5 |
class FilesHandler(OutputHandler): <NEW_LINE> <INDENT> def __init__(self, gc, blobs_root): <NEW_LINE> <INDENT> OutputHandler.__init__(self) <NEW_LINE> self.gc = gc <NEW_LINE> self.blobs_root = blobs_root <NEW_LINE> self.message = _("Finding blobs ... {et} {ed}") <NEW_LINE> <DEDENT> def outputStat(self, h): <NEW_LINE> <... | OutputHandler for p4 files; prevents memory overrun of stat data. | 625990642c8b7c6e89bd4f21 |
class _BottleNeckLayer(nn.Module): <NEW_LINE> <INDENT> def __init__( self, num_intput_features: int, growth_rate: int, bn_size: int, drop_rate: float, memory_efficient: bool = False ) -> None: <NEW_LINE> <INDENT> super(_BottleNeckLayer, self).__init__() <NEW_LINE> self.norm1: nn.BatchNorm2d <NEW_LINE> self.add_module('... | Architecture: BN-ReLU-Conv(1x1)-BN-ReLU-Conv(3x3) of H_l layer
Let each 1x1 convolution produce 4*growth_rate feature-maps. | 62599064ac7a0e7691f73c16 |
class Groups(BaseDictObject): <NEW_LINE> <INDENT> changeNotificationName = "Groups.Changed" <NEW_LINE> beginUndoNotificationName = "Groups.BeginUndo" <NEW_LINE> endUndoNotificationName = "Groups.EndUndo" <NEW_LINE> beginRedoNotificationName = "Groups.BeginRedo" <NEW_LINE> endRedoNotificationName = "Groups.EndRedo" <NEW... | This object contains all of the groups in a font.
**This object posts the following notifications:**
- Groups.Changed
- Groups.BeginUndo
- Groups.EndUndo
- Groups.BeginRedo
- Groups.EndRedo
- Groups.GroupSet
- Groups.GroupDeleted
- Groups.Cleared
- Groups.Updated
This object behaves like a dict. The keys are group n... | 6259906445492302aabfdc0d |
class TestRender: <NEW_LINE> <INDENT> def test(self): <NEW_LINE> <INDENT> class TestTable(tables.MemoryTable): <NEW_LINE> <INDENT> public_name = tables.Column(model_rel='private_name') <NEW_LINE> def render_public_name(self, data): <NEW_LINE> <INDENT> return "%s:%s" % (data['private_name'], data['additional']) <NEW_LIN... | Test use of the render_* methods.
| 625990644a966d76dd5f0627 |
class SemesterCreateView(BSModalCreateView): <NEW_LINE> <INDENT> template_name = "semester/create.html" <NEW_LINE> form_class = TermModelForm <NEW_LINE> success_message = 'Success: Semester was added.' <NEW_LINE> def get_success_url(self): <NEW_LINE> <INDENT> return reverse_lazy('school:manage_semester', kwargs={'schoo... | module doc | 625990644e4d562566373b39 |
@dataclasses.dataclass <NEW_LINE> class CreatorsConverter(sourdough.Converter): <NEW_LINE> <INDENT> base: str = 'creator' <NEW_LINE> parameters: Dict[str, Any] = dataclasses.field(default_factory = dict) <NEW_LINE> alternatives: Tuple[Type] = None <NEW_LINE> def validate(self, item: Any, instance: object) -> object: <N... | Type converter for Creators.
Args:
base (str):
parameters (Dict[str, Any]):
alternatives (Tuple[Type])
| 625990641f5feb6acb16431d |
class InlineSearchInput(ForeignKeyRawIdWidget): <NEW_LINE> <INDENT> widget_template = None <NEW_LINE> search_path = '../foreignkey_autocomplete/' <NEW_LINE> admin_site = site <NEW_LINE> class Media: <NEW_LINE> <INDENT> css = { 'all': ('autocomplete/css/jquery.autocomplete.css',) } <NEW_LINE> js = ( 'autocomplete/js/jqu... | A Widget for displaying ForeignKeys in an autocomplete search input
instead in a <select> box. | 62599064d7e4931a7ef3d71e |
class Reuss(AveragingScheme): <NEW_LINE> <INDENT> def average_bulk_moduli(self, volumes, bulk_moduli, shear_moduli): <NEW_LINE> <INDENT> return reuss_average_function(volumes, bulk_moduli) <NEW_LINE> <DEDENT> def average_shear_moduli(self, volumes, bulk_moduli, shear_moduli): <NEW_LINE> <INDENT> return reuss_average_fu... | Class for computing the Reuss (iso-stress) bound for elastic properties.
This derives from :class:`burnman.averaging_schemes.averaging_scheme`, and implements
the :func:`burnman.averaging_schemes.averaging_scheme.average_bulk_moduli` and
:func:`burnman.averaging_schemes.averaging_scheme.average_shear_moduli` functions. | 62599064a8ecb0332587294a |
class GridBuilder: <NEW_LINE> <INDENT> def __init__(self, parameters: Dict[Any, Any]): <NEW_LINE> <INDENT> if parameters is None or not isinstance(parameters, dict) or len(parameters) == 0: <NEW_LINE> <INDENT> raise ValueError("Parameters should be a valid non-empty dict") <NEW_LINE> <DEDENT> self.__parameters = parame... | GridBuilder class provides utilities for building grid of all possible params, in a form suitable for hyperparameters search | 62599064be8e80087fbc07ba |
class AggregatedRunsByState(Model): <NEW_LINE> <INDENT> _attribute_map = { 'runs_count': {'key': 'runsCount', 'type': 'int'}, 'state': {'key': 'state', 'type': 'object'} } <NEW_LINE> def __init__(self, runs_count=None, state=None): <NEW_LINE> <INDENT> super(AggregatedRunsByState, self).__init__() <NEW_LINE> self.runs_c... | AggregatedRunsByState.
:param runs_count:
:type runs_count: int
:param state:
:type state: object | 6259906444b2445a339b74f9 |
class VerticalDivider(Widget): <NEW_LINE> <INDENT> __slots__ = ["_required_height"] <NEW_LINE> def __init__(self, height=Widget.FILL_COLUMN): <NEW_LINE> <INDENT> super(VerticalDivider, self).__init__(None, tab_stop=False) <NEW_LINE> self._required_height = height <NEW_LINE> <DEDENT> def process_event(self, event): <NEW... | A vertical divider for separating columns.
This widget should be put into a column of its own in the Layout. | 625990642ae34c7f260ac819 |
class bm_mt_reset_default_entry_result(object): <NEW_LINE> <INDENT> def __init__(self, ouch=None,): <NEW_LINE> <INDENT> self.ouch = ouch <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not... | Attributes:
- ouch | 625990647d43ff2487427fa9 |
class ParseWithErrorHandlingTest(unittest.TestCase): <NEW_LINE> <INDENT> def test_sanity(self): <NEW_LINE> <INDENT> database.clean() <NEW_LINE> text = "The fox is brown." <NEW_LINE> result = t.parse_with_error_handling(text) <NEW_LINE> expected_result = t.parser.raw_parse(text) <NEW_LINE> self.failUnless(result == expe... | Test the parse_with_error_handling method.
| 6259906432920d7e50bc7778 |
class NetworkManagerMethodException(NetworkManagerException): <NEW_LINE> <INDENT> pass | Required method of object does not exist exception | 62599064f548e778e596ccbc |
class FromPackageLoader: <NEW_LINE> <INDENT> pkg_name: str <NEW_LINE> search_paths: Tuple[str, ...] <NEW_LINE> def __init__(self, pkg_name: str, search_paths: Tuple[str, ...]=("", )) -> None: <NEW_LINE> <INDENT> self.pkg_name = pkg_name <NEW_LINE> self.search_paths = search_paths <NEW_LINE> <DEDENT> def __repr__(self):... | Provides a simple way of creating custom import loaders that load from packages via ``pkgutil.get_data`` instead of using `open`.
This allows them to be compatible even from within zip files.
Relative imports are handled, so you can just freely use them.
pkg_name: The name of the package. You can probably provide `__... | 625990643eb6a72ae038bd92 |
@plugins.register <NEW_LINE> class SlrEccentricityParser(SinexParser): <NEW_LINE> <INDENT> max_line_width = 100 <NEW_LINE> def setup_parser(self): <NEW_LINE> <INDENT> return (self.slr_site_id, self.slr_site_eccentricity) <NEW_LINE> <DEDENT> @property <NEW_LINE> def slr_site_id(self): <NEW_LINE> <INDENT> return SinexBlo... | A parser for reading data from ITRF files in SNX format
| 625990647d847024c075db0a |
class TestVersion(test_utils.TestCase): <NEW_LINE> <INDENT> fixtures = ['base/addon_3615'] <NEW_LINE> def test_compatible_apps(self): <NEW_LINE> <INDENT> v = Version.objects.get(pk=81551) <NEW_LINE> assert amo.FIREFOX in v.compatible_apps, "Missing Firefox >_<" <NEW_LINE> <DEDENT> def test_supported_platforms(self): <N... | Test methods of the version class. | 62599064009cb60464d02c6b |
class GradientAnisotropicDiffusion(miapy_fltr.IFilter): <NEW_LINE> <INDENT> def __init__(self, time_step: float=0.125, conductance: int=3, conductance_scaling_update_interval: int=1, no_iterations: int=5): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.time_step = time_step <NEW_LINE> self.conductance = conduct... | Represents a gradient anisotropic diffusion filter. | 62599064462c4b4f79dbd13a |
@patch("dakara_player.media_player.vlc.METADATA_KEYS_COUNT", 10) <NEW_LINE> class SetMetadataTestCase(TestCase): <NEW_LINE> <INDENT> def test_set_first(self): <NEW_LINE> <INDENT> media = MagicMock() <NEW_LINE> media.get_meta.return_value = None <NEW_LINE> set_metadata(media, {"data": "value"}) <NEW_LINE> media.set_meta... | Test the set_metadata function. | 62599064e76e3b2f99fda133 |
@register_command <NEW_LINE> class CanaryCommand(GenericCommand): <NEW_LINE> <INDENT> _cmdline_ = "canary" <NEW_LINE> _syntax_ = _cmdline_ <NEW_LINE> @only_if_gdb_running <NEW_LINE> def do_invoke(self, argv: List[str]) -> None: <NEW_LINE> <INDENT> self.dont_repeat() <NEW_LINE> has_canary = checksec(get_filepath())["Can... | Shows the canary value of the current process. | 62599064097d151d1a2c279f |
class QuantileAT(base.BaseEstimator): <NEW_LINE> <INDENT> def __init__(self, gamma=0.5, alpha=1., verbose=0, max_iter=1000, kernel_type='linear', kernel_param=1, loss_function='logistic', opt_type = 'SGD', opt_params={'learning_rate': 1e-8}, classes_=[]): <NEW_LINE> <INDENT> self.gamma = gamma <NEW_LINE> self.alpha = a... | Classifier that implements the ordinal logistic model for quantile estimation | 625990648da39b475be0491d |
@registry.expose(["Strategy", "MultiArmedBandit"]) <NEW_LINE> class MultiArmedBandit_ListISingleAssetStrategyISingleAssetStrategyIAccountIAccountFloatFloatFloatListFloatListFloat(ISingleAssetStrategy,_MultiarmedBandit2_Impl): <NEW_LINE> <INDENT> def __init__(self, strategies = None, account = None, weight = None, norma... | In some moments of time the efficiency of the strategies is evaluated
These efficiencies are mapped into weights using *weight* and *normilizer*
functions per every strategy and *corrector* for the whole collection of weights
These weights are used to choose randomly a strategy to run for the next quant of time.
All ot... | 6259906476e4537e8c3f0cb6 |
class DummyDocument(object): <NEW_LINE> <INDENT> def __init__(self, reporter): <NEW_LINE> <INDENT> self.reporter = reporter | Used where the signature requires a docutils.node.Document but only its reporter
is being used.
Up until the current Sphinx 2.3.1 calls to env.get_doctree() (which would get
us said docutils.node.Document) result in pickle.load() calls which are expensive
enough to dominate the runtime entirely when the number of endp... | 625990644e4d562566373b3b |
class GitItem(ItemModel): <NEW_LINE> <INDENT> _attribute_map = { '_links': {'key': '_links', 'type': 'ReferenceLinks'}, 'content': {'key': 'content', 'type': 'str'}, 'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'}, 'is_folder': {'key': 'isFolder', 'type': 'bool'}, 'is_sym_link': {'key': 'i... | GitItem.
:param _links:
:type _links: :class:`ReferenceLinks <git.v4_1.models.ReferenceLinks>`
:param content:
:type content: str
:param content_metadata:
:type content_metadata: :class:`FileContentMetadata <git.v4_1.models.FileContentMetadata>`
:param is_folder:
:type is_folder: bool
:param is_sym_link:
:type is_sym_... | 62599064dd821e528d6da51b |
class TopicStoriesFeed(StoriesFeed): <NEW_LINE> <INDENT> def get_object(self, request, slug): <NEW_LINE> <INDENT> return get_object_or_404(Category, categorytranslation__slug=slug) <NEW_LINE> <DEDENT> def title(self, obj): <NEW_LINE> <INDENT> return "%s %s %s" % (settings.STORYBASE_SITE_NAME, obj.name, _("Stories")) <N... | Generates a feed of the 25 most recently published stories in a particular
topic
The topic is passed to the feed via a ``slug`` keyword argument in the URL
configuration for the feed. | 625990643539df3088ecd9d2 |
class xi2P(mcfit): <NEW_LINE> <INDENT> def __init__(self, r, l=0, deriv=0, q=1.5, **kwargs): <NEW_LINE> <INDENT> self.l = l <NEW_LINE> MK = kernels.Mellin_SphericalBesselJ(l, deriv) <NEW_LINE> mcfit.__init__(self, r, MK, q, **kwargs) <NEW_LINE> self.prefac *= self.x**3 <NEW_LINE> phase = (-1 if l & 2 else 1) * (1j if l... | Correlation function to power spectrum, also radial profile to its
Fourier transform.
Parameters
----------
r : see `x` in :class:`mcfit.mcfit`
l : int
order
See :class:`mcfit.mcfit` | 6259906444b2445a339b74fa |
class ExecutePreprocessor(Preprocessor, NotebookClient): <NEW_LINE> <INDENT> def __init__(self, **kw): <NEW_LINE> <INDENT> nb = kw.get('nb') <NEW_LINE> Preprocessor.__init__(self, nb=nb, **kw) <NEW_LINE> NotebookClient.__init__(self, nb, **kw) <NEW_LINE> <DEDENT> def _check_assign_resources(self, resources): <NEW_LINE>... | Executes all the cells in a notebook | 62599064be8e80087fbc07bc |
class TestGetFactoryName(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.board = 'x86-alex' <NEW_LINE> self.version_string = '0.12.433.269/stable' <NEW_LINE> <DEDENT> def testFactoryUseDefaultNaming(self): <NEW_LINE> <INDENT> expected = (IMAGE_SERVER_PREFIX + '/stable-channel/x86-alex/... | Tests related to GetFactoryName. | 625990649c8ee82313040d22 |
class Env(dict): <NEW_LINE> <INDENT> def __init__(self, options): <NEW_LINE> <INDENT> dict.__init__(self) <NEW_LINE> self.options = options <NEW_LINE> <DEDENT> def _report_and_set_hdlmake_var(self, name): <NEW_LINE> <INDENT> def _get(name): <NEW_LINE> <INDENT> assert not name.startswith("HDLMAKE_") <NEW_LINE> assert is... | The Env (Environment) is a dictionary containing the environmental
variables related with HDLMake for a proper use in the Python code | 6259906491f36d47f2231a29 |
class TrafficEventType(Enum): <NEW_LINE> <INDENT> NORMAL_DRIVING = 0 <NEW_LINE> COLLISION_STATIC = 1 <NEW_LINE> COLLISION_VEHICLE = 2 <NEW_LINE> COLLISION_PEDESTRIAN = 3 <NEW_LINE> ROUTE_DEVIATION = 4 <NEW_LINE> ROUTE_COMPLETION = 5 <NEW_LINE> ROUTE_COMPLETED = 6 <NEW_LINE> TRAFFIC_LIGHT_INFRACTION = 7 <NEW_LINE> WRONG... | This enum represents different traffic events that occur during driving. | 6259906445492302aabfdc10 |
class Command(object): <NEW_LINE> <INDENT> _default_verbosity = False <NEW_LINE> @classmethod <NEW_LINE> def set_default_verbosity(cls, flag): <NEW_LINE> <INDENT> cls._default_verbosity = flag <NEW_LINE> <DEDENT> def __init__(self, command_string, verbose=None): <NEW_LINE> <INDENT> self._verbose = verbose if... | Command represents a reusable shell command.
Examples creating a command:
concat = Command('cat "{ins}" > "{outs}"')
concat2 = Command('cat "{ins}" > "{ins}.2"')
IMPORTANT: Always encluse placeholders in double quotes.
Example calls:
concat('f1', 'f2') # copies f1 to f2
concat(['f1', 'f2'], 'f3') ... | 625990644428ac0f6e659c66 |
class MessageEventDefinition(NamedEventDefinition): <NEW_LINE> <INDENT> def __init__(self, name, payload=None, result_var=None): <NEW_LINE> <INDENT> super(MessageEventDefinition, self).__init__(name) <NEW_LINE> self.payload = payload <NEW_LINE> self.result_var = result_var <NEW_LINE> <DEDENT> def catch(self, my_task, e... | Message Events have both a name and a payload. | 62599064442bda511e95d8f4 |
class HDAWGChannelGrouping(Enum): <NEW_LINE> <INDENT> CHAN_GROUP_4x2 = 0 <NEW_LINE> CHAN_GROUP_2x4 = 1 <NEW_LINE> CHAN_GROUP_1x8 = 2 <NEW_LINE> def group_size(self) -> int: <NEW_LINE> <INDENT> return { HDAWGChannelGrouping.CHAN_GROUP_4x2: 2, HDAWGChannelGrouping.CHAN_GROUP_2x4: 4, HDAWGChannelGrouping.CHAN_GROUP_1x8: 8... | How many independent sequencers should run on the AWG and how the outputs should be grouped by sequencer. | 62599064f7d966606f749454 |
class Device(cir.Element): <NEW_LINE> <INDENT> category = "Sources" <NEW_LINE> devType = "isin" <NEW_LINE> numTerms = 2 <NEW_LINE> isDCSource = True <NEW_LINE> isTDSource = True <NEW_LINE> isFDSource = True <NEW_LINE> sourceOutput = (0, 1) <NEW_LINE> paramDict = dict( idc = ('DC current', 'A', float, 0.), mag = ('Ampli... | (Co-)Sinusoidal current source
------------------------------
Connection diagram::
,---, iout
0 o-------( --> )---------o 1
'---'
iout = idc + mag * cos(2 * pi * freq * t + phase)
This source works for time and frequency domain. For AC analysis,
the ... | 6259906467a9b606de54763d |
class CompressionHeader: <NEW_LINE> <INDENT> LANGUAGES = ['German', 'English', 'Italian', 'French', 'Spanish', 'Dutch', 'Swedish', 'Danish', 'Portuguese', 'Finnish', 'Norwegian', 'Greek', 'Turkish', 'Hungarian', 'Polish', 'Language unspecified'] <NEW_LINE> def __init__(self, bytes): <NEW_LINE> <INDENT> octet = bytes.po... | Parse the compression header from the byte stream, consuming its
bytes as it goes. | 62599064e76e3b2f99fda135 |
class OfficialLoglossObjective: <NEW_LINE> <INDENT> def calc_ders_range(self, preds, targets, weights=None): <NEW_LINE> <INDENT> assert len(preds) == len(targets) <NEW_LINE> if weights is not None: <NEW_LINE> <INDENT> assert len(weights) == len(preds) <NEW_LINE> <DEDENT> result = [] <NEW_LINE> for index in range(len(ta... | An official Catboost example | 62599064498bea3a75a5919b |
class Body(Model): <NEW_LINE> <INDENT> def __init__(self, time_series: List[float]=None): <NEW_LINE> <INDENT> self.swagger_types = { 'time_series': List[float] } <NEW_LINE> self.attribute_map = { 'time_series': 'time_series' } <NEW_LINE> self._time_series = time_series <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def fr... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62599064d486a94d0ba2d6ff |
class CleanDict(Dict): <NEW_LINE> <INDENT> def __init__(self, key_schema, value_schema, max_length=None, **kwargs): <NEW_LINE> <INDENT> super(CleanDict, self).__init__(**kwargs) <NEW_LINE> self.key_schema = key_schema <NEW_LINE> self.value_schema = value_schema <NEW_LINE> self.max_length = max_length <NEW_LINE> <DEDENT... | A dictionary in which both keys and values are validated with separate schema fields. | 6259906499cbb53fe6832619 |
class TestExceptions(cros_test_lib.MockOutputTestCase): <NEW_LINE> <INDENT> def _SystemExit(self): <NEW_LINE> <INDENT> sys.stdout.write(_GREETING) <NEW_LINE> sys.exit(1) <NEW_LINE> <DEDENT> def _KeyboardInterrupt(self): <NEW_LINE> <INDENT> sys.stdout.write(_GREETING) <NEW_LINE> raise KeyboardInterrupt() <NEW_LINE> <DED... | Test cases where child processes raise exceptions. | 625990642ae34c7f260ac81e |
class ObjFromDict(object): <NEW_LINE> <INDENT> def __init__(self, d): <NEW_LINE> <INDENT> for a, b in d.iteritems(): <NEW_LINE> <INDENT> if isinstance(b, (list, tuple)): <NEW_LINE> <INDENT> setattr(self, a, [ObjFromDict(x) if isinstance(x, dict) else x for x in b]) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> setattr(... | Takes a dictionary and returns an object that can use dot notation | 6259906476e4537e8c3f0cb9 |
class AddItemHandler(APIHandler): <NEW_LINE> <INDENT> level = UserLevel.kernel <NEW_LINE> async def process(self, uid, data): <NEW_LINE> <INDENT> uid = int(uid) <NEW_LINE> proset = await get_proset(self.user, uid) <NEW_LINE> if proset is None: <NEW_LINE> <INDENT> return 'Error' <NEW_LINE> <DEDENT> problem_uid = int(dat... | Add problem item handler. | 6259906455399d3f05627c56 |
class PaymentDetails(Model): <NEW_LINE> <INDENT> _attribute_map = { 'total': {'key': 'total', 'type': 'PaymentItem'}, 'display_items': {'key': 'displayItems', 'type': '[PaymentItem]'}, 'shipping_options': {'key': 'shippingOptions', 'type': '[PaymentShippingOption]'}, 'modifiers': {'key': 'modifiers', 'type': '[PaymentD... | Provides information about the requested transaction.
:param total: Contains the total amount of the payment request
:type total: ~botframework.connector.models.PaymentItem
:param display_items: Contains line items for the payment request that the
user agent may display
:type display_items: list[~botframework.connect... | 625990640c0af96317c578fa |
class draw_thing(): <NEW_LINE> <INDENT> def __init__(self, drawings, name, padding_x=0, padding_y=0): <NEW_LINE> <INDENT> self.drawings = drawings <NEW_LINE> self.padding_x = padding_x <NEW_LINE> self.padding_y = padding_y <NEW_LINE> noun_keyword_offset = { 'fish': 200, 'bird': -200, } <NEW_LINE> if name in noun_keywor... | draws and animates objects
also stores the canvas objects to be deleted later | 6259906432920d7e50bc777d |
class LockError(LockingError): <NEW_LINE> <INDENT> pass | Raised when a lock cannot be created due to a conflicting lock.
Instances of this class have a ``lock`` attribute which is a
:class:`substanced.locking.Lock` object, representing the conflicting
lock. | 625990647047854f46340aea |
class Command(BaseCommand): <NEW_LINE> <INDENT> def handle(self, *args, **options): <NEW_LINE> <INDENT> self.stdout.write('waiting database...') <NEW_LINE> db_conn = None <NEW_LINE> while not db_conn: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> db_conn = connections['default'] <NEW_LINE> <DEDENT> except OperationalErr... | Django command to pause execution until database is available | 62599064a17c0f6771d5d741 |
class Query(object): <NEW_LINE> <INDENT> def __init__(self, model): <NEW_LINE> <INDENT> self.model = model <NEW_LINE> <DEDENT> def get_by_model(self , name): <NEW_LINE> <INDENT> self.model_query = self.model.get(self.model.model == str(name)) <NEW_LINE> return self.model_query | docstring for Query | 625990643eb6a72ae038bd96 |
class SiteTags(Table): <NEW_LINE> <INDENT> def __init__(self, api, site_tag_filter = None, columns = None): <NEW_LINE> <INDENT> Table.__init__(self, api, SiteTag, columns) <NEW_LINE> sql = "SELECT %s FROM view_site_tags WHERE True" % ", ".join(self.columns) <NEW_LINE> if site_tag_filter is not None: <NEW_L... | Representation of row(s) from the site_tag table in the
database. | 625990651f037a2d8b9e5406 |
class ClientsSettings(FeatureSettings): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(ClientsSettings, self).__init__(*args, **kwargs) <NEW_LINE> self.image_dir = None <NEW_LINE> self.provisioning_server = None <NEW_LINE> <DEDENT> def read(self, reader): <NEW_LINE> <INDENT> self.ima... | Clients settings definitions. | 62599064cc0a2c111447c66b |
class GroupSchemaCustom( OktaObject ): <NEW_LINE> <INDENT> def __init__(self, config=None): <NEW_LINE> <INDENT> super().__init__(config) <NEW_LINE> if config: <NEW_LINE> <INDENT> self.id = config["id"] if "id" in config else None <NEW_LINE> self.properties = config["properties"] if "proper... | A class for GroupSchemaCustom objects. | 6259906401c39578d7f142d0 |
class NullDev(object): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> <DEDENT> def __get__(self, instance, owner): <NEW_LINE> <INDENT> print("(%s) invoking get method, inst = %r, owner = %r" % (self.name, instance, owner)) <NEW_LINE> return None <NEW_LINE> <DEDENT> def __s... | data descriptor that will get/set None | 625990654f88993c371f10ba |
class SchedulerTestBase(object): <NEW_LINE> <INDENT> _native = init_native() <NEW_LINE> def _create_work_dir(self): <NEW_LINE> <INDENT> work_dir = safe_mkdtemp() <NEW_LINE> self.addCleanup(safe_rmtree, work_dir) <NEW_LINE> return work_dir <NEW_LINE> <DEDENT> def mk_fs_tree(self, build_root_src=None, ignore_patterns=Non... | A mixin for classes (tests, presumably) which need to create temporary schedulers.
TODO: In the medium term, this should be part of pants_test.base_test.BaseTest. | 625990651b99ca40022900d1 |
class VisualizeAll(Command): <NEW_LINE> <INDENT> def do(self): <NEW_LINE> <INDENT> browser = utils.shell_split(self.model.history_browser()) <NEW_LINE> utils.fork(browser + ['--all']) | Visualize all branches. | 625990653539df3088ecd9d5 |
class Strategy: <NEW_LINE> <INDENT> @abc.abstractmethod <NEW_LINE> def fit(self, data: List, labels: List) -> None: <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def predict(self, data: List) -> List: <NEW_LINE> <INDENT> raise NotImplementedError | Base class for all classification strategies. | 62599065d6c5a102081e385d |
class AddProjectTreeNodeCommand(BaseProjectTreeUndoCommand): <NEW_LINE> <INDENT> undo_id = gen_undo_id() <NEW_LINE> def __init__(self, project_tree_controller, node, parent_node, parent=None): <NEW_LINE> <INDENT> super().__init__(project_tree_controller, parent) <NEW_LINE> if node.parent is not None: <NEW_LINE> <INDENT... | QUndoCommand class for adding a new node to the project tree. | 62599065796e427e5384feae |
class QuotaErrorMsg(basestring): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_api_name(): <NEW_LINE> <INDENT> return "quota-error-msg" | Information about the single quota error. | 625990654f6381625f19a040 |
class ServerGroupsManager(base.ManagerWithFind): <NEW_LINE> <INDENT> resource_class = ServerGroup <NEW_LINE> def list(self, all_projects=False): <NEW_LINE> <INDENT> all = '?all_projects' if all_projects else '' <NEW_LINE> return self._list('/os-server-groups%s' % all, 'server_groups') <NEW_LINE> <DEDENT> def get(self, ... | Manage :class:`ServerGroup` resources. | 625990657b25080760ed887d |
class ShowPtpParentSchema(MetaParser): <NEW_LINE> <INDENT> schema = { 'ptp_parent_property': { 'parent_clock': { 'identity': str, 'port_number': int, 'observed_parent_offset': int, 'phase_change_rate': str, }, 'grandmaster_clock': { 'identity': str, 'gd_class': int, 'accuracy': str, 'offset': str, 'priority1': int, 'pr... | Schema for 'show ptp parent'
| 6259906556b00c62f0fb4004 |
class AppleMusic(APIBase): <NEW_LINE> <INDENT> def __init__(self, proxies=None): <NEW_LINE> <INDENT> super().__init__(root='https://api.music.apple.com/v1/', proxies=proxies) <NEW_LINE> <DEDENT> def generate_token(self, secret_key, key_id, team_id, session_length=12): <NEW_LINE> <INDENT> alg = 'ES256' <NEW_LINE> header... | This class inherits from API Base. This is an authenticated API that needs a token. | 625990652ae34c7f260ac81f |
class AddProviderForm(forms.Form): <NEW_LINE> <INDENT> name = forms.CharField(label='Provider Name', required=False) <NEW_LINE> email = forms.EmailField(label='Provider Email', required=False) <NEW_LINE> phone_no = forms.CharField(label='Provider Phone', required=False) <NEW_LINE> language = forms.CharField(label='Prov... | Form to save/edit a Service area. | 625990654428ac0f6e659c6a |
class GainVals16(GetSpotValue, ArraySpotValue): <NEW_LINE> <INDENT> _nParam = SpotCamConstant.GAINVALS16 <NEW_LINE> _ctype = ctypes.c_short*257 <NEW_LINE> _dtype = np.int16 | The allowable gain values for 10-16 bit per channel still image
capture. | 6259906516aa5153ce401c15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.