code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class MyIntEnum(IntEnum): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def has_value(cls, value): <NEW_LINE> <INDENT> return (any(value == item.value for item in cls)) | Add class method has_value to IntEnum to check whether a certain
value exists in an enum. | 62598fb8baa26c4b54d4f3ec |
class BlockStyle(with_metaclass(ABCMeta, Base)): <NEW_LINE> <INDENT> def __init__(self, background_color=None, separator=None, separator_color=None, **kwargs): <NEW_LINE> <INDENT> super(BlockStyle, self).__init__(**kwargs) <NEW_LINE> self.background_color = background_color <NEW_LINE> self.separator = separator <NEW_LI... | BlockStyle.
https://developers.line.biz/en/reference/messaging-api/#block-style | 62598fb857b8e32f525081b6 |
class Account(models.Model): <NEW_LINE> <INDENT> date = models.DateField(null=True, blank=True) <NEW_LINE> krw = models.DecimalField(max_digits=10, decimal_places=2, null=True, blank=True) <NEW_LINE> usd = models.DecimalField(max_digits=10, decimal_places=2, null=True, blank=True) <NEW_LINE> cash = models.DecimalField(... | 계좌 | 62598fb84527f215b58ea009 |
class RenderCount(CachedPageRender): <NEW_LINE> <INDENT> def __init__(self, url_hash): <NEW_LINE> <INDENT> self.create_versioned_key(url_hash) <NEW_LINE> self.url_hash = url_hash <NEW_LINE> <DEDENT> def uncached_render(self, handler): <NEW_LINE> <INDENT> logging.info('Rendering count doc %s' % self.url_hash) <NEW_LINE>... | Deal with rendering the webpage showing the statistics of a document.
Additionally deals with caching. | 62598fb871ff763f4b5e78aa |
class BaseUsage: <NEW_LINE> <INDENT> def __init__(self, database, user, server, channel): <NEW_LINE> <INDENT> self.database = database <NEW_LINE> self.server = server <NEW_LINE> self.user = user <NEW_LINE> self.channel = channel <NEW_LINE> self.newRecord = True | The base class for usage information. | 62598fb84c3428357761a3ee |
class WinView(LoginRequiredMixin, TemplateView): <NEW_LINE> <INDENT> template_name = 'wins/win-details.html' <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = TemplateView.get_context_data(self, **kwargs) <NEW_LINE> resp = get_win_details(kwargs['win_id'], self.request) <NEW_LINE> if resp.s... | View details of a Win of logged in User | 62598fb8f548e778e596b6d8 |
class HexKey(DummyKey): <NEW_LINE> <INDENT> KEY_FIELDS = ('value',) <NEW_LINE> __slots__ = KEY_FIELDS <NEW_LINE> CANONICAL_NAMESPACE = 'hex' <NEW_LINE> def _to_string(self): <NEW_LINE> <INDENT> return hex(self.value) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def _from_string(cls, serialized): <NEW_LINE> <INDENT> if n... | Key type for testing; _from_string takes hex values | 62598fb856b00c62f0fb29ed |
class CVI_1014(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.svid = 1014 <NEW_LINE> self.language = "PHP" <NEW_LINE> self.author = "LoRexxar/wufeifei" <NEW_LINE> self.vulnerability = "variable shadowing" <NEW_LINE> self.description = "variable shadowing" <NEW_LINE> self.status = True <NEW_LINE> se... | rule class | 62598fb8aad79263cf42e907 |
class TestSocialsApi(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.api = bombbomb.apis.socials_api.SocialsApi() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_get_social_article_properties(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDE... | SocialsApi unit test stubs | 62598fb867a9b606de546104 |
class Meta: <NEW_LINE> <INDENT> ordering = ["command", "subcommand", "grant_type"] | Meta-attributes of an AccessGrant. | 62598fb867a9b606de546105 |
class Command(BaseCommand): <NEW_LINE> <INDENT> help = ('Pulls strings from the database and appends them to an existing ' '.pot file.') <NEW_LINE> option_list = BaseCommand.option_list + ( make_option('--output-dir', '-o', default=os.path.join(settings.ROOT, 'locale', 'templates', 'LC_MESSAGES'), dest='outputdir', hel... | Pulls strings from the database and appends them to an existing pot file.
The models and attributes to pull are defined by DB_LOCALIZE:
DB_LOCALIZE = {
'some_app': {
SomeModel': {
'attrs': ['attr_name', 'another_attr'],
}
},
'another_app': {
AnotherModel': {
... | 62598fb88e7ae83300ee91d3 |
class CPTECControlData: <NEW_LINE> <INDENT> def __init__(self, hass, data, devices): <NEW_LINE> <INDENT> self.devices = devices <NEW_LINE> self.data = data <NEW_LINE> self.hass = hass <NEW_LINE> <DEDENT> async def fetching_data(self, *_): <NEW_LINE> <INDENT> def try_again(err: str): <NEW_LINE> <INDENT> minutes = 1 <NEW... | Get the latest data and updates the states. | 62598fb856ac1b37e630231f |
class SteeringToWheelVelWrapper(gym.ActionWrapper): <NEW_LINE> <INDENT> def __init__(self, env, gain=1.0, trim=0.0, radius=0.0318, k=27.0, limit=1.0 ): <NEW_LINE> <INDENT> gym.ActionWrapper.__init__(self, env) <NEW_LINE> self.gain = gain <NEW_LINE> self.trim = trim <NEW_LINE> self.radius = radius <NEW_LINE> self.k = k ... | Converts policy that was trained with [velocity|heading] actions to
[wheelvel_left|wheelvel_right] to comply with AIDO evaluation format | 62598fb8956e5f7376df5717 |
class AhiRSR(object): <NEW_LINE> <INDENT> def __init__(self, platform_name, wavespace='wavelength'): <NEW_LINE> <INDENT> self.platform_name = platform_name <NEW_LINE> self.filename = None <NEW_LINE> self.rsr = None <NEW_LINE> options = get_config() <NEW_LINE> self.output_dir = options.get('rsr_dir', './') <NEW_LINE> ah... | Container for the Himawari AHI relative spectral response data | 62598fb856ac1b37e6302320 |
class TestBuildSequences(unittest.TestCase): <NEW_LINE> <INDENT> def testBuildSequences(self): <NEW_LINE> <INDENT> seqs = buildSequences([]) <NEW_LINE> self.assertEqual([], seqs) <NEW_LINE> seqs = buildSequences(["spam1", "spam3", "spam2"]) <NEW_LINE> self.assertEqual(1, len(seqs)) <NEW_LINE> self.assertEqual(["spam1",... | Test the buildSequences() function.
| 62598fb87d43ff248742749d |
class LocationType(TimeStampedModel): <NEW_LINE> <INDENT> label = models.CharField(_('label'), max_length=32, default='') <NEW_LINE> value = models.CharField(_('value'), max_length=32, default='') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> verbose_name = _('location type') <NEW_LINE> verbose_name_plural = _('location t... | Location type | 62598fb85fcc89381b2661e6 |
class Stylelint(Linter): <NEW_LINE> <INDENT> syntax = ('css', 'css3') <NEW_LINE> cmd = ('node', os.path.dirname(os.path.realpath(__file__)) + '/stylelint_wrapper.js', '@') <NEW_LINE> error_stream = util.STREAM_BOTH <NEW_LINE> config_file = ('--config', '.stylelintrc') <NEW_LINE> tempfile_suffix = 'css' <NEW_LINE> regex... | Provides an interface to stylelint. | 62598fb87b180e01f3e490eb |
class LatestSieve(IntStrSieve, CacheMixin): <NEW_LINE> <INDENT> name = "latest" <NEW_LINE> def __init__(self, sifter, tagname, *tagnames): <NEW_LINE> <INDENT> super().__init__(sifter, tagname, *tagnames) <NEW_LINE> self.tag_ids = None <NEW_LINE> <DEDENT> def prep(self, session, binfos): <NEW_LINE> <INDENT> tids = self.... | usage: ``(latest TAG [TAG...])``
Passes build infos that are the latest build of their package name
in any of the tags. | 62598fb87cff6e4e811b5b54 |
class BufferedRWPair(_BufferedIOBase): <NEW_LINE> <INDENT> def close(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def flush(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def isatty(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def peek(self, *args, *... | A buffered reader and writer object together.
A buffered reader object and buffered writer object put together to
form a sequential IO object that can read and write. This is typically
used with a socket or two-way pipe.
reader and writer are RawIOBase objects that are readable and
writeable respectively. If the buff... | 62598fb87c178a314d78d5d2 |
class ForwardOpenD1 (ForwardOpen) : <NEW_LINE> <INDENT> def __init__ ( self , I = 3 , with_error = False , maX_step = -1 ) : <NEW_LINE> <INDENT> ForwardOpen.__init__ ( self , 1 , I , with_error = with_error , max_step = max_step ) | Forward open rule for the 1st derivative | 62598fb8dc8b845886d536ec |
class TestSearchResult(unittest.TestCase): <NEW_LINE> <INDENT> def test_update(self): <NEW_LINE> <INDENT> with mock.patch('npyscreen.Textfield.__init__') as mock_init: <NEW_LINE> <INDENT> mock_init.return_value = None <NEW_LINE> search_result = SearchResult(mock.MagicMock()) <NEW_LINE> <DEDENT> mock_parent = search_res... | Verify the SearchResult Component. | 62598fb892d797404e388bfd |
class TestBigSegmentTarget(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 testBigSegmentTarget(self): <NEW_LINE> <INDENT> pass | BigSegmentTarget unit test stubs | 62598fb8851cf427c66b83ea |
class TestBigqueryCredential(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 testBigqueryCredential(self): <NEW_LINE> <INDENT> pass | BigqueryCredential unit test stubs | 62598fb8baa26c4b54d4f3ee |
class Node: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.wallet = Wallet() <NEW_LINE> self.wallet.create_keys() <NEW_LINE> self.blockchain = Blockchain(self.wallet.public_key) <NEW_LINE> <DEDENT> def get_transaction_value(self): <NEW_LINE> <INDENT> tx_recipient = input('Enter the recipient of the tr... | The node which runs the local blockchain instance.
Attributes:
:id: The id of the node.
:blockchain: The blockchain which is run by this node. | 62598fb84527f215b58ea00b |
class PublishingHouse(DataCruncher): <NEW_LINE> <INDENT> ACCEPT_STAGE = 3 <NEW_LINE> def generate_data(self): <NEW_LINE> <INDENT> if self.scoring_team == 'blue': <NEW_LINE> <INDENT> self.game.blue_score += 1 <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.game.red_score += 1 <NEW_LINE> <DEDENT> print("red's score " ... | Where the player brings the final paper and scores a point | 62598fb855399d3f05626648 |
class SchematicInputTemplateTest(TemplateTestCase): <NEW_LINE> <INDENT> TEMPLATE_NAME = 'schematicinput.html' <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super(SchematicInputTemplateTest, self).setUp() <NEW_LINE> self.context = { 'id': '1', 'status': Status('correct'), 'previewer': 'dummy.js', 'value': '101', 'STAT... | Test mako template for `<schematic>` input | 62598fb85fdd1c0f98e5e0c4 |
class SynapseError(Exception): <NEW_LINE> <INDENT> pass | Generic exception thrown by the client. | 62598fb8236d856c2adc94da |
class RandomForestAttacker(TrainedAttacker): <NEW_LINE> <INDENT> def train_model(self, input_features, is_training_labels): <NEW_LINE> <INDENT> rf_model = ensemble.RandomForestClassifier() <NEW_LINE> param_grid = { 'n_estimators': [100], 'max_features': ['auto', 'sqrt'], 'max_depth': [5, 10, 20, None], 'min_samples_spl... | Random forest attacker. | 62598fb8aad79263cf42e909 |
class TooManyFlushData(Exception): <NEW_LINE> <INDENT> pass | Raise this exception when there are too many data useless | 62598fb8fff4ab517ebcd91d |
class ClusterTemplatesGeneratorTestCase(test.ScenarioTestCase): <NEW_LINE> <INDENT> def _gen_tenants(self, count): <NEW_LINE> <INDENT> tenants = {} <NEW_LINE> for id_ in range(count): <NEW_LINE> <INDENT> tenants[str(id_)] = dict(name=str(id_)) <NEW_LINE> <DEDENT> return tenants <NEW_LINE> <DEDENT> @mock.patch("%s.magnu... | Generate tenants. | 62598fb863d6d428bbee28e4 |
@python_2_unicode_compatible <NEW_LINE> class Suggestion(models.Model): <NEW_LINE> <INDENT> STATE_NEW = 0 <NEW_LINE> STATE_IN_PROGRESS = 1 <NEW_LINE> STATE_COMPLETED = 2 <NEW_LINE> STATE_REJECTED = 3 <NEW_LINE> STATE_SPAM = 4 <NEW_LINE> RESOLVED_STATES = (STATE_COMPLETED, STATE_REJECTED) <NEW_LINE> OPEN_STATES = (STATE... | Represents a suggestion for videos to be added to the site. | 62598fb856ac1b37e6302321 |
class Critic: <NEW_LINE> <INDENT> def __init__(self, state_size, action_size): <NEW_LINE> <INDENT> self.state_size = state_size <NEW_LINE> self.action_size = action_size <NEW_LINE> self.build_model() <NEW_LINE> <DEDENT> def build_model(self): <NEW_LINE> <INDENT> states = layers.Input(shape=(self.state_size,), name='sta... | Critic (Value) Model. | 62598fb8283ffb24f3cf39b9 |
class TestVehicleOwner(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 testVehicleOwner(self): <NEW_LINE> <INDENT> pass | VehicleOwner unit test stubs | 62598fb897e22403b383b03b |
class CleanHunts(cronjobs.SystemCronFlow): <NEW_LINE> <INDENT> frequency = rdfvalue.Duration("7d") <NEW_LINE> lifetime = rdfvalue.Duration("6h") <NEW_LINE> @flow.StateHandler() <NEW_LINE> def Start(self): <NEW_LINE> <INDENT> hunts_ttl = config_lib.CONFIG["DataRetention.hunts_ttl"] <NEW_LINE> if not hunts_ttl: <NEW_LINE... | Cleaner that deletes old hunts. | 62598fb866673b3332c30505 |
class TestTicketIsClose(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.ticket1 = TicketFactory.build(status="new") <NEW_LINE> self.ticket2 = TicketFactory.build(status="accepted") <NEW_LINE> self.ticket3 = TicketFactory.build(status="assigned") <NEW_LINE> self.ticket4 = TicketFactory.build(sta... | Verify that the ticket.is_closed method work as expected
(returns true for closed, split, and duplicate, but false
otherwise). | 62598fb82c8b7c6e89bd38fa |
class CreateTestDialog(CreateItemDialog): <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> super(CreateTestDialog, self).__init__(parent) <NEW_LINE> self.setWindowTitle(self.tr('New test')) <NEW_LINE> <DEDENT> def _create_form(self): <NEW_LINE> <INDENT> test_id_label = QtGui.QLabel(self.tr('Name'), s... | Dialog window used to create a new test.
| 62598fb8a05bb46b3848a9a1 |
class itkHardConnectedComponentImageFilterIUC2IUC2(itkImageToImageFilterAPython.itkImageToImageFilterIUC2IUC2): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor... | Proxy of C++ itkHardConnectedComponentImageFilterIUC2IUC2 class | 62598fb8796e427e5384e8cb |
class Wrapper: <NEW_LINE> <INDENT> def __init__(self, backend): <NEW_LINE> <INDENT> self._backend = backend <NEW_LINE> <DEDENT> def close(self): <NEW_LINE> <INDENT> self._backend = CLOSED <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def __exit__(self, t, v, tb): <NEW_LINE... | Used to lend a backend without closing the wrapped backend. | 62598fb8dc8b845886d536ee |
class ExportDataRelation(ModelSQL): <NEW_LINE> <INDENT> _name = 'test.export_data.relation' <NEW_LINE> _description = __doc__ <NEW_LINE> many2many = fields.Many2One('test.export_data', 'Export Data') <NEW_LINE> target = fields.Many2One('test.export_data.target', 'Target') | Export Data Many2Many | 62598fb8851cf427c66b83ec |
class GRUGenerator(Generator): <NEW_LINE> <INDENT> def __init__(self, encoder=None, vocab_size=1, embedding_size=32, hidden_size=64): <NEW_LINE> <INDENT> logger.info('Overriding class: Generator -> GRUGenerator.') <NEW_LINE> super(GRUGenerator, self).__init__(name='G_gru') <NEW_LINE> self.encoder = encoder <NEW_LINE> s... | A GRUGenerator class is the one in charge of a
Gated Recurrent Unit implementation.
References:
K. Cho, et al.
Learning phrase representations using RNN encoder-decoder for statistical machine translation.
Preprint arXiv:1406.1078 (2014). | 62598fb860cbc95b06364475 |
class loginZ_result(object): <NEW_LINE> <INDENT> def __init__(self, success=None, e=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> self.e = e <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and sel... | Attributes:
- success
- e | 62598fb8f9cc0f698b1c5368 |
@urls.register <NEW_LINE> class DSCPMarkingRules(generic.View): <NEW_LINE> <INDENT> url_regex = ( r'neutron/qos/policies/(?P<policy_id>[^/]+)' + r'/dscp_marking_rules/$') <NEW_LINE> @rest_utils.ajax(data_required=True) <NEW_LINE> def post(self, req, policy_id): <NEW_LINE> <INDENT> dscp_marking_rule = api.neutron.dscp_m... | API for DSCP Marking Rule create | 62598fb87047854f4633f50d |
class Player(models.Model): <NEW_LINE> <INDENT> created_by = models.ForeignKey( User, on_delete=models.SET_NULL, null=True, related_name='creator_of') <NEW_LINE> is_deleted = models.BooleanField( default=False, verbose_name='player is deleted') <NEW_LINE> deleted_at = models.DateTimeField(verbose_name='player was delet... | Someone who plays games | 62598fb89c8ee8231304020f |
class UnfollowArtistButton(BaseButton): <NEW_LINE> <INDENT> CALLBACK_NAME = 'unfollow_artist' <NEW_LINE> @classmethod <NEW_LINE> def handle(cls, update: Update, context: CallbackContext): <NEW_LINE> <INDENT> query = update.callback_query <NEW_LINE> followed_artist_id = cls.get_callback_data(query.data) <NEW_LINE> if fo... | Defines the UnfollowArtist Button show when calling /unfollowartists command | 62598fb8442bda511e95c592 |
class CalculatorButtons(Buttons): <NEW_LINE> <INDENT> def __init__(self, frame: Frame, action: Action) -> None: <NEW_LINE> <INDENT> import functools <NEW_LINE> @functools.lru_cache() <NEW_LINE> def buttons() -> Iterator[Button]: <NEW_LINE> <INDENT> yield from ( One(frame, action), Two(frame, action), Three(frame, actio... | Represent calculator buttons facade. | 62598fb8956e5f7376df5719 |
class WordListView(SuperuserRequiredMixin, CommonContextMixin, ListView): <NEW_LINE> <INDENT> model = Word <NEW_LINE> template_name = 'analysis/word_list.html' <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super(WordListView, self).get_context_data(**kwargs) <NEW_LINE> context['table_ti... | List views for Word | 62598fb8ec188e330fdf89c8 |
class PerformanceView(DetailView): <NEW_LINE> <INDENT> model = Performance <NEW_LINE> slug_field = 'slug' <NEW_LINE> template_name = 'performance.html' | Single Performance | 62598fb810dbd63aa1c70cf0 |
class JournalKeys(object): <NEW_LINE> <INDENT> def __init__(self, filename): <NEW_LINE> <INDENT> self.filename = filename <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> with open(self.filename, "r") as fin: <NEW_LINE> <INDENT> for line in fin: <NEW_LINE> <INDENT> fields = line.replace("\n", "").split("\t")... | Iterable: on each iteration, return journal keys in a list,
one list for each journal.
Process one cleaned journal at a time using generators, never
load the entire corpus into RAM.
Using an iterable so that memory isn't a concern, and
Gensim vocabulary and BOW building tools work well
with iterables. | 62598fb8e1aae11d1e7ce8c0 |
class ExcelInputInMultiDict(ExcelInput): <NEW_LINE> <INDENT> def get_file_tuple(self, field_name): <NEW_LINE> <INDENT> raise NotImplementedError("Please implement this function") <NEW_LINE> <DEDENT> def get_params(self, field_name=None, **keywords): <NEW_LINE> <INDENT> file_type, file_handle = self.get_file_tuple(field... | A generic interface for an upload excel file appearing in a dictionary
| 62598fb8a8370b77170f0516 |
class ApplyLRT(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "mesh.apply_linked_meshes" <NEW_LINE> bl_label = "Apply LRT with linked meshes" <NEW_LINE> bl_options = {"REGISTER", "UNDO"} <NEW_LINE> @classmethod <NEW_LINE> def poll(cls, context): <NEW_LINE> <INDENT> return (context.view_layer.objects.active is not... | Apply LRT with linked mesh data | 62598fb81f5feb6acb162d57 |
class UpdateUserImageInputSet(InputSet): <NEW_LINE> <INDENT> def set_Response(self, value): <NEW_LINE> <INDENT> super(UpdateUserImageInputSet, self)._set_input('Response', value) <NEW_LINE> <DEDENT> def set_Email(self, value): <NEW_LINE> <INDENT> super(UpdateUserImageInputSet, self)._set_input('Email', value) <NEW_LINE... | An InputSet with methods appropriate for specifying the inputs to the UpdateUserImage
Choreo. The InputSet object is used to specify input parameters when executing this Choreo. | 62598fb801c39578d7f12eb2 |
class Status(six.with_metaclass(abc.ABCMeta)): <NEW_LINE> <INDENT> pass | Describes the status of an RPC.
This is an EXPERIMENTAL API.
Attributes:
code: A StatusCode object to be sent to the client.
details: An ASCII-encodable string to be sent to the client upon
termination of the RPC.
trailing_metadata: The trailing :term:`metadata` in the RPC. | 62598fb8cc40096d6161a275 |
class GitHubUserProvider(NonCachingProvider): <NEW_LINE> <INDENT> def __init__(self, repo, package_manager): <NEW_LINE> <INDENT> self.repo = repo <NEW_LINE> self.package_manager = package_manager <NEW_LINE> <DEDENT> def match_url(self): <NEW_LINE> <INDENT> return re.search('^https?://github.com/[^/]+/?$', self.repo) !=... | Allows using a GitHub user/organization as the source for multiple packages
:param repo:
The public web URL to the GitHub user/org. Should be in the format
`https://github.com/user`.
:param package_manager:
An instance of :class:`PackageManager` used to access the API | 62598fb8dc8b845886d536f0 |
class MinetestServiceView(ServiceView): <NEW_LINE> <INDENT> service_id = managed_services[0] <NEW_LINE> diagnostics_module_name = "minetest" <NEW_LINE> description = description <NEW_LINE> show_status_block = True <NEW_LINE> form_class = MinetestForm <NEW_LINE> def get_initial(self): <NEW_LINE> <INDENT> initial = super... | A specialized view for configuring minetest. | 62598fb892d797404e388bff |
class SinopeDimmer(Light): <NEW_LINE> <INDENT> def __init__(self, sinope_data, device_id, name): <NEW_LINE> <INDENT> self.client_name = name <NEW_LINE> self.client = sinope_data.client <NEW_LINE> self.device_id = device_id <NEW_LINE> self.sinope_data = sinope_data <NEW_LINE> <DEDENT> def update(self): <NEW_LINE> <INDEN... | Implementation of a Sinope Device. | 62598fb8379a373c97d9914e |
class KeyStoreKey(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def create(**kwargs): <NEW_LINE> <INDENT> return KeyStoreKey(**kwargs) <NEW_LINE> <DEDENT> def __init__(self, json=None, **kwargs): <NEW_LINE> <INDENT> if json is None and not kwargs: <NEW_LINE> <INDENT> raise ValueError('No data or kwargs present'... | auto-generated. don't touch. | 62598fb8f548e778e596b6dd |
class BlankRecord(BiffRecord): <NEW_LINE> <INDENT> _REC_ID = 0x0201 <NEW_LINE> def __init__(self, row, col, xf_index): <NEW_LINE> <INDENT> self._rec_data = pack('<3H', row, col, xf_index) | This record represents an empty cell.
Record BLANK, BIFF5-BIFF8:
Offset Size Contents
0 2 Index to row
2 2 Index to first column (fc)
4 2 indexes to XF record | 62598fb83539df3088ecc3e5 |
@six.add_metaclass(abc.ABCMeta) <NEW_LINE> class FloatingIpManager(object): <NEW_LINE> <INDENT> @abc.abstractmethod <NEW_LINE> def list_pools(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def list(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def... | Abstract class to implement Floating IP methods
The FloatingIP object returned from methods in this class
must contains the following attributes:
* id: ID of Floating IP
* ip: Floating IP address
* pool: ID of Floating IP pool from which the address is allocated
* fixed_ip: Fixed IP address of a VIF associated with t... | 62598fb8baa26c4b54d4f3f1 |
class ReportSpec: <NEW_LINE> <INDENT> specs = [] <NEW_LINE> def register_args(self, parser): <NEW_LINE> <INDENT> raise ValueError("not implemented") <NEW_LINE> <DEDENT> def execute(self, api, destination, args): <NEW_LINE> <INDENT> raise ValueError("not implemented") <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def regi... | Base class for reports | 62598fb891f36d47f2230f45 |
class ContainersManager: <NEW_LINE> <INDENT> def __init__(self, **args): <NEW_LINE> <INDENT> self.waiting_containers = [] <NEW_LINE> self.sent_containers = [] <NEW_LINE> self.const_h = None <NEW_LINE> self.min_length = args.get("min_length", 1) <NEW_LINE> self.max_length = args.get("max_length", 40) <NEW_LINE> self.min... | Class used for storing a list of containers,
checking if a container has correct values,
and managing information about which containers are waiting for sending and which ones have been already sent. | 62598fb855399d3f0562664c |
class Circle(CRideModel): <NEW_LINE> <INDENT> name = models.CharField('circle name', max_length=140) <NEW_LINE> slug_name = models.SlugField(unique=True, max_length=40) <NEW_LINE> about = models.CharField('circle description', max_length=255) <NEW_LINE> picture = models.ImageField(upload_to='circles/pictures', blank=Tr... | Circle model.
A circle is a private group where rides are offered and taken
by its members. To join a circle a user must receive an unique
invitation code from an existing circle member. | 62598fb856b00c62f0fb29f3 |
class ClassificationError1ofK(Error): <NEW_LINE> <INDENT> def getError(self, target, predict): <NEW_LINE> <INDENT> assert target.ndim == 2, "targetLayer need to output a matrix but got %d dimensions" % target.ndim <NEW_LINE> error = T.mean(T.neq(T.argmax(predict, axis=1), T.argmax(target, axis=1))) <NEW_LINE> return er... | classification error when the target is a one of k vector | 62598fb8442bda511e95c594 |
class ModelServing(object): <NEW_LINE> <INDENT> def __init__(self, app_name='model_serving', args=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> parser = ArgParser.model_serving_parser() <NEW_LINE> self.args = parser.parse_args(args) if args else parser.parse_args() <NEW_LINE> self.threaded = self.args.threaded or... | Model Serving | 62598fb863d6d428bbee28e8 |
class StructuralSectionUserDefined(StructuralSectionRectangular,IDisposable): <NEW_LINE> <INDENT> def Dispose(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def ReleaseUnmanagedResources(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __enter__(self,*args): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT... | Defines parameters for parameterized user defined structural section.
StructuralSectionUserDefined(width: float,height: float,centroidHorizontal: float,centroidVertical: float,principalAxesAngle: float,sectionArea: float,perimeter: float,nominalWeight: float,momentOfInertiaStrongAxis: float,momentOfInertiaWeakAxis: ... | 62598fb899cbb53fe6831011 |
@skipServerTests <NEW_LINE> class UdpTests(ManyTestCasesWithServerMixin, unittest.TestCase): <NEW_LINE> <INDENT> influxdb_udp_enabled = True <NEW_LINE> influxdb_template_conf = os.path.join(THIS_DIR, 'influxdb.conf.template') <NEW_LINE> def test_write_points_udp(self): <NEW_LINE> <INDENT> cli = InfluxDBClient( 'localho... | Define a class to test UDP series. | 62598fb8283ffb24f3cf39bc |
class BinaryClassificationPerformance(): <NEW_LINE> <INDENT> def __init__(self, predictions, labels, desc, probabilities=None): <NEW_LINE> <INDENT> self.probabilities = probabilities <NEW_LINE> self.performance_df = pd.concat([pd.DataFrame(predictions), pd.DataFrame(labels)], axis=1) <NEW_LINE> self.performance_df.colu... | Performance measures to evaluate the fit of a binary classification model | 62598fb87b180e01f3e490ee |
class BroadlinkRMSwitch(BroadlinkSwitch): <NEW_LINE> <INDENT> def __init__(self, device, config): <NEW_LINE> <INDENT> super().__init__( device, config.get(CONF_COMMAND_ON), config.get(CONF_COMMAND_OFF) ) <NEW_LINE> self._attr_name = config[CONF_NAME] <NEW_LINE> <DEDENT> async def _async_send_packet(self, packet): <NEW_... | Representation of a Broadlink RM switch. | 62598fb876e4537e8c3ef6e0 |
class Body3(Model): <NEW_LINE> <INDENT> def __init__(self, ciudad: str=None, cantidad: int=None): <NEW_LINE> <INDENT> self.swagger_types = { 'ciudad': str, 'cantidad': int } <NEW_LINE> self.attribute_map = { 'ciudad': 'Ciudad', 'cantidad': 'Cantidad' } <NEW_LINE> self._ciudad = ciudad <NEW_LINE> self._cantidad = cantid... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598fb81f5feb6acb162d59 |
class ModeratelyArmored(Feature): <NEW_LINE> <INDENT> name = 'Moderately Armored' <NEW_LINE> source = 'Feats' | You have trained to master the use of medium armor and shields, gaining
the following benefits:
• Increase your Strength or Dexterity score by 1, to a maximum of 20.
• You gain proficiency with medium armor and shields.
**Prerequisite**: Proficiency with light armor | 62598fb8fff4ab517ebcd922 |
class FileCheckError(Exception): <NEW_LINE> <INDENT> pass | Exception for file checks errors | 62598fb823849d37ff8511ed |
class PastAuditionListView(ListView): <NEW_LINE> <INDENT> model = Audition <NEW_LINE> template_name = 'auditions/past_list.html' <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> upcoming = Audition.objects.filter_upcoming() <NEW_LINE> return Audition.objects.exclude( id__in=[audition.id for audition in upcoming] ... | Display all past Audition objects, paginated | 62598fb8baa26c4b54d4f3f3 |
class PhoneValue(ComplexNullValue): <NEW_LINE> <INDENT> native_type = Phone <NEW_LINE> allow_casts = (str, dict) <NEW_LINE> def _convert(self, value): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> phone = value['phone'] <NEW_LINE> code = value['countryShortName'] <NEW_LINE> return Phone(phone=phone, code=code) <NEW_LINE... | A phone column value. | 62598fb832920d7e50bc6189 |
class CRP(Algo): <NEW_LINE> <INDENT> def __init__(self, b=None): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.b = np.array(b) if b is not None else None <NEW_LINE> <DEDENT> def step(self, x, last_b, history): <NEW_LINE> <INDENT> if self.b is None: <NEW_LINE> <INDENT> self.b = np.ones(len(x)) / len(x) <NEW_LIN... | Constant rebalanced portfolio = use fixed weights all the time. Uniform weights
are commonly used as a benchmark.
Reference:
T. Cover. Universal Portfolios, 1991.
http://www-isl.stanford.edu/~cover/papers/paper93.pdf | 62598fb84527f215b58ea011 |
class MultiplexingHandler(logging.Handler): <NEW_LINE> <INDENT> def __init__(self, info_stream=sys.stdout, err_stream=sys.stderr): <NEW_LINE> <INDENT> super(MultiplexingHandler, self).__init__() <NEW_LINE> self.info_handler = logging.StreamHandler(info_stream) <NEW_LINE> self.err_handler = logging.StreamHandler(err_str... | handler to send INFO and below to stdout, everything above to stderr | 62598fb84c3428357761a3f6 |
class Baseline(Model): <NEW_LINE> <INDENT> _validation = { 'sensitivity': {'required': True}, 'low_thresholds': {'required': True}, 'high_thresholds': {'required': True}, } <NEW_LINE> _attribute_map = { 'sensitivity': {'key': 'sensitivity', 'type': 'Sensitivity'}, 'low_thresholds': {'key': 'lowThresholds', 'type': '[fl... | The baseline values for a single sensitivity value.
All required parameters must be populated in order to send to Azure.
:param sensitivity: Required. the sensitivity of the baseline. Possible
values include: 'Low', 'Medium', 'High'
:type sensitivity: str or ~azure.mgmt.monitor.models.Sensitivity
:param low_threshol... | 62598fb8a219f33f346c6940 |
class Quotient(Builtin): <NEW_LINE> <INDENT> attributes = ('Listable', 'NumericFunction') <NEW_LINE> messages = { 'infy': 'Infinite expression `1` encountered.', } <NEW_LINE> def apply(self, m, n, evaluation): <NEW_LINE> <INDENT> py_m = m.get_int_value() <NEW_LINE> py_n = n.get_int_value() <NEW_LINE> if py_n == 0: <NEW... | <dl>
<dt>'Quotient[m, n]'
<dd>computes the integer quotient of $m$ and $n$.
</dl>
>> Quotient[23, 7]
= 3
#> Quotient[13, 0]
: Infinite expression Quotient[13, 0] encountered.
= ComplexInfinity
#> Quotient[-17, 7]
= -3
#> Quotient[-17, -4]
= 4
#> Quotient[19, -4]
= -5 | 62598fb8f9cc0f698b1c536a |
class UserProfile(models.Model): <NEW_LINE> <INDENT> site_colour = models.CharField(blank=True, null=True, max_length=255) <NEW_LINE> tag_colour = models.CharField(blank=True, null=True, max_length=255) <NEW_LINE> user = models.ForeignKey(User, unique=True) <NEW_LINE> harvest_user = models.CharField(blank=True, max_len... | An extension of the user model,
allowing for profile information | 62598fb8236d856c2adc94dd |
class Transaction(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._actions = None <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> assert self._actions is None <NEW_LINE> self._actions = [] <NEW_LINE> return self <NEW_LINE> <DEDENT> def __exit__(self, type, value, traceback): <NEW_... | Context manager of an igvm action with rollback support
Each successful step register a callback to undo its changes.
If the transaction fails, all registered callbacks are invoked in
LIFO order. | 62598fb8aad79263cf42e90f |
class FissionXS(MGXS): <NEW_LINE> <INDENT> def __init__(self, domain=None, domain_type=None, groups=None, by_nuclide=False, name=''): <NEW_LINE> <INDENT> super(FissionXS, self).__init__(domain, domain_type, groups, by_nuclide, name) <NEW_LINE> self._rxn_type = 'fission' <NEW_LINE> <DEDENT> @property <NEW_LINE> def tall... | A fission multi-group cross section. | 62598fb88e7ae83300ee91db |
class MinimaxAgent(MultiAgentSearchAgent): <NEW_LINE> <INDENT> minmaxdepth = 0 <NEW_LINE> agents = 0 <NEW_LINE> def getAction(self, gameState): <NEW_LINE> <INDENT> self.agents = gameState.getNumAgents() <NEW_LINE> self.minmaxdepth = (self.depth*self.agents)-1 <NEW_LINE> actions = gameState.getLegalActions(0) <NEW_LINE>... | Your minimax agent (question 2) | 62598fb8283ffb24f3cf39be |
class StateError(Exception): <NEW_LINE> <INDENT> pass | Error in the state transitions. | 62598fb897e22403b383b041 |
class CorpusSummary(object): <NEW_LINE> <INDENT> def __init__(self, text, separator=Separator(), level='phone', log=utils.null_logger()): <NEW_LINE> <INDENT> if level not in ('phone', 'syllable'): <NEW_LINE> <INDENT> raise ValueError( 'Unknown level {}, must be hone or syllable'.format(level)) <NEW_LINE> <DEDENT> log.i... | Compute statistics on a phonemized corpus
This is the "training" step of DiBS. It computes some statistics
on phones (and diphones) on a tokenized training text.
Parameters
----------
text : sequence of str
The input text must be tokenized at phone and word levels
(syllables boundaries are ignored if any)
sep... | 62598fb810dbd63aa1c70cf4 |
class box_GUI(shape_GUI): <NEW_LINE> <INDENT> def __init__(self, gui, pt1, pt2, layer='gx_objects', subplot=None, name=None, select= True): <NEW_LINE> <INDENT> shape_GUI.__init__(self, gui, pt1, pt2, layer='gx_objects', subplot=subplot, name= name) <NEW_LINE> if select: <NEW_LINE> <INDENT> self.gui.set_selected_object(... | Box of interest context_object for GUI | 62598fb88a43f66fc4bf22b6 |
class SparvTextCorpus(gensim.corpora.TextCorpus): <NEW_LINE> <INDENT> def __init__(self, stream, prune_at=2000000): <NEW_LINE> <INDENT> self.dictionary = None <NEW_LINE> self.reader = stream <NEW_LINE> self.document_length = [] <NEW_LINE> self.corpus_documents = [] <NEW_LINE> self.prune_at = prune_at <NEW_LINE> super(S... | This is a BOW vector corpus based on gensim.corpora.TextCorpus | 62598fb8d486a94d0ba2c109 |
class ServiceResponse(object): <NEW_LINE> <INDENT> def __init__(self, response_data, request_fulfilled, **kwargs): <NEW_LINE> <INDENT> self.extra_headers = {} <NEW_LINE> self.response_data = response_data <NEW_LINE> self.request_fulfilled = request_fulfilled <NEW_LINE> self.extra_params = kwargs <NEW_LINE> <DEDENT> def... | The general idea is the same as for ServiceRequest.
ServiceResponse is a abstraction for request handling which could be represented as
HTTP/other response in different formats.
ServiceResponse always contains a result of calling service. It's not a general purpose response, e.g.
errors are handled with exceptions. | 62598fb87d847024c075c4f8 |
class HHLayer: <NEW_LINE> <INDENT> def __init__(self, n): <NEW_LINE> <INDENT> self.N = n <NEW_LINE> self.gNa = np.zeros(n) <NEW_LINE> self.gK = np.zeros(n) <NEW_LINE> self.gL = np.zeros(n) <NEW_LINE> self.ENa = np.zeros(n) <NEW_LINE> self.EK = np.zeros(n) <NEW_LINE> self.EL = np.zeros(n) <NEW_LINE> self.C = np.zeros(n)... | Layer of Hodgkin Huxley neurons to be used inside a HHNetwork. | 62598fb866656f66f7d5a52e |
class AgendaFilter(Filter): <NEW_LINE> <INDENT> grok.implements(IAgendaFilter) <NEW_LINE> meta_type = "Silva Agenda Filter" <NEW_LINE> security = ClassSecurityInfo() <NEW_LINE> silvaconf.icon("www/agenda_filter.png") <NEW_LINE> silvaconf.priority(3.4) <NEW_LINE> security.declarePrivate('get_allowed_types') <NEW_LINE> d... | To enable editors to channel newsitems on a site, all items
are passed from NewsFolder to NewsViewer through filters. On a filter
you can choose which NewsFolders you want to channel items for and
filter the items on several criteria (as well as individually). | 62598fb823849d37ff8511ef |
@attr.s(auto_attribs=True, frozen=True) <NEW_LINE> class Class(Node): <NEW_LINE> <INDENT> name: Name <NEW_LINE> funcs: Dict[Name, Function] <NEW_LINE> assignments: List[Assign] | A class definition.
Example
-------
.. code-block:: python
class MyClass:
x = 2
def return_x():
return x
Here :code:`name` is :code:`MyClass`, :code:`funcs["return_x"]` is
:code:`def return_x():
return x`, and :code:`assignments[0]` is
:code:`x = 2`. | 62598fb8377c676e912f6e0d |
class LocalResourceAnchor (pyxb.binding.datatypes.ID): <NEW_LINE> <INDENT> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'LocalResourceAnchor') <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location('http://ddex.net/xml/20110630/ddex.xsd', 1138, 4) <NEW_LINE> _Documentation = 'A LocalAnchor which acts as a loca... | A LocalAnchor which acts as a local Identifier of a Resource. This
LocalAnchor is a string starting with the letter A. | 62598fb8aad79263cf42e910 |
class QuandlSettings(): <NEW_LINE> <INDENT> def __init__(self, rows, column, frequency="weekly", transformation="normalize", order="desc"): <NEW_LINE> <INDENT> self.rows = rows <NEW_LINE> self.column = column <NEW_LINE> self.frequency = frequency <NEW_LINE> self.transformation = transformation <NEW_LINE> self.order = o... | This class contains settings for the quandl integration package, settings include, | 62598fb85fcc89381b2661ea |
class Comment(handlers.Handler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> result = {} <NEW_LINE> count = self.request.get("count") <NEW_LINE> if (count): <NEW_LINE> <INDENT> count = int(count) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> count = 100 <NEW_LINE> <DEDENT> page = self.request.get("page") <NE... | Provides web service methods that handle requests to /api/comment. | 62598fb85fdd1c0f98e5e0cb |
class NetworkF(NetworkBase): <NEW_LINE> <INDENT> def computeobserved(self): <NEW_LINE> <INDENT> self.fsim = self.ntw.simulate_observations(self.npts) <NEW_LINE> nearest = np.nanmin(self.ntw.allneighbordistances(self.fsim, self.pointpattern), axis=1) <NEW_LINE> self.setbounds(nearest) <NEW_LINE> observedx, observedy = f... | Network constrained F Function
This requires the capability to compute a distance matrix between two
point patterns. In this case one will be observed and one will be simulated | 62598fb8bf627c535bcb15e0 |
class AccountsWidget(forms.MultiWidget): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> widgets = [LabelSelect(label=c[0]) for c in CATEGORY_CHOICES] <NEW_LINE> kwargs['widgets'] = widgets <NEW_LINE> super(AccountsWidget, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def decompress(s... | Widget for selecting Account values | 62598fb85166f23b2e243519 |
class FBGlobalLight (FBBox): <NEW_LINE> <INDENT> AmbientColor=property(doc="<b>Read Write Property:</b> Ambient light color. ") <NEW_LINE> FogBegin=property(doc="<b>Read Write Property:</b> Begin fog distance. ") <NEW_LINE> FogColor=property(doc="<b>Read Write Property:</b> Fog color. ") <NEW_LI... | Global light class.
| 62598fb867a9b606de54610f |
class MyTopo( Topo ): <NEW_LINE> <INDENT> def __init__( self ): <NEW_LINE> <INDENT> Topo.__init__( self ) <NEW_LINE> h1 = self.addHost('h1', mac='00:00:00:00:00:01', ip='10.0.0.1') <NEW_LINE> h2 = self.addHost('h2', mac='00:00:00:00:00:02', ip='10.0.0.2') <NEW_LINE> h3 = self.addHost('h3', mac='00:00:00:00:00:03', ip='... | Simple topology example. | 62598fb87d43ff24874274a2 |
class TestGetContactCampaignStatsOpened(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 testGetContactCampaignStatsOpened(self): <NEW_LINE> <INDENT> pass | GetContactCampaignStatsOpened unit test stubs | 62598fb897e22403b383b043 |
class TestDegreeStyle(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 testDegreeStyle(self): <NEW_LINE> <INDENT> pass | DegreeStyle unit test stubs | 62598fb87b180e01f3e490f0 |
class TestGetUri(unittest.TestCase): <NEW_LINE> <INDENT> def testFileName(self): <NEW_LINE> <INDENT> self.source = samples["sweep.wav"] <NEW_LINE> self.uri = path2uri(os.path.abspath(self.source)) <NEW_LINE> <DEDENT> def testUri(self): <NEW_LINE> <INDENT> self.uri = 'file://already/an/uri/file.wav' <NEW_LINE> self.sour... | Test get_uri function | 62598fb8ec188e330fdf89ce |
class GwyEllipseSelection_cdata(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.point_pairs = [((0., 0.), (1., 1.)), ((2., 2.), (3., 3.))] <NEW_LINE> self.cdata = ffi.cast("double*", ffi.new("double[]", [0., 0., 1., 1., 2., 2., 3., 3.])) <NEW_LINE> self.ellipsesel = GwyEllipseSelection... | Test _cdata property of GwyEllipseSelection class | 62598fb866673b3332c3050d |
class RWhisker(RPackage): <NEW_LINE> <INDENT> homepage = "http://github.com/edwindj/whisker" <NEW_LINE> url = "https://cran.r-project.org/src/contrib/whisker_0.3-2.tar.gz" <NEW_LINE> list_url = "https://cran.r-project.org/src/contrib/Archive/whisker" <NEW_LINE> version('0.3-2', 'c4b9bf9a22e69ce003fe68663ab5e8e6') | logicless templating, reuse templates in many programming languages
including R | 62598fb87c178a314d78d5dc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.