code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class OrderObserverSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = Order <NEW_LINE> fields = ('state', 'time', 'date', 'product', 'order_type', 'table') | Serializer a order for response when you update observers | 62598ef17d43ff24874267fe |
class ResourceRef(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.ResourceId = None <NEW_LINE> self.Version = None <NEW_LINE> self.Type = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.ResourceId = params.get("ResourceId") <NEW_LINE> self.Version = par... | 资源引用参数
| 62598ef192d797404e387f7e |
class Reporting: <NEW_LINE> <INDENT> def __init__(self, tests_directory, original_directory): <NEW_LINE> <INDENT> self.tests_directory = tests_directory <NEW_LINE> self.original_directory = original_directory <NEW_LINE> <DEDENT> def report(self, output): <NEW_LINE> <INDENT> original_report = None <NEW_LINE> mutations_r... | Mutations testing report. | 62598ef1cc40096d616195db |
class Loader: <NEW_LINE> <INDENT> genes_dataframe = pd.DataFrame() <NEW_LINE> def check_file(self): <NEW_LINE> <INDENT> if len(sys.argv) == 1: <NEW_LINE> <INDENT> print("\n\nNo input file provided.\nRequired format: python3 " "<clover_file.txt>\n\n") <NEW_LINE> exit() <NEW_LINE> <DEDENT> else: <NEW_L... | Loader class that takes in the Clover ouput and "cleans" it by
selecting for the important features from the file. | 62598ef138b623060ffa78a5 |
class VerifyAPIView(generics.RetrieveAPIView): <NEW_LINE> <INDENT> permission_classes = (AllowAny,) <NEW_LINE> renderer_classes = (RequestJSONRenderer,) <NEW_LINE> serializer_class = UserRetriveUpdateSerializer <NEW_LINE> @classmethod <NEW_LINE> def get(self, request, token): <NEW_LINE> <INDENT> user = get_token_data(t... | A class to verify user using the token sent to the email | 62598ef167a9b606de5447d3 |
class AdminGitHubSession(GitHubSessionMixin, BaseOAuth2Session): <NEW_LINE> <INDENT> def __init__(self, blueprint=None, base_url=None, *args, **kwargs): <NEW_LINE> <INDENT> token = {"access_token": blueprint.admin_access_token} <NEW_LINE> super().__init__(token=token, *args, **kwargs) <NEW_LINE> self.blueprint = bluepr... | A custom GitHub session class that uses the blueprint's
admin access token. | 62598ef1d486a94d0ba2a7cd |
class FyppError(Exception): <NEW_LINE> <INDENT> def __init__(self, msg, fname=None, span=None, cause=None): <NEW_LINE> <INDENT> super(FyppError, self).__init__() <NEW_LINE> self.msg = msg <NEW_LINE> self.fname = fname <NEW_LINE> self.span = span <NEW_LINE> self.cause = cause <NEW_LINE> <DEDENT> def __str__(self): <NEW_... | Signalizes error occuring during preprocessing.
Args:
msg (str): Error message.
fname (str): File name. None (default) if file name is not available.
span (tuple of int): Beginning and end line of the region where error
occured or None if not available. If fname was not None, span must
not ... | 62598ef1442bda511e95ac68 |
class Conventions: <NEW_LINE> <INDENT> CDECL, THISCALL, STDCALL = range(3) | This class defines constants which denote various x86
calling conventions. NOTE: Using the wrong calling convention will
cause crashing! | 62598ef101c39578d7f115a9 |
class Row(twc.CompoundWidget): <NEW_LINE> <INDENT> template = 'rnms.templates.widgets.row' | Bootstrap row element | 62598ef11f5feb6acb161459 |
class Histogram(object) : <NEW_LINE> <INDENT> def __init__(self, xmin, xmax, nbins, name): <NEW_LINE> <INDENT> self.xmin = xmin <NEW_LINE> self.xmax = xmax <NEW_LINE> self.name = name <NEW_LINE> self.overflow = 0 <NEW_LINE> self.underflow = 0 <NEW_LINE> self.nan_count = 0 <NEW_LINE> self.bin_values = [0 for i in range(... | Simple 1-D histogram base class.
You have to specify several things on construction.
- xmin : Minimum x value
* x < xmin goes into the underflow.
- xmax : Maximum x value
* x >= xmax goes into the overflow.
- nbins : Number of bins.
- name : Name of this histogram. This will be the key
in the ... | 62598ef1a8370b77170eebea |
@dataclass <NEW_LINE> class Device: <NEW_LINE> <INDENT> mac: str <NEW_LINE> ip_address: str <NEW_LINE> name: str | FRITZ!Box device class. | 62598ef17d847024c075abd5 |
class ReplayBuffer: <NEW_LINE> <INDENT> def __init__(self, action_size, buffer_size, batch_size, seed): <NEW_LINE> <INDENT> self.action_size = action_size <NEW_LINE> self.memory = deque(maxlen=buffer_size) <NEW_LINE> self.batch_size = batch_size <NEW_LINE> self.experience = namedtuple("Experience", field_names=["state"... | Fixed-size buffer to store experience tuples. | 62598ef15fdd1c0f98e5c7a8 |
@parser(Specs.ls_dev) <NEW_LINE> class LsDev(FileListing): <NEW_LINE> <INDENT> pass | Parses output of ``ls -lanR /dev`` command. | 62598ef132920d7e50bc4832 |
class DescribeFleetPortSettingsRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.FleetId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.FleetId = params.get("FleetId") | DescribeFleetPortSettings请求参数结构体
| 62598ef1379a373c97d977fd |
class Action50(Action): <NEW_LINE> <INDENT> def execute(self, instance): <NEW_LINE> <INDENT> raise NotImplementedError('%s not implemented' % ( str(self))) | Callback->Character->Destination Y...
Parameters:
0: Char: New Y Destination (OBJECT, Object)
1: (EXPRESSION, ExpressionParameter) | 62598ef15166f23b2e241bdf |
class TipoHabitacionListView(ListView): <NEW_LINE> <INDENT> model = TipoHabitacion | docstring for PhotoListView | 62598ef157b8e32f52507507 |
@implements(NodeAccountInterface) <NEW_LINE> class NodeAccount: <NEW_LINE> <INDENT> def __init__(self, service): <NEW_LINE> <INDENT> self.service = service <NEW_LINE> <DEDENT> def get(self, address): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> node_account_information = loop.run_until_complete( self.service.node_manag... | Implements node account. | 62598ef123849d37ff84f8c1 |
class Typedef(LowLevelType): <NEW_LINE> <INDENT> def __init__(self, OF, c_name): <NEW_LINE> <INDENT> assert isinstance(OF, LowLevelType) <NEW_LINE> if isinstance(OF, Typedef): <NEW_LINE> <INDENT> OF = OF.OF <NEW_LINE> <DEDENT> self.OF = OF <NEW_LINE> self.c_name = c_name <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LIN... | A typedef is just another name for an existing type | 62598ef1851cf427c66b6aca |
class Divider(object): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def calc(operand_2, operand_1): <NEW_LINE> <INDENT> return operand_2/operand_1 | this is the division class | 62598ef144b2445a339b5d6f |
class MapAsyncIterator: <NEW_LINE> <INDENT> def __init__(self, iterable: AsyncIterable, callback: Callable) -> None: <NEW_LINE> <INDENT> self.iterator = iterable.__aiter__() <NEW_LINE> self.callback = callback <NEW_LINE> self._close_event = Event() <NEW_LINE> <DEDENT> def __aiter__(self) -> "MapAsyncIterator": <NEW_LIN... | Map an AsyncIterable over a callback function.
Given an AsyncIterable and a callback function, return an AsyncIterator which
produces values mapped via calling the callback function.
When the resulting AsyncIterator is closed, the underlying AsyncIterable will also
be closed. | 62598ef176e4537e8c3eddbd |
class CustomManager(models.Manager): <NEW_LINE> <INDENT> def bulk_create(self, objs, **kwargs): <NEW_LINE> <INDENT> invoice = super(models.Manager, self).bulk_create(objs, **kwargs) <NEW_LINE> for i in objs: <NEW_LINE> <INDENT> post_save.send(i.__class__, instance=i, created=True) <NEW_LINE> <DEDENT> return invoice | To Trigger post_save signal which is not triggered by default
when you use bulk_create | 62598ef1377c676e912f6165 |
class ProviderDetailsView(BaseLoggedInPage): <NEW_LINE> <INDENT> title = Text('//div[@id="main-content"]//h1') <NEW_LINE> breadcrumb = BreadCrumb(locator='//ol[@class="breadcrumb"]') <NEW_LINE> toolbar = View.nested(ProviderDetailsToolBar) <NEW_LINE> entities = ConditionalSwitchableView(reference='toolbar.view_selector... | main Details page | 62598ef1498bea3a75a5633a |
class Rescale(object): <NEW_LINE> <INDENT> def __init__(self, output_size): <NEW_LINE> <INDENT> assert isinstance(output_size, (int, tuple)) <NEW_LINE> self.output_size = output_size <NEW_LINE> <DEDENT> def __call__(self, sample): <NEW_LINE> <INDENT> image, x, y, z, w, p, q, r = sample['image'], sample['x'],... | Rescale the image in a sample to a given size.
Args:
output_size (tuple or int): Desired output size. If tuple, output is
matched to output_size. If int, smaller of image edges is matched
to output_size keeping aspect ratio the same. | 62598ef1e1aae11d1e7cdc44 |
class MicroExitPolicy(ExitPolicy): <NEW_LINE> <INDENT> def __init__(self, policy: str) -> None: <NEW_LINE> <INDENT> policy_str = policy <NEW_LINE> if policy.startswith('accept'): <NEW_LINE> <INDENT> self.is_accept = True <NEW_LINE> <DEDENT> elif policy.startswith('reject'): <NEW_LINE> <INDENT> self.is_accept = False <N... | Exit policy provided by the microdescriptors. This is a distilled version of
a normal :class:`~stem.exit_policy.ExitPolicy` contains, just consisting of a
list of ports that are either accepted or rejected. For instance...
::
accept 80,443 # only accepts common http ports
reject 1-1024 # only accepts ... | 62598ef199cbb53fe682f6b5 |
class KeypadDevice(Device): <NEW_LINE> <INDENT> LOW_BATTERY_TAG = "lowbattery_aa" <NEW_LINE> BATTERY_TYPE = "AA" <NEW_LINE> DEVICE_TYPES = [] <NEW_LINE> def __init__(self, botengine, device_id, device_type, device_description, precache_measurements=True): <NEW_LINE> <INDENT> Device.__init__(self, botengine, device_id, ... | Keypad Device | 62598ef17047854f4633dbd7 |
class QLearningAgent(ReinforcementAgent): <NEW_LINE> <INDENT> def __init__(self, **args): <NEW_LINE> <INDENT> ReinforcementAgent.__init__(self, **args) <NEW_LINE> "*** YOUR CODE HERE ***" <NEW_LINE> self.qValues = util.Counter() <NEW_LINE> <DEDENT> def getQValue(self, state, action): <NEW_LINE> <INDENT> if self.qValues... | Q-Learning Agent
Functions you should fill in:
- computeValueFromQValues
- computeActionFromQValues
- getQValue
- getAction
- update
Instance variables you have access to
- self.epsilon (exploration prob)
- self.alpha (learning rate)
- self.discount (discount rate)
Functions you should use
- self.g... | 62598ef1956e5f7376df4a7c |
class SmallAmountPasswordLessPaymentsPageConfigs(object): <NEW_LINE> <INDENT> assert_view_timeout = 10 <NEW_LINE> assert_invalid_view_time = 3 <NEW_LINE> click_on_button_timeout = 10 <NEW_LINE> resource_id_square_dynamic_title = "com.wanda.app.wanhui:id/common_title_view_layout_title" <NEW_LINE> resource_id_small_amoun... | This is a configuration class for SmallAmountPasswordLessPaymentsPage class. | 62598ef156b00c62f0fb10db |
class TestContentCreation(FunctionalTestCase): <NEW_LINE> <INDENT> def afterSetUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testSiteReindexed(self): <NEW_LINE> <INDENT> self.loginAsPortalOwner() <NEW_LINE> search = self.portal.portal_catalog.searchResults(id='about')[0] <NEW_LINE> self.failUnless(search.g... | Ensure that content is being created and configged properly. | 62598ef14c34283577618aed |
class Trim(): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def _get_coords(self, quality, **kwargs): <NEW_LINE> <INDENT> quality_cutoff = 20 <NEW_LINE> _sum, _max, first, last, start, end = 0, 0, 0, 0, 0, 0 <NEW_LINE> for a, q in enumerate(quality): <NEW_LINE> <INDENT> _sum += (q - quality_cutoff) <NEW_LINE> if _sum > _... | The Famous Trim algorithm | 62598ef1627d3e7fe0e05692 |
class OmniFormBaseView(ModelFormView, InstanceSpecificView): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def _get_model_permission(model_class, permission_type): <NEW_LINE> <INDENT> return '{0}.{1}_{2}'.format( model_class._meta.app_label, permission_type, model_class._meta.model_name ) <NEW_LINE> <DEDENT> def check_a... | Base view class for working with omni forms | 62598ef1fff4ab517ebcbfdf |
class FakeSecHead(object): <NEW_LINE> <INDENT> def __init__(self, fp): <NEW_LINE> <INDENT> self.fp = fp <NEW_LINE> self.sechead = '[nosection]\n' <NEW_LINE> <DEDENT> def readline(self): <NEW_LINE> <INDENT> if self.sechead: <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return self.sechead <NEW_LINE> <DEDENT> finally: <NE... | Helper class to read sectionless property files using the python ConfigParser | 62598ef1be383301e0251fe2 |
class SwitchBuffersPlugin(IPeppyPlugin): <NEW_LINE> <INDENT> def activateHook(self): <NEW_LINE> <INDENT> pub.subscribe(self.getTabMenu, 'tabs.context_menu') <NEW_LINE> <DEDENT> def deactivateHook(self): <NEW_LINE> <INDENT> pub.unsubscribe(self.getTabMenu, 'tabs.context_menu') <NEW_LINE> <DEDENT> def getTabMenu(self, ac... | Yapsy plugin to register the tab change actions
| 62598ef1cc40096d616195dc |
class LazyFormSetFactory(object): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> assert len(args) > 0, "You must provide at least one argument" <NEW_LINE> assert callable(args[0]), "The first argument must be a formset factory" <NEW_LINE> self.args = args <NEW_LINE> self.kwargs = kwargs <N... | Wrapper class for formset factories, for use with FormView.
To create a formset, you create an instance of this class
where the first argument is the factory function. Any other
arguments will get passed to the factory function when it
gets called.
::
LazyFormSetFactory(inlineformset_factory, models.Parent, mode... | 62598ef13346ee7daa336a6b |
class ElementWrapper(Element): <NEW_LINE> <INDENT> wrapped_class = object <NEW_LINE> def __init__(self, value, parent): <NEW_LINE> <INDENT> assert isinstance(value, self.wrapped_class) <NEW_LINE> Element.__init__(self, parent = parent) <NEW_LINE> self.value = value <NEW_LINE> <DEDENT> def _repr_(self): <NEW_LINE> <INDE... | A class for wrapping Sage or Python objects as Sage elements
WARNING: This class has serious issues that can lead to subtle
segfaults. Do not use it unless you read trac 8200 first:
http://trac.sagemath.org/sage_trac/ticket/8200
EXAMPLES::
sage: from sage.structure.element_wrapper import DummyParent
sage: p... | 62598ef13d592f4c4edb96f4 |
class _SSEState(object): <NEW_LINE> <INDENT> def __init__(self, app, entry_point_group=None): <NEW_LINE> <INDENT> self.app = app <NEW_LINE> self._redis = StrictRedis.from_url(app.config['SSE_REDIS_URL']) <NEW_LINE> self.integrations = {} <NEW_LINE> if entry_point_group: <NEW_LINE> <INDENT> self.load_integration(entry_p... | SSE state accessible via ``proxies.current_sse``. | 62598ef1a17c0f6771d5aa5c |
class TethysDjangoFormTutorial(TethysAppBase): <NEW_LINE> <INDENT> name = 'Tethys Django Form with Param Tutorial' <NEW_LINE> index = 'tethys_django_form_tutorial:home' <NEW_LINE> icon = 'tethys_django_form_tutorial/images/icon.gif' <NEW_LINE> package = 'tethys_django_form_tutorial' <NEW_LINE> root_url = 'tethys-django... | Tethys app class for Tethys Django Form with Param Tutorial. | 62598ef156ac1b37e63009f4 |
class Command(BaseCommand): <NEW_LINE> <INDENT> help = textwrap.dedent(__doc__) <NEW_LINE> def add_arguments(self, parser): <NEW_LINE> <INDENT> parser.add_argument(u'course_keys', type=CourseKey.from_string, nargs='*') <NEW_LINE> <DEDENT> def handle(self, *args, **options): <NEW_LINE> <INDENT> if options[u'course_keys'... | Send all lti scores for the requested courses to the registered consumers.
If no arguments are provided, send all scores for all courses.
Examples:
./manage.py lms resend_lti_scores
./manage.py lms resend_lti_scores course-v1:edX+DemoX+Demo_Course course-v1:UBCx+course+2016-01 | 62598ef18e7ae83300ee7897 |
class RnaSpeciesSpecificView(generics.RetrieveAPIView): <NEW_LINE> <INDENT> queryset = Rna.objects.all() <NEW_LINE> def get(self, request, pk, taxid, format=None): <NEW_LINE> <INDENT> rna = self.get_object() <NEW_LINE> xrefs = rna.xrefs.filter(taxid=taxid) <NEW_LINE> if not xrefs: <NEW_LINE> <INDENT> raise Http404 <NEW... | API endpoint for retrieving species-specific details
about Unique RNA Sequences.
[API documentation](/api) | 62598ef1a8370b77170eebec |
class FlashLight: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.neo_pixel = neopixel.NeoPixel(machine.Pin(0), 1) <NEW_LINE> self.palette = {DIT: (255, 255, 255), DAH: (255, 0, 0)} <NEW_LINE> <DEDENT> def flash(self, signal): <NEW_LINE> <INDENT> if signal == WORD_PAUSE: <NEW_LINE> <INDENT> time.slee... | Neopixel Flash Light | 62598ef11f5feb6acb16145b |
class UnexpectedMovementSide(CladEnumWrapper): <NEW_LINE> <INDENT> _clad_enum = _clad_to_engine_cozmo.UnexpectedMovementSide <NEW_LINE> _entry_type = _UnexpectedMovementSide <NEW_LINE> Unknown = _entry_type("Unknown", _clad_enum.UNKNOWN) <NEW_LINE> Front = _entry_type("Front", _clad_enum.FRONT) <NEW_LINE> Back = _entry... | Defines the side of collision that caused unexpected movement.
This will always be UNKNOWN while reaction triggers are disabled.
Call :meth:`cozmo.robot.Robot.enable_all_reaction_triggers` to enable reaction triggers. | 62598ef130bbd7224646843d |
class Task(Map): <NEW_LINE> <INDENT> def __eq__(self, other): <NEW_LINE> <INDENT> if isinstance(other, str): <NEW_LINE> <INDENT> return self['content'] == other <NEW_LINE> <DEDENT> return super().__eq__(other) | Represents a `Task` | 62598ef14527f215b58e8707 |
class WebappSetupProps(NamedTuple): <NEW_LINE> <INDENT> app_name: str <NEW_LINE> default_section_name: str <NEW_LINE> env_config_file: str <NEW_LINE> env_config_section: Optional[str] = None <NEW_LINE> check_galaxy_root: bool = False | Basic properties to provide information about the App and the environment variables
used to resolve the App configuration. | 62598ef1dc8b845886d51dcd |
class b2AssertException(object): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> __dir__ = _dir_filter <NEW_LINE> def __hash__(self): <NEW_LINE> <INDENT> return _Box2D.b2AssertException___hash__(self)... | Proxy of C++ b2AssertException class. | 62598ef144b2445a339b5d70 |
class RekallResponseToExportedRekallProcessConverterTest(test_lib.GRRBaseTest): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> super(RekallResponseToExportedRekallProcessConverterTest, self).setUp() <NEW_LINE> self.converter = export.RekallResponseToExportedRekallProcessConverter() <NEW_LINE> <DEDENT> def tes... | Tests for RekallResponseToExportedRekallProcessConverter. | 62598ef1bf627c535bcafc79 |
class SearchResults(): <NEW_LINE> <INDENT> def __init__(self,query:str): <NEW_LINE> <INDENT> sleep(2) <NEW_LINE> r = requests.get(PDS_PPI_URL + query) <NEW_LINE> search_results_json = json.loads(r.content) <NEW_LINE> search_results = pd.DataFrame(search_results_json['response']['docs']) <NEW_LINE> self.numfound = searc... | Gives the results of a search and metadata about the search.
Sleeps first in order to be polite to NASA PDS. :D
Attributes:
numfound -- the number of results returned by the query.
results -- a pandas DataFrame which stores the search results. | 62598ef160cbc95b06362b49 |
class PrintHook(function.FunctionHook): <NEW_LINE> <INDENT> name = 'PrintHook' <NEW_LINE> def __init__(self, sep='', end='\n', file=sys.stdout, flush=True): <NEW_LINE> <INDENT> self.sep = sep <NEW_LINE> self.end = end <NEW_LINE> self.file = file <NEW_LINE> self.flush = flush <NEW_LINE> <DEDENT> def _print(self, msg): <... | Function hook that prints debug information.
This function hook outputs the debug information of input arguments of
``forward`` and ``backward`` methods involved in the hooked functions
at preprocessing time (that is, just before each method is called).
The basic usage is to use it with ``with`` statement.
>>> impor... | 62598ef12c8b7c6e89bd1fcb |
class Predicate: <NEW_LINE> <INDENT> __slots__ = tuple() <NEW_LINE> def __call__(self, *args, **kwargs): <NEW_LINE> <INDENT> raise NotImplementedError('Must implement `__call__`') <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> raise NotImplementedError('Must implement `__str__`') <NEW_LINE> <DEDENT> def __r... | Represents a predicate function to be used for type matching in
``ABIRegistry``. | 62598ef199cbb53fe682f6b7 |
class Entity(Sprite): <NEW_LINE> <INDENT> def __init__(self, game_engine, width, height, x_pos, y_pos, collides_with=None, animation=None): <NEW_LINE> <INDENT> super(Entity, self).__init__(game_engine, width, height, x_pos, y_pos, collides_with, animation=animation) <NEW_LINE> self.collectable = False <NEW_LINE> <DEDEN... | Represents any entity that is not another player/enemy | 62598ef121bff66bcd72145f |
class RandomChoice(_RandomSelection): <NEW_LINE> <INDENT> _replace = True | <dl>
<dt>'RandomChoice[$items$]'
<dd>randomly picks one item from $items$.
<dt>'RandomChoice[$items$, $n$]'
<dd>randomly picks $n$ items from $items$. Each pick in the $n$ picks happens from the
given set of $items$, so each item can be picked any number of times.
<dt>'RandomChoice[$items$, {$n1$, $n2$, ...... | 62598ef14428ac0f6e656d56 |
class ShelterForm(Form): <NEW_LINE> <INDENT> name = StringField('name', [validators.InputRequired(), validators.Length( max=50, message="Limit 50 characters, please try again.")]) <NEW_LINE> address = StringField('address', [validators.InputRequired(), validators.Length( max=30, message="Limit 30 characters, please try... | Sets definitions and validators for Shelter forms | 62598ef1283ffb24f3cf20bc |
class Layout(models.Model): <NEW_LINE> <INDENT> name = models.CharField(_('Layout Name'), max_length=256) <NEW_LINE> image = models.FileField(_('Layout Image'), upload_to='layout') <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> ordering = ["name"] ... | Планировка самой квартиры | 62598ef1aad79263cf42d017 |
class Lowering(object): <NEW_LINE> <INDENT> def __init__(self, graph, mesh_to_impl): <NEW_LINE> <INDENT> self.mesh_to_impl = mesh_to_impl <NEW_LINE> self.graph = graph <NEW_LINE> self._counters = [] <NEW_LINE> self.tensors = {} <NEW_LINE> self.operations = {} <NEW_LINE> self.variables = {} <NEW_LINE> for op in graph.op... | Lowering of a Graph from Mesh-TensorFlow to TensorFlow.
#### Examples
Below we form a Graph with one Tensor and lower it to recover the original
tf.Tensor.
```python
from tensor2tensor.mesh_tensorflow import placement_mesh_impl
graph = mtf.Graph()
mesh = mtf.Mesh(graph, "my_mesh")
inputs = tf.constant(0.)
mtf_input... | 62598ef1be7bc26dc9251267 |
class Marksman(InfantryAsset): <NEW_LINE> <INDENT> def __init__(self, marksmanID, speed): <NEW_LINE> <INDENT> self.manID = marksmanID <NEW_LINE> self.max_speed = np.random.lognormal(mean=speed[0], sigma=speed[1]) <NEW_LINE> self.effective_range = 75 <NEW_LINE> self.phit = 0.5 <NEW_LINE> self.status = 0 <NEW_LINE> self.... | Marksman represents an infantryman equipped primarily with small arms
marksman rifle variants. | 62598ef1d7e4931a7ef3a8a4 |
class Actor: <NEW_LINE> <INDENT> def __init__(self, state_size, action_size, action_low, action_high): <NEW_LINE> <INDENT> self.state_size = state_size <NEW_LINE> self.action_size = action_size <NEW_LINE> self.action_low = action_low <NEW_LINE> self.action_high = action_high <NEW_LINE> self.action_range = self.action_h... | Actor (Policy) Model. | 62598ef1dd821e528d6d7748 |
class CollisionDetectionMixin(Object): <NEW_LINE> <INDENT> def collision_check(self): <NEW_LINE> <INDENT> for obj in self.controller.engine.objects: <NEW_LINE> <INDENT> if not (obj is self or self.rect.colliderect(obj.rect) == 0): <NEW_LINE> <INDENT> return obj <NEW_LINE> <DEDENT> <DEDENT> return False | Adds a collision check mechanism | 62598ef1ff9c53063f518e6a |
class ExtensionPoint(object): <NEW_LINE> <INDENT> def __init__(self, *args): <NEW_LINE> <INDENT> nargs=len(args) <NEW_LINE> if nargs == 0: <NEW_LINE> <INDENT> raise PluginError("Must specify interface class used in the ExtensionPoint") <NEW_LINE> <DEDENT> self.interface = args[0] <NEW_LINE> self.env = [ PluginGlobals.e... | Marker class for extension points in services. | 62598ef163b5f9789fe83968 |
class MaternalEnrollMed(BaseScheduledVisitModel): <NEW_LINE> <INDENT> maternal_enroll = models.OneToOneField(MaternalEnroll) <NEW_LINE> has_chronic_cond = models.CharField( max_length=25, choices=YES_NO, verbose_name="Does the mother have any significant chronic condition(s) that were diagnosed prior to the current pre... | Model for Maternal Enrollment: Med History | 62598ef1baa26c4b54d4dad7 |
class PutFleetsFleetIdWingsWingIdForbidden(object): <NEW_LINE> <INDENT> def __init__(self, error=None): <NEW_LINE> <INDENT> self.swagger_types = { 'error': 'str' } <NEW_LINE> self.attribute_map = { 'error': 'error' } <NEW_LINE> self._error = error <NEW_LINE> <DEDENT> @property <NEW_LINE> def error(self): <NEW_LINE> <IN... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598ef17b25080760ed5ca6 |
class CompositionTableaux_all(CompositionTableaux, DisjointUnionEnumeratedSets): <NEW_LINE> <INDENT> r <NEW_LINE> def __init__(self, max_entry=None): <NEW_LINE> <INDENT> self.max_entry = max_entry <NEW_LINE> CT_n = lambda n: CompositionTableaux_size(n, max_entry) <NEW_LINE> DisjointUnionEnumeratedSets.__init__(self, Fa... | All composition tableaux. | 62598ef1851cf427c66b6ace |
class SimpleHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): <NEW_LINE> <INDENT> pass | Same interface as Python class
SimpleHTTPServer.SimpleHTTPRequestHandler. | 62598ef13d592f4c4edb96f7 |
class SequenceBase(object): <NEW_LINE> <INDENT> def __init__(self, ring): <NEW_LINE> <INDENT> self._ring = ring <NEW_LINE> self._header = None <NEW_LINE> self._tensor = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def _base_obj(self): <NEW_LINE> <INDENT> return ctypes.cast(self.obj, _bf.BFsequence) <NEW_LINE> <DEDENT>... | Python object for a ring's sequence (data unit) | 62598ef1e5267d203ee6a113 |
class NetworkInterfaceTapConfiguration(SubResource): <NEW_LINE> <INDENT> _validation = { 'type': {'readonly': True}, 'provisioning_state': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'type': {'key... | Tap configuration in a Network Interface.
Variables are only populated by the server, and will be ignored when sending a request.
:param id: Resource ID.
:type id: str
:param name: The name of the resource that is unique within a resource group. This name can be
used to access the resource.
:type name: str
:param et... | 62598ef1b7558d5895461e52 |
class TestV1ContainerPort(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 testV1ContainerPort(self): <NEW_LINE> <INDENT> model = kubernetes.client.models.v1_container_port.V1ContainerPort() | V1ContainerPort unit test stubs | 62598ef1f548e778e5969d96 |
class SSHClient(object): <NEW_LINE> <INDENT> def __init__(self, c_path=os.path.join(syspaths.CONFIG_DIR, 'master'), mopts=None, disable_custom_roster=False): <NEW_LINE> <INDENT> if mopts: <NEW_LINE> <INDENT> self.opts = mopts <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> if os.path.isdir(c_path): <NEW_LINE> <INDENT> lo... | Create a client object for executing routines via the salt-ssh backend
.. versionadded:: 2015.5.0 | 62598ef17047854f4633dbdb |
class PacketCaptureQueryStatusResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, 'capture_start_time': {'key': 'captureStartTime', 'type': 'iso-8601'}, 'packet_capture_status': {'key': 'packetCaptureStatus', 'type': 'str... | Status of packet capture session.
:param name: The name of the packet capture resource.
:type name: str
:param id: The ID of the packet capture resource.
:type id: str
:param capture_start_time: The start time of the packet capture session.
:type capture_start_time: ~datetime.datetime
:param packet_capture_status: The... | 62598ef14428ac0f6e656d58 |
class KineticHanger(object): <NEW_LINE> <INDENT> pass | ref: https://en.wikipedia.org/wiki/Kinetic_hanger | 62598ef1f548e778e5969d97 |
class Contact(Element): <NEW_LINE> <INDENT> def __init__( self, ): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self._attribute_names = [] | This is a grouping element and does not have any attributes. It
groups elements that are used to adjust the generation of candidate
contact pairs for collision checking. Collision detection was described in
detail in the Computation chapter, thus the description here is brief. | 62598ef14c34283577618af1 |
class GuessingGame(EasyFrame): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> EasyFrame.__init__(self, title = "Gussing Game") <NEW_LINE> self.myNumber = random.randint(1, 100) <NEW_LINE> self.count = 0 <NEW_LINE> greeting = "Guess a number between 1 and 100." <NEW_LINE> self.hintLabel = self.addLabel(text... | Plays a guessing game with the user. | 62598ef1fff4ab517ebcbfe3 |
class SelectNFrame(SelectN): <NEW_LINE> <INDENT> def __init__(self, obj, n: int, keep: str, columns): <NEW_LINE> <INDENT> super().__init__(obj, n, keep) <NEW_LINE> if not is_list_like(columns) or isinstance(columns, tuple): <NEW_LINE> <INDENT> columns = [columns] <NEW_LINE> <DEDENT> columns = list(columns) <NEW_LINE> s... | Implement n largest/smallest for DataFrame
Parameters
----------
obj : DataFrame
n : int
keep : {'first', 'last'}, default 'first'
columns : list or str
Returns
-------
nordered : DataFrame | 62598ef13539df3088ecaabd |
class Permission(Base): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> abstract = True <NEW_LINE> <DEDENT> expiration = models.DateTimeField() <NEW_LINE> @staticmethod <NEW_LINE> def this_query(obj): <NEW_LINE> <INDENT> return {} <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def get_object(pk): <NEW_LINE> <INDENT> ... | A permission relation between a resource and a user, detailing if
the user can access the resource in different ways | 62598ef1a8370b77170eebef |
class BaseUser(AbstractUser): <NEW_LINE> <INDENT> email = models.EmailField("email address", unique=True) <NEW_LINE> avatar = models.ImageField() <NEW_LINE> is_email_verified = models.BooleanField(default=False) <NEW_LINE> verification_code = models.CharField(max_length=10, null=True, default=None) <NEW_LINE> objects =... | User model for the app. | 62598ef1e5267d203ee6a114 |
class Str_extr: <NEW_LINE> <INDENT> tex='' <NEW_LINE> fav='' <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.tex="" <NEW_LINE> self.fav="" <NEW_LINE> <DEDENT> def get_docID(s): <NEW_LINE> <INDENT> with open(s, "r",encoding = "ISO-8859-1") as ins: <NEW_LINE> <INDENT> for line in ins: <NEW_LINE> <INDENT> if line.... | Str_extr have been written in order to parse data among Tags.
contained functions are:
f_tag(String)
text_tag(String)
implemented by Soran Ghadri
Email: kpg.kurd@gmail.com | 62598ef1d7e4931a7ef3a8a6 |
class SquareNumberApp(App): <NEW_LINE> <INDENT> def build(self): <NEW_LINE> <INDENT> Window.size = (300, 120) <NEW_LINE> self.title = "Square Number" <NEW_LINE> self.root = Builder.load_file('squaring.kv') <NEW_LINE> return self.root <NEW_LINE> <DEDENT> def handle_calculate(self, value): <NEW_LINE> <INDENT> result = va... | SquareNumberApp is a Kivy App for squaring a number | 62598ef1236d856c2adc881c |
class InitializeOAuthResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_AuthorizationURL(self): <NEW_LINE> <INDENT> return self._output.get('AuthorizationURL', None) <NEW_LINE> <DEDENT> def get_CallbackID(self): <NEW_LINE> <... | A ResultSet with methods tailored to the values returned by the InitializeOAuth Choreo.
The ResultSet object is used to retrieve the results of a Choreo execution. | 62598ef1cc40096d616195de |
class Constant(Cost): <NEW_LINE> <INDENT> def __init__(self, dom, c): <NEW_LINE> <INDENT> super().__init__(dom) <NEW_LINE> self.c = np.array(c).item() <NEW_LINE> self.smooth = 2 <NEW_LINE> <DEDENT> def function(self, *args, **kwargs): <NEW_LINE> <INDENT> return self.c <NEW_LINE> <DEDENT> def gradient(self, *args, **kwa... | Constant cost.
This class defines a constant, whose value is stored in the attribute `c`.
The `gradient` and `hessian` methods return 0, while the proximal acts
as an identity.
Attributes
----------
dom : sets.Set
The given cost domain, for compatibility with other costs.
c : float
The constant value.
smooth ... | 62598ef18a43f66fc4bf0980 |
class BalanceByDateRangeView(ManyMixin, ByDateRangeMixin, RetrieveView): <NEW_LINE> <INDENT> serializer_class = BalanceSerializer <NEW_LINE> def get_object(self): <NEW_LINE> <INDENT> start_date, end_date = self.get_date_range() <NEW_LINE> company_id = self.get_company_id() <NEW_LINE> return Balance.for_date_range(compa... | Get a balance for a company by date range. | 62598ef1dd821e528d6d774a |
class Occurrence(models.Model): <NEW_LINE> <INDENT> start_time = models.DateTimeField() <NEW_LINE> end_time = models.DateTimeField() <NEW_LINE> event = models.ForeignKey(Event, editable=False) <NEW_LINE> notes = generic.GenericRelation(Note) <NEW_LINE> objects = OccurrenceManager() <NEW_LINE> class Meta: <NEW_LINE> <IN... | Represents the start end time for a specific occurrence of a master ``Event``
object. | 62598ef1796e427e5384cfa4 |
class CArgb: <NEW_LINE> <INDENT> def __init__(self, color=(255, 255, 255, 255)): <NEW_LINE> <INDENT> self.r, self.g, self.b, self.a = color <NEW_LINE> <DEDENT> def read(self, f): <NEW_LINE> <INDENT> self.r, self.g, self.b, self.a = uint8.read(f, 4) <NEW_LINE> <DEDENT> def write(self, f): <NEW_LINE> <INDENT> uint8.write... | A color given in values of red, green, blue and alpha | 62598ef18e7ae83300ee789b |
class Field(Html): <NEW_LINE> <INDENT> tag = 'span' <NEW_LINE> def __init__(self, field, renderer=None, format=None, **options): <NEW_LINE> <INDENT> super().__init__(**options) <NEW_LINE> self.field = field <NEW_LINE> self.renderer = renderer <NEW_LINE> self.format = format if format else '{0}' <NEW_LINE> <DEDENT> def ... | Render single field from object | 62598ef1167d2b6e312b57a6 |
class DarwinTaskProcessCollector(common.DarwinEntityCollector): <NEW_LINE> <INDENT> _name = "tasks" <NEW_LINE> outputs = ["MemoryObject/type=proc"] <NEW_LINE> def collect(self, hint): <NEW_LINE> <INDENT> tasks = self.profile.get_constant_object( "_tasks", target="queue_entry", vm=self.session.kernel_address_space) <NEW... | Lists processes using the processor tasks queue.
Adapted from legacy pslist plugin's list_using_task.
XNU reference:
/osfmk/kern/processor.c (processor_set_things) | 62598ef17d847024c075abdb |
class AddResponderToAlertPayload(object): <NEW_LINE> <INDENT> swagger_types = { 'user': 'str', 'note': 'str', 'source': 'str', 'responder': 'Recipient' } <NEW_LINE> attribute_map = { 'user': 'user', 'note': 'note', 'source': 'source', 'responder': 'responder' } <NEW_LINE> def __init__(self, user=None, note=None, source... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598ef191f36d47f22302aa |
class Result: <NEW_LINE> <INDENT> def __init__(self, item: Any, reaction: Optional[discord.Reaction], menu: "Menu", **kwargs): <NEW_LINE> <INDENT> self.item = item <NEW_LINE> self.reaction = reaction <NEW_LINE> self.menu = menu <NEW_LINE> self.extra = kwargs <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> r... | Result from a Menu object | 62598ef144b2445a339b5d72 |
class Song(BaseSong): <NEW_LINE> <INDENT> def __init__(self, source, source_dir, target_dir, remote_metadata, tzinfo): <NEW_LINE> <INDENT> self.remote_metadata = remote_metadata <NEW_LINE> self.tzinfo = tzinfo <NEW_LINE> super().__init__(source, source_dir, target_dir) <NEW_LINE> <DEDENT> def _generate_target_path(self... | Holds information about one song, locally and on the FlashAir card. Handles source/destination file paths.
:ivar dict live_metadata: Current metadata of source file.
:ivar str source: Source file path (local MP3 file).
:ivar dict stored_metadata: Metadata of remote file on FlashAir card.
:ivar str target: Target file ... | 62598ef1851cf427c66b6ad0 |
class BigGlyphMetrics: <NEW_LINE> <INDENT> def __init__(self, metrics): <NEW_LINE> <INDENT> localScale = getLocalScale(metrics) <NEW_LINE> self.height = round( (metrics['height'] / localScale) * bitScale ) <NEW_LINE> self.width = round( (metrics['width'] / localScale) * bitScale ) <NEW_LINE> self.hor... | A class representation of a EBDT/EBLC/CBDT/CBLC BigGlyphMetrics subtable. | 62598ef15fc7496912d47678 |
class DescribeTopicsResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.Topics = None <NEW_LINE> self.TotalCount = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> if params.get("Topics") is not None: <NEW_LINE> <INDENT> ... | DescribeTopics返回参数结构体
| 62598ef1009cb60464cffd5c |
class VisualStudioAuth(BaseOAuth2): <NEW_LINE> <INDENT> AUTHORIZATION_URL = VISUALSTUDIO_AUTHORIZATION_URL <NEW_LINE> ACCESS_TOKEN_URL = VISUALSTUDIO_TOKEN_EXCHANGE_URL <NEW_LINE> AUTH_BACKEND = VisualStudioBackend <NEW_LINE> SETTINGS_KEY_NAME = "VISUALSTUDIO_APP_ID" <NEW_LINE> SETTINGS_SECRET_NAME = "VISUALSTUDIO_APP_... | Slack OAuth authentication mechanism | 62598ef12c8b7c6e89bd1fcf |
class RPCServer(threading.Thread): <NEW_LINE> <INDENT> def __init__(self, config, host_monitor, guest_manager, policy_engine): <NEW_LINE> <INDENT> threading.Thread.__init__(self, name="RPCServer") <NEW_LINE> self.setDaemon(True) <NEW_LINE> self.config = config <NEW_LINE> self.threads = { 'host_monitor': host_monitor, '... | The RPCServer thread provides an API for external programs to interact
with MOM. | 62598ef1f548e778e5969d98 |
class RegistroD209(Registro): <NEW_LINE> <INDENT> campos = [ CampoFixo(1, 'REG', 'D209'), Campo(2, 'NUM_PROC', obrigatorio=True), Campo(3, 'IND_PROC', obrigatorio=True), ] <NEW_LINE> nivel = 4 | Processo Referenciado | 62598ef199cbb53fe682f6bb |
class Database(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.root_records = [] <NEW_LINE> self._pointers = weakref.WeakValueDictionary() <NEW_LINE> <DEDENT> def add_root_record(self, record): <NEW_LINE> <INDENT> self.root_records.append(record) <NEW_LINE> <DEDEN... | Represents a database of parsed GEDCOM records.
You should not create instances of this class yourself.
Call :func:`gedcom.api.parse` to create an instance instead. | 62598ef121bff66bcd721463 |
class TroveBaseTraits(object): <NEW_LINE> <INDENT> event_type_format = 'trove.instance.%s' <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.payload = {} <NEW_LINE> instance = kwargs.pop('instance', None) <NEW_LINE> if instance: <NEW_LINE> <INDENT> self.instance = instance <NEW_LINE> self.context = inst... | The base traits of all trove.* notifications.
This class should correspond to trove_base_traits in
ceilometer/event_definitions.yaml | 62598ef1bd1bec0571e144d1 |
class PeerExpressRouteCircuitConnectionListResult(msrest.serialization.Model): <NEW_LINE> <INDENT> _attribute_map = { 'value': {'key': 'value', 'type': '[PeerExpressRouteCircuitConnection]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, value: Optional[List["PeerExpressRouteCircu... | Response for ListPeeredConnections API service call retrieves all global reach peer circuit connections that belongs to a Private Peering for an ExpressRouteCircuit.
:param value: The global reach peer circuit connection associated with Private Peering in an
ExpressRoute Circuit.
:type value: list[~azure.mgmt.network... | 62598ef1aad79263cf42d01a |
class BigSwitchMechanismDriver(NeutronRestProxyV2Base, api.MechanismDriver): <NEW_LINE> <INDENT> def initialize(self, server_timeout=None): <NEW_LINE> <INDENT> LOG.debug(_('Initializing driver')) <NEW_LINE> self.native_bulk_support = False <NEW_LINE> self.servers = ServerPool(server_timeout) <NEW_LINE> self.segmentatio... | Mechanism Driver for Big Switch Networks Controller.
This driver relays the network create, update, delete
operations to the Big Switch Controller. | 62598ef1460517430c430c96 |
class StorageData(object): <NEW_LINE> <INDENT> swagger_types = { 'name': 'str', 'description': 'str', 'comment': 'str' } <NEW_LINE> attribute_map = { 'name': 'name', 'description': 'description', 'comment': 'comment' } <NEW_LINE> def __init__(self, name=None, description=None, comment=None): <NEW_LINE> <INDENT> self._n... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598ef130dc7b766599e097 |
class ServiceUnit(object): <NEW_LINE> <INDENT> __active_units__ = weakref.WeakSet() <NEW_LINE> def __init__(self, service, flavour): <NEW_LINE> <INDENT> assert hasattr(service, "run"), "service must implement a 'run' method" <NEW_LINE> assert any( flavour == runner.flavour for runner in MetaRunner.runner_types ), "serv... | Definition for running a service
:param service: the service to run
:param flavour: runner flavour to use for running the service | 62598ef1627d3e7fe0e05698 |
class ChatStub(object): <NEW_LINE> <INDENT> def __init__(self, channel): <NEW_LINE> <INDENT> self.Echo = channel.unary_unary( '/Chat/Echo', request_serializer=hello__pb2.Sentence.SerializeToString, response_deserializer=hello__pb2.Sentence.FromString, ) | Missing associated documentation comment in .proto file. | 62598ef15fcc89381b26552f |
class SportsCoin(Bitcoin): <NEW_LINE> <INDENT> name = 'sportscoin' <NEW_LINE> symbols = ('SPORT', ) <NEW_LINE> nodes = ("63.142.255.39", ) <NEW_LINE> port = 42986 <NEW_LINE> message_start = b'\xaa\xa2\xb2\xc4' <NEW_LINE> base58_prefixes = { 'PUBKEY_ADDR': 63, 'SCRIPT_ADDR': 28, 'SECRET_KEY': 191 } | Class with all the necessary SportsCoin network information based on
https://github.com/thesportscoin/sport-source/blob/master/src/net.cpp
(date of access: 02/12/2018) | 62598ef1be383301e0251fe8 |
class GetConcatenatedNotesTransformer(TransformerMixin): <NEW_LINE> <INDENT> def __init__(self, note_type, look_back_months=None): <NEW_LINE> <INDENT> self.type = note_type <NEW_LINE> self.look_back_months = look_back_months <NEW_LINE> <DEDENT> def fit(self, X, y=None, **fit_params): <NEW_LINE> <INDENT> return self <NE... | Takes as input the type of note (i.e. 'Car' or 'Lno').
For each empi x in the input vector X, it returns a concatentation of
all the pre-procedure notes of the type specified for the patient with that empi. | 62598ef1cc40096d616195df |
class PMEcosistemasForm(ModelForm): <NEW_LINE> <INDENT> inidcare = forms.FloatField(label = u'Área de cobertura del estudio sobre la cuenca', required = False, help_text = u'En hectáreas (ha) o usuarios') <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = inidpmestud <NEW_LINE> fields = ['inidnomb', 'iniddocf', 'iniddo... | Planes de manejo de ecosistemas
Identificación de los planes de manejo existentes | 62598ef18e7ae83300ee789d |
class UsersProfileDetail(APIView): <NEW_LINE> <INDENT> def get_object(self, pk): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> return UsersProfile.objects.get(pk=pk) <NEW_LINE> <DEDENT> except UsersProfile.DoesNotExist: <NEW_LINE> <INDENT> raise Http404 <NEW_LINE> <DEDENT> <DEDENT> def get(self, request, pk, format=None... | Retrieve, update or delete a User instance. | 62598ef1167d2b6e312b57a8 |
class DoppelgangerUnit(AnimatedUnit): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def get_data_format_members(cls, game_version): <NEW_LINE> <INDENT> data_format = [ (READ_GEN, None, None, IncludeMembers(cls=AnimatedUnit)), ] <NEW_LINE> return data_format | type_id >= 25 | 62598ef1a8370b77170eebf2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.