code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class IPInterfaceEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, obj): <NEW_LINE> <INDENT> if isinstance(obj, (ipaddress.IPv4Interface, ipaddress.IPv6Interface)): <NEW_LINE> <INDENT> return obj.with_prefixlen <NEW_LINE> <DEDENT> return json.JSONEncoder.default(self, obj)
Render an ipaddress.IPv4Interface object to a serialisable string. Enable rendering interface objects in JSON.
62598ee3be383301e0251e14
class GuideResource(NamespacedModelResource): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> urlconf_namespace = 'user_guide' <NEW_LINE> queryset = Guide.objects.all() <NEW_LINE> authorization = Authorization() <NEW_LINE> authentication = SessionAuthentication() <NEW_LINE> list_allowed_methods = ['get'] <NEW_LINE>...
Tastypie resource for guides. Accessible via url, only allows GET method.
62598ee37cff6e4e811b4028
class EventCreate(EventBase): <NEW_LINE> <INDENT> address: tp.Optional[tp.Union[UUID, AddressCreate]] = None
Create model for Event objects.
62598ee301c39578d7f113e4
class GreedyAlgorithm: <NEW_LINE> <INDENT> def __init__( self, objects: list, knapsacks: int, capacity: int, average_value: int ): <NEW_LINE> <INDENT> self.num_of_knapsacks = knapsacks <NEW_LINE> self.capacity = capacity <NEW_LINE> self.__average_value = average_value <NEW_LINE> self.__objects = objects <NEW_LINE> self...
Basic Greedy Algorithim Attributes ---------- knapsacks : List[list] all knapsacks in a list
62598ee3eab8aa0e5d30a3b3
class SMFailed(SMXSO): <NEW_LINE> <INDENT> TAG = (namespaces.stream_management, "failed") <NEW_LINE> condition = xso.Child( [member.xso_class for member in errors.ErrorCondition], required=True, ) <NEW_LINE> counter = xso.Attr( "h", default=None, type_=xso.Integer(), ) <NEW_LINE> def __init__(self, condition=errors.Err...
Server response to :class:`SMEnable` or :class:`SMResume` if stream management fails.
62598ee35f7d997b871f86f3
class Game: <NEW_LINE> <INDENT> def __init__(self, human_players): <NEW_LINE> <INDENT> self.__human_players: list = human_players <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> res: str = "" <NEW_LINE> res += "Below is a list of human players saved in this saved game data:\n" <NEW_LINE> for human_player in ...
This class contains attributes of saved game data.
62598ee3e5267d203ee69f40
class TableCell(object): <NEW_LINE> <INDENT> def __init__(self, table, row, col): <NEW_LINE> <INDENT> if table.cells[(row, col)] == 0: <NEW_LINE> <INDENT> raise IndexError <NEW_LINE> <DEDENT> self.table = table <NEW_LINE> self.cell_id = table.cells[(row, col)] <NEW_LINE> self.row = row <NEW_LINE> self.col = col <NEW_LI...
A cell data of tables.
62598ee3498bea3a75a56170
class CONTEXT(Structure): <NEW_LINE> <INDENT> _fields_ = [ ("ContextFlags", DWORD), ("Dr0", DWORD), ("Dr1", DWORD), ("Dr2", DWORD), ("Dr3", DWORD), ("Dr6", DWORD), ("Dr7", DWORD), ("FloatSave", FLOATING_SAVE_AREA), ("SegGs", DWORD), ("SegFs", DWORD), ("SegEs", DWORD), ("SegDs", DWORD), ("Edi", DWORD), ("Esi", DWORD), (...
this structure holds all values of thread context including register values, segment fields
62598ee3090684286d5929fd
class Basic: <NEW_LINE> <INDENT> @commands.command(pass_context=True) <NEW_LINE> async def ping(self, ctx): <NEW_LINE> <INDENT> await bot.say("Pong!") <NEW_LINE> print ("user has pinged")
Basic documentations
62598ee316aa5153ce3feb38
class Collection(models.Model): <NEW_LINE> <INDENT> content_type = models.ForeignKey(verbose_name='类型', to=ContentType, on_delete=models.CASCADE) <NEW_LINE> object_id = models.PositiveIntegerField(verbose_name='对象') <NEW_LINE> generic_fk_to_object = GenericForeignKey(ct_field='content_type', fk_field='object_id') <NEW_...
通用收藏表
62598ee34527f215b58e8541
class LogController(EntityController): <NEW_LINE> <INDENT> def __init__(self, controlledEntity): <NEW_LINE> <INDENT> self.controlledEntity = controlledEntity <NEW_LINE> <DEDENT> def setEntity(self, controlledEntity): <NEW_LINE> <INDENT> self.Entity = controlledEntity <NEW_LINE> <DEDENT> def respond(self, eventFired): <...
This controller is a very basic controller that controls the movement of logs across the game screen.
62598ee3a8ecb0332586f824
class SimpleAttributesCollector(AttributesCollector): <NEW_LINE> <INDENT> def __init__(self, name, read_only=True): <NEW_LINE> <INDENT> super(SimpleAttributesCollector, self).__init__() <NEW_LINE> self.name = name <NEW_LINE> self.read_only = read_only <NEW_LINE> <DEDENT> def visit_Attribute(self, node): <NEW_LINE> <IND...
Collect only immediately accessed attributes for qualifier. No alias or scope analysis is used. Operators and other special methods are considered, hover subscriptions are.
62598ee38e7ae83300ee76cb
class Button(proto.Message): <NEW_LINE> <INDENT> text = proto.Field(proto.STRING, number=1,) <NEW_LINE> postback = proto.Field(proto.STRING, number=2,)
Contains information about a button. Attributes: text (str): Optional. The text to show on the button. postback (str): Optional. The text to send back to the Dialogflow API or a URI to open.
62598ee3379a373c97d97636
class SparseCode(object): <NEW_LINE> <INDENT> def __init__(self, dict_size, lamb, alpha, k=None): <NEW_LINE> <INDENT> self.dict_size = dict_size <NEW_LINE> self.lamb = lamb <NEW_LINE> self.alpha = alpha <NEW_LINE> self.k = k <NEW_LINE> A = np.random.randn(dict_size[0], dict_size[1]) <NEW_LINE> A -= np.mean(A) <NEW_LINE...
稀疏编码模型
62598ee3d268445f26638eac
class MonitorManagementClientConfiguration(Configuration): <NEW_LINE> <INDENT> def __init__( self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any ) -> None: <NEW_LINE> <INDENT> super(MonitorManagementClientConfiguration, self).__init__(**kwargs) <NEW_LINE> if credential is None: <NEW_LINE> <IND...
Configuration for MonitorManagementClient. 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 of the target ...
62598ee37b25080760ed5ad5
class Takeoff(BaseTask): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> cube_size = 300.0 <NEW_LINE> self.observation_space = spaces.Box( np.array([- cube_size / 2, - cube_size / 2, 0.0, -1.0, -1.0, -1.0, -1.0]), np.array([ cube_size / 2, cube_size / 2, cube_size, 1.0, 1.0, 1.0, 1.0])) <NEW_LI...
Simple task where the goal is to lift off the ground and reach a target height.
62598ee34f6381625f1987da
class Parameters(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Model = Model() <NEW_LINE> self.ModelName = '' <NEW_LINE> self.TimeSeriesHolder = self.Model.EquationSolver.TimeSeries <NEW_LINE> self.TimeAxisVariable = 'k' <NEW_LINE> self.MinWidth = 800 <NEW_LINE> self.MinHeight = 600 <NEW_LIN...
Class to hold common data members that are shared by multiple frame objects. Not all Frames will use all data.
62598ee32ae34c7f260a9723
class IFCurrExpSEMDBase(AbstractPyNNNeuronModelStandard): <NEW_LINE> <INDENT> @default_initial_values({"v", "isyn_exc", "isyn_inh", "inh_input_previous"}) <NEW_LINE> def __init__( self, tau_m=20.0, cm=1.0, v_rest=-65.0, v_reset=-65.0, v_thresh=-50.0, tau_syn_E=5.0, tau_syn_I=5.0, tau_refrac=0.1, i_offset=0.0, v=-65.0, ...
Leaky integrate and fire neuron with an exponentially decaying current input, where the excitatory input depends upon the inhibitory input (see https://www.cit-ec.de/en/nbs/spiking-insect-vision)
62598ee34a966d76dd5ed520
class SensorTemperature(SensorDevice): <NEW_LINE> <INDENT> oid = "sensor.temperature" <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> SensorDevice.__init__(self, **kwargs) <NEW_LINE> self.templates[self.oid] = self._base_template <NEW_LINE> <DEDENT> def new(self, **kwargs): <NEW_LINE> <INDENT> return Senso...
The temperature sensor device object
62598ee3cad5886f8bdc393c
class DfmfTransform(FusionTransform): <NEW_LINE> <INDENT> def __init__(self, max_iter=100, init_type=None, n_run=1, stopping=None, stopping_system=None, fill_value=0, verbose=0, compute_err=False, callback=None, random_state=None, n_jobs=1): <NEW_LINE> <INDENT> super(DfmfTransform, self).__init__() <NEW_LINE> self._set...
Online data transformer into fused space. Attributes ---------- target : fusion_graph : fuser : max_iter : init_type : stopping : stopping_system : fill_value : verbose : compute_err : random_state : n_jobs : Parameters ---------- fuser : max_iter : init_type : stopping : stopping_system : fill_value : verbose : comp...
62598ee385dfad0860cbed86
class MainFrame: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pygame.init() <NEW_LINE> self.width = WIDTH <NEW_LINE> self.height = HEIGHT <NEW_LINE> self.screen = pygame.display.set_mode((self.width, self.height)) <NEW_LINE> pygame.display.set_caption('Jack and the Bean Stalk') <NEW_LINE> background = py...
Initializes and creates game
62598ee330bbd72246468275
class VectorWise(nn.Module): <NEW_LINE> <INDENT> def __init__(self, input_dim, hidden_dim, num_attention_heads, resnet=True): <NEW_LINE> <INDENT> super(VectorWise, self).__init__() <NEW_LINE> self.transformer = TransformerBase(input_size=input_dim, hidden_size=hidden_dim, num_attention_heads=num_attention_heads, resnet...
Dual-FEN Layer vector-wise part
62598ee3925a0f43d25e666a
class ComparisonTestFramework(BitcoinTestFramework): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.num_nodes = 2 <NEW_LINE> self.setup_clean_chain = True <NEW_LINE> <DEDENT> def add_options(self, parser): <NEW_LINE> <INDENT> parser.add_option("--testbinary", dest="testbi...
Test framework for doing p2p comparison testing Sets up some bitcoind binaries: - 1 binary: test binary - 2 binaries: 1 test binary, 1 ref binary - n>2 binaries: 1 test binary, n-1 ref binaries
62598ee3e5267d203ee69f41
class Trie: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.is_word = False <NEW_LINE> self.extensions = defaultdict(Trie) <NEW_LINE> <DEDENT> def add_word(self, word): <NEW_LINE> <INDENT> current_trie = self <NEW_LINE> for c in word: <NEW_LINE> <INDENT> current_trie = current_trie.extensions[c] <NEW_L...
>>> trie = Trie() >>> for word in ['he', 'hers', 'has', 'heir', 'one']: trie.add_word(word) >>> trie.has_been_recorded('he') True >>> trie.has_been_recorded('her') False >>> trie.has_been_recorded('hers') True >>> trie.has_been_recorded('one') True >>> trie.has_been_recorded('two') False
62598ee33d592f4c4edb9531
class LdapUserDialPlanDetailsFieldConfigRequestJson(object): <NEW_LINE> <INDENT> swagger_types = { 'extension': 'str', 'dial_plan_group_id': 'int' } <NEW_LINE> attribute_map = { 'extension': 'extension', 'dial_plan_group_id': 'dialPlanGroupId' } <NEW_LINE> def __init__(self, extension=None, dial_plan_group_id=None): <N...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598ee33617ad0b5ee0476c
class PlaceholderExtension(_PlaceholderManagingExtension): <NEW_LINE> <INDENT> tags = set(['placeholder']) <NEW_LINE> def parse(self, parser): <NEW_LINE> <INDENT> lineno = next(parser.stream).lineno <NEW_LINE> global_type = bool(parser.stream.look().value == "global") <NEW_LINE> if global_type: <NEW_LINE> <INDENT> plac...
`PlaceholderExtension` manages `{% placeholder <NAME> [global] %}` ... `{% endplaceholder %}`. * The `name` can be any Jinja2 expression that can be folded into a constant, with the addition of bare variable names such as `name` meaning the same as `"name"`. This makes it slightly easier to write templates. * ...
62598ee3851cf427c66b690e
class Plugin(ad.Plugin): <NEW_LINE> <INDENT> verbose_name = _("Client vouchers") <NEW_LINE> def setup_explorer_menu(self, site, user_type, m): <NEW_LINE> <INDENT> mg = site.plugins.ledger <NEW_LINE> m = m.add_menu(mg.app_label, mg.verbose_name) <NEW_LINE> m.add_action('client_vouchers.Voucher')
See :class:`lino.core.plugin.Plugin`.
62598ee301c39578d7f113e5
class NvtFamilyInput(graphene.InputObjectType): <NEW_LINE> <INDENT> name = graphene.String( required=True, description="Name of the NVT family to select" ) <NEW_LINE> growing = graphene.Boolean( required=True, description=( 'Whether new NVTs should be added to the ' 'NVT family automatically.' ), ) <NEW_LINE> include_a...
Input object for NVT families Args: name (str): Name of the NVT family to select. growing (bool): Whether new NVTs should be added to the NVT family automatically. all (bool): Whether to include all NVTs in this family.
62598ee3be383301e0251e16
class instantiate(object): <NEW_LINE> <INDENT> def __init__(self, *args, **kw): <NEW_LINE> <INDENT> self.args, self.kw = args, kw <NEW_LINE> <DEDENT> def __call__(self, class_): <NEW_LINE> <INDENT> return class_(*self.args, **self.kw)
A decorator which can be used to instantiate :class:`SchemaNode` elements inline within a class definition. All parameters passed to the decorator and passed along to the :class:`SchemaNode` during instantiation.
62598ee37cff6e4e811b402a
class Bytes(PrimitiveObject, bytes): <NEW_LINE> <INDENT> _struct_type = bytes <NEW_LINE> def __init__(self, context: interfaces.context.ContextInterface, type_name: str, object_info: interfaces.objects.ObjectInformation, length: int = 1) -> None: <NEW_LINE> <INDENT> super().__init__(context = context, type_name = type_...
Primitive Object that handles specific series of bytes.
62598ee3d486a94d0ba2a60a
class Operations: <NEW_LINE> <INDENT> models = _models <NEW_LINE> def __init__(self, client, config, serializer, deserializer) -> None: <NEW_LINE> <INDENT> self._client = client <NEW_LINE> self._serialize = serializer <NEW_LINE> self._deserialize = deserializer <NEW_LINE> self._config = config <NEW_LINE> <DEDENT> def l...
Operations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~azure.mgmt.hanaonazure.models :param client: Client ...
62598ee3656771135c487cd0
class ConnectivityHop(Model): <NEW_LINE> <INDENT> _validation = { 'type': {'readonly': True}, 'id': {'readonly': True}, 'address': {'readonly': True}, 'resource_id': {'readonly': True}, 'next_hop_ids': {'readonly': True}, 'issues': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'type': {'key': 'type', 'type': 'str...
Information about a hop between the source and the destination. Variables are only populated by the server, and will be ignored when sending a request. :ivar type: The type of the hop. :vartype type: str :ivar id: The ID of the hop. :vartype id: str :ivar address: The IP address of the hop. :vartype address: str :iva...
62598ee3dd821e528d6d7582
class Due(object): <NEW_LINE> <INDENT> def __init__(self, interest=0.0, charges=0.0, principle=0.0, current=0.0, arrears=0.0): <NEW_LINE> <INDENT> self.interest = interest <NEW_LINE> self.charges = charges <NEW_LINE> self.principle = principle <NEW_LINE> self.current = current <NEW_LINE> self.arrears = arrears <NEW_LIN...
Details on amounts due for an account.Details on amounts due for an account.
62598ee37d847024c075aa0c
class BetaGreeterStub(object): <NEW_LINE> <INDENT> pass <NEW_LINE> def SayHello(self, request, timeout, metadata=None, with_call=False, protocol_options=None): <NEW_LINE> <INDENT> pass <NEW_LINE> raise NotImplementedError() <NEW_LINE> <DEDENT> SayHello.future = None
The Beta API is deprecated for 0.15.0 and later. It is recommended to use the GA API (classes and functions in this file not marked beta) for all further purposes. This class was generated only to ease transition from grpcio<0.15.0 to grpcio>=0.15.0.
62598ee3442bda511e95aa9f
class Nifti1Extension(object): <NEW_LINE> <INDENT> def __init__(self, code, content): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self._code = extension_codes.code[code] <NEW_LINE> <DEDENT> except KeyError: <NEW_LINE> <INDENT> self._code = code <NEW_LINE> <DEDENT> self._content = self._unmangle(content) <NEW_LINE> <DE...
Baseclass for NIfTI1 header extensions. This class is sufficient to handle very simple text-based extensions, such as `comment`. More sophisticated extensions should/will be supported by dedicated subclasses.
62598ee3379a373c97d97638
class DarwinCoreView(DefaultView): <NEW_LINE> <INDENT> format = 'dwc' <NEW_LINE> grid_default_columns = ['_id', 'gbifIssue', 'scientificName', 'scientificNameAuthorship', 'specificEpithet', 'infraspecificEpithet', 'family', 'genus', 'class', 'locality', 'country', 'viceCounty', 'recordedBy', 'typeStatus', 'catalogNumbe...
View for displaying DwC resources
62598ee399fddb7c1ca62124
class Validator: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.config = configparser.ConfigParser() <NEW_LINE> <DEDENT> def check_config(self): <NEW_LINE> <INDENT> is_file = os.path.isfile(strings.get_config_path()) <NEW_LINE> if is_file: <NEW_LINE> <INDENT> valid_keys = self.check_keys() <NEW_LINE> ...
Class which validates the structure of parser.ini.
62598ee38da39b475be017e8
class AgentAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> list_display = ('name', 'teamid', 'ext', 'haveleft', 'startdate', 'birthday') <NEW_LINE> fieldsets = [ ('Basic Information', {'fields': ['name', 'startdate', 'birthday', 'academystartdate', 'slug', 'teamid', 'agenttype', 'user', 'ext', 'picture', 'parttime', 'part...
Currently contains some redundant field sets for information that will be added later
62598ee37d43ff248742671a
class RawRollbackGreenlet(Greenlet): <NEW_LINE> <INDENT> def __init__(self, connection_pool, delay_interval): <NEW_LINE> <INDENT> Greenlet.__init__(self) <NEW_LINE> self._connection_pool = connection_pool <NEW_LINE> self._delay_interval = delay_interval <NEW_LINE> <DEDENT> def _run(self): <NEW_LINE> <INDENT> gevent.sle...
A Greenlet to roll back a transaction - Sleeps for 2 second - Gets a connection from the pool - Starts a transaction - Does some selection - Rolls back transaction - Return connection to pool
62598ee34f6381625f1987db
class ArtistHandler(PlaylistHandlerBase): <NEW_LINE> <INDENT> def get(self, requested_artist_name): <NEW_LINE> <INDENT> artist_name = utils.deurlify(requested_artist_name) <NEW_LINE> self._render_playlist_view('artist.html', artist_name=artist_name)
Renders an empty artist template
62598ee391f36d47f22301c2
class AminoAcidFile: <NEW_LINE> <INDENT> blosum62_natural = 'AA.blosum62.natural.dat'
Contain file name of amino acid property matrix from the literature. For more amino acid files see: http://graal.ift.ulaval.ca/bioinformatics/gs-kernel/. Attributes ---------- blosum62_natural : string file name of an amino acid matrix.
62598ee3dd821e528d6d7583
class SnapshotDidNotSucceedError(MBSError, RetriableError): <NEW_LINE> <INDENT> pass
Thrown when snapshot status becomes 'error'
62598ee38a43f66fc4bf07b0
class UIManager(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._controlPanel = ControlPanelWindow() <NEW_LINE> self._outputWindows = dict() <NEW_LINE> self._windowsPositions = dict() <NEW_LINE> try: <NEW_LINE> <INDENT> winConfigFile = open(UIConfig.WindowsPositionsFileName, "r") <NEW_LINE> st...
UIManager controls windows visibility and UI related stuff
62598ee3e5267d203ee69f43
class Humidity: <NEW_LINE> <INDENT> up_threshold = 60 <NEW_LINE> down_threshold = 55
主要用来判断人体状态
62598ee37047854f4633da14
class BigQueryWrite(beam.PTransform): <NEW_LINE> <INDENT> def __init__(self, table, batch_size=500, write_disposition=bigquery.BigQueryDisposition.WRITE_TRUNCATE): <NEW_LINE> <INDENT> super(BigQueryWrite, self).__init__() <NEW_LINE> self.table = table <NEW_LINE> self.write_disposition = write_disposition <NEW_LINE> sel...
Wrapper over Apache Beam BigQuery Write. This is an abstract class and one must override the `column_list` property for valid write transform. This property should return a list of tuples as [ ('column_name', 'column_type') ]
62598ee376e4537e8c3edbf6
class Literal(Namespace): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__()
Superclass for all the literal types in PSIL.
62598ee36e29344779afec6e
class PhotosEndpointTestCase(BaseAuthenticatedEndpointTestCase): <NEW_LINE> <INDENT> def test_photo(self): <NEW_LINE> <INDENT> response = self.api.photos(self.default_photoid) <NEW_LINE> assert 'photo' in response <NEW_LINE> <DEDENT> def test_attach_photo(self): <NEW_LINE> <INDENT> response = self.api.checkins.add(para...
General
62598ee37d847024c075aa0d
class ServerBusy(NoApplicableCode): <NEW_LINE> <INDENT> code = 400 <NEW_LINE> description = 'Maximum number of processes exceeded' <NEW_LINE> def get_body(self, environ=None): <NEW_LINE> <INDENT> return text_type(( u'<?xml version="1.0" encoding="UTF-8"?>\n' u'<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/...
Max number of operations exceeded
62598ee310dbd63aa1c6f1b0
class Extension(_Extension): <NEW_LINE> <INDENT> def __init__(self, name, sources, *args, **kw): <NEW_LINE> <INDENT> self.py_limited_api = kw.pop("py_limited_api", False) <NEW_LINE> super().__init__(name, sources, *args, **kw) <NEW_LINE> <DEDENT> def _convert_pyx_sources_to_lang(self): <NEW_LINE> <INDENT> if _have_cyth...
Extension that uses '.c' files in place of '.pyx' files
62598ee33617ad0b5ee0476e
class TestUploadFile(): <NEW_LINE> <INDENT> def preprocess_url(self, request_url: str): <NEW_LINE> <INDENT> if re.fullmatch('.*/+', request_url) is None: <NEW_LINE> <INDENT> return request_url <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return re.compile(request_url.rstrip('/') + '/+') <NEW_LINE> <DEDENT> <DEDENT> @r...
Test Class for upload_file
62598ee366673b3332c2e9e6
class User(graphene.ObjectType): <NEW_LINE> <INDENT> active = graphene.Boolean(description='User status (active or suspended)') <NEW_LINE> groups = graphene.Int(description='Group count') <NEW_LINE> last_login_at = graphene.types.datetime.DateTime( description='Date of last request performed by the user') <NEW_LINE> ro...
A user.
62598ee3aad79263cf42ce53
class ParamWrapper: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def setIMax(self, imax): <NEW_LINE> <INDENT> self.imax = imax <NEW_LINE> <DEDENT> def getIMax(self): <NEW_LINE> <INDENT> return self.imax <NEW_LINE> <DEDENT> def setIMin(self, imin): <NEW_LINE> <INDENT> self.imin = ...
classdocs
62598ee3f7d966606f74662f
class PprzSetting: <NEW_LINE> <INDENT> def __init__(self, var, index, shortname, min_value, max_value, step, values, xml): <NEW_LINE> <INDENT> self.var = var <NEW_LINE> self.index = index <NEW_LINE> self.shortname = shortname <NEW_LINE> self.min_value = min_value <NEW_LINE> self.max_value = max_value <NEW_LINE> self.st...
Paparazzi Setting Class
62598ee3c432627299fa15f6
class BashRunner: <NEW_LINE> <INDENT> def __init__(self, interpreter: BaseInterpreter): <NEW_LINE> <INDENT> self.interpreter = interpreter <NEW_LINE> <DEDENT> def run(self, inp: IO = None, out: IO = None, err: IO = None): <NEW_LINE> <INDENT> inp = inp if inp else self.interpreter.inp <NEW_LINE> out = out if out else se...
Класс для запуска интерпретатора.
62598ee38e7ae83300ee76ce
class WordEmbeddingModel(): <NEW_LINE> <INDENT> def __init__(self, model): <NEW_LINE> <INDENT> self.model = model <NEW_LINE> self.embedding_matrix = None <NEW_LINE> self.create_embedding_matrix() <NEW_LINE> <DEDENT> def create_embedding_matrix(self): <NEW_LINE> <INDENT> embedding_matrix = np.zeros((len(self.model.wv.vo...
Word embedding model.
62598ee3b7558d5895461c85
class MultimailConfig(AppConfig): <NEW_LINE> <INDENT> name = 'multimail' <NEW_LINE> def ready(self): <NEW_LINE> <INDENT> from django.contrib.auth import get_user_model <NEW_LINE> setup_signals(get_user_model())
For Django 1.7, set the ready callback for handling User object signal configuration.
62598ee3435de62698e9a416
class TransportTestCase(unittest.TestCase): <NEW_LINE> <INDENT> klass = None <NEW_LINE> if Crypto is None: <NEW_LINE> <INDENT> skip = "cannot run w/o PyCrypto" <NEW_LINE> <DEDENT> if pyasn1 is None: <NEW_LINE> <INDENT> skip = "cannot run w/o PyASN1" <NEW_LINE> <DEDENT> def setUp(self): <NEW_LINE> <INDENT> self.transpor...
Base class for transport test cases.
62598ee3460517430c430ac7
class DataConnectorList(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'next_link': {'readonly': True}, 'value': {'required': True}, } <NEW_LINE> _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, 'value': {'key': 'value', 'type': '[DataConnector]'}, } <NEW_LINE> def __init__( self, *...
List all the data connectors. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. :ivar next_link: URL to fetch the next set of data connectors. :vartype next_link: str :param value: Required. Array of data conne...
62598ee3097d151d1a2bf65f
class BinomialCluster: <NEW_LINE> <INDENT> def __init__(self, p=None): <NEW_LINE> <INDENT> self.p = asarray(p, float) <NEW_LINE> <DEDENT> dim = property(lambda self: len(self.p)) <NEW_LINE> def sample_points(self, n, rng=random): <NEW_LINE> <INDENT> x = empty((n, self.dim), int) <NEW_LINE> for i in range(n): <NEW_LINE>...
A cluster of binary data. Each dimension has a separate probability of being True. Parameterized by a vector 'p', where p[d] is the probability that the 'd' coordinate is true.
62598ee3379a373c97d9763a
class IInteractiveMap(Interface): <NEW_LINE> <INDENT> pass
Marker interface for all interactive maps content
62598ee3379a373c97d9763b
class GameState(Enum): <NEW_LINE> <INDENT> STARTUP = 0 <NEW_LINE> RUNNING = 1 <NEW_LINE> PAUSED = 2 <NEW_LINE> GAMEOVER = 3 <NEW_LINE> RUNNINGWRAP = 4
State of the game
62598ee3a8370b77170eea24
class SMIMETestCase(unittest.TestCase): <NEW_LINE> <INDENT> FUGLU_HOST = "127.0.0.1" <NEW_LINE> FUGLU_PORT = 7721 <NEW_LINE> DUMMY_PORT = 7722 <NEW_LINE> FUGLUCONTROL_PORT = 7723 <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> time.sleep(5) <NEW_LINE> self.config = RawConfigParser() <NEW_LINE> self.config.read([TESTDAT...
Email Signature Tests
62598ee3dd821e528d6d7585
class SaveableResponse: <NEW_LINE> <INDENT> def __init__(self, content, indent=2, precision=2): <NEW_LINE> <INDENT> self.content = content <NEW_LINE> self.indent = indent <NEW_LINE> self.precision = precision <NEW_LINE> <DEDENT> def save(self, out, format): <NEW_LINE> <INDENT> if format != 'JSON': <NEW_LINE> <INDENT> r...
Wrapper class for JSON response that makes it behave like a PIL.Image object. TileStache.getTile() expects to be able to save one of these to a buffer.
62598ee3ac7a0e7691f70b56
class TestInlineResponse2009(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 testInlineResponse2009(self): <NEW_LINE> <INDENT> model = swagger_client.models.inline_response_200_9.InlineResponse2009...
InlineResponse2009 unit test stubs
62598ee3baa26c4b54d4d910
class LaunchNotebookResponseWithS3(LaunchNotebookResponseWithoutS3): <NEW_LINE> <INDENT> cloudstorage = fields.List( fields.Nested(LaunchNotebookResponseS3mount()), required=False, missing=[], )
The response sent after a successful creation of a jupyter server. Or if the user tries to create a server that already exists. Used only for serializing the server class into a proper response.
62598ee3d486a94d0ba2a60d
class TestQueueList(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.queue = QueueList() <NEW_LINE> self.A = Node(1) <NEW_LINE> self.B = Node(2) <NEW_LINE> self.C = Node(3) <NEW_LINE> <DEDENT> def testEnqueue(self): <NEW_LINE> <INDENT> self.queue.enqueue(self.A) <NEW_LINE> self.assertEq...
Test the QueueList class
62598ee34428ac0f6e656b93
class Adapter(Target, Adaptee): <NEW_LINE> <INDENT> def request(self) -> str: <NEW_LINE> <INDENT> return f"Adapter: (TRANSLATED) {self.specific_request()[::-1]}"
The Adapter makes the Adaptee's interface compatible with the Target's interface via multiple inheritance.
62598ee37d847024c075aa0f
class Export(Model): <NEW_LINE> <INDENT> _validation = { 'platform': {'readonly': True}, 'status': {'readonly': True}, 'download_uri': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'platform': {'key': 'Platform', 'type': 'str'}, 'status': {'key': 'Status', 'type': 'str'}, 'download_uri': {'key': 'DownloadUri', 't...
Export. Variables are only populated by the server, and will be ignored when sending a request. :ivar platform: Possible values include: 'CoreML', 'TensorFlow' :vartype platform: str or ~azure.cognitiveservices.vision.customvision.training.models.enum :ivar status: Possible values include: 'Exporting', 'Failed', 'Do...
62598ee33c8af77a43b67253
class UserRatingSummaryResponseRecommended(object): <NEW_LINE> <INDENT> openapi_types = { 'total': 'int', 'unique': 'int' } <NEW_LINE> attribute_map = { 'total': 'total', 'unique': 'unique' } <NEW_LINE> def __init__(self, total=None, unique=None, local_vars_configuration=None): <NEW_LINE> <INDENT> if local_vars_configu...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62598ee356ac1b37e630082d
class Hrefer(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.linksUrl = 'http://blogsearch.google.com/changes.xml?last=120' <NEW_LINE> self.rxUrls = re.compile(r'url="([^"]*?)"') <NEW_LINE> self.selfPath = os.path.dirname(__file__) <NEW_LINE> self.linksFileName = os.path.join(self.selfPath, 'l...
Hrefer v.6.0
62598ee35f7d997b871f86f6
class CheckPhoneAndNameResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Result = None <NEW_LINE> self.Description = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Result = params.get("Result") <NEW_LINE> self.De...
CheckPhoneAndName返回参数结构体
62598ee3627d3e7fe0e054c9
class Handler(object): <NEW_LINE> <INDENT> def __init__(self, backend, proto, http_req=None): <NEW_LINE> <INDENT> self.backend = backend <NEW_LINE> self.proto = proto <NEW_LINE> self.http_req = http_req <NEW_LINE> <DEDENT> def handle(self): <NEW_LINE> <INDENT> raise NotImplementedError(self.handle)
Smart protocol command handler base class.
62598ee3a8370b77170eea25
class Cpp14Gpp(CompiledLanguage): <NEW_LINE> <INDENT> @property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return "C++14 / g++" <NEW_LINE> <DEDENT> @property <NEW_LINE> def source_extensions(self): <NEW_LINE> <INDENT> return [".cpp", ".cc", ".cxx", ".c++", ".C"] <NEW_LINE> <DEDENT> @property <NEW_LINE> def header_e...
This defines the C++ programming language, compiled with g++ (the version available on the system) using the C++14 standard.
62598ee37d847024c075aa10
class BaseInternalSource(object): <NEW_LINE> <INDENT> fallback_field = None <NEW_LINE> source = DataSource.internal <NEW_LINE> def should_search(self, query, results): <NEW_LINE> <INDENT> if not super(BaseInternalSource, self).should_search( query, results): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> if not (...
A source based on our own crowd-sourced internal data.
62598ee321bff66bcd721293
class SMILESEncoderDecoderFineTuner(SMILESEncoderDecoderABC): <NEW_LINE> <INDENT> def __init__( self, model: SMILESEncoderDecoder, output_dim: int, initialize: bool = True, update_features: bool = True, n_dense_layers: int = 1, n_dense_units: int = 128, dense_activation: str = 'relu', dense_dropout: float = 0., dense_i...
The fine-tuner of SMILESEncoderDecoder model. Loads embedding and encoder blocks, and trains a new decoder block. Parameters ---------- model : SMILESEncoderDecoder An encoder-decoder model to fine-tune. output_dim : int The number of output neurons. initialize : bool, default True Whether to initialize de...
62598ee3097d151d1a2bf661
class DescribeMediaInfosRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.FileIds = None <NEW_LINE> self.Filters = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.FileIds = params.get("FileIds") <NEW_LINE> self.Filters = params.get("Filters")
DescribeMediaInfos请求参数结构体
62598ee3f9cc0f698b1c45ef
class AjaxMixin(object): <NEW_LINE> <INDENT> Media = None <NEW_LINE> def get_template_names(self): <NEW_LINE> <INDENT> if self.request.is_ajax() and self.template_name is not None: <NEW_LINE> <INDENT> return [self.template_name.replace('.', '_inline.')] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return super(AjaxMix...
Add paths of extra assets to the response-header. To add custom CSS and JS per view, add a Media class to the view class: class MyView(TemplateView): class Media: css = {'all': ('form_specific.css', )} js = ('form_specific.js', ) oncomplete_js = ('run_when_all_other_media_is_loaded.js', )
62598ee37d43ff248742671c
class TestTimes2D: <NEW_LINE> <INDENT> def setup(self): <NEW_LINE> <INDENT> self.filename = 'test.h5' <NEW_LINE> self.group = h5py.File(self.filename).create_group('group') <NEW_LINE> self.data = generate.times(10,20,2) <NEW_LINE> <DEDENT> def teardown(self): <NEW_LINE> <INDENT> remove(self.filename) <NEW_LINE> <DEDENT...
Test of the Times2D class
62598ee3d6c5a102081e0772
class TestStripping(InvenioTestCase): <NEW_LINE> <INDENT> if UNIDECODE_AVAILABLE: <NEW_LINE> <INDENT> def test_text_to_ascii(self): <NEW_LINE> <INDENT> self.assert_(translate_to_ascii( ["á í Ú", "H\xc3\xb6hne", "Åge Øst Vær", "normal"]) in (["a i U", "Hohne", "Age Ost Vaer", "normal"], ['a i U', 'Hoehne', 'Age Ost Vaer...
Test for stripping functions like accents and control characters.
62598ee3e64d504609df86e0
class InsertDataToTablesSqlServer: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def transfer_data_toDB(self, json_file, conn_str): <NEW_LINE> <INDENT> sql = "{CALL InsertIntoTables (?, ?, ?, ?, ?, ?) }" <NEW_LINE> connection = pyodbc.connect(conn_str) <NEW_LINE> cursor = connecti...
Class represent inserting data to SqlServer tables
62598ee321a7993f00c645af
class lcmap(dict): <NEW_LINE> <INDENT> def __missing__(self, key): <NEW_LINE> <INDENT> return 0
Lets you return 0 if you look for an object that is not in the dictionary.
62598ee37047854f4633da17
class LanguageBatchResultItem(Model): <NEW_LINE> <INDENT> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'detected_languages': {'key': 'detectedLanguages', 'type': '[DetectedLanguage]'}, 'statistics': {'key': 'statistics', 'type': 'DocumentStatistics'}, } <NEW_LINE> def __init__(self, *, id: str=None, detected_...
LanguageBatchResultItem. :param id: Unique, non-empty document identifier. :type id: str :param detected_languages: A list of extracted languages. :type detected_languages: list[~azure.cognitiveservices.language.textanalytics.models.DetectedLanguage] :param statistics: (Optional) if showStats=true was specified in th...
62598ee3baa26c4b54d4d912
class SoftwareImages(FactsBase): <NEW_LINE> <INDENT> def populate(self): <NEW_LINE> <INDENT> self._fact_name = 'software_images' <NEW_LINE> self._url = '/rest/v10.04/system?attributes=software_images' <NEW_LINE> super(SoftwareImages, self).populate()
Software Images facts class
62598ee323849d37ff84f6f7
class NoFit: <NEW_LINE> <INDENT> def __init__(self, a=None, b=None): <NEW_LINE> <INDENT> self.a = a <NEW_LINE> self.b = b
Small class to test parameter dispatching.
62598ee33c8af77a43b67254
class UserSerializerLite(serializers.HyperlinkedModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = User <NEW_LINE> fields = ('url', 'username')
只包含 'url' 'username' 的User序列化器
62598ee30a50d4780f7039ec
class CatalogueMixin(TimeStampedMixin): <NEW_LINE> <INDENT> name = models.CharField( max_length=600, verbose_name='name' ) <NEW_LINE> is_active = models.BooleanField( default=True, verbose_name='is active' ) <NEW_LINE> was_deleted = models.BooleanField( default=False, verbose_name='was deleted' ) <NEW_LINE> class Meta:...
Abstract model that defines name, is active and extends from TimeStampedMixin. This model must be used as the base for catalogue models in the project.
62598ee3097d151d1a2bf662
class QWeb(orm.AbstractModel): <NEW_LINE> <INDENT> _inherit = 'ir.qweb' <NEW_LINE> URL_ATTRS = { 'form': 'action', 'a': 'href', } <NEW_LINE> CDN_TRIGGERS = { 'link': 'href', 'script': 'src', 'img': 'src', } <NEW_LINE> PRESERVE_WHITESPACE = [ 'pre', 'textarea', 'script', 'style', ] <NEW_LINE> def render_attribut...
QWeb object for rendering stuff in the website context
62598ee3be383301e0251e1c
class Agent: <NEW_LINE> <INDENT> def __init__(self, agent_name, environment=None): <NEW_LINE> <INDENT> self.agent_info = {} <NEW_LINE> self.collected_info = {} <NEW_LINE> self.agent_name = agent_name <NEW_LINE> self.environment = environment <NEW_LINE> Agent.__agent_list[agent_name] = self <NEW_LINE> <DEDENT> __agent_l...
The parent class of all agents The Agent Superclass sets the framework by which all agents can perform their tasks. An agent can be defined as a class that contains all necessary data and methods to perform a unique set of tasks individually. Agent Oriented Programming(AOP) is centered around all functions of a progra...
62598ee37cff6e4e811b4030
class INotification(object): <NEW_LINE> <INDENT> def getName(self): <NEW_LINE> <INDENT> raise NotImplementedError(self) <NEW_LINE> <DEDENT> def setBody(self, body): <NEW_LINE> <INDENT> raise NotImplementedError(self) <NEW_LINE> <DEDENT> def getBody(self): <NEW_LINE> <INDENT> raise NotImplementedError(self) <NEW_LINE> <...
The interface definition for a PureMVC Notification. PureMVC does not rely upon underlying event models such as the one provided with Flash, and ActionScript 3 does not have an inherent event model. The Observer Pattern as implemented within PureMVC exists to support event-driven communication between the application...
62598ee3656771135c487cd6
class RankAirlinePerAirport(MRJob): <NEW_LINE> <INDENT> def mapper(self, _, line): <NEW_LINE> <INDENT> fields = line.strip().split('|') <NEW_LINE> airline, airport = fields[5], fields[7] <NEW_LINE> delay = fields[10] <NEW_LINE> yield (airport, airline), (float(delay), 1) <NEW_LINE> <DEDENT> def combiner(self, key, dela...
Group 2.1 For each airport, rank the airline by on-time departure performance. Capstone: Top 10 airlines per airport based on on-time departure performance. Each file line is composed of the following 19 fields in order as is: 0-4: year, month, dayofmonth, dayofweek, flight_date, 5-9: unique_carrier, flightNu...
62598ee3498bea3a75a56178
class OpenERPSession(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._creation_time = time.time() <NEW_LINE> self._db = False <NEW_LINE> self._uid = False <NEW_LINE> self._login = False <NEW_LINE> self._password = False <NEW_LINE> self._suicide = False <NEW_LINE> self.context = {} <NEW_LINE> s...
An OpenERP RPC session, a given user can own multiple such sessions in a web session. .. attribute:: context The session context, a ``dict``. Can be reloaded by calling :meth:`openerpweb.openerpweb.OpenERPSession.get_context` .. attribute:: domains_store A ``dict`` matching domain keys to evaluable (but...
62598ee35166f23b2e241a1a
class OrbitCounter(AuxiliaryDataTimeSeries): <NEW_LINE> <INDENT> CDF_TYPE = { 'AscendingNodeTime': CDF_EPOCH_TYPE, 'OrbitNumber': CDF_INT4_TYPE, 'AscendingNodeLongitude': CDF_DOUBLE_TYPE, 'OrbitSource': CDF_INT1_TYPE, } <NEW_LINE> CDF_INTERP_TYPE = { 'AscendingNodeTime': CDF_EPOCH_TYPE, 'OrbitNumber': CDF_INT4_TYPE, 'A...
Orbit counter time-series class.
62598ee36aa9bd52df0d34f3
class InfectiousDiseasesPlugin(plugins.OpalPlugin): <NEW_LINE> <INDENT> javascripts = { 'opal.controllers': [ 'js/infectiousdiseases/controllers/tropical_liaison_add_patient.js', 'js/infectiousdiseases/controllers/tropical_liaison_end_liaison.js', 'js/infectiousdiseases/controllers/virology_hospital_number.js', ] } <NE...
Main entrypoint to expose this plugin to our OPAL application.
62598ee3460517430c430acb
class BaseAdaptor(object): <NEW_LINE> <INDENT> models = None <NEW_LINE> def __init__(self, model, app_model, manifest): <NEW_LINE> <INDENT> self.model = model <NEW_LINE> self.app_model = app_model <NEW_LINE> self.manifest = manifest <NEW_LINE> <DEDENT> def adapt(self, data): <NEW_LINE> <INDENT> return data <NEW_LINE> <...
`models` - a list of models in a format "<app_label>.<model_name>" that the adaptor is applied to. Note: - adaptors run in order of it's definition - adaptors data is modified by a previous adaptor - you should not rely on data being changed by the previous adaptor, since this behaviour is likely to change
62598ee363b5f9789fe837a7
class TestResourceSpecialAttributes: <NEW_LINE> <INDENT> def test_attributes_are_sorted_in_custom_order(self): <NEW_LINE> <INDENT> data = FullResource() <NEW_LINE> attribs = iter(data) <NEW_LINE> assert list(attribs) == [ "Type", "DependsOn", "Metadata", "CreationPolicy", "UpdatePolicy", "UpdateReplacePolicy", "Deletio...
Verify special behaviour for some attributes on a CloudFormation Resource
62598ee3d268445f26638eb0
class ServicePoliciesExtended(object): <NEW_LINE> <INDENT> swagger_types = { 'policies': 'list[ServicePolicyExtendedExtended]', 'resume': 'str', 'total': 'int' } <NEW_LINE> attribute_map = { 'policies': 'policies', 'resume': 'resume', 'total': 'total' } <NEW_LINE> def __init__(self, policies=None, resume=None, total=No...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598ee34e4d562566370a5d
class NotConnectedError(Exception): <NEW_LINE> <INDENT> pass
Raised when an operation is attempted on a disconnected channel.
62598ee32eb69b55b15a06ab
class TestDagLongestPathLength(object): <NEW_LINE> <INDENT> def test_unweighted(self): <NEW_LINE> <INDENT> edges = [(1, 2), (2, 3), (2, 4), (3, 5), (5, 6), (5, 7)] <NEW_LINE> G = nx.DiGraph(edges) <NEW_LINE> assert nx.dag_longest_path_length(G) == 4 <NEW_LINE> edges = [(1, 2), (2, 3), (3, 4), (4, 5), (1, 3), (1, 5), (3...
Unit tests for computing the length of a longest path in a directed acyclic graph.
62598ee3be8e80087fbbd691
class RemoveFileMemberError(bb.Union): <NEW_LINE> <INDENT> _catch_all = 'other' <NEW_LINE> other = None <NEW_LINE> @classmethod <NEW_LINE> def user_error(cls, val): <NEW_LINE> <INDENT> return cls('user_error', val) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def access_error(cls, val): <NEW_LINE> <INDENT> return cls('a...
Errors for :meth:`dropbox.dropbox.Dropbox.sharing_remove_file_member_2`. This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar MemberAccessLevelResult sharing.RemoveFileMemberError.n...
62598ee391f36d47f22301c5
class Particle: <NEW_LINE> <INDENT> def __init__( self, m: int, parameter: Parameter, weight: float, sum_stat: dict, distance: float, accepted: bool = True, proposal_id: int = 0, preliminary: bool = False, ): <NEW_LINE> <INDENT> self.m = m <NEW_LINE> self.parameter = parameter <NEW_LINE> self.weight = weight <NEW_LINE>...
An (accepted or rejected) particle, containing the information that will also be stored in the database. Stores all summary statistics that were generated during the creation of this particle, and a flag indicating whether this particle was accepted or not. Parameters ---------- m: The model index. parameter: ...
62598ee32ae34c7f260a972c