code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Agent(Base): <NEW_LINE> <INDENT> def execute(self): <NEW_LINE> <INDENT> server_info = PluginManager().exec_plugin() <NEW_LINE> if server_info['basic']['status']: <NEW_LINE> <INDENT> hostname = server_info['basic']['data']['hostname'] <NEW_LINE> certname = open(settings.CERT_PATH,'r',encoding='utf-8').read().stri... | Agent模式下,找到唯一标识(使用config/cert文件下的主机名做唯一标识)
第一次采集时,config/cert下的信息为空则以提交信息的hostname为准,
多次时,则均以cert文件下的主机名为准 | 62599072e76e3b2f99fda2f1 |
class FieldFunctionTestCase(unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> activate_module('tests') <NEW_LINE> <DEDENT> @with_transaction() <NEW_LINE> def test_accessor(self): <NEW_LINE> <INDENT> pool = Pool() <NEW_LINE> Model = pool.get('test.function.accessor'... | Test Field Function | 62599072a219f33f346c80f9 |
class IActionParam(Interface): <NEW_LINE> <INDENT> name = Attribute("Parameter name unique for all action's parameters. " "@type: unicode") <NEW_LINE> label = Attribute("Parameter label or None. @type: unicode or None") <NEW_LINE> desc = Attribute("Parameter description or None. @type: unicode or None") <NEW_LINE> valu... | Action parameter descriptor. | 625990721f5feb6acb1644e2 |
class MagAvgServer(Server): <NEW_LINE> <INDENT> def aggregation(self, reports): <NEW_LINE> <INDENT> return self.magnetude_fed_avg(reports) <NEW_LINE> <DEDENT> def magnetude_fed_avg(self, reports): <NEW_LINE> <INDENT> import fl_model <NEW_LINE> updates = self.extract_client_updates(reports) <NEW_LINE> magnetudes = [] <N... | Federated learning server that performs magnetude weighted federated averaging. | 625990724527f215b58eb617 |
class TFMultipleChoiceDataset: <NEW_LINE> <INDENT> features: List[InputFeatures] <NEW_LINE> def __init__( self, data_dir: str, tokenizer: PreTrainedTokenizer, task: str, max_seq_length: Optional[int] = 128, overwrite_cache=False, mode: Split = Split.train, ): <NEW_LINE> <INDENT> processor = processors[task]() <NEW_LINE... | This will be superseded by a framework-agnostic approach
soon. | 625990724a966d76dd5f07d9 |
class IndexView(View): <NEW_LINE> <INDENT> def get(self, request): <NEW_LINE> <INDENT> context = cache.get('index_page_data') <NEW_LINE> if context is None: <NEW_LINE> <INDENT> types = GoodsType.objects.all() <NEW_LINE> goods_banners = IndexGoodsBanner.objects.all().order_by('index') <NEW_LINE> promotion_banners = Inde... | /index
首页 | 62599072dd821e528d6da5f9 |
class OverrideConfigTestCase(MyTestCase): <NEW_LINE> <INDENT> class Config(TestingConfig): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> with mock.patch.dict("privacyidea.config.config", {"testing": cls.Config}): <NEW_LINE> <INDENT> MyTestCase.setUpClass() | helper class that allows to modify the app config processed by ``create_app``.
This can be useful if config values need to be adjusted *for app creation*.
For that, just override the inner ``Config`` class. | 6259907238b623060ffaa4cc |
class iPerfUDPBiDirTestIPV6(ipv6_setup.Set_IPv6_Addresses, iPerfUDPBiDirTest): <NEW_LINE> <INDENT> def reverse_ip(self): <NEW_LINE> <INDENT> return "4aaa::6" <NEW_LINE> <DEDENT> def forward_ip(self): <NEW_LINE> <INDENT> return "5aaa::6" <NEW_LINE> <DEDENT> def server_opts_forward(self): <NEW_LINE> <INDENT> return "-V -... | iPerf IPV6 from LAN to/from WAN | 62599072be8e80087fbc0980 |
class TrueTypeFont(PdfBaseFont): <NEW_LINE> <INDENT> def text_space_coords(self, x, y): <NEW_LINE> <INDENT> return x/1000., y/1000. | For our purposes, these are just a more restricted form of the Type 1
Fonts, so...we're done here. | 625990723539df3088ecdb86 |
class getNextPosition(smach.State): <NEW_LINE> <INDENT> def __init__(self,point_list): <NEW_LINE> <INDENT> smach.State.__init__(self, outcomes=['succeeded','aborted'], output_keys=['next_x','next_y']) <NEW_LINE> self.ptr = 0 <NEW_LINE> self.point_list = point_list <NEW_LINE> <DEDENT> def execute(self, userdata): <NEW_L... | Temporary implementation. State giving the next position goal
TODO: Must be implemented as a service interfacing to a file | 62599072cc0a2c111447c749 |
class ChildrenWatch(object): <NEW_LINE> <INDENT> def __init__(self, client, path, func=None, allow_session_lost=True, send_event=False): <NEW_LINE> <INDENT> self._client = client <NEW_LINE> self._path = path <NEW_LINE> self._func = func <NEW_LINE> self._send_event = send_event <NEW_LINE> self._stopped = False <NEW_LINE... | Watches a node for children updates and calls the specified
function each time it changes
The function will also be called the very first time its
registered to get children.
Returning `False` from the registered function will disable future
children change calls. If the client connection is closed (using
the close c... | 62599072a17c0f6771d5d823 |
class SemimonomialActionVec(Action): <NEW_LINE> <INDENT> def __init__(self, G, V, check=True): <NEW_LINE> <INDENT> if check: <NEW_LINE> <INDENT> from sage.modules.free_module import FreeModule_generic <NEW_LINE> if not isinstance(G, SemimonomialTransformationGroup): <NEW_LINE> <INDENT> raise ValueError('%s is not a sem... | The natural action of the semimonomial group on vectors.
The action is defined by:
`(\phi, \pi, \alpha)*(v_0, \ldots, v_{n-1}) :=
(\alpha(v_{\pi(1)-1}) \cdot \phi_0^{-1}, \ldots, \alpha(v_{\pi(n)-1}) \cdot \phi_{n-1}^{-1})`.
(The indexing of vectors is `0`-based here, so
`\psi = (\psi_0, \psi_1, \ldots, \psi_{n-1})`.) | 625990724e4d562566373cf7 |
class HorizontalFlipWithHomo(A.HorizontalFlip): <NEW_LINE> <INDENT> def apply_to_homo(self, homo, **params): <NEW_LINE> <INDENT> return horizontal_flip_homo(homo, **params) | Class based of albumentations.HorizontalFlip, to allow it to deal with homographies.
| 625990724428ac0f6e659e25 |
class Marsh(pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.respawn() <NEW_LINE> <DEDENT> def redraw(self): <NEW_LINE> <INDENT> pygame.sprite.Sprite.__init__(self) <NEW_LINE> self.image, self.rect = Resources.load_png('marsh.png') <NEW_LINE> originalsize = self.image.get_size() <... | A marsh
Returns: marsh object
Functions: update
Attributes: health, healthbar, scale | 625990721f5feb6acb1644e4 |
class RandomizedMedianOfMedians: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.comparisons = 0 <NEW_LINE> self.swaps = 0 <NEW_LINE> <DEDENT> def median_of_medians(self, array, index): <NEW_LINE> <INDENT> if len(array) <= 10: <NEW_LINE> <INDENT> array.sort() <NEW_LINE> return array[index] <NEW_LINE> <... | Implementation of the RandomizedSelect algorithm in Python | 6259907232920d7e50bc7938 |
class BasicPresence(xmppim.AvailabilityPresence): <NEW_LINE> <INDENT> history = None <NEW_LINE> password = None <NEW_LINE> def toElement(self): <NEW_LINE> <INDENT> element = xmppim.AvailabilityPresence.toElement(self) <NEW_LINE> muc = element.addElement((NS_MUC, 'x')) <NEW_LINE> if self.password: <NEW_LINE> <INDENT> mu... | Availability presence sent from MUC client to service.
@type history: L{HistoryOptions} | 6259907267a9b606de54771c |
class Meter(object): <NEW_LINE> <INDENT> def __init__(self, objectified_meter): <NEW_LINE> <INDENT> self.objectified = objectified_meter <NEW_LINE> self._warnings = {} <NEW_LINE> <DEDENT> @property <NEW_LINE> def objectified(self): <NEW_LINE> <INDENT> return self._objectified <NEW_LINE> <DEDENT> @objectified.setter <NE... | Base class for a meter. | 625990724c3428357761bba6 |
class ProjectGalleryCreate(GalleryAccessMixin, View): <NEW_LINE> <INDENT> template_name = 'projects/gallery_form.html' <NEW_LINE> form_class = ProjectGalleryForm <NEW_LINE> def get(self, request, **kwargs): <NEW_LINE> <INDENT> context = super(ProjectGalleryCreate, self).get_context_data(**kwargs) <NEW_LINE> context['fo... | Create new gallery for selected project.
| 62599072fff4ab517ebcf10c |
class Charge(_1D): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def func(cls, t, t0, tau, amp, offset): <NEW_LINE> <INDENT> return offset + amp * ((1 - np.exp(- (t - t0) / tau)) * np.heaviside(t - t0, 0.5)) <NEW_LINE> <DEDENT> def approx(self): <NEW_LINE> <INDENT> offset = np.mean(self.ydata[:3]) <NEW_LINE> rng_min = ab... | Fit a capactivie charging curve to 1D data
| 62599072a8370b77170f1cbc |
class Object(Element): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.compute_matrix() <NEW_LINE> <DEDENT> def plot(self, ax, elem_pos, beam_path, **kwargs): <NEW_LINE> <INDENT> self._plot_var(ax, **kwargs) <NEW_LINE> ymin = self._Element__ymin <NEW_LINE> ymax = self._Ele... | Object of beam path | 625990722c8b7c6e89bd50d9 |
class OneTimestepLayer(lasagne.layers.Layer): <NEW_LINE> <INDENT> def __init__(self, input_layer): <NEW_LINE> <INDENT> super(OneTimestepLayer, self).__init__(input_layer) <NEW_LINE> self.input_shape = lasagne.layers.get_output_shape(input_layer) <NEW_LINE> <DEDENT> def get_output_for(self, input, timesteps=None, *args,... | Only forward outputs at certain/last sequence positions
Parameters
-------
input_layer : lasagne layer type
Input layer with shape: [samples, sequence positions, features] | 62599072283ffb24f3cf519b |
class PatchScore(BaseModel, CBScoreMixin): <NEW_LINE> <INDENT> cs = ForeignKeyField(ChallengeSet, related_name='patch_scores') <NEW_LINE> num_polls = BigIntegerField(null=False) <NEW_LINE> polls_included = BinaryJSONField(null=True) <NEW_LINE> has_failed_polls = BooleanField(null=False, default=False) <NEW_LINE> failed... | Score of a patched CB | 625990724f6381625f19a122 |
class Meta: <NEW_LINE> <INDENT> verbose_name_plural = "Wall Posts" | meta | 625990727b180e01f3e49cdd |
@injected <NEW_LINE> @setup(IBlogService, name='blogService') <NEW_LINE> class BlogServiceAlchemy(EntityCRUDServiceAlchemy, IBlogService): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> EntityCRUDServiceAlchemy.__init__(self, BlogMapped) <NEW_LINE> <DEDENT> def getBlog(self, blogId): <NEW_LINE> <INDENT> sq... | Implementation for @see: IBlogService | 62599072d268445f2663a7d6 |
class AdvancedModelChoiceIterator(forms.models.ModelChoiceIterator): <NEW_LINE> <INDENT> def __iter__(self): <NEW_LINE> <INDENT> if self.field.empty_label is not None: <NEW_LINE> <INDENT> yield ("", self.field.empty_label) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> yield ("", "---------") <NEW_LINE> <DEDENT> choices... | Classe para exibição da Entidade no formato Select, ordenado pelo sigla_completa
que inclui a Entidade pai, no formato "<sigla entidade pai> - <sigla entidade>" | 62599072cc0a2c111447c74a |
class Call(AlgebraicLeaf): <NEW_LINE> <INDENT> init_arg_names = ("function", "parameters",) <NEW_LINE> def __init__(self, function, parameters): <NEW_LINE> <INDENT> self.function = function <NEW_LINE> self.parameters = parameters <NEW_LINE> try: <NEW_LINE> <INDENT> arg_count = self.function.arg_count <NEW_LINE> <DEDENT... | A function invocation.
.. attribute:: function
A :class:`Expression` that evaluates to a function.
.. attribute:: parameters
A :class:`tuple` of positional parameters, each element
of which is a :class:`Expression` or a constant. | 62599072091ae3566870652a |
class FPS(object): <NEW_LINE> <INDENT> def __init__(self, fps, usar_modo_economico): <NEW_LINE> <INDENT> self.cuadros_por_segundo = "??" <NEW_LINE> self.frecuencia = 1000.0 / fps <NEW_LINE> self.timer = QtCore.QTime() <NEW_LINE> self.timer.start() <NEW_LINE> self.siguiente = self.timer.elapsed() + self.frecuencia <NEW_... | Representa un controlador de tiempo para el mainloop de pilas. | 62599072a8370b77170f1cbd |
class DataCDBWriteCommand(Command, ResponseParserMixIn): <NEW_LINE> <INDENT> name = "Write value to CDB" <NEW_LINE> result_type = DataCDBWriteResult <NEW_LINE> response_fields = { 'Length' : {}, 'Cid' : {}, 'Value' : {} } <NEW_LINE> @property <NEW_LINE> def ipmitool_args(self): <NEW_LINE> <INDENT> return ["cxoem", "dat... | Describes the cxoem data cdb write command
| 62599072ac7a0e7691f73ddc |
class GLGridItem(GLGraphicsItem): <NEW_LINE> <INDENT> def __init__(self, size=None, color=None, antialias=True, glOptions='translucent'): <NEW_LINE> <INDENT> GLGraphicsItem.__init__(self) <NEW_LINE> self.setGLOptions(glOptions) <NEW_LINE> self.antialias = antialias <NEW_LINE> if size is None: <NEW_LINE> <INDENT> size =... | **Bases:** :class:`GLGraphicsItem <pyqtgraph.opengl.GLGraphicsItem>`
Displays a wire-grame grid. | 625990724e4d562566373cf9 |
class ChallengeBase(ABC): <NEW_LINE> <INDENT> def load_input(self, input_file): <NEW_LINE> <INDENT> with open(input_file, "rt") as f: <NEW_LINE> <INDENT> self.lines = f.readlines() <NEW_LINE> <DEDENT> <DEDENT> @abstractmethod <NEW_LINE> def challenge1(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abstractmethod ... | Base class for Advent of Code challenges | 625990724527f215b58eb619 |
class PythonScriptBuildManager(InterpretedLanguageBuildManager): <NEW_LINE> <INDENT> source_extension = '.py' <NEW_LINE> language = 'python-script' <NEW_LINE> def syntax_check(self): <NEW_LINE> <INDENT> python3_syntax_check(self.source) | Python 3.x builder that executes code in a separate interpreter. | 625990727d43ff248742808c |
class Node(object): <NEW_LINE> <INDENT> def __init__(self, move=None, parent=None, state=None): <NEW_LINE> <INDENT> self.move = move <NEW_LINE> self.parent_node = parent <NEW_LINE> self.child_nodes = [] <NEW_LINE> self.wins = 0 <NEW_LINE> self.visits = 0 <NEW_LINE> self.untried_moves = state.get_moves() <NEW_LINE> self... | A node in the game tree.
Note wins is always from the viewpoint of playerJustMoved.
Crashes if state not specified. | 6259907267a9b606de54771d |
class Predictor(): <NEW_LINE> <INDENT> def __init__(self, predict_dataset, trained_model, serendipity_dic=None, output=None): <NEW_LINE> <INDENT> self.predict_dataset = predict_dataset <NEW_LINE> f = open(trained_model) <NEW_LINE> self.model = cPickle.load(f) <NEW_LINE> f.close() <NEW_LINE> try: <NEW_LINE> <INDENT> f =... | Predict interactions. | 6259907255399d3f05627e0c |
class LoadGraph(unittest.TestCase): <NEW_LINE> <INDENT> def test_a(self): <NEW_LINE> <INDENT> TOWNS_EXPECTED = 5 <NEW_LINE> n = trains.Network() <NEW_LINE> n.load_graph('tests/data/graph1') <NEW_LINE> msg = "expected {0} towns loaded".format(TOWNS_EXPECTED) <NEW_LINE> self.assertEqual(n.towns_count(), TOWNS_EXPECTED, m... | Prove that an input file containing route directives gets loaded and parsed correctly | 6259907201c39578d7f143ae |
class TimeLimit(object): <NEW_LINE> <INDENT> def __init__(self, timeout, env=None, msg=None): <NEW_LINE> <INDENT> self.timeout = timeout <NEW_LINE> self.env = env <NEW_LINE> self.msg = msg <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> signal.signal(signal.SIGALRM, self.handler) <NEW_LINE> signal.setitime... | A context manager that fires a TimeExpired exception if it does not
return within the specified amount of time. | 6259907299cbb53fe68327dd |
class ExtremeValueCopula(object): <NEW_LINE> <INDENT> def __init__(self, transform): <NEW_LINE> <INDENT> self.transform = transform <NEW_LINE> <DEDENT> def cdf(self, u, args=()): <NEW_LINE> <INDENT> u, v = np.asarray(u).T <NEW_LINE> cdfv = np.exp(np.log(u * v) * self.transform(np.log(u)/np.log(u*v), *args)) <NEW_LINE> ... | Extreme value copula constructed from Pickand's dependence function.
Currently only bivariate copulas are available.
Parameters
----------
transform: instance of transformation class
Pickand's dependence function with required methods including first
and second derivatives
Notes
-----
currently the following... | 62599072097d151d1a2c2966 |
class NewTicketView(LoginRequiredMixin, View): <NEW_LINE> <INDENT> template_new_ticket = "ticket/pages/new_ticket.html" <NEW_LINE> def get(self, *args, **kwargs): <NEW_LINE> <INDENT> form = AddTicketForm(initial={"assigned_user": self.request.user}) <NEW_LINE> content = { "form": form, } <NEW_LINE> return render(self.r... | Backend to create a new ticket template in new_ticket.html | 62599072dd821e528d6da5fb |
class UserAsk(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=50, verbose_name='姓名') <NEW_LINE> mobile = models.CharField(max_length=11, verbose_name='手机号') <NEW_LINE> course_name = models.CharField(max_length=50, verbose_name='课程名') <NEW_LINE> add_time = models.DateTimeField(default=datetime.now,... | 用户咨询 | 625990723346ee7daa3382d9 |
class DebianPackagesStatusParser( parsers.SingleFileParser[rdf_client.SoftwarePackages]): <NEW_LINE> <INDENT> output_types = [rdf_client.SoftwarePackages] <NEW_LINE> supported_artifacts = ["DebianPackagesStatus"] <NEW_LINE> installed_re = re.compile(r"^\w+ \w+ installed$") <NEW_LINE> def __init__(self, deb822): <NEW_LI... | Parser for /var/lib/dpkg/status. Yields SoftwarePackage semantic values. | 62599072435de62698e9d6fa |
class ProblemResetStatement(ProblemStatement): <NEW_LINE> <INDENT> def get_verb(self, event): <NEW_LINE> <INDENT> return Verb( id=constants.XAPI_VERB_INITIALIZED, display=LanguageMap({'en': 'reset'}), ) <NEW_LINE> <DEDENT> def get_result(self, event): <NEW_LINE> <INDENT> event_data = self.get_event_data(event) <NEW_LIN... | Statement for student resetting answer to a problem. | 6259907292d797404e3897d5 |
class TestGETAccountSummarySubscriptionRatePlanType(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 testGETAccountSummarySubscriptionRatePlanType(self): <NEW_LINE> <INDENT> pass | GETAccountSummarySubscriptionRatePlanType unit test stubs | 62599072be8e80087fbc0984 |
class TestAuroraSensorSetUp(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.hass = get_test_home_assistant() <NEW_LINE> self.lat = 37.8267 <NEW_LINE> self.lon = -122.423 <NEW_LINE> self.hass.config.latitude = self.lat <NEW_LINE> self.hass.config.longitude = self.lon <NEW_LINE> self.ent... | Test the aurora platform. | 62599072e5267d203ee6d037 |
class UserProfileManager(BaseUserManager): <NEW_LINE> <INDENT> def create_user(self, email, name, password=None): <NEW_LINE> <INDENT> if not email: <NEW_LINE> <INDENT> raise ValueError('Users must have an email address.') <NEW_LINE> <DEDENT> email = self.normalize_email(email) <NEW_LINE> user = self.model(email=email, ... | Helps Django work with our custom user models | 62599072cc0a2c111447c74b |
class inspectionViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = models.inspection.objects.all() <NEW_LINE> serializer_class = serializers.inspectionSerializer <NEW_LINE> permission_classes = [permissions.IsAuthenticated] | ViewSet for the inspection class | 62599072adb09d7d5dc0be5f |
class StgkStarterApp(Application): <NEW_LINE> <INDENT> def init_app(self): <NEW_LINE> <INDENT> app_payload = self.import_module("app") <NEW_LINE> menu_callback = lambda: app_payload.dialog.show_dialog(self) <NEW_LINE> self.engine.register_command("Show Starter Template App...", menu_callback) | The app entry point. This class is responsible for initializing and tearing down
the application, handle menu registration etc. | 6259907223849d37ff8529ab |
class ErrorWrongEncoding(ClientError): <NEW_LINE> <INDENT> pass | Invalid encoding from client. | 62599072e76e3b2f99fda2f7 |
class ModelCopySelected(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.__label = "Un moment..." <NEW_LINE> self.startSignal = Signal() <NEW_LINE> self.refreshSignal = Signal() <NEW_LINE> self.finishSignal = Signal() <NEW_LINE> self.NbrJobsSignal = Signal() <NEW_LINE> <DEDENT> def start(self, ... | Implemantation MVC de la procedure copySelected | 6259907299cbb53fe68327de |
class TestMemoryRead: <NEW_LINE> <INDENT> def test_calculated_length(self): <NEW_LINE> <INDENT> payload = MemoryRead() <NEW_LINE> assert payload.calculated_length() == 3 <NEW_LINE> <DEDENT> def test_from_knx(self): <NEW_LINE> <INDENT> payload = MemoryRead() <NEW_LINE> payload.from_knx(bytes([0x02, 0x0B, 0x12, 0x34])) <... | Test class for MemoryRead objects. | 62599072fff4ab517ebcf10f |
class Akai(protocol_base.IrProtocolBase): <NEW_LINE> <INDENT> irp = '{38k,289,lsb}<1,-2.6|1,-6.3>(D:3,F:7,1,^25.3m)*' <NEW_LINE> frequency = 38000 <NEW_LINE> bit_count = 10 <NEW_LINE> encoding = 'lsb' <NEW_LINE> _lead_out = [TIMING, 25300] <NEW_LINE> _bursts = [ [TIMING, -int(round(TIMING * 2.6))], [TIMING, -int(round(... | IR decoder for the Akai protocol. | 62599072f9cc0f698b1c5f45 |
class JDoodle(JDoodleWrapper): <NEW_LINE> <INDENT> def __init__(self, bot): <NEW_LINE> <INDENT> super().__init__(bot) <NEW_LINE> <DEDENT> async def __error(self, ctx, error): <NEW_LINE> <INDENT> if isinstance(error, (commands.BadArgument, JDoodleRequestFailedError)): <NEW_LINE> <INDENT> await ctx.send(error) <NEW_LINE>... | Commands to interact with the JDoodle compiler API. | 62599072f548e778e596ce83 |
@tf_export( "initializers.uniform_unit_scaling", v1=[ "initializers.uniform_unit_scaling", "uniform_unit_scaling_initializer" ]) <NEW_LINE> @deprecation.deprecated_endpoints("uniform_unit_scaling_initializer") <NEW_LINE> class UniformUnitScaling(Initializer): <NEW_LINE> <INDENT> @deprecated(None, "Use tf.initializers.v... | Initializer that generates tensors without scaling variance.
When initializing a deep network, it is in principle advantageous to keep
the scale of the input variance constant, so it does not explode or diminish
by reaching the final layer. If the input is `x` and the operation `x * W`,
and we want to initialize `W` u... | 6259907297e22403b383c7f8 |
class SeriesPieValid(Validted): <NEW_LINE> <INDENT> def validte(self, instance, value): <NEW_LINE> <INDENT> if isinstance(value, list): <NEW_LINE> <INDENT> __temp = [] <NEW_LINE> for serie in value: <NEW_LINE> <INDENT> if serie.__class__.__name__ == "SeriesPie": <NEW_LINE> <INDENT> __temp.append(eval(str(serie))) <NEW_... | 验证饼状图的series属性是否正确 | 6259907260cbc95b063659e8 |
class Plan: <NEW_LINE> <INDENT> def __init__(self, security, barSize, fileName): <NEW_LINE> <INDENT> self.str_security = str(security) <NEW_LINE> self.barSize = barSize <NEW_LINE> self.fullFilePath = fileName <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.str_security + ' ' + self.barSize + ' ' ... | Each plan contains the loading setup of each security | 6259907266673b3332c31cf4 |
class GenericX86HyperVNoWifi(GenericX86NoWifi): <NEW_LINE> <INDENT> identifier = 'generic-x86hyperv-nowifi' <NEW_LINE> name = "x86 Hyper-V (no wireless)" <NEW_LINE> architecture = 'x86_hyperv' <NEW_LINE> profiles = { 'openwrt': { 'name': 'Generic', 'files': [ 'openwrt-x86-generic-combined-ext4.img.gz' ] } } | Generic x86 Hyper-V device descriptor. | 62599072ad47b63b2c5a9143 |
class Area(BaseModel, db.Model): <NEW_LINE> <INDENT> __tablename__ = 'ihome_area' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> name = db.Column(db.String(32), nullable=False) <NEW_LINE> houses = db.relationship('House', backref='area') <NEW_LINE> def to_dict(self): <NEW_LINE> <INDENT> return { 'id... | 区域 | 6259907271ff763f4b5e909e |
class clear_log(ProtectedPage): <NEW_LINE> <INDENT> def GET(self): <NEW_LINE> <INDENT> with io.open(u"./data/log.json", u"w") as f: <NEW_LINE> <INDENT> f.write(u"") <NEW_LINE> <DEDENT> raise web.seeother(u"/vl") | Delete all log records | 625990725fdd1c0f98e5f87d |
class Network: <NEW_LINE> <INDENT> network_range, addresses, mask_length = {}, 0, 0 <NEW_LINE> routers = None <NEW_LINE> uid, name = -1, None <NEW_LINE> def __init__(self, starting_ip, mask, uid, name=None): <NEW_LINE> <INDENT> inst_ = IPv4Network().init_from_couple(starting_ip, mask) <NEW_LINE> self.uid = uid <NEW_LIN... | The virtual subnetwork class
Used to create virtual subnetworks and link them with routers | 62599072627d3e7fe0e0877d |
class MarketDataAveragePriceField(Base): <NEW_LINE> <INDENT> _fields_ = [ ('AveragePrice', ctypes.c_double), ] <NEW_LINE> def __init__(self, AveragePrice=0.0): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.AveragePrice = float(AveragePrice) | 成交均价 | 6259907292d797404e3897d6 |
class SqlAlchemyTask(Task): <NEW_LINE> <INDENT> abstract = True <NEW_LINE> def after_return(self, *args, **kwargs): <NEW_LINE> <INDENT> db_session.remove() <NEW_LINE> super(SqlAlchemyTask, self).after_return(*args, **kwargs) | An abstract Celery Task that ensures that the connection the the
database is closed on task completion | 625990724a966d76dd5f07e0 |
class BaLayerNorm(nn.Module): <NEW_LINE> <INDENT> def __init__(self, input_size, learnable=True, epsilon=1e-5): <NEW_LINE> <INDENT> super(BaLayerNorm, self).__init__() <NEW_LINE> self.input_size = input_size <NEW_LINE> self.learnable = learnable <NEW_LINE> self.epsilon = epsilon <NEW_LINE> self.alpha = T(1, input_size)... | Layer Normalization based on Ba & al.:
'Layer Normalization'
https://arxiv.org/pdf/1607.06450.pdf
This implementation mimicks the original torch implementation at:
https://github.com/ryankiros/layer-norm/blob/master/torch_modules/LayerNormalization.lua | 62599072442bda511e95d9d2 |
class PunktSentenceTokenizer(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.trained = nltk.data.load('tokenizers/punkt/english.pickle') <NEW_LINE> <DEDENT> except: <NEW_LINE> <INDENT> raise "Could not train the Punkt sentence tokenizer" <NEW_LINE> <DEDENT> <DEDENT> de... | A trained PunktSentenceTokenizer
| 625990724e4d562566373cfd |
class TestContact(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 testContact(self): <NEW_LINE> <INDENT> pass | Contact unit test stubs | 625990724428ac0f6e659e2b |
class MAVLink_gopro_set_response_message(MAVLink_message): <NEW_LINE> <INDENT> id = MAVLINK_MSG_ID_GOPRO_SET_RESPONSE <NEW_LINE> name = 'GOPRO_SET_RESPONSE' <NEW_LINE> fieldnames = ['cmd_id', 'status'] <NEW_LINE> ordered_fieldnames = [ 'cmd_id', 'status' ] <NEW_LINE> format = '<BB' <NEW_LINE> native_format = bytearray(... | Response from a GOPRO_COMMAND set request | 62599072bf627c535bcb2dc3 |
class IUUpdateFailedError(IpaacaError): <NEW_LINE> <INDENT> def __init__(self, iu): <NEW_LINE> <INDENT> super(IUUpdateFailedError, self).__init__('Remote update failed for IU ' + str(iu.uid) + '.') | Error indicating that a remote IU update failed. | 625990721f5feb6acb1644ea |
class LoggerWriter(object): <NEW_LINE> <INDENT> def __init__(self, level): <NEW_LINE> <INDENT> self.level = level <NEW_LINE> <DEDENT> def write(self, message): <NEW_LINE> <INDENT> msg = message.strip() <NEW_LINE> if msg != "\n": <NEW_LINE> <INDENT> self.level(msg) <NEW_LINE> <DEDENT> <DEDENT> def flush(self): <NEW_LINE... | Python logger that looks and acts like a file.
| 62599072a219f33f346c8101 |
class MD5PasswordHasher(BasePasswordHasher): <NEW_LINE> <INDENT> algorithm = "md5" <NEW_LINE> def encode(self, password, salt): <NEW_LINE> <INDENT> assert password <NEW_LINE> assert salt and '$' not in salt <NEW_LINE> hash = hashlib.md5(force_bytes(salt + password)).hexdigest() <NEW_LINE> return "%s$%s$%s" % (self.algo... | The Salted MD5 password hashing algorithm (not recommended) | 62599072fff4ab517ebcf111 |
class Processor(object): <NEW_LINE> <INDENT> def __init__(self, graph): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def query(self, strOrQuery, initBindings={}, initNs={}, DEBUG=False): <NEW_LINE> <INDENT> pass | Query plugin interface.
This module is useful for those wanting to write a query processor
that can plugin to rdf. If you are wanting to execute a query you
likely want to do so through the Graph class query method. | 625990727d43ff248742808e |
class ASTAssignmentExpr(ASTNode): <NEW_LINE> <INDENT> def __init__(self,ID,expression): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.children = [ASTID(ID), expression] <NEW_LINE> <DEDENT> @property <NEW_LINE> def binding(self): <NEW_LINE> <INDENT> return self.children[0] <NEW_LINE> <DEDENT> @property <NEW_LIN... | A class that takes an ID to assign to and an expression to be assigned as its arguments
and defines an assignment expression node in an abstract syntax tree
Parameters
----------
ID: string
expression: an AST node
Returns
-------
__init__(ID,expression): None
returns nothing, but sets the children of ASTAssignme... | 625990724e4d562566373cfe |
class Solution: <NEW_LINE> <INDENT> def checkPerfectNumber(self, num): <NEW_LINE> <INDENT> if not num: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> numSum = 1 <NEW_LINE> i = 2 <NEW_LINE> while i * i <= num: <NEW_LINE> <INDENT> if num % i == 0: <NEW_LINE> <INDENT> numSum += i <NEW_LINE> numSum += num // i <NEW_L... | @param num: an integer
@return: returns true when it is a perfect number and false when it is not | 625990724f88993c371f119c |
class CliAgentRunErrorPredicate(jp.ValuePredicate): <NEW_LINE> <INDENT> def __init__(self, title, error_regex): <NEW_LINE> <INDENT> super(CliAgentRunErrorPredicate, self).__init__() <NEW_LINE> self.__title = title <NEW_LINE> self.__error_regex = error_regex <NEW_LINE> <DEDENT> def export_to_json_snapshot(self, snapshot... | An Predicate expects specify CliAgentRunError. | 625990725166f23b2e244ccb |
class ProgressLogger(logging.Logger): <NEW_LINE> <INDENT> def __init__(self, name='Progress Log', level=logging.INFO, format='%(asctime)s\t%(levelname)s\t%(message)s', dateformat='%H:%M:%S', logToConsole=False, logToFile=False, maxprogress=100, logfile=None, mode='w', callback=lambda:None): <NEW_LINE> <INDENT> self._lo... | Provide logger interface | 6259907299cbb53fe68327e1 |
class DeletePackageException(Exception): <NEW_LINE> <INDENT> def __init__(self, details=None): <NEW_LINE> <INDENT> self.message = "An error occurred during package deletion." <NEW_LINE> self.details = details <NEW_LINE> display = self.details <NEW_LINE> if display is None: <NEW_LINE> <INDENT> display = self.message <NE... | Exception raised during package deletion.
| 6259907297e22403b383c7fa |
class ExternalRequestFailed(Exception): <NEW_LINE> <INDENT> pass | Raised when a call to an external service fails. | 62599072fff4ab517ebcf112 |
class PresignedUrlProvider(object): <NEW_LINE> <INDENT> request: DownloadRequest <NEW_LINE> _cached_info: PresignedUrlInfo <NEW_LINE> _TIME_BUFFER: datetime.timedelta = datetime.timedelta(seconds=5) <NEW_LINE> def __init__(self, client, request: DownloadRequest): <NEW_LINE> <INDENT> self.client = client <NEW_LINE> self... | Provides an un-exipired pre-signed url to download a file | 62599072167d2b6e312b820b |
class delete_with_version_args: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.STRING, 'url', None, None, ), (2, TType.BYTE, 'version', None, None, ), ) <NEW_LINE> def __init__(self, url=None, version=None,): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> self.version = version <NEW_LINE> <DEDENT> def read(self, ip... | Attributes:
- url
- version | 6259907291f36d47f2231b0a |
class ForeignKeyField(models.ForeignKey): <NEW_LINE> <INDENT> parent_fields = None <NEW_LINE> title_field = None <NEW_LINE> dialog_title = None <NEW_LINE> show_simple = False <NEW_LINE> def __init__(self, to, to_field=None, rel_class=models.ManyToOneRel, **kwargs): <NEW_LINE> <INDENT> self.parent_fields = kwargs.pop('p... | Поле выбора для ForeignKey
Можно выбирать в дереве если указаны родительские поля в parent_fields
title_field нужен для фильтрации по символам | 625990721f037a2d8b9e54e6 |
class XenAPISRSelectionTestCase(test.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(XenAPISRSelectionTestCase, self).setUp() <NEW_LINE> xenapi_fake.reset() <NEW_LINE> <DEDENT> def test_safe_find_sr_raise_exception(self): <NEW_LINE> <INDENT> self.flags(sr_matching_filter='yadayadayada') <NEW_L... | Unit tests for testing we find the right SR. | 6259907238b623060ffaa4d0 |
class MainWindow(QtGui.QDialog): <NEW_LINE> <INDENT> def __init__(self, parent, win_parent=None): <NEW_LINE> <INDENT> QtGui.QDialog.__init__(self, win_parent) <NEW_LINE> self.parent = parent <NEW_LINE> self.ui = Ui_dlgMain() <NEW_LINE> self.ui.setupUi(self) <NEW_LINE> QtCore.QObject.connect(self.ui.btnNext, QtCo... | Game launcher dialog and associated methods | 62599072796e427e53850070 |
class TimeMemoize(object): <NEW_LINE> <INDENT> _caches = {} <NEW_LINE> _delays = {} <NEW_LINE> def __init__(self, delay=10): <NEW_LINE> <INDENT> self.delay = delay <NEW_LINE> <DEDENT> def collect(self): <NEW_LINE> <INDENT> for func in self._caches: <NEW_LINE> <INDENT> cache = {} <NEW_LINE> for key in self._caches[func]... | Memoize with timeout | 62599072435de62698e9d6fe |
class SoQtExaminerViewer(SoQtFullViewer): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def initClass(): <NEW_LINE> <INDENT> return _soqt.SoQtExaminerViewer_initClass() <NEW_LINE> <DEDENT> initClass... | Proxy of C++ SoQtExaminerViewer class | 625990722ae34c7f260ac9dc |
class ComplexDateTimeField(LongField): <NEW_LINE> <INDENT> def _convert_from_datetime(self, val): <NEW_LINE> <INDENT> result = self._datetime_to_microseconds_since_epoch(value=val) <NEW_LINE> return result <NEW_LINE> <DEDENT> def _convert_from_db(self, value): <NEW_LINE> <INDENT> result = self._microseconds_since_epoch... | Date time field which handles microseconds exactly and internally stores
the timestamp as number of microseconds since the unix epoch.
Note: We need to do that because mongoengine serializes this field as comma
delimited string which breaks sorting. | 62599072be8e80087fbc0988 |
class ProductOfSimplicialSets_finite(ProductOfSimplicialSets, PullbackOfSimplicialSets_finite): <NEW_LINE> <INDENT> def __init__(self, factors=None): <NEW_LINE> <INDENT> PullbackOfSimplicialSets_finite.__init__(self, [space.constant_map() for space in factors]) <NEW_LINE> self._factors = tuple([f.domain() for f in self... | The product of finite simplicial sets.
When the factors are all finite, there are more methods available
for the resulting product, as compared to products with infinite
factors: projection maps, the wedge as a subcomplex, and the fat
wedge as a subcomplex. See :meth:`projection_map`,
:meth:`wedge_as_subset`, and :met... | 62599072d268445f2663a7d9 |
class Login(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'routes': {'key': 'routes', 'type': 'LoginRoutes'}, 'token_store': {'key': 'tokenStore', 'type': 'TokenStore'}, 'preserve_url_fragments_for_logins': {'key': 'preserveUrlFragmentsForLogins', 'type': 'bool'}, 'allowed_external_redirect_urls':... | The configuration settings of the login flow of users using App Service Authentication/Authorization.
:ivar routes: The routes that specify the endpoints used for login and logout requests.
:vartype routes: ~azure.mgmt.web.v2020_12_01.models.LoginRoutes
:ivar token_store: The configuration settings of the token store.... | 62599072091ae35668706530 |
class SKUSimpleView(ListAPIView): <NEW_LINE> <INDENT> serializer_class = SKUSimpleSerializer <NEW_LINE> queryset = SKU.objects.all() <NEW_LINE> pagination_class = None | 获取sku商品数据 | 6259907256ac1b37e630395e |
class ThreadSynchronizationFactory(object): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> @abstractmethod <NEW_LINE> def create_lock(self): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> @abstractmethod <NEW_LINE> def create_wait_condition(self, lock): <NEW_LINE> <INDENT> raise NotImplemen... | Factory interface for creating synchronization primitives. | 625990724e4d562566373cff |
class List(base.HighlanderLister): <NEW_LINE> <INDENT> def _get_format_function(self): <NEW_LINE> <INDENT> return format <NEW_LINE> <DEDENT> def _get_resources(self, parsed_args): <NEW_LINE> <INDENT> return maccleods.MaccleodManager(self.app.client).list() | List all maccleods dialog. | 62599072bf627c535bcb2dc5 |
class Movie(): <NEW_LINE> <INDENT> VALID_RATINGS = ["G","PG","PG-13","R"] <NEW_LINE> def __init__(self,movie_title,movie_storyline,poster_image,trailer_youtube): <NEW_LINE> <INDENT> self.title = movie_title <NEW_LINE> self.storyline = movie_storyline <NEW_LINE> self.poster_image_url = poster_image <NEW_LINE> self.trail... | This class helps to store movie related information | 625990729c8ee82313040e03 |
class AudioStreamInfo(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Bitrate = None <NEW_LINE> self.SamplingRate = None <NEW_LINE> self.Codec = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Bitrate = params.get("Bitrate") <NEW_LINE> self.SamplingRate... | 音频流信息。
| 62599072d486a94d0ba2d8b5 |
class ik(): <NEW_LINE> <INDENT> def __init__(self,lengths, ee_pos): <NEW_LINE> <INDENT> self.length = np.asarray(lengths, dtype=np.float32) <NEW_LINE> self.ee_pos = np.asarray(ee_pos, dtype= np.float32) <NEW_LINE> self.q0 = [np.pi/3,-np.pi/4,np.pi/6] <NEW_LINE> self.q = self.q0[:] <NEW_LINE> <DEDENT> def inv_kin(self, ... | Inverse Kinematics class for 3 links.
Pass list of link lengths and list of default joint angles.
Assumptions:
1) All rotations are about z-axis.
2) Translation is about x-axis.
Reference:
1) https://github.com/AliShug/EvoArm/tree/master/PyIK/src
2) https://github.com/lanius/tinyik/tree/master/tinyik
*3) ... | 625990727047854f46340cb0 |
class PP_STATUS(object): <NEW_LINE> <INDENT> SUCCESS = 0 <NEW_LINE> VERIFY_FAIL = 1 <NEW_LINE> UNPACK_FAIL = 2 <NEW_LINE> VERIFY_UNPACK_FAIL = 3 <NEW_LINE> FAILURE = -1 | This provides the Post Process Status of SABNzbd set in the
SAB_PP_STATUS environment variable | 6259907299cbb53fe68327e3 |
class WrongDatabaseError(Exception): <NEW_LINE> <INDENT> def __init__(self, clientDatabaseName, serverDatabaseName): <NEW_LINE> <INDENT> Exception.__init__(self, clientDatabaseName, serverDatabaseName) <NEW_LINE> self.clientDatabaseName = clientDatabaseName <NEW_LINE> self.serverDatabaseName = serverDatabaseName | The client's database name doesn't match our database. | 6259907263b5f9789fe86a5d |
class NoDeletes(Exception): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) | Raised when the document no longer contains any pending deletes
(DEL_START/DEL_END) | 625990725fcc89381b266dd4 |
class ProgressLineEdit(QLineEdit): <NEW_LINE> <INDENT> INITIAL_PROGRESS_OPACITY = 0.25 <NEW_LINE> text_changed = Signal(str) <NEW_LINE> def __init__(self, parent=None): <NEW_LINE> <INDENT> super(ProgressLineEdit, self).__init__(parent) <NEW_LINE> self._progress = 0 <NEW_LINE> self.text_changed.connect(self.setText) <NE... | A lineedit with a progress bar overlaid | 62599072627d3e7fe0e08781 |
class SchemaTheme(DictTheme): <NEW_LINE> <INDENT> @property <NEW_LINE> def tag(self): <NEW_LINE> <INDENT> return self.get_attribute('tag') <NEW_LINE> <DEDENT> @property <NEW_LINE> def maptype(self): <NEW_LINE> <INDENT> return self.get_attribute('maptype') <NEW_LINE> <DEDENT> @property <NEW_LINE> def tileformat(self): <... | Schema Theme
A `SchemaTheme` object configs attributes for a
:class:`~stonemason.mason.mapsheet.MapSheet`. | 625990727047854f46340cb1 |
class PCIeSERDESAligner(PCIeSERDESInterface): <NEW_LINE> <INDENT> def __init__(self, lane): <NEW_LINE> <INDENT> self.ratio = lane.ratio <NEW_LINE> self.rx_invert = lane.rx_invert <NEW_LINE> self.rx_align = lane.rx_align <NEW_LINE> self.rx_present = lane.rx_present <NEW_LINE> self.rx_locked = lane.rx_... | A multiplexer that aligns commas to the first symbol of the word, for SERDESes that only
perform bit alignment and not symbol alignment. | 62599072460517430c432cd4 |
class Lerp( IntervalAction ): <NEW_LINE> <INDENT> def init(self, attrib, start, end, duration): <NEW_LINE> <INDENT> self.attrib = attrib <NEW_LINE> self.duration = duration <NEW_LINE> self.start_p = start <NEW_LINE> self.end_p = end <NEW_LINE> self.delta = end-start <NEW_LINE> <DEDENT> def update(self, t): <NEW_LINE> <... | Interpolate between values for some specified attribute | 625990723539df3088ecdb90 |
class Songbook(object): <NEW_LINE> <INDENT> def __init__(self, name=u'', entry=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.entry = entry <NEW_LINE> <DEDENT> def _to_xml(self): <NEW_LINE> <INDENT> elem = etree.Element(u'songbook') <NEW_LINE> if self.entry: <NEW_LINE> <INDENT> elem.set(u'entry', self.entr... | A songbook/collection with an entry/number.
name: The name of the songbook or collection.
entry: A number or string representing the index in this songbook. | 625990728e7ae83300eea98b |
class ElectionCycleModel(pm.Model): <NEW_LINE> <INDENT> def __init__(self, election_model, name, cycle_config, parties, election_polls, eta, adjacent_day_fn, min_polls_per_pollster, test_results=None, real_results=None, house_effects_model=None, chol=None, votes=None, after_polls_chol=None, election_day_chol=None): <NE... | A pymc3 model that models the full election cycle. This can
include a fundamentals model as well as a dynamics model. | 62599072091ae35668706532 |
class ModPad(FunPad): <NEW_LINE> <INDENT> def __init__(self, pad_ij: Tuple[int], mod: FunMod): <NEW_LINE> <INDENT> self.mod = mod <NEW_LINE> super(ModPad, self).__init__(pad_ij) <NEW_LINE> <DEDENT> def set_registry_id(self): <NEW_LINE> <INDENT> return 'Mod: ' + str(self.mod) <NEW_LINE> <DEDENT> def default_color(self):... | Modifies chords. | 62599072a8370b77170f1cc5 |
class ObjTypeScan(common.AbstractScanCommand): <NEW_LINE> <INDENT> scanners = [ObjectTypeScanner] <NEW_LINE> def unified_output(self, data): <NEW_LINE> <INDENT> def generator(data): <NEW_LINE> <INDENT> for object_type in data: <NEW_LINE> <INDENT> yield (0, [ Address(object_type.obj_offset), Hex(object_type.TotalNumberO... | Scan for Windows object type objects | 625990723d592f4c4edbc7d9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.