code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class TestStop: <NEW_LINE> <INDENT> particle_pcf_name = "test_ec2" <NEW_LINE> quasiparticle_pcf_name = "test_ecs_instance" <NEW_LINE> @patch.object(EC2Instance, "apply", return_value=None) <NEW_LINE> @pytest.mark.parametrize("config_file", ["pcf.json", "pcf.yml", "pcf.yaml"]) <NEW_LINE> def test_stop_from_default_confi...
Test 'pcf stop' command against a particle and a quasiparticle from files
62598f79507cdc57c63a46c6
class HashTableItemsTest(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.ht = HashTable(buckets=64) <NEW_LINE> <DEDENT> def test_simple_length_test(self): <NEW_LINE> <INDENT> self.assertEqual(len(self.ht), 0) <NEW_LINE> self.ht.update("boss") <NEW_LINE> self.assertEqual(len(self.ht), 3...
Functional tests for determining size (cardinality) of hashtable and iterations.
62598f791f037a2d8b9e3a27
class UserSerializerWithToken(serializers.ModelSerializer): <NEW_LINE> <INDENT> token = serializers.SerializerMethodField() <NEW_LINE> password = serializers.CharField(write_only=True) <NEW_LINE> def get_token(self, obj): <NEW_LINE> <INDENT> jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER <NEW_LINE> jwt_encode_h...
Used to store and return data when user signs up
62598f79a4f1c619b294df27
class Legacy(Command): <NEW_LINE> <INDENT> name = 'survey:legacy' <NEW_LINE> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(Legacy, self).get_parser(prog_name) <NEW_LINE> parser.add_argument("file", help="Survey file", action="store") <NEW_LINE> parser.add_argument("xml", help="Survey file xml", ac...
Compare with legacy xml
62598f797c178a314d78cde4
class AbstractType(Visitable): <NEW_LINE> <INDENT> pass
Base for all types - not needed except for backwards compatibility.
62598f799b70327d1c57e6ea
class distance_to_services(luigi.Task): <NEW_LINE> <INDENT> client = luigi.s3.S3Client() <NEW_LINE> year_month = luigi.Parameter() <NEW_LINE> pipeline_task = luigi.Parameter() <NEW_LINE> local_ingest_file = luigi.Parameter() <NEW_LINE> python_scripts = luigi.Parameter('DEFAULT') <NEW_LINE> local_path = luigi.Parameter(...
Task que descarga la distancia a servicios básicos de la base de Google. TODO(Definir keywords dinamicamente)
62598f79d10714528d69d80a
class find_fotop_img: <NEW_LINE> <INDENT> def __init__(self, url): <NEW_LINE> <INDENT> self.url = url <NEW_LINE> self.article_name = self.url.split('/')[4] <NEW_LINE> self.__soup = BeautifulSoup( requests.get(url, headers=header ).content.decode('BIG5-HKSCS', 'ignore')) <NEW_LINE> self.img_addr = [] <NEW_LINE> def get_...
例: http://www.fotop.net/joecww/joecww336
62598f79a4f1c619b294df28
class SearchResponseListTbDto(object): <NEW_LINE> <INDENT> swagger_types = { 'search_results': 'list[SearchResponseTbDto]' } <NEW_LINE> attribute_map = { 'search_results': 'searchResults' } <NEW_LINE> def __init__(self, search_results=None): <NEW_LINE> <INDENT> self._search_results = None <NEW_LINE> self.discriminator ...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f7973bcbd0ca4bc9b8b
class Production(OverallConfig): <NEW_LINE> <INDENT> DEBUG = False <NEW_LINE> TESTING = False <NEW_LINE> SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URL') <NEW_LINE> JWT_SECRET_KEY = os.getenv('JWT_SECRET_KEY')
pro env config
62598f7966656f66f7d59d2f
class UpcomingEventsMixin(object): <NEW_LINE> <INDENT> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> context = super(UpcomingEventsMixin, self).get_context_data(**kwargs) <NEW_LINE> context['upcoming_events'] = Event.visible_events.upcoming() <NEW_LINE> return context
Add upcoming events to the view
62598f7966673b3332c2fcff
class Grade(Education, object): <NEW_LINE> <INDENT> def __init__(self, name, teacher, course): <NEW_LINE> <INDENT> super(Grade, self).__init__(name) <NEW_LINE> self.teacher = teacher <NEW_LINE> self.course = course <NEW_LINE> self.students = [] <NEW_LINE> <DEDENT> def enroll(self, student): <NEW_LINE> <INDENT> self.stu...
班级
62598f798a43f66fc4bf1abb
class DriverNotAvailableError(Exception): <NEW_LINE> <INDENT> driver_name = None <NEW_LINE> driver_options = None <NEW_LINE> reason = None <NEW_LINE> def __init__(self, driver_name, driver_options=None, reason=None): <NEW_LINE> <INDENT> super(DriverNotAvailableError, self).__init__(driver_name) <NEW_LINE> self.driver_n...
Raised when a requested driver isn't available.
62598f7950485f2cf55da8ac
class ConfigurationError(ProviderError): <NEW_LINE> <INDENT> pass
Exception raised by providers when badly configured
62598f79a05bb46b3848a1ba
class NhentaiRandom: <NEW_LINE> <INDENT> data_format = "url" <NEW_LINE> @staticmethod <NEW_LINE> def prepare_url(args): <NEW_LINE> <INDENT> type(args) <NEW_LINE> return "http://nhentai.net/random/", {}, {} <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def get_image(data): <NEW_LINE> <INDENT> return data.find(id="highres...
Gets a random image from nhentai.
62598f7916aa5153ce3ffe3c
class Chassis100ChassisType(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { } <NEW_LINE> self.attribute_map = { } <NEW_LINE> <DEDENT> def to_dict(self): <NEW_LINE> <INDENT> result = {} <NEW_LINE> for attr, _ in iteritems(self.swagger_types): <NEW_LINE> <INDENT> value = getatt...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598f790383005118f6d03e
@reversion.register() <NEW_LINE> class RSOMembership(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = "Членство РСО" <NEW_LINE> verbose_name_plural = "Членство РСО" <NEW_LINE> <DEDENT> boec = models.ForeignKey( Boec, on_delete=models.RESTRICT, verbose_name=(_("Боец")), related_name="rso...
RSOMembership object
62598f798a349b6b43685b7f
class BitsEncoder(object): <NEW_LINE> <INDENT> def encode(self, value): <NEW_LINE> <INDENT> kassert.is_of_types(value, Bits) <NEW_LINE> return value
Base encoder class for Bits values The Bits encoders *encode* function receives a *Bits* object as an argument and returns an encoded *Bits* object. +-----------------------+----------------------------------------+------------------------+ | Singleton Name | Encoding | Class ...
62598f7994891a1f408b938e
class EntryMonth(EntryArchiveMixin, BaseMonthArchiveView): <NEW_LINE> <INDENT> template_name = 'zinnia/entry_list.html' <NEW_LINE> template_name_suffix = '_archive_month'
View returning the archives for a month.
62598f79ec188e330fdf81dd
class AggregationCrossSeriesReducerValueValuesEnum(_messages.Enum): <NEW_LINE> <INDENT> REDUCE_NONE = 0 <NEW_LINE> REDUCE_MEAN = 1 <NEW_LINE> REDUCE_MIN = 2 <NEW_LINE> REDUCE_MAX = 3 <NEW_LINE> REDUCE_SUM = 4 <NEW_LINE> REDUCE_STDDEV = 5 <NEW_LINE> REDUCE_COUNT = 6 <NEW_LINE> REDUCE_COUNT_TRUE = 7 <NEW_LINE> REDUCE_COU...
The approach to be used to combine time series. Not all reducer functions may be applied to all time series, depending on the metric type and the value type of the original time series. Reduction may change the metric type of value type of the time series.Time series data must be aligned in order to perform cross-time ...
62598f79a8ecb03325870b46
class HashTagBattle(models.Model): <NEW_LINE> <INDENT> name = models.CharField(unique=True, blank=False, max_length=100) <NEW_LINE> hash_tags = models.ManyToManyField(HashTag) <NEW_LINE> start_date_time = models.DateTimeField() <NEW_LINE> end_date_time = models.DateTimeField()
Store hash tag battles with a Many to Many relationship to tags we wish to include in the battle
62598f79507cdc57c63a46c8
class SoundEmitter(_object): <NEW_LINE> <INDENT> __swig_setmethods__ = {} <NEW_LINE> __setattr__ = lambda self, name, value: _swig_setattr(self, SoundEmitter, name, value) <NEW_LINE> __swig_getmethods__ = {} <NEW_LINE> __getattr__ = lambda self, name: _swig_getattr(self, SoundEmitter, name) <NEW_LINE> __repr__ = _swig_...
Proxy of C++ FIFE::SoundEmitter class
62598f790fa83653e46f482e
class Export_pc2(bpy.types.Operator, ExportHelper): <NEW_LINE> <INDENT> bl_idname = "export_shape.pc2" <NEW_LINE> bl_label = "Export Pointcache (.pc2)" <NEW_LINE> filename_ext = ".pc2" <NEW_LINE> rot_x90 = BoolProperty(name="Convert to Y-up", description="Rotate 90 degrees around X to convert to y-up", default=True) <N...
Exports the active Object as a .pc2 Pointcache file.
62598f797c178a314d78cde6
class Shape(): <NEW_LINE> <INDENT> def __init__(self, coords, color): <NEW_LINE> <INDENT> self.blocks = [] <NEW_LINE> self.rotation_dir = 1 <NEW_LINE> self.shift_rotation_dir = False <NEW_LINE> for pos in coords: <NEW_LINE> <INDENT> self.blocks.append(Block(pos, color)) <NEW_LINE> <DEDENT> <DEDENT> def get_blocks(self)...
Shape class: Base class for all the tetris shapes Attributes: blocks - type: list - the list of blocks making up the shape rotation_dir - type: int - the current rotation direction of the shape shift_rotation_dir - type: Boolean - whether or not the shape rotates
62598f7907d97122c42165e0
class CourseRecord(models.Model): <NEW_LINE> <INDENT> class_grade = models.ForeignKey('ClassList',verbose_name='上课班级',on_delete=models.CASCADE) <NEW_LINE> day_num = models.PositiveSmallIntegerField('课程节次',) <NEW_LINE> teacher = models.ForeignKey('UserProfile',verbose_name='讲师',on_delete=models.CASCADE) <NEW_LINE> title...
上课记录
62598f793eb6a72ae0389f80
class TwentyFortyEight: <NEW_LINE> <INDENT> def __init__(self, grid_height, grid_width): <NEW_LINE> <INDENT> self._height = grid_height <NEW_LINE> self._width = grid_width <NEW_LINE> self._cells = [] <NEW_LINE> self._initial = {UP: [(0, dummy_col) for dummy_col in range(self._width)], DOWN: [(self._height - 1, dummy_co...
Class to run the game logic.
62598f7976d4e153a661c554
class DownloadHandler(protocols.JSONBaseHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> page = self.get_argument('page', None) <NEW_LINE> if page: <NEW_LINE> <INDENT> self.write('准备开发') <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> ua = self.request.headers['user-agent'] <NEW_LINE> p = re.compile(...
下载接口
62598f7973bcbd0ca4bc9b8d
class CrustFrame(frame.Frame): <NEW_LINE> <INDENT> name = 'CrustFrame' <NEW_LINE> revision = __revision__ <NEW_LINE> def __init__(self, parent=None, id=-1, title='PyCrust', pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE, rootObject=None, rootLabel=None, rootIsNamespace=True, locals=None, Inte...
Frame containing all the PyCrust components.
62598f7966656f66f7d59d31
@deconstructible <NEW_LINE> class FileValidator(object): <NEW_LINE> <INDENT> extension_message = _("Extensão '%(extension)s' não é permitida. Os formatos permitidos são: '%(allowed_extensions)s.'") <NEW_LINE> mime_message = _("MIME type '%(mimetype)s' não é válido. Os tipos permitidos são: %(allowed_mimetypes)s.") <NEW...
Validator for files, checking the size, extension and mimetype. Initialization parameters: allowed_extensions: iterable with allowed file extensions ie. ('txt', 'doc') allowd_mimetypes: iterable with allowed mimetypes ie. ('image/png', ) min_size: minimum number of bytes allowed ie....
62598f7950485f2cf55da8af
class Field_body(_Field): <NEW_LINE> <INDENT> label = 'Body' <NEW_LINE> path = ['body']
Take a dict, assign to self.value the value in top-level body key.
62598f7923e79379d538be39
class FileHandler(object): <NEW_LINE> <INDENT> def handleFile(self, f): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def handleDone(self): <NEW_LINE> <INDENT> pass
A handler interface for :func:`eyed3.utils.walk` callbacks.
62598f7923e79379d538be3a
class NotInstalled(PloneSite): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUp(cls): <NEW_LINE> <INDENT> fiveconfigure.debug_mode = True <NEW_LINE> import quintagroup.pfg.captcha <NEW_LINE> zcml.load_config('configure.zcml', quintagroup.pfg.captcha) <NEW_LINE> fiveconfigure.debug_mode = False <NEW_LINE> ztc.insta...
Only package register, without installation into portal
62598f7996565a6dacd2cc1a
class GaussRule: <NEW_LINE> <INDENT> ErrorUnknownOrder = Exception('Unknown Gauss quadrature order') <NEW_LINE> ErrorInvalidDimension = Exception('Invalid dimension of Gauss quadrature') <NEW_LINE> def __init__(self, dim, order=1): <NEW_LINE> <INDENT> self.dim = dim <NEW_LINE> self.order = order <NEW_LINE> self.npts = ...
Class of the Gauss integration rule. The rule is applicable for a tensor product of intervals -1 <=x<= +1.
62598f79507cdc57c63a46ca
class DuplicateHistogramNode(MultiBAMInputNode): <NEW_LINE> <INDENT> def __init__(self, config, input_files, output_file, dependencies=()): <NEW_LINE> <INDENT> bam_input = MultiBAMInput(config, input_files) <NEW_LINE> duphist_command = factory.new("duphist") <NEW_LINE> duphist_command.add_value('%(TEMP_IN_BAM)s') <NEW_...
Node for calling the 'paleomix duphist' command. Takes 1 or more BAMs as imput, requiring a config object in order to run MergeSamFiles.jar to merge these files. The output is a histogram of PCR duplicate counts, usable as input for the 'preseq' tool.
62598f79d4950a0f3b110ad6
class TangentThicknessShader(ThicknessBlenderMixIn, CurveMappingModifier): <NEW_LINE> <INDENT> def __init__(self, thickness_position, thickness_ratio, blend, influence, mapping, invert, curve, thickness_min, thickness_max): <NEW_LINE> <INDENT> ThicknessBlenderMixIn.__init__(self, thickness_position, thickness_ratio) <N...
Thickness based on the direction of the stroke
62598f790fa83653e46f4830
@dependency.provider('role_api') <NEW_LINE> @dependency.requires('assignment_api') <NEW_LINE> class RoleManager(manager.Manager): <NEW_LINE> <INDENT> driver_namespace = 'keystone.role' <NEW_LINE> _ROLE = 'role' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> role_driver = CONF.role.driver <NEW_LINE> if role_driver i...
Default pivot point for the Role backend.
62598f798c3a8732951f5e8e
class SVMWrapper(BaseEstimator, RegressorMixin): <NEW_LINE> <INDENT> def __init__(self, kernel, estimator, **params): <NEW_LINE> <INDENT> self.estimator = estimator <NEW_LINE> self.estimator.kernel = "precomputed" <NEW_LINE> self.kernel = kernel <NEW_LINE> self.set_params(**params) <NEW_LINE> <DEDENT> def fit(self, X, ...
Wrapper for SVMs. WARNING: BROKEN...
62598f79d99f1b3c44d04fec
class CosineEmbeddingLoss(_Loss): <NEW_LINE> <INDENT> def __init__(self, margin=0, size_average=True, reduce=True): <NEW_LINE> <INDENT> super(CosineEmbeddingLoss, self).__init__(size_average) <NEW_LINE> self.margin = margin <NEW_LINE> self.reduce = reduce <NEW_LINE> <DEDENT> def forward(self, input1, input2, target): <...
Creates a criterion that measures the loss given an input tensors :math:`x_1`, :math:`x_2` and a `Tensor` label `y` with values 1 or -1. This is used for measuring whether two inputs are similar or dissimilar, using the cosine distance, and is typically used for learning nonlinear embeddings or semi-supervised learnin...
62598f7991af0d3eaad3974c
class PointStruct: <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> points = None <NEW_LINE> if self.name == 'CMRotationRate': <NEW_LINE> <INDENT> points = data.rotationRate(argtypes=[]) <NEW_LINE> <DEDENT> elif self.name == 'CMAcceleration': <NEW_LINE> <INDENT> points = data.acceleration(argtypes=[]) ...
Parser for objective c sensor struct. Saves x,y,z for sensor as well as t for the time
62598f79be8e80087fbbe9a1
class Curriculum(ndb.Model): <NEW_LINE> <INDENT> content_type = ndb.StringProperty(required = True) <NEW_LINE> content = ndb.JsonProperty(required=False)
the new curriculum flat curriculum model
62598f7915baa723494618c0
class WaitStatisticsResultList(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'value': {'readonly': True}, 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[WaitStatistic]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( ...
A list of wait statistics. Variables are only populated by the server, and will be ignored when sending a request. :ivar value: The list of wait statistics. :vartype value: list[~azure.mgmt.rdbms.mysql.models.WaitStatistic] :ivar next_link: Link to retrieve next page of results. :vartype next_link: str
62598f797b25080760ed6de1
class ClockAgent(AgentBase): <NEW_LINE> <INDENT> def __init__(self, sim: HdlSimulator, intf: "RtlSignal", period: int=CLK_PERIOD): <NEW_LINE> <INDENT> super(ClockAgent, self).__init__(sim, intf) <NEW_LINE> assert isinstance(period, int) <NEW_LINE> self.period = period <NEW_LINE> self.initWait = 0 <NEW_LINE> self.monito...
Simulation agent for :class:`hwt.interfaces.std.Clk` interface * In driver mode oscillates at frequency specified by period * In monitor driver captures tuples (time, nextVal) for each change on signal (nextVal is 1/0/None) :ivar ~.period: period of signal to generate :ivar ~.initWait: time to wait before starti...
62598f7973bcbd0ca4bc9b90
class Ship: <NEW_LINE> <INDENT> def __init__(self, ai_game): <NEW_LINE> <INDENT> self.screen = ai_game.screen <NEW_LINE> self.settings = ai_game.settings <NEW_LINE> self.screen_rect = ai_game.screen.get_rect() <NEW_LINE> self.image = pygame.image.load('images/ship.bmp') <NEW_LINE> self.rect = self.image.get_rect() <NEW...
A class to manage the ship.
62598f79bde94217f3707307
class WhircParseTask(ParseTask): <NEW_LINE> <INDENT> def getInfo(self, filename): <NEW_LINE> <INDENT> phuInfo, infoList = ParseTask.getInfo(self, filename) <NEW_LINE> basename = os.path.basename(filename) <NEW_LINE> while any(basename.endswith("." + ext) for ext in EXTENSIONS): <NEW_LINE> <INDENT> basename = basename[:...
Parser suitable for raw data
62598f790383005118f6d042
class GradientDescentReg(GradientDescent): <NEW_LINE> <INDENT> def __init__(self, w0: np.ndarray, lambda_: float, mu: float = mu_default, s0: float = s0_default, p: float = p_default): <NEW_LINE> <INDENT> super().__init__(w0=w0, lambda_=lambda_, s0=s0, p=p) <NEW_LINE> self.mu = mu <NEW_LINE> <DEDENT> def update_weights...
Full gradient descent with regularization class
62598f798a349b6b43685b83
class QuerySetSelectField(SelectFieldBase): <NEW_LINE> <INDENT> widget = widgets.Select() <NEW_LINE> def __init__(self, label=u'', validators=None, queryset=None, label_attr='', allow_blank=False, blank_text=u'---', **kwargs): <NEW_LINE> <INDENT> super(QuerySetSelectField, self).__init__(label, validators, **kwargs) <N...
Given a QuerySet either at initialization or inside a view, will display a select drop-down field of choices. The `data` property actually will store/keep an ORM model instance, not the ID. Submitting a choice which is not in the queryset will result in a validation error. Specifying `label_attr` in the constructor wi...
62598f79004d5f362081ec9b
class StudentUser(User): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = "Student"
User class for students.
62598f798da39b475be02b25
class ErrorHandler(RequestHandler): <NEW_LINE> <INDENT> def __init__(self, application, request, status_code): <NEW_LINE> <INDENT> super().__init__(application, request) <NEW_LINE> self.set_status(status_code) <NEW_LINE> <DEDENT> def prepare(self): <NEW_LINE> <INDENT> raise HTTPError(self._status_code)
Generates an error response with status_code for all requests.
62598f7994891a1f408b9390
class NoisyRandomProjection(ConditionalDistribution): <NEW_LINE> <INDENT> def __init__(self, Z, mu=None, std=None, **kwargs): <NEW_LINE> <INDENT> super(NoisyRandomProjection, self).__init__(Z=Z, mu=mu, std=std, **kwargs) <NEW_LINE> <DEDENT> def inputs(self): <NEW_LINE> <INDENT> return {"Z": unconstrained, "mu": uncons...
Projects an input matrix Z through a random linear projection W, sampled from W ~ N(0, 1), marginalizing out the projection. This is 'dual PCA' (ordinarily in PCA we marginalize out the inputs Z and solve for W).
62598f7915baa723494618c1
class StatefulServiceReplicaHealth(ReplicaHealth): <NEW_LINE> <INDENT> _validation = { 'ServiceKind': {'required': True}, } <NEW_LINE> _attribute_map = { 'aggregated_health_state': {'key': 'AggregatedHealthState', 'type': 'str'}, 'health_events': {'key': 'HealthEvents', 'type': '[HealthEvent]'}, 'unhealthy_evaluations'...
Represents the health of the stateful service replica. Contains the replica aggregated health state, the health events and the unhealthy evaluations. . :param aggregated_health_state: The HealthState representing the aggregated health state of the entity computed by Health Manager. The health evaluation of the entit...
62598f79d4950a0f3b110ad7
class StainNormalization: <NEW_LINE> <INDENT> def __init__(self, Io=240, beta=0.15, alpha=1): <NEW_LINE> <INDENT> self.Io = Io <NEW_LINE> self.beta = beta <NEW_LINE> self.alpha = alpha <NEW_LINE> <DEDENT> def preprocess(self, img): <NEW_LINE> <INDENT> HERef = np.array([[0.5626, 0.2159], [0.7201, 0.8012], [0.4062, 0.558...
Adopted and modified from "Classification of breast cancer histology images using Convolutional Neural Networks", Teresa Araújo , Guilherme Aresta, Eduardo Castro, José Rouco, Paulo Aguiar, Catarina Eloy, António Polónia, Aurélio Campilho. https://doi.org/10.1371/journal.pone.0177544 Performs staining normalization.
62598f79fb3f5b602db47e51
class ArcMarginModelLoss(nn.Module): <NEW_LINE> <INDENT> def __init__(self, margin_m, feature_scaler, easy_margin, focal_loss, gamma): <NEW_LINE> <INDENT> super(ArcMarginModelLoss, self).__init__() <NEW_LINE> self.easy_margin = easy_margin <NEW_LINE> self.m = margin_m <NEW_LINE> self.s = feature_scaler <NEW_LINE> self....
stealing implementation from https://github.com/foamliu/InsightFace-v2/blob/e7b6142875f3f6c65ce97dd1b2b58156c5f81a3d/models.py
62598f798c3a8732951f5e90
class ValidateError(Exception): <NEW_LINE> <INDENT> def __init__(self, msg): <NEW_LINE> <INDENT> self.msg = msg <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.msg
[验证测试用例失败] Args: Exception ([type]): [description]
62598f79d6c5a102081e1a88
class PaymentRequest3d: <NEW_LINE> <INDENT> def __init__(self, md, merchantAccount, paResponse, browserInfo, shopperIP): <NEW_LINE> <INDENT> self.md = md <NEW_LINE> self.merchantAccount = merchantAccount <NEW_LINE> self.paResponse = paResponse <NEW_LINE> self.browserInfo = browserInfo <NEW_LINE> self.shopperIP = shoppe...
Payment Request 3d
62598f7991af0d3eaad3974e
class TestCase(object): <NEW_LINE> <INDENT> def __init__(self, tcFileName): <NEW_LINE> <INDENT> self.tcFileName = tcFileName <NEW_LINE> self.rootStep = None <NEW_LINE> <DEDENT> def printout(self, node, prefix): <NEW_LINE> <INDENT> if node.nodeType != Node.ELEMENT_NODE: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> pri...
classdocs
62598f79d10714528d69d810
class InlineModelFormList(InlineFieldList): <NEW_LINE> <INDENT> form_field_type = InlineModelFormField <NEW_LINE> def __init__(self, form, session, model, prop, inline_view, **kwargs): <NEW_LINE> <INDENT> self.form = form <NEW_LINE> self.session = session <NEW_LINE> self.model = model <NEW_LINE> self.prop = prop <NEW_L...
Customized inline model form list field.
62598f79be8e80087fbbe9a3
class MyASTNGChecker(BaseChecker): <NEW_LINE> <INDENT> __implements__ = IASTNGChecker <NEW_LINE> name = 'custom' <NEW_LINE> msgs = {} <NEW_LINE> options = () <NEW_LINE> priority = -1 <NEW_LINE> def visit_callfunc(self, node): <NEW_LINE> <INDENT> if not (isinstance(node.func, astng.Getattr) and isinstance(node.func.expr...
add member attributes defined using my own "properties" function to the class locals dictionary
62598f7973bcbd0ca4bc9b92
class InvalidEntity(IntertwineException): <NEW_LINE> <INDENT> pass
'{variable}' value of {value!r} is not a valid {classname}.
62598f7966673b3332c2fd06
class TransactionInputTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.file_name = 'test_database' <NEW_LINE> self.path = os.path.join(default_data_directory(), self.file_name) <NEW_LINE> self.database = transaction.Database(file_name=self.file_name) <NEW_LINE> self.block_datab...
Tests the functionality for TransactionInput objects inside indeicoin.blockchain.transaction @TODO TESTS:
62598f7916aa5153ce3ffe41
class PirateBayLoaderCase(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self._mock_fetch() <NEW_LINE> self.loader = PirateBayLoader() <NEW_LINE> <DEDENT> def _mock_fetch(self): <NEW_LINE> <INDENT> self._orig_fetch = PirateBayLoader._fetch_html <NEW_LINE> PirateBayLoader._fetch_html = MagicMock( re...
Pirate bay loader case
62598f791d351010ab8f3483
class Options(object): <NEW_LINE> <INDENT> prebuilt_cef = False <NEW_LINE> build_cef = False <NEW_LINE> make_distrib = False <NEW_LINE> x86 = False <NEW_LINE> fast_build = False <NEW_LINE> force_chromium_update = False <NEW_LINE> no_cef_update = False <NEW_LINE> cef_branch = "" <NEW_LINE> cef_commit = "" <NEW_LINE> cef...
Options from command-line and internal options.
62598f7950485f2cf55da8b3
class Type(Selector): <NEW_LINE> <INDENT> def __init__(self, key, value=None): <NEW_LINE> <INDENT> self.key = key if isinstance(key, int) else getattr(tokens, key) <NEW_LINE> self.value = value <NEW_LINE> <DEDENT> def __call__(self, tree): <NEW_LINE> <INDENT> if tree.token is None: <NEW_LINE> <INDENT> pass <NEW_LINE> <...
Type(T) select any token of type T Similar to the type selector in CSS.
62598f798a349b6b43685b85
class SentenceFeatureGenerator(EdgeFeatureGenerator): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.token_feature_generator = TokenFeatureGenerator() <NEW_LINE> <DEDENT> def generate(self, dataset, feature_set, is_training_mode): <NEW_LINE> <INDENT> for edge in dataset.edges(): <NEW_LINE> <INDENT> se...
Generate features for each sentence containing an edge
62598f790383005118f6d045
class ByRefArg(object): <NEW_LINE> <INDENT> def __init__(self, atype): <NEW_LINE> <INDENT> self.atype = atype <NEW_LINE> <DEDENT> def from_param(self, param): <NEW_LINE> <INDENT> if isinstance(param, self.atype): <NEW_LINE> <INDENT> return byref(param) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return param
Just like a POINTER but accept an argument and pass it byref
62598f79004d5f362081ec9c
class Mgo: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._config = self._load_conf() <NEW_LINE> if self._config is not None and self._config['Enable'] is not False: <NEW_LINE> <INDENT> self.conn = self._connect() <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.conn = None <NEW_LINE> <DEDENT> <DEDE...
返回MongoDB的对象
62598f7930c21e258be9814a
class TaskViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Task.objects.all() <NEW_LINE> serializer_class = TaskSerializer <NEW_LINE> @detail_route() <NEW_LINE> def subtasks(self, request): <NEW_LINE> <INDENT> parent = self.get_object() <NEW_LINE> subtasks = parent.subtasks.all() <NEW_LINE> serializer = T...
API for the creation and management of user defined tasks or TODOs Provides an additional subtask route /<task_id>/subtasks Provides an additional way to mark all tasks and subtasks complete /<task_id>/all_done
62598f798e71fb1e983bb3f8
class IPRule(Model): <NEW_LINE> <INDENT> _validation = { 'ip_address_or_range': {'required': True}, } <NEW_LINE> _attribute_map = { 'ip_address_or_range': {'key': 'value', 'type': 'str'}, 'action': {'key': 'action', 'type': 'Action'}, } <NEW_LINE> def __init__(self, ip_address_or_range, action="Allow"): <NEW_LINE> <IND...
IP rule with specific IP or IP range in CIDR format. :param ip_address_or_range: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. :type ip_address_or_range: str :param action: The action of IP ACL rule. Possible values include: 'Allow'. Default value: "Allow" . :type action: str or ~azure.m...
62598f798da39b475be02b27
class TestRandomizationCleanup(TestLiveAPIC): <NEW_LINE> <INDENT> def test_verify_all_tenants_deleted(self): <NEW_LINE> <INDENT> session = self.login_to_apic() <NEW_LINE> tenants = Tenant.get(session) <NEW_LINE> for tenant in tenants: <NEW_LINE> <INDENT> self.assertFalse(tenant.name.startswith('acitoolkitrandomized-'))
Tests used in conjunction with randomized configurations
62598f7994891a1f408b9391
class mysqlsandbox: <NEW_LINE> <INDENT> def __init__(self, version, prefix, sbbasedir): <NEW_LINE> <INDENT> self.version = version <NEW_LINE> self.prefix = prefix <NEW_LINE> self.sbbasedir = sbbasedir <NEW_LINE> self.datafrom = 'script' <NEW_LINE> <DEDENT> def provision(self): <NEW_LINE> <INDENT> logging.debug('SB Prov...
Manage a single MySQL Sandbox
62598f79b830903b9686e114
class Category(models.Model): <NEW_LINE> <INDENT> name = models.TextField() <NEW_LINE> slug = models.TextField() <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> def get_absolute_url(self): <NEW_LINE> <INDENT> return reverse('forum-list', args=[self.slug, 1]) <NEW_LINE> <DEDENT...
Stores a post category.
62598f7938b623060ffa89dc
class MDL_OT_exporter(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "export_model.mdl" <NEW_LINE> bl_label = "Export AeonGames Model" <NEW_LINE> directory: bpy.props.StringProperty(subtype='DIR_PATH') <NEW_LINE> @classmethod <NEW_LINE> def poll(cls, context): <NEW_LINE> <INDENT> is_msh_enabled, is_msh_loaded = a...
Exports an armature to an AeonGames Model (MDL) file
62598f7923849d37ff850a00
class CatFileContentStream(object): <NEW_LINE> <INDENT> __slots__ = ('_stream', '_nbr', '_size') <NEW_LINE> def __init__(self, size, stream): <NEW_LINE> <INDENT> self._stream = stream <NEW_LINE> self._size = size <NEW_LINE> self._nbr = 0 <NEW_LINE> if size == 0: <NEW_LINE> <INDENT> stream.read(1) <NEW_LINE> <DEDENT> <D...
Object representing a sized read-only stream returning the contents of an object. It behaves like a stream, but counts the data read and simulates an empty stream once our sized content region is empty. If not all data is read to the end of the objects's lifetime, we read the rest to assure the underlying stream contin...
62598f79d4950a0f3b110ad8
class Package(BASE): <NEW_LINE> <INDENT> __tablename__ = 'packages' <NEW_LINE> pkgKey = sa.Column(sa.Integer, primary_key=True) <NEW_LINE> pkgId = sa.Column(sa.Text)
Maps the packages table in the primary.sqlite database from repodata to a python object.
62598f7930c21e258be9814b
class SensorResponseModes(GetSpotValue, CTypeValue): <NEW_LINE> <INDENT> _nParam = SpotCamConstant.SENSORRESPONSEMODES <NEW_LINE> _ctype = ctypes.c_ulong
The sensor response modes which supported by the camera.
62598f796e29344779afffa5
class IterProxy(object): <NEW_LINE> <INDENT> def __init__(self, it): <NEW_LINE> <INDENT> self._it = iter(it) <NEW_LINE> <DEDENT> def __next__(self): <NEW_LINE> <INDENT> return next(self.it) <NEW_LINE> <DEDENT> next = __next__ <NEW_LINE> def __iter__(self): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> @property <...
An proxy to another iterator to support swapping the underlying stream mid-iteration. Parameters ---------- it : iterable The iterable to proxy. Attributes ---------- it : iterable The iterable being proxied. This can be reassigned to change the underlying stream.
62598f7976d4e153a661c55a
class level( alarm ): <NEW_LINE> <INDENT> def __init__( self, *args, **kwargs ): <NEW_LINE> <INDENT> if args: <NEW_LINE> <INDENT> arg, args = args[0], args[1:] <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> arg = kwargs.pop( 'level', None ) <NEW_LINE> <DEDENT> super( level, self ).__init__( *args, **kwargs )...
Detect when a value passes various levels. Uses the filtered.level class to implement. Default severity multiplies the number of levels away from "normal" by 2; eg. normal==>0, lo==>2, hi-hi==>4.
62598f79d164cc61758208ba
class VIEW3D_OT_make_camera_active(Operator): <NEW_LINE> <INDENT> bl_idname = "atomblend.make_camera_active" <NEW_LINE> bl_label = "Make camera active" <NEW_LINE> @classmethod <NEW_LINE> def poll(cls, context): <NEW_LINE> <INDENT> area = context.area.type <NEW_LINE> obj = context.object <NEW_LINE> if obj is None: <NEW_...
Make currently selected camera active
62598f7966656f66f7d59d37
class ProgressPercentage(object): <NEW_LINE> <INDENT> def __init__(self, file_location, task_id): <NEW_LINE> <INDENT> self._file_size = get_file_size(file_location) <NEW_LINE> self._import_task_id = task_id <NEW_LINE> self._seen_so_far = 0 <NEW_LINE> self._lock = threading.Lock() <NEW_LINE> <DEDENT> def __call__(self, ...
Callable for progress monitoring of file transfers https://boto3.readthedocs.io/en/stable/_modules/boto3/s3/transfer.html
62598f7926068e7796d4c2a0
class TitleStringField(AutoConvertField): <NEW_LINE> <INDENT> def convert(self, value): <NEW_LINE> <INDENT> if value is None: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> if isinstance(value, string_types): <NEW_LINE> <INDENT> value = value.strip() <NEW_LINE> if value: <NEW_LINE> <INDENT> chunks = list() <NEW_LI...
Titlized string. **中文文档** 标题格式的字符串。 - 字符串 - 前后都没有空格 - 不得出现连续两个以上的空格 - 每个单词首字母大写, 其他字母小写
62598f79a05bb46b3848a1c2
class TestCreateAccountRequest(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 testCreateAccountRequest(self): <NEW_LINE> <INDENT> model = billforward.models.create_account_request.CreateAccountReq...
CreateAccountRequest unit test stubs
62598f7907d97122c42165e7
class SetPowerState(TestMixins.SetMixin, OptionalParameterTestFixture): <NEW_LINE> <INDENT> CATEGORY = TestCategory.CONTROL <NEW_LINE> PID = 'POWER_STATE' <NEW_LINE> REQUIRES = ['power_state'] <NEW_LINE> EXPECTED_FIELDS = ['power_state'] <NEW_LINE> def OldValue(self): <NEW_LINE> <INDENT> old = self.Property('power_stat...
Set the power state.
62598f79b5575c28eb712968
class AlgorithmFailureRunExit(RunExit): <NEW_LINE> <INDENT> @property <NEW_LINE> def state(self) -> str: <NEW_LINE> <INDENT> return 'failure' <NEW_LINE> <DEDENT> def deepcopy(self): <NEW_LINE> <INDENT> return AlgorithmFailureRunExit(self.reason)
Algorithm has failed
62598f790383005118f6d046
class StandardRobot(Robot): <NEW_LINE> <INDENT> def updatePositionAndClean(self): <NEW_LINE> <INDENT> if Robot.isPositionInRoom == False: <NEW_LINE> <INDENT> self.direction = self.direction + 180 <NEW_LINE> <DEDENT> if Robot.isTileCleaned(self.position) == True: <NEW_LINE> <INDENT> self.position = Robot.getRobotDirecti...
A StandardRobot is a Robot with the standard movement strategy. At each time-step, a StandardRobot attempts to move in its current direction; when it hits a wall, it chooses a new direction randomly.
62598f790383005118f6d047
class _TableRowProxy(object): <NEW_LINE> <INDENT> def __setitem__(self,i,v): <NEW_LINE> <INDENT> if type(i) == str: <NEW_LINE> <INDENT> i = self.getColumnIndex(i) <NEW_LINE> <DEDENT> w = self[i] <NEW_LINE> super(self.__class__,self).__setitem__(i,v) <NEW_LINE> self.tab.emitter.emit(PYSIGNAL("cellChanged"),(self.num,i,s...
self.num is a row index in the table
62598f79004d5f362081ec9d
class BaseTestCase(unittest.TestCase): <NEW_LINE> <INDENT> __metaclass__ = MetaParameterized <NEW_LINE> __app_registry__ = None <NEW_LINE> longMessage = True <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> unittest.TestCase.__init__(self, *args, **kwargs) <NEW_LINE> self.funq = None <NEW_LINE> <DEDE...
Abstract class of a testcase for Funq. It defines a common behaviour to name tests methods and uses the metaclass :class:`MetaParameterized` that allows to generate methods from data. It inherits from :class:`unittest.TestCase`, thus allowing to use very useful methods like assertEquals, assertFalse, etc.
62598f794e696a045264daa2
class TestEditOrgOption(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 testEditOrgOption(self): <NEW_LINE> <INDENT> pass
EditOrgOption unit test stubs
62598f79ac7a0e7691f71e5e
class DevelopmentPhase(Resource): <NEW_LINE> <INDENT> endpoint = 'development_phases' <NEW_LINE> def listings(self, params=None): <NEW_LINE> <INDENT> if params is None: <NEW_LINE> <INDENT> params = {} <NEW_LINE> <DEDENT> url = self._data.get('listing_url', None) <NEW_LINE> if url is None: <NEW_LINE> <INDENT> return <NE...
'Development Phase' entity resource class.
62598f7982261d6c5272fb76
class _Char: <NEW_LINE> <INDENT> def __init__(self, char): <NEW_LINE> <INDENT> self.char = char <NEW_LINE> <DEDENT> def __getitem__(self, i): <NEW_LINE> <INDENT> return self.char * i <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return str(self.char) <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDE...
Helper class for single-character strings.
62598f79507cdc57c63a46d0
class FilterTypeUtil: <NEW_LINE> <INDENT> _filter_type_cache: Dict[str, Optional[FilterType]] = {} <NEW_LINE> def determine_filter_type( self, rfid_tag: Optional[str], product_id: Optional[str] ) -> Optional[FilterType]: <NEW_LINE> <INDENT> if rfid_tag is None: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> if rfi...
Utility class for determining xiaomi air filter type.
62598f791f037a2d8b9e3a31
class RemoveWorkflowOfCollectionBlock(UpgradeStep): <NEW_LINE> <INDENT> def __call__(self): <NEW_LINE> <INDENT> self.install_upgrade_profile() <NEW_LINE> map( update_security_for, self.objects( {'portal_type': 'ftw.collection.CollectionBlock'}, 'Reset security of collection block objects.' ) )
Remove workflow of collection block.
62598f79d4950a0f3b110ad9
class PayInExecutionDetailsWeb (PayInExecutionDetails): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.RedirectURL = None <NEW_LINE> self.ReturnURL = None <NEW_LINE> self.TemplateURL = None <NEW_LINE> self.TemplateURLOptions = None <NEW_LINE> self.Culture = '' <NEW_LINE> self.SecureMode = None <NEW_LI...
Class represents Web type for execution option in PayIn entity.
62598f79d99f1b3c44d04ff2
class Movie (): <NEW_LINE> <INDENT> def __init__(self, movie_title, movie_storyline, post_image, trailer_Youtube): <NEW_LINE> <INDENT> self.title = movie_title <NEW_LINE> self.storyline = movie_storyline <NEW_LINE> self.poster_image_url = post_image <NEW_LINE> self.trailer_youtube_url = trailer_Youtube
Class describing attributes an behavior of a Person. Note: Do not include the `self` parameter in the ``Args`` section. Args: movie_title (str): title of the movie. movie_storyline (str): storyline of the movie post_image (str): image URL trailer_Youtube (str): Youtube URL Attributes: title (...
62598f794d74a7450cd58b79
class TestLineGenerator(unittest.TestCase): <NEW_LINE> <INDENT> def test_constructor(self): <NEW_LINE> <INDENT> lg = LineGenerator() <NEW_LINE> self.assertEqual(lg.start_point, Point(0, 0, 0)) <NEW_LINE> self.assertEqual(lg.end_point, Point(0, 0, 1)) <NEW_LINE> self.assertEqual(lg.particle_spacing, 0.05) <NEW_LINE> sel...
Tests for the LineGenerator class.
62598f79d6c5a102081e1a8c
class UploadCommand(Command): <NEW_LINE> <INDENT> description = 'Build and publish the package.' <NEW_LINE> user_options = [] <NEW_LINE> @staticmethod <NEW_LINE> def status(s): <NEW_LINE> <INDENT> print('\033[1m{0}\033[0m'.format(s)) <NEW_LINE> <DEDENT> def initialize_options(self): <NEW_LINE> <INDENT> pass <NEW_LINE> ...
Support setup.py upload.
62598f79b57a9660fecd13c4
class CropView(QGraphicsView): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> <DEDENT> def resources(self,crop_type): <NEW_LINE> <INDENT> seed = QPixmap(":/{0}_seed.png".format(crop_type)) <NEW_LINE> seedling = QPixmap(":/{0}_seedling.png".format(crop_type)) <NEW_LINE> young =...
This Class provides a graphics view that contains the resources for displaying crop status visually
62598f79d10714528d69d813
class TestExtractLinks(unittest.TestCase): <NEW_LINE> <INDENT> def test_empty(self): <NEW_LINE> <INDENT> self.assertEqual(_extract_links(""), []) <NEW_LINE> <DEDENT> def test_no_link(self): <NEW_LINE> <INDENT> self.assertEqual(_extract_links("string"), []) <NEW_LINE> <DEDENT> def test_one_link(self): <NEW_LINE> <INDENT...
Test that we correctly extract the links, for backreference
62598f7991af0d3eaad39752
class EventSource(object): <NEW_LINE> <INDENT> name = '' <NEW_LINE> stoppable = False <NEW_LINE> _as_daemon = True <NEW_LINE> _stopflag = False <NEW_LINE> _running = False <NEW_LINE> def run(o, putevent_func): <NEW_LINE> <INDENT> raise NotImplementedError('override me') <NEW_LINE> while not o._stopflag: <NEW_LINE> <IND...
base class for event sources. * run provides the core wait code and must be overriden. * use start_thread(putevent_func) to start the source in a new thread. * the source will run as daemon if forced shutdown can be tolerated. * putevent_func must take name as first and data as second argument * name = stri...
62598f793eb6a72ae0389f88
class TestInlineResponse20054(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 testInlineResponse20054(self): <NEW_LINE> <INDENT> pass
InlineResponse20054 unit test stubs
62598f79f7d966606f74792f
class MessageForm(forms.Form): <NEW_LINE> <INDENT> subject = forms.CharField(max_length=100) <NEW_LINE> message = forms.CharField(widget=forms.Textarea)
Form to send messages to the people watching the project
62598f7926068e7796d4c2a2
class NamedIdentifier(DomainItem): <NEW_LINE> <INDENT> __swig_setmethods__ = {} <NEW_LINE> for _s in [DomainItem]: <NEW_LINE> <INDENT> __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) <NEW_LINE> <DEDENT> __setattr__ = lambda self, name, value: _swig_setattr(self, NamedIdentifier, name, value) <NEW_LIN...
Proxy of C++ pythonapi::NamedIdentifier class.
62598f798a43f66fc4bf1ac5
class TestGitImporter(_TestImporter[GitImporter]): <NEW_LINE> <INDENT> @property <NEW_LINE> def importer(self) -> ImporterType: <NEW_LINE> <INDENT> if self._importer is None: <NEW_LINE> <INDENT> self._importer = GitImporter() <NEW_LINE> <DEDENT> return self._importer <NEW_LINE> <DEDENT> def test_load(self): <NEW_LINE> ...
Tests for `GitImporter`.
62598f79bde94217f370730a