code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class SchedulerEvent(object): <NEW_LINE> <INDENT> def __init__(self, code): <NEW_LINE> <INDENT> self.code = code
An event that concerns the scheduler itself. :var code: the type code of this event
62598f00099cdd3c636748cb
class BaseMiddleware(object): <NEW_LINE> <INDENT> def process_request(self, request): <NEW_LINE> <INDENT> if CLOUD_MODE: <NEW_LINE> <INDENT> request.cloud_mode = True <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> request.cloud_mode = False <NEW_LINE> <DEDENT> request.user.org = None <NEW_LINE> request.user.orgs = None ...
Middleware that add organization info to request when user in organization context.
62598f00adb09d7d5dc08f9d
class SpecificAbstractMixin: <NEW_LINE> <INDENT> USE_ABSTRACT_UUID = False <NEW_LINE> @classproperty <NEW_LINE> @classmethod <NEW_LINE> def normalize_url_spec(cls): <NEW_LINE> <INDENT> return { 'locators': { lambda self: self.abstract.locator.token if cls.USE_ABSTRACT_UUID else self.abstract } } <NEW_LINE> <DEDENT> _ab...
Mixin for RHs that deal with a specific abstract
62598f00f548e778e5969f70
class Solution: <NEW_LINE> <INDENT> def sortedSquares(self, nums: List[int]) -> List[int]: <NEW_LINE> <INDENT> index_left = 0 <NEW_LINE> index_right = len(nums) - 1 <NEW_LINE> result = [] <NEW_LINE> if nums[index_left] > 0: <NEW_LINE> <INDENT> result = nums <NEW_LINE> <DEDENT> elif nums[index_right] < 0: <NEW_LINE> <IN...
两个指针分别从两头开始 如果数组全是负数:那么nums[right]<0 如果数组全是正数:那么nums[left]>0 如果有正有负,则left是负数绝对值最大的数,right是正数最大的数, 由于最终返回的结果是平方,所以可以直接拿绝对值做比较,算出新数组
62598f00167d2b6e312b5986
class Lattice(Bits): <NEW_LINE> <INDENT> def __lt__(self, other): <NEW_LINE> <INDENT> return self <= other and self != other <NEW_LINE> <DEDENT> def __le__(self, other): <NEW_LINE> <INDENT> for i in range(len(self)): <NEW_LINE> <INDENT> if self[i] and not other[i]: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> <...
Child of Bits supporting a partial order for the given Boolean lattice
62598f00956e5f7376df4b70
class ProteinDatabase: <NEW_LINE> <INDENT> def __init__(self, species, fasta_filename, biomart_filename): <NEW_LINE> <INDENT> self.species = species <NEW_LINE> self.proteins = {} <NEW_LINE> self.proteins_seq = FastaFile(fasta_filename, indexed=True) <NEW_LINE> self.biomart_genes = BiomartGene.parse(biomart_filename) <N...
Database of sequences and protein data. Lookup protein/gene data by protein id.
62598f00ad47b63b2c5a6202
class schema_manager(dict): <NEW_LINE> <INDENT> f_schema = "schema_org_all.json" <NEW_LINE> def __getitem__(self, key): <NEW_LINE> <INDENT> if not self: <NEW_LINE> <INDENT> self.load_schema() <NEW_LINE> <DEDENT> return super(schema_manager,self).__getitem__(key) <NEW_LINE> <DEDENT> def load_schema(self): <NEW_LINE> <IN...
Only loads the schema json once if called on.
62598f0050812a4eaa6200e0
class Error(State): <NEW_LINE> <INDENT> def on_enter(self): <NEW_LINE> <INDENT> print("Error") <NEW_LINE> <DEDENT> def receive_error_has_been_removed(self, message): <NEW_LINE> <INDENT> self.transition_into(Working())
The state machine is in a state where an error needs to be removed by hand.
62598f00656771135c488075
class LabelClick(ttk.Label): <NEW_LINE> <INDENT> def __init__(self, root, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(root, *args, **kwargs) <NEW_LINE> self.root = root <NEW_LINE> self.bind('<Double-Button-1>', self.update_label) <NEW_LINE> <DEDENT> def update_label(self, event): <NEW_LINE> <INDENT> TextEdit...
Creates a label that can be changed by double-clicking.
62598f00fff4ab517ebcc1bd
class Company(models.Model): <NEW_LINE> <INDENT> id=models.AutoField(primary_key=True) <NEW_LINE> name=models.CharField( max_length=128, verbose_name=ugettext_lazy("Name")) <NEW_LINE> note=models.TextField( blank=True, null=True, verbose_name=ugettext_lazy("Note")) <NEW_LINE> company_type=models.ForeignKey( CompanyType...
(Modelname description)
62598f00be7bc26dc9251359
class VISAN(object): <NEW_LINE> <INDENT> def __init__(self, version, isan, episode, check_digit ): <NEW_LINE> <INDENT> self._version = version <NEW_LINE> self._isan = isan <NEW_LINE> self._episode = episode <NEW_LINE> self._check_digit = check_digit <NEW_LINE> <DEDENT> @property <NEW_LINE> def check_digit(self): <NEW_L...
Represents a V-ISAN code. This is a variation on the ISAN (International Standard Audiovisual Number)
62598f004527f215b58e88e7
class ProdFunction(DiffFunction): <NEW_LINE> <INDENT> def __init__(self, f1, f2): <NEW_LINE> <INDENT> if f1.ndim != f2.ndim: <NEW_LINE> <INDENT> raise ValueError('functions dimension mismatch.') <NEW_LINE> <DEDENT> DiffFunction.__init__(self, _intersection(f1.input_ranges, f2.input_ranges), delta_list=None) <NEW_LINE> ...
product of two DiffFunctions Parameters ---------- f1 : DiffFunction the first function. f2 : DiffFunction the second function.
62598f004428ac0f6e656f39
class IBlockLink(ILink): <NEW_LINE> <INDENT> title = schema.TextLine(title=_("Title"), required=True) <NEW_LINE> description = schema.Text(title=_("Description"), required=False) <NEW_LINE> open_in_new_tab = schema.Bool( title=_("Open in a new tab"), required=False, default=False ) <NEW_LINE> remoteUrl = LinkField(titl...
Marker interface and Dexterity Python Schema for BlockLink
62598f004c34283577618cd4
class BaseWindowsTempestBackend(windows.WindowsBackendMixin, windows.BaseMetadataProviderMixin, BaseTempestBackend): <NEW_LINE> <INDENT> def _get_log_template(self, suffix): <NEW_LINE> <INDENT> template = super(BaseWindowsTempestBackend, self)._get_log_template(suffix) <NEW_LINE> if CONFIG.argus.build and CONFIG.argus....
Base Tempest back-end for testing Windows.
62598f004f88993c371ef9df
class ParticipantDetail(viewsets.ModelViewSet): <NEW_LINE> <INDENT> permission_classes = [AllowAny] <NEW_LINE> queryset = models.ParticipantModel.objects.all() <NEW_LINE> serializer_class = serializers.ParticipantSerializer <NEW_LINE> lookup_field = 'uuid' <NEW_LINE> def perform_create(self, serializer): <NEW_LINE> <IN...
Crée un participant
62598f000fa83653e46f38cd
class Badge(blocks.StructBlock): <NEW_LINE> <INDENT> number = blocks.IntegerBlock() <NEW_LINE> is_new = blocks.BooleanBlock() <NEW_LINE> class Meta: <NEW_LINE> <INDENT> label = _('Badge') <NEW_LINE> template = 'wagtail_materializecss/components/badge.html'
Badge ('span' tag) that notifies user that an item is unread.
62598f00099cdd3c636748cc
class MyFavTeacherView(LoginRequiredMixin, View): <NEW_LINE> <INDENT> def get(self, request): <NEW_LINE> <INDENT> teacher_list = [] <NEW_LINE> fav_teachers = UserFavorite.objects.filter(user=request.user, fav_type=3) <NEW_LINE> for fav_teacher in fav_teachers: <NEW_LINE> <INDENT> teacher_id = fav_teacher.fav_id <NEW_LI...
我收藏的课程机构
62598f00cc40096d616196cf
class MCollective23x(object): <NEW_LINE> <INDENT> rev = '2.3.x'
Mcollective 2.3.x branch integration tests with RabbitMQ
62598f0071ff763f4b5e614e
class WebApp(object): <NEW_LINE> <INDENT> expose = True <NEW_LINE> @cherrypy.expose <NEW_LINE> def index(self): <NEW_LINE> <INDENT> index_path = os.path.abspath('public/index.html') <NEW_LINE> return serve_file(index_path)
The top level web application handler.
62598f005fdd1c0f98e5c991
class DevCmd(BaseCmd): <NEW_LINE> <INDENT> _LocCmdIDGen = Alg.IDGen(startVal=1, wrapVal=sys.maxsize) <NEW_LINE> def __init__(self, cmdStr, callFunc = None, userCmd = None, timeLim = None, dev = None, showReplies = False, ): <NEW_LINE> <INDENT> self.locCmdID = next(self._LocCmdIDGen) <NEW_LINE> self.dev = dev <NEW_LINE>...
Generic device command You may wish to subclass to override the following: * fullCmdStr returns: locCmdID cmdStr Useful attributes: - dev: the value specified in the constructor - userCmd: the value specified in the constructor - locCmdID: command ID number (assigned when the device command is created); this is t...
62598f00283ffb24f3cf2297
class JobType(models.Model): <NEW_LINE> <INDENT> job_title = models.CharField(max_length=100) <NEW_LINE> trainee_status = models.BooleanField(help_text='Is this person a trainee?', verbose_name="Trainee?") <NEW_LINE> student_status = models.BooleanField(help_text='Is this person a student?', verbose_name="Student?") <N...
This model describes specific jobs. These can be current jobs, previous jobs or jobs while in the laboratory. This class describes jobs generically. For details on a specific job see the associated ::class:`Role`.
62598f00ad47b63b2c5a6204
class TestModelBloco(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> Bloco.objects.create(nome="Bloco C", tipo="Educacional") <NEW_LINE> Bloco.objects.create(nome="Bloco B", tipo="Juridico") <NEW_LINE> Bloco.objects.create(nome="Bloco A", tipo="Esportivo") <NEW_LINE> <DEDENT> def testCreate...
Teste do modelo bloco
62598f0050812a4eaa6200e1
class Directory(object): <NEW_LINE> <INDENT> def __init__(self, directory): <NEW_LINE> <INDENT> self.original_path = None <NEW_LINE> self.path = directory <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> self.original_path = os.getcwd() <NEW_LINE> if self.path: <NEW_LINE> <INDENT> os.chdir(self.path) <NEW_L...
Class to be used with the 'with' statement to do something within a given directory. For example: with Directory("/tmp"): # do something under /tmp
62598f00656771135c488077
class AccountManagementPage(SuperPage): <NEW_LINE> <INDENT> def __init__(self, testcase, driver, logger): <NEW_LINE> <INDENT> super(AccountManagementPage, self).__init__(testcase, driver, logger) <NEW_LINE> <DEDENT> def validSelf(self): <NEW_LINE> <INDENT> API().assertElementByName(self.testcase, self.driver, self.logg...
作者 宋波 首页=>我的飞凡=>设置=>账号管理
62598f007c178a314d78be89
class Car: <NEW_LINE> <INDENT> def __init__(self, make, model, year): <NEW_LINE> <INDENT> self.make = make <NEW_LINE> self.model = model <NEW_LINE> self.year = year <NEW_LINE> self.odometer_reading = 0 <NEW_LINE> <DEDENT> def get_descriptive_name(self): <NEW_LINE> <INDENT> long_name = f"{self.year} {self.make} {self.ye...
A simple attempt to represent a car.
62598f007cff6e4e811b43d2
class MazdaFuelDistanceSensor(MazdaEntity, SensorEntity): <NEW_LINE> <INDENT> _attr_icon = "mdi:gas-station" <NEW_LINE> def __init__(self, client, coordinator, index) -> None: <NEW_LINE> <INDENT> super().__init__(client, coordinator, index) <NEW_LINE> self._attr_name = f"{self.vehicle_name} Fuel Distance Remaining" <NE...
Class for the fuel distance sensor.
62598f004a966d76dd5ed8c1
class Cell(NamedTuple): <NEW_LINE> <INDENT> source: Any <NEW_LINE> target: Any <NEW_LINE> this_cost: Cost = 0.0 <NEW_LINE> cumul_cost: Cost = 0.0
Smallest member of a Parse. An alignment between source and target.
62598f0026068e7796d4b348
class ConnectionProperty(shared.Property): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(ConnectionProperty, self).__init__()
A concrete class within the cim v1 type system. A ConnectionProperty is a name/value pair used to specify OASIS-specific properties.
62598f0110dbd63aa1c6f56d
class CheckNameAvailabilityOperations(object): <NEW_LINE> <INDENT> def __init__(self, client, config, serializer, deserializer): <NEW_LINE> <INDENT> self._client = client <NEW_LINE> self._serialize = serializer <NEW_LINE> self._deserialize = deserializer <NEW_LINE> self.api_version = "2017-04-30-preview" <NEW_LINE> sel...
CheckNameAvailabilityOperations operations. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An objec model deserializer. :ivar api_version: The API version to use for the request. Constant value: "2017-04-30...
62598f0167a9b606de5449b8
class Select2TagsField(fields.StringField): <NEW_LINE> <INDENT> widget = Select2TagsWidget() <NEW_LINE> def __init__(self, label=None, validators=None, save_as_list=False, coerce=str, **kwargs): <NEW_LINE> <INDENT> self.save_as_list = save_as_list <NEW_LINE> self.coerce = coerce <NEW_LINE> super(Select2TagsField, self)...
`Select2 <http://ivaynberg.github.com/select2/#tags>`_ styled text field. You must include select2.js, form-x.x.x.js and select2 stylesheet for it to work.
62598f013617ad0b5ee04b1a
class Effect: <NEW_LINE> <INDENT> __image = "" <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.__triggered = False <NEW_LINE> self.__effect_time = 0 <NEW_LINE> self.before_effect_value = None <NEW_LINE> <DEDENT> def apply_over(self, obj,obj2): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def reset(self, obj): <...
La clase Effect sirve como guia para realizar otros efectos bajo el mismo esqueleto, de manera que todos sean lo mas parecido posibles en terminos de definicion
62598f0163b5f9789fe83b4e
class PitchSpaceAxis(PitchAxis): <NEW_LINE> <INDENT> labelDefault = 'Pitch' <NEW_LINE> quantities = ('pitchSpace', 'pitch', 'pitchspace', 'ps') <NEW_LINE> def extractOneElement(self, n, formatDict): <NEW_LINE> <INDENT> if hasattr(n, 'pitch'): <NEW_LINE> <INDENT> return n.pitch.ps <NEW_LINE> <DEDENT> <DEDENT> def ticks(...
Axis subclass for dealing with PitchSpace (MIDI numbers...)
62598f015fdd1c0f98e5c994
class BaseService(Thread, metaclass=ABCMeta): <NEW_LINE> <INDENT> def __init__(self, client: BotClient, max_sleep_time: float = inf, name: Optional[str] = None): <NEW_LINE> <INDENT> super().__init__(daemon=True, name=name) <NEW_LINE> self._client = client <NEW_LINE> self.stop = False <NEW_LINE> self._max_sleep_time = m...
Base class for persistent services Start the thread to run asynchronously by calling :meth:`start()`. The thread will then run until the `stop` attribute is set to `True`. Note that the thread will not terminate until the the active call to `os.sleep` ends. If you would like the thread to terminate sooner, define a `m...
62598f017cff6e4e811b43d4
class KeypairController(object): <NEW_LINE> <INDENT> def _gen_key(self): <NEW_LINE> <INDENT> private_key, public_key, fingerprint = crypto.generate_key_pair() <NEW_LINE> return {'private_key': private_key, 'public_key': public_key, 'fingerprint': fingerprint} <NEW_LINE> <DEDENT> def create(self, req, body): <NEW_LINE> ...
Keypair API controller for the Openstack API
62598f0171ff763f4b5e6152
class TrafficSplit(_messages.Message): <NEW_LINE> <INDENT> class ShardByValueValuesEnum(_messages.Enum): <NEW_LINE> <INDENT> COOKIE = 0 <NEW_LINE> IP = 1 <NEW_LINE> UNSPECIFIED = 2 <NEW_LINE> <DEDENT> @encoding.MapUnrecognizedFields('additionalProperties') <NEW_LINE> class AllocationsValue(_messages.Message): <NEW_LINE...
A TrafficSplit object. Enums: ShardByValueValuesEnum: Messages: AllocationsValue: A AllocationsValue object. Fields: allocations: A AllocationsValue attribute. shardBy: A ShardByValueValuesEnum attribute.
62598f01ad47b63b2c5a6207
class TestClassMethod(unittest.TestCase): <NEW_LINE> <INDENT> n = 0 <NEW_LINE> @classmethod <NEW_LINE> def setUpClass(cls) -> None: <NEW_LINE> <INDENT> logging.info(f"初始计数:{cls.n}") <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def tearDownClass(cls) -> None: <NEW_LINE> <INDENT> logging.info(f"最终计数:{cls.n}") <NEW_LINE> <...
测试 setUpClass
62598f01aad79263cf42d200
class BinomialModel(DerivedModel): <NEW_LINE> <INDENT> def __init__(self, underlying_model): <NEW_LINE> <INDENT> super(BinomialModel, self).__init__(underlying_model) <NEW_LINE> if not (underlying_model.is_n_outcomes_constant and underlying_model.n_outcomes(None) == 2): <NEW_LINE> <INDENT> raise ValueError("Decorated m...
Model representing finite numbers of iid samples from another model, using the binomial distribution to calculate the new likelihood function. :param qinfer.abstract_model.Model underlying_model: An instance of a two- outcome model to be decorated by the binomial distribution. Note that a new experimental par...
62598f01ff9c53063f519051
class DOMHTMLSearchMovieParser(DOMParserBase): <NEW_LINE> <INDENT> _BaseParser = DOMBasicMovieParser <NEW_LINE> _notDirectHitTitle = '<title>imdb title' <NEW_LINE> _titleBuilder = lambda self, x: build_title(x) <NEW_LINE> _linkPrefix = '/title/tt' <NEW_LINE> _attrs = [Attribute(key='data', multi=True, path={ 'link': "....
Parse the html page that the IMDb web server shows when the "new search system" is used, for movies.
62598f013317a56b869bda5c
class I3(AutotoolsPackage): <NEW_LINE> <INDENT> homepage = "https://i3wm.org/" <NEW_LINE> url = "https://github.com/i3/i3/archive/4.14.1.tar.gz" <NEW_LINE> version('4.14.1', 'bdbb6d7bb5a647c8b7b53ed10de84cc5') <NEW_LINE> depends_on('autoconf', type='build') <NEW_LINE> depends_on('automake', type='build') <NEW_LINE...
i3, improved tiling wm. i3 is a tiling window manager, completely written from scratch. The target platforms are GNU/Linux and BSD operating systems, our code is Free and Open Source Software (FOSS) under the BSD license. i3 is primarily targeted at advanced users and developers.
62598f0167a9b606de5449ba
class JobState(enum.IntEnum): <NEW_LINE> <INDENT> PENDING = job_pb2.PENDING <NEW_LINE> FINISHED = job_pb2.FINISHED <NEW_LINE> STARTUP = job_pb2.STARTUP <NEW_LINE> SHUTDOWN = job_pb2.SHUTDOWN <NEW_LINE> POSTED = job_pb2.POSTED
Enum representing the state of a job.
62598f0150812a4eaa6200e3
class BikeRentalsView(BaseView): <NEW_LINE> <INDENT> url = f"/bikes/{{identifier:{BIKE_IDENTIFIER_REGEX}}}/rentals" <NEW_LINE> with_bike = match_getter(get_bike, 'bike', identifier=('identifier', str)) <NEW_LINE> with_user = match_getter(get_user, 'user', firebase_id=GetFrom.AUTH_HEADER) <NEW_LINE> @with_bike <NEW_LINE...
Gets the rentals for a single bike.
62598f01dc8b845886d51fb7
class ChunksTransaction(AbstractTransaction): <NEW_LINE> <INDENT> msg_class = messages.ChunksMessage
Base abstract class for CHUNKS transaction.
62598f01fff4ab517ebcc1c3
class InvalidForwardRefError(Exception): <NEW_LINE> <INDENT> def __init__(self, invalid: _ForwardRef): <NEW_LINE> <INDENT> self.invalid_ref = invalid <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "Invalid PEP484 type hint: forward reference {} could not be resolved with the current stack's " ...
Raised whenever some forward reference can not be evaluated
62598f015fdd1c0f98e5c996
class LivestockBeekeepingCycle(ProduModel): <NEW_LINE> <INDENT> production_livestock = models.ForeignKey( "producer.ProductionLivestock", related_name="livestock_beekeeping_cycle", on_delete=models.CASCADE ) <NEW_LINE> renapa = models.BooleanField(default=False) <NEW_LINE> kind_bee = models.CharField(max_length=100, bl...
Ciclo de apicultura de la produccion ganadera
62598f01ec188e330fdf729f
class Dist(float): <NEW_LINE> <INDENT> __slots__ = () <NEW_LINE> def __new__(cls: Type[DistT], x: Any) -> DistT: <NEW_LINE> <INDENT> return super().__new__(cls, float(x)) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_angstrom(cls: Type[DistT], value: Any) -> DistT: <NEW_LINE> <INDENT> return cls(float(value)/ang...
Distance in atomic units i.e. Bohr radii (a\ :sub:`0`\ ) Bohr radius is the measure of length in atomic units and angstrom is a unit commonly used in computational chemistry. The string representations are thus implemented as follows: >>> d = Dist(2.3) >>> d Dist(2.3) >>> print(d) 2.3 a₀ (1.2 Å) Parameters ---------...
62598f0176e4537e8c3edfad
class PylonsSettingsProxy(object): <NEW_LINE> <INDENT> def __getattr__(self, key): <NEW_LINE> <INDENT> pylons_key = to_pylons(key) <NEW_LINE> try: <NEW_LINE> <INDENT> value = config[pylons_key] <NEW_LINE> if key in LIST_PARAMS: <NEW_LINE> <INDENT> return value.split() <NEW_LINE> <DEDENT> return self.type_converter(valu...
Pylons Settings Proxy Proxies settings from pylons.config
62598f014c34283577618cda
class AnswerManager(CoreManager): <NEW_LINE> <INDENT> def get_queryset(self): <NEW_LINE> <INDENT> return self.get_all_queryset().order_by('?') <NEW_LINE> <DEDENT> def get_correct_answer(self): <NEW_LINE> <INDENT> return self.filter(is_correct=True) <NEW_LINE> <DEDENT> def get_enumerated_answers(self): <NEW_LINE> <INDEN...
docstring for AnswerManager
62598f01099cdd3c636748cf
class ProjectsLogsEntriesService(base_api.BaseApiService): <NEW_LINE> <INDENT> _NAME = u'projects_logs_entries' <NEW_LINE> def __init__(self, client): <NEW_LINE> <INDENT> super(LoggingV1beta3.ProjectsLogsEntriesService, self).__init__(client) <NEW_LINE> self._method_configs = { 'Write': base_api.ApiMethodInfo( http_met...
Service class for the projects_logs_entries resource.
62598f0126068e7796d4b34c
class ConvNet(nn.Module): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def add_args(parser): <NEW_LINE> <INDENT> parser.add_argument( "--kernel-size", type=int, default=11, help="Convolution kernel" ) <NEW_LINE> parser.add_argument( "--num-l...
Parent class for all convnets (resnet, densenet ..)
62598f01796e427e5384d18d
@exporter.configure("trends-html") <NEW_LINE> class TrendsExporter(exporter.TaskExporter): <NEW_LINE> <INDENT> INCLUDE_LIBS = False <NEW_LINE> def generate(self): <NEW_LINE> <INDENT> report = plot.trends(self.tasks_results, self.INCLUDE_LIBS) <NEW_LINE> if self.output_destination: <NEW_LINE> <INDENT> return {"files": {...
Generates task trends report in HTML format.
62598f01167d2b6e312b598e
class IREncoderBertModel(MegatronModule): <NEW_LINE> <INDENT> def __init__(self, ict_head_size, num_tokentypes=2, parallel_output=True): <NEW_LINE> <INDENT> super(IREncoderBertModel, self).__init__() <NEW_LINE> args = get_args() <NEW_LINE> self.ict_head_size = ict_head_size <NEW_LINE> self.parallel_output = parallel_ou...
BERT-based encoder for queries or blocks used for learned information retrieval.
62598f0160cbc95b06362d23
class BaseElementTestCase(unittest.TestCase): <NEW_LINE> <INDENT> message_xml = ( '<t:transparent t:render="messages"><t:slot name="channel"/> ' '<t:slot name="time"/> <t:slot name="username"/> ' '<t:slot name="text"/>\n</t:transparent>') <NEW_LINE> channel_xml = ( '<t:transparent t:render="channels"><t:slot name="chan...
Utilities for elements
62598f01956e5f7376df4b74
class ConfusionMatrixMetric(MetricBase): <NEW_LINE> <INDENT> def __init__(self, vocab=None, pred=None, target=None, seq_len=None, print_ratio=False ): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._init_param_map(pred=pred, target=target, seq_len=seq_len) <NEW_LINE> self.confusion_matrix = ConfusionMatrix( voc...
分类问题计算混淆矩阵的Metric(其它的Metric参见 :mod:`fastNLP.core.metrics` ) 最后返回结果为:: dict,{'confusion_matrix': ConfusionMatrix实例} ConfusionMatrix实例的print()函数将输出矩阵字符串。 .. code :: pred_dict = {"pred": torch.Tensor([2,1,3])} target_dict = {'target': torch.Tensor([2,2,1])} metric = ConfusionMatrixMetric() ...
62598f01bf627c535bcafe66
class CustomLogger(object): <NEW_LINE> <INDENT> def __init__(self, handler): <NEW_LINE> <INDENT> log_format = ('%(asctime)s {program}[%(process)d] ' '%(threadName)s %(message)s' .format(program=PROGRAM_NAME)) <NEW_LINE> self.logger = logging.getLogger('stderr') <NEW_LINE> self.logger.setLevel(logging.DEBUG) <NEW_LINE> ...
Helper Logger to redirect STDOUT or STDERR to a logging hander. It wraps a Logger class into a file like object, which provides a handy way to redirect STDOUT or STDERR to a logger. This class provides the necessary methods (write, flush and close) to build a file-like object and it can not be used directly as it does...
62598f01ff9c53063f519053
@value.value_equality <NEW_LINE> class CircularShiftGate(PermutationGate): <NEW_LINE> <INDENT> def __init__(self, num_qubits: int, shift: int, swap_gate: 'cirq.Gate' = ops.SWAP) -> None: <NEW_LINE> <INDENT> super(CircularShiftGate, self).__init__(num_qubits, swap_gate) <NEW_LINE> self.shift = shift <NEW_LINE> <DEDENT> ...
Performs a cyclical permutation of the qubits to the left by a specified amount. Args: shift: how many positions to circularly left shift the qubits. swap_gate: the gate to use when decomposing.
62598f01a8370b77170eedd0
@dataclass <NEW_LINE> class LockedIdentityNin(LockedIdentityElement, _LockedIdentityNinRequired): <NEW_LINE> <INDENT> identity_type: str = 'nin'
Element that is used to lock a NIN to a user Properties of LockedNinElement: number
62598f013617ad0b5ee04b1e
class BagOfContainedWordsFeatureDetector(AbstractFeatureDetector): <NEW_LINE> <INDENT> def __init__(self, **property_names): <NEW_LINE> <INDENT> AbstractFeatureDetector.__init__(self, **property_names) <NEW_LINE> <DEDENT> def get_features(self, token): <NEW_LINE> <INDENT> BOW = self.property('BOW') <NEW_LINE> TEXT = se...
A feature detector that extracts the C{TEXT} of each subtoken in a document, and stores them (preserving duplicates) in the C{BOW} feature.
62598f019f288636728171e8
@Model.register("bigram_embedder_ws") <NEW_LINE> class BigramEmbedderWeightedSum(Model): <NEW_LINE> <INDENT> def __init__(self, vocab: Vocabulary, mapping_layer: FeedForward, initializer: InitializerApplicator = InitializerApplicator(), regularizer: Optional[RegularizerApplicator] = None) -> None: <NEW_LINE> <INDENT> s...
This ``Model`` performs text classification for an academic paper. We assume we're given a title and an abstract, and we predict some output label. The basic model structure: we'll embed the title and the abstract, and encode each of them with separate Seq2VecEncoders, getting a single vector representing the content...
62598f0199fddb7c1ca622fa
class TestSetup(unittest.TestCase): <NEW_LINE> <INDENT> layer = FHIR_HEART_INTEGRATION_TESTING <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.portal = self.layer['portal'] <NEW_LINE> self.installer = api.portal.get_tool('portal_quickinstaller') <NEW_LINE> <DEDENT> def test_product_installed(self): <NEW_LINE> <IND...
Test that fhir.heart is properly installed.
62598f0123849d37ff84fab4
class LoanStatus(object): <NEW_LINE> <INDENT> ACTIVE = "Active" <NEW_LINE> COMPLETE = "Complete" <NEW_LINE> swagger_types = { } <NEW_LINE> attribute_map = { } <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.discriminator = None <NEW_LINE> <DEDENT> def to_dict(self): <NEW_LINE> <INDENT> result = {} <NEW_LINE> fo...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f01be7bc26dc925135d
class SpecPostParser(SpecSectionParser): <NEW_LINE> <INDENT> obj = SpecStPost
Parse %post section
62598f0126068e7796d4b34e
class FileUploadTemplate(BaseTemplate): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(FileUploadTemplate, self).__init__() <NEW_LINE> self.name = self.get_vulnerability_name() <NEW_LINE> self.file_vars = [] <NEW_LINE> self.file_dest = URL('http://host.tld/uploads/file.ext') <NEW_LINE> self.method = ...
Vulnerability template for arbitrary file upload vulnerability.
62598f0171ff763f4b5e6156
class myTestClass (object): <NEW_LINE> <INDENT> def __init__ (self): <NEW_LINE> <INDENT> self.tag = 0 <NEW_LINE> self.mDict = {} <NEW_LINE> <DEDENT> def run (self, tag): <NEW_LINE> <INDENT> if tag != 0: <NEW_LINE> <INDENT> self.tag = tag <NEW_LINE> if not self.tag in self.mDict.keys(): <NEW_LINE> <INDENT> self.mDict.u...
myTestClass makes a dictionary of entrances and exits for each tag number as it is encountered The dictionary of entrances and exits for each tag is itself saved in a dictionary whose keys are tags
62598f013d592f4c4edb98e3
class UtilItem(MenuItem): <NEW_LINE> <INDENT> grok.viewletmanager(UtilItems)
A utility menu item
62598f01dc8b845886d51fbb
class IdMixin(object): <NEW_LINE> <INDENT> id = Column(Integer, primary_key=True)
Provides the :attr:`id` primary key column
62598f01442bda511e95ae55
class Comment(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'comments' <NEW_LINE> id = db.Column(db.Integer,primary_key=True) <NEW_LINE> name = db.Column(db.String(255)) <NEW_LINE> text = db.Column(db.Text) <NEW_LINE> date = db.Column(db.DateTime()) <NEW_LINE> post_id = db.Column(db.Integer, db.ForeignKey('posts.id'))...
Represents Proected comments.
62598f0199fddb7c1ca622fb
class EncodingChecker(BaseChecker): <NEW_LINE> <INDENT> __implements__ = IRawChecker <NEW_LINE> name = 'miscellaneous' <NEW_LINE> msgs = MSGS <NEW_LINE> options = (('notes', {'type': 'csv', 'metavar': '<comma separated values>', 'default': ('FIXME', 'XXX', 'TODO'), 'help': ('List of note tags to take in consideration, ...
checks for: * warning notes in the code like FIXME, XXX * encoding issues.
62598f01656771135c48807f
class DispatcherStartMessage(StartMessage): <NEW_LINE> <INDENT> def __init__(self, sender_name: str, name: str, formula_class: Type[FormulaActor], formula_values: FormulaValues, route_table: RouteTable, device_id: str): <NEW_LINE> <INDENT> StartMessage.__init__(self, sender_name, name) <NEW_LINE> self.formula_class = f...
Message used to start Dispatcher actor
62598f0123849d37ff84fab6
class CycleOperateur(ModelSQL): <NEW_LINE> <INDENT> __name__ = 'cycle.cycle-party.operateur' <NEW_LINE> _table = 'cycle_operateur_rel' <NEW_LINE> cycle = fields.Many2One('cycle.cycle', 'Cycle', ondelete='CASCADE', required=True, select=True) <NEW_LINE> operateur = fields.Many2One('party.party', 'Operateur', ondelete='C...
Cycle - Operateur
62598f0176e4537e8c3edfb1
class Multibox(chainer.Chain): <NEW_LINE> <INDENT> def __init__( self, n_class, aspect_ratios, initialW=None, initial_bias=None): <NEW_LINE> <INDENT> self.n_class = n_class <NEW_LINE> self.aspect_ratios = aspect_ratios <NEW_LINE> super(Multibox, self).__init__() <NEW_LINE> with self.init_scope(): <NEW_LINE> <INDENT> se...
Multibox head of Single Shot Multibox Detector. This is a head part of Single Shot Multibox Detector [#]_. This link computes :obj:`mb_locs` and :obj:`mb_confs` from feature maps. :obj:`mb_locs` contains information of the coordinates of bounding boxes and :obj:`mb_confs` contains confidence scores of each classes. ....
62598f013d592f4c4edb98e4
class Microservice(Component): <NEW_LINE> <INDENT> def __init__(self, name, *args, **kwargs): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.heartbeat_cnt = 0 <NEW_LINE> self.heartbeat_loop = None <NEW_LINE> self.session = None <NEW_LINE> self.restart_component = False <NEW_LINE> psutil.cpu_percent() <NEW_LINE> s...
Microservice provides functionality required for monitoring via MicroserviceMonitor. Published Topics Topic Name Argument (object) --------------------------- ----------------------------------------------- py.ms.heartbeat Heartbeat: name: name of the micr...
62598f014f88993c371ef9e4
class JavaScriptRegex(JavaScript): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return '/' + self.value + '/'
A simple class that represents a JavaScript Regex literal that should not be JSON encoded.
62598f01aad79263cf42d205
class HelperTest(unittest.TestCase): <NEW_LINE> <INDENT> def check(self, d): <NEW_LINE> <INDENT> xml = etree.XML(test_capa_system().render_template('blah', d)) <NEW_LINE> assert d == extract_context(xml) <NEW_LINE> <DEDENT> def test_extract_context(self): <NEW_LINE> <INDENT> self.check({}) <NEW_LINE> self.check({1, 2})...
Make sure that our helper function works!
62598f0110dbd63aa1c6f575
class BaseSCCQuery(TableQueryBase): <NEW_LINE> <INDENT> service = None <NEW_LINE> resource = None <NEW_LINE> val_cols = [] <NEW_LINE> key_col = None <NEW_LINE> def extract_dataframe(self, resp_data): <NEW_LINE> <INDENT> if not resp_data: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> if self.val_cols and self.key_...
Base class for SCC device query, can not be directly used. :param service: string, reference to service attr of the scc object :param resource: string, name of the resource :param val_cols: list of name of non-key columns :param key_col: string, name of key column
62598f01cc40096d616196d4
class common(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.headers = { 'Host': 'www.luoo.net', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36' } <NEW_LINE> self.url = '' <NEW_LINE> <DEDENT> def spider(self): <N...
基础页面爬虫
62598f01f548e778e5969f7c
class ISourceHighlight(Interface): <NEW_LINE> <INDENT> pass
A utility which returns a formatted string highlighting syntax
62598f013617ad0b5ee04b22
class RetrieveFaces_result: <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.STRUCT, 'success', (FaceRetrievalResponse, FaceRetrievalResponse.thrift_spec), None, ), ) <NEW_LINE> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if i...
Attributes: - success
62598f017b180e01f3e48542
class Role(models.Model): <NEW_LINE> <INDENT> ADMINISTRATOR = 'AD' <NEW_LINE> INSTRUCTOR = 'IN' <NEW_LINE> CONTENT_DEVELOPER = 'CD' <NEW_LINE> LEARNER = 'LE' <NEW_LINE> OBSERVER = 'OB' <NEW_LINE> ROLES = ( (ADMINISTRATOR, 'Administrateur'), (INSTRUCTOR, 'Professeur'), (CONTENT_DEVELOPER, 'Concepteur'), (LEARNER, 'Élève...
Default role are created at migration. See 'playexo/migrations/xxxx_add_role_data.py' If you add a new default role, do not forget to add it to the migration file.
62598f01d8ef3951e32c734d
class OpenAnchors(enum.Enum): <NEW_LINE> <INDENT> Never = "Never" <NEW_LINE> Always = "Always" <NEW_LINE> OnShift = "OnShift"
Interactions with individual anchors
62598f0167a9b606de5449c0
class CreateManyOrganizationsResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None)
A ResultSet with methods tailored to the values returned by the CreateManyOrganizations Choreo. The ResultSet object is used to retrieve the results of a Choreo execution.
62598f0155399d3f05624f1c
class EmailAuthBackend(object): <NEW_LINE> <INDENT> def authenticate(self, username=None, password=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> user=User.objects.get(email=username) <NEW_LINE> if user.check_password(password): <NEW_LINE> <INDENT> return user <NEW_LINE> <DEDENT> <DEDENT> except User.DoesNotExist:...
Uwierzytelnienie użytkownika na podstawie adresu e-mail.
62598f0197e22403b38398dc
class wordlists_misc: <NEW_LINE> <INDENT> location = "/data/wordlists-misc/common-http-ports.txt" <NEW_LINE> common_http_ports = file_read(location) <NEW_LINE> location = "/data/wordlists-misc/us_cities.txt" <NEW_LINE> us_cities = file_read(location) <NEW_LINE> location = "/data/wordlists-misc/wordlist-alphanumeric-cas...
This implements the wordlists-misc payloads from fuzzdb
62598f01a219f33f346c5224
class Usage(base.Resource): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return "<ComputeUsage>"
Usage contains infomartion about a tenants physical resource usage
62598f01fbf16365ca792a90
class MultiWindowDisplay(RemoteDisplay): <NEW_LINE> <INDENT> def __init__(self, title_varies = 1, **args): <NEW_LINE> <INDENT> self.deep_construct(MultiWindowDisplay, {'title_varies': title_varies}, args) <NEW_LINE> <DEDENT> def single_display(self, window, title): <NEW_LINE> <INDENT> return 0 <NEW_LINE> <DEDENT> def v...
implements RemoteDisplay(KnownTargetModule) for a remote display with each remote windows having its own local window **INSTANCE ATTRIBUTES** *BOOL* title_varies -- can the title of the window be changed? **CLASS ATTRIBUTES** *none*
62598f01fff4ab517ebcc1c9
class PLogDispatcher(PDispatcher): <NEW_LINE> <INDENT> def __init__(self, process, channel, fd): <NEW_LINE> <INDENT> super(PLogDispatcher, self).__init__(process, channel, fd) <NEW_LINE> self.logs = [] <NEW_LINE> <DEDENT> def _reopen_logs(self, *logs): <NEW_LINE> <INDENT> for log in logs: <NEW_LINE> <INDENT> for handle...
Common interface for logs
62598f01656771135c488081
class Qt3DInputConfiguration(object): <NEW_LINE> <INDENT> name = 'Qt3DInput' <NEW_LINE> no_exceptions = True <NEW_LINE> pep484_stub_file = 'Qt3DInput' <NEW_LINE> @staticmethod <NEW_LINE> def get_sip_file(target_configuration): <NEW_LINE> <INDENT> return 'sip/Qt3DInput/Qt3DInputmod.sip' <NEW_LINE> <DEDENT> @staticmethod...
This class encapsulates the module specific information.
62598f01ec188e330fdf72a5
class Tags(ParticleFilter, ParticleFilterTags): <NEW_LINE> <INDENT> def __init__(self, tags): <NEW_LINE> <INDENT> ParticleFilter.__init__(self) <NEW_LINE> self._tags = np.ascontiguousarray(np.unique(tags), dtype=np.uint32) <NEW_LINE> ParticleFilterTags.__init__(self, tags) <NEW_LINE> <DEDENT> def __hash__(self): <NEW_L...
Select particles by tag. Args: tags (list[int]): List of particle tags to select. A particle tag is a unique identifier assigned to each particle in the simulation state. When the state is first initialized, it assigns tags 0 through `N_particles` to the particles in the order provided. Base: `ParticleFilter`
62598f01099cdd3c636748d2
class PerFieldAnalyzerTestCase(PyLuceneTestCase): <NEW_LINE> <INDENT> def testPerField(self): <NEW_LINE> <INDENT> perField = HashMap() <NEW_LINE> perField.put("special", SimpleAnalyzer()) <NEW_LINE> analyzer = PerFieldAnalyzerWrapper(WhitespaceAnalyzer(), perField) <NEW_LINE> text = "Qwerty" <NEW_LINE> tokenStream = an...
Unit tests ported from Java Lucene
62598f015fcc89381b265626
class Vector3(object): <NEW_LINE> <INDENT> __slots__=['x', 'y', 'z'] <NEW_LINE> def __init__(self, x=0, y=0, z=0): <NEW_LINE> <INDENT> self.x=x <NEW_LINE> self.y=y <NEW_LINE> self.z=z <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "<%f %.32f %f>" % (self.x, self.y, self.z) <NEW_LINE> <DEDENT> def __e...
3D coordinate for vertex position, normal direction
62598f01796e427e5384d193
class TestLDAPUserAttributeRead(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 testLDAPUserAttributeRead(self): <NEW_LINE> <INDENT> pass
LDAPUserAttributeRead unit test stubs
62598f015fdd1c0f98e5c99d
class UserDevicesViewBaseTestCase(ViewsTestMixin, TestCase): <NEW_LINE> <INDENT> view_class = DevicesTestView <NEW_LINE> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.user = UserFactory.create() <NEW_LINE> cls.devices = [DeviceFactory.create(user=cls.user) for _ in range(3)] <NEW_LINE> cls.cred =...
Test case for `views.UserDevicesViewBase`.
62598f01cc40096d616196d5
class TwythonDeprecationWarning(DeprecationWarning): <NEW_LINE> <INDENT> pass
Custom DeprecationWarning to be raised when methods/variables are being deprecated in Twython. Python 2.7 > ignores DeprecationWarning so we want to specifcally bubble up ONLY Twython Deprecation Warnings
62598f01d8ef3951e32c734e
class EnemyState_IDLE(EnemyState): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def enter(enemy): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def update(enemy, dt): <NEW_LINE> <INDENT> enemy.idle_time += dt <NEW_LINE> if enemy.idle_time >= enemy.idle_wait_time: <NEW_LINE> <INDENT> enemy.new_st...
Initial state for the enemy: - Wait for idle_wait time - Transition to PATROL
62598f0155399d3f05624f1e
class UnicodeString(ValuePacket): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def from_stream(cls, stream, offset=None, decoder=None): <NEW_LINE> <INDENT> if offset is not None: <NEW_LINE> <INDENT> stream.seek(offset, SEEK_SET) <NEW_LINE> <DEDENT> count = uint32_le.from_buffer_copy(stream.read(4)).value <NEW_LINE> size...
Represents a UnicodeString structure (packet).
62598f0163b5f9789fe83b58
class Advertisement(object): <NEW_LINE> <INDENT> AD = namedtuple("AD", ['ad_type', 'data']) <NEW_LINE> class ad_types: <NEW_LINE> <INDENT> flags = 0x01 <NEW_LINE> complete_local_name = 0x09 <NEW_LINE> service_data = 0x16 <NEW_LINE> manufacturer_specific_data = 0xff <NEW_LINE> <DEDENT> def __init__(self, data): <NEW_LIN...
Advertisement data record parser >>> ad = Advertisement([2, 1, 0x6, 6, 255, 82, 83, 95, 82, 48]) >>> for data in ad: ... data AD(ad_type=1, data=bytearray(b'\x06')) AD(ad_type=255, data=bytearray(b'RS_R0')) >>> list(ad)[0].ad_type == Advertisement.ad_types.flags True
62598f01a8370b77170eedd6
class ChargeBalanceFilter(AbstractStructureFilter): <NEW_LINE> <INDENT> def test(self, structure): <NEW_LINE> <INDENT> if structure.charge == 0.0: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> <DEDENT> def as_dict(self): <NEW_LINE> <INDENT> return {"@modu...
This filter removes structures that are not charge balanced from the transmuter. This only works if the structure is oxidation state decorated, as structures with only elemental sites are automatically assumed to have net charge of 0.
62598f013d592f4c4edb98e7
class FSMovieScannerContext(object): <NEW_LINE> <INDENT> def __init__(self, path, movies, movie_extensions=list()): <NEW_LINE> <INDENT> self.path = path <NEW_LINE> self.movies = movies <NEW_LINE> self.movie_extensions = movie_extensions <NEW_LINE> print(repr(self.movie_extensions))
Context for passing arguments to the thread objects
62598f019f288636728171ee
class Solution2: <NEW_LINE> <INDENT> def maxPathSum2(self, root): <NEW_LINE> <INDENT> q = deque([(root, root.val)]) <NEW_LINE> ans = float('-inf') <NEW_LINE> while q: <NEW_LINE> <INDENT> cur = q.popleft() <NEW_LINE> if cur[1] > ans: <NEW_LINE> <INDENT> ans = cur[1] <NEW_LINE> <DEDENT> if cur[0].left: <NEW_LINE> <INDENT...
@param root: the root of binary tree. @return: An integer
62598f017c178a314d78be95
class Matcher(object): <NEW_LINE> <INDENT> class MatchSubject(enum.IntEnum): <NEW_LINE> <INDENT> JOB_NAME = filter_pb2.JOB_NAME <NEW_LINE> SHOW = filter_pb2.SHOW <NEW_LINE> SHOT = filter_pb2.SHOT <NEW_LINE> USER = filter_pb2.USER <NEW_LINE> SERVICE_NAME = filter_pb2.SERVICE_NAME <NEW_LINE> PRIORITY = filter_pb2.PRIORIT...
This class contains the grpc implementation related to a Matcher.
62598f01377c676e912f6261
class Mapper(vrt.VRT): <NEW_LINE> <INDENT> def __init__(self, fileName, gdalDataset, gdalMetadata, minQual=4, **kwargs): <NEW_LINE> <INDENT> if not 'AVHRR_Pathfinder-PFV5.2' in fileName: <NEW_LINE> <INDENT> raise WrongMapperError <NEW_LINE> <DEDENT> subDatasets = gdalDataset.GetSubDatasets() <NEW_LINE> metaDict = [] <N...
Mapper PATHFINDER (local files) TODO: * remote files
62598f015fdd1c0f98e5c99e