code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Subtype(object): <NEW_LINE> <INDENT> NONE = 0 <NEW_LINE> UNARY_OPERATOR = 1 <NEW_LINE> BINARY_OPERATOR = 2 <NEW_LINE> A_EXPR_OPERATOR = 22 <NEW_LINE> M_EXPR_OPERATOR = 23 <NEW_LINE> SUBSCRIPT_COLON = 3 <NEW_LINE> SUBSCRIPT_BRACKET = 4 <NEW_LINE> DEFAULT_OR_NAMED_ASSIGN = 5 <NEW_LINE> DEFAULT_OR_NAMED_ASSIGN_ARG_L... | Subtype information about tokens.
Gleaned from parsing the code. Helps determine the best formatting. | 62598f918da39b475be02e33 |
class LeaveGroupResponse(object): <NEW_LINE> <INDENT> openapi_types = { } <NEW_LINE> attribute_map = { } <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.discriminator = None <NEW_LINE> <DEDENT> def to_dict(self): <NEW_LINE> <INDENT> result = {} <NEW_LINE> for attr, _ in six.iteritems(self.openapi_types): <NEW_L... | NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. | 62598f91f7d966606f747c35 |
class Event: <NEW_LINE> <INDENT> timestamp: int <NEW_LINE> def __init__(self, timestamp: int) -> None: <NEW_LINE> <INDENT> self.timestamp = timestamp <NEW_LINE> <DEDENT> def __eq__(self, other: Event) -> bool: <NEW_LINE> <INDENT> return self.timestamp == other.timestamp <NEW_LINE> <DEDENT> def __ne__(self, other: Event... | An event.
Events have an ordering based on the event timestamp in non-ascending
order. Events with older timestamps are greater than those with newer
timestamps.
This class is abstract; subclasses must implement do().
YOU SHOULD NOT CHANGE THIS CLASS!
=== Attributes ===
timestamp: A timestamp for this event. | 62598f9101c39578d7f129da |
class MyClass: <NEW_LINE> <INDENT> i = 12345 <NEW_LINE> def f(self): <NEW_LINE> <INDENT> return 'hello world' | a simple class | 62598f91f7d966606f747c36 |
class timeout: <NEW_LINE> <INDENT> def __init__(self, seconds=1, error_message='Timeout'): <NEW_LINE> <INDENT> self.seconds = seconds <NEW_LINE> self.error_message = error_message <NEW_LINE> <DEDENT> def handle_timeout(self, signum, frame): <NEW_LINE> <INDENT> logging.error("Process timed out") <NEW_LINE> raise Timeout... | To be used in a ``with`` block and timeout its content. | 62598f9126068e7796d4c5b4 |
class DBStream: <NEW_LINE> <INDENT> def __init__(self, active_coder, collection_name): <NEW_LINE> <INDENT> self.active_coder = active_coder <NEW_LINE> self.coll = setup_mongo(collection_name) <NEW_LINE> print("Total tasks in collection: ", self.coll.count()) <NEW_LINE> <DEDENT> def get_examples(self): <NEW_LINE> <INDEN... | Certain parameters are hard coded, for instance the number of
annotaters to see each example and the Mongo DB name. | 62598f91d99f1b3c44d05300 |
class Costs(Entries): <NEW_LINE> <INDENT> def __init__(self, csv, json_in_note=False, time_columns=None): <NEW_LINE> <INDENT> self.df = super()._read_csv(csv, json_in_note, time_columns) | Class for costs entries | 62598f91b5575c28eb712af6 |
class CardError (Exception): <NEW_LINE> <INDENT> pass | Represents an error in creation or use of card class | 62598f918da39b475be02e34 |
class User(db.Model): <NEW_LINE> <INDENT> net_id = db.Column(db.String(10), primary_key=True, unique=True) <NEW_LINE> api_key = db.Column(db.String(120)) <NEW_LINE> def __init__(self, net_id, api_key): <NEW_LINE> <INDENT> self.net_id = net_id <NEW_LINE> self.api_key = api_key <NEW_LINE> <DEDENT> def __repr__(self): <NE... | Model representing an authorized user. Consists of a Net ID and an auto-generated API key | 62598f9196565a6dacd2cda3 |
class TemplateSpecVersion(AzureResourceBase): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, 'system_data': {'readonly': True}, 'location': {'required': True}, 'description': {'max_length': 4096, 'min_length': 0}, } <NEW_LINE> _attribute_map = { 'id... | Template Spec Version object.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: String Id used to locate any resource on Azure.
:vartype id: str
:ivar name: Name of this resource.
:vartype name: str
:... | 62598f91a219f33f346c646e |
class StudentAssignmentsView(APIView): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def get(request, classroom_pk): <NEW_LINE> <INDENT> verify_user_type(request, 'student') <NEW_LINE> assignments = Assignment.objects.filter(classroom=classroom_pk) <NEW_LINE> serializer = AssignmentSerializer(assignments, many=True) <NE... | View the assignments within the classroom. | 62598f9171ff763f4b5e73c9 |
class Scale(Layer): <NEW_LINE> <INDENT> def __init__(self, weights=None, axis=-1, momentum=0.9, beta_init='zero', gamma_init='one', **kwargs): <NEW_LINE> <INDENT> self.momentum = momentum <NEW_LINE> self.axis = axis <NEW_LINE> self.beta_init = initializers.get(beta_init) <NEW_LINE> self.gamma_init = initializers.get(ga... | Custom Layer for ResNet used for BatchNormalization.
Learns a set of weights and biases used for scaling the input data.
the output consists simply in an element-wise multiplication of the input
and a sum of a set of constants:
out = in * gamma + beta,
where 'gamma' and 'beta' are the weights and biases larned.
# ... | 62598f91442bda511e95c0b6 |
class Album(models.Model): <NEW_LINE> <INDENT> title = models.CharField(max_length=255) <NEW_LINE> slug = models.SlugField(max_length=255, unique=True) <NEW_LINE> label = models.CharField(max_length=255) <NEW_LINE> genres = ArrayField( models.CharField(max_length=100), size=10) <NEW_LINE> producers = ArrayField( models... | Collection of songs. | 62598f9185dfad0860cbf89c |
class MinefieldView: <NEW_LINE> <INDENT> def __init__(self, field, drone): <NEW_LINE> <INDENT> self.field = field <NEW_LINE> self.drone = drone <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> fieldString = "" <NEW_LINE> for row in self.field.squares: <NEW_LINE> <INDENT> for square in row: <NEW_LINE> <INDENT... | Represents the View of the Minefield | 62598f918e71fb1e983bb707 |
class Delete_Action_buttons(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "ue.action_delete" <NEW_LINE> bl_label = "Actions Delete" <NEW_LINE> actdel = bpy.props.StringProperty() <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> bpy.context.object.animation_data.action = None <NEW_LINE> actions = bpy.da... | Delete actoin From List | 62598f910a50d4780f705028 |
class Boolean(Field): <NEW_LINE> <INDENT> type = 'boolean' <NEW_LINE> def convert_to_cache(self, value, env, validate=True): <NEW_LINE> <INDENT> return bool(value) <NEW_LINE> <DEDENT> def convert_to_export(self, value, env): <NEW_LINE> <INDENT> if env.context.get('export_raw_data'): <NEW_LINE> <INDENT> return value <NE... | Boolean field. | 62598f91925a0f43d25e7c8f |
class cmsfragment(str): <NEW_LINE> <INDENT> pass | an item selection object
| 62598f916e29344779b002ac |
class chatBasicHandler(tornado.web.RequestHandler): <NEW_LINE> <INDENT> def get(self): <NEW_LINE> <INDENT> session = uuid4() <NEW_LINE> self.render('chat/basic.html', session = session) | 主页, 选择进入聊天室 | 62598f91435de62698e9ba46 |
class Encoder(Chain): <NEW_LINE> <INDENT> def __init__(self, dim_x=2, dim_h=3, dim_z=2): <NEW_LINE> <INDENT> super(Encoder, self).__init__( enc_l1=L.Linear(dim_x, dim_h), enc_l2=L.Linear(dim_h, dim_z), enc_l3=L.Linear(dim_h, dim_z), ) <NEW_LINE> <DEDENT> def __call__(self, x): <NEW_LINE> <INDENT> h1 = F.relu(self.enc_l... | Default Encoder | 62598f914e696a045264dc32 |
class PacketPokerInt(PacketPokerId): <NEW_LINE> <INDENT> info = PacketPokerId.info + ( ('amount', 0, 'I'), ) | base class for a int coded amount | 62598f91ac7a0e7691f72160 |
class User(Model): <NEW_LINE> <INDENT> __table__ = 'users' <NEW_LINE> id = StringField(primary_key=True, default=next_id, ddl='varchar(50)') <NEW_LINE> email = StringField(ddl='varchar(50)') <NEW_LINE> passwd = StringField(ddl='varchar(50)') <NEW_LINE> admin = BooleanField() <NEW_LINE> name = StringField(ddl='varchar(5... | 用户数据模型 | 62598f91dd821e528d6d8b88 |
class NoteMode(InputMode): <NEW_LINE> <INDENT> pass | A \notemode or \notes expression. | 62598f9163d6d428bbee2411 |
class Post(models.Model): <NEW_LINE> <INDENT> title = models.CharField(_("title"), max_length=500, blank=False) <NEW_LINE> slug = models.SlugField(_("slug"), max_length=500, blank=True) <NEW_LINE> author = models.ForeignKey(User, related_name="added_posts") <NEW_LINE> kind = models.CharField(max_length=1, choices=KIND,... | Post model | 62598f917cff6e4e811b566e |
class LearningContext(TimeStampedModel): <NEW_LINE> <INDENT> id = models.BigAutoField(primary_key=True) <NEW_LINE> context_key = LearningContextKeyField( max_length=255, db_index=True, unique=True, null=False ) <NEW_LINE> title = models.CharField(max_length=255, db_index=True) <NEW_LINE> published_at = models.DateTimeF... | These are used to group Learning Sequences so that many of them can be
pulled at once. We use this instead of a foreign key to CourseOverview
because this table can contain things that are not courses.
It is okay to make a foreign key against this table. | 62598f918c0ade5d55dc34b7 |
class SaveOutput: <NEW_LINE> <INDENT> def set_filename(self, filename): <NEW_LINE> <INDENT> self.filename = filename <NEW_LINE> <DEDENT> def _output(self, message): <NEW_LINE> <INDENT> with open(self.filename, 'w') as file: <NEW_LINE> <INDENT> file.write(message) | Implement save output policy. | 62598f9145492302aabfc12c |
class MockHandler: <NEW_LINE> <INDENT> def __init__(self, object_to_patch, function_or_field_name, side_effect=None, autospec=False): <NEW_LINE> <INDENT> self.function_or_field_name = function_or_field_name <NEW_LINE> patch_kwargs = self._patch_kwargs(side_effect, autospec) <NEW_LINE> self.patch = mock.patch.object( ob... | A class for generating a mock in an object and holding on to info about it.
:param object_to_patch: The object to patch
:param function_or_field_name: the name of the function to patch in the
object
:param side_effect: side effect method to call. If not set, it will just
return `None`
:param autospec: If `True` will au... | 62598f9116aa5153ce400154 |
class PostofficeWorkType(_AutoName): <NEW_LINE> <INDENT> ALL = auto() <NEW_LINE> ROUND_THE_CLOCK = auto() <NEW_LINE> CURRENTLY_WORKING = auto() <NEW_LINE> WORK_ON_WEEKENDS = auto() | Ограничение по времени работы для поиска ОПС. | 62598f9176d4e153a661c870 |
class CoverageOptionParser(optparse.OptionParser, object): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(CoverageOptionParser, self).__init__( add_help_option=False, *args, **kwargs ) <NEW_LINE> self.set_defaults( actions=[], branch=None, directory=None, help=None, ignore_errors=Non... | Base OptionParser for coverage.
Problems don't exit the program.
Defaults are initialized for all options. | 62598f91cb5e8a47e493bf9c |
class Error: <NEW_LINE> <INDENT> _instance = None <NEW_LINE> my_error = None <NEW_LINE> def __new__(cls): <NEW_LINE> <INDENT> if not cls._instance: <NEW_LINE> <INDENT> cls._instance = object.__new__(cls) <NEW_LINE> <DEDENT> return cls._instance <NEW_LINE> <DEDENT> def __init__(self, data={}): <NEW_LINE> <INDENT> if not... | Class Parameters
Modele representation of HTTP REQUEST PARAMETERS | 62598f9123849d37ff850d19 |
class FileNotFoundMessage(Dialog): <NEW_LINE> <INDENT> def __init__(self, master, filename): <NEW_LINE> <INDENT> Dialog.__init__(self, master, title = 'File not found', text = 'File ' + filename + ' does not exist', bitmap = 'warning', default = 0, strings = ('Ok',)) | dialog message | 62598f91d4950a0f3b110c62 |
class GoHomeCommand(sublime_plugin.WindowCommand): <NEW_LINE> <INDENT> def run(self): <NEW_LINE> <INDENT> home = get_pref('home') <NEW_LINE> work = get_pref('work') <NEW_LINE> planner = RoutePlanner(self.window, work, home) <NEW_LINE> threading.Thread(target=planner.get_route_plan).start() | Sublime Window Command which requests real time arrival
and departure information from the BART API for the saved home
and work stations and displays it to the user | 62598f913539df3088ecbf14 |
class Component(ComponentAbstract): <NEW_LINE> <INDENT> def __init__(self, component_name='run_mutationseq', component_parent_dir=None, seed_dir=None): <NEW_LINE> <INDENT> self.version = "1.0.10" <NEW_LINE> super(Component, self).__init__(component_name, component_parent_dir, seed_dir) <NEW_LINE> <DEDENT> def focus(sel... | mutationSeq component | 62598f91287bf620b6271812 |
class SecurityGroupModel: <NEW_LINE> <INDENT> GroupId = UnicodeAttribute() <NEW_LINE> GroupName = UnicodeAttribute() <NEW_LINE> VpcId = UnicodeAttribute(null=True) <NEW_LINE> Region = UnicodeAttribute() | Security Group specific fields for DynamoDB. | 62598f91be8e80087fbbecb2 |
class TokenIndexing(Pipeline): <NEW_LINE> <INDENT> def __init__(self, indexer, labels, max_len=512): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.indexer = indexer <NEW_LINE> self.label_map = {name: i for i, name in enumerate(labels)} <NEW_LINE> self.max_len = max_len <NEW_LINE> <DEDENT> def __call__(self, in... | Convert tokens into token indexes and do zero-padding | 62598f91bde94217f3707493 |
class DestGetSiteUrlProcess(AbstractProcess): <NEW_LINE> <INDENT> def init(self): <NEW_LINE> <INDENT> self.target = AbstractProcess.DEST <NEW_LINE> self.name = 'Get site url from destination' <NEW_LINE> <DEDENT> def execute(self, args, conf): <NEW_LINE> <INDENT> ssh = AbstractProcess.CONS[self.target] <NEW_LINE> cmd = ... | Gets the site url using wp binary | 62598f913eb6a72ae038a28f |
class Add(SimSchema): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> SimSchema.__init__(self, 'Arithmetic', 'ADD', [ Connector('I', float, False), ], [ Connector('Q', float), ]) <NEW_LINE> <DEDENT> def step(self, node): <NEW_LINE> <INDENT> node.setOut('Q', sum(node.getIns('I'))) | Computes the sum of all of its inputs. | 62598f91379a373c97d98c71 |
class Settings(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.screen_width = 1200 <NEW_LINE> self.screen_height = 800 <NEW_LINE> self.bg_color = (230, 230, 230) <NEW_LINE> self.ship_limit = 3 <NEW_LINE> self.bullet_width = 1200 <NEW_LINE> self.bullet_height = 5 <NEW_LINE> self.bullet_color = (60, 6... | 存储《外星人入侵》的所有设置的类 | 62598f9129b78933be269f08 |
class record: <NEW_LINE> <INDENT> def __init__(self, log_offset, data, size): <NEW_LINE> <INDENT> self.log_offset_ = log_offset <NEW_LINE> self.data_ = data <NEW_LINE> self.size_ = size <NEW_LINE> self.version_ = self.log_offset_ + self.size_ <NEW_LINE> self.fields_ = [] <NEW_LINE> <DEDENT> def push_back(self, value): ... | A collection of values containing different types.
| 62598f913617ad0b5ee05da1 |
class User(UserMixin): <NEW_LINE> <INDENT> def __init__(self, email): <NEW_LINE> <INDENT> self.id = email <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def get(cls, user_id): <NEW_LINE> <INDENT> if user_id in user_db: <NEW_LINE> <INDENT> return cls(user_id) | https://flask-login.readthedocs.io/en/latest/#your-user-class
http://docs.jinkan.org/docs/flask-login/_modules/flask/ext/login.html#UserMixin
UserMixin包含:
def get_id(self):
return self.id
def is_active(self):
return True
def is_anonymous(self):
return False
def is_authenticated(s... | 62598f9107f4c71912baf0a0 |
class SupplierServicer(object): <NEW_LINE> <INDENT> def GetSuppliersByCodes(self, request, context): <NEW_LINE> <INDENT> context.set_code(grpc.StatusCode.UNIMPLEMENTED) <NEW_LINE> context.set_details('Method not implemented!') <NEW_LINE> raise NotImplementedError('Method not implemented!') | Missing associated documentation comment in .proto file. | 62598f910383005118f6d352 |
class HasRenewalPolicyMixin: <NEW_LINE> <INDENT> def isMultiLineLayout(self, field_name): <NEW_LINE> <INDENT> if field_name == 'renewal_policy': <NEW_LINE> <INDENT> return True <NEW_LINE> <DEDENT> return super(HasRenewalPolicyMixin, self).isMultiLineLayout( field_name) <NEW_LINE> <DEDENT> def isSingleLineLayout(self, f... | Mixin to be used on forms which contain ITeam.renewal_policy.
This mixin will short-circuit Launchpad*FormView when defining whether
the renewal_policy widget should be displayed in a single or multi-line
layout. We need that because that field has a very long title, thus
breaking the page layout.
Since this mixin sh... | 62598f914e4d562566372077 |
class Editor(object): <NEW_LINE> <INDENT> def __init__(self, line_color="black"): <NEW_LINE> <INDENT> self.active = False <NEW_LINE> self._setting = None <NEW_LINE> self.line_color = line_color <NEW_LINE> self.buttons = { "edit": bokeh.models.CheckboxButtonGroup(labels=["Edit layer"]) } <NEW_LINE> self.buttons["edit"].... | Responsible for editing layer settings | 62598f918da39b475be02e38 |
class IS_DATETIME_IN_RANGE(IS_DATETIME): <NEW_LINE> <INDENT> def __init__(self, minimum=None, maximum=None, format='%Y-%m-%d %H:%M:%S', error_message=None, timezone=None): <NEW_LINE> <INDENT> self.minimum = minimum <NEW_LINE> self.maximum = maximum <NEW_LINE> if error_message is None: <NEW_LINE> <INDENT> if minimum is ... | example::
>>> v = IS_DATETIME_IN_RANGE( minimum=datetime.datetime(2008,1,1,12,20), maximum=datetime.datetime(2009,12,31,12,20), format="%m/%d/%Y %H:%M",error_message="oops")
>>> v('03/03/2008 12:40')
(datetime.datetime(2008, 3, 3, 12, 40), None)
>>> v('03... | 62598f9196565a6dacd2cda5 |
class PyConSiteLogTargetTests(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.target = log.PyConSiteLogTarget("host", "key") <NEW_LINE> self.target._utcnow = self._utcnow <NEW_LINE> self._dates = dates() <NEW_LINE> self.target._post = self._post <NEW_LINE> self.request_body = None <NEW... | Tests for a log target that targets the PyCon site. | 62598f91dd821e528d6d8b8b |
class DummyMessage(object): <NEW_LINE> <INDENT> def __init__(self, domain, user): <NEW_LINE> <INDENT> self.domain = domain <NEW_LINE> self.user = user <NEW_LINE> self.buffer = [] <NEW_LINE> <DEDENT> def lineReceived(self, line): <NEW_LINE> <INDENT> if not re.match('Received: From yyy.com \(\[.*\]\) by localhost;', line... | L{BrokenMessage} is an L{IMessage} which saves the message delivered to it
to its domain object.
@ivar domain: A L{DummyDomain} which will be used to store the message once
it is received. | 62598f91baa26c4b54d4ef0f |
class StateFeedbackFromReaderModel(base_models.BaseModel): <NEW_LINE> <INDENT> created = ndb.DateTimeProperty(auto_now_add=True) <NEW_LINE> last_updated = ndb.DateTimeProperty(auto_now=True) <NEW_LINE> feedback_log = ndb.JsonProperty(repeated=True) <NEW_LINE> @classmethod <NEW_LINE> def get_or_create(cls, exploration_i... | A record of all the feedback given by readers for a particular state.
The id/key for instances of this class has the form
[EXPLORATION_ID].[STATE_ID] | 62598f9163b5f9789fe84dcc |
class EntryCategoryFactory(factory.Factory): <NEW_LINE> <INDENT> FACTORY_FOR = models.EntryCategory <NEW_LINE> category = factory.SubFactory(CategoryFactory) <NEW_LINE> entry = factory.SubFactory(EntryFactory) | Base factory for factories for ``EntryCategory`` models. | 62598f914e4d562566372078 |
class PermissionDetail(TransactionalViewMixin,generics.RetrieveUpdateDestroyAPIView): <NEW_LINE> <INDENT> serializer_class=PermissionSerializer <NEW_LINE> queryset=Permission.objects.all() <NEW_LINE> def perform_destroy(self,model_object): <NEW_LINE> <INDENT> model_object.delete() | edit permissions
| 62598f91be383301e025345b |
class Crawler(object): <NEW_LINE> <INDENT> def __init__(self, state_change_callback): <NEW_LINE> <INDENT> self.state_change_callback = state_change_callback <NEW_LINE> self.SERVER_TYPES = parse_json_file( os.path.join(CURRENT_PATH, 'mapping/server_types.json')) <NEW_LINE> self.REGIONS = parse_json_file( os.path.join(CU... | Crawler responsible for fetching availability and monitoring states | 62598f915f7d997b871f9207 |
class AdjustableOperatorFromTexture(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "com.new_adj_automat" <NEW_LINE> bl_label = "Adjustable Material from Image" <NEW_LINE> bl_options = {"UNDO"} <NEW_LINE> filepath: bpy.props.StringProperty(subtype="FILE_PATH") <NEW_LINE> filename: bpy.props.StringProperty() <NEW_L... | This operator generates adjustable materials from textures in Cycles.
This is a subclass from bpy.types.Operator. | 62598f91d486a94d0ba2bc2a |
class TestApiV2010AccountRecordingRecordingAddOnResult(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 testApiV2010AccountRecordingRecordingAddOnResult(self): <NEW_LINE> <INDENT> pass | ApiV2010AccountRecordingRecordingAddOnResult unit test stubs | 62598f91009cb60464d01187 |
class View(Layer): <NEW_LINE> <INDENT> def __init__(self, sizes, num_input_dims=0, bigdl_type="float"): <NEW_LINE> <INDENT> super(View, self).__init__(None, bigdl_type, sizes, num_input_dims) | This module creates a new view of the input tensor using the sizes passed to the constructor.
The method setNumInputDims() allows to specify the expected number of dimensions of the
inputs of the modules. This makes it possible to use minibatch inputs when using a size -1
for one of the dimensions.
:param size: sizes... | 62598f91d53ae8145f9180e4 |
class ChangePasswordForm(forms.Form): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.request = kwargs.pop('request', None) <NEW_LINE> super(ChangePasswordForm, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> current_password = forms.CharField(max_length=32, widget=forms.PasswordIn... | changes password | 62598f917cff6e4e811b5672 |
class RichSelectInverseQuotes(RichSelect): <NEW_LINE> <INDENT> if versions.DJANGO_GTE_1_11: <NEW_LINE> <INDENT> template_name = 'fobi/django/forms/widgets/rich_select_inverse.html' <NEW_LINE> option_template_name = 'fobi/django/forms/widgets/' 'rich_select_inverse_option.html' <NEW_LINE> <... | Almost same as original, but uses alternative flatatt function.
Uses inverse quotes. | 62598f918c0ade5d55dc34b9 |
class ApiCollectionV2(object): <NEW_LINE> <INDENT> def __init__(self, service, project_id): <NEW_LINE> <INDENT> self._compare_service = CompareServiceV2(service, project_id) <NEW_LINE> self._detect_service = DetectServiceV2(service, project_id) <NEW_LINE> self._face_service = FaceServiceV2(service, project_id) <NEW_LIN... | v2 api collection | 62598f9199cbb53fe6830b30 |
class Savedata(MountableFileSystem): <NEW_LINE> <INDENT> def __init__(self, title, user=None): <NEW_LINE> <INDENT> super().__init__(SAVEDATA_BASE_PATH) <NEW_LINE> self.title = title <NEW_LINE> self.user = user if user is not None else users.active_user <NEW_LINE> <DEDENT> @property <NEW_LINE> def is_mounted(self): <NEW... | Represents the savedata filesystem of a title.
Do not instantiate this. Rather, get a Savedata object via
``nx.titles[MY_TITLE_ID].savedata``.
Attributes
----------
title: :class:`Title`
The title this Savedata belongs to.
base_path: pathlib.Path
The base path of the savedata filesystem. | 62598f913617ad0b5ee05da3 |
class Gaussian_UCB_4_Continuous_Policy(Policy): <NEW_LINE> <INDENT> def __call__(self, mab): <NEW_LINE> <INDENT> i_arm = [] <NEW_LINE> gstd = 0.3 <NEW_LINE> mi = None <NEW_LINE> if (len(mab.mean_rewards) > 10*len(mab.space)): <NEW_LINE> <INDENT> x = np.asarray(mab.array_rewards)[:,:-1] <NEW_LINE> y = np.asarray(mab.arr... | must have array_rewards | 62598f91097d151d1a2c0c84 |
class ProjectInfoRow(Gtk.ListBoxRow): <NEW_LINE> <INDENT> def __init__(self, recent_project_item): <NEW_LINE> <INDENT> Gtk.ListBoxRow.__init__(self) <NEW_LINE> self.uri = recent_project_item.get_uri() <NEW_LINE> self.name = os.path.splitext(recent_project_item.get_display_name())[0] <NEW_LINE> builder = Gtk.Builder() <... | Displays a project's info.
Attributes:
recent_project_item (Gtk.RecentInfo): Recent project's meta-data. | 62598f9176d4e153a661c874 |
class Security(Asset): <NEW_LINE> <INDENT> def __init__(self,assetID, purchaseDate, purchasePrice, saleDate, salePrice, volume, percentOwnership,ticker,feedType): <NEW_LINE> <INDENT> Asset.__init__(self, assetID, purchaseDate, purchasePrice, saleDate, salePrice, volume, percentOwnership,ticker,feedType) | This class is the abstract securities class that is the superclass of all securities type assets
Attributes : | 62598f91507cdc57c63a49ec |
class ManageBooksWindow(wx.Window): <NEW_LINE> <INDENT> def __init__(self, parent): <NEW_LINE> <INDENT> wx.Window.__init__(self, parent) <NEW_LINE> self.sizer = wx.BoxSizer(wx.VERTICAL); <NEW_LINE> self.splitter = wx.SplitterWindow(self) <NEW_LINE> self.splitter.SetSashGravity(1); <NEW_LINE> self.splitter.SetMinimumPan... | The Collection window | 62598f9110dbd63aa1c70816 |
class HeroPlane(BasePlane): <NEW_LINE> <INDENT> def __init__(self,screen_temp): <NEW_LINE> <INDENT> BasePlane.__init__(self,screen_temp,210,700,'resources/image/hero1.png') <NEW_LINE> <DEDENT> def move_left(self): <NEW_LINE> <INDENT> self.x -= 5 <NEW_LINE> <DEDENT> def move_right(self): <NEW_LINE> <INDENT> self.x += 5 ... | 玩家飞机 | 62598f9194891a1f408b951c |
class InvalidWorkerGUIDError(Exception): <NEW_LINE> <INDENT> pass | Raised when an invalid/nonexistent Worker GUID is used.
| 62598f91f7d966606f747c3c |
class GaussianFunction: <NEW_LINE> <INDENT> def __init__(self, exponent): <NEW_LINE> <INDENT> self.parameters = {"exponent": exponent} <NEW_LINE> <DEDENT> def value(self, x, r): <NEW_LINE> <INDENT> return np.exp(-self.parameters["exponent"] * r * r) <NEW_LINE> <DEDENT> def gradient(self, x, r): <NEW_LINE> <INDENT> v = ... | A representation of a Gaussian:
:math:`\exp(-\alpha r^2)`
where :math:`\alpha` can be accessed through parameters['exponent'] | 62598f9101c39578d7f129e0 |
class AttachmentMixin(object): <NEW_LINE> <INDENT> def put_attachment(self, content, name=None, content_type=None, content_length=None): <NEW_LINE> <INDENT> db = self.get_db() <NEW_LINE> return db.put_attachment(self._doc, content, name=name, content_type=content_type, content_length=content_length) <NEW_LINE> <DEDENT>... | mixin to manage doc attachments. | 62598f9171ff763f4b5e73cf |
class RegisterView(View): <NEW_LINE> <INDENT> def get(self, request, *args, **kwargs): <NEW_LINE> <INDENT> return render(request, 'register.html') <NEW_LINE> <DEDENT> def post(self, request): <NEW_LINE> <INDENT> username = request.POST.get('user_name') <NEW_LINE> pwd = request.POST.get('pwd') <NEW_LINE> cpwd = request.... | 注册 | 62598f91dc8b845886d53217 |
class NamePart(Part): <NEW_LINE> <INDENT> def matchDict(self, data, nextpat): <NEW_LINE> <INDENT> return [ data[self.content] ] if self.content in data else [] | Matches given name, no funny business. | 62598f91eab8aa0e5d30b9d9 |
class SquareTensor(Tensor): <NEW_LINE> <INDENT> def __new__(cls, input_array, vscale=None): <NEW_LINE> <INDENT> obj = super().__new__(cls, input_array, vscale, check_rank=2) <NEW_LINE> return obj.view(cls) <NEW_LINE> <DEDENT> @property <NEW_LINE> def trans(self): <NEW_LINE> <INDENT> return SquareTensor(np.transpose(sel... | Base class for doing useful general operations on second rank tensors
(stress, strain etc.). | 62598f91baa26c4b54d4ef11 |
@attr.s <NEW_LINE> class TransportMessage: <NEW_LINE> <INDENT> next_transport_for_a = attr.ib(type=Transport) <NEW_LINE> next_transport_for_b = attr.ib(type=Transport) | Message from the transport thread to the display thread | 62598f917b25080760ed7109 |
class UserProfileViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> authentication_classes = (TokenAuthentication,) <NEW_LINE> permission_classes = (permissons.UpdateOwnProfile,) <NEW_LINE> serializer_class = serializers.UserProfileSerializer <NEW_LINE> queryset = models.UserProfile.objects.all() <NEW_LINE> filter_bac... | Handle creating, reading and updating profiles | 62598f9124f1403a926856dd |
class NANDGate(Block): <NEW_LINE> <INDENT> def __init__(self,system,numInput,sizeInput): <NEW_LINE> <INDENT> self.numInput = numInput <NEW_LINE> self.name = "NAND_GATE" <NEW_LINE> self.sizeInput = sizeInput <NEW_LINE> input_vector = [sizeInput]*self.numInput <NEW_LINE> output_vector = [sizeInput] <NEW_LINE> super().__i... | NAND Gate
PORTS SPECIFICATIONS | 62598f9163b5f9789fe84dcf |
class TransportCommunityViewSet(CommunityViewSet): <NEW_LINE> <INDENT> model = TransportCommunity <NEW_LINE> serializer_class = TransportCommunitySerializer <NEW_LINE> search_fields = ('name', 'description', 'departure', 'via', 'arrival') <NEW_LINE> def pre_add_location(self, data, community): <NEW_LINE> <INDENT> if 'i... | Inherits properties and methods from CommunityViewSet.
| **Endpoint**: /transport_communities/
| For methods inherited form 'CommunityViewSet', just replace endpoint '/communities/'
| by /transport_communities/
| **Methods**: GET / POST / PUT / PATCH / DELETE / OPTIONS
| **P... | 62598f91fbf16365ca793d0c |
class ZnodeStat(namedtuple('ZnodeStat', ('aversion', 'ctime', 'cversion', 'czxid', 'dataLength', 'ephemeralOwner', 'mtime', 'mzxid', 'numChildren', 'pzxid', 'version'))): <NEW_LINE> <INDENT> @property <NEW_LINE> def acl_version(self): <NEW_LINE> <INDENT> return self.aversion <NEW_LINE> <DEDENT> @property <NEW_LINE> def... | A ZnodeStat structure with convenience properties
When getting the value of a node from Zookeeper, the properties for
the node known as a "Stat structure" will be retrieved. The
:class:`ZnodeStat` object provides access to the standard Stat
properties and additional properties that are more readable and use
Python tim... | 62598f9115baa72349461bd8 |
class HybridAgentsAdminTestJSON(AgentsAdminTest.AgentsAdminTestJSON): <NEW_LINE> <INDENT> pass | Tests Agents API | 62598f918c0ade5d55dc34ba |
class SinPi: <NEW_LINE> <INDENT> def __init__(self, value, step): <NEW_LINE> <INDENT> value = int(value) <NEW_LINE> self.arg = value_to_exp(value * 0.9, step + 1) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "sin(pi*" + str(self.arg) + ")" <NEW_LINE> <DEDENT> def evaluate(self, x, y): <NEW_LINE> <I... | Used to add 'math.sin(math.pi*' to the outside of the expression being built
by value_to_exp() | 62598f9107d97122c4216909 |
class LumpNavEventFilter(qt.QWidget): <NEW_LINE> <INDENT> def __init__(self, moduleWidget): <NEW_LINE> <INDENT> qt.QWidget.__init__(self) <NEW_LINE> self.moduleWidget = moduleWidget <NEW_LINE> <DEDENT> def eventFilter(self, object, event): <NEW_LINE> <INDENT> if self.moduleWidget.getSlicerInterfaceVisible(): <NEW_LINE>... | Install this event filter to overwrite default behavior of main window events like closing the window or saving the
scene. | 62598f9160cbc95b06363fa0 |
class Sup(HtmlElement): <NEW_LINE> <INDENT> class PropTypes: <NEW_LINE> <INDENT> role: str | Implement the ``sup`` HTML tag. | 62598f918da39b475be02e3b |
@inherit_doc <NEW_LINE> @ignore_unicode_prefix <NEW_LINE> class Tokenizer(JavaTransformer, HasInputCol, HasOutputCol, JavaMLReadable, JavaMLWritable): <NEW_LINE> <INDENT> @keyword_only <NEW_LINE> def __init__(self, inputCol=None, outputCol=None): <NEW_LINE> <INDENT> super(Tokenizer, self).__init__() <NEW_LINE> self._ja... | .. note:: Experimental
A tokenizer that converts the input string to lowercase and then
splits it by white spaces.
>>> df = sqlContext.createDataFrame([("a b c",)], ["text"])
>>> tokenizer = Tokenizer(inputCol="text", outputCol="words")
>>> tokenizer.transform(df).head()
Row(text=u'a b c', words=[u'a', u'b', u'c'])
>... | 62598f91a17c0f6771d5be96 |
class ModifyDBSyncModeRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.InstanceId = None <NEW_LINE> self.SyncMode = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.InstanceId = params.get("InstanceId") <NEW_LINE> self.SyncMode = params.get("SyncM... | ModifyDBSyncMode请求参数结构体
| 62598f918da39b475be02e3c |
class BBB3Conv3FC(BayesianNN): <NEW_LINE> <INDENT> def __init__(self, channels_in, classes): <NEW_LINE> <INDENT> super(BBB3Conv3FC, self).__init__() <NEW_LINE> self.model = BayesianSequential( BayesianConv2d(channels_in, 32, 5, stride=1, padding=2), BayesianReLU(), BayesianMaxPool2d(kernel_size=3, stride=2), BayesianCo... | Simple Neural Network having 3 Convolution
and 3 FC layers with Bayesian layers. | 62598f9107f4c71912baf0a5 |
class ImportSVG(bpy.types.Operator, ImportHelper): <NEW_LINE> <INDENT> bl_idname = "import_curve.svg" <NEW_LINE> bl_label = "Import SVG" <NEW_LINE> bl_options = {'UNDO'} <NEW_LINE> filename_ext = ".svg" <NEW_LINE> filter_glob = StringProperty(default="*.svg", options={'HIDDEN'}) <NEW_LINE> global_scale = FloatProperty(... | Load a SVG file | 62598f9171ff763f4b5e73d1 |
class _AssertLogsContext(_BaseTestCaseContext): <NEW_LINE> <INDENT> LOGGING_FORMAT = "%(message)s" <NEW_LINE> def __init__(self, test_case, logger_name, level): <NEW_LINE> <INDENT> _BaseTestCaseContext.__init__(self, test_case) <NEW_LINE> self.logger_name = logger_name <NEW_LINE> if level: <NEW_LINE> <INDENT> if getatt... | A context manager used to implement TestCase.assertLogs(). | 62598f91090684286d593505 |
class TestSpider(BaseSpider): <NEW_LINE> <INDENT> name = "testspider" <NEW_LINE> start_urls = [ "http://httpbin.org/headers", "https://httpbin.org/headers", "http://httpbin.org/user-agent", "https://httpbin.org/user-agent", ] <NEW_LINE> def parse(self, response): <NEW_LINE> <INDENT> self.logger.info("Scraping article u... | Dummy test spider | 62598f91be8e80087fbbecb8 |
class WeberE(_Bessel): <NEW_LINE> <INDENT> sympy_name = '' <NEW_LINE> mpmath_name = 'webere' | <dl>
<dt>'WeberE[$n$, $z$]'
<dd>returns the Weber function E_$n$($z$).
</dl>
>> WeberE[1.5, 3.5]
= -0.397256259210030809
>> Plot[WeberE[1, x], {x, -10, 10}]
= -Graphics- | 62598f9163b5f9789fe84dd0 |
class SinVariant(Problem): <NEW_LINE> <INDENT> def __init__(self, initial, maximum=30.0, delta=1): <NEW_LINE> <INDENT> self.initial = initial <NEW_LINE> self.maximum = maximum <NEW_LINE> self.delta = delta <NEW_LINE> <DEDENT> def actions(self, state): <NEW_LINE> <INDENT> return [state + self.delta, state - self.delta] ... | State: x value for the sine function variant f(x)
Move: a new x value delta steps from the current x (in both directions) | 62598f910a50d4780f705030 |
class ChunkIterator: <NEW_LINE> <INDENT> def __init__(self, dset_id, selection, layout): <NEW_LINE> <INDENT> self._prefix = "c-" + dset_id[2:] <NEW_LINE> self._layout = layout <NEW_LINE> self._selection = selection <NEW_LINE> self._rank = len(selection) <NEW_LINE> self._chunk_index = [0, ] * self._rank <NEW_LINE> for i... | Class to iterate through list of chunks given dset_id, selection,
and layout. | 62598f91596a8972361278d7 |
class RobertaModel(BertModel): <NEW_LINE> <INDENT> config_class = RobertaConfig <NEW_LINE> pretrained_model_archive_map = ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP <NEW_LINE> base_model_prefix = "roberta" <NEW_LINE> def __init__(self, config, ge=False): <NEW_LINE> <INDENT> super(RobertaModel, self).__init__(config) <NEW_LIN... | Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs:
**last_hidden_state**: ``torch.FloatTensor`` of shape ``(batch_size, sequence_length, hidden_size)``
Sequence of hidden-states at the output of the last layer of the model.
**pooler_output**: ``torch.FloatTe... | 62598f91925a0f43d25e7c97 |
class HouseItem: <NEW_LINE> <INDENT> def __init__(self, name, area): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.area = area <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "[%s] 占地 %0.2f" %(self.name, self.area) | 定义一个家具类 | 62598f918e71fb1e983bb710 |
class Dns64Group(InfobloxObject): <NEW_LINE> <INDENT> _infoblox_type = 'dns64group' <NEW_LINE> _fields = ['clients', 'comment', 'disable', 'enable_dnssec_dns64', 'exclude', 'extattrs', 'mapped', 'name', 'prefix'] <NEW_LINE> _search_for_update_fields = ['name'] <NEW_LINE> _updateable_search_fields = ['comment', 'name', ... | Dns64Group: DNS64 synthesis group object.
Corresponds to WAPI object 'dns64group'
To support the increasing number of IPv6 and dual-stack networks,
Infoblox DNS servers now support DNS64, a mechanism that synthesizes
AAAA records from A records when no AAAA records exist.
The DNS64 synthesis group specifies the IPv6 ... | 62598f917cff6e4e811b5676 |
class DelayPacketByMissingMember(DelayPacket): <NEW_LINE> <INDENT> def __init__(self, community, missing_member_id): <NEW_LINE> <INDENT> if __debug__: <NEW_LINE> <INDENT> from community import Community <NEW_LINE> <DEDENT> assert isinstance(community, Community) <NEW_LINE> assert isinstance(missing_member_id, str) <NEW... | Raised during Conversion.decode_message when an unknown member id
was received. A member id is the sha1 hash over the member's
public key, hence there is a small chance that members with
different public keys will have the same member id.
Raising this exception should result in a request for all public
keys associate... | 62598f9173bcbd0ca4bc9eb2 |
class WebApp(object): <NEW_LINE> <INDENT> def __init__(self, session_info, web_port=constants.DEFAULT_WEB_UI_PORT, web_addr='localhost'): <NEW_LINE> <INDENT> self._session_info = session_info <NEW_LINE> self._web_interface_thread = self._build_webapp_thread(port=web_port, address=web_addr) <NEW_LINE> pass <NEW_LINE> <D... | Serve fuzz data over HTTP.
Args:
session_info (SessionInfo): Object providing information on session
web_port (int): Port for monitoring fuzzing campaign via a web browser. Default 26000. | 62598f9163d6d428bbee2419 |
class LogMessage(BaseMessage): <NEW_LINE> <INDENT> log_level = Field(str) <NEW_LINE> service_type = Field(str) <NEW_LINE> job_name = Field(str) <NEW_LINE> log_msg = Field(str) <NEW_LINE> log_time = Field(float) <NEW_LINE> log_pid = Field(int) <NEW_LINE> log_line = Field(int) <NEW_LINE> log_function = Field(str) | log.* | 62598f9145492302aabfc134 |
class PostViewSet(ModelViewSet): <NEW_LINE> <INDENT> filter_backends = (DjangoFilterBackend,) <NEW_LINE> filterset_class = PostFilter <NEW_LINE> pagination_class = PostPagination <NEW_LINE> queryset = Post.objects.all() <NEW_LINE> def get_permissions(self): <NEW_LINE> <INDENT> self.permission_classes = get_custom_permi... | Post viewset that provides `retrieve`, `create`, `list`, `update`,
`partial update` and `destroy` actions. | 62598f9121a7993f00c65bd8 |
class ElasticPoolActivitiesOperations(object): <NEW_LINE> <INDENT> models = models <NEW_LINE> def __init__(self, client, config, serializer, deserializer): <NEW_LINE> <INDENT> self._client = client <NEW_LINE> self._serialize = serializer <NEW_LINE> self._deserialize = deserializer <NEW_LINE> self.api_version = "2014-04... | ElasticPoolActivitiesOperations operations.
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An objec model deserializer.
:ivar api_version: The API version to use for the request. Constant value: "2014-04-01... | 62598f91e5267d203ee6b577 |
class InvalidSectionNameError(PropertyConfigError): <NEW_LINE> <INDENT> def __init__(self, section): <NEW_LINE> <INDENT> assert section is not None <NEW_LINE> PropertyConfigError.__init__(self, section=section) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return _("Section name '{0}' is not valid. Sectio... | Exception class used to indicate an invalid section name. | 62598f91507cdc57c63a49f0 |
class gennum(): <NEW_LINE> <INDENT> def __init__(self,length,a,b): <NEW_LINE> <INDENT> self.len =length <NEW_LINE> self.a =a <NEW_LINE> self.b =b <NEW_LINE> <DEDENT> def gennumpassword(self): <NEW_LINE> <INDENT> slcNum = [random.choice(string.digits) for i in range(self.len)] <NEW_LINE> random.shuffle(slcNum) <NEW_LINE... | 生成随机数字
分两种情况:
input1:输入是想要数据的位数
比如length=2,输出是10/99...
input2:输入数据范围,比如a=1,b=20,
输出是15 | 62598f91b5575c28eb712afb |
class HardcodedErrorTest(unittest.TestCase): <NEW_LINE> <INDENT> def test_mean_abs_error(self): <NEW_LINE> <INDENT> epsilon = 0.01 <NEW_LINE> dim_in = 100 <NEW_LINE> dim_out = 100 <NEW_LINE> num_contexts = 10 <NEW_LINE> dim_context = 100 <NEW_LINE> batch_size = 100 <NEW_LINE> r = RoutingFunction(dim_in=dim_in, dim_out=... | Tests the hand-picked context weights for performance on the hardcoded routing test
in a dendritic network that uses dendrites for gating | 62598f9101c39578d7f129e4 |
class Log_parabola(Function1D, metaclass=FunctionMeta): <NEW_LINE> <INDENT> def _set_units(self, x_unit, y_unit): <NEW_LINE> <INDENT> self.K.unit = y_unit <NEW_LINE> self.piv.unit = x_unit <NEW_LINE> self.alpha.unit = astropy_units.dimensionless_unscaled <NEW_LINE> self.beta.unit = astropy_units.dimensionless_unscaled ... | description :
A log-parabolic function. NOTE that we use the high-energy convention of using the natural log in place of the
base-10 logarithm. This means that beta is a factor 1 / log10(e) larger than what returned by those software
using the other convention.
latex : $ K \left( \frac{x}{piv} \right)^{\a... | 62598f913539df3088ecbf1c |
class Identity(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'principal_id': {'readonly': True}, 'tenant_id': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'principal_id': {'key': 'principalId', 'type': 'str'}, 'tenant_id': {'key': 'tenantId', 'type': 'str'}, 'type': {'key': 'type', 'type': 'st... | Identity for the resource.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar principal_id: The principal ID of resource identity.
:vartype principal_id: str
:ivar tenant_id: The tenant ID of resource.
:vartype tenant_id: str
:ivar type: The identity type. Possible values in... | 62598f91bd1bec0571e14ef2 |
class LmsCompatibilityMixin(object): <NEW_LINE> <INDENT> display_name = String( default="SQL Injection capture-the-flag", scope=Scope.settings, help="Display name" ) <NEW_LINE> start = DateTime( default=None, scope=Scope.settings, help="ISO-8601 formatted string representing the start date of this assignment." ) <NEW_L... | Extra fields and methods used by LMS/Studio. | 62598f91442bda511e95c0c0 |
class EnvironmentBlock: <NEW_LINE> <INDENT> def __init__(self, dict): <NEW_LINE> <INDENT> if not dict: <NEW_LINE> <INDENT> self._as_parameter_ = None <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> values = ["%s=%s" % (key, value) for (key, value) in dict.items()] <NEW_LINE> values.append("") <NEW_LINE> self._as_paramete... | An object which can be passed as the lpEnv parameter of CreateProcess.
It is initialized with a dictionary. | 62598f91be8e80087fbbecba |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.