code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class RuntimeStorage(BaseStorage): <NEW_LINE> <INDENT> def __init__(self, config, releases=None): <NEW_LINE> <INDENT> super(RuntimeStorage, self).__init__(config) <NEW_LINE> if releases is None: <NEW_LINE> <INDENT> self._data = {} <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self._data = {rel.name:rel for rel in relea... | A simple storage used for the current runtime and then disposed of. | 62598f26ab23a570cc2d44c5 |
class ReadonlyWidget(TextInput): <NEW_LINE> <INDENT> def render(self, name, value, attrs=None): <NEW_LINE> <INDENT> if 'readonly' not in self.attrs: <NEW_LINE> <INDENT> self.attrs['readonly'] = 'readonly' <NEW_LINE> <DEDENT> if 'value' in self.attrs: <NEW_LINE> <INDENT> value = self.attrs.get('value') <NEW_LINE> <DEDEN... | This renders a readonly field that can also override the default display
value. | 62598f264c34283577619188 |
class FollowUser(graphene.Mutation): <NEW_LINE> <INDENT> class Arguments: <NEW_LINE> <INDENT> userId = graphene.Int(required=True) <NEW_LINE> <DEDENT> Output = types.FollowUnfollowResponse <NEW_LINE> @login_required <NEW_LINE> def mutate(self, info, **kwargs): <NEW_LINE> <INDENT> userId = kwargs.get('userId') <NEW_LINE... | Follow User | 62598f26091ae35668703abe |
class PackageValidationResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'validation_name': {'readonly': True}, 'is_valid': {'readonly': True}, 'errors': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'validation_name': {'key': 'validationName', 'type': 'str'}, 'is_valid': {'key': 'isValid', ... | The validation results. There's validation on package when it's created or updated.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar validation_name: Validation name.
:vartype validation_name: str
:ivar is_valid: Indicates whether the package passed the validation.
:vartyp... | 62598f26c4546d3d9def69c0 |
class CmdGPSConf(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.__parser = optparse.OptionParser(usage="%prog [{ [-m MODEL] [-i INTERVAL] [-t TALLY] [-f REPORT_FILE] " "[-l { 0 | 1 }] | -d }] [-v]", version="%prog 1.0") <NEW_LINE> self.__parser.add_option("--model", "-m", type="string", nargs... | unix command line handler | 62598f26187af65679d2935f |
class Form(wx.Panel): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(Form, self).__init__(*args, **kwargs) <NEW_LINE> self.referrers = ['friends', 'advertising', 'websearch', 'yellowpages'] <NEW_LINE> self.colors = ['blue', 'red', 'yellow', 'orange', 'green', 'purple', 'navy blue', '... | The Form class is a wx.Panel that creates a bunch of controls
and handlers for callbacks. Doing the layout of the controls is
the responsibility of subclasses (by means of the doLayout()
method). | 62598f26091ae35668703ac0 |
class VtBarData(VtBaseData): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(VtBarData, self).__init__() <NEW_LINE> self.vtSymbol = EMPTY_STRING <NEW_LINE> self.symbol = EMPTY_STRING <NEW_LINE> self.exchange = EMPTY_STRING <NEW_LINE> self.open = EMPTY_FLOAT <NEW_LINE> self.high = EMPTY_FLOAT <NEW_LINE... | K线数据 | 62598f26ad47b63b2c5a66c1 |
class CtaPositionData(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.gatewayName = EMPTY_STRING <NEW_LINE> self.symbol = EMPTY_STRING <NEW_LINE> self.exchange = EMPTY_STRING <NEW_LINE> self.vtSymbol = EMPTY_STRING <NEW_LINE> self.direction = EMPTY_STRING <NEW_LINE> self.position = EMPTY_INT <... | 持仓数据类 | 62598f263cc13d1c6d464626 |
class NodeBase: <NEW_LINE> <INDENT> def __init__(self, env_state, tree, parent, p_id_acted_last, is_terminal, depth): <NEW_LINE> <INDENT> self.env_state = env_state <NEW_LINE> self.parent = parent <NEW_LINE> self.p_id_acting_next = self.env_state[EnvDictIdxs.current_player] <NEW_LINE> self.p_id_acted_last = p_id_acted_... | Base node from which all nodes extend | 62598f26c4546d3d9def69c3 |
class FeinCMSModelAdmin(_feincms_tree_editor): <NEW_LINE> <INDENT> form = MPTTAdminForm <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> warnings.warn( "mptt.admin.FeinCMSModelAdmin has been deprecated, use " "feincms.admin.tree_editor.TreeEditor instead.", UserWarning, ) <NEW_LINE> super(FeinCMSMode... | A ModelAdmin to add changelist tree view and editing capabilities.
Requires FeinCMS to be installed. | 62598f264c3428357761918f |
class CityHallSchema(SchemaObject): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.schema = 'CityHall' | Schema Mixin for CityHall
Usage: place after django model in class definition, schema will return the schema.org url for the object
A city hall. | 62598f2626238365f5faba47 |
class OnOffOption(Option): <NEW_LINE> <INDENT> def __init__(self, attribute_name, window_option=False): <NEW_LINE> <INDENT> self.attribute_name = attribute_name <NEW_LINE> self.window_option = window_option <NEW_LINE> <DEDENT> def get_all_values(self, pymux): <NEW_LINE> <INDENT> return ['on', 'off'] <NEW_LINE> <DEDENT>... | Boolean on/off option. | 62598f26fbf16365ca792f62 |
class QLearningAgent(ReinforcementAgent): <NEW_LINE> <INDENT> def __init__(self, **args): <NEW_LINE> <INDENT> ReinforcementAgent.__init__(self, **args) <NEW_LINE> self.Q = dict() <NEW_LINE> <DEDENT> def getQValue(self, state, action): <NEW_LINE> <INDENT> return self.Q[state, action] if (state, action) in self.Q else 0 ... | 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... | 62598f26c4546d3d9def69c4 |
class Scoreboard: <NEW_LINE> <INDENT> def __init__(self, ai_settings, screen, stats): <NEW_LINE> <INDENT> self.screen = screen <NEW_LINE> self.screen_rect = screen.get_rect() <NEW_LINE> self.ai_settings = ai_settings <NEW_LINE> self.stats = stats <NEW_LINE> self.text_color = (30, 30, 30) <NEW_LINE> self.font = pygame.s... | A class to report scoring information. | 62598f264c34283577619191 |
class TestContracterCore(object): <NEW_LINE> <INDENT> def test_init(self): <NEW_LINE> <INDENT> ContracterCore() <NEW_LINE> <DEDENT> @mock.patch.object(Core, "get_info") <NEW_LINE> def test_get_info(self, m_info): <NEW_LINE> <INDENT> with DummyDB() as session: <NEW_LINE> <INDENT> core = ContracterCore() <NEW_LINE> m_inf... | Test ContracterCore. | 62598f263cc13d1c6d46462b |
class ColorString: <NEW_LINE> <INDENT> def __init__(self, parts): <NEW_LINE> <INDENT> self.parts = parts <NEW_LINE> self.original_type = None <NEW_LINE> self.original_bytes = None <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_dp(cls, text, use_unicode_for_glyphs=True): <NEW_LINE> <INDENT> from .grammars.dp impor... | Class representing a colored string | 62598f26187af65679d29364 |
class HasSourceCountBase(Rule): <NEW_LINE> <INDENT> labels = [ _('Number of instances:'), _('Number must be:')] <NEW_LINE> name = 'Objects with <count> sources' <NEW_LINE> description = "Matches objects that have a certain number of sources " "connected to it (actually citations are count... | Objects having sources | 62598f26ab23a570cc2d44cc |
class AdvancedTagField(Select2TagsField): <NEW_LINE> <INDENT> widget = AdvancedTagWidget(multiple=True) <NEW_LINE> def pre_validate(self, form): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def process_formdata(self, valuelist): <NEW_LINE> <INDENT> if valuelist: <NEW_LINE> <INDENT> self.data = [] <NEW_LINE> for tagname... | Custom tag field. Supports tags that do not exist yet. | 62598f26187af65679d29365 |
class CategoryDesign(CoreModel): <NEW_LINE> <INDENT> parent = models.ForeignKey( "self", null=True, on_delete=models.CASCADE, related_name="children", ) <NEW_LINE> name = models.CharField(max_length=255) <NEW_LINE> slug = models.SlugField(unique=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> ordering = ["-id"] <NEW_L... | Category design model.
Category design entity to group designs | 62598f2626238365f5faba51 |
class Backend(object): <NEW_LINE> <INDENT> def __init__(self, redis, channel): <NEW_LINE> <INDENT> self.room_clients = {} <NEW_LINE> self.pubsub = redis.pubsub() <NEW_LINE> self.pubsub.subscribe(channel) <NEW_LINE> <DEDENT> def __iter_data(self): <NEW_LINE> <INDENT> for message in self.pubsub.listen(): <NEW_LINE> <INDE... | Interface for registering and updating WebSocket clients. | 62598f263cc13d1c6d464636 |
class CharBuffer: <NEW_LINE> <INDENT> def __init__(self, string): <NEW_LINE> <INDENT> if string: <NEW_LINE> <INDENT> self.buffer = list(string) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.buffer = [] <NEW_LINE> <DEDENT> <DEDENT> def peek(self): <NEW_LINE> <INDENT> if self.buffer: <NEW_LINE> <INDENT> return self.... | Helps reading NEXUS-words and characters from a buffer (semi-PRIVATE).
This class is not intended for public use (any more). | 62598f26627d3e7fe0e05d4a |
class GlossCNNEmbedKNRM(KNRM): <NEW_LINE> <INDENT> def __init__(self, para, ext_data=None): <NEW_LINE> <INDENT> super(GlossCNNEmbedKNRM, self).__init__(para, ext_data) <NEW_LINE> assert ext_data.word_emb is not None <NEW_LINE> assert ext_data.entity_desp is not None <NEW_LINE> assert para.desp_sent_len <NEW_LINE> self.... | Cnn of the description's first 20 words | 62598f27091ae35668703ad2 |
class Solution: <NEW_LINE> <INDENT> def twoSum(self, nums, target): <NEW_LINE> <INDENT> if len(nums) <= 1: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> buff_dict = {} <NEW_LINE> for i in range(len(nums)): <NEW_LINE> <INDENT> if nums[i] in buff_dict: <NEW_LINE> <INDENT> return [buff_dict[nums[i]], i] <NEW_LINE> ... | 1st practice:Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice. | 62598f27c4546d3d9def69ca |
class TrafficBilledInForeignCountries(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(TrafficBilledInForeignCountries, self).__init__() <NEW_LINE> self.originating_or_terminating_in_the_us = {} <NEW_LINE> self.transitting_the_us_by_country_of_origin = {} | docstring for TrafficBilledInForeignCountries | 62598f273cc13d1c6d464638 |
class Filter(Plugin): <NEW_LINE> <INDENT> def feed(self, _sData): <NEW_LINE> <INDENT> return Data(self._oWatcher.name(), _sData, _sData) | Log Data Filter.
This class is to be inherited by actual filters and describes the methods
expected to be overriden. | 62598f27091ae35668703ad4 |
class BaseWSGIServerNoBind(LoggingBaseWSGIServerMixIn, werkzeug.serving.BaseWSGIServer): <NEW_LINE> <INDENT> def __init__(self, app): <NEW_LINE> <INDENT> werkzeug.serving.BaseWSGIServer.__init__(self, "127.0.0.1", 0, app) <NEW_LINE> if self.socket: <NEW_LINE> <INDENT> self.socket.close() <NEW_LINE> <DEDENT> <DEDENT> de... | werkzeug Base WSGI Server patched to skip socket binding. PreforkServer
use this class, sets the socket and calls the process_request() manually | 62598f273cc13d1c6d46463a |
class ST_add: <NEW_LINE> <INDENT> __slots__ = 'n', 'nodes' <NEW_LINE> def __init__(self, n): <NEW_LINE> <INDENT> self.n = n <NEW_LINE> self.nodes = [0]*(2*n) <NEW_LINE> <DEDENT> def buildfrom(self, A): <NEW_LINE> <INDENT> self.nodes[self.n:] = A <NEW_LINE> for inode_id in reversed(range(1, self.n)): <NEW_LINE> <INDENT>... | the opeartor is operator.add | 62598f27187af65679d2936b |
class UpdateTranslationForm(forms.Form): <NEW_LINE> <INDENT> translation_file = forms.FileField(label=_("Translation File")) <NEW_LINE> target_language = forms.ChoiceField( label=_('Language'), widget=forms.HiddenInput, choices=[(l.code, l) for l in Language.objects.all()], help_text=_("The language of the translation.... | Form used when uploading a new translation file. | 62598f27ab23a570cc2d44d4 |
@registry.register_image_modality("image_channel_compress") <NEW_LINE> class ImageChannelCompressModality(modality.Modality): <NEW_LINE> <INDENT> @property <NEW_LINE> def num_channels(self): <NEW_LINE> <INDENT> return 3 <NEW_LINE> <DEDENT> def bottom_compress(self, inputs, name="bottom"): <NEW_LINE> <INDENT> with tf.va... | Modality for images using channel compression for generation. | 62598f27187af65679d2936d |
class RA(Angle): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def fromDegrees(val): return RA(degrees=val) <NEW_LINE> @staticmethod <NEW_LINE> def fromHours(val): return RA(hours=val) <NEW_LINE> @staticmethod <NEW_LINE> def fromRadians(val): return RA(radians=val) <NEW_LINE> @staticmethod <NEW_LINE> def fromDatetime(dt... | Represents a J2000 Right Ascension | 62598f27091ae35668703adc |
class Transcript(object): <NEW_LINE> <INDENT> def __init__(self, exons=[]): <NEW_LINE> <INDENT> self.exons = exons | A collection of exons
| 62598f27c4546d3d9def69cf |
class RepoChangedException(Exception): <NEW_LINE> <INDENT> def __init__(self, extra_args=[]): <NEW_LINE> <INDENT> self.extra_args = extra_args | Thrown if 'xrepo sync' results in xrepo updating its internal
xrepo or manifest repositories. In this special case we must
use exec to re-execute xrepo with the new code and manifest. | 62598f27091ae35668703ade |
class BoundaryDict(ParsedBoundaryDict): <NEW_LINE> <INDENT> def __init__(self, case, backup=False, treatBinaryAsASCII=False, region=None, processor=None, time=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> ParsedBoundaryDict.__init__(self, SolutionDirectory(case, archive=None, paraviewLink=False).boundaryDict(time... | Handles data in a boundary-File | 62598f274c342835776191a9 |
class RefDict: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.refs = {} <NEW_LINE> <DEDENT> def ref(self, from_, to): <NEW_LINE> <INDENT> if to - 1 != from_: <NEW_LINE> <INDENT> self.refs[to - 1] = [] <NEW_LINE> tmp = self.get(from_) <NEW_LINE> tmp.append(to) <NEW_LINE> self.refs[from_] = tmp <NEW_LIN... | A dictionary for references. It is always assumed that | 62598f27c4546d3d9def69d0 |
class RelaxedBernoulli(TransformedDistribution): <NEW_LINE> <INDENT> params = {'probs': constraints.unit_interval} <NEW_LINE> support = constraints.unit_interval <NEW_LINE> has_rsample = True <NEW_LINE> def __init__(self, temperature, probs=None, logits=None): <NEW_LINE> <INDENT> super(RelaxedBernoulli, self).__init__(... | Creates a RelaxedBernoulli distribution, parametrized by `temperature`, and either
`probs` or `logits`. This is a relaxed version of the `Bernoulli` distribution, so
the values are in (0, 1), and has reparametrizable samples.
Example::
>>> m = RelaxedBernoulli(torch.Tensor([2.2]),
tor... | 62598f27091ae35668703ae0 |
class ConflictError(GenericException): <NEW_LINE> <INDENT> http_code = 409 | A runtime request cannot be fulfilled because of conflicting state. | 62598f27ab23a570cc2d44d8 |
class Update(QueryType): <NEW_LINE> <INDENT> def __init__(self, object, updateaction, *elements:QueryElement): <NEW_LINE> <INDENT> self.__query_rule_index = ["Upsert", "Return", "Where", "Lock", "Limit"] <NEW_LINE> self.__updateaction = updateaction <NEW_LINE> self.__elements = elements <NEW_LINE> self.__object = objec... | Defines the update statement
UPDATE <class>|cluster:<cluster>|<recordID>
[SET|INCREMENT|ADD|REMOVE|PUT <field-name> = <field-value>[,]*]|[CONTENT|MERGE <JSON>]
[UPSERT]
[RETURN <returning> [<returning-expression>]]
[WHERE <conditions>]
[LOCK default|record]
[LIMIT <max-records>] [TIMEOUT <timeout>] | 62598f27ad47b63b2c5a66e5 |
class AB(DS): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def weighted_error_rate(Y,Y_,D): <NEW_LINE> <INDENT> e = np.sum(D[Y != Y_]) <NEW_LINE> return e <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def compute_alpha(e): <NEW_LINE> <INDENT> if e == 0.: <NEW_LINE> <INDENT> a = 500 <NEW_LINE> <DEDENT> elif e == 1.: <NEW... | AdaBoost algorithm (with contineous attributes). | 62598f27627d3e7fe0e05d5e |
class ThreadedHTTPServer(ThreadingMixIn, HTTPServer): <NEW_LINE> <INDENT> def __init__(self, listen, handler, cinchserver): <NEW_LINE> <INDENT> HTTPServer.__init__(self, listen, handler) <NEW_LINE> self.cinchserver = cinchserver | Handle requests in a separate thread. | 62598f27ad47b63b2c5a66e7 |
class UsersViewSet(DataApiViewSet): <NEW_LINE> <INDENT> serializer_class = UserSerializer <NEW_LINE> queryset = User.objects.all() <NEW_LINE> filter_class = UserFilter <NEW_LINE> prefetch_fields = [ { "name": "profile", "type": "select" }, { "name": "usersignupsource_set", "type": "prefetch" } ] | A viewset for viewing users in the platform. | 62598f27c4546d3d9def69d7 |
class ZipFileLoader(jinja2.BaseLoader): <NEW_LINE> <INDENT> def __init__(self, zipfile_path, base_directory): <NEW_LINE> <INDENT> self.zipf = zipfile.ZipFile(zipfile_path) <NEW_LINE> self.basedir = base_directory <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> self.zipf.close() <NEW_LINE> <DEDENT> def get_so... | Implements a template loader which reads templates from a zipfile | 62598f27627d3e7fe0e05d66 |
class SmallRECT(ctypes.Structure): <NEW_LINE> <INDENT> _fields_ = [('Left', ctypes.c_short), ('Top', ctypes.c_short), ('Right', ctypes.c_short), ('Bottom', ctypes.c_short)] | Windows SMALL_RECT structure. http://msdn.microsoft.com/en-us/library/windows/desktop/ms686311. | 62598f28091ae35668703af4 |
class ExternalTelemetryLogger(BaseJsonTelemetryLogger): <NEW_LINE> <INDENT> cmd: List[str] <NEW_LINE> def __init__(self, cmd: List[str]) -> None: <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.cmd = cmd[:] <NEW_LINE> <DEDENT> def log_sample(self, sample: JsonTelemetrySample) -> None: <NEW_LINE> <INDENT> cmd = s... | A TelemetryLogger that uses an external process to log samples. | 62598f284c342835776191bf |
class ListProfilesView(RetrieveAPIView): <NEW_LINE> <INDENT> permission_classes = (IsAdminUser,) <NEW_LINE> serializer_class = ProfileSerializer <NEW_LINE> def retrieve(self, request): <NEW_LINE> <INDENT> profile = Profile.objects.all() <NEW_LINE> serializer = self.serializer_class(profile, many=True) <NEW_LINE> return... | Lists the profiles of all authors in the system. | 62598f28ab23a570cc2d44e3 |
class BaseFileInputHandler(sublime_plugin.ListInputHandler): <NEW_LINE> <INDENT> PACKAGES = "${packages}/" <NEW_LINE> SETTINGS_RE = re.compile(r"Packages/(" r"(?!User)((?![^/]+$).+)/" r"([^(.]+(?:\((?!%s)[^).]+\))?)" r"\.sublime-settings)" % IGNORED_PLATFORMS) <NEW_LINE> KEYMAP_RE = re.compile(r"Packages/(" r"(?!User)(... | Shows a list of items to choose one as the 'base_file' argument. | 62598f28627d3e7fe0e05d74 |
class GaussianNLLAndStoppingCriteria(Loss): <NEW_LINE> <INDENT> def __init__(self, model, dataset, sum_over_timestep=False, gamma=1.0): <NEW_LINE> <INDENT> super().__init__(model, dataset) <NEW_LINE> self.d = model.output_size <NEW_LINE> self.sum_over_timestep = sum_over_timestep <NEW_LINE> self.gamma = gamma <NEW_LINE... | Computes the negative log likelihood of a gaussian + stopping criteria cross-entropy
| 62598f28ad47b63b2c5a66fd |
class EnamlEvent(EnamlInstance): <NEW_LINE> <INDENT> def get(self, obj, name): <NEW_LINE> <INDENT> return EnamlEventDispatcher(self, obj, name) <NEW_LINE> <DEDENT> def set(self, obj, name, value): <NEW_LINE> <INDENT> EnamlEventDispatcher(self, obj, name)(value) <NEW_LINE> <DEDENT> def full_info(self, obj, name, value):... | A custom EnamlInstance that is used to implement the event
type in Enaml. An EnamlEvent is read-only, and returns a dispatcher
which can be called to emit the event. | 62598f28ab23a570cc2d44e5 |
class LineConstCards(tdc.DataCardStack): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> conductor_card = tdc.DataCard('(I3, F5.4, F8.5, I2, F8.5, F8.5, F8.3, F8.3, F8.3)', ['IP', 'SKIN', 'RESIS', 'IX', 'REACT', 'DIAM', 'HORIZ', 'VTOWER', 'VMID']) <NEW_LINE> end_conductors = tdc.DataCardFixedText('BLANK CAR... | Stack of cards for a line constants case.
This is Based on what ATPDraw creates. | 62598f28c4546d3d9def69e0 |
class ReservesTest(LabyrinthTestCase): <NEW_LINE> <INDENT> def test_adding_three_ops_only_sets_to_two(self): <NEW_LINE> <INDENT> app = Labyrinth(1, 1, LabyrinthTestCase.set_up_blank_test_scenario) <NEW_LINE> assert app.us_reserves == 0 <NEW_LINE> app.play_us_card(116) <NEW_LINE> app.deploy_reserves() <NEW_LINE> self.as... | Tests the "reserves" command | 62598f284c342835776191cb |
class IComponent(object): <NEW_LINE> <INDENT> def declare_output_fields(self, declarer): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def get_component_configuration(self): <NEW_LINE> <INDENT> pass | Common methods for all possible components in a topology
| 62598f28627d3e7fe0e05d7a |
class Adapter(ABC): <NEW_LINE> <INDENT> def __init__(self, bot=None, *, threads=None, debug=False, **kwargs): <NEW_LINE> <INDENT> self.bot = bot or Minette(**kwargs) <NEW_LINE> self.config = self.bot.config <NEW_LINE> self.timezone = self.bot.timezone <NEW_LINE> self.logger = self.bot.logger <NEW_LINE> self.threads = t... | Base class for channel adapters
Attributes
----------
bot : minette.Minette
Instance of Minette
config : minette.Config
Configuration
timezone : pytz.timezone
Timezone
logger : logging.Logger
Logger
threads : int
Number of worker threads to process requests
executor : ThreadPoolExecutor
Thread ... | 62598f284c342835776191cd |
class TestGoogleHitsBackendArchive(TestCaseBackendArchive): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self.backend_write_archive = GoogleHits(['bitergia'], archive=self.archive) <NEW_LINE> self.backend_read_archive = GoogleHits(['bitergia'], archive=self.archive) <NEW_LINE> <DE... | GoogleHits backend tests using an archive | 62598f28c4546d3d9def69e2 |
class MoodleScheduleImporter(MoodleImporter): <NEW_LINE> <INDENT> def reader(self): <NEW_LINE> <INDENT> for schedule in self.bell_schedule(): <NEW_LINE> <INDENT> course, idnumber, username, role, group, group_name = schedule <NEW_LINE> user = self._branch.get_from_subbranches( idnumber, ['students', 'staff', 'parents']... | This is just a placeholder. We read the enrollments below using this information | 62598f28ad47b63b2c5a6705 |
class BucketLister(object): <NEW_LINE> <INDENT> def __init__(self, operation, endpoint, date_parser=_date_parser): <NEW_LINE> <INDENT> self._operation = operation <NEW_LINE> self._endpoint = endpoint <NEW_LINE> self._date_parser = date_parser <NEW_LINE> <DEDENT> def list_objects(self, bucket, prefix=None): <NEW_LINE> <... | List keys in a bucket. | 62598f284c342835776191cf |
class BenchmarkMonitor(Thread): <NEW_LINE> <INDENT> @typechecked <NEW_LINE> def __init__(self, pid: int, interval: Union[int, float], monitor_type: str): <NEW_LINE> <INDENT> self.monitor_type = monitor_type <NEW_LINE> self.monitor_disabled = False <NEW_LINE> self.pid = pid <NEW_LINE> self.interval = interval <NEW_LINE>... | | **@author:** Prathyush SP
|
| Benchmark Monitors | 62598f28c4546d3d9def69e3 |
class Table(Furnishing): <NEW_LINE> <INDENT> pass | A table object | 62598f2826238365f5faba87 |
class CacheAPI(ModelMixin, models.Model): <NEW_LINE> <INDENT> cache_api_id = models.AutoField(primary_key=True) <NEW_LINE> base_url = models.URLField(max_length=800) <NEW_LINE> resource = models.CharField(max_length=200) <NEW_LINE> request_args = ArrayField( models.CharField(max_length=400, blank=True), default=list ) ... | Cache API Model | 62598f28ad47b63b2c5a6707 |
class LocalUserRequiredMixin: <NEW_LINE> <INDENT> def dispatch(self, request, *args, **kwargs): <NEW_LINE> <INDENT> if not request.user.is_authenticated: <NEW_LINE> <INDENT> return redirect_to_login(self.request.get_full_path(), settings.LOGIN_URL, REDIRECT_FIELD_NAME) <NEW_LINE> <DEDENT> if request.user.is_remote: <NE... | Verify that the current user is not a remote user and has authenticated locally. | 62598f284c342835776191d1 |
class Profile(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = 'نمایه کاربری' <NEW_LINE> verbose_name_plural = 'نمایه کاربری' <NEW_LINE> <DEDENT> user = models.OneToOneField (User, on_delete=models.CASCADE, verbose_name='حساب کاربری') <NEW_LINE> mobile = models.CharField('تلفن هم... | Represent a user's profile | 62598f28c4546d3d9def69e4 |
class Identity(Operation): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__(expr='x') <NEW_LINE> <DEDENT> def __call__(self, x): <NEW_LINE> <INDENT> return x | Special transformation which is defined like f(x) = x | 62598f28627d3e7fe0e05d80 |
class ItemType(db.Model): <NEW_LINE> <INDENT> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> name = db.Column(db.String(200), unique=True, nullable=False) <NEW_LINE> key = 'name' | Item type: Weapon, Armor, VIP, Blueprint etc. | 62598f283cc13d1c6d46466c |
class FocalMechanism(__FocalMechanism): <NEW_LINE> <INDENT> pass | This class describes the focal mechanism of an event. It includes different
descriptions like nodal planes, principal axes, and a moment tensor. The
moment tensor description is provided by objects of the class MomentTensor
which can be specified as child elements of FocalMechanism.
:type resource_id: :class:`~obspy.c... | 62598f28091ae35668703b08 |
class AbstractBase(models.Model): <NEW_LINE> <INDENT> date_created = models.DateTimeField(auto_now_add=True) <NEW_LINE> @property <NEW_LINE> def view_count(self): <NEW_LINE> <INDENT> model_type = generic.ContentType.objects.get_for_model(self) <NEW_LINE> count = ViewLog.objects.filter(content_type__pk=model_type.id, ob... | AbstractBase class for handling setting id's and
setting creation dates of objects. | 62598f28c4546d3d9def69e5 |
class Accuracy(EvalMetric): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Accuracy, self).__init__('accuracy') <NEW_LINE> <DEDENT> def update(self, labels, preds): <NEW_LINE> <INDENT> check_label_shapes(labels, preds) <NEW_LINE> for i in range(len(labels)): <NEW_LINE> <INDENT> pred = preds[i].asnump... | Calculate accuracy | 62598f283cc13d1c6d46466e |
class StrikethroughExtension(markdown.Extension): <NEW_LINE> <INDENT> def extendMarkdown(self, md, md_globals): <NEW_LINE> <INDENT> pattern = markdown.inlinepatterns.SimpleTagPattern(r'(~{2})(.+?)(~{2})', 'del') <NEW_LINE> md.inlinePatterns.add('gfm-strikethrough', pattern, '_end') | An extension that supports PHP-Markdown style strikethrough.
For example: ``~~strike~~``. | 62598f2826238365f5faba8d |
class CirclePath(SourceBlock): <NEW_LINE> <INDENT> nin = 0 <NEW_LINE> nout = 1 <NEW_LINE> def __init__( self, radius=1, centre=(0, 0, 0), pose=None, phase=0, frequency=1, unit="rps", *inputs, **kwargs ): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> if unit == "rps": <NEW_LINE> <INDENT> omega = frequency * ... | :blockname:`CIRCLEPATH`
.. table::
:align: left
+------------+---------+---------+
| inputs | outputs | states |
+------------+---------+---------+
| 0 or 1 | 1 | 0 |
+------------+---------+---------+
| float | float | |
+------------+---------+---------+ | 62598f28ab23a570cc2d44ed |
class Logger(object): <NEW_LINE> <INDENT> _record = None <NEW_LINE> _levels = {'error': 40, 'warning': 30, 'info': 20, 'debug': 10} <NEW_LINE> @staticmethod <NEW_LINE> def inline(msg='', status='info'): <NEW_LINE> <INDENT> if None is Logger._record: <NEW_LINE> <INDENT> Logger._record = type('record', (object,), dict(ex... | Logger class | 62598f283cc13d1c6d464672 |
class KeyVaultKeyReference(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'key_vault': {'required': True}, 'key_name': {'required': True}, } <NEW_LINE> _attribute_map = { 'key_vault': {'key': 'keyVault', 'type': 'KeyVaultKeyReferenceKeyVault'}, 'key_name': {'key': 'keyName', 'type': 'str'}, 'key_versi... | The reference to the key vault key.
All required parameters must be populated in order to send to Azure.
:param key_vault: Required. The key vault reference.
:type key_vault: ~azure.mgmt.logic.models.KeyVaultKeyReferenceKeyVault
:param key_name: Required. The private key name in key vault.
:type key_name: str
:param ... | 62598f28c4546d3d9def69e7 |
class HostException(BaseLibp2pError): <NEW_LINE> <INDENT> pass | A generic exception in `IHost`. | 62598f28091ae35668703b0e |
class InvoiceItemPis(BasePIS): <NEW_LINE> <INDENT> __storm_table__ = 'invoice_item_pis' <NEW_LINE> PIS_NAO_CUMULATIVO_PADRAO = Decimal('1.65') <NEW_LINE> v_pis = PriceCol(default=0) <NEW_LINE> v_bc = PriceCol(default=None) <NEW_LINE> q_bc_prod = QuantityCol(default=None) <NEW_LINE> def set_initial_values(self, invoice_... | Invoice of PIS tax. | 62598f283cc13d1c6d464674 |
class SystemData(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'created_by': {'key': 'createdBy', 'type': 'str'}, 'created_by_type': {'key': 'createdByType', 'type': 'str'}, 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, 'last_... | Read only system data.
:param created_by: An identifier for the identity that created the resource.
:type created_by: str
:param created_by_type: The type of identity that created the resource. Possible values
include: "User", "Application", "ManagedIdentity", "Key".
:type created_by_type: str or ~azure_arc_data_mana... | 62598f28c4546d3d9def69e9 |
class RegressionMetrics(_messages.Message): <NEW_LINE> <INDENT> meanAbsoluteError = _messages.FloatField(1) <NEW_LINE> meanSquaredError = _messages.FloatField(2) <NEW_LINE> meanSquaredLogError = _messages.FloatField(3) <NEW_LINE> medianAbsoluteError = _messages.FloatField(4) <NEW_LINE> rSquared = _messages.FloatField(5... | Evaluation metrics for regression and explicit feedback type matrix
factorization models.
Fields:
meanAbsoluteError: Mean absolute error.
meanSquaredError: Mean squared error.
meanSquaredLogError: Mean squared log error.
medianAbsoluteError: Median absolute error.
rSquared: R^2 score. | 62598f29091ae35668703b14 |
class CloudfrontLoggingDisabled(AWSRule): <NEW_LINE> <INDENT> def __init__(self, event): <NEW_LINE> <INDENT> super().__init__(event) <NEW_LINE> <DEDENT> def extract_event_data(self, event): <NEW_LINE> <INDENT> self.distribution_id = event["detail"]["responseElements"]["distribution"]["id"] <NEW_LINE> self.logging_enabl... | Check if CloudFront logging is disabled | 62598f29ab23a570cc2d44f1 |
class TDEConstraints(Constraint): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(TDEConstraints, self).__init__(**kwargs) <NEW_LINE> <DEDENT> def process(self, **kwargs): <NEW_LINE> <INDENT> self._score_modifier = 0.0 <NEW_LINE> self._rp = kwargs[self.key('rp')] <NEW_LINE> self._bhmass = kw... | TDE constraints.
1. rp > rs --> the pericenter radius must be greater than the Schwarzschild
radius or the bh will swallow the star whole (no disruption or flare) | 62598f293cc13d1c6d46467e |
class VirtualDeviceNeVnSummaryGridRemote(RemoteModel): <NEW_LINE> <INDENT> properties = ("DeviceID", "VirtualHostDeviceID", "VirtualHostDeviceName", "VirtualHostDeviceIPDotted", "VirtualHostDeviceIPNumeric", "VirtualHostNetwork", "VirtualHostDeviceType", "Collector", "DeviceIPDotted", "DeviceIPNumeric", "VirtualNetwork... | | ``DeviceID:`` none
| ``attribute type:`` string
| ``VirtualHostDeviceID:`` none
| ``attribute type:`` string
| ``VirtualHostDeviceName:`` none
| ``attribute type:`` string
| ``VirtualHostDeviceIPDotted:`` none
| ``attribute type:`` string
| ``VirtualHostDeviceIPNumeric:`` none
| ``attribute type:`` stri... | 62598f29c4546d3d9def69ed |
@gin.configurable <NEW_LINE> class ResNet18V2(ResNet18): <NEW_LINE> <INDENT> residual_block = BasicBlockV2 | 18-layer residual network with v2 structure. | 62598f29187af65679d2938d |
class RadMax2D(IRF): <NEW_LINE> <INDENT> tag = "rad_max_2d" <NEW_LINE> required_axes = ["energy", "offset"] <NEW_LINE> default_unit = u.deg <NEW_LINE> @classmethod <NEW_LINE> def from_irf(cls, irf): <NEW_LINE> <INDENT> if not irf.is_pointlike: <NEW_LINE> <INDENT> raise ValueError("RadMax2D.from_irf requires a point-lik... | 2D Rad Max table.
This is not directly a IRF component but is needed as additional information
for point-like IRF components when an energy or field of view
dependent directional cut has been applied.
Data format specification: :ref:`gadf:rad_max_2d`
Parameters
----------
energy_axis : `MapAxis`
Reconstructed en... | 62598f293cc13d1c6d46467f |
class Items (pyxb.binding.basis.complexTypeDefinition): <NEW_LINE> <INDENT> _TypeDefinition = None <NEW_LINE> _ContentTypeTag = pyxb.binding.basis.complexTypeDefinition._CT_ELEMENT_ONLY <NEW_LINE> _Abstract = False <NEW_LINE> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Items') <NEW_LINE> _XSDLocation = pyxb... | Complex type Items with content type ELEMENT_ONLY | 62598f29c4546d3d9def69ee |
class TaggedBrownCorpus(object): <NEW_LINE> <INDENT> def __init__(self, dirname): <NEW_LINE> <INDENT> self.dirname = dirname <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> for fname in os.listdir(self.dirname): <NEW_LINE> <INDENT> fname = os.path.join(self.dirname, fname) <NEW_LINE> if not os.path.isfile(f... | Iterate over documents from the Brown corpus (part of NLTK data), yielding
each document out as a TaggedDocument object. | 62598f29091ae35668703b1e |
class CaptchaSmsHandler(BaseHandler, CaptchaMixin): <NEW_LINE> <INDENT> @tornado.web.removeslash <NEW_LINE> def get(self): <NEW_LINE> <INDENT> self.generate_captcha('captchahash_sms') | Generate captcha for downloading-sms.
:url /captchasms | 62598f29ab23a570cc2d44f6 |
class DigitFuncDataset(Dataset): <NEW_LINE> <INDENT> def __init__(self, n_samples: int, max_n_elements: int, function: Callable, path: str): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.n_samples = n_samples <NEW_LINE> if os.path.isfile(path): <NEW_LINE> <INDENT> info = pickle.load(open(path, 'rb')) <NEW_LINE... | Digit function dataset for Deep Sets architecture.
An example consists of at most `max_n_elements` #
of digits. If there are less than `max_n_elements`
in a given example, then the rest is padded. The
labels are the outputs of the function acting on a
given sample.
NOTE:
A sample would be in the following format:
... | 62598f29091ae35668703b20 |
class DATETIME(sqltypes.DATETIME): <NEW_LINE> <INDENT> __visit_name__ = 'DATETIME' <NEW_LINE> def __init__(self, timezone=False, fsp=None): <NEW_LINE> <INDENT> super(DATETIME, self).__init__(timezone=timezone) <NEW_LINE> self.fsp = fsp | MySQL DATETIME type.
| 62598f29ad47b63b2c5a6721 |
class ILinkField(zope.interface.Interface): <NEW_LINE> <INDENT> pass | Marker interface so we can register a custom widget for this field. | 62598f294c342835776191eb |
class ScaledDotProductAttention(nn.Module): <NEW_LINE> <INDENT> def __init__(self, temperature, dropout=0.5): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.temperature = temperature <NEW_LINE> <DEDENT> def score(self, query, key, query_mask=None, key_mask=None, mask=None): <NEW_LINE> <INDENT> batch_size, key_l... | Scaled Dot-Product Attention | 62598f29c4546d3d9def69f1 |
class ComputeImagesListRequest(_messages.Message): <NEW_LINE> <INDENT> filter = _messages.StringField(1) <NEW_LINE> maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32, default=500) <NEW_LINE> pageToken = _messages.StringField(3) <NEW_LINE> project = _messages.StringField(4, required=True) | A ComputeImagesListRequest object.
Fields:
filter: Sets a filter expression for filtering listed resources, in the
form filter={expression}. Your {expression} must be in the format:
FIELD_NAME COMPARISON_STRING LITERAL_STRING. The FIELD_NAME is the name
of the field you want to compare. Only atomic fiel... | 62598f29ad47b63b2c5a6723 |
class DatabaseConnection: <NEW_LINE> <INDENT> def __init__(self, Host: str, Port: Union[str, int], Database: str): <NEW_LINE> <INDENT> self.Host = Host <NEW_LINE> self.Port = int(Port) <NEW_LINE> self.Database = Database <NEW_LINE> self.User = None <NEW_LINE> <DEDENT> def toAlchemyConnection(self) -> Optional[str]: <NE... | Class for capturing the minimum database connection properties | 62598f29627d3e7fe0e05d9c |
class Sfint(Sf): <NEW_LINE> <INDENT> _op = 'exact' <NEW_LINE> _positive = False <NEW_LINE> _rangecheck = False <NEW_LINE> def q(self, something): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> i = int(something) <NEW_LINE> if self._positive and i < 0: <NEW_LINE> <INDENT> return EmptyQ() <NEW_LINE> <DEDENT> if self._range... | integer search. | 62598f2926238365f5fabaa5 |
class BytesProcessEmptySegException(Exception): <NEW_LINE> <INDENT> def __init__(self, err='Bytes get the empty segment err!'): <NEW_LINE> <INDENT> super(__class__, self).__init__(err) | This Exception throws when try to get an empty segment
from hex stream,which means width parameter is 0 | 62598f29c4546d3d9def69f2 |
@tvm._ffi.register_object <NEW_LINE> class Cast(PrimExprWithOp): <NEW_LINE> <INDENT> def __init__(self, dtype, value): <NEW_LINE> <INDENT> self.__init_handle_by_constructor__( _ffi_api.Cast, dtype, value) | Cast expression.
Parameters
----------
dtype : str
The data type
value : PrimExpr
The value of the function. | 62598f29091ae35668703b24 |
class DBResponseProcessor(WikiResponseProcessor): <NEW_LINE> <INDENT> def process(self, response, db=True, id_to_update=None): <NEW_LINE> <INDENT> title = response.xpath('//title/text()').extract_first() <NEW_LINE> url = response.url <NEW_LINE> base = url[:24] <NEW_LINE> content = '' <NEW_LINE> try: <NEW_LINE> <INDENT>... | Class, which allows to store crawled data in database | 62598f29ad47b63b2c5a6725 |
class GDALTranslateOptions(_object): <NEW_LINE> <INDENT> __swig_setmethods__ = {} <NEW_LINE> __setattr__ = lambda self, name, value: _swig_setattr(self, GDALTranslateOptions, name, value) <NEW_LINE> __swig_getmethods__ = {} <NEW_LINE> __getattr__ = lambda self, name: _swig_getattr(self, GDALTranslateOptions, name) <NEW... | Proxy of C++ GDALTranslateOptions class | 62598f29187af65679d29393 |
class QueryIterator: <NEW_LINE> <INDENT> def __init__(self, pool, sql, fetchmany=False, fetchall=False): <NEW_LINE> <INDENT> self.curs = None <NEW_LINE> self.sql = sql <NEW_LINE> self.pool = pool <NEW_LINE> if fetchmany: <NEW_LINE> <INDENT> self.next = self.next_fetchmany <NEW_LINE> self.chunked = True <NEW_LINE> <DEDE... | Converts a database query into a result iterator
from __future__ import generators
from twisted.enterprise import adbapi
from twisted.internet import reactor
from twisted.flow import flow
from twisted.flow.threads import QueryIterator, Threaded
dbpool = adbapi.ConnectionPool("SomeDriver",host='localhost',
... | 62598f293cc13d1c6d46468b |
class ContextHook(hooks.PecanHook): <NEW_LINE> <INDENT> def __init__(self, public_api_routes): <NEW_LINE> <INDENT> self.public_api_routes = public_api_routes <NEW_LINE> super(ContextHook, self).__init__() <NEW_LINE> <DEDENT> def before(self, state): <NEW_LINE> <INDENT> is_public_api = state.request.environ.get('is_publ... | Configures a request context and attaches it to the request. | 62598f29627d3e7fe0e05da2 |
class Settings(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.screen_width = 900 <NEW_LINE> self.screen_height = 600 <NEW_LINE> self.bg_color = (230, 230, 230) <NEW_LINE> self.ship_speed_factor = 1.5 | A class to store the settings for Alien Invasion | 62598f29187af65679d29394 |
class CurrencyRoot(ModelNormal): <NEW_LINE> <INDENT> allowed_values = { } <NEW_LINE> validations = { } <NEW_LINE> additional_properties_type = None <NEW_LINE> _nullable = False <NEW_LINE> @cached_property <NEW_LINE> def openapi_types(): <NEW_LINE> <INDENT> lazy_import() <NEW_LINE> return { 'data': ({str: (Currency,)},)... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
Attributes:
allowed_values (dict): The key is the tuple path to the attribute
and the for var_name this is (var_name,). The value is a dict
with a capitalized key describing the a... | 62598f29c4546d3d9def69f5 |
class TffConfiguration(TO): <NEW_LINE> <INDENT> rogerthat = typed_property('1', RogerthatConfiguration, False) <NEW_LINE> odoo = typed_property('4', OdooConfiguration, False) <NEW_LINE> support_emails = unicode_list_property('support_emails') <NEW_LINE> backup_bucket = unicode_property('backup_bucket') <NEW_LINE> inter... | Args:
rogerthat(RogerthatConfiguration)
ledger(LedgerConfiguration)
odoo(OdooConfiguration)
support_emails(list[string])
orchestator(OrchestatorConfiguration)
investor(InvestorConfiguration)
apple(AppleConfiguration)
backup_bucket(bool)
intercom_admin_id(unicode)
cloudstorage_enc... | 62598f29091ae35668703b2a |
class lower_packet(DerivedPolicy): <NEW_LINE> <INDENT> def __init__(self, vtag): <NEW_LINE> <INDENT> self.vtag = vtag <NEW_LINE> super(lower_packet,self).__init__(push(vtag=self.vtag) >> move(voutport="outport", vswitch="switch", vinport="inport")) <NEW_LINE> def __repr__(self): <NEW_LINE> <INDENT> return "lower_packet... | Lowers a packet from the derived network to the underlying network | 62598f294c342835776191f7 |
class MultivariateNormalDiag(_MultivariateNormalOperatorPD): <NEW_LINE> <INDENT> def __init__( self, mu, diag_stdev, validate_args=False, allow_nan_stats=True, name="MultivariateNormalDiag"): <NEW_LINE> <INDENT> cov = operator_pd_diag.OperatorPDSqrtDiag( diag_stdev, verify_pd=validate_args) <NEW_LINE> super(Multivariat... | The multivariate normal distribution on `R^k`.
This distribution is defined by a 1-D mean `mu` and a 1-D diagonal
`diag_stdev`, representing the standard deviations. This distribution
assumes the random variables, `(X_1,...,X_k)` are independent, thus no
non-diagonal terms of the covariance matrix are needed.
This a... | 62598f29187af65679d29396 |
class CampaignContent(BaseApi): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(CampaignContent, self).__init__(*args, **kwargs) <NEW_LINE> self.endpoint = 'campaigns' <NEW_LINE> self.campaign_id = None <NEW_LINE> <DEDENT> def get(self, campaign_id, **queryparams): <NEW_LINE> <INDENT>... | Manage the HTML, plain-text, and template content for your MailChimp
campaigns. | 62598f294c342835776191f9 |
class vcl_numeric_limitsB(object): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> __swig_destroy__ = _itkNumericTraitsPython.delete_vcl_numeric_limitsB <NEW_LINE> def __init__(self, *args): <NEW_LINE... | Proxy of C++ vcl_numeric_limitsB class | 62598f29187af65679d29397 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.