code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class HDHandler(Resource): <NEW_LINE> <INDENT> def __init__(self, jf, size): <NEW_LINE> <INDENT> Resource.__init__(self, jf, '/HP/HD/' + size) <NEW_LINE> self.name = 'Hit Die' <NEW_LINE> self.value = size <NEW_LINE> self.recharge = 'long' <NEW_LINE> <DEDENT> def use_HD(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT...
Handles one set of hit dice for a character. Data: As Resource, but with the assumptions made that it recharges on a long rest, its name is 'Hit Die', and its value is its size Methods: use_HD: Returns the result of rolling itself + the character's Constitution modifier. rest: Overrides Resource.rest, it only...
625990673539df3088ecda35
class FileField: <NEW_LINE> <INDENT> def __init__(self, name: str, value: FileTypes) -> None: <NEW_LINE> <INDENT> self.name = name <NEW_LINE> fileobj: FileContent <NEW_LINE> if isinstance(value, tuple): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> filename, fileobj, content_type = value <NEW_LINE> <DEDENT> except Value...
A single file field item, within a multipart form field.
6259906732920d7e50bc77dd
class Lattice: <NEW_LINE> <INDENT> pos = {} <NEW_LINE> grid = [] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.init_grid(1,1) <NEW_LINE> <DEDENT> def __init__(self,r,c): <NEW_LINE> <INDENT> self.init_grid(r,c) <NEW_LINE> <DEDENT> def init_grid(self,r,c): <NEW_LINE> <INDENT> global grid,pos <NEW_LINE> pos={"x"...
A simple lattice structure
62599067fff4ab517ebcefb1
class baseDisp: <NEW_LINE> <INDENT> def __init__(self, disp): <NEW_LINE> <INDENT> self.out = disp <NEW_LINE> <DEDENT> def Begin(self, command): <NEW_LINE> <INDENT> self.out.Begin(command) <NEW_LINE> <DEDENT> def data(self, line): <NEW_LINE> <INDENT> self.out.data(line) <NEW_LINE> <DEDENT> def flush(self, prompt, callba...
Base class for chained parsing classes. (Does little by itself.) Basically, this class just insures that all the sub-classes support the standard chained display class protocols.
625990673539df3088ecda36
class Writer(CreationInfoWriter, ReviewInfoWriter, FileWriter, PackageWriter, ExternalDocumentRefWriter, AnnotationInfoWriter): <NEW_LINE> <INDENT> def __init__(self, document, out): <NEW_LINE> <INDENT> super(Writer, self).__init__(document, out) <NEW_LINE> <DEDENT> def create_doc(self): <NEW_LINE> <INDENT> doc_node = ...
Warpper for other writers to write all fields of spdx.document.Document Call `write()` to start writing.
625990674428ac0f6e659cc8
class Settings(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.screen_width = 800 <NEW_LINE> self.screen_height = 600 <NEW_LINE> self.bg_color = (230, 230, 230) <NEW_LINE> self.ship_limit = 3 <NEW_LINE> self.bullet_width = 3 <NEW_LINE> self.bullet_hight = 15 <NEW_LINE> self.bullet_color = 60, 60, 60...
存储《外星人入侵》的所有设置的类
62599067442bda511e95d924
class TaskExecutionViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = TaskExecution.objects.all().order_by('-date_time') <NEW_LINE> serializer_class = TaskExecutionSerializer
API endpoint that serves the logs of task execution.
625990670c0af96317c5792a
class CommentCreateView(AjaxableResponseMixin, CreateView): <NEW_LINE> <INDENT> form_class = CommentForm <NEW_LINE> model = Comment <NEW_LINE> template_name = 'comments/comment_form.html' <NEW_LINE> success_url = reverse_lazy('comment-create') <NEW_LINE> def form_valid(self, form): <NEW_LINE> <INDENT> comment = form.sa...
Class that creates an instance of model:comment.Comment
625990677d847024c075db70
class DoorClosedMonitor(BaseDoorMonitor): <NEW_LINE> <INDENT> def __init__(self, Name, Type='Door', Kind='Position', TriggerValue='CLOSED', Description='Monitor when the DOOR is CLOSED'): <NEW_LINE> <INDENT> BaseDoorMonitor.__init__(self, Name, Type, Kind, TriggerValue, Description, 'DOOR CLOSED', 'The Door was Closed'...
Difining a monitor to trigger when a door is CLOSED
62599067f548e778e596cd22
class ComponentAttribute(TicketAttribute): <NEW_LINE> <INDENT> NAME = 'component' <NEW_LINE> DEFAULT_VALUE = 'Other'
This is the component the ticket is related to.
625990674e4d562566373b9e
class TestTimeConversion(unittest.TestCase): <NEW_LINE> <INDENT> def check_time(self, event, g, Ne, key="time"): <NEW_LINE> <INDENT> ll_event = event.get_ll_representation(1, Ne) <NEW_LINE> self.assertEqual(ll_event[key], g / (4 * Ne)) <NEW_LINE> <DEDENT> def test_population_parameter_change(self): <NEW_LINE> <INDENT> ...
Tests the time conversion into scaled units.
6259906716aa5153ce401c71
class ArticleReportingTestCase(ArticleRatingTestCase): <NEW_LINE> <INDENT> def article_report_input(self): <NEW_LINE> <INDENT> self.reporting_url = '/api/articles/' + self.response_article_posted.data['art_slug'] + '/report' <NEW_LINE> self.report_msg = { "report_msg": "This has been plagiarised f...
This class defines the api test case to rate articles
62599067d486a94d0ba2d756
class MySQLBase(sad.declarative_base(), object): <NEW_LINE> <INDENT> __abstract__ = True <NEW_LINE> db = None <NEW_LINE> id = sa.Column(sa.Integer, primary_key=True) <NEW_LINE> updated_at = sa.Column(ArrowType) <NEW_LINE> updated_by = sa.Column(sa.Integer) <NEW_LINE> created_at = sa.Column(ArrowType, default=arrow.now(...
MySQL base object
62599067462c4b4f79dbd19f
class DevelopmentConfig(Config): <NEW_LINE> <INDENT> TESTING = True <NEW_LINE> DEBUG = True <NEW_LINE> SQLALCHEMY_ECHO = True
Development configurations
62599067498bea3a75a591cd
class IMDbParserError(IMDbError): <NEW_LINE> <INDENT> pass
Exception raised when an error occurred parsing the data.
6259906756ac1b37e63038af
class SimpleTriangle: <NEW_LINE> <INDENT> def __init__(self, side1, side2, side3): <NEW_LINE> <INDENT> self.side1 = side1 <NEW_LINE> self.side2 = side2 <NEW_LINE> self.side3 = side3 <NEW_LINE> if not(isinstance(self.side1, int) and isinstance(self.side2, int) and isinstance(self.side3, int)): <NEW_LINE> <INDENT> raise ...
Triangle class to determine different types of triangles
62599067009cb60464d02cd1
class LinkedPATemplatePostSummaryRoot(ModelNormal): <NEW_LINE> <INDENT> allowed_values = { } <NEW_LINE> validations = { } <NEW_LINE> additional_properties_type = None <NEW_LINE> _nullable = False <NEW_LINE> @cached_property <NEW_LINE> def openapi_types(): <NEW_LINE> <INDENT> lazy_import() <NEW_LINE> return { 'data': (L...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually. Attributes: allowed_values (dict): The key is the tuple path to the attribute and the for var_name this is (var_name,). The value is a dict with a capitalized key describing the a...
625990670a50d4780f70698c
class Client(object): <NEW_LINE> <INDENT> def __init__(self, endpoint, *args, **kwargs): <NEW_LINE> <INDENT> self.http_client = http.HTTPClient(utils.strip_version(endpoint), *args, **kwargs) <NEW_LINE> self.schemas = schemas.Controller(self.http_client) <NEW_LINE> image_model = self._get_image_model() <NEW_LINE> self....
Client for the OpenStack Images v2 API. :param string endpoint: A user-supplied endpoint URL for the glance service. :param string token: Token for authentication. :param integer timeout: Allows customization of the timeout for client http requests. (optional)
6259906732920d7e50bc77de
class Tile: <NEW_LINE> <INDENT> def __init__(self, id): <NEW_LINE> <INDENT> self.type = id <NEW_LINE> self.name = area[id][1] <NEW_LINE> current_area = area[0] <NEW_LINE> <DEDENT> def on_resolve_card(self, card): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def find_next(self): <NEW_LINE> <INDENT> global area <NEW_LINE...
taken from https://github.com/lokikristianson/zimp-impl/blob/master/tile_doctest line 20-88 >>> tile = sys.modules[__name__] >>> tile.Tile(0).name 'Foyer' >>> tile.Tile(1).name 'Patio' >>> tile.Tile(2).name 'Evil Temple' >>> tile.Tile(3).name 'Storage Room' >>> tile.Tile(4).name 'Kitchen' >>> tile.Tile(5).name 'Dining ...
625990674428ac0f6e659cca
class EventNotificationList(FrozenClass): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.TypeId = FourByteNodeId(ObjectIds.EventNotificationList_Encoding_DefaultBinary) <NEW_LINE> self.Encoding = 1 <NEW_LINE> self.BodyLength = 0 <NEW_LINE> self.Events = [] <NEW_LINE> self._freeze() <NEW_LINE> <DEDENT>...
:ivar TypeId: :vartype TypeId: NodeId :ivar Encoding: :vartype Encoding: UInt8 :ivar BodyLength: :vartype BodyLength: Int32 :ivar Events: :vartype Events: EventFieldList
6259906797e22403b383c6a6
class Semanticizer(object): <NEW_LINE> <INDENT> def __init__(self, fname): <NEW_LINE> <INDENT> commonness = defaultdict(list) <NEW_LINE> self.db = sqlite3.connect(fname) <NEW_LINE> self._cur = self.db.cursor() <NEW_LINE> for target, anchor, count in self._get_senses_counts(): <NEW_LINE> <INDENT> commonness[anchor].appe...
Entity linker. This is the main class for using Semanticizest. It's a handle on a statistical model that lives on disk. Parameters ---------- fname : string Filename of the stored model from which to load the Wikipedia statistics. Loading is lazy; the underlying file should not be modified while any Seman...
625990674f88993c371f10eb
class Category(models.Model): <NEW_LINE> <INDENT> name = models.CharField(max_length=30) <NEW_LINE> def __unicode__(self): <NEW_LINE> <INDENT> return self.name
This class is a simple foreign key for the articles defining their category
6259906892d797404e38972a
class ImagesCollection(object): <NEW_LINE> <INDENT> def __init__(self, params: dict): <NEW_LINE> <INDENT> assert params['TYPE'] in ['BBOX_JSON_MARKING', 'IMAGES_DIR', 'GML_FACES_MARKING', 'GML_BBOXES_MARKING'] <NEW_LINE> self._params = params <NEW_LINE> self._samples = None <NEW_LINE> self._max_size = params['MAX_SIZE'...
Коллекция изображений, поддерживает различные форматы: BBOX_JSON_MARKING - изображения с разметкой в json (см. loaders.load_bboxes_dataset_with_json_marking) IMAGES_DIR - директория с изображениями в форматах jpg, png, jpeg без разметки
6259906899cbb53fe683267e
class ChooseLev(pygame.sprite.Sprite): <NEW_LINE> <INDENT> def __init__(self, spriteCho, world): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.choice = world <NEW_LINE> pygame.sprite.Sprite.__init__(self) <NEW_LINE> sprite_sheet = SpriteSheet("Terrain.png") <NEW_LINE> image = sprite_sheet.get_image(spriteCho[0...
Portal user can choose
62599068ac7a0e7691f73c7f
class WorldAssemblyResignation(Action, WorldAssembly): <NEW_LINE> <INDENT> def __init__(self, text, params): <NEW_LINE> <INDENT> match = re.match( '@@(.+?)@@ resigned from the World Assembly.', text ) <NEW_LINE> if not match: <NEW_LINE> <INDENT> raise _ParseError <NEW_LINE> <DEDENT> self.agent = aionationstates.Nation(...
A nation resigning from World Assembly.
6259906816aa5153ce401c73
class OnTaskWorkflowEmailError(OnTaskServiceException): <NEW_LINE> <INDENT> pass
Raised when an error appears in store_dataframe.
62599068e1aae11d1e7cf3d9
class Div2kConfig(tfds.core.BuilderConfig): <NEW_LINE> <INDENT> def __init__(self, name, **kwargs): <NEW_LINE> <INDENT> if name not in _DATA_OPTIONS: <NEW_LINE> <INDENT> raise ValueError("data must be one of %s" % _DATA_OPTIONS) <NEW_LINE> <DEDENT> description = kwargs.get("description", "Uses %s data." % name) <NEW_LI...
BuilderConfig for Div2k.
62599068cc0a2c111447c69d
class CompressMiddleware(object): <NEW_LINE> <INDENT> def __init__(self, app, conf): <NEW_LINE> <INDENT> self.app = app <NEW_LINE> self.conf = conf <NEW_LINE> self.compress_suffix = conf.get('compress_suffix', '') <NEW_LINE> <DEDENT> def __call__(self, env, start_response): <NEW_LINE> <INDENT> request = Request(env) <N...
Compress middleware used for object compression
62599068a8370b77170f1b60
class pickled_method(object): <NEW_LINE> <INDENT> def __init__(self, file, name): <NEW_LINE> <INDENT> self._file = file <NEW_LINE> self._name = name <NEW_LINE> <DEDENT> def __call__(self, function): <NEW_LINE> <INDENT> return Picklize(function, self._file, self._name)
Pickles the result of the method (ignoring arguments) and uses this if possible on the next call.
625990687047854f46340b4f
class Software(object): <NEW_LINE> <INDENT> def __init__(self, software): <NEW_LINE> <INDENT> self.kind = get_string(software.SoftwareKind) <NEW_LINE> self.producer = get_string(software.SoftwareProducer) <NEW_LINE> self.description = get_string(software.Description) <NEW_LINE> self.version = get_string(software.Versio...
Represents a version of a device. This can be used to describe any versionable portion of a device, and not just software. Mandatory fields: :ivar string description: A description of the software (such as the name). :ivar string version: The software version. Optional fields: :ivar string kind: The type of the so...
625990684a966d76dd5f068e
class ThreadedSSHClient: <NEW_LINE> <INDENT> def __init__(self, host_file): <NEW_LINE> <INDENT> self.host_file = host_file <NEW_LINE> self.lock_obj = threading.Lock() <NEW_LINE> self.__parse_host_file() <NEW_LINE> <DEDENT> def __parse_host_file(self): <NEW_LINE> <INDENT> tree = et.parse(self.host_file) <NEW_LINE> threa...
mian thread
6259906845492302aabfdc77
class PlacementZone(CloudResource): <NEW_LINE> <INDENT> __metaclass__ = ABCMeta <NEW_LINE> @abstractproperty <NEW_LINE> def region_name(self): <NEW_LINE> <INDENT> pass
Represents a placement zone. A placement zone is contained within a Region.
62599068796e427e5384ff11
class Precision(): <NEW_LINE> <INDENT> def __call__(self, pos_score, neg_score): <NEW_LINE> <INDENT> scores = torch.cat((pos_score[:, 1], neg_score[:, 1]), 0) <NEW_LINE> topk = torch.topk(scores, pos_score.size(0))[1] <NEW_LINE> prec = (topk < pos_score.size(0)).float().sum() / (pos_score.size(0) + 1e-8) <NEW_LINE> ret...
不太明白含义
6259906801c39578d7f14302
class ServiceRPC: <NEW_LINE> <INDENT> def __init__(self, core_client): <NEW_LINE> <INDENT> self.__common_client = _CommonClient(core_client) <NEW_LINE> <DEDENT> def add(self, name="", params={}): <NEW_LINE> <INDENT> return self.__common_client._add('add-service-rpc', name, params) <NEW_LINE> <DEDENT> def show(self, nam...
Manage RPC services.
625990683317a56b869bf110
class BeamModel: <NEW_LINE> <INDENT> def __init__(self, span, n_support_xx=0, n_support_yy=0): <NEW_LINE> <INDENT> self._span = span <NEW_LINE> self._n_support_xx = n_support_xx <NEW_LINE> self._n_support_yy = n_support_yy <NEW_LINE> self.load_case_xx = [] <NEW_LINE> self.load_case_yy = [] <NEW_LINE> <DEDENT> @property...
はりモデルのクラス
62599068627d3e7fe0e08624
class CmdRest(Command): <NEW_LINE> <INDENT> key = "rest" <NEW_LINE> help_category = "combat" <NEW_LINE> def func(self): <NEW_LINE> <INDENT> if is_in_combat(self.caller): <NEW_LINE> <INDENT> self.caller.msg("You can't rest while you're in combat.") <NEW_LINE> return <NEW_LINE> <DEDENT> self.caller.db.hp = self.caller.db...
Recovers damage. Usage: rest Resting recovers your HP to its maximum, but you can only rest if you're not in a fight.
625990688e7ae83300eea829
class Settings(AppSettings): <NEW_LINE> <INDENT> THUMBNAIL_DEBUG = False <NEW_LINE> THUMBNAIL_DEFAULT_STORAGE = ( 'easy_thumbnails.storage.ThumbnailFileSystemStorage') <NEW_LINE> THUMBNAIL_MEDIA_ROOT = '' <NEW_LINE> THUMBNAIL_MEDIA_URL = '' <NEW_LINE> THUMBNAIL_BASEDIR = '' <NEW_LINE> THUMBNAIL_SUBDIR = '' <NEW_LINE> T...
These default settings for easy-thumbnails can be specified in your Django project's settings module to alter the behaviour of easy-thumbnails.
6259906899cbb53fe6832680
class Angle(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.type = int <NEW_LINE> self.atom = [] <NEW_LINE> <DEDENT> def read(self, input, index): <NEW_LINE> <INDENT> index = self._read_type(input, index) <NEW_LINE> index = self._read_atom(input, index) <NEW_LINE> if (index != len(input)): <NE...
stores, reads and writes a LAMMPS angle
6259906856b00c62f0fb4069
class ListingViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Listing.objects.all().order_by('-time') <NEW_LINE> serializer_class = ListingSerializer
API endpoint that allows listings to be viewed or edited.
6259906826068e7796d4e0d5
class MessageCountDetails(Model): <NEW_LINE> <INDENT> _validation = { 'active_message_count': {'readonly': True}, 'dead_letter_message_count': {'readonly': True}, 'scheduled_message_count': {'readonly': True}, 'transfer_message_count': {'readonly': True}, 'transfer_dead_letter_message_count': {'readonly': True}, } <NEW...
Message Count Details. Variables are only populated by the server, and will be ignored when sending a request. :ivar active_message_count: Number of active messages in the queue, topic, or subscription. :vartype active_message_count: long :ivar dead_letter_message_count: Number of messages that are dead lettered. :...
62599068a8370b77170f1b61
class BCardSite(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = _('businesscard') <NEW_LINE> verbose_name_plural = _('businesscards') <NEW_LINE> unique_together = ('user', 'name') <NEW_LINE> <DEDENT> user = models.ForeignKey(User) <NEW_LINE> name = models.SlugField() <NEW_LINE> default...
Represetnts a single site a user owns.
625990686e29344779b01dee
class BlNode: <NEW_LINE> <INDENT> DEBUG_NODES_IDS = {'SvDebugPrintNode', 'SvStethoscopeNode'} <NEW_LINE> def __init__(self, node): <NEW_LINE> <INDENT> self.data = node <NEW_LINE> <DEDENT> @property <NEW_LINE> def properties(self) -> List[BPYProperty]: <NEW_LINE> <INDENT> node_properties = self.data.bl_rna.__annotations...
Wrapping around ordinary node for extracting some its information
62599068be8e80087fbc0826
class TestStreamingRFC2(PartialFitTests, unittest.TestCase): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def setUpClass(cls): <NEW_LINE> <INDENT> cls.n_samples = 1000 <NEW_LINE> cls.x, cls.y = sklearn.datasets.make_blobs(n_samples=int(2e4), random_state=0, n_features=40, centers=2, cluster_std=100) <NEW_LINE> cls.mod =...
Test SRFC with single estimator per chunk with "random forest style" max features. ie, subset. Total models limited to 39.
625990683d592f4c4edbc67b
class SpeechEventType(enum.IntEnum): <NEW_LINE> <INDENT> SPEECH_EVENT_UNSPECIFIED = 0 <NEW_LINE> END_OF_SINGLE_UTTERANCE = 1
Indicates the type of speech event. Attributes: SPEECH_EVENT_UNSPECIFIED (int): No speech event specified. END_OF_SINGLE_UTTERANCE (int): This event indicates that the server has detected the end of the user's speech utterance and expects no additional speech. Therefore, the server will not process additional ...
62599068adb09d7d5dc0bd07
class TestIssue119(unittest.TestCase): <NEW_LINE> <INDENT> layer = Issues <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> self.proj_dir = os.getcwd() <NEW_LINE> self.dirpath = tempfile.mkdtemp() <NEW_LINE> os.chdir(self.dirpath) <NEW_LINE> self.repo = git.Repo.init(self.dirpath) <NEW_LINE> <DEDENT> def tearDown(self): ...
Limiting settings to keys should require a section
625990684f88993c371f10ed
class SessionalConfig(models.Model): <NEW_LINE> <INDENT> unit = models.OneToOneField(Unit, null=False, blank=False, on_delete=models.PROTECT) <NEW_LINE> appointment_start = models.DateField() <NEW_LINE> appointment_end = models.DateField() <NEW_LINE> pay_start = models.DateField() <NEW_LINE> pay_end = models.DateField(...
An object to hold default dates for a given unit. The user can change these whenever the semesters change, and the new contracts will use these as defaults. There should only be one of these per unit, to avoid overwriting someone else's.
625990688da39b475be04988
class signatures(JobProperty): <NEW_LINE> <INDENT> statusOn=True <NEW_LINE> allowedTypes=['list'] <NEW_LINE> StoredValue = []
signatures in MET slice
625990683cc13d1c6d466ee1
class TaskPublisher(Publisher): <NEW_LINE> <INDENT> exchange = default_queue["exchange"] <NEW_LINE> exchange_type = default_queue["exchange_type"] <NEW_LINE> routing_key = conf.DEFAULT_ROUTING_KEY <NEW_LINE> serializer = conf.TASK_SERIALIZER <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(Task...
Publish tasks.
625990687cff6e4e811b71e5
class ExpressRouteCrossConnectionsRoutesTableSummaryListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[ExpressRouteCrossConnectionRoutesTableSummary]'}, 'next_link': {'key': 'nextLink', 'type': ...
Response for ListRoutesTable associated with the Express Route Cross Connections. Variables are only populated by the server, and will be ignored when sending a request. :param value: A list of the routes table. :type value: list[~azure.mgmt.network.v2018_02_01.models.ExpressRouteCrossConnectionRoutesTableSummary] :...
62599068627d3e7fe0e08626
class OSDiskType(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): <NEW_LINE> <INDENT> MANAGED = "Managed" <NEW_LINE> EPHEMERAL = "Ephemeral"
OSDiskType represents the type of an OS disk on an agent pool.
6259906845492302aabfdc7a
@pulumi.output_type <NEW_LINE> class GetCloudletsApplicationLoadBalancerMatchRuleResult: <NEW_LINE> <INDENT> def __init__(__self__, id=None, json=None, match_rules=None): <NEW_LINE> <INDENT> if id and not isinstance(id, str): <NEW_LINE> <INDENT> raise TypeError("Expected argument 'id' to be a str") <NEW_LINE> <DEDENT> ...
A collection of values returned by getCloudletsApplicationLoadBalancerMatchRule.
62599068435de62698e9d5a7
class LogicEFTBotBase: <NEW_LINE> <INDENT> def has_command(self, cmd: str): <NEW_LINE> <INDENT> return cmd in self.commands <NEW_LINE> <DEDENT> def __init__(self): <NEW_LINE> <INDENT> self.commands = {} <NEW_LINE> log.info(f"Loading commands for bot...") <NEW_LINE> for attr in dir(self): <NEW_LINE> <INDENT> obj = getat...
A base class for implementing the EFT bot. Provides the logic for automatically registering commands.
6259906823849d37ff852853
class DummyTag(Tag): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(DummyTag, self).__init__() <NEW_LINE> <DEDENT> def make_output(self, tab=''): <NEW_LINE> <INDENT> return '' <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return ''
ダミータグ 出力されない
625990687d43ff2487427fdf
class PyLayerContext(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.container = None <NEW_LINE> <DEDENT> def save_for_backward(self, *tensors): <NEW_LINE> <INDENT> self.container = tensors <NEW_LINE> <DEDENT> def saved_tensor(self): <NEW_LINE> <INDENT> return self.container
The object of this class is a context that is used in PyLayer to enhance the function. Examples: .. code-block:: python import paddle from paddle.autograd import PyLayer class cus_tanh(PyLayer): @staticmethod def forward(ctx, x): # ctx is a object o...
625990682c8b7c6e89bd4f83
class matGen3D: <NEW_LINE> <INDENT> def __init__(self, matlParams: tuple, eps, del_eps=0) -> None: <NEW_LINE> <INDENT> self.ymod = matlParams[0] <NEW_LINE> self.Nu = matlParams[1] <NEW_LINE> self.eps = eps <NEW_LINE> self.del_eps = del_eps <NEW_LINE> <DEDENT> def LEIsotropic3D(self): <NEW_LINE> <INDENT> const = self.ym...
Defines the material routine
6259906821bff66bcd724403
class QueryResultPassage(): <NEW_LINE> <INDENT> def __init__(self, *, passage_text=None, start_offset=None, end_offset=None, field=None): <NEW_LINE> <INDENT> self.passage_text = passage_text <NEW_LINE> self.start_offset = start_offset <NEW_LINE> self.end_offset = end_offset <NEW_LINE> self.field = field <NEW_LINE> <DED...
A passage query result. :attr str passage_text: (optional) The content of the extracted passage. :attr int start_offset: (optional) The position of the first character of the extracted passage in the originating field. :attr int end_offset: (optional) The position of the last character of the extracted pas...
62599068ac7a0e7691f73c83
class DataProvider: <NEW_LINE> <INDENT> alias = None <NEW_LINE> _connector_cls = None <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._connector = self._connector_init() <NEW_LINE> <DEDENT> def _get_setting(self, name: str) -> str: <NEW_LINE> <INDENT> return get_setting('%s_%s' % (self.alias.upper(), name)) <NE...
База для поставщиков данных.
6259906866673b3332c31b9a
class ReportView(BrowserView): <NEW_LINE> <INDENT> index = ViewPageTemplateFile("template/report_view.pt") <NEW_LINE> def __call__(self): <NEW_LINE> <INDENT> context = self.context <NEW_LINE> request = self.request <NEW_LINE> self.getDB() <NEW_LINE> catalog = context.portal_catalog <NEW_LINE> portal = api.portal.get() ...
Report View
6259906826068e7796d4e0d7
class ArticleSearchClient(BaseSearchClient): <NEW_LINE> <INDENT> SEARCH_TYPE = "articles" <NEW_LINE> SCHEMA = schemas.ArticleSearchSchema <NEW_LINE> def one(self): <NEW_LINE> <INDENT> if len(self.results) > 1: <NEW_LINE> <INDENT> raise exceptions.MultipleResultsFound( "Found %d!" % len(self.results)) <NEW_LINE> <DEDENT...
Can search articles by DOI
62599068a17c0f6771d5d776
class FunctionTests(SimpleGetTest): <NEW_LINE> <INDENT> endpoint = '/rest-api/moron/' <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> Moron.objects.get_or_create(name='bob') <NEW_LINE> Moron.objects.get_or_create(name='paul') <NEW_LINE> super(FunctionTests, self).setUp() <NEW_LINE> <DEDENT> def test_get_list_response(s...
Test top-level functions in the services module
62599068e1aae11d1e7cf3db
class LeaderboardStanding(CachingMixin, models.Model): <NEW_LINE> <INDENT> ranking = models.PositiveIntegerField() <NEW_LINE> user = models.ForeignKey(User) <NEW_LINE> value = models.PositiveIntegerField(default=0) <NEW_LINE> metric = models.CharField(max_length=255, choices=( ('link_clicks', 'Link Clicks'), ('firefox_...
Ranking in a leaderboard for a specific metric.
62599068435de62698e9d5a8
class base_data_reader_with_labels(base_data_reader): <NEW_LINE> <INDENT> def __init__(self,data_path,mode): <NEW_LINE> <INDENT> assert mode == 'TRAIN' or mode == 'PREDICT', 'UNKOW MODE' <NEW_LINE> self.mode = mode <NEW_LINE> if mode == 'TRAIN': <NEW_LINE> <INDENT> self.samples, self.labels = self.load_data_with_label(...
data file line should like: 1,how are you 0,fuck you no title
62599068aad79263cf42ff56
class IntentAdmin(GuardedModelAdmin): <NEW_LINE> <INDENT> list_display = ('space', 'user', 'token', 'requested_on') <NEW_LINE> search_fields = ('space', 'user') <NEW_LINE> fieldsets = [ (None, {'fields': ['user', 'space', 'token']}) ]
This is the administrative view to manage the request from users to participate on the spaces.
62599068097d151d1a2c280b
class Jsondata(): <NEW_LINE> <INDENT> def __init__(self, schemaID=None, xml=None, json=None, title=""): <NEW_LINE> <INDENT> client = MongoClient(MONGODB_URI) <NEW_LINE> db = client['mgi'] <NEW_LINE> self.xmldata = db['xmldata'] <NEW_LINE> self.content = OrderedDict() <NEW_LINE> self.content['schema'] = schemaID <NEW_LI...
Wrapper to manage JSON Documents, like mongoengine would have manage them (but with ordered data)
62599068adb09d7d5dc0bd09
class StopRecording(base_classes.Baserequests): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> base_classes.Baserequests.__init__(self) <NEW_LINE> self.name = "StopRecording"
Stop recording. Will return an `error` if recording is not active.
625990688e71fb1e983bd265
class BaseFileLock: <NEW_LINE> <INDENT> def __init__(self, lock_file, timeout = -1): <NEW_LINE> <INDENT> self._lock_file = lock_file <NEW_LINE> self._lock_file_fd = None <NEW_LINE> self.timeout = timeout <NEW_LINE> self._thread_lock = threading.Lock() <NEW_LINE> self._lock_counter = 0 <NEW_LINE> return None <NEW_LINE> ...
Implements the base class of a file lock.
6259906891f36d47f2231a5e
class Column(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'name': {'required': True}, 'type': {'required': True}, } <NEW_LINE> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): <NEW_LINE> <INDENT> super(Col...
Query result column descriptor. All required parameters must be populated in order to send to Azure. :param name: Required. Column name. :type name: str :param type: Required. Column data type. Possible values include: "string", "integer", "number", "boolean", "object". :type type: str or ~azure.mgmt.resourcegraph.m...
625990688da39b475be0498a
class NotificationsDB(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.TABLE = "Notifications" <NEW_LINE> self.UID = "user_id" <NEW_LINE> self.NTF = "notification" <NEW_LINE> self.DATE = "date" <NEW_LINE> self.sql = MySQL() <NEW_LINE> <DEDENT> def send_notification(self, notification): <NEW_LIN...
Обработка базы данных запросов Notifications: +-----------+----------------+---------+ | user_id | notification | date | +-----------+----------------+---------+
62599068b7558d5895464aff
class TestIoK8sApiCoreV1ResourceQuota(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 testIoK8sApiCoreV1ResourceQuota(self): <NEW_LINE> <INDENT> pass
IoK8sApiCoreV1ResourceQuota unit test stubs
625990688e7ae83300eea82d
class ParameterInt(Parameter): <NEW_LINE> <INDENT> def __init__(self, **kwds): <NEW_LINE> <INDENT> super().__init__(**kwds) <NEW_LINE> self.ptype = "int" <NEW_LINE> <DEDENT> def toType(self, new_value): <NEW_LINE> <INDENT> return int(new_value)
Integer parameter.
62599068f7d966606f74948a
class Debit(Transaction): <NEW_LINE> <INDENT> type = 'debits' <NEW_LINE> uri_gen = wac.URIGen('/debits', '{debit}') <NEW_LINE> def refund(self, **kwargs): <NEW_LINE> <INDENT> return Refund( href=self.refunds.href, **kwargs ).save()
A Debit represents a transfer of funds from a FundingInstrument to your Marketplace's escrow account. A Debit may be created directly, or it will be created as a side-effect of capturing a CardHold. If you create a Debit directly it will implicitly create the associated CardHold if the FundingInstrument supports this.
62599068d486a94d0ba2d75d
class Solution: <NEW_LINE> <INDENT> def getMinimumStringArray(self, tagList, allTags): <NEW_LINE> <INDENT> e = {} <NEW_LINE> ec = 0 <NEW_LINE> need = set(tagList) <NEW_LINE> e = {tag: 0 for tag in need} <NEW_LINE> for tag in tagList: <NEW_LINE> <INDENT> e[tag] += 1 <NEW_LINE> ec += 1 <NEW_LINE> <DEDENT> left, right = -...
@param tagList: The tag list. @param allTags: All the tags. @return: Return the answer
625990682ae34c7f260ac887
class TestFilterIdGroupIdUpdatedAtArray(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 testFilterIdGroupIdUpdatedAtArray(self): <NEW_LINE> <INDENT> pass
FilterIdGroupIdUpdatedAtArray unit test stubs
6259906823849d37ff852855
class A: <NEW_LINE> <INDENT> def __init__(self, value, max_valuse=None, step=1): <NEW_LINE> <INDENT> self.step = step <NEW_LINE> if max_valuse is None: <NEW_LINE> <INDENT> self.value = -self.step <NEW_LINE> self.max_value = value <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self.value = value - self.step <NEW_LINE> se...
实现range函数
625990684e4d562566373ba6
class PivotSuggestions(Model): <NEW_LINE> <INDENT> _validation = { 'pivot': {'required': True}, 'suggestions': {'required': True}, } <NEW_LINE> _attribute_map = { 'pivot': {'key': 'pivot', 'type': 'str'}, 'suggestions': {'key': 'suggestions', 'type': '[Query]'}, } <NEW_LINE> def __init__(self, *, pivot: str, suggestion...
Defines the pivot segment. All required parameters must be populated in order to send to Azure. :param pivot: Required. The segment from the original query to pivot on. :type pivot: str :param suggestions: Required. A list of suggested queries for the pivot. :type suggestions: list[~azure.cognitiveservices.search.im...
6259906821bff66bcd724405
class M4(AutotoolsPackage): <NEW_LINE> <INDENT> homepage = "https://www.gnu.org/software/m4/m4.html" <NEW_LINE> url = "https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.gz" <NEW_LINE> version('1.4.18', 'a077779db287adf4e12a035029002d28') <NEW_LINE> version('1.4.17', 'a5e9954b1dae036762f7b13673a2cf76') <NEW_LINE> patch('gnu...
GNU M4 is an implementation of the traditional Unix macro processor.
625990682c8b7c6e89bd4f85
class colors: <NEW_LINE> <INDENT> reset='\033[0m' <NEW_LINE> bold='\033[01m' <NEW_LINE> red='\033[31m' <NEW_LINE> cyan='\033[36m' <NEW_LINE> yellow='\033[93m'
pretty terminal colors
625990687c178a314d78e7bb
class Hsts_preloading(Hsts_base): <NEW_LINE> <INDENT> stix = Bundled(mitigation_object=load_mitigation("HSTS_NOT_PRELOADED")) <NEW_LINE> def _get_logger(self): <NEW_LINE> <INDENT> return Logger("Hsts Not Preloaded") <NEW_LINE> <DEDENT> def _set_arguments(self): <NEW_LINE> <INDENT> self._arguments = self._instance.HSTSP...
Analysis of the HSTS Preloading status
6259906892d797404e38972d
class XpathUtil(): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def getRoot(html): <NEW_LINE> <INDENT> return etree.HTML(html) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def getNodes(node,xpath): <NEW_LINE> <INDENT> return node.xpath(xpath) <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def getNode(node,xpath): <NEW_LI...
Xpath工具类
6259906826068e7796d4e0d9
class StreamTagger(CopyStreamResult): <NEW_LINE> <INDENT> def __init__(self, targets, add=None, discard=None): <NEW_LINE> <INDENT> super(StreamTagger, self).__init__(targets) <NEW_LINE> self.add = frozenset(add or ()) <NEW_LINE> self.discard = frozenset(discard or ()) <NEW_LINE> <DEDENT> def status(self, *args, **kwarg...
Adds or discards tags from StreamResult events.
625990688a43f66fc4bf3931
class AdaptiveConcatPool2d(nn.Module): <NEW_LINE> <INDENT> def __init__(self, output_size=None): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.output_size = output_size or 1 <NEW_LINE> self.ap = nn.AdaptiveAvgPool2d(self.output_size) <NEW_LINE> self.mp = nn.AdaptiveMaxPool2d(self.output_size) <NEW_LINE> <DEDEN...
Layer that concats `AdaptiveAvgPool2d` and `AdaptiveMaxPool2d`.
62599068a8370b77170f1b65
class restrictionMiddleware(MiddlewareMixin): <NEW_LINE> <INDENT> def process_view(self,request,view_func,view_args,view_kwargs): <NEW_LINE> <INDENT> modulename=view_func.__module__ <NEW_LINE> user=request.user <NEW_LINE> if user.is_authenticated: <NEW_LINE> <INDENT> if user.user_type == "1": <NEW_LINE> <INDENT> if mod...
For restricting the user to view only pages they are supposed to
62599068a17c0f6771d5d777
class AbstractJointFacultyMembership(Model): <NEW_LINE> <INDENT> _limits = models.Q( app_label=swapper.get_model_name('kernel', 'Department').split('.')[0], model='department', ) | models.Q( app_label=swapper.get_model_name('kernel', 'Centre').split('.')[0], model='centre', ) <NEW_LINE> entity_content_type = models.For...
This model holds information pretaining to department/centre and designation of joint faculty members.
6259906899cbb53fe6832685
class DeploymentTargetupdate(object): <NEW_LINE> <INDENT> def __init__(self, hosts=None, type=None, name=None): <NEW_LINE> <INDENT> self.swagger_types = { 'hosts': 'list[DeploymentTargetHostsupdate]', 'type': 'str', 'name': 'str' } <NEW_LINE> self.attribute_map = { 'hosts': 'hosts', 'type': 'type', 'name': 'name' } <NE...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
625990687b180e01f3e49c34
class ConjugacyClassGAP(ConjugacyClass): <NEW_LINE> <INDENT> def __init__(self, group, element): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self._gap_group = group._gap_() <NEW_LINE> self._gap_representative = element._gap_() <NEW_LINE> <DEDENT> except (AttributeError, TypeError): <NEW_LINE> <INDENT> try: <NEW_LINE> ...
Class for a conjugacy class for groups defined over GAP. Intended for wrapping GAP methods on conjugacy classes. INPUT: - ``group`` -- the group in which the conjugacy class is taken - ``element`` -- the element generating the conjugacy class EXAMPLES:: sage: G = SymmetricGroup(4) sage: g = G((1,2,3,4)) ...
62599068d268445f2663a72d
class RpcHandler(tornado.web.RequestHandler): <NEW_LINE> <INDENT> @gen.coroutine <NEW_LINE> def post(self): <NEW_LINE> <INDENT> tega_id = self.get_argument('tega_id') <NEW_LINE> path = self.get_argument('path') <NEW_LINE> args = kwargs = None <NEW_LINE> if self.request.body: <NEW_LINE> <INDENT> body = tornado.escape.js...
RPC (Remote Procedure Call).
625990683eb6a72ae038be01
class SubnetGetAllRsp(ResponsePacket): <NEW_LINE> <INDENT> def __init__(self, raw_data): <NEW_LINE> <INDENT> __data = {} <NEW_LINE> __data["subnet_key_index"] = raw_data[:94] <NEW_LINE> raw_data = raw_data[94:] <NEW_LINE> assert(len(raw_data) == 0) <NEW_LINE> super(SubnetGetAllRsp, self).__init__("SubnetGetAll", 0x95, ...
Response to a(n) SubnetGetAll command.
62599068796e427e5384ff17
class TextValue(CellValue): <NEW_LINE> <INDENT> def __init__(self, value: str): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> if not (isinstance(value, str) and len(value) > 0 and value[0] == "'"): <NEW_LINE> <INDENT> raise ValueError(f'Значение "{value}" не является текстом!') <NEW_LINE> <DEDENT> self._value: str ...
Текст. Начинается с символа '
62599068baa26c4b54d50a46
@admin.register(models.OrderUpdate) <NEW_LINE> class OrderUpdateAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> fields = ("started_at", "status", "completed_at") <NEW_LINE> readonly_fields = ("started_at",) <NEW_LINE> list_display = ("__str__", "status", "started_at", "completed_at") <NEW_LINE> list_editable = ("status",)...
Admin for the OrderUpdate models.
6259906891f36d47f2231a5f
class CollatedLabelDefinitions(object): <NEW_LINE> <INDENT> openapi_types = { 'worksheet': 'LabelDefinitions', 'user': 'LabelDefinitions', 'tenant': 'LabelDefinitions' } <NEW_LINE> attribute_map = { 'worksheet': 'worksheet', 'user': 'user', 'tenant': 'tenant' } <NEW_LINE> def __init__(self, worksheet=None, user=None, t...
NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech Do not edit the class manually.
62599068fff4ab517ebcefbc
class MmsInstanceInfoList(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Total = None <NEW_LINE> self.List = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.Total = params.get("Total") <NEW_LINE> if params.get("List") is not None: <NEW_LINE> <INDENT> s...
彩信实例状态列表
625990687d847024c075db7a
class DetectedTerms(Model): <NEW_LINE> <INDENT> _attribute_map = { 'index': {'key': 'Index', 'type': 'int'}, 'original_index': {'key': 'OriginalIndex', 'type': 'int'}, 'list_id': {'key': 'ListId', 'type': 'int'}, 'term': {'key': 'Term', 'type': 'str'}, } <NEW_LINE> def __init__(self, *, index: int=None, original_index:...
Detected Terms details. :param index: Index(Location) of the detected profanity term in the input text content. :type index: int :param original_index: Original Index(Location) of the detected profanity term in the input text content. :type original_index: int :param list_id: Matched Terms list Id. :type list_id: in...
6259906838b623060ffaa422
class SBEnvironment(object): <NEW_LINE> <INDENT> thisown = 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> _lldb.SBEnvironment_swiginit(self, _lldb.new_SBEnvironment(*args)) <NEW_LINE> <DED...
Represents the environment of a certain process. Example: for entry in lldb.debugger.GetSelectedTarget().GetEnvironment().GetEntries(): print(entry)
62599068d6c5a102081e38c8
class SchemaValidation: <NEW_LINE> <INDENT> def __init__(self, spec_path): <NEW_LINE> <INDENT> self._spec_dict = load(open(spec_path, mode="r"), Loader=FullLoader) <NEW_LINE> self._schemas = dict() <NEW_LINE> for key, value in self._spec_dict["definitions"].items(): <NEW_LINE> <INDENT> self._schemas[key] = compile(valu...
A Swagger validator for Flask request bodies This validator does not follow references in the schema. To be able to use it with schemas including $ref keys, schemas should be bundled by dereferencing all keys. https://www.npmjs.com/package/swagger-cli can be used for this purpose. Ex: swagger-cli bundle -r -o swagger...
62599068d486a94d0ba2d75f
class DevJiraConfig(JiraConfig): <NEW_LINE> <INDENT> FLASK_ENV = 'development' <NEW_LINE> LOGGING_LEVEL = 'DEBUG' <NEW_LINE> DEBUG = True <NEW_LINE> TESTING = True <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self._jira_url = None <NEW_LINE> self._jira_access_token = None <NEW_LINE> self._jira_access_token_secret...
Development Jira config.
625990687d43ff2487427fe1
class TestJoinClusterParameters(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 testJoinClusterParameters(self): <NEW_LINE> <INDENT> pass
JoinClusterParameters unit test stubs
625990687c178a314d78e7bc
class Admin(User): <NEW_LINE> <INDENT> def __init__(self, first_name, last_name, username, sex, age, privileges): <NEW_LINE> <INDENT> super().__init__(first_name, last_name, username, sex, age) <NEW_LINE> self.privileges = privileges <NEW_LINE> <DEDENT> def show_privileges(self): <NEW_LINE> <INDENT> for privilege in se...
Model of a user that has extra privileges over regular users.
6259906844b2445a339b7530
class PollingThread(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, q_visibility, logging): <NEW_LINE> <INDENT> threading.Thread.__init__(self) <NEW_LINE> self.logging = logging <NEW_LINE> self.timestamp = None <NEW_LINE> self.gpio_value = None <NEW_LINE> self.q_visibility = q_visibility <NEW_LINE> GPIO.setmo...
This thread will keep a checking the On/Off status of the main switch. If - On: The GUI of the launcher will be shown. - Off: The GUI of the launcher will be hidden.
62599068cc40096d6161adb1
class LSTMCombinerNetwork(nn.Module): <NEW_LINE> <INDENT> def __init__(self, embedding_dim, num_layers, dropout): <NEW_LINE> <INDENT> super(LSTMCombinerNetwork, self).__init__() <NEW_LINE> self.embedding_dim = embedding_dim <NEW_LINE> self.num_layers = num_layers <NEW_LINE> self.use_cuda = False <NEW_LINE> self.mlplstm...
A combiner network that does a sequence model over states, rather than just some simple encoder like above. Input: 2 embeddings, the head embedding and modifier embedding Output: Concatenate the 2 embeddings together and do one timestep of the LSTM, returning the hidden state, which will be placed on the stack...
6259906826068e7796d4e0db
class _Coordinates: <NEW_LINE> <INDENT> def __init__(self, beg=0, end=0, sep=0): <NEW_LINE> <INDENT> self.beg = beg <NEW_LINE> self.end = end <NEW_LINE> self.sep = sep
Define the coordinates of a table's columns. The coordinates specify a location on the screen and are referred to as screen coordinates. They define the range occupied by one column of a table (table column refers to a column in a table in a database). Instance variables: beg: The screen column at which the tabl...
625990683617ad0b5ee078f4