code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class HbvGeoLocationRepository(GeoLocationRepository): <NEW_LINE> <INDENT> def __init__(self, geo_location_dict, epsg_id): <NEW_LINE> <INDENT> if not isinstance(geo_location_dict,dict): <NEW_LINE> <INDENT> raise HbvGeoLocationError("geo_location_dict must be a dict(), of type dict(int,[x,y,z])") <NEW_LINE> <DEDENT> if... | Provide a yaml-based key-location map for gis-identites not available(yet) | 6259906b0a50d4780f7069c0 |
class TestAnonymousSurvey(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> question = "What language did you first learn to speak?" <NEW_LINE> self.my_survey = AnonymousSurvey(question) <NEW_LINE> self.responses = ['English', 'Spanish', 'Mandarin'] <NEW_LINE> <DEDENT> def test_store_single_r... | Tests for the class AnonymousSurvey | 6259906b32920d7e50bc7846 |
class BaseWasmException(Exception): <NEW_LINE> <INDENT> pass | Base exception class for this library. | 6259906b442bda511e95d958 |
class VerticalProgressBar(HorizontalProgressBar): <NEW_LINE> <INDENT> def _get_sizes_min_max(self) -> Tuple[int, int]: <NEW_LINE> <INDENT> return 0, self.fill_height() <NEW_LINE> <DEDENT> def _get_value_sizes(self, _old_ratio: float, _new_ratio: float) -> Tuple[int, int]: <NEW_LINE> <INDENT> return int(_old_ratio * sel... | A dynamic progress bar widget.
The anchor position is the position where the control would start if it
were being read visually or on paper, where the (0, 0) position is
the lower-left corner for ascending progress bars (fills from the bottom to
to the top in vertical bars, or from the left to the right in horizontal
... | 6259906b92d797404e38975b |
class FSEntryParamsOrganize(FSEntryParamsExt): <NEW_LINE> <INDENT> def __init__(self, args = {}): <NEW_LINE> <INDENT> super().__init__(args) | Organize Entry attributes
| 6259906baad79263cf42ffb6 |
class ESPBlock(nn.Layer): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels, strides, dilations, data_format="channels_last", **kwargs): <NEW_LINE> <INDENT> super(ESPBlock, self).__init__(**kwargs) <NEW_LINE> num_branches = len(dilations) <NEW_LINE> assert (out_channels % num_branches == 0) <NEW_LINE> se... | ESPNetv2 block (so-called EESP block).
Parameters:
----------
in_channels : int
Number of input channels.
out_channels : int
Number of output channels.
strides : int or tuple/list of 2 int
Strides of the branch convolution layers.
dilations : list of int
Dilation values for branches.
data_format : str,... | 6259906b4527f215b58eb5a0 |
class SubmitGrade(forms.Form): <NEW_LINE> <INDENT> override = forms.BooleanField(widget=forms.CheckboxInput(), required=False,label="Submit without reviewing all rubric items") <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.valid = kwargs.pop('valid') <NEW_LINE> super(SubmitGrade, self).__init... | Form to submit rubric | 6259906b4f6381625f19a0a7 |
@PIPELINES.register_module() <NEW_LINE> class LoadAnnotations(object): <NEW_LINE> <INDENT> def __init__(self, reduce_zero_label=False, file_client_args=dict(backend='disk'), imdecode_backend='pillow'): <NEW_LINE> <INDENT> self.reduce_zero_label = reduce_zero_label <NEW_LINE> self.file_client_args = file_client_args.cop... | Load annotations for semantic segmentation.
Args:
reduct_zero_label (bool): Whether reduce all label value by 1.
Usually used for datasets where 0 is background label.
Default: False.
file_client_args (dict): Arguments to instantiate a FileClient.
See :class:`mmcv.fileio.FileClient` for... | 6259906bdd821e528d6da581 |
class DilatedResBlock(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_ch, out_ch, dilation=1, shortcut=None): <NEW_LINE> <INDENT> super(DilatedResBlock, self).__init__() <NEW_LINE> self.left = nn.Sequential( BuildingBlock(in_ch, out_ch, dilation), nn.Conv2d(out_ch, out_ch, 3, padding=1, dilation=dilation), nn.Bat... | input -> building_block -> building_block -> + -> output
↘ -----------(shortcut)------------- ↗ | 6259906b4c3428357761bab4 |
class Agent(): <NEW_LINE> <INDENT> def __init__(self, state_size, action_size, random_seed): <NEW_LINE> <INDENT> self.state_size = state_size <NEW_LINE> self.action_size = action_size <NEW_LINE> self.seed = random.seed(random_seed) <NEW_LINE> self.actor_local = Actor(state_size, action_size, random_seed).to(device) <NE... | Interacts with and learns from the environment. | 6259906b3539df3088ecda9f |
class DependencyNode(object): <NEW_LINE> <INDENT> __slots__ = ["_label", "_element", "_line_nb", "_modifier", "_step", "_nostep_repr", "_hash"] <NEW_LINE> def __init__(self, label, element, line_nb, step, modifier=False): <NEW_LINE> <INDENT> self._label = label <NEW_LINE> self._element = element <NEW_LINE> self._line_n... | Node elements of a DependencyGraph
A dependency node stands for the dependency on the @element at line number
@line_nb in the IRblock named @label, *before* the evaluation of this
line. | 6259906bd6c5a102081e392a |
class MaskAttrib: <NEW_LINE> <INDENT> def set_mask(self, mask): <NEW_LINE> <INDENT> self._attributes['mask'] = mask <NEW_LINE> <DEDENT> def get_mask(self): <NEW_LINE> <INDENT> return self._attributes.get('mask') | The MaskAttrib class defines the Mask.attrib attribute set. | 6259906b3d592f4c4edbc6e1 |
class SignalConnectionManager(gui.Widget): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(SignalConnectionManager, self).__init__(**kwargs) <NEW_LINE> self.label = gui.Label('Signal connections', width='100%') <NEW_LINE> self.label.add_class("DialogTitle") <NEW_LINE> self.append(self.label)... | This class allows to interconnect event signals | 6259906b71ff763f4b5e8fa7 |
class Project: <NEW_LINE> <INDENT> def __init__(self, pid: str, p_owner: str, p_owner_name: str, name: str, description: str, created: datetime, updated_on: datetime, flags: str = '', features: [Feature] = None): <NEW_LINE> <INDENT> self.project_id = pid <NEW_LINE> self.project_owner_id = p_owner <NEW_LINE> self.projec... | Class Project resembles project from the database as a object
| 6259906b23849d37ff8528b7 |
class CharacterSheet(View): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(CharacterSheet, self).__init__(**kwargs) <NEW_LINE> self.actor = None <NEW_LINE> self.text = [] <NEW_LINE> <DEDENT> def ready(self): <NEW_LINE> <INDENT> self.scroller = self.spawn(Scroller()) <NEW_LINE> self.sidescro... | Display information about an inspected Actor. | 6259906b627d3e7fe0e08689 |
class M2j_module(object): <NEW_LINE> <INDENT> def __init__(self, spi_rack, module, remote=False): <NEW_LINE> <INDENT> self.module = module <NEW_LINE> self.spi_rack = spi_rack <NEW_LINE> self.enable_remote(remote) <NEW_LINE> self.spi_rack.write_data(self.module, 5, 0, 6, bytearray([0xFF])) <NEW_LINE> s_data = bytearray(... | M2j module interface class
This class does the low level interfacing with the M2j amplifier module. It
requires a SPI Rack object and module number at initializationself.
Allows the user to get the RF level before the last amplifier and see if
the amplifiers are clipping. The user can also set the amplification of th... | 6259906b63d6d428bbee3e8a |
@dataclass <NEW_LINE> class DataCollatorCTCWithPadding: <NEW_LINE> <INDENT> processor: CustomWav2Vec2Processor <NEW_LINE> padding: Union[bool, str] = True <NEW_LINE> max_length: Optional[int] = 160000 <NEW_LINE> max_length_labels: Optional[int] = None <NEW_LINE> pad_to_multiple_of: Optional[int] = 160000 <NEW_LINE> pad... | Data collator that will dynamically pad the inputs received.
Args:
processor (:class:`~transformers.Wav2Vec2Processor`)
The processor used for proccessing the data.
padding (:obj:`bool`, :obj:`str` or :class:`~transformers.tokenization_utils_base.PaddingStrategy`, `optional`, defaults to :obj:`True`):
... | 6259906b76e4537e8c3f0d84 |
class Commit(namedtuple('Foo', 'name revision create_at expire_at')): <NEW_LINE> <INDENT> pass | Commit result
| 6259906b8e7ae83300eea890 |
class RcMalformedCompareKoji(TestCompareKoji): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> TestCompareKoji.setUp(self) <NEW_LINE> self.before_rpm.add_installed_file( "/usr/share/data/invalid_rc.sh", rpmfluff.SourceFile("invalid_rc.sh", invalid_rc), ) <NEW_LINE> self.after_rpm.add_installed_file( "/usr/shar... | Invalid /bin/rc script is BAD for comparing Koji builds | 6259906b5fcc89381b266d57 |
class Run(command_line.OptparseCommand): <NEW_LINE> <INDENT> usage = 'benchmark_name [page_set] [<options>]' <NEW_LINE> @classmethod <NEW_LINE> def CreateParser(cls): <NEW_LINE> <INDENT> options = browser_options.BrowserFinderOptions() <NEW_LINE> parser = options.CreateParser('%%prog %s %s' % (cls.Name(), cls.usage)) <... | Run one or more benchmarks (default) | 6259906b3317a56b869bf144 |
class SearchFeaturesRunner(FeatureFormatterMixin, AbstractSearchRunner): <NEW_LINE> <INDENT> def __init__(self, args): <NEW_LINE> <INDENT> super(SearchFeaturesRunner, self).__init__(args) <NEW_LINE> self._referenceName = args.referenceName <NEW_LINE> self._featureSetId = args.featureSetId <NEW_LINE> self._parentId = ar... | Runner class for the features/search method. | 6259906b4428ac0f6e659d35 |
class crm_ais(crm_lha): <NEW_LINE> <INDENT> def __init__(self, Environment, randseed=None, name=None): <NEW_LINE> <INDENT> if not name: name="crm-ais" <NEW_LINE> crm_lha.__init__(self, Environment, randseed=randseed, name=name) <NEW_LINE> self.fullcomplist = {} <NEW_LINE> self.templates = PatternSelector(self.name) <NE... | The crm version 3 cluster manager class.
It implements the things we need to talk to and manipulate
crm clusters running on top of openais | 6259906be1aae11d1e7cf40e |
class PartycommunicationTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> trytond.tests.test_tryton.install_module('party_communication') <NEW_LINE> <DEDENT> def test0005views(self): <NEW_LINE> <INDENT> test_view('party_communication') <NEW_LINE> <DEDENT> def test0006depends(self): <... | Test Party Communication module | 6259906b097d151d1a2c2871 |
class DokuWikiXMLRPCError(DokuWikiError): <NEW_LINE> <INDENT> def __init__(self, obj): <NEW_LINE> <INDENT> DokuWikiError.__init__(self) <NEW_LINE> if isinstance(obj, xmlrpclib.Fault): <NEW_LINE> <INDENT> self.page_id = obj.faultCode <NEW_LINE> self.message = obj.faultString <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT>... | Triggered on XMLRPC faults. | 6259906b4a966d76dd5f06f1 |
class EB_Inspector(IntelBase): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(EB_Inspector, self).__init__(*args, **kwargs) <NEW_LINE> self.subdir = '' <NEW_LINE> loosever = LooseVersion(self.version) <NEW_LINE> if loosever >= LooseVersion('2013_update7') and loosever < LooseVersion(... | Support for installing Intel Inspector | 6259906b2ae34c7f260ac8eb |
class LossComputeBase(nn.Module): <NEW_LINE> <INDENT> def __init__(self, generator, tgt_vocab): <NEW_LINE> <INDENT> super(LossComputeBase, self).__init__() <NEW_LINE> self.generator = generator <NEW_LINE> self.tgt_vocab = tgt_vocab <NEW_LINE> self.padding_idx = tgt_vocab.stoi[onmt.io.PAD_WORD] <NEW_LINE> <DEDENT> def _... | Class for managing efficient loss computation. Handles
sharding next step predictions and accumulating mutiple
loss computations
Users can implement their own loss computation strategy by making
subclass of this one. Users need to implement the _compute_loss()
and make_shard_state() methods.
Args:
generator (:o... | 6259906b01c39578d7f14336 |
class Battery(): <NEW_LINE> <INDENT> def __init__(self,battery_size=70): <NEW_LINE> <INDENT> self.battery_size = battery_size <NEW_LINE> <DEDENT> def describe_battery(self): <NEW_LINE> <INDENT> print( "This car has a " + str(self.battery_size) + "-kWh battery." ) <NEW_LINE> <DEDENT> def get_range(self): <NEW_LINE> <IND... | 一次模拟电动汽车电瓶的简单尝试 | 6259906b4527f215b58eb5a1 |
class Stopwatch: <NEW_LINE> <INDENT> __slots__ = '_time_func', 'start_time', '_time', 'running' <NEW_LINE> def __init__(self, time_func=time.time): <NEW_LINE> <INDENT> self._time_func = time_func <NEW_LINE> self.reset() <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> return self.start() <NEW_LINE> <DEDENT>... | A stopwatch that can be used as a context manager.
Example:
with Stopwatch as sw:
sleep(1)
assert sw.running and sw.time >= 1.
assert not sw.running and sw.time >= 1.
Example:
sw = Stopwatch().start()
sleep(1)
assert sw.running and sw.time >= 1.
sw.stop()
assert not sw.runn... | 6259906b26068e7796d4e13c |
class Human_quantum_player(Player): <NEW_LINE> <INDENT> def __init__(self, game): <NEW_LINE> <INDENT> self.game = game <NEW_LINE> <DEDENT> def play(self, opp_move): <NEW_LINE> <INDENT> if opp_move is not None: <NEW_LINE> <INDENT> self.game.do_move(opp_move) <NEW_LINE> <DEDENT> while True: <NEW_LINE> <INDENT> m = re.fin... | Allow a user player to play a game at the console
in format 'from_i to_i' or 'from_r from_c to_r to_c' | 6259906bdd821e528d6da582 |
class ArticleImage(models.Model): <NEW_LINE> <INDENT> article = models.ForeignKey('ArticleItem') <NEW_LINE> image = models.ImageField(upload_to="upload") | article item image | 6259906b5166f23b2e244bd5 |
class Viewport(object): <NEW_LINE> <INDENT> _viewport = None <NEW_LINE> def __new__(cls): <NEW_LINE> <INDENT> if Viewport._viewport is not None: <NEW_LINE> <INDENT> return Viewport._viewport <NEW_LINE> <DEDENT> Viewport._viewport = super(Viewport, cls).__new__(cls) <NEW_LINE> return Viewport._viewport <NEW_LINE> <DEDEN... | Viewports. | 6259906b63d6d428bbee3e8b |
class Jobs(object): <NEW_LINE> <INDENT> def __init__(self, name, client): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.client = client <NEW_LINE> <DEDENT> def running(self, offset=0, count=25): <NEW_LINE> <INDENT> return self.client('jobs', 'running', self.name, offset, count) <NEW_LINE> <DEDENT> def stalled(se... | A proxy object for queue-specific job information | 6259906b796e427e5384ff7b |
class GfalCommand(Command): <NEW_LINE> <INDENT> def __init__(self, *, action, recursive = False, dry_run = False, **kwargs): <NEW_LINE> <INDENT> super().__init__(**kwargs) <NEW_LINE> self.base_command = "gfal-" <NEW_LINE> self.action = action <NEW_LINE> self.recursive = recursive <NEW_LINE> self.dry_run = dry_run <NEW_... | Creates and stores a GFAL based command | 6259906b4e4d562566373c0a |
class ConnectionFailure(ProviderFailure): <NEW_LINE> <INDENT> pass | Provider is considered off-line | 6259906b32920d7e50bc784a |
class CatalogBaseTable(object): <NEW_LINE> <INDENT> def __init__(self, j_catalog_base_table): <NEW_LINE> <INDENT> self._j_catalog_base_table = j_catalog_base_table <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def create_table( schema: TableSchema, partition_keys: List[str] = [], properties: Dict[str, str] = {}, comment... | CatalogBaseTable is the common parent of table and view. It has a map of
key-value pairs defining the properties of the table. | 6259906b67a9b606de5476a4 |
class PackageServicesRequestInputSet(InputSet): <NEW_LINE> <INDENT> def set_Response(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'Response', value) <NEW_LINE> <DEDENT> def set_DestinationZip(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'DestinationZip', value) <NEW_LINE> <DEDENT> def set_... | An InputSet with methods appropriate for specifying the inputs to the PackageServicesRequest
Choreo. The InputSet object is used to specify input parameters when executing this Choreo. | 6259906b2ae34c7f260ac8ed |
class Client: <NEW_LINE> <INDENT> def __init__(self, client_socket, ip_address, connection_time, login): <NEW_LINE> <INDENT> self._is_connected = True <NEW_LINE> self._safe_quit = False <NEW_LINE> self._ip_address = ip_address <NEW_LINE> self._connection_time = connection_time <NEW_LINE> self._login = login <NEW_LINE> ... | Данный класс хранит всю информацию о конкретном клиенте, которая необходима
серверу для поддержки соединения. Для каждого сокета клиента создаётся отдельный
обработчик. | 6259906be76e3b2f99fda205 |
class _BraidConstructorIndex: <NEW_LINE> <INDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> return lambda obj=None, p=None, * args, **kwargs: Braid(obj, *args, n=key, p=p, **kwargs) | >>> Braid([-3], 5) == B[5]([-3])
True | 6259906b01c39578d7f14337 |
class SnubaDiscoverEventStorage(EventStorage): <NEW_LINE> <INDENT> def get_events(self, *args, **kwargs): <NEW_LINE> <INDENT> return SnubaEventStorage().get_events(*args, **kwargs) <NEW_LINE> <DEDENT> def get_event_by_id(self, *args, **kwargs): <NEW_LINE> <INDENT> return SnubaEventStorage().get_event_by_id(*args, **kwa... | Experimental backend that uses the Snuba Discover dataset instead of Events
or Transactions directly. | 6259906bbe8e80087fbc0890 |
class IssoParser(ConfigParser): <NEW_LINE> <INDENT> def getint(self, section, key): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> delta = timedelta(self.get(section, key)) <NEW_LINE> <DEDENT> except ValueError: <NEW_LINE> <INDENT> return super(IssoParser, self).getint(section, key) <NEW_LINE> <DEDENT> else: <NEW_LINE> <... | Parse INI-style configuration with some modifications for Isso.
* parse human-readable timedelta such as "15m" as "15 minutes"
* handle indented lines as "lists" | 6259906b3539df3088ecdaa3 |
class BRZipCodeField(CharField): <NEW_LINE> <INDENT> default_error_messages = { 'invalid': _('Enter a zip code in the format XXXXX-XXX.'), } <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(BRZipCodeField, self).__init__(*args, **kwargs) <NEW_LINE> self.validators.append(BRPostalCodeValidator()... | A form field that validates input as a Brazilian zip code, with the format XXXXX-XXX.
.. versionchanged:: 2.2
Use BRPostalCodeValidator to centralize validation logic and share with equivalent model field.
More details at: https://github.com/django/django-localflavor/issues/334 | 6259906b32920d7e50bc784b |
class Trace(DeclarativeBase): <NEW_LINE> <INDENT> __tablename__ = 'traces' <NEW_LINE> id = Column(Integer, autoincrement=True, primary_key=True) <NEW_LINE> flight_id = Column(Integer, ForeignKey('flights.id', ondelete='CASCADE'), nullable=False) <NEW_LINE> flight = relation('Flight', primaryjoin=(flight_id == Flight.id... | This table saves the locations and visiting times of the turnpoints
of an optimized Flight. | 6259906bd268445f2663a75f |
class SemiParametricRegressor(Regressor): <NEW_LINE> <INDENT> def __init__(self, regressor, features, transform, update='composition'): <NEW_LINE> <INDENT> super(SemiParametricRegressor, self).__init__( regressor, features) <NEW_LINE> self.transform = transform <NEW_LINE> self._update = self._select_update(update) <NEW... | Fitter of Semi-Parametric Regressor.
Parameters
----------
regressor : callable
The regressor to be used from
`menpo.fit.regression.regressioncallables`.
features : function
The feature function used to regress. | 6259906b6e29344779b01e59 |
class EVAR(Fingerprint): <NEW_LINE> <INDENT> API = 'PyFunge v2' <NEW_LINE> ID = 0x45564152 <NEW_LINE> @Fingerprint.register('G') <NEW_LINE> def command71(self, ip): <NEW_LINE> <INDENT> name = ip.pop_string() <NEW_LINE> try: <NEW_LINE> <INDENT> ip.push_string(self.platform.environ[name]) <NEW_LINE> <DEDENT> except Excep... | Environment variables extension | 6259906b5166f23b2e244bd7 |
class EnrollmentDailyMysqlTask(OverwriteHiveAndMysqlDownstreamMixin, CourseEnrollmentDownstreamMixin, MysqlInsertTask): <NEW_LINE> <INDENT> overwrite = None <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(EnrollmentDailyMysqlTask, self).__init__(*args, **kwargs) <NEW_LINE> self.overwrite = sel... | A history of the number of students enrolled in each course at the end of each day.
During operations: The object at insert_source_task is opened and each row is treated as a row to be inserted.
At the end of this task data has been written to MySQL. Overwrite functionality is complex and configured through
the Overw... | 6259906b1b99ca4002290138 |
class BadType(Invalid): <NEW_LINE> <INDENT> pass | The JWT has an unexpected "typ" value. | 6259906b99cbb53fe68326ec |
class MAVLink_gcs_radio_message(MAVLink_message): <NEW_LINE> <INDENT> def __init__(self, rssi, remrssi, txbuf, noise, remnoise, rxerrors, fixed): <NEW_LINE> <INDENT> MAVLink_message.__init__(self, MAVLINK_MSG_ID_GCS_RADIO, 'GCS_RADIO') <NEW_LINE> self._fieldnames = ['rssi', 'remrssi', 'txbuf', 'noise', 'remnoise', 'rxe... | Status of radio system on ground | 6259906b63d6d428bbee3e8c |
class ColorAnimation(ColorAnimationBase,ISealable,IAnimatable,IResource): <NEW_LINE> <INDENT> def AllocateClock(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def Clone(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def CloneCore(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def CloneCurrent... | Animates the value of a System.Windows.Media.Color property between two target values using linear interpolation over a specified System.Windows.Media.Animation.Timeline.Duration.
ColorAnimation()
ColorAnimation(toValue: Color,duration: Duration)
ColorAnimation(toValue: Color,duration: Duration,fillBehavior: Fi... | 6259906b44b2445a339b7562 |
class BadWalkabout(Exception): <NEW_LINE> <INDENT> def __init__(self, failed_name): <NEW_LINE> <INDENT> super(BadWalkabout, self).__init__(failed_name) <NEW_LINE> self.failed_name = failed_name | Walkabout Resource specified does not contain any
GIF files (AnimatedSprite) for creating a Walkabout sprite.
Used in Walkabout when no files match "*.gif"
in the provided Resource.
Attributes:
failed_name (str): The supplied archive was appended to the
resources' walkabout direction. This is the value of... | 6259906bf548e778e596cd92 |
class AuditBaseTestCase(BaseModelTestCase): <NEW_LINE> <INDENT> ... | This is the base `TestCase` for all the `AuditBase` models in the
project. | 6259906bfff4ab517ebcf021 |
class SegmentTerminatorNotFoundError(Exception): <NEW_LINE> <INDENT> def __init__(self, msg): <NEW_LINE> <INDENT> self.msg = msg | Exception raised for errors in the Interchange Header.
Attributes:
msg -- explanation of the error | 6259906b7d43ff2487428014 |
class OwnerListView(ListView): <NEW_LINE> <INDENT> permission = None <NEW_LINE> related= None <NEW_LINE> defer = None <NEW_LINE> owner_field = 'owner' <NEW_LINE> def sort_filter(self): <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> def get_queryset(self): <NEW_LINE> <INDENT> vars = self.request.GET <NEW_LINE> sort = va... | A base view for filtering based on the 'owner' of a particular object. For now, 'owner' is expected to be a
username that maps to a Django User. | 6259906b0a50d4780f7069c3 |
class __handler(TestStatus): <NEW_LINE> <INDENT> def __init__(self, verbose=False, alert=False): <NEW_LINE> <INDENT> super(self.__class__, self).__init__(verbose, alert) <NEW_LINE> self._alert = False | Default handler for tests, when a real one isn't
specified. This only prints to stdout, and will never
set (or remove) an alert. | 6259906b3346ee7daa338261 |
class Alien(Sprite): <NEW_LINE> <INDENT> def __init__(self, ai_settings, screen): <NEW_LINE> <INDENT> super(Alien, self).__init__() <NEW_LINE> self.screen = screen <NEW_LINE> self.ai_settings = ai_settings <NEW_LINE> self.image = pygame.image.load('images/ufo.png') <NEW_LINE> self.rect = self.image.get_rect() <NEW_LINE... | Класс, представляющий одного пришельца. | 6259906b01c39578d7f14338 |
class TestYoutubeSubsBase(SharedModuleStoreTestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> super().setUpClass() <NEW_LINE> cls.course = CourseFactory.create( org=cls.org, number=cls.number, display_name=cls.display_name) | Base class for tests of Youtube subs. Using override_settings and
a setUpClass() override in a test class which is inherited by another
test class doesn't work well with pytest-django. | 6259906b5fc7496912d48e6b |
class Equippable: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> require_attributes(self, ['equipped']) <NEW_LINE> <DEDENT> def add_bonuses(self, equippable): <NEW_LINE> <INDENT> for bonus in equippable.bonuses: <NEW_LINE> <INDENT> old = getattr(self, bonus) <NEW_LINE> new = o... | Mixin that allows for wearing items and passive skills | 6259906b4428ac0f6e659d39 |
class position_dodge(position): <NEW_LINE> <INDENT> REQUIRED_AES = {'x'} <NEW_LINE> def __init__(self, width=None, preserve='total'): <NEW_LINE> <INDENT> self.params = {'width': width, 'preserve': preserve} <NEW_LINE> <DEDENT> def setup_params(self, data): <NEW_LINE> <INDENT> if (('xmin' not in data) and ('xmax' not in... | Dodge overlaps and place objects side-by-side
Parameters
----------
width: float
Dodging width, when different to the width of the
individual elements. This is useful when you want
to align narrow geoms with wider geoms
preserve: str in ``['total', 'single']``
Should dodging preserve the total width of... | 6259906be1aae11d1e7cf410 |
class BackupJob(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> parser = argparse.ArgumentParser( prog=piserver.constants.PROGRAM, description=piserver.constants.DESCRIPTION) <NEW_LINE> parser.add_argument('jobname', type=str, help='Job configuration file name (the local name)') <NEW_LINE> parser.a... | Class representing a single backup job. | 6259906b4e4d562566373c0d |
class ModelSetting(Setting): <NEW_LINE> <INDENT> def __init__(self, config=None, name='ModelSetting'): <NEW_LINE> <INDENT> super(ModelSetting, self).__init__(name, config) <NEW_LINE> <DEDENT> def _initialize_attrib(self): <NEW_LINE> <INDENT> self.classname = '' <NEW_LINE> <DEDENT> def _load(self, _content): <NEW_LINE> ... | Settings for model class selection. | 6259906b3539df3088ecdaa6 |
class Age(atom.AtomBase): <NEW_LINE> <INDENT> _tag = 'age' <NEW_LINE> _namespace = YOUTUBE_NAMESPACE | The YouTube Age element | 6259906b1f5feb6acb1643f5 |
class RegRefTransform: <NEW_LINE> <INDENT> def __init__(self, expr): <NEW_LINE> <INDENT> regref_symbols = list(expr.free_symbols) <NEW_LINE> self.expr = expr <NEW_LINE> self.func = sym.lambdify(regref_symbols, expr) <NEW_LINE> self.regrefs = [int(str(i)[1:]) for i in regref_symbols] <NEW_LINE> self.func_str = str(expr)... | Class to represent a classical register transform.
Args:
expr (sympy.Expr): a SymPy expression representing the RegRef transform | 6259906b0c0af96317c57962 |
class direction(object): <NEW_LINE> <INDENT> compass_dirs = { "N": 0.0, "NNE": 22.5, "NE": 45.0, "ENE": 67.5, "E": 90.0, "ESE":112.5, "SE":135.0, "SSE":157.5, "S":180.0, "SSW":202.5, "SW":225.0, "WSW":247.5, "W":270.0, "WNW":292.5, "NW":315.0, "NNW":337.5 } <NEW_LINE> def __init__( self, d ): <NEW_LINE> <INDENT> if ... | A class representing a compass direction. | 6259906bf548e778e596cd93 |
class ReturnSlaveMessageCountRequest(DiagnosticStatusSimpleRequest): <NEW_LINE> <INDENT> sub_function_code = 0x000E <NEW_LINE> def execute(self): <NEW_LINE> <INDENT> count = _MCB.Counter.SlaveMessage <NEW_LINE> return ReturnSlaveMessageCountResponse(count) | The response data field returns the quantity of messages addressed to the
remote device, or broadcast, that the remote device has processed since
its last restart, clear counters operation, or power-up | 6259906b1f037a2d8b9e546e |
class DescribeAllDevicesRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Offset = None <NEW_LINE> self.Limit = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Offset = params.get("Offset") <NEW_LINE> self.Limit = params.get("Limit") <NEW_LINE> me... | DescribeAllDevices请求参数结构体
| 6259906b4c3428357761baba |
class CoreConfig(AppConfig): <NEW_LINE> <INDENT> name = 'core' | Default CoreConfig Class
| 6259906b56ac1b37e63038e6 |
class UpdateOwnProfile(permissions.BasePermission): <NEW_LINE> <INDENT> def has_object_permission(self, request, view, obj): <NEW_LINE> <INDENT> if request.method in permissions.SAFE_METHODS: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> return obj.id == request.user.id | Allow user to edit their own profile | 6259906b4428ac0f6e659d3a |
class MaxUnpool1d(_MaxUnpoolNd): <NEW_LINE> <INDENT> def __init__(self, kernel_size, stride=None, padding=0): <NEW_LINE> <INDENT> super(MaxUnpool1d, self).__init__() <NEW_LINE> self.kernel_size = _single(kernel_size) <NEW_LINE> self.stride = _single(stride or kernel_size) <NEW_LINE> self.padding = _single(padding) <NEW... | Computes a partial inverse of :class:`MaxPool1d`.
:class:`MaxPool1d` is not fully invertible, since the non-maximal values are lost.
:class:`MaxUnpool1d` takes in as input the output of :class:`MaxPool1d`
including the indices of the maximal values and computes a partial inverse
in which all non-maximal values are se... | 6259906b7d43ff2487428015 |
class RecipeBookRecipeRelation(models.Model): <NEW_LINE> <INDENT> recipe = models.ForeignKey(Recipe, on_delete=models.CASCADE) <NEW_LINE> recipeBook = models.ForeignKey(RecipeBook, on_delete=models.CASCADE) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return u'%s - %s' % (self.recipeBook.name, self.recipe.name... | class of a RecipeBookRecipeRelation | 6259906b2ae34c7f260ac8f0 |
class MCP3201(MCP32xx): <NEW_LINE> <INDENT> def __init__(self, **spi_args): <NEW_LINE> <INDENT> super(MCP3201, self).__init__(0, differential=True, **spi_args) <NEW_LINE> <DEDENT> def _read(self): <NEW_LINE> <INDENT> return self._words_to_int(self._spi.read(2), 13) >> 1 | The `MCP3201`_ is a 12-bit analog to digital converter with 1 channel.
Please note that the MCP3201 always operates in differential mode,
measuring the value of IN+ relative to IN-.
.. _MCP3201: http://www.farnell.com/datasheets/1669366.pdf | 6259906be76e3b2f99fda209 |
class ChangeLayout(zeit.content.cp.browser.blocks.teaser.ChangeLayout): <NEW_LINE> <INDENT> def reload(self): <NEW_LINE> <INDENT> super(ChangeLayout, self).reload(self.context.__parent__) | Always reload surrounding area when changing layout. | 6259906bbaa26c4b54d50ab0 |
class CustomFieldSerializer: <NEW_LINE> <INDENT> superType = Object() <NEW_LINE> def __init__(self, instanceType): <NEW_LINE> <INDENT> self.instanceType = instanceType <NEW_LINE> <DEDENT> def getTypeName(self): <NEW_LINE> <INDENT> return self.className <NEW_LINE> <DEDENT> def getSignature(self, crc): <NEW_LINE> <INDENT... | Base functionality for the custom field serializers.
| 6259906be1aae11d1e7cf411 |
class PersonForm(forms.Form): <NEW_LINE> <INDENT> first_name = forms.CharField(max_length=20, label=_(u"First Name")) <NEW_LINE> last_name = forms.CharField(max_length=30, label=_(u"Last Name")) <NEW_LINE> username = forms.CharField(max_length=15, label=_(u"Username")) <NEW_LINE> email = forms.EmailField() <NEW_LINE> p... | Person registration form | 6259906b4428ac0f6e659d3b |
class RepeatedKFold(_RepeatedSplits): <NEW_LINE> <INDENT> def __init__(self, n_splits=5, n_repeats=10, random_state=None): <NEW_LINE> <INDENT> super(RepeatedKFold, self).__init__( KFold, n_repeats, random_state, n_splits=n_splits) | Repeated K-Fold cross validator.
Repeats K-Fold n times with different randomization in each repetition.
Read more in the :ref:`User Guide <cross_validation>`.
Parameters
----------
n_splits : int, default=5
Number of folds. Must be at least 2.
n_repeats : int, default=10
Number of times cross-validator nee... | 6259906b4e4d562566373c0f |
class PartFont(Part): <NEW_LINE> <INDENT> def __init__(self, children): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.fontname = children[0].text <NEW_LINE> <DEDENT> except (AttributeError, IndexError): <NEW_LINE> <INDENT> self.fontname = '' <NEW_LINE> <DEDENT> self.children = children[1:] <NEW_LINE> <DEDENT> def r... | Change font name in part. | 6259906b91f36d47f2231a93 |
class _NodeSetupMixin(object): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super().setUp() <NEW_LINE> self.bp1 = models.Blueprint( id='bp1', creator=self.user, tenant=self.tenant, ) <NEW_LINE> self.dep1 = self._deployment('d1') <NEW_LINE> <DEDENT> def _deployment(self, deployment_id, **kwargs): <NEW_LINE> ... | A mixin useful in these tests, that exposes utils for creating nodes
Creating nodes otherwise is a pain because of how many arguments
they require | 6259906bd6c5a102081e3932 |
class BluetoothConnection(object): <NEW_LINE> <INDENT> def __init__(self, acl_connect_event): <NEW_LINE> <INDENT> if len(acl_connect_event.key_field_values) < 2: <NEW_LINE> <INDENT> raise (BluetoothConnectionError( 'Invalid ACL connection event, cannot create connection.')) <NEW_LINE> <DEDENT> conn_handle = _convert_ha... | Represents a Bluetooth connection.
This class maintains a list of events that happened during the connection. | 6259906b8da39b475be049f4 |
class QEnterEvent(__PyQt5_QtCore.QEvent): <NEW_LINE> <INDENT> def globalPos(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def globalX(self): <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> def globalY(self): <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> def localPos(self): <NEW_LINE> <INDENT> pass <NEW_LINE> ... | QEnterEvent(Union[QPointF, QPoint], Union[QPointF, QPoint], Union[QPointF, QPoint])
QEnterEvent(QEnterEvent) | 6259906b2ae34c7f260ac8f1 |
class EmailTemplate(models.Model): <NEW_LINE> <INDENT> subject = models.CharField(_('subject'),max_length=1024) <NEW_LINE> body = models.TextField(_('body'),max_length=8192) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.subject <NEW_LINE> <DEDENT> def send(self, recipients, **kw): <NEW_LINE> <INDENT... | Email template. Used for sending emails after e.g. issue updates. | 6259906b5fdd1c0f98e5f78e |
class StreamProtocolHandler(object): <NEW_LINE> <INDENT> def __init__(self, message_schema, packet_callback): <NEW_LINE> <INDENT> self.message_schema = message_schema <NEW_LINE> self.packet_callback = packet_callback <NEW_LINE> self._available_bytes = b"" <NEW_LINE> self._packet_generator = self._create_packet_generato... | Protocol handler that deals fluidly with a stream of bytes
The protocol handler is agnostic to the data source or methodology
being used to collect the data (blocking reads on a socket to async
IO on a serial port).
Here's an example of what one usage might look like (very simple
approach for parsing a simple TCP pr... | 6259906b32920d7e50bc784f |
class DescribeOperationResultRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.TaskId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.TaskId = params.get("TaskId") | DescribeOperationResult请求参数结构体
| 6259906bd486a94d0ba2d7c8 |
class VIEW3D_OT_pospath_button(Operator, ImportHelper): <NEW_LINE> <INDENT> bl_idname = "atomblend.import_pospath" <NEW_LINE> bl_label = "Select .pos file" <NEW_LINE> filename_ext = ".pos" <NEW_LINE> filter_glob = StringProperty( default="*.pos", options={'HIDDEN'}, ) <NEW_LINE> def execute(self, context): <NEW_LINE> <... | Select POS file from dialogue | 6259906b435de62698e9d613 |
class Node: <NEW_LINE> <INDENT> def __init__(self,data): <NEW_LINE> <INDENT> self.data = data <NEW_LINE> self.parent = None <NEW_LINE> self.children = [] <NEW_LINE> <DEDENT> def addChild(self,data): <NEW_LINE> <INDENT> node = Tree.Node(data) <NEW_LINE> node.parent = self <NEW_LINE> self.children.append(node) <NEW_LINE>... | Node class should not be used outside the context of a tree, so it is nested within the Tree class. | 6259906b7d847024c075dbe4 |
class PassThroughEnc2Dec(Seq2SeqEnc2Dec): <NEW_LINE> <INDENT> def hybrid_forward( self, F, encoder_output_static: Tensor, encoder_output_dynamic: Tensor, future_features_dynamic: Tensor, ) -> Tuple[Tensor, Tensor]: <NEW_LINE> <INDENT> return encoder_output_static, encoder_output_dynamic | Simplest class for passing encoder tensors do decoder. Passes through
tensors, except that future_features_dynamic is dropped. | 6259906bac7a0e7691f73cf0 |
class EmptyPasswordStoreError(PasswordStoreError): <NEW_LINE> <INDENT> pass | Raised when the password store is empty. | 6259906ba8370b77170f1bcf |
class comRNA(CommandLineApplication): <NEW_LINE> <INDENT> _parameters = { '-L':ValuedParameter(Prefix='',Name='L',Value=None,Delimiter=' '), '-E':ValuedParameter(Prefix='',Name='E',Value=None,Delimiter=' '), '-S':ValuedParameter(Prefix='',Name='S',Value=None,Delimiter=' '), '-Sh':ValuedParameter(Prefix='',Name='Sh',Val... | Application controller comRNA v1.80
for comRNA options type comRNA at the promt | 6259906bf548e778e596cd96 |
class Reset(Cmd): <NEW_LINE> <INDENT> cmd = "reset" <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> Cmd.__init__(self) <NEW_LINE> self.parser.add_argument("-v", "--verbose", action="store_true", help="enable verbose output") <NEW_LINE> <DEDENT> def __call__(self, args): <NEW_LINE> <INDENT> if args.verbose: <NEW_LINE... | Reset cache | 6259906bf7d966606f7494c0 |
class ToNumpy(ForceHandleMixin, BaseTransformer): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> BaseTransformer.__init__(self) <NEW_LINE> ForceHandleMixin.__init__(self) <NEW_LINE> <DEDENT> def _will_process(self, data_container: DataContainer, context: ExecutionContext) -> ( DataContainer, ExecutionConte... | Convert data inputs, and expected outputs to a numpy array. | 6259906b21bff66bcd724470 |
class TempFile: <NEW_LINE> <INDENT> def __init__(self, mode): <NEW_LINE> <INDENT> import tempfile <NEW_LINE> fd, self.Name = tempfile.mkstemp(prefix='hg-p4-') <NEW_LINE> if mode: <NEW_LINE> <INDENT> self.File = os.fdopen(fd, mode) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> os.close(fd) <NEW_LINE> self.File = None <N... | Temporary file | 6259906b99fddb7c1ca639d5 |
class BaseCallback(object): <NEW_LINE> <INDENT> def __init__(self, epochs=None, manual_update=False, external_metric_labels=None, **kwargs): <NEW_LINE> <INDENT> self.params = None <NEW_LINE> self.model = None <NEW_LINE> self.manual_update = manual_update <NEW_LINE> self.epochs = epochs <NEW_LINE> self.epoch = 0 <NEW_LI... | Base class for Callbacks
| 6259906b3346ee7daa338263 |
class TestDataInputsTinyResponse(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 make_instance(self, include_optional): <NEW_LINE> <INDENT> if include_optional : <NEW_LINE> <INDENT> return DataInpu... | DataInputsTinyResponse unit test stubs | 6259906b4f6381625f19a0ac |
class Preprocessing(luigi.Task): <NEW_LINE> <INDENT> def requires(self): <NEW_LINE> <INDENT> return [CreateTransactionTable(), ExportMySQLToHive(source_table='products', destination='/input/products/products', schema="DROP TABLE IF EXISTS products; " "CREATE EXTERNAL TABLE products " "(id INT, name STRING, category STR... | Defines all preprocessing dependencies of the data flow. | 6259906b2ae34c7f260ac8f2 |
class TaskLayout(HasStrictTraits): <NEW_LINE> <INDENT> left_panes = NestedListStr <NEW_LINE> right_panes = NestedListStr <NEW_LINE> bottom_panes = NestedListStr <NEW_LINE> top_panes = NestedListStr <NEW_LINE> toolkit_state = Any | A picklable object that describes the layout of a Task's dock panes.
| 6259906baad79263cf42ffc0 |
class FileDetailed(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'detail_type': 'str', 'store_name': 'str', 'uid': 'int', 'name': 'str', 'link': 'str', 'store_data': 'object' } <NEW_LINE> self.attribute_map = { 'detail_type': 'detail_type', 'store_name': 'store_name', 'uid'... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 6259906ba8370b77170f1bd0 |
class ErrorSet: <NEW_LINE> <INDENT> def __init__(self, error_set, after=True): <NEW_LINE> <INDENT> self.data = np.array(list(error_set)) <NEW_LINE> if after: <NEW_LINE> <INDENT> self.error_func = self.error_func_after <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.error_func = self.error_func_before <NEW_LINE> <DED... | Class used to create a callable that returns an element from the error_set with uniform distribution. | 6259906b8e71fb1e983bd2d2 |
class ParamMixin(object): <NEW_LINE> <INDENT> def build_param_gui(self, container): <NEW_LINE> <INDENT> captions = (('Load Param', 'button', 'Save Param', 'button'), ) <NEW_LINE> w, b = Widgets.build_info(captions, orientation=self.orientation) <NEW_LINE> self.w.update(b) <NEW_LINE> b.load_param.set_tooltip('Load previ... | Mixin class for Ginga local plugin that enables the feature to
save/load parameters. | 6259906bd6c5a102081e3934 |
class NasPathBlock(HybridBlock): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels, **kwargs): <NEW_LINE> <INDENT> super(NasPathBlock, self).__init__(**kwargs) <NEW_LINE> mid_channels = out_channels // 2 <NEW_LINE> with self.name_scope(): <NEW_LINE> <INDENT> self.activ = nn.Activation('relu') <NEW_LINE> ... | NASNet specific `path` block.
Parameters:
----------
in_channels : int
Number of input channels.
out_channels : int
Number of output channels. | 6259906b8da39b475be049f6 |
class ConnectToMongoDbTaskProperties(ProjectTaskProperties): <NEW_LINE> <INDENT> _validation = { 'task_type': {'required': True}, 'errors': {'readonly': True}, 'state': {'readonly': True}, 'commands': {'readonly': True}, 'output': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'task_type': {'key': 'taskType', 'typ... | Properties for the task that validates the connection to and provides information about a MongoDB server.
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.
:param task_type: Required. Task type.Constant filled ... | 6259906b2ae34c7f260ac8f3 |
class ActivatedMixin(models.Model): <NEW_LINE> <INDENT> objects = GenericManager() <NEW_LINE> actives = GenericActiveManager() <NEW_LINE> activated = models.BooleanField(_('Activated'), default=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> abstract = True <NEW_LINE> <DEDENT> def delete(self): <NEW_LINE> <INDENT> try... | Mixin class providing activated fields to any model | 6259906b379a373c97d9a82a |
class RuntimeException(Exception): <NEW_LINE> <INDENT> pass | Base class for all exceptions used by the device runtime.
Those exceptions are defined in ``artiq.coredevice.runtime_exceptions``. | 6259906bd486a94d0ba2d7ca |
class SLSPQdriverTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.top = set_as_top(Assembly()) <NEW_LINE> self.top.add('driver', SLSQPdriver()) <NEW_LINE> self.top.add('comp', OptRosenSuzukiComponent()) <NEW_LINE> self.top.driver.workflow.add('comp') <NEW_LINE> self.top.driver.... | test SLSQP optimizer component | 6259906bdd821e528d6da586 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.