code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class wavelet_squash_ff_sptr(object): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def __init__(self, *args): <NEW_LINE> <INDENT> this = _wavelet_swig.new_wavelet_squash_ff_sptr(*args) <NEW_LINE> t...
Proxy of C++ boost::shared_ptr<(wavelet_squash_ff)> class
6259903a1f5feb6acb163dc0
class QOMCommand: <NEW_LINE> <INDENT> name: str <NEW_LINE> help: str <NEW_LINE> def __init__(self, args: argparse.Namespace): <NEW_LINE> <INDENT> if args.socket is None: <NEW_LINE> <INDENT> raise QMPError("No QMP socket path or address given") <NEW_LINE> <DEDENT> self.qmp = QEMUMonitorProtocol( QEMUMonitorProtocol.pars...
Represents a QOM sub-command. :param args: Parsed arguments, as returned from parser.parse_args.
6259903a07d97122c4217e6b
class Configuration(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.config = self.load() <NEW_LINE> <DEDENT> def _get(self, key_components): <NEW_LINE> <INDENT> value = self.config <NEW_LINE> for k in key_components: <NEW_LINE> <INDENT> value = value[k] <NEW_LINE> <DEDENT> return value <NEW_LI...
Loads a yaml configuration file.
6259903acad5886f8bdc5963
class openrave_exception(Exception): <NEW_LINE> <INDENT> def __init__( self, app_error ): <NEW_LINE> <INDENT> Exception.__init__( self ) <NEW_LINE> self._pimpl = app_error <NEW_LINE> <DEDENT> def __str__( self ): <NEW_LINE> <INDENT> return str(self._pimpl) <NEW_LINE> <DEDENT> def __unicode__( self ): <NEW_LINE> <INDENT...
wrap up the C++ openrave_exception
6259903a8e05c05ec3f6f742
class SecondClass(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.enabled = False <NEW_LINE> self.logger = logging.getLogger(__name__) <NEW_LINE> <DEDENT> def enable_system(self): <NEW_LINE> <INDENT> self.enabled = True <NEW_LINE> self.logger.warning('Enabling system.') <NEW_LINE> self.logger....
This class causes log entries for "system".
6259903ad164cc6175822143
class WeirdNumber: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> raise ChallengeNotAttempted
================================ Python OOP challenge level 0b010 ================================ Once upon the time, there was a weird number. Nobody knew what it was, but it existed. Some weird people called it infinity, although nobody knew what that word meant either. It seemed to be able to defy the rules of all...
6259903ad99f1b3c44d06874
class DbRefreshThread(Thread): <NEW_LINE> <INDENT> def __init__(self, settings, plugins, graph, refresh_interval, *args, **kwargs): <NEW_LINE> <INDENT> self.settings = settings <NEW_LINE> self.plugins = plugins <NEW_LINE> self.graph = graph <NEW_LINE> self.refresh_interval = refresh_interval <NEW_LINE> self.logger = lo...
Background thread for refreshing the in-memory cache of the graph.
6259903a73bcbd0ca4bcb458
@urls.register <NEW_LINE> class Extensions(generic.View): <NEW_LINE> <INDENT> url_regex = r'nova/extensions/$' <NEW_LINE> @rest_utils.ajax() <NEW_LINE> def get(self, request): <NEW_LINE> <INDENT> result = api.nova.list_extensions(request) <NEW_LINE> return {'items': [e.to_dict() for e in result]}
API for nova extensions.
6259903a8da39b475be043bd
class ImportName(ImportStmt): <NEW_LINE> <INDENT> pass
import_name: 'import' dotted_as_names
6259903ab57a9660fecd2c4a
class documentStatusType (pyxb.binding.datatypes.token, pyxb.binding.basis.enumeration_mixin): <NEW_LINE> <INDENT> _ExpandedName = pyxb.namespace.ExpandedName(Namespace, 'documentStatusType') <NEW_LINE> _XSDLocation = pyxb.utils.utility.Location('http://www.ech.ch/xmlns/eCH-0039/2/eCH-0039-2-0.xsd', 131, 1) <NEW_LINE> ...
Status: Zustand des Dokuments in Bezug auf Veränderbarkeit und Gültigkeit.
6259903a07d97122c4217e6c
class EnumToMapTestCase(PyrseasTestCase): <NEW_LINE> <INDENT> def test_enum(self): <NEW_LINE> <INDENT> self.db.execute_commit(DROP_STMT) <NEW_LINE> expmap = {'labels': ['red', 'green', 'blue']} <NEW_LINE> dbmap = self.db.execute_and_map(CREATE_ENUM_STMT) <NEW_LINE> self.assertEqual(dbmap['schema public']['type t1'], ex...
Test mapping of created enum types
6259903a15baa7234946316a
class Alarms(Cluster): <NEW_LINE> <INDENT> cluster_id = 0x0009 <NEW_LINE> ep_attribute = "alarms" <NEW_LINE> attributes = { 0x0000: ("alarm_count", t.uint16_t) } <NEW_LINE> server_commands = { 0x0000: ("reset", (t.uint8_t, t.uint16_t), False), 0x0001: ("reset_all", (), False), 0x0002: ("get_alarm", (), False), 0x0003: ...
Attributes and commands for sending notifications and configuring alarm functionality.
6259903a3c8af77a43b68823
class Context: <NEW_LINE> <INDENT> def __init__( self, hauto: 'Hautomate', event: str, *, event_data: Dict, target: 'Intent', when: pendulum.DateTime, parent: Union['Intent', 'Hautomate'] ): <NEW_LINE> <INDENT> self._id = next(_context_id) <NEW_LINE> self._hauto = hauto <NEW_LINE> self.event = event <NEW_LINE> self.eve...
Execution context under which an Intent is fired. Contexts hold a lot of relevant information as to why a specific intent was triggered.
6259903a596a897236128e6e
class BatchLoadRetryLimitReached(DynamoError): <NEW_LINE> <INDENT> pass
Retry limit hit when trying to batch load data. This is usually due to resource limits being exceded.
6259903a71ff763f4b5e896a
class INDataCenter(DataCenter): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def PRODUCTION(cls): <NEW_LINE> <INDENT> return DataCenter.Environment("https://www.zohoapis.in", cls().get_iam_url(), cls().get_file_upload_url()) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def SANDBOX(cls): <NEW_LINE> <INDENT> return DataCen...
This class represents the properties of Zoho CRM in IN Domain.
6259903a9b70327d1c57ff3d
class Pledge(models.Model): <NEW_LINE> <INDENT> account = models.ForeignKey('account.Account') <NEW_LINE> pact = models.ForeignKey('pact.Pact') <NEW_LINE> created = models.DateTimeField(auto_now_add=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> unique_together = ('account', 'pact',) <NEW_LINE> <DEDENT> def __unicode...
A through model that connects a given user with a pact that they have pledged to.
6259903a0fa83653e46f60aa
class NamedNode(Node): <NEW_LINE> <INDENT> name = str <NEW_LINE> def __init__(self, name): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> <DEDENT> def __hash__(self): <NEW_LINE> <INDENT> return hash(self.name) <NEW_LINE> <DEDENT> def __eq__(self, other): <NEW_LINE> <INDENT> return self.name == other.name <NEW_LINE> <D...
Represents a named node in a graph.
6259903a8c3a8732951f7726
class ReplyTopicTestCase(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.board = Board.objects.create(name="Django", description="Django Board") <NEW_LINE> self.username = 'john' <NEW_LINE> self.password = 'django123' <NEW_LINE> user = User.objects.create_user(username=self.username, email='joh...
Base Test for all other Test Cases with this page The setUp will persist through all other Tests that inherit from this
6259903a94891a1f408b9fdf
class AuctionItem(): <NEW_LINE> <INDENT> def __init__(self, attributes): <NEW_LINE> <INDENT> self.starttime = int(attributes[0]) <NEW_LINE> self.listuser = attributes[1] <NEW_LINE> self.name = attributes[3] <NEW_LINE> self.reserve = float(attributes[4]) <NEW_LINE> self.stoptime = int(attributes[5]) <NEW_LINE> self.open...
An Auction Item
6259903a26068e7796d4db17
class Webhook(db.Base, ModelMixin, SlugMixin): <NEW_LINE> <INDENT> __tablename__ = 'webhooks' <NEW_LINE> slug = sqlalchemy.Column(sqlalchemy.String(30), primary_key=True) <NEW_LINE> name = sqlalchemy.Column(sqlalchemy.String(30), nullable=False) <NEW_LINE> url = sqlalchemy.Column(sqlalchemy.String(250), nullable=False)...
Model defining multipurpose webhooks. slug: String uniquely identifying webhook. name: Webhook name. url: URL to be requested. verify: Whether to force certificate checking if URL uses SSL. date_added: Date and time webhook was added to the database. added_by: Username of the user who added the webhook. Class also ha...
6259903a73bcbd0ca4bcb459
class Node(object): <NEW_LINE> <INDENT> def __init__(self, value): <NEW_LINE> <INDENT> self._value = value <NEW_LINE> self._white = True <NEW_LINE> self._gray = False <NEW_LINE> self._black = False <NEW_LINE> self._pred = None <NEW_LINE> self._neighbors = [] <NEW_LINE> self._distance = 0 <NEW_LINE> <DEDENT> def _add_ne...
Node object which has a value, colors to determine at what stage it has been inspected, a predecessor, distance from origin vertex, and peer awareness.
6259903a287bf620b6272dbb
class NativeFastqReader(genomics_reader.GenomicsReader): <NEW_LINE> <INDENT> def __init__(self, input_path): <NEW_LINE> <INDENT> super(NativeFastqReader, self).__init__() <NEW_LINE> fastq_path = input_path.encode('utf8') <NEW_LINE> if fastq_path.endswith('.gz'): <NEW_LINE> <INDENT> options = fastq_pb2.FastqReaderOption...
Class for reading from native FASTQ files. Most users will want to use FastqReader instead, because it dynamically dispatches between reading native FASTQ files and TFRecord files based on the filename's extension.
6259903a1d351010ab8f4cec
class ReturnType(ArgumentType): <NEW_LINE> <INDENT> def __init__(self, function, arg_type): <NEW_LINE> <INDENT> super(ReturnType, self).__init__(function, 0, arg_type, None) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> spelling = self._clang_type.spelling.replace('const', '') <NEW_LINE> return_type = 'sap...
Class representing function return type. Attributes: return_type: sapi::StatusOr<T> where T is original return type, or sapi::Status for functions returning void
6259903a23e79379d538d6d1
class Screenboard( GetableAPIResource, CreateableAPIResource, UpdatableAPIResource, DeletableAPIResource, ActionAPIResource, ListableAPIResource, ): <NEW_LINE> <INDENT> _resource_name = "screen" <NEW_LINE> @classmethod <NEW_LINE> def share(cls, board_id): <NEW_LINE> <INDENT> return super(Screenboard, cls)._trigger_acti...
A wrapper around Screenboard HTTP API.
6259903ab5575c28eb7135b2
class RateLimitFault(webob.exc.HTTPException): <NEW_LINE> <INDENT> def __init__(self, message, details, retry_time): <NEW_LINE> <INDENT> hdrs = RateLimitFault._retry_after(retry_time) <NEW_LINE> self.wrapped_exc = webob.exc.HTTPTooManyRequests(headers=hdrs) <NEW_LINE> self.content = { "overLimit": { "code": self.wrappe...
Rate-limited request response.
6259903a71ff763f4b5e896c
class TestManipulator(BaseManipulator): <NEW_LINE> <INDENT> def __init__(self, target_shape, **kwargs): <NEW_LINE> <INDENT> self.target_shape = target_shape <NEW_LINE> <DEDENT> def manipulate(self): <NEW_LINE> <INDENT> target_shape = self.target_to_valid_geom(self.target_shape) <NEW_LINE> status_html = self.do_template...
This manipulator does nothing but ensure the geometry is clean.
6259903a0fa83653e46f60ac
class ENDMDL: <NEW_LINE> <INDENT> def __init__(self, line): <NEW_LINE> <INDENT> pass
ENDMDL class The ENDMDL records are paired with MODEL records to group individual structures found in a coordinate entry.
6259903ab830903b9686ed62
class InitDB(CkanCommand): <NEW_LINE> <INDENT> summary = __doc__.split('\n')[0] <NEW_LINE> usage = __doc__ <NEW_LINE> max_args = 0 <NEW_LINE> min_args = 0 <NEW_LINE> def command(self): <NEW_LINE> <INDENT> self._load_config() <NEW_LINE> import ckan.model as model <NEW_LINE> model.Session.remove() <NEW_LINE> model.Sessio...
Initialise the extension's database tables
6259903a26068e7796d4db19
class ApiGetExportedFlowResultsHandlerTest(test_lib.GRRBaseTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(ApiGetExportedFlowResultsHandlerTest, self).setUp() <NEW_LINE> self.handler = flow_plugin.ApiGetExportedFlowResultsHandler() <NEW_LINE> self.client_id = self.SetupClients(1)[0] <NEW_LINE> <DE...
Tests for ApiGetExportedFlowResultsHandler.
6259903a6fece00bbacccb7f
class PeriodicCallback(SessionCallback): <NEW_LINE> <INDENT> def __init__(self, document, callback, period, id=None): <NEW_LINE> <INDENT> super(PeriodicCallback, self).__init__(document, callback, id) <NEW_LINE> self._period = period <NEW_LINE> <DEDENT> @property <NEW_LINE> def period(self): <NEW_LINE> <INDENT> return ...
Represent a callback to execute periodically on the IOLoop at a specified periodic time interval.
6259903abaa26c4b54d5047a
class _ReadRequest: <NEW_LINE> <INDENT> MAX_DATA_LENGTH = 20 <NEW_LINE> def __init__(self, mem, addr, length, ed): <NEW_LINE> <INDENT> self.mem = mem <NEW_LINE> self.addr = addr <NEW_LINE> self._bytes_left = length <NEW_LINE> self.data = bytearray() <NEW_LINE> self.ed = ed <NEW_LINE> self._current_addr = addr <NEW_LINE...
Class used to handle memory reads that will split up the read in multiple packets if necessary
6259903a50485f2cf55dc154
class ResponseError(Response): <NEW_LINE> <INDENT> def __init__( self, error, error_code=None, http_status=status.HTTP_400_BAD_REQUEST, content_type=None, detail=None, ): <NEW_LINE> <INDENT> reply = { "response": { "success": False, "error": error, "error_code": error_code, "detail": detail, } } <NEW_LINE> super().__in...
Common error response object. When an exception is not sufficient and a response can still be returned (e.g. certain errors to correct) we can use ResponseError to standardise this response format.
6259903ad164cc6175822147
class IntegrationTestCase(TestCase): <NEW_LINE> <INDENT> print_stdout_stderr_on_teardown = False <NEW_LINE> processes = {} <NEW_LINE> def tearDown(self): <NEW_LINE> <INDENT> super(IntegrationTestCase, self).tearDown() <NEW_LINE> for pid, process in self.processes.items(): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> pr...
Base test class for integration tests to inherit from. It includes various utility functions and assert methods for working with processes.
6259903ad53ae8145f919638
class DatabasesGetTestCase(BaseTestGenerator): <NEW_LINE> <INDENT> scenarios = [ ('Check Databases Node URL', dict(url='/browser/database/obj/')) ] <NEW_LINE> def runTest(self): <NEW_LINE> <INDENT> server_data = parent_node_dict["database"][-1] <NEW_LINE> server_id = server_data["server_id"] <NEW_LINE> db_id = server_d...
This class will fetch database added under last added server.
6259903a91af0d3eaad3b006
class TestCustomerFilter(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 testCustomerFilter(self): <NEW_LINE> <INDENT> model = squareconnect.models.customer_filter.CustomerFilter()
CustomerFilter unit test stubs
6259903a8a43f66fc4bf3360
class CourseDatesFragmentView(EdxFragmentView): <NEW_LINE> <INDENT> template_name = 'course_experience/course-dates-fragment.html' <NEW_LINE> def render_to_fragment(self, request, course_id=None, **kwargs): <NEW_LINE> <INDENT> course_key = CourseKey.from_string(course_id) <NEW_LINE> course = get_course_with_access(requ...
A fragment to important dates within a course.
6259903a0a366e3fb87ddbb8
class VeryLazyProcessMemoryDumpLoader(LazyProcessMemoryDumpLoader): <NEW_LINE> <INDENT> def _load_memory_mappings(self): <NEW_LINE> <INDENT> _mappings = [] <NEW_LINE> default_ctypes = types.load_ctypes_default() <NEW_LINE> for mmap_fname, start, end, permissions, offset, major_device, minor_device, inode, pathname in s...
Always use a filename backed memory mapping.
6259903a1d351010ab8f4cee
class Presqoop(): <NEW_LINE> <INDENT> NECESSARY_ARGS = { '--presto-host': 'presto_host', '--presto-port': 'presto_port', '--presto-user': 'presto_user', '--presto-catalog': 'presto_catalog', '--presto-schema': 'presto_schema', '--table': 'table' } <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.__args = self.__...
A Sqoop like tools to import/export datas by using presto **Basic** 基于 presto 做的数据导入/导出脚本,功能仿照 sqoop 设计,尽量实现 sqoop 的功能 .. version v1.0
6259903a66673b3332c315ca
class Attributes(object): <NEW_LINE> <INDENT> __metaclass__ = AttributesMeta <NEW_LINE> _wrapper = False <NEW_LINE> default = None <NEW_LINE> nillable = True <NEW_LINE> min_occurs = 0 <NEW_LINE> max_occurs = 1 <NEW_LINE> schema_tag = '{%s}element' % spyne.const.xml_ns.xsd <NEW_LINE> translations = None <NEW_LINE> sqla_...
The class that holds the constraints for the given type.
6259903a30dc7b76659a0a05
class Dice(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> dummy = False <NEW_LINE> <DEDENT> def diceroll(self, die_no = 1, die_type = 10, die_weight = 0, die_tries = 1): <NEW_LINE> <INDENT> ttl_roll = 0 <NEW_LINE> for tries in range(0, die_tries): <NEW_LINE> <INDENT> for roll in range(0, die_no): ...
dice roll handler
6259903a07d97122c4217e71
class LinuxInstaller(cr.Installer): <NEW_LINE> <INDENT> @property <NEW_LINE> def enabled(self): <NEW_LINE> <INDENT> return cr.LinuxPlatform.GetInstance().is_active <NEW_LINE> <DEDENT> def Uninstall(self, targets, arguments): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def Install(self, targets, arguments): <NEW_LINE> ...
An implementation of cr.Installer for the linux platform. This does nothing, the linux runner works from the output directory, there is no need to install anywhere.
6259903a73bcbd0ca4bcb45d
class BrandView( RestView ): <NEW_LINE> <INDENT> route_base = 'brand' <NEW_LINE> Controller = BrandCtrl
The brand view.
6259903abaa26c4b54d5047c
class TemporalVarianceParser(): <NEW_LINE> <INDENT> def __call__(self, criteria_str: str) -> tp.Dict[str, tp.Any]: <NEW_LINE> <INDENT> ret = { 'variance_type': "", 'xml_parent_path': "", 'variance_csv_col': "", 'waveform_type': "", 'waveform_param': int(), 'population': None } <NEW_LINE> xml_parent = { 'M': './/env_dyn...
Enforces the cmdline definition of the :class:`TemporalVariance` batch criteria described in :ref:`ln-bc-temporal-variance` .
6259903a26238365f5fadd2a
class Director: <NEW_LINE> <INDENT> def __init__(self, builder): <NEW_LINE> <INDENT> self._builder = builder <NEW_LINE> <DEDENT> def constructCar(self): <NEW_LINE> <INDENT> self._builder.createNewCar() <NEW_LINE> self._builder.addEngine("eng") <NEW_LINE> self._builder.addTyres("mrf") <NEW_LINE> self._builder.addSpeedom...
Director: in charge of building the product using an object of Concrete Builder
6259903ac432627299fa41cd
class Meta: <NEW_LINE> <INDENT> ordering = ['-create_time']
统一以降序排序
6259903a91af0d3eaad3b008
class QueueInput(FeedfreeInput): <NEW_LINE> <INDENT> def __init__(self, ds, queue=None): <NEW_LINE> <INDENT> assert isinstance(ds, DataFlow), ds <NEW_LINE> self.queue = queue <NEW_LINE> self.ds = ds <NEW_LINE> <DEDENT> def _size(self): <NEW_LINE> <INDENT> return self.ds.size() <NEW_LINE> <DEDENT> def _setup(self, input...
Enqueue datapoints from a DataFlow to a TF queue. And the model receives dequeued tensors.
6259903a73bcbd0ca4bcb45e
class CourseCategory(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=64, unique=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return "%s" % self.name <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> verbose_name_plural = '课程大类' <NEW_LINE> verbose_name = verbose_name_plural
课程大类 eg: 前端 后端
6259903a8a43f66fc4bf3362
class DictContainer(dict): <NEW_LINE> <INDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> value = super(DictContainer, self).__getitem__(key) <NEW_LINE> if type(value) == dict: <NEW_LINE> <INDENT> value = DictContainer(value) <NEW_LINE> self[key] = value <NEW_LINE> <DEDENT> return value <NEW_LINE> <DEDENT> def __g...
dict whose members can be accessed via attribute lookup. One thing to note: You can have an entry in your container that is visible instead of a standard dict method. So, for instance, you can have this happen:: >>> d = DictContainer({'keys': 'key'}) >>> d.keys() Traceback (most recent call last): ...
6259903a8a349b6b43687418
class ParallelForIterator(object): <NEW_LINE> <INDENT> def __init__(self, calculations, manager, pool = 1): <NEW_LINE> <INDENT> self.manager = manager <NEW_LINE> self.pooler = get_pooler( size = pool ) <NEW_LINE> self.resiter = RechargeableIterator() <NEW_LINE> self.calcsiter = iter( calculations ) <NEW_LINE> self.resu...
Creates an iterator that executes calls on a Manager-like object calculations - an iterable of calculations yielding ( target, args, kwargs ) tuples manager - execution manager
6259903a1d351010ab8f4cf0
class TestBaseNeoQuantitiesArrayTypes(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.base = BaseNeo() <NEW_LINE> <DEDENT> def test_quantities_array_int(self): <NEW_LINE> <INDENT> value = quantities.Quantity([1, 2, 3, 4, 5], dtype=numpy.int, units=quantities.s) <NEW_LINE> self.base.ann...
TestCase to make sure annotations are properly checked for quantities arrays
6259903a1f5feb6acb163dc8
@attr.s <NEW_LINE> class CJKTagger(AnomalousTagger): <NEW_LINE> <INDENT> def classify(self, name: TransliteratedName) -> Optional[bool]: <NEW_LINE> <INDENT> hist = name.unicode_block_histogram <NEW_LINE> re_chinese_japanese = re.compile(r"^(ja|zh-*|lzh|wuu)") <NEW_LINE> if not re_chinese_japanese.match(name.language): ...
Tags names as anomalous/non-anomalous based on their Hiragana/Katakana characters. Analyzes Japanese, Modern Chinese variants and Classical Chinese. Words are anomalous if they do not contain any CJK.
6259903a16aa5153ce4016c3
@dataclasses.dataclass <NEW_LINE> class AddressBookDataClass: <NEW_LINE> <INDENT> key: int <NEW_LINE> name: str <NEW_LINE> phone_number: str <NEW_LINE> address: str <NEW_LINE> email: str <NEW_LINE> birthday: str <NEW_LINE> age: int
Create dataclass with 7 fields - key (int), name (str), phone_number (str), address (str), email (str), birthday (str), age (int)
6259903a21bff66bcd723e3f
class WithLength(Generator): <NEW_LINE> <INDENT> DIRS = { 'lenmin':int, 'lenmax':int, 'length':int, 'lenvar':int } <NEW_LINE> def __init__(self, lenmin=None, lenmax=None): <NEW_LINE> <INDENT> self.lenmin, self.lenmax = lenmin, lenmax <NEW_LINE> mm = 'lenmin' in self.params or 'lenmax' in self.params <NEW_LINE> lv = 'le...
Set {min,max}len attributes.
6259903ae76e3b2f99fd9be2
class Ipv6ExpressRouteCircuitPeeringConfig(Model): <NEW_LINE> <INDENT> _attribute_map = { 'primary_peer_address_prefix': {'key': 'primaryPeerAddressPrefix', 'type': 'str'}, 'secondary_peer_address_prefix': {'key': 'secondaryPeerAddressPrefix', 'type': 'str'}, 'microsoft_peering_config': {'key': 'microsoftPeeringConfig'...
Contains IPv6 peering config. :param primary_peer_address_prefix: The primary address prefix. :type primary_peer_address_prefix: str :param secondary_peer_address_prefix: The secondary address prefix. :type secondary_peer_address_prefix: str :param microsoft_peering_config: The Microsoft peering configuration. :type m...
6259903acad5886f8bdc5967
@disruptor(tactics, dtype="tCOMB", weight=1, args={'node': ('Node to combine with.', None, Node)}) <NEW_LINE> class sd_combine(SwapperDisruptor): <NEW_LINE> <INDENT> def setup(self, dm, user_input): <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> def get_nodes(self, node): <NEW_LINE> <INDENT> while True: <NEW_LINE>...
Merge two nodes by swapping some roots' children
6259903a50485f2cf55dc158
class TestThumbtackExamples(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.actual_output = [] <NEW_LINE> self.db = DB() <NEW_LINE> self.longMessage = True <NEW_LINE> self.test_data_dir = '{}/data/'.format(os.path.dirname(__file__)) <NEW_LINE> <DEDENT> def test_basic_commands_1(self): ...
Tests the examples at http://www.thumbtack.com/challenges.
6259903a26238365f5fadd2c
class Detect(Function): <NEW_LINE> <INDENT> def __init__(self, num_classes, bkg_label, cfg): <NEW_LINE> <INDENT> self.num_classes = num_classes <NEW_LINE> self.background_label = bkg_label <NEW_LINE> self.variance = cfg['variance'] <NEW_LINE> <DEDENT> def forward(self, predictions, prior): <NEW_LINE> <INDENT> loc, conf...
At test time, Detect is the final layer of SSD. Decode location preds, apply non-maximum suppression to location predictions based on conf scores and threshold to a top_k number of output predictions for both confidence score and locations.
6259903ad53ae8145f91963c
class AlertRequest(Model): <NEW_LINE> <INDENT> def __init__(self, ticker: str=None, event_type: str=None, price: float=None): <NEW_LINE> <INDENT> self.swagger_types = { 'ticker': str, 'event_type': str, 'price': float } <NEW_LINE> self.attribute_map = { 'ticker': 'ticker', 'event_type': 'eventType', 'price': 'price' } ...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
6259903a8a349b6b4368741a
class NotebookLoader(object): <NEW_LINE> <INDENT> def __init__(self, path=None): <NEW_LINE> <INDENT> self.shell = InteractiveShell.instance() <NEW_LINE> self.path = path <NEW_LINE> <DEDENT> def load_module(self, fullname): <NEW_LINE> <INDENT> path = find_notebook(fullname, self.path) <NEW_LINE> print ("importing Jupyte...
Module Loader for Jupyter Notebooks
6259903a287bf620b6272dc1
class RecentInterface(object): <NEW_LINE> <INDENT> open_new = QtCore.pyqtSignal(str) <NEW_LINE> select = QtCore.pyqtSignal(str) <NEW_LINE> convert = QtCore.pyqtSignal(str) <NEW_LINE> def __init__(self, conf, category): <NEW_LINE> <INDENT> super(RecentInterface, self).__init__() <NEW_LINE> self.category = category <NEW_...
Common functions for recent elements management
6259903a0a366e3fb87ddbbc
class SingleFolderQuerySet(FolderQuerySet): <NEW_LINE> <INDENT> def __init__(self, account, folder): <NEW_LINE> <INDENT> from .collections import FolderCollection <NEW_LINE> folder_collection = FolderCollection(account=account, folders=[folder]) <NEW_LINE> super().__init__(folder_collection=folder_collection) <NEW_LINE...
A helper class with simpler argument types
6259903a23e79379d538d6d7
class TestIR13AASN(BaseWFC3): <NEW_LINE> <INDENT> detector = 'ir' <NEW_LINE> def test_ir_13aasn(self): <NEW_LINE> <INDENT> asn_file = 'iabg21010_asn.fits' <NEW_LINE> self.get_input_file(asn_file) <NEW_LINE> subprocess.call(['calwf3.e', asn_file, '-v']) <NEW_LINE> flist = ['iabg21a1q', 'iabg21a2q', 'iabg21a3q', 'iabg21a...
Tests for WFC3/IR - Subarray dark associations of small sizes.
6259903a30dc7b76659a0a09
class ModelMetaclass(type): <NEW_LINE> <INDENT> def __new__(cls, name,bases,attrs): <NEW_LINE> <INDENT> if name=='Model': <NEW_LINE> <INDENT> return type.__new__(cls,name,bases,attrs) <NEW_LINE> <DEDENT> tableName = attrs.get('__table__',None) or name <NEW_LINE> logging.info("found moduel:%s (table:%s)" % (name,tableNa...
docstring for ModelMetaclass
6259903ab830903b9686ed65
class DMLServerJob(DMLJob): <NEW_LINE> <INDENT> def __init__( self, job_uuid, dataset_uuid, round_num, statistics ): <NEW_LINE> <INDENT> self.job_type = JobTypes.JOB_STATS.name <NEW_LINE> self.job_uuid = job_uuid <NEW_LINE> self.dataset_uuid = dataset_uuid <NEW_LINE> self.round_num = round_num <NEW_LINE> self.statistic...
DML Job for submitting Statistics Holds information specifically needed for submitting statistics
6259903aec188e330fdf9a70
class Eng_AnyRunning(MultistateDerivedParameterNode, EngRunning): <NEW_LINE> <INDENT> name = 'Eng (*) Any Running' <NEW_LINE> @classmethod <NEW_LINE> def can_operate(cls, available): <NEW_LINE> <INDENT> return 'Eng (*) N1 Max' in available or 'Eng (*) N2 Max' in available or 'Eng (*) Np Max'...
Discrete parameter describing when any engines are running. This is useful with 'Eng (*) All Running' to detect if not all engines are running.
6259903aa4f1c619b294f773
class SantaRuleQueryHandler(RuleQueryHandler): <NEW_LINE> <INDENT> MODEL_CLASS = rule_models.SantaRule
Handler for querying santa rules.
6259903a26068e7796d4db1f
class SystemRole(System): <NEW_LINE> <INDENT> NAMES = ['GUEST', 'USER', 'PUBLISHER', 'ADMIN', 'OWNER'] <NEW_LINE> SEARCH_ARGS = [ ("_links", argtype.OBJECT, Verbosity.RECORD, argmod.STRING_DEFAULTS, argmod.DEFAULT, None, None, False), ("username", argtype.STRING, Verbosity.BRIEF, argmod.STRING_DEFAULTS, argmod.DEFAULT,...
Model of a Tapis system role
6259903a8da39b475be043c7
class Axes(vtk.vtkActor): <NEW_LINE> <INDENT> def __init__(self, center=(0,0,0), color=(0,0,1) ): <NEW_LINE> <INDENT> self.src = vtk.vtkAxes() <NEW_LINE> self.mapper = vtk.vtkPolyDataMapper() <NEW_LINE> self.mapper.SetInputConnection(self.src.GetOutputPort()) <NEW_LINE> self.SetMapper(self.mapper) <NEW_LINE> self.SetCo...
axes (x,y,z)
6259903a596a897236128e78
class RemoveFileIfExists(xtask.Task): <NEW_LINE> <INDENT> def __init__(self, file_path): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.file_path = xtask.parse_path(file_path) <NEW_LINE> <DEDENT> def run(self): <NEW_LINE> <INDENT> if not self.file_path.exists(): <NEW_LINE> <INDENT> self._info("Doing nothing: Lo...
Remove a file if it exists.
6259903a1d351010ab8f4cf4
class QPythonConsole(QObject, MooseWidget): <NEW_LINE> <INDENT> write_output = pyqtSignal(str) <NEW_LINE> prompt_changed = pyqtSignal(str) <NEW_LINE> def __init__(self, locals=None, filename="Python Console", **kwds): <NEW_LINE> <INDENT> super(QPythonConsole, self).__init__(**kwds) <NEW_LINE> self.console = Interactive...
A python interactive interpreter that emits signals for output and has a slot for input, allowing to be hooked up to Qt widgets. Signals: write_output: Some output was written to the console. Argument is the output. prompt_changed: The prompt needs to be changed. This is for line continuation.
6259903a10dbd63aa1c71dae
class FlipDimension(gui_base.GuiCommandNeedsSelection): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Draft_FlipDimension, self).__init__(name=_tr("Flip dimension")) <NEW_LINE> <DEDENT> def GetResources(self): <NEW_LINE> <INDENT> _tip = ("Flip the normal direction of the selected dimensions " "(line...
The Draft FlipDimension command definition. Flip the normal direction of the selected dimensions. It inherits `GuiCommandNeedsSelection` to set up the document and other behavior. See this class for more information.
6259903a1f5feb6acb163dcc
class RoadStep(BaseObject): <NEW_LINE> <INDENT> line = StringField('When line') <NEW_LINE> start_time = TimeField('Start of step') <NEW_LINE> end_time = TimeField('End of step') <NEW_LINE> departure = StringField('Departure station') <NEW_LINE> arrival = StringField('Arrival station') <NEW_LI...
A step on a roadmap.
6259903a66673b3332c315d0
class FloorResultTypes(Enum): <NEW_LINE> <INDENT> INCREMENT_FLOOR = -1 <NEW_LINE> DECREMENT_FLOOR = +1 <NEW_LINE> END_GAME = auto()
Enumerates the outcomes from a dungeon floor.
6259903a379a373c97d9a202
class KNearestNeighbor(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def train(self, X, y): <NEW_LINE> <INDENT> self.X_train = X <NEW_LINE> self.y_train = y <NEW_LINE> <DEDENT> def predict(self, X, k=1, num_loops=0): <NEW_LINE> <INDENT> if num_loops == 0: <NEW_LINE> <INDE...
a kNN classifier with L2 distance
6259903a30c21e258be999e8
class MGMSG_MOT_SET_EEPROMPARAMS(Message): <NEW_LINE> <INDENT> id = 0x4b9 <NEW_LINE> is_long_cmd = True <NEW_LINE> parameters = [('chan_ident', 'H'), ('msg_id', 'H')]
Used to save the parameter settings for the specified message. These settings may have been altered either through the various method calls or through user interaction with the GUI (specifically, by clicking on the ‘Settings’ button found in the lower right hand corner of the user interface). :param chan_ident: channe...
6259903ad164cc617582214f
class TestV1PodAntiAffinity(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 testV1PodAntiAffinity(self): <NEW_LINE> <INDENT> pass
V1PodAntiAffinity unit test stubs
6259903ad99f1b3c44d06880
class BQ_Client(object): <NEW_LINE> <INDENT> def __init__(self, credentials, dataset_id, table_id, google_project_id): <NEW_LINE> <INDENT> self.credentials = credentials <NEW_LINE> self.google_project_id = google_project_id <NEW_LINE> self.dataset_id = dataset_id <NEW_LINE> self.table_id = table_id <NEW_LINE> self.clie...
Args: credentials: (str) path to json file with credentials dataset_id: (str) table_id: (str) google_project_id: (str)
6259903a8a43f66fc4bf3368
class RequestFailed(Exception): <NEW_LINE> <INDENT> def __init__(self, url, http_code, open_code, open_msg): <NEW_LINE> <INDENT> self._url = url <NEW_LINE> self._http_code = int(http_code) <NEW_LINE> self._open_code = int(open_code) <NEW_LINE> self._open_msg = open_msg <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> ...
class to represent a failed RESTful call
6259903a82261d6c527307b2
class ValidateConfigTestCase(TestCase): <NEW_LINE> <INDENT> def test_bad_object_in_array(self): <NEW_LINE> <INDENT> schema = { "type": "object", "properties": { "array_of_objs": { "type": "array", "items": {"type": "object", "required": ["r"]}, }, }, } <NEW_LINE> with self.assertRaises(ConfigError) as c: <NEW_LINE> <IN...
Test cases for synapse.config._util.validate_config
6259903a596a897236128e7a
class OTestpointBroker(Wrapper): <NEW_LINE> <INDENT> def register(self, registrar): <NEW_LINE> <INDENT> registrar.register_argument('loglevel', 3, 'log level - [0,3]') <NEW_LINE> registrar.register_infile_name('otestpoint-broker.xml') <NEW_LINE> registrar.register_outfile_name('otestpoint-broker.log') <NEW_LINE> <DEDEN...
Instantiate an otestpoint-broker instance on this node.
6259903a0a366e3fb87ddbc0
class TypeValueValuesEnum(_messages.Enum): <NEW_LINE> <INDENT> TYPE_UNSPECIFIED = 0 <NEW_LINE> PLAIN_TEXT = 1 <NEW_LINE> HTML = 2
Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error. Values: TYPE_UNSPECIFIED: The content type is not specified. PLAIN_TEXT: Plain text HTML: HTML
6259903a4e696a045264e70f
class AddSecurityGroup(command.Command): <NEW_LINE> <INDENT> log = logging.getLogger(__name__ + ".AddSecurityGroup") <NEW_LINE> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(AddSecurityGroup, self).get_parser(prog_name) <NEW_LINE> parser.add_argument( 'container', metavar='<container>', help='ID o...
Add security group for specified container.
6259903a30dc7b76659a0a0d
class ImportVisitor(ast.NodeVisitor): <NEW_LINE> <INDENT> def __init__(self, filename, options): <NEW_LINE> <INDENT> self.filename = filename <NEW_LINE> self.options = options or {} <NEW_LINE> self.calls = [] <NEW_LINE> <DEDENT> def visit_Call(self, node): <NEW_LINE> <INDENT> if node.func.id == 'gql': <NEW_LINE> <INDEN...
This class visits all the gql calls.
6259903a23e79379d538d6dc
class ICarouselTile(IListTile): <NEW_LINE> <INDENT> autoplay = schema.Bool( title=_(u'Auto play'), required=False, default=True, ) <NEW_LINE> form.no_omit(ITileEditForm, 'uuids') <NEW_LINE> form.widget(uuids=TextLinesSortableFieldWidget) <NEW_LINE> uuids = schema.List( title=_(u'Elements'), value_type=schema.TextLine()...
A carousel based on the Galleria JavaScript image gallery framework.
6259903ae76e3b2f99fd9be8
class SQSDecodeError(MssapiClientError): <NEW_LINE> <INDENT> def __init__(self, reason, message): <NEW_LINE> <INDENT> super(SQSDecodeError, self).__init__(reason, message) <NEW_LINE> self.message = message <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return 'SQSDecodeError: %s' % self.reason <NEW_LINE> <...
Error when decoding an SQS message.
6259903acad5886f8bdc596a
class Toolbar(Base): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def cast(arg): <NEW_LINE> <INDENT> return Toolbar() <NEW_LINE> <DEDENT> @property <NEW_LINE> def id(self): <NEW_LINE> <INDENT> return str() <NEW_LINE> <DEDENT> @property <NEW_LINE> def pare...
Provides access to a toolbar in the user interface. A toolbar is a collection of toolbar controls.
6259903a30c21e258be999ea
@destructiveTest <NEW_LINE> @skipIf(salt.utils.is_windows(), 'No mtab on Windows') <NEW_LINE> @skipIf(salt.utils.is_darwin(), 'No mtab on Darwin') <NEW_LINE> class DiskModuleVirtualizationTest(ModuleCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> if os.path.isfile('/etc/mtab'): <NEW_LINE> <INDENT> shuti...
Test to make sure we return a clean result under Docker. Refs #8976 This is factored into its own class so that we can have some certainty that setUp() and tearDown() are run.
6259903a26238365f5fadd32
class SensorAccelerometer(Element): <NEW_LINE> <INDENT> def __init__( self, site, cutoff: float=None, name: str=None, noise: float=None, user: str="0 0 ...", ): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.site = site <NEW_LINE> self.cutoff = cutoff <NEW_LINE> self.name = name <NEW_LINE> self.noise = noise <N...
This element creates a 3-axis accelerometer. The sensor is mounted at a site, and has the same position and orientation as the site frame. This sensor outputs three numbers, which are the linear acceleration of the site (including gravity) in local coordinates. :param site: Site where the sensor is mounted. T...
6259903ac432627299fa41d5
class tektronixDPO72004C(tektronixDPO70000): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.__dict__.setdefault('_instrument_id', 'DPO72004C') <NEW_LINE> super(tektronixDPO72004C, self).__init__(*args, **kwargs) <NEW_LINE> self._analog_channel_count = 4 <NEW_LINE> self._digital_channe...
Tektronix DPO72004C IVI oscilloscope driver
6259903a004d5f362081f8d2
class Commit: <NEW_LINE> <INDENT> cves = dict() <NEW_LINE> def __init__(self, id, links): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.links = links <NEW_LINE> <DEDENT> def add_to_dictionary(self): <NEW_LINE> <INDENT> Commit.cves[self.id] = self.links
Class for representing commits as ID<->links
6259903a596a897236128e7c
class FrequencyBand(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=10, help_text="Ex. C, Ku, Ka, S, X") <NEW_LINE> start = models.FloatField(help_text="Start frequency of this band in GHz") <NEW_LINE> stop = models.FloatField(help_text="Stop frequency of this band in GHz") <NEW_LINE> class Meta: ...
Represents a frequency band with start and stop range in GHz
6259903a63f4b57ef0086662
class Collections(enum.Enum): <NEW_LINE> <INDENT> PROJECTS = ( 'projects', 'projects/{projectsId}', {}, [u'projectsId'], True ) <NEW_LINE> PROJECTS_INSTANCECONFIGS = ( 'projects.instanceConfigs', '{+name}', { '': 'projects/{projectsId}/instanceConfigs/{instanceConfigsId}', }, [u'name'], True ) <NEW_LINE> PROJECTS_INSTA...
Collections for all supported apis.
6259903a15baa72349463177
class ComponentTests(ossie.utils.testing.ScaComponentTestCase): <NEW_LINE> <INDENT> def testScaBasicBehavior(self): <NEW_LINE> <INDENT> execparams = self.getPropertySet(kinds=("execparam",), modes=("readwrite", "writeonly"), includeNil=False) <NEW_LINE> execparams = dict([(x.id, any.from_any(x.value)) for x in execpara...
Test for all component implementations in vector_to_stream_cc
6259903a3c8af77a43b6882a
class MockWriter: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def write(self, write_bytes: bytes): <NEW_LINE> <INDENT> global _READER, _NEXT_EXCEPTION <NEW_LINE> if _NEXT_EXCEPTION is not None: <NEW_LINE> <INDENT> exception = _NEXT_EXCEPTION <NEW_LINE> _NEXT_EXCEPTION = None <NE...
Mock implementation of the writer of a asyncio telnet connection.
6259903a0a366e3fb87ddbc2
class RenderPodcastTestCase(TestCase): <NEW_LINE> <INDENT> def test_render_defaults(self): <NEW_LINE> <INDENT> node = tags.RenderPodcastNode() <NEW_LINE> self.assertEquals("single", node.render_type) <NEW_LINE> self.assertEquals("episode", node.var_in_context) <NEW_LINE> self.assertEquals("sodes/renders/single.html", n...
{% render_podcast %} template tag
6259903a23e79379d538d6dd
@ns.route('/', endpoint=ep_1) <NEW_LINE> class UserCollection(Resource): <NEW_LINE> <INDENT> @ns.doc('list_users') <NEW_LINE> @ns.marshal_list_with(user_model) <NEW_LINE> @ns.response(200, 'User found') <NEW_LINE> @api.marshal_with(user_model) <NEW_LINE> def get(self): <NEW_LINE> <INDENT> print_url_for('GET', ep_1) <NE...
Retrieves a list of all users and creates a new user.
6259903a71ff763f4b5e8978
class S3SupplierModel(S3Model): <NEW_LINE> <INDENT> names = ["proc_supplier", "proc_supplier_id", ] <NEW_LINE> def model(self): <NEW_LINE> <INDENT> T = current.T <NEW_LINE> db = current.db <NEW_LINE> s3 = current.response.s3 <NEW_LINE> location_id = self.gis_location_id <NEW_LINE> tablename = "proc_supplier" <NEW_LINE>...
Suppliers @ToDo: Are these really different enough from Orgs to be worth separating? e.g. Donor Orgs vs Purchases
6259903a9b70327d1c57ff44
class GanadoresTemporadasNode(template.Node): <NEW_LINE> <INDENT> def __init__(self, num_fotos, varname): <NEW_LINE> <INDENT> self.num_fotos = int(num_fotos) <NEW_LINE> self.varname = varname <NEW_LINE> <DEDENT> def render(self, context): <NEW_LINE> <INDENT> temporadas = Temporada.objects.all() <NEW_LINE> if temporadas...
retorna un numero usuarios, aquellos que ganaron la temporada mas cercana, igual a num_fotos
6259903ae76e3b2f99fd9bea
class Critic(nn.Module): <NEW_LINE> <INDENT> def __init__(self, state_size, action_size, seed, fcs1_units=128, fc2_units=32, fc3_units=32): <NEW_LINE> <INDENT> super(Critic, self).__init__() <NEW_LINE> self.seed = torch.manual_seed(seed) <NEW_LINE> self.fcs1 = nn.Linear(state_size, fcs1_units) <NEW_LINE> self.fc2 = nn....
Critic (Value) Model.
6259903a73bcbd0ca4bcb467
class Batch(object): <NEW_LINE> <INDENT> def __init__(self, example_list, hps, vocab): <NEW_LINE> <INDENT> self.pad_id = vocab.word2id(data.PAD_TOKEN) <NEW_LINE> self.init_encoder_seq(example_list, hps) <NEW_LINE> self.init_decoder_seq(example_list, hps) <NEW_LINE> self.store_orig_strings(example_list) <NEW_LINE> <DEDE...
Class representing a minibatch of train/val/test examples for text summarization.
6259903a91af0d3eaad3b012