code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class AttractionPoint(object): <NEW_LINE> <INDENT> def __init__(self, address, metric, node): <NEW_LINE> <INDENT> self._address = address <NEW_LINE> self.metric = metric <NEW_LINE> self.node = node <NEW_LINE> self.advertized = False <NEW_LINE> self.ttl = CFG.get(DEFAULTSECT, 'fake_lsa_ttl') <NEW_LINE> <DEDENT> @propert...
An attraction point for a fibbing route
62598ee4d58c6744b42db5e5
class TerminologyCapabilitiesExpansion(backboneelement.BackboneElement): <NEW_LINE> <INDENT> resource_type = "TerminologyCapabilitiesExpansion" <NEW_LINE> def __init__(self, jsondict=None, strict=True): <NEW_LINE> <INDENT> self.hierarchical = None <NEW_LINE> self.incomplete = None <NEW_LINE> self.paging = None <NEW_LIN...
Information about the [ValueSet/$expand](valueset-operation-expand.html) operation.
62598ee4c432627299fa1614
class GraphProblemStochastic(GraphProblem): <NEW_LINE> <INDENT> def result(self, state, action): <NEW_LINE> <INDENT> return self.graph.get(state, action) <NEW_LINE> <DEDENT> def path_cost(): <NEW_LINE> <INDENT> raise NotImplementedError
A version of GraphProblem where an action can lead to nondeterministic output i.e. multiple possible states. Define the graph as dict(A = dict(Action = [[<Result 1>, <Result 2>, ...], <cost>], ...), ...) A the dictionary format is different, make sure the graph is created as a directed graph.
62598ee4498bea3a75a56193
class ExcAC8B(ExcitationSystem): <NEW_LINE> <INDENT> kdr = db.FloatProperty() <NEW_LINE> tr = Seconds <NEW_LINE> e1 = db.FloatProperty() <NEW_LINE> e2 = db.FloatProperty() <NEW_LINE> kir = db.FloatProperty() <NEW_LINE> kc = db.FloatProperty() <NEW_LINE> vrmax = db.FloatProperty() <NEW_LINE> ka = db.FloatProperty() <NEW...
IEEE (2005) AC8B Model The AVR in this model consists of PID control, with separate constants for the proportional (<i>KPR</i>), integral (<i>KIR</i>), and derivative (<i>KDR</i>) gains. The representation of the brushless exciter (<i>TE</i>, <i>KE</i>, <i>SE</i>, <i>KC</i>, <i>KD</i>) is similar to the model Type AC2...
62598ee463d6d428bbee0e2c
class Customer(object): <NEW_LINE> <INDENT> def __init__(self, id, num_of_floors): <NEW_LINE> <INDENT> self.id = id <NEW_LINE> self.start_floor = randint(1, num_of_floors) <NEW_LINE> self.end_floor = randint(1, num_of_floors) <NEW_LINE> if self.end_floor == self.start_floor and self.end_floor == num_of_floors: <NEW_LIN...
A customer class. A customer has an ID, start floor number, and end floor number.
62598ee4d7e4931a7ef3a6fb
class QuestionPermission(permissions.BasePermission): <NEW_LINE> <INDENT> def has_permission(self, request, view): <NEW_LINE> <INDENT> if view.action in ['list', 'retrieve']: <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> <DEDENT> def has_object_permission...
List : anyone Create : X Retrieve : anyone Update : X Partial update : X Destroy : X
62598ee4cc0a2c1114479660
class Order(db.Model): <NEW_LINE> <INDENT> __tablename__ = 'orders' <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> customer_id = db.Column(db.Integer, ForeignKey('users.id')) <NEW_LINE> shop_id = db.Column(db.Integer, ForeignKey('shops.id')) <NEW_LINE> note = db.Column(db.String(120)) <NEW_LINE> qu...
order models
62598ee4bd1bec0571e143fa
@benchmark.Owner(emails=['perezju@chromium.org']) <NEW_LINE> class DualBrowserBenchmark(memory._MemoryInfra): <NEW_LINE> <INDENT> options = {'pageset_repeat': 5} <NEW_LINE> @classmethod <NEW_LINE> def Name(cls): <NEW_LINE> <INDENT> return 'memory.dual_browser_test' <NEW_LINE> <DEDENT> def CreateStorySet(self, options):...
Measures memory usage while interacting with two different browsers. The user story involves going back and forth between doing Google searches on a webview-based browser (a stand in for the Search app), and loading pages on a select browser.
62598ee47d847024c075aa2c
class Nmap_LAN(rootfs_boot.RootFSBootTest): <NEW_LINE> <INDENT> def recover(self): <NEW_LINE> <INDENT> lan = self.dev.lan <NEW_LINE> lan.sendcontrol("c") <NEW_LINE> <DEDENT> def runTest(self): <NEW_LINE> <INDENT> board = self.dev.board <NEW_LINE> lan = self.dev.lan <NEW_LINE> lan.sendline( "nmap -sS -A -v -p 1-10000 %s...
Ran nmap port scanning tool on LAN interface.
62598ee432920d7e50bc468a
class TestDumplingHub: <NEW_LINE> <INDENT> def test_init_default(self, mocker): <NEW_LINE> <INDENT> baked_out_now = datetime.datetime.now() <NEW_LINE> mock_datetime = mocker.patch('datetime.datetime') <NEW_LINE> mock_datetime.now.return_value = baked_out_now <NEW_LINE> hub = DumplingHub() <NEW_LINE> assert hub.address ...
Test the DumplingHub class.
62598ee466673b3332c2ea05
class Route(object): <NEW_LINE> <INDENT> def __init__(self,app): <NEW_LINE> <INDENT> self.app = app <NEW_LINE> self.allRouteFunc = [] <NEW_LINE> self.routeMap = dict() <NEW_LINE> self.__route() <NEW_LINE> <DEDENT> def __addRoute(self,func): <NEW_LINE> <INDENT> method = func._method <NEW_LINE> path = func._path <NEW_LIN...
搜索全局路由函数注册
62598ee444b2445a339b5c96
@six.add_metaclass(BasicTestsMetaclass) <NEW_LINE> class ResourceItemTests(BaseWebAPITestCase): <NEW_LINE> <INDENT> fixtures = ['test_users'] <NEW_LINE> test_http_methods = ('DELETE', 'PUT') <NEW_LINE> sample_api_url = 'users/<username>/watched/review-groups/<id>/' <NEW_LINE> resource = resources.watched_review_group <...
Testing the WatchedReviewGroupResource item API tests.
62598ee497e22403b383954e
class MLP_LeNetMNIST(nn.Module): <NEW_LINE> <INDENT> def __init__(self, input_nc, input_width, input_height, dropout_prob=0.0, **kwargs): <NEW_LINE> <INDENT> super(MLP_LeNetMNIST, self).__init__() <NEW_LINE> self.dropout_prob = dropout_prob <NEW_LINE> ngf = input_nc*input_width*input_height <NEW_LINE> self.fc1 = nn.Lin...
The last fully connected part of LeNet MNIST: https://github.com/BVLC/caffe/blob/master/examples/mnist/lenet.prototxt
62598ee42ae34c7f260a9745
class DeleteTableIndexRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ClusterId = None <NEW_LINE> self.SelectedTables = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.ClusterId = params.get("ClusterId") <NEW_LINE> if params.get("SelectedTables"...
DeleteTableIndex请求参数结构体
62598ee4fbf16365ca792701
class buffer: <NEW_LINE> <INDENT> anchor_position = minecraft.Vec3(0,0,0) <NEW_LINE> last_message = '' <NEW_LINE> offscreen = [] <NEW_LINE> onscreen = [] <NEW_LINE> def __init__(self, anchor_position): <NEW_LINE> <INDENT> self.anchor_position = anchor_position <NEW_LINE> <DEDENT> def render(self, message): <NEW_LINE> <...
Double-buffer a voxel message for Minecraft. To improve performance, only changes are rendered.
62598ee4d486a94d0ba2a62a
class Middleware(object): <NEW_LINE> <INDENT> def __init__(self, application): <NEW_LINE> <INDENT> self.application = application <NEW_LINE> <DEDENT> def process_request(self, req): <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> def process_response(self, response): <NEW_LINE> <INDENT> return response <NEW_LINE> <...
Base WSGI middleware wrapper. These classes require an application to be initialized that will be called next. By default the middleware will simply call its wrapped app, or you can override __call__ to customize its behavior.
62598ee4a79ad16197768677
class Modifiers: <NEW_LINE> <INDENT> def __init__(self, all=False, forceCommand=False, debug=False, iterate=False, noSplit=False, preserveStack=False, print=False, autoPrint=False, push=False, reverse=False, split=False): <NEW_LINE> <INDENT> self.all = all <NEW_LINE> self.forceCommand = forceCommand <NEW_LINE> self.deb...
Hold information about command modifiers.
62598ee4925a0f43d25e668b
class QuestionAdmin(admin.ModelAdmin): <NEW_LINE> <INDENT> fieldsets = [ (None, {'fields': ['question_name']}), (None, {'fields': ['question_text']}), ('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}), ] <NEW_LINE> inlines = [AnswerInline] <NEW_LINE> list_display = ('qu...
Custom display of questions and filtering of questions by publication date. Answers can be added inline (3 at a time) to increase efficiency
62598ee492d797404e387eaa
class AxisDeviceEvent(Entity): <NEW_LINE> <INDENT> def __init__(self, event_config): <NEW_LINE> <INDENT> self.axis_event = event_config[CONF_EVENT] <NEW_LINE> self._name = '{}_{}_{}'.format( event_config[CONF_NAME], self.axis_event.event_type, self.axis_event.id) <NEW_LINE> self.location = event_config[ATTR_LOCATION] <...
Representation of a Axis device event.
62598ee45166f23b2e241a35
class UnauthorizedResponseMixin: <NEW_LINE> <INDENT> def unauthorized_response(self, text: str = 'Unauthorized', code: int = 403) -> HttpResponse: <NEW_LINE> <INDENT> return HttpResponse(text, status=code)
A mixin that can be used to send an unauthorized response to the user
62598ee421a7993f00c645cb
class TrueCheck(BaseCheck): <NEW_LINE> <INDENT> def __str__(self): <NEW_LINE> <INDENT> return '@' <NEW_LINE> <DEDENT> def __call__(self, target, cred, rule_dict): <NEW_LINE> <INDENT> return True
A policy check that always returns ``True`` (allow).
62598ee4656771135c487cf2
@python_2_unicode_compatible <NEW_LINE> class AddressCd(CalAccessBaseModel): <NEW_LINE> <INDENT> adrid = fields.IntegerField( db_column="ADRID", verbose_name="Address ID", help_text='Address indentification number' ) <NEW_LINE> city = fields.CharField( max_length=500, db_column="CITY", help_text='Address city' ) <NEW_L...
This table holds all addresses for the system. This table can be used for address-based searches and formes the bases for address information desplayed by the AMS.
62598ee457b8e32f52507434
class DateTimeField(Field): <NEW_LINE> <INDENT> def __init__(self, fmt='%Y-%m-%dT%H:%M:%S.%f', **kwargs): <NEW_LINE> <INDENT> super(DateTimeField, self).__init__(**kwargs) <NEW_LINE> self.fmt = fmt <NEW_LINE> <DEDENT> def unwrap(self, instance, value): <NEW_LINE> <INDENT> if isinstance(value, (date, datetime, time)): <...
Dates formatting. From dict data reads all datetime formats without mask. For saving used mask parameter fmt Parameters: fmt(str): mask for saving datetime format
62598ee44527f215b58e8565
class ResidualWrapper(RNNCell): <NEW_LINE> <INDENT> def __init__(self, cell): <NEW_LINE> <INDENT> self._cell = cell <NEW_LINE> <DEDENT> @property <NEW_LINE> def state_size(self): <NEW_LINE> <INDENT> return self._cell.state_size <NEW_LINE> <DEDENT> @property <NEW_LINE> def output_size(self): <NEW_LINE> <INDENT> return s...
RNNCell wrapper that ensures cell inputs are added to the outputs.
62598ee49c8ee8231303f487
class StrftimeSyntaxError(ValueError): <NEW_LINE> <INDENT> BAD_STRFTIME_INPUT = "Invalid strftime/strptime representation: {0}" <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.BAD_STRFTIME_INPUT.format(*self.args)
An error denoting invalid or unsupported strftime/strptime syntax.
62598ee4aad79263cf42ce69
class UserChangeForm(forms.ModelForm): <NEW_LINE> <INDENT> password = ReadOnlyPasswordHashField(label= ("Password"), help_text= ("""Zmiana hasła za pomocą <a href=\"password/\">tego formularza</a>.""")) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = User <NEW_LINE> fields = ('email', 'password', 'username', 'is_act...
A form for updating users. Includes all the fields on the user, but replaces the password field with admin's password hash display field.
62598ee4f7d966606f74664f
class AddProvider(superdesk.Command): <NEW_LINE> <INDENT> option_list = { superdesk.Option('--provider', '-p', dest='provider', required=True), } <NEW_LINE> def run(self, provider): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> data = {} <NEW_LINE> data = superdesk.json.loads(provider) <NEW_LINE> data.setdefault('conten...
Add ingest provider. Example: :: $ python manage.py ingest:provider --provider='{"update_schedule" : { "minutes" : 5, "seconds" : 0 }, "idle_time" : { "hours" : 0, "minutes" : 0 }, "content_expiry" : 2880, "name" : "aap-demo", "source" : "aap-demo", "feeding_service" : "rss", "config" : ...
62598ee438b623060ffa76f6
class IndentedTextSubstitution(TextSubstitution): <NEW_LINE> <INDENT> implements(IStringSubstitution) <NEW_LINE> description = _(u'Body text (indented)') <NEW_LINE> def safe_call(self): <NEW_LINE> <INDENT> text = TextSubstitution.safe_call(self) <NEW_LINE> if text: <NEW_LINE> <INDENT> return "\n".join(["\t" + l for l i...
Like full body text substitution aobve, but with indentation chars
62598ee463d6d428bbee0e2d
class NewServer(Action): <NEW_LINE> <INDENT> __metadata__ = { 'name': 'new_server', 'icon' : 'server', 'string': _(u"New server"), 'shortcut': 'Ctrl+H', } <NEW_LINE> def run(self): <NEW_LINE> <INDENT> Controller['server'].display_form() <NEW_LINE> <DEDENT> def __connect__(self): <NEW_LINE> <INDENT> UI['tree'].currentIt...
Action to add a new server.
62598ee4435de62698e9a435
class GetNodeManufacturerId_args: <NEW_LINE> <INDENT> thrift_spec = ( None, (1, TType.I32, '_homeId', None, None, ), (2, TType.BYTE, '_nodeId', None, None, ), ) <NEW_LINE> def __init__(self, _homeId=None, _nodeId=None,): <NEW_LINE> <INDENT> self._homeId = _homeId <NEW_LINE> self._nodeId = _nodeId <NEW_LINE> <DEDENT> de...
Attributes: - _homeId - _nodeId
62598ee46aa9bd52df0d350e
class BaseSingleton(type): <NEW_LINE> <INDENT> __instances = {} <NEW_LINE> def __call__(cls, *args, **kwargs): <NEW_LINE> <INDENT> if cls not in cls.__instances: <NEW_LINE> <INDENT> cls.__instances[cls] = super(BaseSingleton, cls).__call__(*args, **kwargs) <NEW_LINE> <DEDENT> return cls.__instances[cls] <NEW_LINE> <DED...
Need to write this because supports both Python 2.x and 3.x. class SubClass(with_metaclass('SubClass', Singleton)): pass
62598ee4cc0a2c1114479662
class Scheduler(Thread): <NEW_LINE> <INDENT> def __init__(self, rep_manager): <NEW_LINE> <INDENT> Thread.__init__(self) <NEW_LINE> self.__rep_manager = rep_manager <NEW_LINE> self.workers = [Worker(self, None) for i in range(Settings.max_threads)] <NEW_LINE> self.tasks = [] <NEW_LINE> self.__canceled = False <NEW_LINE>...
Custom task scheduler. This scheduler is built upon threads, handling a pool of tasks. Each task is performed separately, and the whole process is supervised. The scheduler provides a way to easily enqueue and manage tasks.
62598ee4460517430c430ae7
@python_2_unicode_compatible <NEW_LINE> class Definition(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=200) <NEW_LINE> description = models.CharField(max_length=200) <NEW_LINE> created_at = models.DateTimeField(auto_now_add=True) <NEW_LINE> updated_at = models.DateTimeField(auto_now=True) <NEW_...
Definitions page
62598ee467a9b606de54462d
class TestPurchaseCardsLevel3LineItems(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 testPurchaseCardsLevel3LineItems(self): <NEW_LINE> <INDENT> pass
PurchaseCardsLevel3LineItems unit test stubs
62598ee42c8b7c6e89bd1e1f
class hfb6(Base): <NEW_LINE> <INDENT> __tablename__ = 'hfb6' <NEW_LINE> id = Column(Integer, primary_key=True) <NEW_LINE> data = Column(String)
SQLAlchemy Model DB Model
62598ee47d43ff248742672b
class SignConfig(Config): <NEW_LINE> <INDENT> NAME = "sign" <NEW_LINE> IMAGES_PER_GPU = 2 <NEW_LINE> NUM_CLASSES = 26 + 1 <NEW_LINE> STEPS_PER_EPOCH = 100 <NEW_LINE> DETECTION_MIN_CONFIDENCE = 0.9
Configuration for training on the toy dataset. Derives from the base Config class and overrides some values.
62598ee42c8b7c6e89bd1e20
class AdminLog(db.Model): <NEW_LINE> <INDENT> __tablename__ = "adminlog" <NEW_LINE> id = db.Column(db.Integer, primary_key=True) <NEW_LINE> admin_id = db.Column(db.Integer, db.ForeignKey("admin.id")) <NEW_LINE> ip = db.Column(db.String(64)) <NEW_LINE> addtime = db.Column(db.DateTime, index=True, default=datetime.utcnow...
管理员登录日志
62598ee44f88993c371ef816
class MotorCmder: <NEW_LINE> <INDENT> def msg_angle(self, angle=None): <NEW_LINE> <INDENT> msg = servo_pololu() <NEW_LINE> msg.id = self.motor_entry['motorid'] <NEW_LINE> msg.angle = self._saturatedAngle(angle or self.target) <NEW_LINE> msg.speed = self.motor_entry.get('speed', 200) <NEW_LINE> msg.acceleration = self.m...
Represents a partially defined motor command. Builds a ROS msg when given an angle.
62598ee4dd821e528d6d75a5
class Actor(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, username, password, metrics, tasks, log=None, base_url=None, submissions_path=None): <NEW_LINE> <INDENT> threading.Thread.__init__(self) <NEW_LINE> self.username = username <NEW_LINE> self.password = password <NEW_LINE> self.metrics = metrics <NEW_LI...
Class that simulates the behaviour of a user of the system. It performs some requests at randomized times (checking CMS pages, doing submissions, ...), checking for their success or failure. The probability that the users doing actions depends on the value specified in an object called "metrics".
62598ee46e29344779afec90
@as_function <NEW_LINE> class period(IterOnInfs, Bin): <NEW_LINE> <INDENT> exec_name = "periodicity" <NEW_LINE> names = "MNaseSeq", <NEW_LINE> def fun(self, f, genome_dir, out_dir): <NEW_LINE> <INDENT> in_dir, base = PathHelpers.base_name(f["file_path"]) <NEW_LINE> calls = PathHelpers.build_path(base, out_dir, "gff", "...
Calculate the periodicity and phase of the coverages on gene bodies
62598ee432920d7e50bc468d
class VIEW3D_TP_Cursor_to_Active(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "tp_ops.cursor_to_active" <NEW_LINE> bl_label = "3d Cursor to Active" <NEW_LINE> bl_options = {'REGISTER', 'UNDO'} <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> bpy.ops.view3d.snap_cursor_to_active() <NEW_LINE> return {'F...
3D Cursor to Active
62598ee4a79ad16197768679
class ThreadLoop(tornado.ioloop.IOLoop): <NEW_LINE> <INDENT> @contextmanager <NEW_LINE> def background(self): <NEW_LINE> <INDENT> def callback(): <NEW_LINE> <INDENT> if self.running(): <NEW_LINE> <INDENT> if self._handlers.keys() == [self._waker.fileno()]: <NEW_LINE> <INDENT> self.stop() <NEW_LINE> <DEDENT> else: <NEW_...
An IOLoop that can be run in a background thread as a context manager. Example: >>> read_fd, write_fd = os.pipe() >>> loop = ThreadLoop() >>> loop.add_handler(read_fd, process_items, loop.READ) >>> with loop.background(): ... os.write(write_fd, 'some message ') ...
62598ee46fb2d068a7693153
class Order(db.Model): <NEW_LINE> <INDENT> order_id = db.Column(db.Integer, index=True, primary_key=True) <NEW_LINE> user_id = db.Column(db.Integer, db.ForeignKey('user.id')) <NEW_LINE> name = db.Column(db.String(100), index=True, unique=False) <NEW_LINE> email = db.Column(db.String(100), index=True, unique=False) <NEW...
Order model.
62598ee407f4c71912badab5
class MultiChoiceQuiz(ttk.Frame): <NEW_LINE> <INDENT> def __init__(self, parent, answer, choices): <NEW_LINE> <INDENT> if len(choices) > 9: <NEW_LINE> <INDENT> raise ValueError("MultiChoiceQuiz can't have more than 10 choices.") <NEW_LINE> <DEDENT> ttk.Frame.__init__(self, parent) <NEW_LINE> self.config(borderwidth=2, ...
Makes a multiple choice quiz with a max of 10 randomly ordered answer choices. User picks an option and checks with the 'check' button. Allows the user to pick an answer and check as much as they want. input: parent, correct answer(str), alternate answers(list)
62598ee401c39578d7f11409
class WandLibraryVersionError(WandException): <NEW_LINE> <INDENT> pass
Base class for Wand-related ImageMagick version errors. .. versionadded:: 0.3.2
62598ee457b8e32f52507435
class HomePage(BasePage): <NEW_LINE> <INDENT> _profile_locator = '.username.pull-left' <NEW_LINE> @property <NEW_LINE> def _profile(self): <NEW_LINE> <INDENT> return self.driver.find_element_by_css_selector(self._profile_locator) <NEW_LINE> <DEDENT> def __init__(self, driver): <NEW_LINE> <INDENT> super(HomePage, self)....
Page object for Home page It has some limitations because will be use only for validate a successful login.
62598ee421a7993f00c645cd
class NaiveBayesTMD(TravelModeDetector): <NEW_LINE> <INDENT> MODEL_FILENAME = 'model.pkl' <NEW_LINE> CLASSES_FILENAME = 'classes.pkl' <NEW_LINE> DEFAULT_MODEL_PATH = 'nb_tmd' <NEW_LINE> DEFAULT_TRAIN_RATIO = 0.5 <NEW_LINE> DEFAULT_VAL_RATIO = 0.5 <NEW_LINE> DEFAULT_TEST_RATIO = 0.0 <NEW_LINE> def __init__(self, save_pa...
Wrapper that uses NaiveBayes to train a travel mode detector through smartphone sensors
62598ee4498bea3a75a56196
class SpatialAnalysisPersonCountOperation(SpatialAnalysisTypedOperationBase): <NEW_LINE> <INDENT> _validation = { 'type': {'required': True}, 'zones': {'required': True}, } <NEW_LINE> _attribute_map = { 'type': {'key': '@type', 'type': 'str'}, 'debug': {'key': 'debug', 'type': 'str'}, 'calibration_configuration': {'key...
Defines a Spatial Analysis person count operation. This requires the Azure Cognitive Services Spatial analysis module to be deployed alongside the Video Analyzer module, please see https://aka.ms/ava-spatial-analysis for more information. All required parameters must be populated in order to send to Azure. :ivar type...
62598ee4f7d966606f746651
class PreResBottleneck(nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels, stride, conv1_stride): <NEW_LINE> <INDENT> super(PreResBottleneck, self).__init__() <NEW_LINE> mid_channels = out_channels // 4 <NEW_LINE> self.conv1 = preres_conv1x1( in_channels=in_channels, out_channels=mid_channels,...
PreResNet bottleneck block for residual path in PreResNet unit. Parameters: ---------- in_channels : int Number of input channels. out_channels : int Number of output channels. stride : int or tuple/list of 2 int Strides of the convolution. conv1_stride : bool Whether to use stride in the first or the ...
62598ee467a9b606de54462f
class MSTSolution(Solution): <NEW_LINE> <INDENT> def __init__(self, problem): <NEW_LINE> <INDENT> self.problem = problem <NEW_LINE> self.unused = list(problem.search_space.components) <NEW_LINE> self.used = [] <NEW_LINE> self.data = np.zeros([problem.N, problem.N], dtype='int32') <NEW_LINE> self.fx = None <NEW_LINE> se...
Class representing complete or incomplete solutions. An initial solution do not possesses any component, therefore, it is an incomplete solution.
62598ee48e7ae83300ee76f1
class PreconfiguredProduct(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.swagger_types = { 'sku': 'str', 'name': 'str', 'description': 'str', 'price': 'ProductPriceInfo', 'items': 'list[PreconfiguredItem]', 'images': 'list[PreconfiguredProductImage]' } <NEW_LINE> self.attribute_map = { 'sku'...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598ee44e4d562566370a7a
class VersionTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def get_project_name(self): <NEW_LINE> <INDENT> return 'django-ticketoffice' <NEW_LINE> <DEDENT> def get_package_name(self): <NEW_LINE> <INDENT> return 'django_ticketoffice' <NEW_LINE> <DEDENT> def get_version(self, package): <NEW_LINE> <INDENT> module = __i...
Various checks around project's version info.
62598ee4e5267d203ee69f67
@test(depends_on_groups=[groups.REPL_INST_MULTI_CREATE_WAIT], groups=[GROUP, groups.REPL_INST_DELETE]) <NEW_LINE> class ReplicationInstDeleteGroup(TestGroup): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(ReplicationInstDeleteGroup, self).__init__( ReplicationRunnerFactory.instance()) <NEW_LINE> <DE...
Test Replication Instance Delete functionality.
62598ee463b5f9789fe837bf
class Source(object): <NEW_LINE> <INDENT> def __init__(self, source_url, refresh_interval): <NEW_LINE> <INDENT> self.source_url = source_url <NEW_LINE> self.url = urlparse(self.source_url) <NEW_LINE> self.interval = int(refresh_interval) <NEW_LINE> self.last_refresh = 0 <NEW_LINE> self.last_check = 0 <NEW_LINE> self.ch...
Base class for data sources
62598ee4ac7a0e7691f70b78
class RequestParser(object): <NEW_LINE> <INDENT> RE_FIELDS = re.compile('^fields\[(?P<resource>\w+)\]$') <NEW_LINE> @classmethod <NEW_LINE> def parse(cls, querydict): <NEW_LINE> <INDENT> for key in querydict.keys(): <NEW_LINE> <INDENT> if not any((key in JSONAPIQueryDict._fields, cls.RE_FIELDS.match(key))): <NEW_LINE> ...
Rarser for Django request.GET parameters.
62598ee444b2445a339b5c98
class CORMap(GenericMap): <NEW_LINE> <INDENT> def __init__(self, data, header, **kwargs): <NEW_LINE> <INDENT> super().__init__(data, header, **kwargs) <NEW_LINE> self._nickname = "{}-{}".format(self.detector, self.observatory[-1]) <NEW_LINE> self.plot_settings['cmap'] = 'stereocor{det!s}'.format(det=self.detector[-1]) ...
STEREO-SECCHI CORonograph Image Map. Part of the STEREO-SECCHI suite of remote sensing telescopes, COR is a set of two coronographs (COR1, COR2) onboard STEREO. They are both traditional Lyot coronagraphs. The COR1 detectors observes from 1.3 to 4 solar radii while the COR2 detectors observe a range from 2 to 15 sola...
62598ee432920d7e50bc468f
class ExportService(object): <NEW_LINE> <INDENT> def __init__(self, service_name=None, url=None, database_name=None, collection_name=None, index=None, doc_type=None): <NEW_LINE> <INDENT> self.name = str(service_name).lower() <NEW_LINE> if self.name == 'mongo': <NEW_LINE> <INDENT> self.service = MongoService(__database_...
Basic Usage: >> export_service_ = ExportService(service_name='Mongo', database_name='database_name', collection_name='collection_name') >> export_service_.export_data(data=[{'name': 'seray'}])
62598ee4796e427e5384cdfa
class MethodStep(ABC): <NEW_LINE> <INDENT> def __init__(self, initial: Dict={}): <NEW_LINE> <INDENT> self.initial = initial <NEW_LINE> <DEDENT> @property <NEW_LINE> def plot_interaction(self) -> str: <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def getData(cls, model: ModelM...
Use as a template for new MethodStep, MethodStep should update model field: model.steps_data[<class name>], with methodstep specific values (it can be list dict or single value). New MethodStep should be placed in: manager.opperations.methodsteps directory. If the step requires some precofiguration it will be passed vi...
62598ee44428ac0f6e656bb5
class SNET_tradehistory(SNET_BaseTest, ): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> print(" test tradehistory setUp func here") <NEW_LINE> pass <NEW_LINE> <DEDENT> def runTest(self): <NEW_LINE> <INDENT> self.test_tradehistory() <NEW_LINE> <DEDENT> def test_tradehistory(self): <NEW_LINE> <INDENT> rpl777 =...
azure@boxfish:~/workbench/nxtDev/snappy$ ./uTest1.py SNET_tradehistory test tradehistory setUp func here ++++++++++++ ++++++++++++ tradehistory call query json is: {'requestType': 'tradehistory', 'timestamp': ''} ~~~~~~~~~~~~ ~~~~~~~~~~~~ SuperNET rpl777y: {} F =================================================...
62598ee4097d151d1a2bf682
class Spider(NewsSpider): <NEW_LINE> <INDENT> name = "院系/数学" <NEW_LINE> list_urls = [ "http://www2.ouc.edu.cn/math/Ch/NewsList.asp", ] <NEW_LINE> list_extract_scope = "//td[@width='480']" <NEW_LINE> list_extract_field = { 'link': ".//@href", 'title': ".//a/text()", } <NEW_LINE> item_url_pattern = r"http://www2.ouc.edu....
数学科学学院 这个网站的内容链接结尾有分类ID
62598ee42ae34c7f260a974a
class ComputeGlobalOperationsListRequest(messages.Message): <NEW_LINE> <INDENT> filter = messages.StringField(1) <NEW_LINE> maxResults = messages.IntegerField(2, variant=messages.Variant.UINT32, default=500) <NEW_LINE> pageToken = messages.StringField(3) <NEW_LINE> project = messages.StringField(4, required=True)
A ComputeGlobalOperationsListRequest object. Fields: filter: Optional. Filter expression for filtering listed resources. maxResults: Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500. pageToken: Optional. Tag returned by a previous list request truncated by ...
62598ee4925a0f43d25e668f
@api.route("/attachments/<int:attachment_id>/download", endpoint="attachment_download_by_id") <NEW_LINE> @api.param("attachment_id", "attachment id (integer)") <NEW_LINE> @api.doc(security="apikey") <NEW_LINE> @api.response( code=HTTPStatus.NOT_FOUND, description="auto_proc_program_attachment not found." ) <NEW_LINE> c...
Downloads autoproc program attachment file
62598ee40c0af96317c549ff
class Entry(): <NEW_LINE> <INDENT> def __init__(self, line): <NEW_LINE> <INDENT> self.fields = line.rstrip().split("\t") <NEW_LINE> if not self.is_feature(): <NEW_LINE> <INDENT> self.line = line <NEW_LINE> return <NEW_LINE> <DEDENT> self.seqid = self.fields[0] <NEW_LINE> self.source = self.fields[1] <NEW_LINE> self.ft...
Very simplistic representation of a GFF3 entry: a single line of a GFF3 file which may or may not be a complete representation of a genomic feature.
62598ee45166f23b2e241a39
class SonosAlarms(SonosHouseholdCoordinator): <NEW_LINE> <INDENT> def __init__(self, *args: Any) -> None: <NEW_LINE> <INDENT> super().__init__(*args) <NEW_LINE> self.alarms: Alarms = Alarms() <NEW_LINE> self.created_alarm_ids: set[str] = set() <NEW_LINE> <DEDENT> def __iter__(self) -> Iterator: <NEW_LINE> <INDENT> retu...
Coordinator class for Sonos alarms.
62598ee4e64d504609df86f0
class CMAuthenticationForm(forms.Form): <NEW_LINE> <INDENT> password = forms.RegexField(regex=regexp['password'], max_length=255, label=_("Password"), widget=forms.PasswordInput(attrs={'tabindex': '1', 'class': 'required'}), error_messages={'invalid': regexp_text['password']}) <NEW_LINE> def __init__(self, request=None...
Class for <b>login to CM admin's panel</b> form.
62598ee40a50d4780f703a0c
class Create_Axis: <NEW_LINE> <INDENT> def __init__(self, color, opacity, distance = 5, radius=0.05,label=False, sw=0.05, hw=0.2, hl=0.3): <NEW_LINE> <INDENT> self.color = color <NEW_LINE> if label == True: <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> arrow(pos=vector(-distance,0,0), axis=(vec...
Create x,y,z axis PS: Z axis projecting out of the screen
62598ee40c0af96317c54a00
class StandAloneTests(TestCase): <NEW_LINE> <INDENT> @patch('__builtin__.open') <NEW_LINE> def test_login(self, mock_open): <NEW_LINE> <INDENT> mock_open.return_value.read.return_value = "george|bosco\n" <NEW_LINE> self.assertTrue(auth.login('george', 'bosco')) <NEW_LINE> <DEDENT> @patch('__builtin__.open') <NEW_LINE> ...
Test the stand-alone module functions.
62598ee4be383301e0251e3c
class ServerProxy(object): <NEW_LINE> <INDENT> def __init__(self, uri, transport=None, encoding=None, verbose=0, version=None, json_encoder=None): <NEW_LINE> <INDENT> self.location = uri <NEW_LINE> self.trace = verbose <NEW_LINE> self.exceptions = True <NEW_LINE> self.timeout = None <NEW_LINE> self.json_request = self....
JSON RPC Simple Client Service Proxy
62598ee4fff4ab517ebcbe3c
class KeyVerifyResult(Model): <NEW_LINE> <INDENT> _validation = { 'value': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': 'bool'}, } <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> super(KeyVerifyResult, self).__init__(**kwargs) <NEW_LINE> self.value = None
The key verify result. Variables are only populated by the server, and will be ignored when sending a request. :ivar value: True if the signature is verified, otherwise false. :vartype value: bool
62598ee47d847024c075aa31
class ImageSelectorWidget(epflwidgetbase.WidgetBase): <NEW_LINE> <INDENT> name = "image_selector" <NEW_LINE> template_name = "image_selector/image_selector.html" <NEW_LINE> asset_spec = "solute.epfl.widgets:image_selector/static" <NEW_LINE> js_name = ["image_selector.js"] <NEW_LINE> css_name = ["image_selector.css"] <N...
A widget which displays a list/row of images to be selected. The domain consists of dicts with the following keys: id: The unique id of this element (will be passed back as value to the field if the picture is selected) name: optional. The name-tag (creates a small tooltip on the image) preview_img_src: op...
62598ee4627d3e7fe0e054eb
class ACSConv(_ACSConv): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, acs_kernel_split=None, bias=True, padding_mode='zeros'): <NEW_LINE> <INDENT> super().__init__( in_channels, out_channels, kernel_size, stride, padding, dilation, False, 0, g...
Vallina ACS Convolution Args: acs_kernel_split: optional, equally spit if not specified. Other arguments are the same as torch.nn.Conv3d. Examples: >>> import ACSConv >>> x = torch.rand(batch_size, 3, D, H, W) >>> conv = ACSConv(3, 10, kernel_size=3, padding=1) >>> out = conv(x) >>> conv ...
62598ee456ac1b37e6300850
class TestEventSerialization(unittest.TestCase): <NEW_LINE> <INDENT> events = { "event": { "timestamp": "1989-03-11T13:30:01.234567", "file_name": "my_file.py", "line_number": 7, }, } <NEW_LINE> events["line"] = dict(**events["event"]) <NEW_LINE> events["function"] = dict( function_name="some_func", **events["event"] )...
The Event classes
62598ee416aa5153ce3feb60
class Extension: <NEW_LINE> <INDENT> def __init__(self, tunnel=None, **kwargs): <NEW_LINE> <INDENT> self.tunnel = tunnel <NEW_LINE> self.unique_id = kwargs.get('unique_id') <NEW_LINE> self.download_url = kwargs.get('download_url') <NEW_LINE> self.should_download_from_marketplace = self.unique_id not in _NON_...
Extension base class
62598ee467a9b606de544631
class Last24HoursErrorCheck(Resource): <NEW_LINE> <INDENT> @swagger.operation( notes='Get an Inciga2 status (OK, WARNING or ERROR) regarding the number of' ' errors that did happen in the last 24 hours', responseClass=string.__name__, responseMessages=[ { "code": 200, "message": "Success" } ] ) <NEW_LINE> @RestSyncMidd...
Resource to monitor the number of errors that did happen in the last 24 hours.
62598ee430dc7b766599deeb
class Genre(Base): <NEW_LINE> <INDENT> __tablename__ = "genre" <NEW_LINE> id = Column('id', Integer, primary_key=True) <NEW_LINE> series_id = Column(Integer, ForeignKey('series.id')) <NEW_LINE> name = Column('name', String) <NEW_LINE> def __repr__(self): <NEW_LINE> <INDENT> return "<Genre('%s', '%s')>" % (self.id, self...
This class stores information about a genre, assigned to series.
62598ee43539df3088eca916
class StochasticDepthBottleNeck(torch.jit.ScriptModule): <NEW_LINE> <INDENT> expansion = 4 <NEW_LINE> def __init__(self, p, in_channels, out_channels, stride=1): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.p = p <NEW_LINE> self.residual = nn.Sequential( nn.Conv2d(in_channels, out_channels, kernel_size=1, bia...
Residual block for resnet over 50 layers
62598ee44e4d562566370a7c
class Topology(Model): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'created_date_time': {'readonly': True}, 'last_modified': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, 'last_modified': {'k...
Topology of the specified resource group. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: GUID representing the operation id. :vartype id: str :ivar created_date_time: The datetime when the topology was initially created for the resource group. :vartype created_date_...
62598ee48e7ae83300ee76f3
class GaussianGammaMoments(Moments): <NEW_LINE> <INDENT> r <NEW_LINE> def __init__(self, shape): <NEW_LINE> <INDENT> self.shape = shape <NEW_LINE> self.ndim = len(shape) <NEW_LINE> self.dims = (shape, 2*shape, (), ()) <NEW_LINE> super().__init__() <NEW_LINE> <DEDENT> def compute_fixed_moments(self, x_alpha): <NEW_LINE>...
Class for the moments of Gaussian-gamma-ISO variables.
62598ee4ac7a0e7691f70b7a
class EpisodeStatistics: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.record_episode = 0 <NEW_LINE> self.record_episode_time = 0 <NEW_LINE> self.record_kill_count = 0 <NEW_LINE> self.time_last_10 = collections.deque(list(), maxlen=10) <NEW_LINE> self.time_last_100 = collections.deque(list(), maxlen=...
Statistics for printing the status of the game agent and its achievements
62598ee499cbb53fe682f514
class Regex(_KeyLevel): <NEW_LINE> <INDENT> def __init__(self, handle, regex, **kwargs): <NEW_LINE> <INDENT> super(Regex, self).__init__() <NEW_LINE> self.name = handle <NEW_LINE> self._regex = regex <NEW_LINE> self._add_kwargs(**kwargs) <NEW_LINE> self._validate_string(self.name) <NEW_LINE> self._validate_string(s...
A class to store data from a regex
62598ee42eb69b55b15a06bb
class LogisticRegression(object): <NEW_LINE> <INDENT> def __init__(self, input, n_in, n_out): <NEW_LINE> <INDENT> self.theta = theano.shared( value = numpy.zeros(n_in*n_out+n_out) ) <NEW_LINE> self.W = self.theta[0:n_in*n_out].reshape((n_in,n_out)) <NEW_LINE> self.b = self.theta[n_in*n_out:n_in*n_out+n_out] <NEW_LINE> ...
Multi-class Logistic Regression Class The logistic regression is fully described by a weight matrix :math:`W` and bias vector :math:`b`. Classification is done by projecting data points onto a set of hyperplanes, the distance to which is used to determine a class membership probability.
62598ee4d7e4931a7ef3a702
class Category(BaseModelArticle): <NEW_LINE> <INDENT> name = models.CharField(max_length=20, blank=False, null=False, verbose_name='分类') <NEW_LINE> show_in_nav = models.BooleanField(default=False, verbose_name='是否显示在首页次导航中') <NEW_LINE> short_name = models.CharField( max_length=30, blank=False, null=False, unique=True, ...
分类
62598ee4cad5886f8bdc3965
class FiltersForm(Form): <NEW_LINE> <INDENT> area_min = FloatField("Area min", [validators.Optional()]) <NEW_LINE> area_max = FloatField("Area max", [validators.Optional()]) <NEW_LINE> floor_min = FloatField("Floor min", [validators.Optional()]) <NEW_LINE> floor_max = FloatField("Floor max", [validators.Optional()]) <N...
Form on catalog page that filters estate objects
62598ee42ae34c7f260a974c
class sendsms2_result(object): <NEW_LINE> <INDENT> thrift_spec = ( (0, TType.I16, 'success', None, None, ), ) <NEW_LINE> def __init__(self, success=None,): <NEW_LINE> <INDENT> self.success = success <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccel...
Attributes: - success
62598ee401c39578d7f1140d
class Db(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def new(cls, config): <NEW_LINE> <INDENT> cls.config = config <NEW_LINE> cls.conn_initialized = False <NEW_LINE> return cls <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def init(cls, force=False): <NEW_LINE> <INDENT> if force: <NEW_LINE> <INDENT> sys.stdout.w...
Do not instantiate directly. Contains all the methods related to initialization of the environment that the script will be running in.
62598ee4bd1bec0571e143fd
class MatrixError(Exception): <NEW_LINE> <INDENT> pass
Define an exception of different matrix
62598ee47047854f4633da3a
class UpdateAwsCredentialFileOperation(OperationBase): <NEW_LINE> <INDENT> _input_parameters = { ParameterName.AwsAccessKeyId, ParameterName.AwsSecretAccessKey, } <NEW_LINE> _output_parameters = set() <NEW_LINE> def execute(self, parameter_pool): <NEW_LINE> <INDENT> func_matrix = [] <NEW_LINE> for name, _, to_file in C...
Generate AWS credential file if it is not retrieved from local OS environment variables
62598ee430bbd7224646829d
class InputTrajectory(InputValue): <NEW_LINE> <INDENT> default_help = """This class defines how one trajectory file should be output. Between each trajectory tag one string should be given, which specifies what data is to be output.""" <NEW_LINE> default_label = "TRAJECTORY" <NEW_LINE> attribs = {} <NEW_LINE> attribs["...
Simple input class to describe output for trajectories. Storage class for TrajectoryOutput. Attributes: filename: The (base) name of the file to output to. stride: The number of steps that should be taken between outputting the data to file. format: The format of the trajectory output file. cell_uni...
62598ee4236d856c2adc8746
class GrantAccessData(Model): <NEW_LINE> <INDENT> _validation = { 'access': {'required': True}, 'duration_in_seconds': {'required': True}, } <NEW_LINE> _attribute_map = { 'access': {'key': 'access', 'type': 'AccessLevel'}, 'duration_in_seconds': {'key': 'durationInSeconds', 'type': 'int'}, } <NEW_LINE> def __init__(sel...
Data used for requesting a SAS. :param access: Possible values include: 'None', 'Read' :type access: str or :class:`AccessLevel <azure.mgmt.compute.compute.v2017_03_30.models.AccessLevel>` :param duration_in_seconds: Time duration in seconds until the SAS access expires. :type duration_in_seconds: int
62598ee4d58c6744b42db5e9
@add_metaclass(BoxBase) <NEW_LINE> class RecordListBox(object): <NEW_LINE> <INDENT> __display_name__ = 'Search' <NEW_LINE> __template__ = 'record_list' <NEW_LINE> __boxname__ = 'record_list' <NEW_LINE> limit = 5 <NEW_LINE> def __init__(self, query, collection, title, **kwargs): <NEW_LINE> <INDENT> self.query = Query(qu...
Build a box with the content of a search query.
62598ee438b623060ffa76fc
class GCClassifier(lidtk.classifiers.LIDClassifier): <NEW_LINE> <INDENT> def predict(self, text: str) -> str: <NEW_LINE> <INDENT> from google.cloud import translate <NEW_LINE> translate_client = translate.Client() <NEW_LINE> result = translate_client.detect_language(text) <NEW_LINE> return result["language"]
LID with the Google Cloud classifier.
62598ee4baa26c4b54d4d934
class CustomAttention(_BaseAttentionMechanism): <NEW_LINE> <INDENT> def __init__(self, num_units, line_memory, word_memory=None, soft_weight=None, hierarchy=True, line_memory_sequence_length=None, word_memory_sequence_length=None, scale=False, probability_fn=None, score_mask_value=float("-inf"), name="CustomAttention")...
Implements Luong-style (multiplicative) attention scoring. This attention has two forms. The first is standard Luong attention, as described in: Minh-Thang Luong, Hieu Pham, Christopher D. Manning. "Effective Approaches to Attention-based Neural Machine Translation." EMNLP 2015. https://arxiv.org/abs/1508.04025 Th...
62598ee4f548e778e5969bfa
class VistaDecorata(object): <NEW_LINE> <INDENT> permetti_embed = False <NEW_LINE> def contesto(self, contesto): <NEW_LINE> <INDENT> embed = self.permetti_embed and self.request.GET.get('embed', default='false') == 'true' <NEW_LINE> try: <NEW_LINE> <INDENT> contesto.update({'me': self.request.me}) <NEW_LINE> <DEDENT> e...
Questo mixin permette di usare i decoratori sopra nelle class based views Per applicare i decoratori la vista deve essere costruita nel modo seguente: class ListaArticoli(VistaDecorata, ListView): ... @method_decorator(pagina_privata) def dispatch(self, request, *args, **kwargs): return super(Lis...
62598ee41b99ca400228e83f
class LoadBalancerOutboundRuleListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[OutboundRule]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, **kwargs ): <N...
Response for ListOutboundRule API service call. Variables are only populated by the server, and will be ignored when sending a request. :param value: A list of outbound rules in a load balancer. :type value: list[~azure.mgmt.network.v2019_09_01.models.OutboundRule] :ivar next_link: The URL to get the next set of resu...
62598ee416aa5153ce3feb62
class Element(Model): <NEW_LINE> <INDENT> def __init__(self, id: str=None): <NEW_LINE> <INDENT> self.swagger_types = { 'id': str } <NEW_LINE> self.attribute_map = { 'id': 'id' } <NEW_LINE> self._id = id <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from_dict(cls, dikt) -> 'Element': <NEW_LINE> <INDENT> return util.de...
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
62598ee4cc0a2c1114479668
class Feat(object): <NEW_LINE> <INDENT> __ALL_FEATS = list() <NEW_LINE> def __init__(self, name=None, prerequisites=list(), benefit=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.prerequisites = prerequisites <NEW_LINE> self.benefit = benefit <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def available_feats...
:type name: str :type prerequisites: list :type benefit: str
62598ee45fdd1c0f98e5c613
class Style(models.Model): <NEW_LINE> <INDENT> name = models.CharField(_("Name"), max_length=100) <NEW_LINE> synonyms = models.CharField(_("Synonyms"), max_length=255, null=True, blank=True) <NEW_LINE> description = models.TextField(_("Description"), null=True, blank=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDE...
Represent a given beer style, like Koyt, Kluyn, etc.
62598ee466656f66f7d58a46
class FinderCommandExecutor(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(FinderCommandExecutor, self).__init__() <NEW_LINE> <DEDENT> def _execute_finder_command(self, command, shell=False): <NEW_LINE> <INDENT> return subprocess.check_call(command, shell=shell) <NEW_LINE> <DEDENT> def redir...
docstring for FinderCommandExecutor.
62598ee4d268445f26638ec1
@attr('shard_2') <NEW_LINE> class TestCourseTagAPI(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(TestCourseTagAPI, self).setUp() <NEW_LINE> self.user = UserFactory.create() <NEW_LINE> self.course_id = SlashSeparatedCourseKey('test_org', 'test_course_number', 'test_run') <NEW_LINE> self.test_...
Test the user service
62598ee4ac7a0e7691f70b7c
class ResponseOuterFeedForward(nn.Module): <NEW_LINE> <INDENT> def __init__(self, config): <NEW_LINE> <INDENT> super(ResponseOuterFeedForward, self).__init__() <NEW_LINE> input_hidden = config.d_model <NEW_LINE> intermediate_hidden = config.feed_forward2_hidden <NEW_LINE> dropout_rate = config.dropout <NEW_LINE> self.l...
3 Fully-Connected layers which are applied after SharedEncoder
62598ee44f88993c371ef819