code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Task: <NEW_LINE> <INDENT> def __init__(self, taskname=''): <NEW_LINE> <INDENT> self.data = dict() <NEW_LINE> self.setName(taskname) <NEW_LINE> <DEDENT> def setName(self, name): <NEW_LINE> <INDENT> if name != '': <NEW_LINE> <INDENT> self.data["name"] = name <NEW_LINE> <DEDENT> <DEDENT> def setCommand(self, command... | Missing DocString
| 625990865fc7496912d49020 |
class HighAvailabilitySettingsJson(object): <NEW_LINE> <INDENT> swagger_types = { 'ha_enabled': 'bool', 'sync_interval_in_hours': 'int', 'url': 'str' } <NEW_LINE> attribute_map = { 'ha_enabled': 'haEnabled', 'sync_interval_in_hours': 'syncIntervalInHours', 'url': 'url' } <NEW_LINE> def __init__(self, ha_enabled=None, s... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62599086be7bc26dc9252c0b |
class OrderInfo: <NEW_LINE> <INDENT> def __init__(self, dictionary=None): <NEW_LINE> <INDENT> if dictionary is None: <NEW_LINE> <INDENT> dictionary = {} <NEW_LINE> <DEDENT> self.dict = dictionary <NEW_LINE> self.name = dictionary["name"] if "name" in dictionary else None <NEW_LINE> self.phone_number = dictionary["phone... | This object represents information about an order.[See on Telegram API](https://core.telegram.org/bots/api#orderinfo)
- - - - -
**Fields**:
- `name`: `string` - Optional. User name
- `phone_number`: `string` - Optional. User's phone number
- `email`: `string` - Optional. User email
- `shipping_address`: `ShippingAddr... | 625990867047854f46340f20 |
class FrameSize(Message): <NEW_LINE> <INDENT> set_type(FRAME_SIZE) <NEW_LINE> def __init__(self, size=None): <NEW_LINE> <INDENT> self.size = size <NEW_LINE> <DEDENT> def decode(self, buf): <NEW_LINE> <INDENT> self.size = buf.read_ulong() <NEW_LINE> <DEDENT> def encode(self, buf): <NEW_LINE> <INDENT> if self.size is Non... | A frame size message. This determines the maximum number of bytes for the
frame body in the RTMP stream.
@ivar size: Number of bytes for RTMP frame bodies.
@type size: C{int} | 62599086adb09d7d5dc0c0c6 |
class Label (pyxb.binding.datatypes.IDREF): <NEW_LINE> <INDENT> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'Label') <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location('/Volumes/SamsungSSD/git/ShExSolbrig/ShEx/ShEx/static/xsd/ShEx.xsd', 178, 4) <NEW_LINE> _Documentation = None | An atomic simple type. | 62599086ad47b63b2c5a93be |
class Embedder(nn.Module): <NEW_LINE> <INDENT> def __init__(self, text_embedding_vectors: torch.Tensor): <NEW_LINE> <INDENT> super(Embedder, self).__init__() <NEW_LINE> self.embeddings = nn.Embedding.from_pretrained( embeddings=text_embedding_vectors, freeze=True ) <NEW_LINE> <DEDENT> def forward(self, x) -> nn.Embeddi... | idで示されている単語をベクトルに変換する | 62599086a8370b77170f1f38 |
class PortProfileBindingAlreadyExists(exceptions.QuantumException): <NEW_LINE> <INDENT> message = _("PortProfileBinding for port profile %(pp_id)s to " "port %(port_id)s already exists") | Binding cannot be created, since it already exists | 625990864c3428357761be27 |
class CheckQueryTypeFieldsNameMatchVisitor(Visitor): <NEW_LINE> <INDENT> def __init__(self, query_type: str) -> None: <NEW_LINE> <INDENT> self.query_type = query_type <NEW_LINE> self.in_query_type = False <NEW_LINE> <DEDENT> def enter_object_type_definition( self, node: ObjectTypeDefinitionNode, key: Any, parent: Any, ... | Check that every query type field's name is identical to the type it queries.
If not, raise SchemaStructureError. | 625990867047854f46340f22 |
class OrganizedEventsList(LoginRequiredMixin, ListView): <NEW_LINE> <INDENT> template_name = 'events/organized_events.html' <NEW_LINE> allow_empty = False <NEW_LINE> model = Event <NEW_LINE> ordering = '-start_date' <NEW_LINE> def get_queryset(self): <NEW_LINE> <INDENT> return super().get_queryset().for_organizer(self.... | List of events a user has organizer access to. | 6259908660cbc95b06365b22 |
class MessageID: <NEW_LINE> <INDENT> def __init__(self, domain=None, idstring=None): <NEW_LINE> <INDENT> self.domain = domain or DNS_NAME <NEW_LINE> self.idstring = idstring <NEW_LINE> <DEDENT> def __call__(self): <NEW_LINE> <INDENT> timeval = time.time() <NEW_LINE> utcdate = time.strftime('%Y%m%d%H%M%S', time.gmtime(t... | Returns a string suitable for RFC 2822 compliant Message-ID, e.g:
<20020201195627.33539.96671@nightshade.la.mastaler.com>
Optional idstring if given is a string used to strengthen the
uniqueness of the message id.
Based on django.core.mail.message.make_msgid | 62599086f9cc0f698b1c6082 |
class TestContactOutputOnly(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 testContactOutputOnly(self): <NEW_LINE> <INDENT> pass | ContactOutputOnly unit test stubs | 6259908663b5f9789fe86cd6 |
class Enemy(GameSprite): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__('./images/enemy1.png') <NEW_LINE> self.speed = random.randint(1, 3) <NEW_LINE> self.rect.bottom = 0 <NEW_LINE> max_x = SCREEN_RECT.width - self.rect.width <NEW_LINE> self.rect.x = random.randrange(0, max_x, self.rect.w... | 敌方飞机 | 62599086e1aae11d1e7cf5ca |
class Lambda(mixins.FilterStmtsMixin, LocalsDictNodeNG): <NEW_LINE> <INDENT> _astroid_fields = ("args", "body") <NEW_LINE> _other_other_fields = ("locals",) <NEW_LINE> name = "<lambda>" <NEW_LINE> is_lambda = True <NEW_LINE> def implicit_parameters(self): <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> @property <NEW_... | Class representing an :class:`ast.Lambda` node.
>>> node = astroid.extract_node('lambda arg: arg + 1')
>>> node
<Lambda.<lambda> l.1 at 0x7f23b2e41518> | 62599086656771135c48ade7 |
class AdcptMWVSRecoveredDriver(SimpleDatasetDriver): <NEW_LINE> <INDENT> def _build_parser(self, stream_handle): <NEW_LINE> <INDENT> parser_config = { DataSetDriverConfigKeys.PARTICLE_MODULE: 'mi.dataset.parser.adcpt_m_wvs', DataSetDriverConfigKeys.PARTICLE_CLASS: 'AdcptMWVSInstrumentDataParticle' } <NEW_LINE> parser =... | The adcpt_m_wvs driver class extends the SimpleDatasetDriver. | 625990864428ac0f6e65a09c |
class Graphical_metaclass(type): <NEW_LINE> <INDENT> def __new__(cls,name,bases,classdict:dict): <NEW_LINE> <INDENT> if name == "Graphical": <NEW_LINE> <INDENT> return type.__new__(cls,name,bases,classdict) <NEW_LINE> <DEDENT> if callable(classdict.get('plugin')): <NEW_LINE> <INDENT> return type.__new__(cls,name,bases,... | 这个是Graphical类的元类,不应该被修改 | 6259908697e22403b383ca66 |
class PublisherACL(object): <NEW_LINE> <INDENT> def __init__(self, blacklist): <NEW_LINE> <INDENT> self.blacklist = blacklist <NEW_LINE> <DEDENT> def user_is_blacklisted(self, user): <NEW_LINE> <INDENT> for blacklisted_user in self.blacklist.get('users', []): <NEW_LINE> <INDENT> if re.match(blacklisted_user, user): <NE... | Represents the publisher ACL and provides methods
to query the ACL for given operations | 625990867c178a314d78e9a1 |
class AdamParameters(_OptimizationParameters): <NEW_LINE> <INDENT> def __init__(self, learning_rate, beta1=0.9, beta2=0.999, epsilon=1e-08, lazy_adam=True, sum_inside_sqrt=True, use_gradient_accumulation=True): <NEW_LINE> <INDENT> super(AdamParameters, self).__init__(learning_rate, use_gradient_accumulation) <NEW_LINE>... | Optimization parameters for Adam. | 62599086ec188e330fdfa41a |
class NormalizeFeatures(BaseTransform): <NEW_LINE> <INDENT> def __init__(self, attrs: List[str] = ["x"]): <NEW_LINE> <INDENT> self.attrs = attrs <NEW_LINE> <DEDENT> def __call__(self, data: Union[Data, HeteroData]): <NEW_LINE> <INDENT> for store in data.stores: <NEW_LINE> <INDENT> for key, value in store.items(*self.at... | Row-normalizes the attributes given in :obj:`attrs` to sum-up to one.
Args:
attrs (List[str]): The names of attributes to normalize.
(default: :obj:`["x"]`) | 6259908623849d37ff852c29 |
class FitData(object): <NEW_LINE> <INDENT> def __init__(self, group, xvalues, yvalues, d_sample): <NEW_LINE> <INDENT> self.group = group <NEW_LINE> self.xvalues = xvalues <NEW_LINE> self.yvalues = yvalues <NEW_LINE> self.d_sample = d_sample | Fitting data | 62599086ad47b63b2c5a93c2 |
@versioned_properties <NEW_LINE> class NameServerEntity(SharedVersionedEntity): <NEW_LINE> <INDENT> label = 'NameServer' <NEW_LINE> state_label = 'NameServerState' <NEW_LINE> properties = { 'ip': VersionedProperty(is_identity=True) } | Model a name server node in the graph. | 62599086e1aae11d1e7cf5cb |
class Invoker(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> from click.testing import CliRunner <NEW_LINE> self.runner = CliRunner() <NEW_LINE> from ymp.cli import main <NEW_LINE> self.main = main <NEW_LINE> self.initialized = False <NEW_LINE> self.toclean = [] <NEW_LINE> <DEDENT> def call(self, ... | Wrap invoking shell command
Handles writing of out.log and cmd.sh as well as reloading ymp config
on each call. | 62599086bf627c535bcb3043 |
class Deposit: <NEW_LINE> <INDENT> def __init__ (self, pURI=None): <NEW_LINE> <INDENT> self.uri = pURI <NEW_LINE> self.qual = pURI <NEW_LINE> self.proto = None <NEW_LINE> <DEDENT> def show (self, outFile=sys.stdout): <NEW_LINE> <INDENT> if outFile is not None: <NEW_LINE> <INDENT> outFile.write("{}\n".format(self.to_str... | Deposit class for URLs/ URIs | 625990863617ad0b5ee07cc1 |
class GiftiToCSV(SimpleInterface): <NEW_LINE> <INDENT> input_spec = _GiftiToCSVInputSpec <NEW_LINE> output_spec = _GiftiToCSVOutputSpec <NEW_LINE> def _run_interface(self, runtime): <NEW_LINE> <INDENT> gii = nb.load(self.inputs.in_file) <NEW_LINE> data = gii.darrays[0].data <NEW_LINE> if self.inputs.itk_lps: <NEW_LINE>... | Converts GIfTI files to CSV to make them ammenable to use with
``antsApplyTransformsToPoints``. | 6259908644b2445a339b7714 |
class WeblateMemory(MachineTranslation): <NEW_LINE> <INDENT> name = "Weblate Translation Memory" <NEW_LINE> rank_boost = 2 <NEW_LINE> cache_translations = False <NEW_LINE> same_languages = True <NEW_LINE> accounting_key = "internal" <NEW_LINE> do_cleanup = False <NEW_LINE> def convert_language(self, language): <NEW_LIN... | Translation service using strings already translated in Weblate. | 62599086283ffb24f3cf5411 |
class Section(BreadCrumbsMixin, BaseTree): <NEW_LINE> <INDENT> title = models.CharField(max_length=255, verbose_name=_('Title')) <NEW_LINE> slug = models.SlugField(max_length=255, unique=True, verbose_name=_('Slug')) <NEW_LINE> sort = models.IntegerField(default=500, verbose_name=_('Sort')) <NEW_LINE> metatitle = model... | Модель категории новостей | 625990867b180e01f3e49e1d |
class Attraction: <NEW_LINE> <INDENT> def __init__( self, ID=None, name=None, url=None, attr_type=None, location=None, num_reviews=0 ): <NEW_LINE> <INDENT> self._ID = ID <NEW_LINE> self._name = name <NEW_LINE> self._url = url <NEW_LINE> self._attr_type = attr_type <NEW_LINE> self._location = location <NEW_LINE> self._n... | TripAdvisor attraction class.
Attributes
----------
ID : int
TripAdvisor attraction id
name : str
the attraction's full, human readable, name
url : str
the relative URL to the attraction's TripAdvisor page
attr_type : str
the attraction's type according to TripAdvisor's classification system
location :... | 625990865fcc89381b266f16 |
class CourseAverages(Stat.Stat): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__('CourseAverages') <NEW_LINE> self.course_averages = {} <NEW_LINE> <DEDENT> def calc_stats(self): <NEW_LINE> <INDENT> for path in self.paths: <NEW_LINE> <INDENT> with open(path, mode = 'r') as infile: <NEW_LINE>... | Calculates course average score | 62599086aad79263cf43032c |
class TestAutoScalingInstancePoolChooseInstances(unittest.TestCase): <NEW_LINE> <INDENT> class Instance(object): <NEW_LINE> <INDENT> def __init__(self, num_outstanding_requests, can_accept_requests=True): <NEW_LINE> <INDENT> self.num_outstanding_requests = num_outstanding_requests <NEW_LINE> self.remaining_request_capa... | Tests for server.AutoScalingServer._choose_instance. | 6259908644b2445a339b7715 |
class TwilioView(View): <NEW_LINE> <INDENT> response_text = None <NEW_LINE> @method_decorator(csrf_exempt) <NEW_LINE> def dispatch(self, request, *args, **kwargs): <NEW_LINE> <INDENT> return super(TwilioView, self).dispatch(request, *args, **kwargs) <NEW_LINE> <DEDENT> def get_data(self): <NEW_LINE> <INDENT> return sel... | Base view for Twilio callbacks | 6259908666673b3332c31f72 |
class BrickletPiezoBuzzer(Device): <NEW_LINE> <INDENT> DEVICE_IDENTIFIER = 214 <NEW_LINE> DEVICE_DISPLAY_NAME = 'Piezo Buzzer Bricklet' <NEW_LINE> CALLBACK_BEEP_FINISHED = 3 <NEW_LINE> CALLBACK_MORSE_CODE_FINISHED = 4 <NEW_LINE> FUNCTION_BEEP = 1 <NEW_LINE> FUNCTION_MORSE_CODE = 2 <NEW_LINE> FUNCTION_GET_IDENTITY = 255... | Creates 1kHz beep | 625990862c8b7c6e89bd5359 |
class Entities(RDFStatInterface): <NEW_LINE> <INDENT> def __init__(self, results): <NEW_LINE> <INDENT> super(Entities, self).__init__(results) <NEW_LINE> self.results['count'] = 0 <NEW_LINE> <DEDENT> def count(self, s, p, o, s_blank, o_l, o_blank, statement): <NEW_LINE> <INDENT> if statement.subject.is_resource and not... | count entities (triple has an URI as subject, distinct) | 6259908663b5f9789fe86cdc |
class ChangePasswordForm(Form): <NEW_LINE> <INDENT> old_password = PasswordField('Old password', validators=[Required()]) <NEW_LINE> password = PasswordField('New password', validators=[ Required(), EqualTo('password2', message='Passwords must match')]) <NEW_LINE> password2 = PasswordField('Confirm new password', valid... | 修改密码表单 | 62599086adb09d7d5dc0c0ce |
class BankAccount(Base): <NEW_LINE> <INDENT> __tablename__ = 'bankaccount' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> name = Column(String, nullable=False) <NEW_LINE> description = Column(String) <NEW_LINE> currency = Column(String, nullable=False) <NEW_LINE> institute_id = Column(Integer, ForeignKey(... | A bank account | 625990863317a56b869bf2fe |
class TwoLevelsDownList(NetAppObject): <NEW_LINE> <INDENT> _group3_stats = None <NEW_LINE> @property <NEW_LINE> def group3_stats(self): <NEW_LINE> <INDENT> return self._group3_stats <NEW_LINE> <DEDENT> @group3_stats.setter <NEW_LINE> def group3_stats(self, val): <NEW_LINE> <INDENT> if val != None: <NEW_LINE> <INDENT> s... | Two levels deep and of list type | 625990863617ad0b5ee07cc5 |
class WalletUser(models.Model): <NEW_LINE> <INDENT> public_key = models.CharField(max_length=200, unique=True) <NEW_LINE> username = models.CharField(max_length=50, null=True) <NEW_LINE> created = models.DateTimeField('created', auto_now_add=True) <NEW_LINE> active_date = models.DateTimeField('active date', auto_now_ad... | The wallet user model. | 6259908676e4537e8c3f10f4 |
class BucketItem(object): <NEW_LINE> <INDENT> def __init__(self, key, modification_date, etag, size, storage_class, owner=None): <NEW_LINE> <INDENT> self.key = key <NEW_LINE> self.modification_date = modification_date <NEW_LINE> self.etag = etag <NEW_LINE> self.size = size <NEW_LINE> self.storage_class = storage_class ... | The contents of an Amazon S3 bucket. | 625990864a966d76dd5f0a5a |
class TestAuthMetadata(TGAuthMetadata): <NEW_LINE> <INDENT> def get_user(self, identity, userid): <NEW_LINE> <INDENT> if ':' in userid: <NEW_LINE> <INDENT> return userid.split(':')[0] <NEW_LINE> <DEDENT> return super(TestAuthMetadata, self).get_user(identity, userid) <NEW_LINE> <DEDENT> def get_groups(self, identity, u... | Provides a way to lookup for user, groups and permissions
given the current identity. This has to be specialized
for each storage backend.
By default it returns empty lists for groups and permissions
and None for the user. | 62599086d8ef3951e32c8c18 |
class HelpGenDirective(AbstractHelpGenDirective): <NEW_LINE> <INDENT> def _get_help_files(self, az_cli): <NEW_LINE> <INDENT> create_invoker_and_load_cmds_and_args(az_cli) <NEW_LINE> return get_all_help(az_cli) <NEW_LINE> <DEDENT> def _load_doc_source_map(self): <NEW_LINE> <INDENT> map_path = os.path.join(get_cli_repo_p... | General CLI Sphinx Directive
The Core CLI has a doc source map to determine help text source for core cli commands. Extension help processed
here will have no doc source | 62599086099cdd3c636761b5 |
class OVSTrunkSkeleton(agent.TrunkSkeleton): <NEW_LINE> <INDENT> def __init__(self, ovsdb_handler): <NEW_LINE> <INDENT> super(OVSTrunkSkeleton, self).__init__() <NEW_LINE> self.ovsdb_handler = ovsdb_handler <NEW_LINE> registry.unsubscribe(self.handle_trunks, resources.TRUNK) <NEW_LINE> <DEDENT> def handle_trunks(self, ... | It processes Neutron Server events to create the physical resources
associated to a logical trunk in response to user initiated API events
(such as trunk subport add/remove). It collaborates with the OVSDBHandler
to implement the trunk control plane. | 6259908626068e7796d4e4b8 |
class BaseMixin(object): <NEW_LINE> <INDENT> __table_args__ = {'extend_existing': True} <NEW_LINE> @declared_attr <NEW_LINE> def __tablename__(cls): <NEW_LINE> <INDENT> def _join(match): <NEW_LINE> <INDENT> word = match.group() <NEW_LINE> if len(word) > 1: <NEW_LINE> <INDENT> return ('_%s_%s' % (word[:-1], word[-1])).l... | Use this class has a mixin for your models, it will define your tablenames automatically
MyModel will be called my_model on the database.
::
from sqlalchemy import Table, Column, Integer, String, Boolean, ForeignKey, Date
from flask.ext.appbuilder import Base
class MyModel(BaseMixin, Base):
id = ... | 625990863346ee7daa33841d |
class UidAlreadyExistsError(exceptions.AlreadyExistsError): <NEW_LINE> <INDENT> default_message = 'The user with the provided uid already exists' <NEW_LINE> def __init__(self, message, cause, http_response): <NEW_LINE> <INDENT> exceptions.AlreadyExistsError.__init__(self, message, cause, http_response) | The user with the provided uid already exists. | 62599086fff4ab517ebcf38d |
class NOAAPredictIndicesLightCurve(LightCurve): <NEW_LINE> <INDENT> def peek(self, **plot_args): <NEW_LINE> <INDENT> figure = plt.figure() <NEW_LINE> axes = plt.gca() <NEW_LINE> axes = self.data['sunspot'].plot(color='b') <NEW_LINE> self.data['sunspot low'].plot(linestyle='--', color='b') <NEW_LINE> self.data['sunspot ... | NOAA Solar Cycle Predicted Progression
The predictions are updated monthly and are produced by ISES. Observed
values are initially the preliminary values which are replaced with the
final values as they become available.
The following predicted values are available.
* The predicted RI sunspot number is the official ... | 6259908655399d3f0562808a |
class FakeDriver(base.BaseDriver): <NEW_LINE> <INDENT> def __init__(self, conf, url, default_exchange=None, allowed_remote_exmods=None): <NEW_LINE> <INDENT> super(FakeDriver, self).__init__(conf, url, default_exchange, allowed_remote_exmods) <NEW_LINE> self._exchange_manager = FakeExchangeManager(default_exchange) <NEW... | Fake driver used for testing.
This driver passes messages in memory, and should only be used for
unit tests. | 6259908699fddb7c1ca63b96 |
class ISanitizedHTMLContentFragmentField(IHTMLContentFragmentField): <NEW_LINE> <INDENT> pass | A :class:`Text` type that also requires the object implement
an interface descending from :class:`.ISanitizedHTMLContentFragment`.
.. versionadded:: 1.2.0 | 62599086a05bb46b3848bee2 |
class MediaIoBaseUpload(MediaUpload): <NEW_LINE> <INDENT> @util.positional(3) <NEW_LINE> def __init__(self, fd, mimetype, chunksize=DEFAULT_CHUNK_SIZE, resumable=False): <NEW_LINE> <INDENT> super(MediaIoBaseUpload, self).__init__() <NEW_LINE> self._fd = fd <NEW_LINE> self._mimetype = mimetype <NEW_LINE> if not (chunksi... | A MediaUpload for a io.Base objects.
Note that the Python file object is compatible with io.Base and can be used
with this class also.
fh = io.BytesIO('...Some data to upload...')
media = MediaIoBaseUpload(fh, mimetype='image/png',
chunksize=1024*1024, resumable=True)
farm.animals().insert(
id='cow',
... | 62599086aad79263cf430331 |
class Solution: <NEW_LINE> <INDENT> def maxSubArray(self, nums): <NEW_LINE> <INDENT> ans = nums[0] <NEW_LINE> sum = 0 <NEW_LINE> for i in range(len(nums)): <NEW_LINE> <INDENT> sum += nums[i] <NEW_LINE> if sum > ans: <NEW_LINE> <INDENT> ans = sum <NEW_LINE> <DEDENT> if sum < 0: <NEW_LINE> <INDENT> sum = 0 <NEW_LINE> <DE... | @param nums: A list of integers
@return: A integer indicate the sum of max subarray | 625990865fc7496912d49026 |
class CosineSimilarityDescriptionAndDDG(BaseFeature): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def feature_labels(): <NEW_LINE> <INDENT> return ['Cosine Similarity: Profile Description and DDG Description'] <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def score(query, profile, data=None): <NEW_LINE> <INDENT> if not... | Cosine similarity between the profile description and a description
retrieved from the DuckDuckGo search engine. | 62599086dc8b845886d55131 |
class test04UnregisterHandlingTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> my_resvn_setup() <NEW_LINE> initA.reserve(my_rtype) <NEW_LINE> <DEDENT> def testUnregisterReleasesReservation(self): <NEW_LINE> <INDENT> resvnA = initA.getReservation() <NEW_LINE> self.assertEqual(resvnA.... | Test how PGR RESERVE Exclusive Access reservation is handled
during unregistration | 62599086bf627c535bcb304b |
class C6ZGate(CompositeGate): <NEW_LINE> <INDENT> def __init__(self, ctl1, ctl2, ctl3, ctl4, ctl5, ctl6, tgt, circ=None): <NEW_LINE> <INDENT> super().__init__("c6z", [], [ctl1, ctl2, ctl3, ctl4, ctl5, ctl6, tgt], circ) <NEW_LINE> self.c5x(ctl1, ctl2, ctl3, ctl4, ctl5, ctl6) <NEW_LINE> self.cu1(-pi/2, ctl6, tgt) <NEW_LI... | c6z gate. | 62599086656771135c48adec |
class CreateManagementGroupDetails(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'version': {'readonly': True}, 'updated_time': {'readonly': True}, 'updated_by': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'version': {'key': 'version', 'type': 'int'}, 'updated_time': {'key': 'updatedTime', 't... | The details of a management group used during creation.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar version: The version number of the object.
:vartype version: int
:ivar updated_time: The date and time when this object was last updated.
:vartype updated_time: ~dateti... | 625990867cff6e4e811b75ba |
class UrlTestCases(KALiteTestCase): <NEW_LINE> <INDENT> def validate_url(self, url, status_code=200, find_str=None): <NEW_LINE> <INDENT> resp = Client().get(url) <NEW_LINE> self.assertEquals(resp.status_code, status_code, "%s (check status code=%d != %d)" % (url, status_code, resp.status_code)) <NEW_LINE> if find_str i... | Walk through a set of URLs, and validate very basic properties (status code, some text)
A good test to weed out untested view/template errors | 62599086d486a94d0ba2db2e |
class Handler(object): <NEW_LINE> <INDENT> def spawn(self, target, *args, **kwargs): <NEW_LINE> <INDENT> raise NotImplementedError | Base class for Handler classes | 62599086fff4ab517ebcf38f |
class sqlite_connection(sql.sql_connection, transactions.transactional_connection): <NEW_LINE> <INDENT> def __init__(self, connector): <NEW_LINE> <INDENT> verify_type(connector, SQLiteConnector) <NEW_LINE> super().__init__(connector) <NEW_LINE> self._connection = None <NEW_LINE> self._cursor = None <NEW_LINE> <DEDENT> ... | A sqlite_connection manages the state for a connection to a SQLite database, providing an
interface for executing queries and commands. | 625990863317a56b869bf300 |
@public <NEW_LINE> class AQueue(_QueuesBase): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> self._name = name <NEW_LINE> <DEDENT> def on_get(self, request, response): <NEW_LINE> <INDENT> if self._name not in config.switchboards: <NEW_LINE> <INDENT> not_found(response) <NEW_LINE> <DEDENT> else: <NEW_... | A single queue. | 6259908692d797404e389918 |
class StorageBucketsDeleteResponse(_messages.Message): <NEW_LINE> <INDENT> pass | An empty StorageBucketsDelete response. | 625990864428ac0f6e65a0a6 |
class powerlaw(distribution): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(powerlaw, self).__init__() <NEW_LINE> self.name = 'power law' <NEW_LINE> self.n_para = 1 <NEW_LINE> <DEDENT> def _loglikelihood(self, alpha_, xmin, logsum_N): <NEW_LINE> <INDENT> alpha, = alpha_ <NEW_LINE> logsum, N = logsum... | Discrete power law distributions, given by
P(x) ~ x^(-alpha) | 6259908699fddb7c1ca63b97 |
class Environment(objects.VarContainer): <NEW_LINE> <INDENT> readonly = ["ADDR", "CLIENT_ADDR", "HOST", "HTTP_SOFTWARE", "PATH_SEP", "PHP_VERSION", "WEB_ROOT"] <NEW_LINE> item_deleters = ["NONE"] <NEW_LINE> def __init__(self, value={}, readonly=[]): <NEW_LINE> <INDENT> self.readonly += readonly <NEW_LINE> self.defaults... | Environment Variables
Instanciate a dict() like object that stores PhpSploit
environment variables.
Unlike settings, env vars object works exactly the same way than
its parent (MetaDict), excepting the fact that some
items (env vars) are tagged as read-only.
This behavior only aplies if the concerned variable already... | 62599086be7bc26dc9252c12 |
class InstanceNormalization(Layer): <NEW_LINE> <INDENT> def __init__(self, epsilon=1e-5): <NEW_LINE> <INDENT> super(InstanceNormalization, self).__init__() <NEW_LINE> self.epsilon = epsilon <NEW_LINE> <DEDENT> def build(self, input_shape): <NEW_LINE> <INDENT> self.scale = self.add_weight(name="scale", shape=input_shape... | Instance Normalization Layer (https://arxiv.org/abs/1607.08022).
Applies Instance Normalization for each channel in each data sample in a
batch.
Args:
epsilon: a small positive decimal number to avoid dividing by 0 | 62599086ad47b63b2c5a93cc |
class CommonSampleForm(FlaskForm): <NEW_LINE> <INDENT> notes = TextAreaField('Notes', [DataRequired(message='Notes are not filled in')]) <NEW_LINE> parameters = TextAreaField('Parameters', [DataRequired(message='Parameters are not filled in')]) <NEW_LINE> platform = SelectField( 'Platform', [DataRequired(message='Platf... | Form to submit common sample data. | 6259908626068e7796d4e4bc |
class CheckpointableDataStructure(checkpointable_lib.CheckpointableBase): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._layers = [] <NEW_LINE> self.trainable = True <NEW_LINE> self._extra_variables = [] <NEW_LINE> <DEDENT> def _track_value(self, value, name): <NEW_LINE> <INDENT> if isinstance(value,... | Base class for data structures which contain checkpointable objects. | 625990867cff6e4e811b75bc |
class ChainVolatilityManager(QtWidgets.QWidget): <NEW_LINE> <INDENT> IMPV_CHANGE_STEP = 0.001 <NEW_LINE> def __init__(self, chain, parent=None): <NEW_LINE> <INDENT> super(ChainVolatilityManager, self).__init__(parent) <NEW_LINE> self.chain = chain <NEW_LINE> self.initUi() <NEW_LINE> <DEDENT> def initUi(self): <NEW_LINE... | 期权链波动率管理 | 625990863617ad0b5ee07ccb |
class Constraint(object): <NEW_LINE> <INDENT> def __init__(self, i=0, j=0, distribution=""): <NEW_LINE> <INDENT> self.distribution = distribution <NEW_LINE> self.sampled_duration = 0 <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> to_print = "" <NEW_LINE> to_print += self.distribution <NEW_LINE> return to_p... | Represents a contingent constraint between two nodes in the PSTN
i: starting node
j: ending node
The duration between i and j is represented as a contingent constraint with a probability distribution
i ------> j | 62599086ec188e330fdfa426 |
class BaseLeapTest(unittest.TestCase): <NEW_LINE> <INDENT> __name__ = "leap_test" <NEW_LINE> _system = platform.system() <NEW_LINE> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.setUpEnv() <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def tearDownClass(cls): <NEW_LINE> <INDENT> cls.tearDownEnv() <N... | Base Leap TestCase | 625990864a966d76dd5f0a60 |
class DaemonCommands(object): <NEW_LINE> <INDENT> namespace = 'daemon' <NEW_LINE> @staticmethod <NEW_LINE> def start(): <NEW_LINE> <INDENT> started = daemonizer.start() <NEW_LINE> if not started: <NEW_LINE> <INDENT> return 'daemon already started' <NEW_LINE> <DEDENT> <DEDENT> @staticmethod <NEW_LINE> def stop(): <NEW_L... | Daemon related commands | 625990865fdd1c0f98e5faf5 |
class PackageLookupError(Exception): <NEW_LINE> <INDENT> def __init__(self, product): <NEW_LINE> <INDENT> message = u'Package lookup failed ' u'for product "{0}"'.format(product.title) <NEW_LINE> Exception.__init__(self, message) <NEW_LINE> self.product = product | Exception for package not found in `data_map.yaml` | 625990865fc7496912d49028 |
class DelNodes(Base): <NEW_LINE> <INDENT> __tablename__ = "delnodes" <NEW_LINE> taxid = Column(String, primary_key=True) | Deleted nodes.
Not sure If I want to support updating the database or if I should just
force reconstruction.
tax_id -- deleted node id | 62599086dc8b845886d55135 |
class DefaultValueParameterWidget(GenericParameterWidget): <NEW_LINE> <INDENT> def __init__(self, parameter, parent=None): <NEW_LINE> <INDENT> super(DefaultValueParameterWidget, self).__init__(parameter, parent) <NEW_LINE> self.radio_button_layout = QHBoxLayout() <NEW_LINE> self.input_button_group = QButtonGroup() <NEW... | Widget class for Default Value Parameter. | 62599086a8370b77170f1f48 |
class CornersProblem(search.SearchProblem): <NEW_LINE> <INDENT> def __init__(self, startingGameState): <NEW_LINE> <INDENT> self.walls = startingGameState.getWalls() <NEW_LINE> self.startingPosition = startingGameState.getPacmanPosition() <NEW_LINE> top, right = self.walls.height-2, self.walls.width-2 <NEW_LINE> self.co... | This search problem finds paths through all four corners of a layout.
You must select a suitable state space and successor function | 62599086ad47b63b2c5a93ce |
class zstack_kvm_image_file_checker(checker_header.TestChecker): <NEW_LINE> <INDENT> def check(self): <NEW_LINE> <INDENT> super(zstack_kvm_image_file_checker, self).check() <NEW_LINE> image = self.test_obj.image <NEW_LINE> backupStorages = image.backupStorageRefs <NEW_LINE> image_url = backupStorages[0].installPath <NE... | check kvm image file existencex . If it is in backup storage,
return self.judge(True). If not, return self.judge(False) | 62599086e1aae11d1e7cf5d1 |
class RechargeMemberThirdPayRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.TranNetMemberCode = None <NEW_LINE> self.MemberFillAmt = None <NEW_LINE> self.Commission = None <NEW_LINE> self.Ccy = None <NEW_LINE> self.PayChannelType = None <NEW_LINE> self.PayChannelAssignMerNo = No... | RechargeMemberThirdPay请求参数结构体
| 62599086656771135c48adee |
class _NullContextManager(ContextManager[None]): <NEW_LINE> <INDENT> def __exit__( self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType], ) -> None: <NEW_LINE> <INDENT> pass | A context manager which does nothing. | 62599086adb09d7d5dc0c0d6 |
class VersionLib(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> @cache.cache() <NEW_LINE> def get_version_by_id(id): <NEW_LINE> <INDENT> m = tools.mysql_conn('r') <NEW_LINE> m.Q("SELECT id, version, os_type, ctime, what_news, update_is_recommend, update_is_force, app_id, dl_url, channel, status FROM o_version WH... | docstring for VersionLib | 625990863617ad0b5ee07ccd |
class EquipmentDimmEntry(ManagedObject): <NEW_LINE> <INDENT> consts = EquipmentDimmEntryConsts() <NEW_LINE> naming_props = set([u'id']) <NEW_LINE> mo_meta = MoMeta("EquipmentDimmEntry", "equipmentDimmEntry", "dimm-entry[id]", VersionMeta.Version202m, "InputOutput", 0x3f, [], [""], [u'equipmentDimmMapping'], [], ["Get"]... | This is EquipmentDimmEntry class. | 62599086ec188e330fdfa428 |
class Canto(base.ThreadPoolText): <NEW_LINE> <INDENT> defaults = [ ("fetch", False, "Whether to fetch new items on update"), ("feeds", [], "List of feeds to display, empty for all"), ("one_format", "{name}: {number}", "One feed display format"), ("all_format", "{number}", "All feeds display format"), ] <NEW_LINE> def _... | Display RSS feeds updates using the canto console reader | 625990867c178a314d78e9a8 |
class EncryptionEnabledError(Exception): <NEW_LINE> <INDENT> pass | Raised when high security encryption is enabled | 62599086d8ef3951e32c8c1c |
class OrderedSampler(Sampler): <NEW_LINE> <INDENT> def __init__( self, dataset: Dataset, batch_size: int, drop_last_batch: bool = True, events: List[SamplerEvent] = None, transformations: Callable[[Dict[str, Any]], Dict[str, Any]] = None ): <NEW_LINE> <INDENT> super().__init__(dataset, batch_size, 0, drop_last_batch, e... | The OrderedSampler samples the dataset in a sequential order. | 6259908663b5f9789fe86ce6 |
class PublishExtension(object): <NEW_LINE> <INDENT> def __init__(self, scheduler): <NEW_LINE> <INDENT> self.scheduler = scheduler <NEW_LINE> self.datasets = dict() <NEW_LINE> handlers = { "publish_list": self.list, "publish_put": self.put, "publish_get": self.get, "publish_delete": self.delete, } <NEW_LINE> self.schedu... | An extension for the scheduler to manage collections
* publish-list
* publish-put
* publish-get
* publish-delete | 62599086bf627c535bcb3051 |
class MultiplierDrawing(Drawing): <NEW_LINE> <INDENT> def __init__(self, **kargs): <NEW_LINE> <INDENT> super().__init__(**kargs) <NEW_LINE> self._settings.update({ 'strokes' : 3 }) <NEW_LINE> self.apply_settings(**kargs) <NEW_LINE> <DEDENT> def draw(self, display): <NEW_LINE> <INDENT> for _ in range(self._strokes): <NE... | Draws multiple times, like making multiple 'brushstrokes'. | 625990864c3428357761be38 |
class FruitFlyMutation(FruitFly): <NEW_LINE> <INDENT> def __init__(self, genome, parent, start = 0, goal = 0): <NEW_LINE> <INDENT> super(FruitFlyMutation, self).__init__(genome, parent, start, goal) <NEW_LINE> self.generation = self.distance_to_goal() <NEW_LINE> <DEDENT> def distance_to_goal(self): <NEW_LINE> <INDENT> ... | A next generation of a fruit fly, with a mutated genome. | 625990868a349b6b43687ddc |
class GetAnswers(APIView): <NEW_LINE> <INDENT> def get(self, request, unique_id): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> question = Questionnaire.objects.get(unique_id=unique_id) <NEW_LINE> answers = question.answers <NEW_LINE> return JsonResponse({ 'answers': answers }) <NEW_LINE> <DEDENT> except Questionnaire.D... | API to get answers. | 62599086fff4ab517ebcf395 |
class StoredUploadedFile(FieldFile): <NEW_LINE> <INDENT> def __init__(self, name): <NEW_LINE> <INDENT> File.__init__(self, None, name) <NEW_LINE> self.field = self <NEW_LINE> <DEDENT> @property <NEW_LINE> def storage(self): <NEW_LINE> <INDENT> return get_storage() <NEW_LINE> <DEDENT> def save(self, *args, **kwargs): <N... | A wrapper for uploaded files that is compatible to the FieldFile class, i.e.
you can use instances of this class in templates just like you use the value
of FileFields (e.g. `{{ my_file.url }}`) | 6259908697e22403b383ca76 |
class BranchesItem(BoxLayout): <NEW_LINE> <INDENT> date = StringProperty("") <NEW_LINE> sha = StringProperty("") <NEW_LINE> name = StringProperty("") <NEW_LINE> commiter = StringProperty("") <NEW_LINE> subject = StringProperty("") <NEW_LINE> published = BooleanProperty(False) <NEW_LINE> republish = BooleanProperty(Fals... | BranchesItem; on branches screen, on other branches list,
each element is using this class to display. | 625990863317a56b869bf303 |
class NewPostHandler(Handler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> if self.user: <NEW_LINE> <INDENT> self.render("post-form.html") <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return self.redirect("/login") <NEW_LINE> <DEDENT> <DEDENT> def post(self): <NEW_LINE> <INDENT> if not self.user: <NEW_LINE>... | This class represents request handler for the new post form.
It checks whether the user is logged in or not.
If the user is logged in, it takes form input
values and create a new post. | 625990864a966d76dd5f0a64 |
class NullDevice(object): <NEW_LINE> <INDENT> def write(self, x): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def flush(self): <NEW_LINE> <INDENT> pass | Class to capture any output to stdout from the function under test.
Create non-operative write and flush methods to redirect output
from the run_setup function so that it is not printed to the console.
The write method is used to print the stdout to the console,
while the flush function is simply a requirement for an... | 62599086be7bc26dc9252c15 |
class OpenCommand(object): <NEW_LINE> <INDENT> def __init__(self, launcher): <NEW_LINE> <INDENT> self.launcher = launcher <NEW_LINE> self._isFetchingArgs = False <NEW_LINE> <DEDENT> def on_quasimode_start(self): <NEW_LINE> <INDENT> if self._isFetchingArgs: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> self._isFetching... | Opens an application, folder, or URL. | 6259908623849d37ff852c39 |
class TestCorpcPreFwd(commontestsuite.CommonTestSuite): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.get_test_info() <NEW_LINE> log_mask = os.getenv("D_LOG_MASK", "INFO") <NEW_LINE> crt_phy_addr = os.getenv("CRT_PHY_ADDR_STR", "ofi+sockets") <NEW_LINE> ofi_interface = os.getenv("OFI_INTERFACE", "eth0")... | Execute corpc pre-fwd tests | 62599086283ffb24f3cf541f |
class Tfluiddb_service_objects_status(object): <NEW_LINE> <INDENT> def __init__(self, status=None, nTagValues=None,): <NEW_LINE> <INDENT> self.status = status <NEW_LINE> self.nTagValues = nTagValues <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> L = ['%s=%r' % (key, value) for key, value in self.__dict__.i... | Attributes:
- status
- nTagValues | 62599086dc8b845886d55139 |
class PostProcessorBaseClass: <NEW_LINE> <INDENT> def __init__(self, spec: Any) -> None: <NEW_LINE> <INDENT> self._spec = spec <NEW_LINE> self._casedir = Path(spec.casedir) <NEW_LINE> self._fields: Dict[str, FieldBaseClass] = {} <NEW_LINE> <DEDENT> @property <NEW_LINE> def casedir(self) -> Path: <NEW_LINE> <INDENT> ret... | Baseclass for post processors. | 62599086099cdd3c636761ba |
class Frame(wx.Frame): <NEW_LINE> <INDENT> def __init__(self, image, parent=None, id=-1, pos=wx.DefaultPosition, title='Hello, Python!'): <NEW_LINE> <INDENT> temp = image.ConvertToBitmap() <NEW_LINE> size = temp.GetWidth(), temp.GetHeight() <NEW_LINE> wx.Frame.__init__(self, parent, id, title, pos, size) <NEW_LINE> sel... | Frame class that displays an image. | 62599086283ffb24f3cf5420 |
class IDeprecatedManageAddDeleteDirective(Interface): <NEW_LINE> <INDENT> class_ = GlobalObject( title="Class", required=True) | Call manage_afterAdd & co for these contained content classes.
| 625990863617ad0b5ee07cd1 |
class Float(Field): <NEW_LINE> <INDENT> type = 'float' <NEW_LINE> _slots = { '_digits': None, 'group_operator': None, } <NEW_LINE> def __init__(self, string=None, digits=None, **kwargs): <NEW_LINE> <INDENT> super(Float, self).__init__(string=string, _digits=digits, **kwargs) <NEW_LINE> <DEDENT> @property <NEW_LINE> def... | The precision digits are given by the attribute
:param digits: a pair (total, decimal), or a function taking a database
cursor and returning a pair (total, decimal) | 62599086167d2b6e312b8357 |
class Device(Connect): <NEW_LINE> <INDENT> def auth(self): <NEW_LINE> <INDENT> payload = json.dumps({ "login": True }) <NEW_LINE> return json.loads(self.request("POST", "/v1/api/device/auth", payload)) <NEW_LINE> <DEDENT> def id(self): <NEW_LINE> <INDENT> return self.request("GET", "/v1/api/device/id") <NEW_LINE> <DEDE... | Revive API device calls:
Provides methods:
revive.device.auth()
revive.device.id()
revive.device.hello() | 6259908660cbc95b06365b2c |
class dbOperate: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.gDbIP ="localhost" <NEW_LINE> self.gDbUser ="root" <NEW_LINE> self.gDbPass ="1234" <NEW_LINE> self.gDbName ="zj" <NEW_LINE> <DEDENT> def setDbConInfo(self,dbIP,dbUser,dbPass,dbName): <NEW_LINE> <INDENT> self.gDbIP =dbIP <NEW_LINE> self.gD... | configure DBIP,DBUser,DBPass,DBName | 625990865fc7496912d4902b |
class Emissor(ABC): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def envia(self, mensagem): <NEW_LINE> <INDENT> pass | Classe abstrata utilizada como template para criar emissores de mensagens. | 625990863346ee7daa338423 |
class MailUser(db.Model): <NEW_LINE> <INDENT> __tablename__ = "MailUser" <NEW_LINE> id = db.Column(db.Integer, primary_key=True, autoincrement=True) <NEW_LINE> username = db.Column(db.String(50),nullable=False) <NEW_LINE> email = db.Column(db.String(50),index=True,unique=True) <NEW_LINE> def __init__(self,username,emai... | mailuser | 6259908623849d37ff852c3d |
@dataclass <NEW_LINE> class DMPseudoModelScan(DMModelScan): <NEW_LINE> <INDENT> _coupling: str = 'pseudo' <NEW_LINE> def mediator_total_width(self): <NEW_LINE> <INDENT> return self.mediator_partial_width_quarks() + self.mediator_partial_width_dm() + self.mediator_partial_width_gluon() <NEW_LINE> <DEDENT> def mediator_p... | Specific implementation of a parameter scan
for a pseudoscalar mediator. | 625990864527f215b58eb761 |
class OrgDescView(View): <NEW_LINE> <INDENT> def get(self, request, org_id): <NEW_LINE> <INDENT> course_org = CourseOrg.objects.get(id=int(org_id)) <NEW_LINE> current_page = 'desc' <NEW_LINE> has_fav = False <NEW_LINE> if request.user.is_authenticated(): <NEW_LINE> <INDENT> if UserFavorite.objects.filter(user=request.u... | 机构介绍页 | 625990867b180e01f3e49e26 |
class Message(MessageAPI): <NEW_LINE> <INDENT> __slots__ = [ 'to', 'sender', 'value', 'data', 'depth', 'gas', 'code', '_code_address', 'create_address', 'should_transfer_value', 'is_static', '_storage_address' ] <NEW_LINE> logger = logging.getLogger('eth.vm.message.Message') <NEW_LINE> def __init__(self, gas: int, to: ... | A message for VM computation. | 62599086adb09d7d5dc0c0dd |
class TestRegisterObject(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.x86 = TritonContext(ARCH.X86) <NEW_LINE> self.x64 = TritonContext(ARCH.X86_64) <NEW_LINE> self.arm = TritonContext(ARCH.ARM32) <NEW_LINE> self.aarch = TritonContext(ARCH.AARCH64) <NEW_LINE> <DEDENT> def test_objec... | Test register object | 62599086091ae356687067c5 |
class index_select_syn_node(object): <NEW_LINE> <INDENT> node_type = DATA_TYPE.INDEX_SELECT <NEW_LINE> def __init__(self, target, indices): <NEW_LINE> <INDENT> self._target = target <NEW_LINE> self._indices = [] <NEW_LINE> for i in indices: <NEW_LINE> <INDENT> self._indices.append(Expr_syn_node(i)) <NEW_LINE> <DEDENT> ... | Syntax node represnting index select operations | 62599086bf627c535bcb3057 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.