code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class RabbitMQProcessorBase(Processor): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._publisher = None <NEW_LINE> <DEDENT> def configure(self, config): <NEW_LINE> <INDENT> logger.info("Configuring RabbitMQStoryProcessor") <NEW_LINE> if self._publisher is not None: ...
Base class for processor that use RabbitMQ
6259905e3eb6a72ae038bcc4
class JourneyCreationForm2(forms.Form): <NEW_LINE> <INDENT> journey_name = forms.CharField(required=True) <NEW_LINE> travel_date = forms.DateTimeField(required=True) <NEW_LINE> cotravel_number = forms.IntegerField() <NEW_LINE> layout = Layout(Fieldset("Provide the journey information here", "journey_name", Row("travel_...
Foem to take other journey related information from the user
6259905e07f4c71912bb0aa1
class Article(models.Model): <NEW_LINE> <INDENT> author = models.ForeignKey(User,on_delete=models.CASCADE) <NEW_LINE> avatar = models.ImageField(upload_to='article/%Y%m%d/', blank=True) <NEW_LINE> title = models.CharField(max_length=20, blank=True) <NEW_LINE> category = models.ForeignKey(ArticleCategory, null=True, bla...
作者 标题图 标题 分类 标签 摘要信息 文章正文 浏览量 评论量 文章的创建时间 文章的修改时间
6259905e7cff6e4e811b70a9
class CategoryDeleteView(DeleteView): <NEW_LINE> <INDENT> model = Category <NEW_LINE> template_name = 'shop/category_delete.html' <NEW_LINE> success_url = reverse_lazy('shop:category_list')
Category Delete View
6259905e4428ac0f6e659ba2
class LinearityModel(model_base.DataModel): <NEW_LINE> <INDENT> schema_url = "linearity.schema.yaml" <NEW_LINE> def __init__(self, init=None, coeffs=None, dq=None, dq_def=None, **kwargs): <NEW_LINE> <INDENT> super(LinearityModel, self).__init__(init=init, **kwargs) <NEW_LINE> if coeffs is not None: <NEW_LINE> <INDENT> ...
A data model for linearity correction information. Parameters ---------- init : any Any of the initializers supported by `~jwst_lib.models.DataModel`. coeffs : numpy array Coefficients defining the nonlinearity function. dq : numpy array The data quality array. dq_def : numpy array The data quality ...
6259905e8a43f66fc4bf37f3
class MyTCPSocketHandler(socketserver.BaseRequestHandler): <NEW_LINE> <INDENT> def handle(self): <NEW_LINE> <INDENT> self.data = self.request.recv(1024).strip() <NEW_LINE> print("{} wrote:".format(self.client_address[0])) <NEW_LINE> print(self.data.decode()) <NEW_LINE> self.request.sendall("Nix")
The RequestHandler class for our server. It is instantiated once per connection to the server, and must override the handle() method to implement communication to the client.
6259905e1f5feb6acb16424e
class Solution(object): <NEW_LINE> <INDENT> def minMeetingRooms(self, intervals): <NEW_LINE> <INDENT> Start = 0 <NEW_LINE> End = 1 <NEW_LINE> helper = list() <NEW_LINE> max_rooms = 0 <NEW_LINE> if not intervals or len(intervals) == 0: <NEW_LINE> <INDENT> return max_rooms <NEW_LINE> <DEDENT> for interval in intervals: <...
@param intervals: an array of meeting time intervals @return: the minimum number of conference rooms required
6259905e76e4537e8c3f0bf1
class CommandPlus(QtWidgets.QWidget): <NEW_LINE> <INDENT> def __init__(self, controller, parent): <NEW_LINE> <INDENT> super(CommandPlus, self).__init__() <NEW_LINE> self.controller = controller <NEW_LINE> self.parent = parent <NEW_LINE> self.build_ui() <NEW_LINE> <DEDENT> def build_ui(self): <NEW_LINE> <INDENT> self.cr...
Button to create a new command when clicking it. This button is always located as last item at the very right of the scripts table. Clicking it opens the RegisterCommand view.
6259905e21a7993f00c675d2
class NwsViewer(TethysAppBase): <NEW_LINE> <INDENT> name = 'Nws Viewer' <NEW_LINE> index = 'nws_viewer:home' <NEW_LINE> icon = 'nws_viewer/images/icon.gif' <NEW_LINE> package = 'nws_viewer' <NEW_LINE> root_url = 'nws-viewer' <NEW_LINE> color = '#e67e22' <NEW_LINE> def url_maps(self): <NEW_LINE> <INDENT> UrlMap = url_ma...
Tethys app class for Nws Viewer.
6259905ed486a94d0ba2d62d
class RoutingServiceBusQueueEndpointProperties(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'name': {'required': True, 'pattern': r'^[A-Za-z0-9-._]{1,64}$'}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'connection_string': {'key': 'connectionString', 'type': 'str'}, 'endpoint...
The properties related to service bus queue endpoint types. All required parameters must be populated in order to send to Azure. :ivar id: Id of the service bus queue endpoint. :vartype id: str :ivar connection_string: The connection string of the service bus queue endpoint. :vartype connection_string: str :ivar endp...
6259905e462c4b4f79dbd06a
class QplotlyWidgetPermission(BasePermission): <NEW_LINE> <INDENT> def has_permission(self, request, view): <NEW_LINE> <INDENT> if request.user.is_superuser: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> try: <NEW_LINE> <INDENT> if request.method in ('POST'): <NEW_LINE> <INDENT> if 'layer' in request.POST: <NEW_L...
API permission for Qplotly urls Allows access only to users have permission change_project on project
6259905e2c8b7c6e89bd4e54
class customer: <NEW_LINE> <INDENT> def __init__(self, idnum, lname, fname, phone): <NEW_LINE> <INDENT> self._cust_id = vFunc.valid_id_check(idnum) <NEW_LINE> self._last_name = vFunc.valid_name_check(lname) <NEW_LINE> self._first_name = vFunc.valid_name_check(fname) <NEW_LINE> self._phone_num = vFunc.valid_phone_check(...
customer class constructor
6259905ef548e778e596cbee
class SecurityGroupServerRpcCallback(n_rpc.RpcCallback): <NEW_LINE> <INDENT> RPC_API_VERSION = '1.2' <NEW_LINE> @property <NEW_LINE> def plugin(self): <NEW_LINE> <INDENT> return manager.NeutronManager.get_plugin() <NEW_LINE> <DEDENT> def _get_devices_info(self, devices): <NEW_LINE> <INDENT> return dict( (port['id'], po...
Callback for SecurityGroup agent RPC in plugin implementations.
6259905e4e4d562566373a6c
class _ExceptionLoggingContext(object): <NEW_LINE> <INDENT> def __init__(self, logger): <NEW_LINE> <INDENT> self.logger = logger <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def __exit__(self, typ, value, tb): <NEW_LINE> <INDENT> if value is not None: <NEW_LINE> <INDENT> self.lo...
Used with the ``with`` statement when calling delegate methods to log any exceptions with the given logger. Any exceptions caught are converted to _QuietException
6259905e21bff66bcd7242ca
class ShiftedKernel(Kernel, ShiftedFunction): <NEW_LINE> <INDENT> def _compute(self, x, y): <NEW_LINE> <INDENT> shifts1, shifts2 = expand(self.shifts) <NEW_LINE> return B.subtract(x, shifts1), B.subtract(y, shifts2) <NEW_LINE> <DEDENT> @property <NEW_LINE> def _stationary(self): <NEW_LINE> <INDENT> if len(self.shifts) ...
Shifted kernel.
6259905ed6c5a102081e3788
class HyperionComponentSwitch(SwitchEntity): <NEW_LINE> <INDENT> _attr_entity_category = EntityCategory.CONFIG <NEW_LINE> def __init__( self, server_id: str, instance_num: int, instance_name: str, component_name: str, hyperion_client: client.HyperionClient, ) -> None: <NEW_LINE> <INDENT> self._unique_id = _component_to...
ComponentBinarySwitch switch class.
6259905e38b623060ffaa382
class GetProjectsInputSet(InputSet): <NEW_LINE> <INDENT> def set_AccountName(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'AccountName', value) <NEW_LINE> <DEDENT> def set_Password(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'Password', value) <NEW_LINE> <DEDENT> def set_Username(self, va...
An InputSet with methods appropriate for specifying the inputs to the GetProjects Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
6259905e3d592f4c4edbc541
class VolumeOpsTestCase(test_base.HyperVBaseTestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(VolumeOpsTestCase, self).setUp() <NEW_LINE> self._volumeops = volumeops.VolumeOps() <NEW_LINE> <DEDENT> def test_get_volume_driver_exception(self): <NEW_LINE> <INDENT> fake_conn_info = {'driver_volume_t...
Unit tests for VolumeOps class.
6259905edd821e528d6da4b3
class Task(dict): <NEW_LINE> <INDENT> def __init__(self, info, parent_list=None, subtasks=None, *args): <NEW_LINE> <INDENT> self.parent_list = parent_list <NEW_LINE> self.info = info <NEW_LINE> if subtasks: <NEW_LINE> <INDENT> self.subtasks = subtasks <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.subtasks = [] <NE...
Object representing a single task in Wunderlist.
6259905e4f88993c371f1051
class Action(Enum): <NEW_LINE> <INDENT> buy = 1 <NEW_LINE> sell = -1
Direction of a trade (buy or sell)
6259905e4e4d562566373a6d
class Buses(list): <NEW_LINE> <INDENT> def __init__(self, buses): <NEW_LINE> <INDENT> self._buses = None <NEW_LINE> self.buses = buses <NEW_LINE> super().__init__(self.buses) <NEW_LINE> <DEDENT> @property <NEW_LINE> def buses(self): <NEW_LINE> <INDENT> return self._buses <NEW_LINE> <DEDENT> @buses.setter <NEW_LINE> def...
List of active buses
6259905ea8370b77170f1a34
class WindowsCrashDumpSpace64BitMap(crash.WindowsCrashDumpSpace32): <NEW_LINE> <INDENT> order = 29 <NEW_LINE> dumpsig = 'PAGEDU64' <NEW_LINE> headertype = "_DMP_HEADER64" <NEW_LINE> headerpages = 0x13 <NEW_LINE> bitmaphdroffset = 0x2000 <NEW_LINE> def __init__(self, base, config, **kwargs): <NEW_LINE> <INDENT> self.as_...
This AS supports Windows BitMap Crash Dump format
6259905e3539df3088ecd902
class NivelComplejidadRiesgoForm(ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = NivelComplejidadRiesgo <NEW_LINE> fields = '__all__' <NEW_LINE> widgets = { 'nivel_complejidad_riesgo': TextInput(attrs={'required': 'required', 'tabindex':'1'}), 'factor_inicial': NumberInput(attrs={'required': 're...
Docstring documentación pendiente
6259905e2ae34c7f260ac74d
class PromptForm(ModelForm): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Prompt <NEW_LINE> <DEDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.owner = kwargs.pop('owner') if kwargs.has_key('owner') else None <NEW_LINE> super(PromptForm, self).__init__(*args, **kwargs) <NEW_LINE> <DEDE...
Provides the form for the prompt object
6259905ebaa26c4b54d50909
class chdir(object): <NEW_LINE> <INDENT> def __init__(self, path): <NEW_LINE> <INDENT> self.original_dir = os.getcwd() <NEW_LINE> self.path = path <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> os.makedirs(self.path) <NEW_LINE> <DEDENT> except (OSError, IOError) as e: <NEW_LINE> <...
Executes the body of a "with chdir(dir)" block in the given directory. Warning: NOT THREAD SAFE
6259905e07f4c71912bb0aa3
class PPL(namedtuple("Library", "base_path config_dir config_file_type config_file_name")): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> _base_path = kwargs.get(key="base_path", default=os.path.dirname(os.path.abspath((inspect.stack()[0])[1]))) <NEW_LINE> self._base_path = _base_path if _base_p...
Pegasus-ICT Python Library
6259905e91f36d47f22319c2
class Wordlist(object): <NEW_LINE> <INDENT> def __init__(self, worddict): <NEW_LINE> <INDENT> self.worddict = worddict <NEW_LINE> self._sorted_words = None <NEW_LINE> <DEDENT> @lazy_property <NEW_LINE> def sorted_words(self): <NEW_LINE> <INDENT> return sorted(self.worddict.keys(), key=lambda word: (-self.worddict[word]...
A list mapping words to frequencies, loaded from a .txt file on disk, and cached so that it's loaded at most once.
6259905e4428ac0f6e659ba4
class StringResponseHandler(ResponseHandler): <NEW_LINE> <INDENT> test_key_suffix = 'strings' <NEW_LINE> test_key_value = [] <NEW_LINE> def action(self, test, expected, value=None): <NEW_LINE> <INDENT> expected = test.replace_template(expected) <NEW_LINE> test.assertIn(expected, test.output)
Test for matching strings in the the response body.
6259905e7d847024c075da39
class account_statement_from_invoice_lines(osv.osv_memory): <NEW_LINE> <INDENT> _name = "account.statement.from.invoice.lines" <NEW_LINE> _description = "Entries by Statement from Invoices" <NEW_LINE> _columns = { 'line_ids': fields.many2many('account.move.line', 'account_move_line_relation', 'move_id', 'line_id', 'Inv...
Generate Entries by Statement from Invoices
6259905e498bea3a75a59131
class ProductionConfig(Config): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(ProductionConfig, self).__init__() <NEW_LINE> self.ENV = 'prod' <NEW_LINE> self.DEBUG = False <NEW_LINE> self.log_level = logging.ERROR
prod config
6259905e0a50d4780f7068f2
class PayloadGenerator(object): <NEW_LINE> <INDENT> def __init__(self, coordinator): <NEW_LINE> <INDENT> self.coordinator = coordinator <NEW_LINE> self._lorem_ipsum = '' <NEW_LINE> <DEDENT> def _load_lorem(self): <NEW_LINE> <INDENT> if self._lorem_ipsum != '': <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> with open('l...
This class is responsible for generating random payloads of different types and sizes.
6259905e21bff66bcd7242cc
class SwaggerCoreTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def test_backward_compatible_v1_2(self): <NEW_LINE> <INDENT> self.assertEqual(pyswagger.SwaggerAuth, pyswagger.SwaggerSecurity) <NEW_LINE> self.assertEqual(pyswagger.SwaggerApp._create_, pyswagger.SwaggerApp.create) <NEW_LINE> <DEDENT> @httpretty.activat...
test core part
6259905ed6c5a102081e378a
class Author_info(models.Model): <NEW_LINE> <INDENT> addr = models.CharField(max_length=32) <NEW_LINE> tel = models.IntegerField() <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.addr
作者详情信息 结构表
6259905e38b623060ffaa383
class BadResponse(dns.exception.FormError): <NEW_LINE> <INDENT> pass
Raised if a query response does not respond to the question asked.
6259905ecb5e8a47e493ccb9
class DmbjItem(scrapy.Item): <NEW_LINE> <INDENT> section_name = scrapy.Field() <NEW_LINE> section_description = scrapy.Field() <NEW_LINE> chapter_name = scrapy.Field() <NEW_LINE> chapter_num = scrapy.Field() <NEW_LINE> chapter_text = scrapy.Field() <NEW_LINE> chapter_date = scrapy.Field()
section_name:分段名称
6259905e3539df3088ecd903
class LocalsDictExecHandle(LocalsDictHandleBase): <NEW_LINE> <INDENT> __slots__ = ("closure_variables",) <NEW_LINE> def __init__(self, locals_name, owner): <NEW_LINE> <INDENT> LocalsDictHandleBase.__init__(self, locals_name=locals_name, owner=owner) <NEW_LINE> self.closure_variables = None <NEW_LINE> <DEDENT> @staticme...
Locals dict of a Python2 function with an exec.
6259905ea8ecb0332587287f
class SecurityGroupNetworkInterface(Model): <NEW_LINE> <INDENT> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'security_rule_associations': {'key': 'securityRuleAssociations', 'type': 'SecurityRuleAssociations'}, } <NEW_LINE> def __init__(self, id=None, security_rule_associations=None): <NEW_LINE> <INDENT> sel...
Network interface and all its associated security rules. :param id: ID of the network interface. :type id: str :param security_rule_associations: :type security_rule_associations: ~azure.mgmt.network.v2017_11_01.models.SecurityRuleAssociations
6259905e16aa5153ce401b45
class Asset(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=255) <NEW_LINE> type = models.CharField(max_length=1, choices=STAT_TYPE_CHOICES) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.name
Asset to be tracked.
6259905efff4ab517ebcee8d
class Keyword(Token): <NEW_LINE> <INDENT> def __new__(cls, matchString, identChars=None, caseless=None): <NEW_LINE> <INDENT> if len(matchString) == 0: <NEW_LINE> <INDENT> Log.error("Expecting more than one character in keyword") <NEW_LINE> <DEDENT> if caseless: <NEW_LINE> <INDENT> return object.__new__(CaselessKeyword)...
Token to exactly match a specified string as a keyword, that is, it must be immediately followed by a non-keyword character. Compare with :class:`Literal`: - ``Literal("if")`` will match the leading ``'if'`` in ``'ifAndOnlyIf'``. - ``Keyword("if")`` will not; it will only match the leading ``'if'`` in ``'if x...
6259905eadb09d7d5dc0bbd2
class MinimaxAgent(MultiAgentSearchAgent): <NEW_LINE> <INDENT> def getAction(self, gameState): <NEW_LINE> <INDENT> bestAction = self.maxAgent(gameState, 0) <NEW_LINE> return bestAction <NEW_LINE> <DEDENT> def maxAgent(self, gameState, depth): <NEW_LINE> <INDENT> if gameState.isLose() or gameState.isWin(): <NEW_LINE> <I...
Your minimax agent (question 2)
6259905e2ae34c7f260ac74f
class FundRaiserSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> owner = UserPreviewSerializer(read_only=True) <NEW_LINE> project = serializers.SlugRelatedField(source='project', slug_field='slug') <NEW_LINE> image = ImageSerializerExt() <NEW_LINE> amount = EuroField() <NEW_LINE> amount_donated = EuroField(...
Serializer to view/create fundraisers
6259905e7d43ff2487427f44
class CoercionExactRealsNumberField(Morphism): <NEW_LINE> <INDENT> def _call_(self, x): <NEW_LINE> <INDENT> return self.codomain().base_ring()(x) * self.codomain().rational(1)
Coercion morphism from a number field to the exact reals over that number field. EXAMPLES:: sage: from pyexactreal import ExactReals sage: R = ExactReals(QQ) sage: R.coerce_map_from(QQ) Generic morphism: From: Rational Field To: Real Numbers as (Rational Field)-Module
6259905e3c8af77a43b68a75
class pricesuggest: <NEW_LINE> <INDENT> def readData(self): <NEW_LINE> <INDENT> with open("algorithmstored") as stored_algorithm: <NEW_LINE> <INDENT> stored_algorithm = json.load(stored_algorithm) <NEW_LINE> print(stored_algorithm) <NEW_LINE> <DEDENT> <DEDENT> def primaryPrice(self): <NEW_LINE> <INDENT> pass <NEW_LINE>...
ok so over here im just going to suggest the variables and try to classify them Primary variable(variabels which affect each other): -square feet -amount of rooms -amount of bathrooms Secondary Variables(variables whose effect is constent): -Pool -Location -age(not sure about this one) Now ...
6259905e3617ad0b5ee077b5
class MyAssistant: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self._task = threading.Thread(target=self._run_task) <NEW_LINE> self._can_start_conversation = False <NEW_LINE> self._assistant = None <NEW_LINE> self._board = Board() <NEW_LINE> self._board.button.when_pressed = self._on_button_pressed <NEW...
An assistant that runs in the background. The Google Assistant Library event loop blocks the running thread entirely. To support the button trigger, we need to run the event loop in a separate thread. Otherwise, the on_button_pressed() method will never get a chance to be invoked.
6259905e76e4537e8c3f0bf5
class ValueSet_IncludeSchema: <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get_schema( max_nesting_depth: Optional[int] = 6, nesting_depth: int = 0, nesting_list: List[str] = [], max_recursion_limit: Optional[int] = 2, include_extension: Optional[bool] = False, extension_fields: Optional[List[str]] = [ "valueBoolea...
A value set specifies a set of codes drawn from one or more code systems.
6259905ebe8e80087fbc06ee
class ModifyMode(AuditMode): <NEW_LINE> <INDENT> def __init__(self, glob_dic, logger): <NEW_LINE> <INDENT> AuditMode.__init__(self, glob_dic, logger) <NEW_LINE> if self.dev == 'dev_lun': <NEW_LINE> <INDENT> self.only_mode = True <NEW_LINE> <DEDENT> if self.select: <NEW_LINE> <INDENT> self.flag_mode = True <NEW_LINE> se...
Remove Mode class
6259905ed268445f2663a691
class Sentence: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.entities = [] <NEW_LINE> self.lastToken = None <NEW_LINE> self.raw = "" <NEW_LINE> self.rawCorrected = "" <NEW_LINE> <DEDENT> def addToken(self, token, emphasised, initial=None, alternative=None): <NEW_LINE> <INDENT> emphasis = "true" if e...
Representation of a tokenised sentence (with time stamps).
6259905e21bff66bcd7242ce
class ConfigFile(object): <NEW_LINE> <INDENT> def __init__(self, config_file, ids=None): <NEW_LINE> <INDENT> self.ids = ids or [] <NEW_LINE> self.config = {} <NEW_LINE> if isinstance(config_file, basestring): <NEW_LINE> <INDENT> with open(config_file, 'r') as f: <NEW_LINE> <INDENT> self.load_from_file(f) <NEW_LINE> <DE...
A configuration file
6259905ed6c5a102081e378c
class TestCategories(base.BaseTestCase): <NEW_LINE> <INDENT> PATH = '/api/listings/categories' <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> responses.start() <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> responses.stop() <NEW_LINE> responses.reset() <NEW_LINE> <DEDENT> def test_listing_types(self): <NE...
Listing categories test case.
6259905ea219f33f346c7e6f
@final <NEW_LINE> class MultipleIfsInComprehensionViolation(ASTViolation): <NEW_LINE> <INDENT> error_template = 'Found list comprehension with multiple `if`s' <NEW_LINE> code = 307
Forbid multiple ``if`` statements inside list comprehensions. Reasoning: It is very hard to read multiple ``if`` statements inside a list comprehension. Since it is even hard to tell all of them should pass or fail. Solution: Use a single ``if`` statement inside list comprehensions. Use ``filter()...
6259905e8e71fb1e983bd134
class Meta(object): <NEW_LINE> <INDENT> model = OrganizationElection <NEW_LINE> fields = ['email_wrapper']
Meta options for form
6259905e435de62698e9d46f
class RecRel: <NEW_LINE> <INDENT> def __init__(self, a, b, k, p, fmt): <NEW_LINE> <INDENT> self.a = a <NEW_LINE> self.b = b <NEW_LINE> self.k = k <NEW_LINE> self.p = p <NEW_LINE> self.format = fmt <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> if self.format == 1: <NEW_LINE> <INDENT> return "T(n) = {} T(n/{...
a structure storing the final results of recurrence relation
6259905ea17c0f6771d5d6d8
class EDL21Entity(Entity): <NEW_LINE> <INDENT> def __init__(self, obis, name, telegram): <NEW_LINE> <INDENT> self._obis = obis <NEW_LINE> self._name = name <NEW_LINE> self._telegram = telegram <NEW_LINE> self._min_time = MIN_TIME_BETWEEN_UPDATES <NEW_LINE> self._last_update = utcnow() <NEW_LINE> self._state_attrs = { "...
Entity reading values from EDL21 telegram.
6259905e1f037a2d8b9e53a0
class WorkshopListForm(forms.Form): <NEW_LINE> <INDENT> state = forms.ModelMultipleChoiceField( label="State", required=False, queryset='') <NEW_LINE> level = forms.MultipleChoiceField( label="Level", required=False, choices=WorkshopLevel.CHOICES) <NEW_LINE> section = forms.ModelMultipleChoiceField( label="Section", re...
Form to filter workshop list
6259905e45492302aabfdb43
class Lzma(Codec): <NEW_LINE> <INDENT> def compress(self, stream): <NEW_LINE> <INDENT> if lzma is None: <NEW_LINE> <INDENT> return Codec.compress(self, stream) <NEW_LINE> <DEDENT> return BytesIO(lzma.compress(stream.read())) <NEW_LINE> <DEDENT> def decompress(self, stream): <NEW_LINE> <INDENT> if lzma is None: <NEW_LIN...
Implementation of :class:`.Codec` for lzma compression.
6259905e8e71fb1e983bd135
class TLSPlugin(Plugin): <NEW_LINE> <INDENT> type = "tls" <NEW_LINE> def session(self, server_application): <NEW_LINE> <INDENT> raise NotImplementedError
This is the base class from which all supported tls session providers will inherit from.
6259905ed7e4931a7ef3d6b9
class MacroAction(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.initialized = False <NEW_LINE> self.num_actions = 0 <NEW_LINE> self.actions = [] <NEW_LINE> self.parameters = [] <NEW_LINE> self.flat_parameters = [] <NEW_LINE> self.count = 0 <NEW_LINE> self.type = 'dbmp' <NEW_LINE> self.evalua...
A macro with all its properties.
6259905e97e22403b383c577
class LoopDevice(ndb.Model): <NEW_LINE> <INDENT> ctime = ndb.DateTimeProperty(auto_now_add=True) <NEW_LINE> api_secret = ndb.TextProperty() <NEW_LINE> raw_data = ndb.JsonProperty()
sha1(API secret) in hex is the id
6259905e0c0af96317c57894
class AppEngineAPI(api.API): <NEW_LINE> <INDENT> def __init__(self, base_url="api.eveonline.com", cache=None, api_key=None): <NEW_LINE> <INDENT> cache = cache or AppEngineCache() <NEW_LINE> super(AppEngineAPI, self).__init__(base_url=base_url, cache=cache, api_key=api_key) <NEW_LINE> <DEDENT> @ndb.tasklet <NEW_LINE> de...
Subclass of api.API that is compatible with Google Appengine.
6259905e435de62698e9d470
class ConfigurationSaleMethod(ModelSQL, ValueMixin): <NEW_LINE> <INDENT> __name__ = 'sale.configuration.sale_method' <NEW_LINE> sale_invoice_method = sale_invoice_method <NEW_LINE> get_sale_invoice_methods = get_sale_methods('invoice_method') <NEW_LINE> sale_shipment_method = sale_shipment_method <NEW_LINE> get_sale_sh...
Sale Configuration Sale Method
6259905e45492302aabfdb44
class LogGaussian: <NEW_LINE> <INDENT> def __call__(self, x: torch.Tensor, mu: torch.Tensor, var: torch.Tensor): <NEW_LINE> <INDENT> assert (var >= 0).all(), "variance < 0 !" <NEW_LINE> logli = -0.5 * (var.mul(2*np.pi) + 1e-6).log() - (x-mu).pow(2).div(var.mul(2.0) + 1e-6) <NEW_LINE> if (logli >= 0).any(): <...
Calculate the negative log likelihood of normal distribution. Treat Q(c|x) as a factored Gaussian. Custom loss for Q network.
6259905e7047854f46340a27
class DatabaseClient(object): <NEW_LINE> <INDENT> executable_name = None <NEW_LINE> def __init__(self, connection): <NEW_LINE> <INDENT> self.connection = connection <NEW_LINE> <DEDENT> def runshell(self): <NEW_LINE> <INDENT> raise NotImplementedError('subclasses of BaseDatabaseClient must provide a runshell() method')
This class encapsulates all backend-specific methods for opening a client shell.
6259905e498bea3a75a59133
class singleton_decorator(object): <NEW_LINE> <INDENT> def __init__(self, class_): <NEW_LINE> <INDENT> self.class_ = class_ <NEW_LINE> self.instance = None <NEW_LINE> <DEDENT> def __call__(self, *a, **ad): <NEW_LINE> <INDENT> if self.instance == None: <NEW_LINE> <INDENT> self.instance = self.class_(*a, **ad) <NEW_LINE>...
Singleton pattern decorator. There will be only one instance of the decorated class. Decorator always returns same instance.
6259905e76e4537e8c3f0bf7
class ReleaseRelationshipType (pyxb.binding.datatypes.string, pyxb.binding.basis.enumeration_mixin): <NEW_LINE> <INDENT> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'ReleaseRelationshipType') <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location('http://ddex.net/xml/20120214/ddex.xsd', 3646, 3) <NEW_LINE> _D...
A ddex:Type of relationship between two ddex:Releases.
6259905e0a50d4780f7068f4
class TaskAddOptions(Model): <NEW_LINE> <INDENT> _attribute_map = { 'timeout': {'key': '', 'type': 'int'}, 'client_request_id': {'key': '', 'type': 'str'}, 'return_client_request_id': {'key': '', 'type': 'bool'}, 'ocp_date': {'key': '', 'type': 'rfc-1123'}, } <NEW_LINE> def __init__(self, *, timeout: int=30, client_req...
Additional parameters for add operation. :param timeout: The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. Default value: 30 . :type timeout: int :param client_request_id: The caller-generated request identity, in the form of a GUID with no decoration such as c...
6259905e4f6381625f199fd8
class GlobalGrammarProcessor: <NEW_LINE> <INDENT> def __init__(self, *, properties: Dict[str, Any], project: project.Project) -> None: <NEW_LINE> <INDENT> self._project = project <NEW_LINE> self._build_package_grammar = properties.get('build-packages', []) <NEW_LINE> self.__build_packages = set() <NEW_LINE> <DEDENT> de...
Process global properties that support grammar. Build packages example: >>> import snapcraft >>> from snapcraft import repo >>> processor = GlobalGrammarProcessor( ... properties={'build-packages': [{'try': ['hello']}]}, ... project=snapcraft.project.Project()) >>> processor.get_build_packages() {'hello'}
6259905e462c4b4f79dbd070
class Material(Element): <NEW_LINE> <INDENT> def __init__( self, ): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._attribute_names = []
This element sets the attributes of the dummy material element of the defaults class. All material attributes are available here except: name, class.
6259905ebe8e80087fbc06f0
class FrameSource(BaseSource): <NEW_LINE> <INDENT> def __init__(self, resolution=None, resolution_units=None, *args, **kwargs): <NEW_LINE> <INDENT> if resolution is None: <NEW_LINE> <INDENT> resolution = 1 <NEW_LINE> <DEDENT> if resolution_units is None: <NEW_LINE> <INDENT> resolution_units = 'pix' <NEW_LINE> <DEDENT> ...
An ABC for the interface to read in images Images are N-D arrays of any type. All handlers are assumed to wrap a sequence of images, but may be length 1. The first pass will only have a single access function 'get_frame` which will return what ever the natural 'frame' is. More specific sub-classes should provide a ...
6259905e097d151d1a2c26d9
class Server(models.Model): <NEW_LINE> <INDENT> asset = models.OneToOneField('Asset') <NEW_LINE> sub_assset_type_choices = ( (0, '云主机'), (1, 'PC服务器'), (2, '刀片机'), (3, '小型机'), ) <NEW_LINE> created_by_choices = ( ('auto', 'Auto'), ('manual', 'Manual'), ) <NEW_LINE> sub_asset_type = models.SmallIntegerField(choices=sub_as...
服务器设备
6259905ecc0a2c111447c604
class PartialColumn2DKspaceGenerator(Column2DKspaceGenerator): <NEW_LINE> <INDENT> def __getitem__(self, it: int): <NEW_LINE> <INDENT> if it >= self._len: <NEW_LINE> <INDENT> raise IndexError <NEW_LINE> <DEDENT> idx = min(it, len(self.cols) - 1) <NEW_LINE> return self.kspace_mask(idx) <NEW_LINE> <DEDENT> def __next__(s...
k-space Generator yielding only the newly acquired line, to be used we classical FFT operator
6259905edd821e528d6da4b6
class ExternalActivity(Activity): <NEW_LINE> <INDENT> def __init__(self, timeout=None, heartbeat=None): <NEW_LINE> <INDENT> self.runner = runner.External(timeout=timeout, heartbeat=heartbeat) <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> return False
External activity One of the main advantages of SWF is the ability to write a workflow that has activities written in any languages. The external activity class allows to write the workflow in Garcon and benefit from some features (timeout calculation among other things, sending context data.)
6259905ecb5e8a47e493ccbb
class Binary(MathOp): <NEW_LINE> <INDENT> def __init__(self, tokens): <NEW_LINE> <INDENT> tokens = tokens[0] <NEW_LINE> if len(tokens)%2 == 1: <NEW_LINE> <INDENT> self.args = [("nop", tokens.pop(0))] <NEW_LINE> <DEDENT> else: self.args = [] <NEW_LINE> while tokens: <NEW_LINE> <INDENT> self.args.append( (tokens.pop(0), ...
Mathematical binary and unary operations (including nop). Parses tokens to be a list of elementary operations.
6259905e009cb60464d02ba2
class Client(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, thread_id, thread_name): <NEW_LINE> <INDENT> threading.Thread.__init__(self) <NEW_LINE> threading.thread_id = thread_id <NEW_LINE> threading.name = thread_name <NEW_LINE> self.port = int(Configure().read_config('client.conf', 'server', 'port')) <NEW...
客户端,主要将信息发送给服务器
6259905e1b99ca400229006c
@pytest.mark.draft <NEW_LINE> @pytest.mark.components <NEW_LINE> @pytest.allure.story('Distributions') <NEW_LINE> @pytest.allure.feature('POST') <NEW_LINE> class Test_PFE_Components(object): <NEW_LINE> <INDENT> @pytest.allure.link('https://jira.qumu.com/browse/TC-44621') <NEW_LINE> @pytest.mark.Distributions <NEW_LINE>...
PFE Distributions test cases.
6259905eadb09d7d5dc0bbd6
class Listdir(plugin.Plugin): <NEW_LINE> <INDENT> def validator(self): <NEW_LINE> <INDENT> from flexget import validator <NEW_LINE> root = validator.factory() <NEW_LINE> root.accept('path') <NEW_LINE> bundle = root.accept('list') <NEW_LINE> bundle.accept('path') <NEW_LINE> return root <NEW_LINE> <DEDENT> def on_task_in...
Uses local path content as an input. Example:: listdir: /storage/movies/
6259905e99cbb53fe683254c
class PublicUserApiTests(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.client = APIClient() <NEW_LINE> <DEDENT> def test_create_valid_user_success(self): <NEW_LINE> <INDENT> payload = { 'email': 'test@test.com', 'password': 'testpass', 'name': 'Test name' } <NEW_LINE> res = self.client.post(C...
Test the users API (public)
6259905e32920d7e50bc76b2
class AbstractItem(core_models.TimeStampedModel): <NEW_LINE> <INDENT> name = models.CharField(max_length=80) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> abstract = True <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return self.name
Absreact Item
6259905e2ae34c7f260ac752
class RequestedAuthnContext(RequestedAuthnContextType_): <NEW_LINE> <INDENT> c_tag = 'RequestedAuthnContext' <NEW_LINE> c_namespace = NAMESPACE <NEW_LINE> c_children = RequestedAuthnContextType_.c_children.copy() <NEW_LINE> c_attributes = RequestedAuthnContextType_.c_attributes.copy() <NEW_LINE> c_child_order = Request...
The urn:oasis:names:tc:SAML:2.0:protocol:RequestedAuthnContext element
6259905e45492302aabfdb45
class NetworkInterfaceAssociation(Model): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'security_rules': {'key': 'securityRules', 'type': '[SecurityRule]'}, } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(NetworkIn...
Network interface and its custom security rules. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: Network interface ID. :vartype id: str :param security_rules: Collection of custom security rules. :type security_rules: list[~azure.mgmt.network.v2016_12_01.models.Secur...
6259905e435de62698e9d472
class HGraph(): <NEW_LINE> <INDENT> def __init__(self, connections=None, directed=True): <NEW_LINE> <INDENT> self._graph = igraph.Graph(directed=True) <NEW_LINE> self._node2idx = {} <NEW_LINE> self._idx2node = {} <NEW_LINE> self._curr_idx = 0 <NEW_LINE> if connections: <NEW_LINE> <INDENT> self.add_connections(connectio...
Graph data structure, undirected by default.
6259905e63d6d428bbee3dbe
class Node: <NEW_LINE> <INDENT> def __init__(self, state, parent=None, action=None, path_cost=0): <NEW_LINE> <INDENT> self.state = state <NEW_LINE> self.parent = parent <NEW_LINE> self.action = action <NEW_LINE> if parent: <NEW_LINE> <INDENT> self.path_cost = parent.path_cost + path_cost <NEW_LINE> self.depth = parent....
AIMA: A node in a search tree. Contains a pointer to the parent (the node that this is a successor of) and to the actual state for this node. Note that if a state is arrived at by two paths, then there are two nodes with the same state. Also includes the action that got us to this state, and the total path_cost (also ...
6259905e3617ad0b5ee077b9
class BoundingBoxFittingParams(base_orm.BaseORM): <NEW_LINE> <INDENT> DB_FIELDS = OrderedDict( [ ("labels", dict), ("video", dict), ] )
Labeling algorithm parameters for bounding box fitting algorithm ORM: labels, video
6259905e63b5f9789fe867df
class InvalidCredentials(HTTPException): <NEW_LINE> <INDENT> description = 'the provided credentials are not valid!' <NEW_LINE> code = 401
Implementation of InvalidCredentials exception. This exception is raised when the credentials specified by user are invalid
6259905e498bea3a75a59134
class LUVConfigParam(object): <NEW_LINE> <INDENT> def __init__(self,short_option, long_option, dest_varname, help_text): <NEW_LINE> <INDENT> self.short_option = short_option <NEW_LINE> self.long_option = long_option <NEW_LINE> self.dest_varname = dest_varname <NEW_LINE> self.help_text =help_text
create objects to all optional, destination and help arguments
6259905ed99f1b3c44d06d0f
class Item(PropDict): <NEW_LINE> <INDENT> VALID_KEYS = ITEM_KEYS | {'deleted', 'nlink', } <NEW_LINE> __slots__ = ("_dict", ) <NEW_LINE> path = PropDict._make_property('path', str, 'surrogate-escaped str', encode=safe_encode, decode=safe_decode) <NEW_LINE> source = PropDict._make_property('source', str, 'surrogate-escap...
Item abstraction that deals with validation and the low-level details internally: Items are created either from msgpack unpacker output, from another dict, from kwargs or built step-by-step by setting attributes. msgpack gives us a dict with bytes-typed keys, just give it to Item(d) and use item.key_name later. msgpa...
6259905e76e4537e8c3f0bf9
class BadSniffException(Exception): <NEW_LINE> <INDENT> pass
Raised when the csv sniffer fails to determine the dialect of a file
6259905e0a50d4780f7068f5
class Resample(AFNICommand): <NEW_LINE> <INDENT> _cmd = '3dresample' <NEW_LINE> input_spec = ResampleInputSpec <NEW_LINE> output_spec = AFNICommandOutputSpec
Resample or reorient an image using AFNI 3dresample command For complete details, see the `3dresample Documentation. <https://afni.nimh.nih.gov/pub/dist/doc/program_help/3dresample.html>`_ Examples ======== >>> from nipype.interfaces import afni >>> resample = afni.Resample() >>> resample.inputs.in_file = 'functiona...
6259905e56ac1b37e630381d
class HashTable(object): <NEW_LINE> <INDENT> EMPTY = None <NEW_LINE> DELETED = True <NEW_LINE> def __init__(self, capacity = 29, hashFunction = hash, linear = True): <NEW_LINE> <INDENT> self.table = Array(capacity, HashTable.EMPTY) <NEW_LINE> self.size = 0 <NEW_LINE> self.hash = hashFunction <NEW_LINE> self.homeIndex =...
Represents a hash table.
6259905ed53ae8145f919acf
class Train(object): <NEW_LINE> <INDENT> def __init__(self, options): <NEW_LINE> <INDENT> self._options = options <NEW_LINE> <DEDENT> def save_model(self, net): <NEW_LINE> <INDENT> net.save_parameters(os.path.join(self._options.check_path, 'best_perf_model')) <NEW_LINE> <DEDENT> def train(self, train_iter): <NEW_LINE> ...
Training engine for Lorenz architecture.
6259905e3539df3088ecd909
class MD_Connection_Net_Tcp_Request(MD_Connection): <NEW_LINE> <INDENT> def _open(self): <NEW_LINE> <INDENT> self.logger.debug(f'{self.__class__.__name__} opening connection as {__name__} with params {self._params}') <NEW_LINE> return True <NEW_LINE> <DEDENT> def _close(self): <NEW_LINE> <INDENT> self.logger.debug(f'{s...
Connection via TCP / HTTP requests This class implements TCP connections in the query-reply matter using the requests library, e.g. for HTTP communication. The data_dict['payload']-Data needs to be the full query URL. Additional parameter dicts can be added to be given to requests.request, as - request_method: get (d...
6259905e4f88993c371f1055
class ModifyParamTemplateRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.TemplateId = None <NEW_LINE> self.Name = None <NEW_LINE> self.Description = None <NEW_LINE> self.ParamList = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.TemplateId = pa...
ModifyParamTemplate请求参数结构体
6259905e56b00c62f0fb3f39
@attr.s(slots=True) <NEW_LINE> class TriggerInstance: <NEW_LINE> <INDENT> action: AutomationActionType = attr.ib() <NEW_LINE> automation_info: AutomationTriggerInfo = attr.ib() <NEW_LINE> trigger: Trigger = attr.ib() <NEW_LINE> remove: CALLBACK_TYPE | None = attr.ib(default=None) <NEW_LINE> async def async_attach_trigg...
Attached trigger settings.
6259905e55399d3f05627b8d
class TestPerformance(TestCase): <NEW_LINE> <INDENT> def test_init(self): <NEW_LINE> <INDENT> data = [1,4,5,6,7] <NEW_LINE> p = Performace(data) <NEW_LINE> self.assertEqual(p.data, data)
Test case for a Performance class
6259905e7b25080760ed8817
class OddRegressionModel(Model): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> Model.__init__(self) <NEW_LINE> self.get_data_and_monitor = backend.get_data_and_monitor_regression <NEW_LINE> self.learning_rate = .03 <NEW_LINE> self.W1, self.b1 = nn.Variable(1, 300), nn.Variable(300) <NEW_LINE> self.W2, sel...
TODO: Question 5 - [Application] OddRegression A neural network model for approximating a function that maps from real numbers to real numbers. Unlike RegressionModel, the OddRegressionModel must be structurally constrained to represent an odd function, i.e. it must always satisfy the property f(x) = -f(-x) at all po...
6259905e99cbb53fe683254f
class ArrangementValidator(BaseValidator): <NEW_LINE> <INDENT> def validate_put_fields(self): <NEW_LINE> <INDENT> self.validate_dates_are_ordered('start_dato', 'slutt_dato', 'Startdato må være før sluttdato') <NEW_LINE> self.validate_date_is_newer_than_year_1900('start_dato', 'Startdato kan ikke være før 1900') <NEW_LI...
Validator klasse for Arrangement
6259905e07f4c71912bb0aab
class ConceptSchemeSource(models.Model): <NEW_LINE> <INDENT> concept_scheme = models.ForeignKey( SkosConceptScheme, related_name="has_sources", verbose_name="skos:ConceptScheme", help_text="Which Skos:ConceptScheme current source belongs to", on_delete=models.CASCADE ) <NEW_LINE> name = models.TextField( verbose_name="...
A Class for ConceptScheme source information.
6259905e3cc13d1c6d466db0
class FirstVpcPublicNets(Resolver): <NEW_LINE> <INDENT> def resolve(self): <NEW_LINE> <INDENT> response = self.connection_manager.call( 'ec2', 'describe_vpcs' ) <NEW_LINE> vpc = response['Vpcs'][0]['VpcId'] <NEW_LINE> response = self.connection_manager.call( 'ec2', 'describe_subnets' ) <NEW_LINE> public_networks = [] <...
Implementing class for this resolver.
6259905e45492302aabfdb48
class mesh_classic: <NEW_LINE> <INDENT> def __init__(self, x, y, z, topcolor=(1,0,0), botcolor=(0,1,1)): <NEW_LINE> <INDENT> self.t = vp.faces(color=topcolor) <NEW_LINE> self.b = vp.faces(color=botcolor) <NEW_LINE> self.move(x, y, z) <NEW_LINE> <DEDENT> def corners(self, x, y, z): <NEW_LINE> <INDENT> p = np.dstack((x, ...
create a mesh surface, grid points are given by x[,],y[,],z[,] other input: top and bottom surface colors
6259905ed99f1b3c44d06d11
class Ladder(Lattice): <NEW_LINE> <INDENT> Lu = 2 <NEW_LINE> dim = 1 <NEW_LINE> def __init__(self, L, sites, **kwargs): <NEW_LINE> <INDENT> sites = _parse_sites(sites, 2) <NEW_LINE> basis = np.array([[1., 0.]]) <NEW_LINE> pos = np.array([[0., 0.], [0., 1.]]) <NEW_LINE> kwargs.setdefault('basis', basis) <NEW_LINE> kwarg...
A ladder coupling two chains. .. plot :: import matplotlib.pyplot as plt from tenpy.models import lattice plt.figure(figsize=(5, 1.4)) ax = plt.gca() lat = lattice.Ladder(4, None, bc='periodic') lat.plot_coupling(ax, linewidth=3.) lat.plot_order(ax, linestyle=':') lat.plot_sites(ax) ...
6259905e8e7ae83300eea6fc
class KDMBundle(object): <NEW_LINE> <INDENT> def __init__(self, catalog, kdms): <NEW_LINE> <INDENT> self.catalog = catalog <NEW_LINE> self.kdms = kdms <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_tarfile(cls, filepath): <NEW_LINE> <INDENT> tar = tarfile.open(filepath, 'r') <NEW_LINE> cat_member = tar.getmember(...
Manages SMPTE KDM bundles SMPTE Doc: S430-9-2008
6259905e56ac1b37e630381e