code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class CustomView(Response): <NEW_LINE> <INDENT> def __init__(self, context, request): <NEW_LINE> <INDENT> super(CustomView, self).__init__() <NEW_LINE> self.context = context <NEW_LINE> self.request = request <NEW_LINE> <DEDENT> def split_req(self, request): <NEW_LINE> <INDENT> return dict(request.params), request.meth... | Visão padrão do sistema.
Herdada por todas as demais.
Extende Response.
Args:
context (instance): Instância do contexto à ser usado com a view.
request (pyramid.request.Request): Request gerado pelo pacote
Pyramid.
Returns:
CustomView: Instância de CustomView. | 62598f4915fb5d323ce7e051 |
class FragmentRemover(object): <NEW_LINE> <INDENT> def __init__(self, fragments=REMOVE_FRAGMENTS, leave_last=LEAVE_LAST): <NEW_LINE> <INDENT> log.debug('Initializing FragmentRemover') <NEW_LINE> self.fragments = fragments <NEW_LINE> self.leave_last = leave_last <NEW_LINE> <DEDENT> def __call__(self, mol): <NEW_LINE> <I... | A class for filtering out fragments using SMARTS patterns. | 62598f49bf627c535bcb07a3 |
@six.add_metaclass(ABCMeta) <NEW_LINE> class WebAPI(ModulesController): <NEW_LINE> <INDENT> def setup_input(self,request): <NEW_LINE> <INDENT> raise NotImplementedError | Base class for WebAPI 's ModulesController.
ModulesController for WebAPI has a :meth:`setup_input` method which parse request | 62598f49ff9c53063f519974 |
class DeepDTParallel(torch.nn.DataParallel): <NEW_LINE> <INDENT> def __init__(self, module, device_ids=None, output_device=None): <NEW_LINE> <INDENT> super(DeepDTParallel, self).__init__(module, device_ids, output_device) <NEW_LINE> self.src_device = torch.device("cuda:{}".format(self.device_ids[0])) <NEW_LINE> <DEDENT... | Args:
module (Module): Module to be parallelized.
device_ids (list of int or torch.device): CUDA devices.
(default: all devices)
output_device (int or torch.device): Device location of output.
(default: :obj:`device_ids[0]`) | 62598f493cc13d1c6d464a9d |
class _Select(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.read_fds = set() <NEW_LINE> self.write_fds = set() <NEW_LINE> self.error_fds = set() <NEW_LINE> self.fd_sets = (self.read_fds, self.write_fds, self.error_fds) <NEW_LINE> <DEDENT> def close(self): <NEW_LINE> <INDENT> pass <NEW_LINE> ... | A simple, select()-based IOLoop implementation for non-Linux systems | 62598f49d164cc61758202aa |
class PushMetricAPIResponse(object): <NEW_LINE> <INDENT> swagger_types = { 'message': 'str', 'resource_ids': 'MapStringString', 'timestamp': 'int' } <NEW_LINE> attribute_map = { 'message': 'message', 'resource_ids': 'resourceIds', 'timestamp': 'timestamp' } <NEW_LINE> def __init__(self, message=None, resource_ids=None,... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598f49eab8aa0e5d30b0a3 |
class TestWosLiteRecord(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 testWosLiteRecord(self): <NEW_LINE> <INDENT> pass | WosLiteRecord unit test stubs | 62598f49bf627c535bcb07a7 |
class ProtectedLFNListOnlyFinalOutput(RESTEntity): <NEW_LINE> <INDENT> def __init__(self, app, api, config, mount): <NEW_LINE> <INDENT> RESTEntity.__init__(self, app, api, config, mount) <NEW_LINE> <DEDENT> def validate(self, apiobj, method, api, param, safe): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> @restcall(fo... | Same as ProtectedLFNList API, however this one only provides LFNs that are not
transient, so only final output LFNs. | 62598f49ff9c53063f51997c |
class WbResponse(object): <NEW_LINE> <INDENT> def __init__(self, status_headers, value=[], **kwargs): <NEW_LINE> <INDENT> self.status_headers = status_headers <NEW_LINE> self.body = value <NEW_LINE> self._init_derived(kwargs) <NEW_LINE> <DEDENT> def _init_derived(self, params): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDE... | Represnts a pywb wsgi response object.
Holds a status_headers object and a response iter, to be
returned to wsgi container. | 62598f493cc13d1c6d464aa3 |
class IngredientSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Ingredient <NEW_LINE> fields = ['id', 'name'] <NEW_LINE> read_only_fields = ['id'] | Serializer for ingredient objects | 62598f49462c4b4f79dbad30 |
class Plugin(CSMPlugin): <NEW_LINE> <INDENT> name = "Install Remove Plugin" <NEW_LINE> platforms = {'ASR900'} <NEW_LINE> phases = {'Remove'} <NEW_LINE> os = {'XE'} <NEW_LINE> def run(self): <NEW_LINE> <INDENT> packages_to_remove = self.ctx.software_packages <NEW_LINE> if packages_to_remove is None: <NEW_LINE> <INDENT> ... | This plugin removes inactive packages from the device. | 62598f49d164cc61758202b0 |
class HTTPNotFound(HTTPClientError): <NEW_LINE> <INDENT> code = 404 <NEW_LINE> title = 'Not Found' <NEW_LINE> explanation = ('The resource could not be found.') | subclass of :class:`~HTTPClientError`
This indicates that the server did not find anything matching the
Request-URI.
code: 404, title: Not Found | 62598f49ff9c53063f51997e |
class IdentityMapping(ActivateFunction): <NEW_LINE> <INDENT> def calc(self, x, xp=np): <NEW_LINE> <INDENT> return x <NEW_LINE> <DEDENT> def differential(self, x, xp=np): <NEW_LINE> <INDENT> return xp.ones_like(x) <NEW_LINE> <DEDENT> def inv(self, x, xp=np): <NEW_LINE> <INDENT> return x <NEW_LINE> <DEDENT> def delta(sel... | 恒等写像 | 62598f49bf627c535bcb07ad |
class SplitterTraitPlugin(TraitPluginBase): <NEW_LINE> <INDENT> support_return_all_values = True <NEW_LINE> def __init__(self, separator=".", segment=0, max_split=None, **kw): <NEW_LINE> <INDENT> LOG.warning(_LW('split plugin is deprecated, ' 'add ".`split(%(sep)s, %(segment)d, ' '%(max_split)d)`" to your jsonpath inst... | Plugin that splits a piece off of a string value. | 62598f49eab8aa0e5d30b0ad |
class ActionExecutions(resource.ResourceList): <NEW_LINE> <INDENT> action_executions = [ActionExecution] <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self._type = 'action_executions' <NEW_LINE> super(ActionExecutions, self).__init__(**kwargs) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def sample(cls): ... | A collection of action_executions. | 62598f49627d3e7fe0e061c3 |
class UpdateOwnProflle(permissions.BasePermission): <NEW_LINE> <INDENT> def has_object_permission(self, request, view, obj): <NEW_LINE> <INDENT> if request.method in permissions.SAFE_METHODS: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> return obj.id == request.user.id | Allow user to edit their own profile | 62598f49507cdc57c63a40d8 |
class RegrCnst(Regr): <NEW_LINE> <INDENT> def getFunc(self, jac=False): <NEW_LINE> <INDENT> if jac: <NEW_LINE> <INDENT> def _mean(x, _b=self.beta): <NEW_LINE> <INDENT> _bb = _b.reshape(1,-1) <NEW_LINE> return _bb, np.zeros_like(_bb) <NEW_LINE> <DEDENT> def _mshp(x): <NEW_LINE> <INDENT> return np.ones((1,1)), np.zeros((... | Constant. | 62598f49462c4b4f79dbad38 |
class SubprocVecEnv(VecEnv): <NEW_LINE> <INDENT> def __init__(self, env_fns, spaces=None): <NEW_LINE> <INDENT> self.waiting = False <NEW_LINE> self.closed = False <NEW_LINE> nenvs = len(env_fns) <NEW_LINE> self.remotes, self.work_remotes = zip(*[Pipe() for _ in range(nenvs)]) <NEW_LINE> self.ps = [Process(target=worker... | VecEnv that runs multiple environments in parallel in subproceses and communicates with them via pipes.
Recommended to use when num_envs > 1 and step() can be a bottleneck. | 62598f4956b00c62f0fb1bf3 |
class WildFunction(Function, AtomicExpr): <NEW_LINE> <INDENT> nargs = 1 <NEW_LINE> def __new__(cls, name, **assumptions): <NEW_LINE> <INDENT> obj = Function.__new__(cls, name, **assumptions) <NEW_LINE> obj.name = name <NEW_LINE> return obj <NEW_LINE> <DEDENT> def matches(self, expr, repl_dict={}, evaluate=False): <NEW_... | WildFunction() matches any expression but another WildFunction()
XXX is this as intended, does it work ? | 62598f4921a7993f00c652b0 |
class RebarConstrainedHandle(object,IDisposable): <NEW_LINE> <INDENT> def Dispose(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def GetEdgeNumber(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def GetHandleType(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def IsEdgeHandle(self): <NEW_LINE> <INDENT> pa... | A class representing a handle on a Rebar that can be joined to a reference,such
as a host Element's surface or cover,or another Rebar's handle. | 62598f493cc13d1c6d464aaf |
class NetworkNode(object): <NEW_LINE> <INDENT> def __init__(self, ip, port, banner=None): <NEW_LINE> <INDENT> self.ip = ip <NEW_LINE> self.port = port <NEW_LINE> self.banner = banner or '' <NEW_LINE> self._messages = [] <NEW_LINE> self.last_seen = dt.utcnow() <NEW_LINE> <DEDENT> def get_messages(self): <NEW_LINE> <INDE... | Introduced NetworkNode objects for a variety of reasons. E.g.
* The are easy to check for their last_seen prop.
* Future proofing
Args:
ip (str): The nodes ip
port (int): The nodes port
banner (str): Optional. Can be used to display additional information. * is used to mark self. | 62598f49627d3e7fe0e061cb |
@dataclass <NEW_LINE> class Step: <NEW_LINE> <INDENT> do: str <NEW_LINE> @staticmethod <NEW_LINE> def from_dict(do): <NEW_LINE> <INDENT> return Step(do) | Model to represent step. | 62598f49507cdc57c63a40de |
class CAMShift(Tracking): <NEW_LINE> <INDENT> def __init__(self, img, bb, ellipse): <NEW_LINE> <INDENT> self = Tracking.__init__(self, img, bb) <NEW_LINE> self.ellipse = ellipse <NEW_LINE> <DEDENT> def getEllipse(self): <NEW_LINE> <INDENT> return self.ellipse | **SUMMARY**
CAMShift Class is returned by track when CAMShift tracking is required.
This class is a superset of Tracking Class. And all of Tracking class'
attributes can be accessed.
CAMShift class has "ellipse" attribute which is not present in Tracking | 62598f4921a7993f00c652b5 |
class QLearningAgent(ReinforcementAgent): <NEW_LINE> <INDENT> def __init__(self, **args): <NEW_LINE> <INDENT> ReinforcementAgent.__init__(self, **args) <NEW_LINE> "*** YOUR CODE HERE ***" <NEW_LINE> self.qValues = util.Counter() <NEW_LINE> <DEDENT> def getQValue(self, state, action): <NEW_LINE> <INDENT> return self.qVa... | Q-Learning Agent
Functions you should fill in:
- computeValueFromQValues
- computeActionFromQValues
- getQValue
- getAction
- update
Instance variables you have access to
- self.epsilon (exploration prob)
- self.alpha (learning rate)
- self.discount (discount rate)
Functions you should use
- self.g... | 62598f49462c4b4f79dbad3e |
class BaseUserDatabase(Generic[UD]): <NEW_LINE> <INDENT> user_db_model: Type[UD] <NEW_LINE> def __init__(self, user_db_model: Type[UD]): <NEW_LINE> <INDENT> self.user_db_model = user_db_model <NEW_LINE> <DEDENT> async def get(self, id: UUID4) -> Optional[UD]: <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <... | Base adapter for retrieving, creating and updating users from a database.
:param user_db_model: Pydantic model of a DB representation of a user. | 62598f4ad164cc61758202c0 |
class SjInteractiveEntitySoundsEntity(_PermanentJsonWalkerContainer): <NEW_LINE> <INDENT> def __init__(self, json: JsonWalker, owning_collection: SjInteractiveEntitySounds) -> None: <NEW_LINE> <INDENT> super().__init__(json) <NEW_LINE> self._owning_collection = owning_collection <NEW_LINE> <DEDENT> def owning_collectio... | A class with :class:`JsonWalker` with the content of
sounds.json->interactive_sounds->entity_sounds->entities->[entity] | 62598f4a21a7993f00c652b9 |
class loif: <NEW_LINE> <INDENT> def __init__(self, veth): <NEW_LINE> <INDENT> self.client_intf = veth.names[1] <NEW_LINE> self.switch_intf = veth.names[0] <NEW_LINE> self.interfaces = [] <NEW_LINE> <DEDENT> def add_if(self, intf): <NEW_LINE> <INDENT> self.interfaces.append(intf) | Class to implement loif with OVS
@author ykk
@date Feb 2011 | 62598f4a15fb5d323ce7e06d |
class TextMod(object): <NEW_LINE> <INDENT> def __init__(self, fc_dimension, vocab): <NEW_LINE> <INDENT> self.fc_dimension = fc_dimension <NEW_LINE> self.vocab = vocab <NEW_LINE> <DEDENT> """ build model """ <NEW_LINE> def build_model(self, max_len): <NEW_LINE> <INDENT> from keras.models import Model <NEW_LINE> from ker... | model initialization | 62598f4abf627c535bcb07c0 |
class BaseEnsemble(BaseSkeleton, ConfigurableABC): <NEW_LINE> <INDENT> def __init__(self, networks): <NEW_LINE> <INDENT> self.networks = networks <NEW_LINE> if len(self.networks) < 2: <NEW_LINE> <INDENT> raise ValueError("Ensemble algorithm should has at least " "2 networks") <NEW_LINE> <DEDENT> <DEDENT> @abstractmetho... | Base class for ensemble algorithms. | 62598f4a0a366e3fb87dbd15 |
class Input(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.prevout_hash = Int(-1) <NEW_LINE> self.prevout_idx = Int(-1) <NEW_LINE> self.script_sig = String() <NEW_LINE> self.seqno = Int(-1) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_stream(cls, f): <NEW_LINE> <INDENT> self = cls() <... | An individual input to a transaction. | 62598f4a56b00c62f0fb1c01 |
class VPBox( _VPOrientMixIn, _VPColorMixIn, _VPPosMixIn, protoSG.protoTypes["VPBox"] ): <NEW_LINE> <INDENT> width = _itemAccess( 0, 'size' ) <NEW_LINE> height = _itemAccess( 1, 'size' ) <NEW_LINE> length = _itemAccess( 2, 'size' ) | Visual-python-style "box" object
The sub-class here just adds the various convenience
almost-fields that the VPython environment expects... | 62598f4a627d3e7fe0e061d7 |
class VolumeMetaDataTestNoMicroversion(v2_test.VolumeMetaDataTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(VolumeMetaDataTestNoMicroversion, self).setUp() <NEW_LINE> self.patch( 'cinder.objects.Service.get_minimum_obj_version', return_value=obj_base.OBJ_VERSIONS.get_current()) <NEW_LINE> def _ge... | Volume metadata tests with no microversion provided. | 62598f4a462c4b4f79dbad4b |
class FixedColumnTable(object): <NEW_LINE> <INDENT> def __init__(self, widths): <NEW_LINE> <INDENT> self.widths = [int(width) for width in widths] <NEW_LINE> self.buffer = [] <NEW_LINE> <DEDENT> def write_row(self, fp, *args): <NEW_LINE> <INDENT> for (width, value) in zip(self.widths, args): <NEW_LINE> <INDENT> fp.writ... | A table that has preset column widths. | 62598f4ad164cc61758202ca |
class GencodeGenesException(PycbioException): <NEW_LINE> <INDENT> pass | exception associated with Gencode Genes objects | 62598f4a0a366e3fb87dbd1b |
class _GetChar: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.impl = _GetCharUnix() <NEW_LINE> <DEDENT> except ImportError: <NEW_LINE> <INDENT> self.impl = _GetCharWindows() <NEW_LINE> <DEDENT> <DEDENT> def __call__(self): return self.impl() | Gets a single character from standard input, does not echo to the screen.
Recipe from: http://code.activestate.com/recipes/134892/ | 62598f4a627d3e7fe0e061dc |
class OthelloEvaluator(ABC): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def evaluate(self, othello_position): <NEW_LINE> <INDENT> pass | This interface defines the mandatory methods for an evaluator, i.e., a class that can take a position and
return an integer value that represents a heuristic evaluation of the position (positive numbers if the position is
better for the first player, white). Notice that an evaluator is not supposed to make moves in the... | 62598f4a507cdc57c63a40ee |
class ThinCrustDough(DoughBase): <NEW_LINE> <INDENT> pass | Thin Crust Dough class | 62598f4abf627c535bcb07ca |
class RandomDisplacement(object): <NEW_LINE> <INDENT> def __init__(self, stepsize=100, bounds=None): <NEW_LINE> <INDENT> self.stepsize = stepsize <NEW_LINE> self.random_state = np.random <NEW_LINE> self.bounds = np.asarray(bounds) <NEW_LINE> if self.bounds.shape[0] == self.bounds.size: <NEW_LINE> <INDENT> if not self.b... | Add a random displacement of maximum size, stepsize, to the coordinates
update x inplace
Parameters
----------
stepsize: float, optional
stepsize to be taken. Will be adapted by the optimizer later.
bounds: list of tuples
bounds on the variables.
If None, global optimization i... | 62598f4a627d3e7fe0e061de |
class CoursesPropertyRights(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def can_add(cls): <NEW_LINE> <INDENT> if roles.Roles.is_super_admin(): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> for course_context in sites.get_all_courses(): <NEW_LINE> <INDENT> if roles.Roles.is_course_admin(course_context): <... | Manages view/edit rights for configuration properties. | 62598f4a507cdc57c63a40f0 |
class BillingManagementClientConfiguration(Configuration): <NEW_LINE> <INDENT> def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any ) -> None: <NEW_LINE> <INDENT> if credential is None: <NEW_LINE> <INDENT> raise ValueError("Parameter 'credential' must not be None.") <NEW_LINE> <DE... | Configuration for BillingManagementClient.
Note that all parameters used to create this instance are saved as instance
attributes.
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID that uniquely ... | 62598f4abf627c535bcb07cc |
class MemoryAddresses (StaticClass): <NEW_LINE> <INDENT> @classproperty <NEW_LINE> def pageSize(cls): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> pageSize = win32.GetSystemInfo().dwPageSize <NEW_LINE> <DEDENT> except WindowsError: <NEW_LINE> <INDENT> pageSize = 0x1000 <NEW_LINE> <DEDENT> <DEDE... | Class to manipulate memory addresses.
@type pageSize: int
@cvar pageSize: Page size in bytes. Defaults to 0x1000 but it's
automatically updated on runtime when importing the module. | 62598f4a711fe17d825dfa4c |
class LoginForm(FlaskForm): <NEW_LINE> <INDENT> username = StringField('Username', validators=[DataRequired()]) <NEW_LINE> password = PasswordField('Password', validators=PASSWORD_VALIDATORS) <NEW_LINE> remember_me = BooleanField('Remember Me') <NEW_LINE> submit = SubmitField('Sign In') | Description
-----------
This class defines the form that gets called whenever a user logs into the site.
The login form object renders various fields in the html templates as they're
defined here below. The objects below are accessible elements of a form instance.
So you can instantiate this form when a route is acce... | 62598f4a3cc13d1c6d464ac5 |
class Window(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> @since(1.4) <NEW_LINE> def partitionBy(*cols): <NEW_LINE> <INDENT> sc = SparkContext._active_spark_context <NEW_LINE> jspec = sc._jvm.org.apache.spark.sql.expressions.Window.partitionBy(_to_java_cols(cols)) <NEW_LINE> return WindowSpec(jspec) <NEW_LINE>... | Utility functions for defining window in DataFrames.
For example:
>>> # PARTITION BY country ORDER BY date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
>>> window = Window.partitionBy("country").orderBy("date").rowsBetween(-sys.maxsize, 0)
>>> # PARTITION BY country ORDER BY date RANGE BETWEEN 3 PRECEDING AND 3 ... | 62598f4a21a7993f00c652c9 |
class DocumentList(ListResource): <NEW_LINE> <INDENT> def __init__(self, version, service_sid): <NEW_LINE> <INDENT> super(DocumentList, self).__init__(version) <NEW_LINE> self._solution = {'service_sid': service_sid, } <NEW_LINE> self._uri = '/Services/{service_sid}/Documents'.format(**self._solution) <NEW_LINE> <DEDEN... | PLEASE NOTE that this class contains beta products that are subject to
change. Use them with caution. | 62598f4ad164cc61758202d2 |
class ResourceMusicalWorkReference (pyxb.binding.datatypes.IDREF): <NEW_LINE> <INDENT> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'ResourceMusicalWorkReference') <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location('http://ddex.net/xml/20100121/ddex.xsd', 1376, 4) <NEW_LINE> _Documentation = 'A Reference t... | A Reference to a MusicalWork which is contained within a specific Resource. | 62598f4a21a7993f00c652cb |
class PriorityClassList(_kuber_definitions.Collection): <NEW_LINE> <INDENT> def __init__( self, items: typing.List["PriorityClass"] = None, metadata: "ListMeta" = None, ): <NEW_LINE> <INDENT> super(PriorityClassList, self).__init__( api_version="scheduling/v1alpha1", kind="PriorityClassList" ) <NEW_LINE> self._properti... | PriorityClassList is a collection of priority classes. | 62598f4a462c4b4f79dbad56 |
class MelonType(object): <NEW_LINE> <INDENT> def __init__(self, code, first_harvest, color, is_seedless, is_bestseller, name): <NEW_LINE> <INDENT> self.code = code <NEW_LINE> self.harvest = first_harvest <NEW_LINE> self.color = color <NEW_LINE> self.is_seedless = is_seedless <NEW_LINE> self.best_seller = is_bestseller ... | A species of melon at a melon farm. | 62598f4aeab8aa0e5d30b0ce |
class GHashPrinter: <NEW_LINE> <INDENT> class _iterator: <NEW_LINE> <INDENT> def __init__(self, ht, keys_are_strings): <NEW_LINE> <INDENT> self.ht = ht <NEW_LINE> if ht != 0: <NEW_LINE> <INDENT> self.array = ht["nodes"] <NEW_LINE> self.size = ht["size"] <NEW_LINE> <DEDENT> self.pos = 0 <NEW_LINE> self.keys_are_strings ... | Prints a GHashTable | 62598f4a15fb5d323ce7e081 |
class AtomicOrbital: <NEW_LINE> <INDENT> def __init__(self, n, l=None, nocc=0, lletter=None): <NEW_LINE> <INDENT> self.n = n <NEW_LINE> if l is None: <NEW_LINE> <INDENT> self.lletter = lletter <NEW_LINE> try: <NEW_LINE> <INDENT> self.l = atomic_orbital_symbols.index(lletter) <NEW_LINE> <DEDENT> except IndexError: <NEW_... | A class representing a single atomic orbital.
This is a building block of the `AtomicConfiguration` state class.
Parameters
----------
n : int
The principal quantum number.
l : int, optional
The azimuthal quantum number (0, 1, 2, ..., n-1)
At least one of {`l`, `lletter`} must be passed.
nocc : int, defau... | 62598f4abf627c535bcb07d2 |
class FloatMapper(MapperClass): <NEW_LINE> <INDENT> def map(self, input_dict): <NEW_LINE> <INDENT> resulting_map = {} <NEW_LINE> for key in input_dict: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> resulting_map[key] = float(input_dict[key]) <NEW_LINE> <DEDENT> except(ValueError, TypeError): <NEW_LINE> <INDENT> if input... | Convert value to float | 62598f4a15fb5d323ce7e083 |
class CollegeList(ObtainTokenBase): <NEW_LINE> <INDENT> def test_college_list(self): <NEW_LINE> <INDENT> token, university = self.obtain_token() <NEW_LINE> self.client.credentials(HTTP_AUTHORIZATION='Bearer {0}'.format(token)) <NEW_LINE> response = self.client.get(reverse('college_list'), data={'format': 'json'}) <NEW_... | Test for college list endpoint. | 62598f4a0a366e3fb87dbd29 |
@implementer(ITokenizedTerm) <NEW_LINE> class OptgroupTerm(object): <NEW_LINE> <INDENT> def __init__(self, value, token=None, title=None, optgroup=None): <NEW_LINE> <INDENT> self.optgroup = optgroup <NEW_LINE> self.value = value <NEW_LINE> if token is None: <NEW_LINE> <INDENT> token = value <NEW_LINE> <DEDENT> self.tok... | A SimpleTerm with an aditional attribute "optgroup".
It's also a tokenized term used by SimpleVocabulary. | 62598f4a56b00c62f0fb1c13 |
class optimizer_adam: <NEW_LINE> <INDENT> def __init__(self, learning_rate=1e-4, beta_1=0.1, clip_norm=2e1): <NEW_LINE> <INDENT> optimizer = tf.keras.optimizers.Adam(learning_rate=learning_rate, beta_1=beta_1) <NEW_LINE> self.optimizer = optimizer <NEW_LINE> self.clip_norm = clip_norm <NEW_LINE> <DEDENT> def optimize(s... | Wrap the tensorflow optimizers, for easy handling and gradient clipping. | 62598f4aff9c53063f5199a7 |
class HoustonException(Exception): <NEW_LINE> <INDENT> pass | Base class used by all of Houston's exceptions. | 62598f4a15fb5d323ce7e087 |
class NudosApoyo: <NEW_LINE> <INDENT> def __init__(self, l0, l1, l2, r): <NEW_LINE> <INDENT> self.lst_arch = l0 <NEW_LINE> self.lst_nudos_apoyo = l1 <NEW_LINE> self.lst_apoyos_implantacion = l2 <NEW_LINE> self.reacciones = r <NEW_LINE> <DEDENT> def nudos_apoyo(self): <NEW_LINE> <INDENT> self.lst_nudos_apoyo.clear() <NE... | Añade los items en la lista de nudos con apoyo según
los items de la lista de archivos csv para implantaciones. | 62598f4abf627c535bcb07d8 |
class ConllChecker(common.AbstractChecker): <NEW_LINE> <INDENT> def matches_header(self, strict): <NEW_LINE> <INDENT> header = self.fileobj.peek(1024) <NEW_LINE> for line in header.split(b"\n"): <NEW_LINE> <INDENT> if line and not line.startswith( bytes(self.filetype_info.comment_prefix)): <NEW_LINE> <INDENT> return le... | Checks whether input is in CONLL format. | 62598f4a3cc13d1c6d464ad1 |
class DistinctObjects(RDFStatInterface): <NEW_LINE> <INDENT> def __init__(self, results): <NEW_LINE> <INDENT> super(DistinctObjects, self).__init__(results) <NEW_LINE> self.objects = {} <NEW_LINE> <DEDENT> def count(self, s, p, o, s_blank, o_l, o_blank, statement): <NEW_LINE> <INDENT> self.objects[o] = self.objects.get... | Distinct number of entities
Entity - triple, where ?s is iri (not blank) | 62598f4a3cc13d1c6d464ad3 |
class LocalNetworkGateway(Resource): <NEW_LINE> <INDENT> _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, '... | A common class for general resource information.
Variables are only populated by the server, and will be ignored when
sending a request.
:param id: Resource ID.
:type id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param location: Resource location.
:type location:... | 62598f4b3cc13d1c6d464ad5 |
class AltBinaryConcrete(AlternativeRelaxation,BinaryConcrete): <NEW_LINE> <INDENT> count = 0 <NEW_LINE> def call(self,logit_q): <NEW_LINE> <INDENT> AltBinaryConcrete.count += 1 <NEW_LINE> c = AltBinaryConcrete.count-1 <NEW_LINE> layer = Lambda(self.sample,name="altconcrete_{}".format(c)) <NEW_LINE> return layer(logit_q... | Alternative reparameterization proposed in REBAR, that temperature -> infty matches the original probability. | 62598f4b462c4b4f79dbad63 |
class WuiReportTestBoxFailures(WuiReportFailuresWithTotalBase): <NEW_LINE> <INDENT> def _formatEdgeOccurenceSubject(self, oTransient): <NEW_LINE> <INDENT> sHtml = u'%s ' % ( webutils.escapeElem(oTransient.oSubject.sName),); <NEW_LINE> sHtml += WuiTestBoxDetailsLinkShort(oTransient.oSubject).toHtml(); <NEW_LINE> return ... | Generates a report displaying the failure reasons over time. | 62598f4beab8aa0e5d30b0da |
class ValueSeq(ValueBase): <NEW_LINE> <INDENT> ADDRLEN_FMT = "B" <NEW_LINE> ADDRLEN_FMT_SIZE = struct.calcsize(ADDRLEN_FMT) <NEW_LINE> MAX_ADDR_SIZE = (1 << (8 * ADDRLEN_FMT_SIZE)) - 1 <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.addrs = list() <NEW_LINE> super(ValueBase, self).__thisclass__... | A sequence value for the sequence TLV. Stores a list of address strings
in binary form. ValueSeq does not know how to interpret the addresses
(i.e. it doesn't know if they are IPv4, IPv6, or something else). | 62598f4bd164cc61758202e2 |
class NotConfiguredError(Exception): <NEW_LINE> <INDENT> pass | Raise this exception in the event the flask application has not been
configured properly. | 62598f4b56b00c62f0fb1c1d |
class HelloViewSet(viewsets.ViewSet): <NEW_LINE> <INDENT> serializer_class = serializers.HelloSerializer <NEW_LINE> def list(self, request): <NEW_LINE> <INDENT> a_viewset = [ 'Uses actions (ist, create, retrieve, update, partial_update)', 'Automatically maps to URLs using Routers', 'Provides more funcitonality with les... | Test API ViewSet | 62598f4bff9c53063f5199b3 |
class TransformView(QtGui.QWidget): <NEW_LINE> <INDENT> def __init__(self,groupedViews,parent=None): <NEW_LINE> <INDENT> super(TransformView,self).__init__(parent) <NEW_LINE> self.selection = groupedViews.getTransformSelection() <NEW_LINE> self.Layout = QtGui.QGridLayout() <NEW_LINE> self.Layout.addWidget(self.selectio... | Creates the view for the transformation tab.
At the top is the transform selection widget
and below it is the selected GUI (FFT or MaxEnt) | 62598f4beab8aa0e5d30b0de |
class AOLRemoteProcessor(docker.RemoteProcessor): <NEW_LINE> <INDENT> pass | TBD | 62598f4bbf627c535bcb07e2 |
class CreateStackVersionRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.StackId = None <NEW_LINE> self.TemplateUrl = None <NEW_LINE> self.VersionName = None <NEW_LINE> self.Description = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.StackId = ... | CreateStackVersion请求参数结构体
| 62598f4b21a7993f00c652e1 |
class User(object): <NEW_LINE> <INDENT> def __init__(self, nickname): <NEW_LINE> <INDENT> self.nickname = nickname <NEW_LINE> <DEDENT> def msg(self, message): <NEW_LINE> <INDENT> log.msg("User.msg(nickname='%s', message='%s')" % ( self.nickname, message)) <NEW_LINE> self.protocol.msg(self.nickname, message) | A single IRC user. | 62598f4b3cc13d1c6d464adf |
class HasNote(HasNoteBase): <NEW_LINE> <INDENT> name = _('Events having <count> notes') <NEW_LINE> description = _("Matches events having a certain number of notes") | Events having notes | 62598f4b711fe17d825dfa65 |
class Action: <NEW_LINE> <INDENT> def __init__ (self, registeredaction=None, method=None, catalog=None, doc="", category="generic"): <NEW_LINE> <INDENT> self.parameters={} <NEW_LINE> if registeredaction is not None: <NEW_LINE> <INDENT> self.name=registeredaction.name <NEW_LINE> self.catalog=catalog <NEW_LINE> if self.c... | The Action class.
The associated method should have the following signature:
``def method (context, parameters)``
where:
- context is a advene.tal.AdveneContext holding various information
- parameters is a dictionary with named parameters, whose values are
coded in TALES syntax (and should be evaluated thro... | 62598f4b15fb5d323ce7e097 |
class VBoxErrorNotSupported(VBoxError): <NEW_LINE> <INDENT> name = 'VBOX_E_NOT_SUPPORTED' <NEW_LINE> value = 0x80BB0009 | Requested operation is not supported. | 62598f4beab8aa0e5d30b0e4 |
class CarbonCopy(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.stdout = sys.stdout <NEW_LINE> self.string = '' <NEW_LINE> <DEDENT> def write(self, text): <NEW_LINE> <INDENT> self.stdout.write(text) <NEW_LINE> self.string += text <NEW_LINE> <DEDENT> def _write_color_code(self, args): <NEW_LIN... | Copy STDOUT to string. | 62598f4bff9c53063f5199bb |
class Page(mixins.TimeStampMixin, mixins.ClassMethodMixin): <NEW_LINE> <INDENT> STATUS_CHOICES = ((1, 'draft'), (2, 'published')) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> ordering = ['slug', 'last_modified', 'index'] <NEW_LINE> verbose_name = _('page') <NEW_LINE> verbose_name_plural = _('pages') <NEW_LINE> <DEDENT> s... | Model for simple, generic web pages. | 62598f4b21a7993f00c652e5 |
class Container(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=100, unique=True) <NEW_LINE> kind = models.ForeignKey(ContainerKind, on_delete=models.PROTECT) <NEW_LINE> @property <NEW_LINE> def container_volume(self): <NEW_LINE> <INDENT> return self.kind.volume <NEW_LINE> <DEDENT> @property <NEW_... | A Container represents an instance of a real container | 62598f4bbf627c535bcb07ea |
class DockerRequirement(Requirement): <NEW_LINE> <INDENT> def __init__(self, docker_pull=None, docker_load=None, docker_file=None, docker_import=None, docker_image_id=None, docker_output_dir=None): <NEW_LINE> <INDENT> Requirement.__init__(self, 'DockerRequirement') <NEW_LINE> self.dockerPull = docker_pull <NEW_LINE> se... | Indicates that a workflow component should be run in a Docker container,
and specifies how to fetch or build the image.
Documentation: https://www.commonwl.org/v1.0/CommandLineTool.html#DockerRequirement | 62598f4bd164cc61758202ee |
class TpuProjectsLocationsNodesDeleteRequest(_messages.Message): <NEW_LINE> <INDENT> name = _messages.StringField(1, required=True) | A TpuProjectsLocationsNodesDeleteRequest object.
Fields:
name: The resource name. | 62598f4b711fe17d825dfa69 |
class Outcome(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> db_table = 'outcome' <NEW_LINE> ordering = ['outcome'] <NEW_LINE> <DEDENT> outcome_id = models.AutoField(primary_key=True) <NEW_LINE> name = models.CharField(max_length=8) | The different possible outcomes of a game. | 62598f4b0a366e3fb87dbd3f |
class VOC_Metrics(ub.NiceRepr): <NEW_LINE> <INDENT> def __init__(self, classes=None): <NEW_LINE> <INDENT> self.recs = {} <NEW_LINE> self.cx_to_lines = ub.ddict(list) <NEW_LINE> self.classes = classes <NEW_LINE> <DEDENT> def __nice__(self): <NEW_LINE> <INDENT> info = { 'n_true_imgs': len(self.recs), 'n_true_anns': sum(m... | API to compute object detection scores using Pascal VOC evaluation method.
To use, add true and predicted detections for each image and then run the
`score` function.
Attributes:
recs (Dict[int, List[dict]): true boxes for each image.
maps image ids to a list of records within that image.
Each rec... | 62598f4b462c4b4f79dbad71 |
class ICacheDescriptor: <NEW_LINE> <INDENT> pass | the base type for `CacheDescriptor`. | 62598f4b15fb5d323ce7e09b |
class DepthResNet(nn.Module): <NEW_LINE> <INDENT> def __init__(self, version=None, **kwargs): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> assert version is not None, "DispResNet needs a version" <NEW_LINE> num_layers = int(version[:2]) <NEW_LINE> pretrained = version[2:] == 'pt' <NEW_LINE> assert num_layers in [1... | Inverse depth network based on the ResNet architecture.
Parameters
----------
version : str
Has a XY format, where:
X is the number of residual layers [18, 34, 50] and
Y is an optional ImageNet pretrained flag added by the "pt" suffix
Example: "18pt" initializes a pretrained ResNet18, and "34" initiali... | 62598f4b711fe17d825dfa6b |
class BaseLogsTestCase(test.BaseTestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def skip_checks(cls): <NEW_LINE> <INDENT> super(BaseLogsTestCase, cls).skip_checks() <NEW_LINE> if not CONF.service_available.logs: <NEW_LINE> <INDENT> raise cls.skipException("Monasca logs support is required") <NEW_LINE> <DEDENT> <... | Base test case class for all Logs tests. | 62598f4bbf627c535bcb07ee |
class AthenaConnectionForm(ConnectionForm): <NEW_LINE> <INDENT> def clean(self) -> Dict: <NEW_LINE> <INDENT> form_data = super().clean() <NEW_LINE> name_exists = models.AthenaConnection.objects.filter( name=self.cleaned_data['name'], ).exclude(id=self.instance.id).exists() <NEW_LINE> if name_exists: <NEW_LINE> <INDENT>... | Form to read data from SQL.
We collect information to open a connection to an Athena instance | 62598f4b21a7993f00c652eb |
class GeoJSON(JSON): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(GeoJSON, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def _ipython_display_(self): <NEW_LINE> <INDENT> bundle = { 'application/geo+json': self.data, 'text/plain': '<yap_ipython.display.GeoJSON object>' } <NEW_... | GeoJSON expects JSON-able dict
not an already-serialized JSON string.
Scalar types (None, number, string) are not allowed, only dict containers. | 62598f4bd164cc61758202f4 |
class color: <NEW_LINE> <INDENT> r = 0 <NEW_LINE> g = 0 <NEW_LINE> b = 0 <NEW_LINE> def __init__(self, r, g, b): <NEW_LINE> <INDENT> self.r = r <NEW_LINE> self.g = g <NEW_LINE> self.b = b <NEW_LINE> <DEDENT> def to_hex(self): <NEW_LINE> <INDENT> return '#'+code(abs(int(self.r)))+code(abs(int(self.g)))+code(abs(int(self... | "Contains 3 rgb integers | 62598f4bff9c53063f5199c3 |
class Building(CommonInfo): <NEW_LINE> <INDENT> poly = geomodels.PolygonField(u"Obrys budovy") <NEW_LINE> zone = models.ForeignKey(Zone, verbose_name=u"Zóna", blank=True, null=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> verbose_name = u'Veřejná budova' <NEW_LINE> verbose_name_plural = u'Veřejné budovy' <NEW_LINE> ... | Verejna budova. | 62598f4b3cc13d1c6d464aeb |
class BaseTableView(QtGui.QTableView, BaseTable): <NEW_LINE> <INDENT> def item(self, row, column): <NEW_LINE> <INDENT> return self.model().item(row, column) <NEW_LINE> <DEDENT> def itemFromIndex(self, index): <NEW_LINE> <INDENT> return self.model().itemFromIndex(index) <NEW_LINE> <DEDENT> def rowCount(self): <NEW_LINE>... | This is a base QTableView class for implementing tools to
facilitate basic tasks, such as item fetching, etc. | 62598f4bff9c53063f5199c9 |
class WMAlterTriggerRequest: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRUCT, 'trigger', (WMTrigger, WMTrigger.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, trigger=None,): <NEW_LINE> <INDENT> self.trigger = trigger <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ ==... | Attributes:
- trigger | 62598f4b21a7993f00c652f3 |
class SQLiteTest(Command): <NEW_LINE> <INDENT> description = "Run tests on SQLite" <NEW_LINE> user_options = [] <NEW_LINE> def initialize_options(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def finalize_options(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> if self.distri... | Run the tests on SQLite | 62598f4beab8aa0e5d30b0f6 |
class sfp_strangeheaders(SpiderFootPlugin): <NEW_LINE> <INDENT> opts = { } <NEW_LINE> baseDomain = None <NEW_LINE> results = dict() <NEW_LINE> def setup(self, sfc, target, userOpts=dict()): <NEW_LINE> <INDENT> global sf <NEW_LINE> sf = sfc <NEW_LINE> self.baseDomain = target <NEW_LINE> self.results = dict() <NEW_LINE> ... | Strange Headers:Obtain non-standard HTTP headers returned by web servers. | 62598f4bbf627c535bcb07fa |
class TestUser(unittest.TestCase): <NEW_LINE> <INDENT> pass | Test class that defines test cases for the contact class behaviours. | 62598f4cbf627c535bcb07fc |
class SourceCollection(LDPDocumentCollection): <NEW_LINE> <INDENT> def __init__(self, dirnames=None): <NEW_LINE> <INDENT> if dirnames is None: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> self.update(scansourcedirs(dirnames)) | a dict-like container for SourceDocument objects
The key in the SourceCollection is the stem name of the document, which
allows convenient access and guarantees non-collision.
The use of the stem as a key works conveniently with the
OutputCollection which uses the same strategy on OutputDirectory. | 62598f4c56b00c62f0fb1c3b |
class DistributionsApi(object): <NEW_LINE> <INDENT> def __init__(self, api_client=None): <NEW_LINE> <INDENT> config = Configuration() <NEW_LINE> if api_client: <NEW_LINE> <INDENT> self.api_client = api_client <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> if not config.api_client: <NEW_LINE> <INDENT> config.api_client =... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen | 62598f4ceab8aa0e5d30b0fa |
class StatusManager(BaseModelManager[Status]): <NEW_LINE> <INDENT> MODEL_CLASS = Status | Status manager. | 62598f4c21a7993f00c652fb |
class Todo(Model): <NEW_LINE> <INDENT> id = IntegerField(column_type='INTEGER NOT NULL', primary_key=True) <NEW_LINE> text = TextField(column_type='TEXT NOT NULL', default='') <NEW_LINE> is_completed = BooleanField(column_type='BOOLEAN NOT NULL') <NEW_LINE> comment = TextField(column_type='TEXT NOT NULL', default='') <... | Todo object | 62598f4c56b00c62f0fb1c3f |
class CreateFlowByFilesResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.FlowId = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.FlowId = params.get("FlowId") <NEW_LINE> self.RequestId = params.get("RequestId") | CreateFlowByFiles返回参数结构体
| 62598f4c0a366e3fb87dbd57 |
class PiMaxTVConstraint(StepConstraint): <NEW_LINE> <INDENT> def __init__(self, args): <NEW_LINE> <INDENT> self.max_tv_constraint = args.max_tv_constraint <NEW_LINE> self.observations = None <NEW_LINE> self.old_policy_probs = None <NEW_LINE> <DEDENT> def _get_log_pis(self, agent): <NEW_LINE> <INDENT> latent_pi, latent_... | Constraint that computes max of total variation divergence
\max_s [ 0.5 * \sum_i |\pi_1(s) - \pi_2(s)| ]
Uses current samples in the rollout-buffer to max over s.
NOTE: Only supporting discrete action-spaces here! | 62598f4c3cc13d1c6d464afd |
class CircularDoubleLinkedList(object): <NEW_LINE> <INDENT> def __init__(self, maxsize=None): <NEW_LINE> <INDENT> self.maxsize = maxsize <NEW_LINE> node = Node() <NEW_LINE> node.next, node.prev = node, node <NEW_LINE> self.root = node <NEW_LINE> self.length = 0 <NEW_LINE> <DEDENT> def __len__(self): <NEW_LINE> <INDENT>... | 循环双端链表 ADT
多了个循环其实就是把 root 的 prev 指向 tail 节点,串起来 | 62598f4c56b00c62f0fb1c43 |
class PatternAlignH(IntEnum): <NEW_LINE> <INDENT> PATTERNALIGN_RIGHT = 0 <NEW_LINE> PATTERNALIGN_LEFT = 1 | Argument type used in 'set_window_pattern_option'. | 62598f4c0a366e3fb87dbd59 |
class AbstractDB: <NEW_LINE> <INDENT> ASCENDING = 0 <NEW_LINE> DESCENDING = 1 <NEW_LINE> def __init__(self, uri): <NEW_LINE> <INDENT> self.resource = uri <NEW_LINE> args = parse_uri(uri) <NEW_LINE> self.host = args.get('address') <NEW_LINE> self.name = args.get('query', {}).pop('name', 'default') <NEW_LINE> self.port =... | Base class for database framework wrappers.
Attributes
----------
host : str
It can be either:
1. Known hostname or IP address in which database server resides.
2. URI: A database framework specific connection string.
name : str
Name of database containing experiments.
port : int
Port that databas... | 62598f4c5166f23b2e242768 |
class SensorDiff(DiffBase): <NEW_LINE> <INDENT> pass | This class defines the basic structure of a brief diff of sensor. | 62598f4ceab8aa0e5d30b104 |
class EnumValue(object): <NEW_LINE> <INDENT> def __init__(self, name, order=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.order = order <NEW_LINE> <DEDENT> def __lt__(self, other): <NEW_LINE> <INDENT> if self.order is None or other.order is None: <NEW_LINE> <INDENT> raise TypeError <NEW_LINE> <DEDENT> els... | Named value in an enumeration which can be ordered. | 62598f4cd164cc617582030c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.