code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class PythonCode(object): <NEW_LINE> <INDENT> def __init__(self, code, **exception_kwargs): <NEW_LINE> <INDENT> self.code = code <NEW_LINE> self.declared_identifiers = util.Set() <NEW_LINE> self.undeclared_identifiers = util.Set() <NEW_LINE> if isinstance(code, basestring): <NEW_LINE> <INDENT> expr = pyparser.parse(cod...
represents information about a string containing Python code
62598f22187af65679d2931e
class PaymentMethodPaymentSchedulesRequestAllOf(object): <NEW_LINE> <INDENT> openapi_types = { 'payment_method': 'PaymentCardPaymentMethod' } <NEW_LINE> attribute_map = { 'payment_method': 'paymentMethod' } <NEW_LINE> def __init__(self, payment_method=None): <NEW_LINE> <INDENT> self._payment_method = None <NEW_LINE> se...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62598f22d8ef3951e32c7570
class AuthorView(BrowserView): <NEW_LINE> <INDENT> def __call__(self): <NEW_LINE> <INDENT> rc = u"" <NEW_LINE> author = getattr(self.context, 'author', []) <NEW_LINE> if author: <NEW_LINE> <INDENT> rc += IBiblatexEntry['author'].toUnicode(author) <NEW_LINE> return rc <NEW_LINE> <DEDENT> editor = getattr(self.context, '...
Show author or editor.
62598f22ad47b63b2c5a663d
class BasePlugin(object, metaclass=SafetyMetaclass): <NEW_LINE> <INDENT> default_config = None <NEW_LINE> def __init__(self, plugin_api, core, plugins_conf_dir): <NEW_LINE> <INDENT> self.core = core <NEW_LINE> SafetyMetaclass.core = core <NEW_LINE> conf = plugins_conf_dir / (self.__module__ + '.cfg') <NEW_LINE> try: <N...
Class that all plugins derive from.
62598f22091ae35668703a40
class ChooseCard(Move): <NEW_LINE> <INDENT> def __init__(self, card, decision): <NEW_LINE> <INDENT> self.decision = decision <NEW_LINE> self.card = card <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return f"Choose: {self.card}" <NEW_LINE> <DEDENT> def do(self, state): <NEW_LINE> <INDENT> self.decision.car...
Add a card to the context.
62598f22d8ef3951e32c7572
class OneToOneNode(_BaseNode, _InOne, _OutOne): <NEW_LINE> <INDENT> def __init__(self, input_obj, output_obj): <NEW_LINE> <INDENT> _InOne.__init__(self, input_obj) <NEW_LINE> _OutOne.__init__(self, output_obj) <NEW_LINE> _BaseNode.__init__(self)
One to one node.
62598f22ab23a570cc2d4488
class GoldPredictedPair: <NEW_LINE> <INDENT> def __init__(self, gold_span: Span, predicted_span: Span) -> None: <NEW_LINE> <INDENT> self.gold_span = gold_span <NEW_LINE> self.predicted_span = predicted_span <NEW_LINE> <DEDENT> def __str__(self) -> str: <NEW_LINE> <INDENT> return f'{{Gold: {self.gold_span}, Predicted: {...
Pair of gold and predicted spans
62598f224c3428357761910e
class ObjAttrMemory(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.oam = [OamSprite] * 64 <NEW_LINE> <DEDENT> def read(self, a): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def write(self, a, v): <NEW_LINE> <INDENT> pass
OAM: The OAM (Object Attribute Memory) is internal memory inside the PPU that contains a display list of up to 64 sprites, where each sprite's information occupies 4 bytes.
62598f2231939e2706ed1180
class SetSnapshot(command.Command): <NEW_LINE> <INDENT> log = logging.getLogger(__name__ + '.SetSnapshot') <NEW_LINE> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(SetSnapshot, self).get_parser(prog_name) <NEW_LINE> parser.add_argument( 'snapshot', metavar='<snapshot>', help='Snapshot to modify (n...
Set snapshot properties
62598f22c4546d3d9def6983
class PipeMaterial(BaseMaterial): <NEW_LINE> <INDENT> def __init__(self, kth=None, Cp=None): <NEW_LINE> <INDENT> super().__init__(kth, Cp) <NEW_LINE> self._category = BaseMaterial.Pipe <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def get_predefined_materials(cls): <NEW_LINE> <INDENT> return super().get_predefined_materi...
The :class:`PipeMaterial` class holds all the thermophysical properties relative to the pipes that are required for the modeling of ground-loop heat exchanger systems. A database of predefined pipe materials is available and can be obtained or printed with the :meth:`~PipeMaterial.get_predefined_materials` and :meth:`...
62598f22d8ef3951e32c7574
class Bijections: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def simion_and_schmidt(perm: Perm, inverse: bool = False) -> Perm: <NEW_LINE> <INDENT> n = len(perm) <NEW_LINE> if n == 0: <NEW_LINE> <INDENT> return Perm() <NEW_LINE> <DEDENT> if inverse: <NEW_LINE> <INDENT> if perm.contains(Perm((0, 2, 1))): <NEW_LINE> <I...
A collection of known bijections.
62598f22ad47b63b2c5a6645
class DateTimeAwareJSONEncoder(JSONEncoder): <NEW_LINE> <INDENT> def default(self, obj): <NEW_LINE> <INDENT> if isinstance(obj, datetime): <NEW_LINE> <INDENT> return { '__type__' : 'datetime', 'year' : obj.year, 'month' : obj.month, 'day' : obj.day, 'hour' : obj.hour, 'minute' : obj.minute, 'second' : obj.second, 'micr...
Converts a python object, where datetime and timedelta objects are converted into objects that can be decoded using the DateTimeAwareJSONDecoder.
62598f22ad47b63b2c5a6647
class TestReviewStatusDetailGroupData(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 testReviewStatusDetailGroupData(self): <NEW_LINE> <INDENT> pass
ReviewStatusDetailGroupData unit test stubs
62598f2231939e2706ed1182
class RunnerNode: <NEW_LINE> <INDENT> seen = 0 <NEW_LINE> load = 999 <NEW_LINE> def __new__(cls, root, name): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self = root._nodes[name] <NEW_LINE> <DEDENT> except KeyError: <NEW_LINE> <INDENT> self = object.__new__(cls) <NEW_LINE> self.root = root <NEW_LINE> self.name = name ...
Represents all nodes in this runner group. This is used for load balancing and such. TODO.
62598f22ad47b63b2c5a6649
class HarvesterAnt(Ant): <NEW_LINE> <INDENT> name = 'Harvester' <NEW_LINE> implemented = True <NEW_LINE> food_cost = 2 <NEW_LINE> def action(self, colony): <NEW_LINE> <INDENT> "*** REPLACE THIS LINE ***" <NEW_LINE> self.colony = colony <NEW_LINE> self.colony.food += 1
HarvesterAnt produces 1 additional food per turn for the colony.
62598f2231939e2706ed1183
class EasyMenubutton(tkinter.Menubutton): <NEW_LINE> <INDENT> def __init__(self, menuBar, text, state): <NEW_LINE> <INDENT> tkinter.Menubutton.__init__(self, menuBar, text = text, state = state) <NEW_LINE> self.menu = tkinter.Menu(self) <NEW_LINE> self["menu"] = self.menu <NEW_LINE> self._currentIndex = -1 <NEW_LINE> <...
Represents a menu button.
62598f22187af65679d29325
class BbandRsi(IStrategy): <NEW_LINE> <INDENT> minimal_roi = { "0": 0.1 } <NEW_LINE> stoploss = -0.25 <NEW_LINE> ticker_interval = '1h' <NEW_LINE> def populate_indicators(self, dataframe: DataFrame) -> DataFrame: <NEW_LINE> <INDENT> dataframe['rsi'] = ta.RSI(dataframe, timeperiod=14) <NEW_LINE> bollinger = qtpylib.boll...
author@: Gert Wohlgemuth converted from: https://github.com/sthewissen/Mynt/blob/master/src/Mynt.Core/Strategies/BbandRsi.cs
62598f22187af65679d29326
class MulOp(object): <NEW_LINE> <INDENT> def __init__(self, type): <NEW_LINE> <INDENT> self.type = type <NEW_LINE> return
docstring for MulOp
62598f23c4546d3d9def6988
class FaiGPU: <NEW_LINE> <INDENT> def __init__(self, modelfilename, verbose=False): <NEW_LINE> <INDENT> self.model = torch.load(modelfilename).eval() <NEW_LINE> _, self.val_tfms = tfms_from_model(resnet34, 224) <NEW_LINE> self.verbose=verbose <NEW_LINE> <DEDENT> def predict(self, filename): <NEW_LINE> <INDENT> image = ...
Fastai 0.7.0
62598f234c3428357761911a
class SpamGaugeGroup(GateGaugeGroup): <NEW_LINE> <INDENT> def __init__(self, dim): <NEW_LINE> <INDENT> from . import gate as _gate <NEW_LINE> ltrans = _np.identity(dim,'d') <NEW_LINE> rtrans = _np.identity(dim,'d') <NEW_LINE> baseMx = _np.identity(dim,'d') <NEW_LINE> parameterArray = _np.zeros(2, 'd') <NEW_LINE> parame...
A 2-dimensional gauge group spanning transform matrices of the form: [ [ a 0 ... 0] where a and b are the 2 parameters. These diagonal [ 0 b ... 0] transform matrices do not affect the SPAM operations [ . . ... .] much more than typical near-unital and TP gates, and [ 0 0 ... b] ] so we call this group of ...
62598f234c3428357761911c
class NonceHTTPFormatMany(HTTPFormatMany): <NEW_LINE> <INDENT> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(NonceHTTPFormatMany, self).get_parser(prog_name) <NEW_LINE> parser = add_common_arguments(parser) <NEW_LINE> return parser <NEW_LINE> <DEDENT> def take_action(self, parsed_args): <NEW_LINE>...
HTTP+Nonce Records Listing
62598f23d8ef3951e32c757c
class FastGenerationConfig(object): <NEW_LINE> <INDENT> def __init__(self, batch_size=1): <NEW_LINE> <INDENT> self.batch_size = batch_size <NEW_LINE> <DEDENT> def build(self, inputs): <NEW_LINE> <INDENT> num_stages = 10 <NEW_LINE> num_layers = 30 <NEW_LINE> filter_length = 3 <NEW_LINE> width = 512 <NEW_LINE> skip_width...
Configuration object that helps manage the graph.
62598f23d8ef3951e32c757e
class HttpResponseBadStatusCode(BvlApiException): <NEW_LINE> <INDENT> pass
Raised when HTTP response has a bad status code.
62598f2326238365f5fab9db
class RepairKit(Equipment): <NEW_LINE> <INDENT> pass
A nanobot that can be used to repair hull damage.
62598f23c4546d3d9def698e
@base.ReleaseTracks(base.ReleaseTrack.GA) <NEW_LINE> class Delete(base.DeleteCommand): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def Args(parser): <NEW_LINE> <INDENT> flags.AddTemplateResourceArg(parser, 'delete', api_version='v1') <NEW_LINE> <DEDENT> def Run(self, args): <NEW_LINE> <INDENT> dataproc = dp.Dataproc(s...
Delete a workflow template.
62598f23187af65679d2932e
class _WordsTokenHitTests(object): <NEW_LINE> <INDENT> def first_test(self, token): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> def get_next_test(self, tokens): <NEW_LINE> <INDENT> return lambda t: False <NEW_LINE> <DEDENT> def is_completed(self, tokens): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> de...
_BaseWordsGroupingbのグルーピング判定の基底クラス
62598f23ad47b63b2c5a665d
class Service(b.ContextBase): <NEW_LINE> <INDENT> pass
The service segment (/services) acts as the entry-point for all services that are exposed. Currently, this comprises RESTful services only.
62598f23091ae35668703a5e
class PreprocessFileNameTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def _assert(self, input, expected): <NEW_LINE> <INDENT> self.assertEqual(preprocess_filename(input), expected) <NEW_LINE> <DEDENT> def test(self): <NEW_LINE> <INDENT> self._assert('README.md', ('README.md', False)) <NEW_LINE> self._assert('README....
Test preprocess_filename().
62598f2331939e2706ed118d
class OutputEnhancedLM(nn.Module): <NEW_LINE> <INDENT> def __init__(self, ntoken, ninp, nhid, nlayers, ivec_dim, dropout=0.5, dropout_ivec=0.0, ivec_amplification=1.0, tie_weights=False): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.drop = nn.Dropout(dropout) <NEW_LINE> self.drop_ivec = nn.Dropout(dropout_ive...
Container module with an encoder, a recurrent module, and a decoder.
62598f23ab23a570cc2d4496
class PXEAndIPMINativeDriver(base.BaseDriver): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> if not importutils.try_import('pyghmi'): <NEW_LINE> <INDENT> raise exception.DriverLoadError( driver=self.__class__.__name__, reason=_("Unable to import pyghmi library")) <NEW_LINE> <DEDENT> self.power = ipminativ...
PXE + Native IPMI driver. This driver implements the `core` functionality, combining :class:`ironic.drivers.modules.ipminative.NativeIPMIPower` for power on/off and reboot with :class:`ironic.driver.modules.pxe.PXE` for image deployment. Implementations are in those respective classes; this class is merely the glue be...
62598f23c4546d3d9def6990
class FBFilterManager (object): <NEW_LINE> <INDENT> def FBFilterManager(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def CreateFilter(self,pFilterTypeName): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> FilterTypeNames=property(doc="List of available filters. ") <NEW_LINE> pass
Filter manager. This class provides list of all available filter types and a factory method in order to create an instance of the desired filter type.This manager will list both built-in and plug-in filters.See the class FBFilter for more details.Filter type names are not localised, and are the same as pre...
62598f2331939e2706ed118e
class CalcGTIMergeRule(BaseMergeRule): <NEW_LINE> <INDENT> def __init__(self, key, default=None): <NEW_LINE> <INDENT> for head in ['ONTIME', 'LIVETIME', 'LIVTIME', 'EXPOSUR']: <NEW_LINE> <INDENT> if key.startswith(head): <NEW_LINE> <INDENT> super().__init__(key, default=default) <NEW_LINE> return <NEW_LINE> <DEDENT> <D...
Approximate the calcGTI rule. This just sums the input values, assuming that they do not overlap in time. This should be okay for the "merging observation" workload, but is not correct in all cases. It is expected that the default is set to 0, so that missing values are essentially skipped.
62598f23ad47b63b2c5a6661
class PixelWiseImageLoader(DataLoader): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(PixelWiseImageLoader, self).__init__(*args, **kwargs) <NEW_LINE> self.out_full = None <NEW_LINE> self.t_int32 = None <NEW_LINE> self.tview = None <NEW_LINE> <DEDENT> def next(self, start): <NEW_LIN...
Expand the normal dataloader to take the output pixelwise image and expand it to to a (nclass, H, W) pixelwise one hot output. The dataloader expects the target images for pixelwise classification to be HxW and for the pixel value to be an integer specifying the output class of the image. For pixelwise classification ...
62598f23fbf16365ca792efc
class record_queries: <NEW_LINE> <INDENT> def __init__(self, target, identifier="before_cursor_execute"): <NEW_LINE> <INDENT> self.target = target <NEW_LINE> self.identifier = identifier <NEW_LINE> <DEDENT> def record_query(self, conn, cursor, statement, parameters, context, executemany): <NEW_LINE> <INDENT> self.queri...
A context manager for recording the SQLAlchemy queries that were executed in a given context block.
62598f2326238365f5fab9e3
class Provider(resolvelib.providers.AbstractProvider): <NEW_LINE> <INDENT> def __init__( self, registry: base.Registry, candidates_finders: typing.Iterable[base.CandidateFinder], skip_dependencies: bool, ): <NEW_LINE> <INDENT> self._candidates_finders = candidates_finders <NEW_LINE> self._registry = registry <NEW_LINE>...
Provider for 'resolvelib'.
62598f23091ae35668703a64
class BaseUserException(Exception): <NEW_LINE> <INDENT> def __init__( self, ctx: PlantyContext, msg: str, send: bool = True, ): <NEW_LINE> <INDENT> self.message = msg <NEW_LINE> self._ctx = ctx <NEW_LINE> if send: <NEW_LINE> <INDENT> loop = asyncio.get_running_loop() <NEW_LINE> loop.create_task(self._send_error_embed()...
Exception for user specific errors
62598f23ad47b63b2c5a6665
class Collective(): <NEW_LINE> <INDENT> def __init__(self, world, ID = -1, **kwProperties): <NEW_LINE> <INDENT> self.__getAgent = world.getAgent <NEW_LINE> self.groups = dict() <NEW_LINE> <DEDENT> def getMember(self, peerID): <NEW_LINE> <INDENT> return self.__getAgent(agentID=peerID) <NEW_LINE> <DEDENT> def iterMembers...
This enhancement allows agents to iterate over member instances and thus funtion as collectives of agents. Examples could be a pack of wolf or an household of persons.
62598f23187af65679d29334
class DeviceIdentifierMode(object): <NEW_LINE> <INDENT> ASSET_TAG = 'asset_tag' <NEW_LINE> SERIAL_NUMBER = 'serial_number' <NEW_LINE> BOTH_REQUIRED = 'both_required'
Constants defining supported means of identifying devices.
62598f23187af65679d29335
class CombyInterface(abc.ABC): <NEW_LINE> <INDENT> @property <NEW_LINE> @abc.abstractmethod <NEW_LINE> def version(self) -> str: <NEW_LINE> <INDENT> ... <NEW_LINE> <DEDENT> @property <NEW_LINE> @abc.abstractmethod <NEW_LINE> def language(self) -> str: <NEW_LINE> <INDENT> ... <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW...
Provides a standard interface for interacting with Comby. Attributes ---------- version: str The version of Comby that is provided by this interface. language: str The default language that should be assumed when dealing with source text where no specific language is specified.
62598f23fbf16365ca792f08
class Audio: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.soundDict = {} <NEW_LINE> <DEDENT> def addSound(self, file, name): <NEW_LINE> <INDENT> file = ECOM.engine.resourceManager.getFile(file) <NEW_LINE> sound = pygame.mixer.Sound(file) <NEW_LINE> self.soundDict[name] = sound <NEW_LINE> <DEDENT> de...
Main audio system.
62598f23187af65679d29337
@method_decorator(login_required, name='dispatch') <NEW_LINE> class CategoryListView(ListView): <NEW_LINE> <INDENT> model = Category <NEW_LINE> template_name = "category/list.html" <NEW_LINE> context_object_name = "categories"
Lists all categories
62598f24091ae35668703a70
class Sentencing(Enum): <NEW_LINE> <INDENT> __order__ = 'PRISON' ' PAROLE' ' CCO' <NEW_LINE> PRISON = 1 <NEW_LINE> PAROLE = 2 <NEW_LINE> CCO = 3
Possible sentences
62598f244c3428357761913c
class EnumSymbol(object): <NEW_LINE> <INDENT> def __init__(self, value, description=None): <NEW_LINE> <INDENT> self.value = value <NEW_LINE> self.description = description <NEW_LINE> set_creation_order(self) <NEW_LINE> <DEDENT> def bind(self, cls, name): <NEW_LINE> <INDENT> self.cls = cls <NEW_LINE> self.name = name <N...
Define a fixed symbol tied to a parent class. A symbol has a value (the enum value) and a description. The description is used, well, for displaying information, it should not be used as the basis for computation.
62598f24091ae35668703a74
class LocationSearchAPI(APIView): <NEW_LINE> <INDENT> permission_classes = (rest_permissions.AllowAny, ) <NEW_LINE> serializer_class = AutocompleteLocationSerializer <NEW_LINE> def get(self, request, **kwargs): <NEW_LINE> <INDENT> q = request.QUERY_PARAMS.get('term', '') <NEW_LINE> if len(q) < 4: <NEW_LINE> <INDENT> ra...
Provides simple autocomplete functionality.
62598f24d8ef3951e32c758c
class TagSelector(Selector): <NEW_LINE> <INDENT> def __init__(self, master, **kwargs): <NEW_LINE> <INDENT> super().__init__(master, TagTree.create_instance, TagTree.create_instance, **kwargs) <NEW_LINE> <DEDENT> def selected_items(self): <NEW_LINE> <INDENT> items = self.right.get_all_items() <NEW_LINE> tags = [retrieve...
Provide a selector component for tags.
62598f2426238365f5fab9f7
class Attribute(object): <NEW_LINE> <INDENT> __metaclass__ = abc.ABCMeta <NEW_LINE> @abc.abstractproperty <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> @name.setter <NEW_LINE> def name(self, new_value): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> @abc.abstractproperty <NEW_LINE> def text_...
attribute class structure Defines the base class for all implemented attributes. Attributes ----------- name : string Every derived attribute class needs a name. text_set : set Every derived attribute class needs a text_set. This set contains all unique text objects from the real data. Methods -----...
62598f2431939e2706ed1199
class TestImplicitGroup(om.Group): <NEW_LINE> <INDENT> def __init__(self, lnSolverClass=om.LinearBlockGS, nlSolverClass=om.NonlinearBlockGS): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.add_subsystem("C1", Comp()) <NEW_LINE> self.add_subsystem("C2", Comp()) <NEW_LINE> self.connect("C1.w", "C2.a") <NEW_LINE> ...
A `Group` with two interconnected <ImplicitComponent>s.
62598f24187af65679d2933c
class LabelEncoderX(BaseEstimator, TransformerMixin): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.le = LabelEncoder() <NEW_LINE> self.classes_ = None <NEW_LINE> <DEDENT> def fit(self, x, y=None, **fit_params): <NEW_LINE> <INDENT> self.le.fit(x) <NEW_LINE> self.classes_ = self.le.classes_ <NEW_LINE>...
This is a duplicate of scikit-learn's `LabelEncoder` that can be used inside of `pipeline` since it takes in `x` and `y`
62598f24ab23a570cc2d44a3
class Liquid_O2(Propellant): <NEW_LINE> <INDENT> def __defaults__(self): <NEW_LINE> <INDENT> self.tag = 'O2 Liquid' <NEW_LINE> self.reactant = 'H2' <NEW_LINE> self.density = 0.0 <NEW_LINE> self.specific_energy = 0.0 <NEW_LINE> self.energy_density = 0.0 <NEW_LINE> self.max_mass_fraction = {'Air' : 0.0, 'O2' : 0.0} <NEW_...
Physical properties of liquid O2
62598f24c4546d3d9def699d
class BrazilBoaVistaCity(BrazilRoraima): <NEW_LINE> <INDENT> FIXED_HOLIDAYS = BrazilRoraima.FIXED_HOLIDAYS + ( (6, 9, "Aniversário de Boa Vista"), )
Brazil Boa Vista City
62598f24ab23a570cc2d44a4
class tickerSymbolProp(SchemaProperty): <NEW_LINE> <INDENT> _prop_schema = 'tickerSymbol' <NEW_LINE> _expected_schema = None <NEW_LINE> _enum = False <NEW_LINE> _format_as = "TextField"
SchemaField for tickerSymbol Usage: Include in SchemaObject SchemaFields as your_django_field = tickerSymbolProp() schema.org description:The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exc...
62598f24c4546d3d9def699f
class ProfileCalculations(QObject): <NEW_LINE> <INDENT> tool_name = 'profile_variant_calculations' <NEW_LINE> def __init__(self, iface, root_tool): <NEW_LINE> <INDENT> QObject.__init__(self) <NEW_LINE> self.iface = iface <NEW_LINE> self.root_tool = root_tool <NEW_LINE> self.plugin_dir = os.path.dirname(__file__) <NEW_L...
QGIS Plugin Implementation.
62598f24fbf16365ca792f1a
class V4MessageSuppressed(object): <NEW_LINE> <INDENT> openapi_types = { 'message_id': 'str', 'stream': 'V4Stream' } <NEW_LINE> attribute_map = { 'message_id': 'messageId', 'stream': 'stream' } <NEW_LINE> def __init__(self, message_id=None, stream=None, local_vars_configuration=None): <NEW_LINE> <INDENT> if local_vars_...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62598f24c4546d3d9def69a2
class RedirectException(HttpException): <NEW_LINE> <INDENT> def __init__(self, location, code=303, **headers): <NEW_LINE> <INDENT> self.message = "Redirecting to <%s>" % location <NEW_LINE> self.status = "%s Redirect" % code <NEW_LINE> headers['location'] = location <NEW_LINE> super(RedirectException, self).__init__(se...
An exception raised to redirect a given query to another URL.
62598f2426238365f5faba05
@grouping <NEW_LINE> class CollaborateWithBehaviour: <NEW_LINE> <INDENT> @verifiable <NEW_LINE> def should_trap_incorrect_call(self): <NEW_LINE> <INDENT> mock_spec = MockSpec() <NEW_LINE> spec = Spec(CollaborateWith(mock_spec.foo())) <NEW_LINE> spec.describe_constraint().should_be(mock_spec.foo().description()) <NEW_LI...
A group of specifications for CollaborateWith behaviour.
62598f24187af65679d29342
class BacktraceStripRegexes (gdb.Parameter): <NEW_LINE> <INDENT> set_doc = "set this to consolidate frames by matching regex group" <NEW_LINE> show_doc = "show this to see the current frame regex groups" <NEW_LINE> def __init__ (self): <NEW_LINE> <INDENT> super (BacktraceStripRegexes, self).__init__ ("backtrace-strip-r...
Regexes for function names to skip through in backtrace Put each regex in its own capture group and the backtrace will skip only matches from the same capture group. Example: '(^std::)|(^boost::)' will group by std and boost namespaces separately. If you need to use subgroups within each group, try a "non-capturing"...
62598f24ad47b63b2c5a6685
class ProjectContext(KedroContext): <NEW_LINE> <INDENT> pass
Users can override the remaining methods from the parent class here, or create new ones (e.g. as required by plugins)
62598f24fbf16365ca792f20
class Place: <NEW_LINE> <INDENT> def __init__(self, key): <NEW_LINE> <INDENT> self.key=key <NEW_LINE> self.tokens=list()
A place has a unique key and holds tokens.
62598f24091ae35668703a86
class AddNetwork(NetworkCommand): <NEW_LINE> <INDENT> positional_args = '<network-name>' <NEW_LINE> def __init__(self, name, flag_values): <NEW_LINE> <INDENT> super(AddNetwork, self).__init__(name, flag_values) <NEW_LINE> flags.DEFINE_string('description', '', 'Network description.', flag_values=flag_values) <NEW_LINE>...
Create a new network instance.
62598f2431939e2706ed11a1
class PredictionWriter(BasePredictionWriter): <NEW_LINE> <INDENT> def __init__(self, output_dir:str, output_file:str, dataset_names=list(), write_interval="epoch"): <NEW_LINE> <INDENT> super().__init__(write_interval) <NEW_LINE> self.output_dir = output_dir <NEW_LINE> self.output_file = output_file <NEW_LINE> self.data...
Blabla Parameters ---------- splits : dict; optional Contains
62598f24187af65679d29343
class BJ_Deck(cards.Hand): <NEW_LINE> <INDENT> def populate(self): <NEW_LINE> <INDENT> for suit in BJ_Card.SUITS: <NEW_LINE> <INDENT> for rank in BJ_Card.RANKS: <NEW_LINE> <INDENT> self.cards.append(BJ_Card(rank, suit))
A Blackjack Deck.
62598f244c34283577619152
class Aliment: <NEW_LINE> <INDENT> def __init__(self, produit_charge): <NEW_LINE> <INDENT> if produit_charge["product_name"] == '': <NEW_LINE> <INDENT> self.product_name = 'product name missing' <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.product_name = produit_charge["product_name"].replace("'", '-') <NEW_LINE...
to be used when working on aliment, loading from API and inserting in DB
62598f244c34283577619154
class ScheduleFailureError(Exception): <NEW_LINE> <INDENT> pass
Raised when ``schedule()`` can't fill everyone's schedule.
62598f24fbf16365ca792f24
class IQuestionInformation(Interface): <NEW_LINE> <INDENT> question_id = schema.Int(title=_(u"Question identifier"), description=_(u"A unique id for the question"), required=True, readonly=True) <NEW_LINE> question_location = schema.TextLine(title=_(u"Question location"), description=_(u"The url of the question (/dep/t...
Information concerning a question used in a quiz
62598f24091ae35668703a8a
class GetIPProxyTest(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.request = MockRequest() <NEW_LINE> <DEDENT> def test_iis_ipv4_port_stripping(self): <NEW_LINE> <INDENT> self.ip = '192.168.1.1' <NEW_LINE> valid_headers = [ '192.168.1.1:6112', '192.168.1.1:6033, 192.168.1.2:9001', ] <NEW_LINE...
Test get_ip returns correct addresses with proxy
62598f24ab23a570cc2d44ac
class Tag(models.Model): <NEW_LINE> <INDENT> tag_name = models.CharField(max_length=30) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.tag_name <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> ordering = ['tag_name']
used to group articles
62598f24c4546d3d9def69a6
class NeptuneQueryException(NeptuneClientException): <NEW_LINE> <INDENT> pass
A server-side error occurred during a Neptune query execution.
62598f24ad47b63b2c5a668b
class MDPContinuousState( object ): <NEW_LINE> <INDENT> def __init__( self, actionSpace, nextStateSampler, rewardFunction, gamma, startStateSampler, isGoalState, discretizedStateSpace, discretizedStartStateDistribution ): <NEW_LINE> <INDENT> self.__actionSpace = actionSpace <NEW_LINE> self.__nextStateS...
classdocs
62598f244c34283577619158
class Generator: <NEW_LINE> <INDENT> def __init__(self, source, k): <NEW_LINE> <INDENT> self._k=2 <NEW_LINE> v=self._k <NEW_LINE> self._nextCharCount=0 <NEW_LINE> self._source='aaabaaacaaadaaabaaabaaac' <NEW_LINE> sourceSplit=list(self._source) <NEW_LINE> self._prePros={} <NEW_LINE> q=0 <NEW_LINE> lastLet=''.join(sourc...
Generates random text based on k-grams of an existing sample.
62598f24091ae35668703a8e
class IBPError(AllocationError): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.ibpResponse = kwargs.pop("response", None) <NEW_LINE> super(IBPError, self).__init__(*args, **kwargs)
Generic exception for IBP related errors
62598f2426238365f5faba0f
class MainBearing(object): <NEW_LINE> <INDENT> def __init__(self, bearing_position): <NEW_LINE> <INDENT> super(MainBearing, self).__init__() <NEW_LINE> self.bearing_position = bearing_position <NEW_LINE> <DEDENT> def compute(self, bearing_mass, lss_diameter, lss_design_torque, rotor_diameter, location): <NEW_LINE> <IND...
MainBearings class The MainBearings class is used to represent the main bearing components of a wind turbine drivetrain. It contains two subcomponents (main bearing and second bearing) which also inherit from the SubComponent class. It contains the general properties for a wind turbine component as well as additional ...
62598f25c4546d3d9def69a9
class ExpressRouteCircuitsRoutesTableSummaryListResult(Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[ExpressRouteCircuitRoutesTableSummary]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__(self, *, value=None, next_link: str=None, **kwargs) -> None: <NEW...
Response for ListRoutesTable associated with the Express Route Circuits API. :param value: A list of the routes table. :type value: list[~azure.mgmt.network.v2018_01_01.models.ExpressRouteCircuitRoutesTableSummary] :param next_link: The URL to get the next set of results. :type next_link: str
62598f25091ae35668703a92
class RequestHeadersContentTypeNotSupport(RestException): <NEW_LINE> <INDENT> status = codes.UNSUPPORTED_MEDIA_TYPE
Headers:Content-type 类型不支持
62598f2526238365f5faba15
class Indexer(object): <NEW_LINE> <INDENT> __index__ = {} <NEW_LINE> __writer__ = {} <NEW_LINE> @staticmethod <NEW_LINE> def __load__(region=None): <NEW_LINE> <INDENT> if region: <NEW_LINE> <INDENT> if region in Indexer.__index__: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> if region n...
索引类,用于获取writer和searcher。 writer只能打开一个,使用单例模式实现,不支持多进程同步; searcher每次打开一个新的,支持进程\线程同步。
62598f25c4546d3d9def69ab
class CustomBackend(ModelBackend): <NEW_LINE> <INDENT> supports_inactive_user = True <NEW_LINE> def authenticate(self, email, password, token=None): <NEW_LINE> <INDENT> UserModel = get_user_model() <NEW_LINE> try: <NEW_LINE> <INDENT> user = UserModel._default_manager.get_by_natural_key(email) <NEW_LINE> <DEDENT> except...
Authenticates against users.models.User
62598f254c34283577619160
class Parcel(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.db = parcels <NEW_LINE> <DEDENT> def create_order(self, user_id, parcel_type, location_to_pickup, location_to_deliver): <NEW_LINE> <INDENT> payload = { "delivery_id": str(len(parcels) + 1), "user_id": user_id, "parcel_type": parcel_t...
The class name
62598f25c4546d3d9def69ac
class PostCommentListView(views.APIView): <NEW_LINE> <INDENT> def get_object(self, pk): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return Comment.objects.get(pk=pk) <NEW_LINE> <DEDENT> except Comment.DoesNotExist: <NEW_LINE> <INDENT> raise Http404 <NEW_LINE> <DEDENT> <DEDENT> def get(self, request, pk, format=None): ...
Get all comments for specific Post
62598f25091ae35668703a98
class Year(object): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> self._name = '_'.join(['year', str(value)]) <NEW_LINE> self._value = value <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self._value <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return "Year(name={n...
An observation year
62598f25c4546d3d9def69ad
class MaintenanceWindows(ProxyResource): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'time_ranges'...
Maintenance windows. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id...
62598f25ab23a570cc2d44b4
class Vhost(GandiModule): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def list(cls, options=None): <NEW_LINE> <INDENT> options = options or {} <NEW_LINE> return cls.call('paas.vhost.list', options) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def info(cls, name): <NEW_LINE> <INDENT> return cls.call('paas.vhost.info', na...
Module to handle CLI commands. $ gandi vhost create $ gandi vhost delete $ gandi vhost info $ gandi vhost list
62598f25187af65679d2934d
class itkAreaClosingImageFilterIUS3IUS3(itkAreaClosingImageFilterIUS3IUS3_Superclass): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") <NEW_LINE> __r...
Proxy of C++ itkAreaClosingImageFilterIUS3IUS3 class
62598f25fbf16365ca792f36
@_py3_str_compat <NEW_LINE> class VarFileInfo: <NEW_LINE> <INDENT> def __init__(self, kids=None): <NEW_LINE> <INDENT> self.kids = kids or [] <NEW_LINE> <DEDENT> def fromRaw(self, sublen, vallen, name, data, i, limit): <NEW_LINE> <INDENT> self.sublen = sublen <NEW_LINE> self.vallen = vallen <NEW_LINE> self.name = name <...
WORD wLength; // length of the version resource WORD wValueLength; // length of the Value member in the current // VS_VERSION_INFO structure WORD wType; // 1 means text, 0 means binary WCHAR szKey[]; // Contains the Unicode string 'VarFileInfo'. WORD Padding[]; Var C...
62598f25187af65679d2934f
class Items(models.Model): <NEW_LINE> <INDENT> nombre = models.CharField(max_length=30, null=True) <NEW_LINE> version = models.IntegerField(null=True) <NEW_LINE> prioridad = models.IntegerField(null=True) <NEW_LINE> estado = models.CharField(max_length=20, null=True) <NEW_LINE> descripcion = models.CharField(max_length...
El modelo Fases describe la estructura de cada instancia de una fase, los campos que contiene el modelo son: nombre: campo de tipo texto que contendra el nombre de la fase. estado: campo de tipo texto que contendra uno de los siguientes estado de fase: Definicion, Desarrollo, Finalizado. fecha_inicio: Campo de tipo fe...
62598f25ab23a570cc2d44b7
class LookupBindingPropertiesAttribute(Attribute,_Attribute): <NEW_LINE> <INDENT> def Equals(self,obj): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def GetHashCode(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __eq__(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __init__(self,*args): <NEW_LIN...
Specifies the properties that support lookup-based binding. This class cannot be inherited. LookupBindingPropertiesAttribute() LookupBindingPropertiesAttribute(dataSource: str,displayMember: str,valueMember: str,lookupMember: str)
62598f25ab23a570cc2d44b8
class Credentials(object): <NEW_LINE> <INDENT> def __init__(self, access_key=None, secret_key=None, token=None): <NEW_LINE> <INDENT> self.access_key = access_key <NEW_LINE> self.secret_key = secret_key <NEW_LINE> self.token = token <NEW_LINE> self.method = None <NEW_LINE> self.profiles = []
Holds the credentials needed to authenticate requests. In addition the Credential object knows how to search for credentials and how to choose the right credentials when multiple credentials are found. :ivar access_key: The access key part of the credentials. :ivar secret_key: The secret key part of the credentials. ...
62598f25ab23a570cc2d44ba
class _TestMode(enum.Enum): <NEW_LINE> <INDENT> COMPILER = 0 <NEW_LINE> LINKER = 1
Whether we're doing a compiler or linker check.
62598f25c4546d3d9def69b4
class Message(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def from_message(cls, msg): <NEW_LINE> <INDENT> message = cls() <NEW_LINE> message._message = msg <NEW_LINE> message._decoder = MessageDecoder(msg) <NEW_LINE> return message <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_file(cls, f): <NEW_LINE> <...
A simple class for dealing with email messages.
62598f25ad47b63b2c5a66a7
class HTMLStripper(HTMLParser): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.reset() <NEW_LINE> self.data = [] <NEW_LINE> <DEDENT> def handle_data(self, data): <NEW_LINE> <INDENT> self.data.append(data) <NEW_LINE> <DEDENT> def get_data(self): <NEW_LINE> <INDENT> return ...
Stripper for HTML tags; simply stores data in self.data.
62598f25187af65679d29354
class Attachment(object): <NEW_LINE> <INDENT> def __init__(self, mailpart): <NEW_LINE> <INDENT> self.filename = mailpart['filename'] <NEW_LINE> self.tipus = mailpart['mail_content_type'] <NEW_LINE> self.charset = mailpart['charset'] <NEW_LINE> self.payload = base64.b64decode(mailpart['payload']) <NEW_LINE> self.length ...
Utility class to contain the attachment information
62598f25ab23a570cc2d44bb
class ExponentialPredistortion: <NEW_LINE> <INDENT> def __init__(self, waveform_number): <NEW_LINE> <INDENT> self.A1 = 0 <NEW_LINE> self.tau1 = 0 <NEW_LINE> self.A2 = 0 <NEW_LINE> self.tau2 = 0 <NEW_LINE> self.A3 = 0 <NEW_LINE> self.tau3 = 0 <NEW_LINE> self.A4 = 0 <NEW_LINE> self.tau4 = 0 <NEW_LINE> self.dt = 1 <NEW_LI...
Implement a four-pole predistortion on the Z waveforms. Parameters ---------- waveform_number : int The waveform number to predistort. Attributes ---------- A1 : float Amplitude for the first pole. tau1 : float Time constant for the first pole. A2 : float Amplitude for the second pole. tau2 : float ...
62598f254c34283577619176
class VIEW3D_OT_fake_user_set(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "view3d.fake_user_set" <NEW_LINE> bl_label = "Set Fake User (Material Utils)" <NEW_LINE> bl_options = {'REGISTER', 'UNDO'} <NEW_LINE> fake_user = EnumProperty( name="Fake User", description="Turn fake user on or off", items=(('ON', "On",...
Enable / disable fake user for materials
62598f2526238365f5faba2d
class BatchReaderMixin(object): <NEW_LINE> <INDENT> def create_dataset_input_pipeline(self, batch_size, offset=0, pool=None, shuffle_seed=None): <NEW_LINE> <INDENT> if pool and pool not in ['valid', 'test']: <NEW_LINE> <INDENT> raise ValueError('Invalid pool provided. The supported values ' 'are "valid" and "test".') <...
Mixin class to assemble examples as batches.
62598f25187af65679d29357
class BadDataError(Exception): <NEW_LINE> <INDENT> pass
Raised when a client sends data that appears to be invalid.
62598f26091ae35668703ab2
class PreCodeFinder(HTMLPassThrough): <NEW_LINE> <INDENT> def reset(self): <NEW_LINE> <INDENT> HTMLPassThrough.reset(self) <NEW_LINE> self.data = [] <NEW_LINE> <DEDENT> def parse_code_header(self, header): <NEW_LINE> <INDENT> match = re.match(r':::\s+(.+)$', header) <NEW_LINE> if not match: <NEW_LINE> <INDENT> return {...
Find text within <pre><code></code></pre> and syntax-highlight it.
62598f26c4546d3d9def69bb
class TournamentsView(generic.ListView): <NEW_LINE> <INDENT> template_name = 'tournaments/tournaments.html' <NEW_LINE> context_object_name = 'tournaments' <NEW_LINE> model = Tournament
Generate tournaments view passing all registered tournaments.
62598f26fbf16365ca792f50
@base.ReleaseTracks(base.ReleaseTrack.ALPHA) <NEW_LINE> class DescribeAlpha(Describe): <NEW_LINE> <INDENT> SSL_CERTIFICATE_ARG = None <NEW_LINE> @classmethod <NEW_LINE> def Args(cls, parser): <NEW_LINE> <INDENT> cls.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument(include_alpha=True) <NEW_LINE> cls.SSL_CERTIFICATE_AR...
Describe a Google Compute Engine SSL certificate. *{command}* displays all data associated with Google Compute Engine SSL certificate in a project.
62598f2626238365f5faba37
class MessageBlock(ColorSchema): <NEW_LINE> <INDENT> TITLE = None <NEW_LINE> START = None <NEW_LINE> END = None <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> if self.TITLE: <NEW_LINE> <INDENT> self.title(message=self.TITLE) <NEW_LINE> <DEDENT> if self.START: <NEW_LINE> <INDENT> self.info(message=self.START) <NEW_L...
屏幕输出的信息块,封装统一样式
62598f26c4546d3d9def69bd
class NumCombinations(BaseGWOElement): <NEW_LINE> <INDENT> pass
the number of combinations in the experiment. (read-only)
62598f26187af65679d2935c
class Client(WebSocketEndpoint): <NEW_LINE> <INDENT> def __init__(self, url): <NEW_LINE> <INDENT> websocket = create_connection(url) <NEW_LINE> super(Client, self).__init__(websocket)
An endpoint connecting to a WebSocket server
62598f264c34283577619186
class Reactor: <NEW_LINE> <INDENT> _stop_reaction = object() <NEW_LINE> def __init__(self, ctx, initial_reactions, *, auto_remove=True, timeout=60): <NEW_LINE> <INDENT> self.dest = ctx.channel <NEW_LINE> self.bot = ctx.bot <NEW_LINE> self.caller = ctx.author <NEW_LINE> self.me = ctx.me <NEW_LINE> self._reactions = tupl...
A simple way to respond to Discord reactions. Usage: from ._utils import Reactor # in a command initial_reactions = [...] # Initial reactions (str or Emoji) to add reactor = Reactor(ctx, initial_reactions) # Timeout is optional, and defaults to 1 minute async for reaction in reactor: # react...
62598f263cc13d1c6d464620