code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class Square(Rectangle): <NEW_LINE> <INDENT> def __init__(self, size, x=0, y=0, id=None): <NEW_LINE> <INDENT> super().__init__(size, size, x, y, id) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return ("[Square] ({}) {:d}/{:d} - {:d}".format (self.id, self.x, self.y, self.width)) <NEW_LINE> <DEDENT> @prop... | Class Square inherited from Rectangle | 62598f803eb6a72ae038a070 |
class SquadExample(object): <NEW_LINE> <INDENT> def __init__(self, qas_id, question_text, doc_tokens, orig_answer_text=None, start_position=None, end_position=None): <NEW_LINE> <INDENT> self.qas_id = qas_id <NEW_LINE> self.question_text = question_text <NEW_LINE> self.doc_tokens = doc_tokens <NEW_LINE> self.orig_answer... | A single training/test example for simple sequence classification. | 62598f8015fb5d323ce7e759 |
class keyword(object): <NEW_LINE> <INDENT> def __init__(self, default_value=None, priority=0): <NEW_LINE> <INDENT> self.default_value = default_value <NEW_LINE> self.priority = priority <NEW_LINE> <DEDENT> def __call__(self, f): <NEW_LINE> <INDENT> def keyword(*args, **kwargs): <NEW_LINE> <INDENT> return f(*args, **kwa... | A decorator to mark a method as keyword argument for the ``TestRunner``.
Parameters
----------
default_value : `object`
The default value for the keyword argument. (Default: `None`)
priority : `int`
keyword argument methods are executed in order of descending priority. | 62598f8023e79379d538bf27 |
class TestSQLite(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> print('Preapre test') <NEW_LINE> self.con = sqlite3.connect('test.db') <NEW_LINE> self.cur = self.con.cursor() <NEW_LINE> self.cur.execute("CREATE TABLE IF NOT EXISTS PhoneBook(Name text, PhonNum text);") <NEW_LINE> self.cur.e... | sqlite db 가 동작하는지 간단하게 테스트하는 클래스 | 62598f8007d97122c42166d1 |
class UrlLe(QLineEdit): <NEW_LINE> <INDENT> def __init__(self, par, web_view): <NEW_LINE> <INDENT> super(UrlLe, self).__init__(par) <NEW_LINE> self.web_view = web_view <NEW_LINE> self.returnPressed.connect(self._load_url) <NEW_LINE> <DEDENT> def _load_url(self): <NEW_LINE> <INDENT> txt = self.text() <NEW_LINE> if not t... | A widget for URL input. | 62598f806fb2d068a7693b45 |
class AbstractMelodicMinorScale(AbstractScale): <NEW_LINE> <INDENT> def __init__(self, mode=None): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.type = 'Abstract Melodic Minor' <NEW_LINE> self.octaveDuplicating = True <NEW_LINE> self.dominantDegree: int = -1 <NEW_LINE> self.buildNetwork() <NEW_LINE> <DEDENT> d... | A directional scale. | 62598f80be383301e0253228 |
class PokeType(): <NEW_LINE> <INDENT> def __init__(self, name, effective, ineffective, color): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.effective = effective <NEW_LINE> self.ineffective = ineffective <NEW_LINE> self.color = "" if color is None else "".join(getattr(Color, i) for i in color) | Type for Poketes and attacks
ARGS:
name: The types name
effective: List of type names the type is effective against
ineffective: List of type names the type is ineffectice against
color: Color string | 62598f801f5feb6acb162662 |
class ListArticles(ListOnlineContents): <NEW_LINE> <INDENT> current_content_type = 'ARTICLE' | Displays the list of published articles | 62598f801d351010ab8f356d |
class DebugDict(dict): <NEW_LINE> <INDENT> def __init__(self, copy=None, safe_keys=None): <NEW_LINE> <INDENT> super(DebugDict, self).__init__() <NEW_LINE> if isinstance(copy, dict): <NEW_LINE> <INDENT> for (k, v) in copy.iteritems(): <NEW_LINE> <INDENT> self[k] = v <NEW_LINE> <DEDENT> <DEDENT> elif copy is not None: <N... | Debug a dictionary to make sure only specified keys are being accessed | 62598f8038b623060ffa8ac5 |
class subtask(AttributeDict): <NEW_LINE> <INDENT> def __init__(self, task=None, args=None, kwargs=None, options=None, **ex): <NEW_LINE> <INDENT> init = super(subtask, self).__init__ <NEW_LINE> if isinstance(task, dict): <NEW_LINE> <INDENT> return init(task) <NEW_LINE> <DEDENT> try: <NEW_LINE> <INDENT> task_name = task.... | Class that wraps the arguments and execution options
for a single task invocation.
Used as the parts in a :class:`TaskSet` or to safely
pass tasks around as callbacks.
:param task: Either a task class/instance, or the name of a task.
:keyword args: Positional arguments to apply.
:keyword kwargs: Keyword arguments to ... | 62598f8010dbd63aa1c705e0 |
class MeetingTypeResource(ExceptionThrowingModelResource): <NEW_LINE> <INDENT> class Meta(object): <NEW_LINE> <INDENT> queryset = MeetingType.objects.all() <NEW_LINE> allowed_methods = ['get'] <NEW_LINE> max_limit = 50 | get only meeting type endpoint | 62598f80d53ae8145f917ebc |
class TrackedResource(Resource): <NEW_LINE> <INDENT> _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'type': {'key... | Definition of Resource.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Resource Id.
:vartype id: str
:ivar name: Resource name.
:vartype name: str
:param location: Resource location.
:type location: str
:ivar type: Resource type.
:vartype type: str
:param tags: A set... | 62598f80fbf16365ca793ad7 |
class Pagination(object): <NEW_LINE> <INDENT> def __init__(self, query, page, per_page, total, items): <NEW_LINE> <INDENT> self.query = query <NEW_LINE> self.page = page <NEW_LINE> self.per_page = per_page <NEW_LINE> self.total = total <NEW_LINE> self.items = items <NEW_LINE> <DEDENT> @property <NEW_LINE> def pages(sel... | 分页对象 | 62598f8076d4e153a661c641 |
class LibraryChecked(enum.Enum): <NEW_LINE> <INDENT> gsutilwrap = 1 | Store names of all libraries which are benchmarked against gswrap. | 62598f807b25080760ed6ed4 |
class TableSample(AliasedReturnsRows): <NEW_LINE> <INDENT> __visit_name__ = "tablesample" <NEW_LINE> _traverse_internals = AliasedReturnsRows._traverse_internals + [ ("sampling", InternalTraversal.dp_clauseelement), ("seed", InternalTraversal.dp_clauseelement), ] <NEW_LINE> @classmethod <NEW_LINE> def _factory(cls, sel... | Represent a TABLESAMPLE clause.
This object is constructed from the :func:`_expression.tablesample` module
level function as well as the :meth:`_expression.FromClause.tablesample`
method
available on all :class:`_expression.FromClause` subclasses.
.. versionadded:: 1.1
.. seealso::
:func:`_expression.tablesampl... | 62598f806e29344779b00092 |
class AuthorsShapeSimCPPARelativeExperiment(Experiment): <NEW_LINE> <INDENT> def runFor(self, author, adjTensor, extraData, citationCounts, publicationCounts): <NEW_LINE> <INDENT> print("Running for %s..." % author) <NEW_LINE> mostSimilar, similarityScores = findMostSimilarNodes( adjTensor, author, extraData, method=ge... | Runs some experiments with ShapeSim on author similarity for the 'four area' dataset, using relative weights | 62598f8021bff66bcd722697 |
class QueryDocumentParamContainer(ParamContainer): <NEW_LINE> <INDENT> MAX_PARAMS_PRINT = 100 <NEW_LINE> def __init__(self, param_class): <NEW_LINE> <INDENT> super(QueryDocumentParamContainer, self).__init__(param_class) <NEW_LINE> self._container = defaultdict(dict) <NEW_LINE> <DEDENT> def get(self, query, search_resu... | A container of click model parameters that depend on a query-document pair. | 62598f80287bf620b62715e2 |
class Rectangle: <NEW_LINE> <INDENT> number_of_instances = 0 <NEW_LINE> print_symbol = "#" <NEW_LINE> def __init__(self, width=0, height=0): <NEW_LINE> <INDENT> self.width = width <NEW_LINE> self.height = height <NEW_LINE> type(self).number_of_instances += 1 <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> ty... | Args:
width (int): The width of the Rectangle
height (int): The height of the Rectangle
Class variables:
number_of_instances (int):
The number of Rectangles that have been instantiated
print_symbol (any): The object(s) to be printed | 62598f8030dc7b766599f288 |
class randU(object): <NEW_LINE> <INDENT> randU_c = 65539 <NEW_LINE> randU_m = 2147483648 <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> from datetime import datetime <NEW_LINE> self.seed = int((datetime.utcnow() - datetime.min).total_seconds()) <NEW_LINE> <DEDENT> def randint(self, upper_limit = randU_m): <NEW_LINE... | Produce a random number using the Park-Miller method.
See http://www.firstpr.com.au/dsp/rand31/ for further details of this
method. It is recommended to use the returned value as the value for x1,
when next calling the method. | 62598f803c8af77a43b67c4b |
class MVector(Vector, list): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> if len(args) == 1: <NEW_LINE> <INDENT> args = args[0] <NEW_LINE> <DEDENT> list.__init__(self, args) <NEW_LINE> for k in 'xyzw': <NEW_LINE> <INDENT> if k in kwargs: <NEW_LINE> <INDENT> self.__setattr__(k, kwargs.pop... | A mutable version of the base Vector. This allows you to modify vector contents in place.
MVector derives from list so it supp
Supports all base iterable functions (slicing, for loops, any(), etc). However it does NOT support append(), to keep the width of the vector to what it was at creation time. | 62598f800fa83653e46f491f |
class _IndexedCustomCheckListEditor(BaseSourceWithLocation): <NEW_LINE> <INDENT> source_class = CustomEditor <NEW_LINE> locator_class = Index <NEW_LINE> handlers = [ ( MouseClick, ( lambda wrapper, _: _interaction_helpers.mouse_click_checkbox_child_in_panel( control=wrapper._target.source.control, index=convert_index( ... | Wrapper for CheckListEditor + Index | 62598f80379a373c97d98a42 |
class FieldsTestCase(BaseTestCase): <NEW_LINE> <INDENT> def test_file(self): <NEW_LINE> <INDENT> alias = adapter.DjangoClassAlias(models.FileModel) <NEW_LINE> i = models.FileModel() <NEW_LINE> i.file.storage = storage <NEW_LINE> i.file.save('bar', MockFile()) <NEW_LINE> i.save() <NEW_LINE> attrs = alias.getEncodableAtt... | Tests for L{fields} | 62598f800a366e3fb87dc3fd |
class RestrictionTracker(object): <NEW_LINE> <INDENT> def current_restriction(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def checkpoint(self): <NEW_LINE> <INDENT> raise NotImplementedError <NEW_LINE> <DEDENT> def check_done(self): <NEW_LINE> <INDENT> raise NotImplementedError | Manages concurrent access to a restriction.
Experimental; no backwards-compatibility guarantees.
Keeps track of the restrictions claimed part for a Splittable DoFn.
See following documents for more details.
* https://s.apache.org/splittable-do-fn
* https://s.apache.org/splittable-do-fn-python-sdk | 62598f8073bcbd0ca4bc9c81 |
class WindowName(base._TextBox): <NEW_LINE> <INDENT> defaults = manager.Defaults( ("font", "Arial", "Font face."), ("fontsize", None, "Font pixel size. Calculated if None."), ("padding", None, "Padding left and right."), ("background", "000000", "Background colour."), ("foreground", "ffffff", "Foreground colour."), ) <... | Displays the name of the window that currently has focus. | 62598f803eb6a72ae038a073 |
class Solution4: <NEW_LINE> <INDENT> def moveZeroes(self, nums: List[int]) -> None: <NEW_LINE> <INDENT> k = 0 <NEW_LINE> for i in range(len(nums)): <NEW_LINE> <INDENT> if nums[i]: <NEW_LINE> <INDENT> if k != i: <NEW_LINE> <INDENT> nums[k], nums[i] = nums[i], nums[k] <NEW_LINE> <DEDENT> k += 1 | 48 ms
// 原地(in place)解决该问题
// 时间复杂度: O(n)
// 空间复杂度: O(1) | 62598f80009cb60464d00f5e |
class ConfigNotFound(KSCoreError): <NEW_LINE> <INDENT> fmt = 'The specified config file ({path}) could not be found.' | The specified configuration file could not be found.
:ivar path: The path to the configuration file. | 62598f805f7d997b871f90f0 |
class EdgarSpider(scrapy.Spider): <NEW_LINE> <INDENT> name = "edgar2" <NEW_LINE> def start_requests(self): <NEW_LINE> <INDENT> self.num = getattr(self, 'num', 1) <NEW_LINE> self.cik = getattr(self, 'cik', None) <NEW_LINE> if not self.cik: <NEW_LINE> <INDENT> raise Exception("You must set a cik") <NEW_LINE> <DEDENT> url... | This is our spider class for navigating through the Edgar website
which inherits from the Scrapy class
num and cik variables needs to be passed to this spider when running
by using the argument flags ex. -a num=2 -a cik=blk
full ex:
scrapy crawl edgar2 -a num=2 -a cik=blk
Attributes:
num (int): The number of r... | 62598f80fbf16365ca793ad9 |
class IotaBalanceSensor(IotaDevice): <NEW_LINE> <INDENT> def __init__(self, wallet_config, iota_config): <NEW_LINE> <INDENT> super().__init__( name=wallet_config[CONF_NAME], seed=wallet_config[CONF_SEED], iri=iota_config[CONF_IRI], is_testnet=iota_config[CONF_TESTNET]) <NEW_LINE> self._state = None <NEW_LINE> <DEDENT> ... | Implement an IOTA sensor for displaying wallets balance. | 62598f8066656f66f7d59e25 |
class Meta: <NEW_LINE> <INDENT> model = Client | Factory configuration. | 62598f8063b5f9789fe84ba2 |
class Config: <NEW_LINE> <INDENT> allow_population_by_field_name = True | Configure the superclass. | 62598f80b5575c28eb7129df |
class WithSimParams(WithTradingEnvironment): <NEW_LINE> <INDENT> SIM_PARAMS_CAPITAL_BASE = 1.0e5 <NEW_LINE> SIM_PARAMS_DATA_FREQUENCY = 'daily' <NEW_LINE> SIM_PARAMS_EMISSION_RATE = 'daily' <NEW_LINE> SIM_PARAMS_START = alias('START_DATE') <NEW_LINE> SIM_PARAMS_END = alias('END_DATE') <NEW_LINE> @classmethod <NEW_LINE>... | ZiplineTestCase mixin providing cls.sim_params as a class level fixture.
Attributes
----------
SIM_PARAMS_CAPITAL_BASE : float
SIM_PARAMS_DATA_FREQUENCY : {'daily', 'minute'}
SIM_PARAMS_EMISSION_RATE : {'daily', 'minute'}
Forwarded to ``SimulationParameters``.
SIM_PARAMS_START : datetime
SIM_PARAMS_END : datetime... | 62598f80bde94217f370737e |
class Group(GroupMixin, Command, CogGroupMixin, DPYGroup): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.autohelp = kwargs.pop("autohelp", True) <NEW_LINE> super().__init__(*args, **kwargs) <NEW_LINE> <DEDENT> async def invoke(self, ctx: "Context"): <NEW_LINE> <INDENT> ctx.command = ... | Group command class for Red.
This class inherits from `Command`, with :class:`GroupMixin` and
`discord.ext.commands.Group` mixed in. | 62598f80a05bb46b3848a2ac |
class DenseSqrtFanInOut(Initializer): <NEW_LINE> <INDENT> __default_values__ = {'scale': 'rel'} <NEW_LINE> def __init__(self, scale='rel'): <NEW_LINE> <INDENT> super(DenseSqrtFanInOut, self).__init__() <NEW_LINE> self.scale = scale <NEW_LINE> <DEDENT> def __call__(self, shape): <NEW_LINE> <INDENT> self._assert_atleast2... | Initializes the parameters randomly according to a uniform distribution
over the interval [-scale/sqrt(n1+n2), scale/sqrt(n1+n2)] where n1 is the
number of inputs to each unit and n2 is the number of units in the
current layer. Uses scale=sqrt(12) by default which is appropriate for rel
units.
Scaling:
* rel: sqrt... | 62598f80596a8972361276a2 |
class agilentDSO7032B(agilent7000B): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(agilentDSO7032B, self).__init__(*args, **kwargs) <NEW_LINE> self._instrument_id = 'AGILENT TECHNOLOGIES,DSO7032B' <NEW_LINE> self._analog_channel_count = 2 <NEW_LINE> self._digital_channel_count = 0 <... | Agilent InfiniiVision DSO7032B IVI oscilloscope driver | 62598f8015baa723494619af |
class Solution: <NEW_LINE> <INDENT> def backspaceCompare(self, S: str, T: str) -> bool: <NEW_LINE> <INDENT> s = [S, T] <NEW_LINE> counters = [0, 0] <NEW_LINE> while any([st for st in s]): <NEW_LINE> <INDENT> for i in (0, 1): <NEW_LINE> <INDENT> if all(c == 0 for c in counters): <NEW_LINE> <INDENT> if s[0] == s[1]: <NEW... | >>> Solution().backspaceCompare("hd#dp#czsp#####", "hd#dp#czsp#######")
False
>>> Solution().backspaceCompare("hd#dp#czsp#####", "hd#dp#czsp######")
False
>>> Solution().backspaceCompare("abcd", "bbcd")
False
>>> Solution().backspaceCompare("aaa###a", "aaaa###a")
False
>>> Solution().backspaceCompare("rheyggodcclgs... | 62598f8066673b3332c2fdf6 |
class TensorDGAlgebra(Tensor, DGAlgebra): <NEW_LINE> <INDENT> def diff(self, gen): <NEW_LINE> <INDENT> return E0.accumulate([ expandTensor(gen[:i]+(gen[i].diff(),)+gen[i+1:], self) for i in range(len(gen))]) <NEW_LINE> <DEDENT> def multiply(self, gen1, gen2): <NEW_LINE> <INDENT> if not isinstance(gen1, TensorGenerator)... | Tensor product of DGAlgebras is a DGAlgebra. | 62598f80d99f1b3c44d050df |
class HyperParams(): <NEW_LINE> <INDENT> def __init__(self, json_path): <NEW_LINE> <INDENT> with open(json_path) as f: <NEW_LINE> <INDENT> params = json.load(f) <NEW_LINE> self.__dict__.update(params) <NEW_LINE> <DEDENT> <DEDENT> def save(self, json_path): <NEW_LINE> <INDENT> with open(json_path, "w") as f: <NEW_LINE> ... | Class that loads hyperparams for a particular `model` from a JSON file | 62598f8076d4e153a661c645 |
class CharField(forms.CharField): <NEW_LINE> <INDENT> def get_bound_field(self, form, field_name): <NEW_LINE> <INDENT> return BootstrapBoundField(form, self, field_name) | Char field in new script form. | 62598f800383005118f6d134 |
class Unsolvable(Exception): <NEW_LINE> <INDENT> pass | Raised when no solution exists | 62598f8007d97122c42166d5 |
class Square: <NEW_LINE> <INDENT> def __init__(self, size): <NEW_LINE> <INDENT> self.__size = size | class Square definition
Args:
size : size of a side in square | 62598f809b70327d1c57e7d1 |
class MoveWithBall(Action): <NEW_LINE> <INDENT> def __init__(self, p_info_manager, p_player_id, p_destination): <NEW_LINE> <INDENT> Action.__init__(self, p_info_manager) <NEW_LINE> assert(isinstance(p_player_id, int)) <NEW_LINE> assert PLAYER_PER_TEAM >= p_player_id >= 0 <NEW_LINE> assert(isinstance(p_destination, Posi... | Action MoveWithBall: Déplace le robot en tenant compte de la possession de la balle
Méthodes :
exec(self): Retourne la pose où se rendre
Attributs (en plus de ceux de Action):
player_id : L'identifiant du joueur
destination : La position où on souhaite déplacer le robot | 62598f8021a7993f00c659a4 |
@admin.register(models.User) <NEW_LINE> class CustomUserAdmin(UserAdmin): <NEW_LINE> <INDENT> fieldsets = UserAdmin.fieldsets + (("DetailInfo", {'fields': ("phoneNum", "profilePic", "career")}),) | CustomUserAdmin Definition | 62598f8029b78933be269df4 |
class ApiTest(APITestCase): <NEW_LINE> <INDENT> access_token = '' <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> app.conf.update(CELERY_ALWAYS_EAGER=True) <NEW_LINE> self.superuser = User.objects.create_superuser('dima', 'dima@gmail.com', 'dimapassword') <NEW_LINE> self.superuser = User.objects.create_superuser('dima2... | Test API /photos/comment/<pk>/ | 62598f8050485f2cf55da9a4 |
class DeleteForbidden(admin.ModelAdmin): <NEW_LINE> <INDENT> def get_actions(self, request): <NEW_LINE> <INDENT> return [] <NEW_LINE> <DEDENT> def has_delete_permission(self, request, obj=None): <NEW_LINE> <INDENT> return True | There is a problem.
Timeslotvideos has LinkId/TypeId on Episode or Trailer and there is no cascade deleting.
If delete Episode then Timeslotvideos become to invalide status with API getPlaylist error.
Fastest way - forbid delete. | 62598f80711fe17d825e011b |
class PublicTestsMixin(object): <NEW_LINE> <INDENT> def test_init(self): <NEW_LINE> <INDENT> self.assertIsInstance(self.library, per_user_configs.GetUserSearchDomains, 'Somehow you did not instantiate the correct object') <NEW_LINE> self.assertIsInstance(self.library.search_domains, list, 'default search_domains must b... | This class is used to run a basic litmus test on some
mediocre setups. The good checks are later in this file. | 62598f8023e79379d538bf2c |
class LearnableInverter(torch.nn.Module): <NEW_LINE> <INDENT> def __init__(self, n, mask, learnable=True): <NEW_LINE> <INDENT> super(LearnableInverter, self).__init__() <NEW_LINE> self.n = n <NEW_LINE> self.mask = mask[0, 0, :, :].bool() <NEW_LINE> self.learnable_ifft = LearnableFourier2D( n, inverse=True, learnable=le... | Learnable inversion of subsampled discrete Fourier transform.
The zero-filling (transpose of the subsampling operator) is fixed.
The inversion is learnable and initialized as a 2D inverse Fourier
transform, realized as Kroneckers of 1D Fourier inversions.
Implements a complex operator C^m -> C^(n1, n2).
Parameters
... | 62598f80fb3f5b602db47eca |
class NDIRSampleVoltageDatum(JSONable): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def construct_from_sample(cls, sample): <NEW_LINE> <INDENT> if not sample: <NEW_LINE> <INDENT> return None <NEW_LINE> <DEDENT> pile_ref_ampl, pile_act_ampl, thermistor_avg = sample <NEW_LINE> return NDIRSampleVoltageDatum(pile_ref_ampl,... | classdocs | 62598f80a17c0f6771d5bc77 |
class PageCreateView(generic.CreateView): <NEW_LINE> <INDENT> template_name = 'dashboard/pages/update.html' <NEW_LINE> model = FlatPage <NEW_LINE> form_class = forms.PageUpdateForm <NEW_LINE> context_object_name = 'page' <NEW_LINE> def get_context_data(self, **kwargs): <NEW_LINE> <INDENT> ctx = super(PageCreateView, se... | View for creating a flatpage from dashboard. | 62598f8030dc7b766599f28d |
class ShopLandingView(LandingBaseView, LandingParamsValidatorMixin): <NEW_LINE> <INDENT> LANDING_MODEL = None <NEW_LINE> kwargs_params_slots = { 'landing_slug_title': [None, ''], } <NEW_LINE> request_params_slots = { } <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.params_storage = {} <NEW_LIN... | Landing View. Receives get params
and response neither arguments in get
request params.
GET Params:
1. AJAX - if ajax is True, we have response
html part, that insert in DOM structure in client
side. If we have True, we response all html
document with base template.
ALL PARAMS put in params_storage after validate | 62598f80d164cc61758209ab |
@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA) <NEW_LINE> class List(base.ListCommand): <NEW_LINE> <INDENT> @staticmethod <NEW_LINE> def Args(parser): <NEW_LINE> <INDENT> parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT) <NEW_LINE> <DEDENT> def Run(self, args): <NEW_LINE> <INDENT> holder = ... | List Google Compute Engine SSL policies. | 62598f803c8af77a43b67c4d |
class BackendAddressPools(_BaseHNVModel): <NEW_LINE> <INDENT> _endpoint = ("/networking/v1/loadBalancers/{parent_id}" "/backendAddressPools/{resource_id}") <NEW_LINE> parent_id = model.Field( name="parent_id", key="parentResourceID", is_property=False, is_required=True, is_read_only=True) <NEW_LINE> backend_ip_configur... | Model for backend address pools.
This resource represents the list of IPs that can receive network traffic
that comes via the front-end IPs. The Load Balancing MUX handles incoming
traffic via the front-end IPs and distributes them to backend IPs based
on load balancing configuration. | 62598f808da39b475be02c1a |
class is_simple(BaseFunction): <NEW_LINE> <INDENT> pass | IsSimple(g) | 62598f803eb6a72ae038a077 |
class SilentRecordHandler(logging.NullHandler): <NEW_LINE> <INDENT> COUNTS = collections.defaultdict(int) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> self._records = collections.defaultdict(set) <NEW_LINE> <DEDENT> def getCount(self, level): <NEW_LINE... | Custom logging Handler object for caching warnings/errors | 62598f805f7d997b871f90f2 |
class DigitalOutputTask(DigitalTask): <NEW_LINE> <INDENT> channel_type = 'DO' <NEW_LINE> def __init__(self, name=""): <NEW_LINE> <INDENT> super(DigitalOutputTask, self).__init__(name) <NEW_LINE> self.one_channel_for_all_lines = None <NEW_LINE> <DEDENT> def create_channel(self, lines, name='', grouping='per_line'): <NEW... | Exposes NI-DAQmx digital output task to Python.
| 62598f801f5feb6acb162669 |
class Shard(utils.SaveLoad): <NEW_LINE> <INDENT> def __init__(self, fname, index): <NEW_LINE> <INDENT> self.dirname, self.fname = os.path.split(fname) <NEW_LINE> self.length = len(index) <NEW_LINE> self.cls = index.__class__ <NEW_LINE> logger.info("saving index shard to %s", self.fullname()) <NEW_LINE> index.save(self.... | A proxy that represents a single shard instance within :class:`~gensim.similarity.docsim.Similarity` index.
Basically just wraps :class:`~gensim.similarities.docsim.MatrixSimilarity`,
:class:`~gensim.similarities.docsim.SparseMatrixSimilarity`, etc, so that it mmaps from disk on request (query). | 62598f80009cb60464d00f62 |
class CalendarDateTimePicker(CalendarDatePicker): <NEW_LINE> <INDENT> messages = { 'badFormat': 'Invalid datetime format.', 'empty': 'Please Enter a Date and Time.', } <NEW_LINE> date_format = "%Y/%m/%d %H:%M" <NEW_LINE> picker_shows_time = True | Use a javascript calendar system to allow picking of calendar dates and
time.
The date_format is in mm/dd/yyyy hh:mm unless otherwise specified | 62598f80bde94217f3707380 |
class Config(object): <NEW_LINE> <INDENT> config = None <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> WPM_RC_Dir = os.path.expanduser("~/.config/wpm") <NEW_LINE> Config.config = configparser.ConfigParser() <NEW_LINE> if not os.path.exists(WPM_RC_Dir): <NEW_LINE> <INDENT> os.makedirs(WPM_RC_Dir) <NEW_LINE> <DEDENT>... | Contains the user configuration, backed by the .wpmrc file. | 62598f801d351010ab8f3572 |
class Document(object): <NEW_LINE> <INDENT> def __init__(self, text): <NEW_LINE> <INDENT> self.text = preprocess_text(text) | used to represent articles | 62598f8007d97122c42166d8 |
class SocketBridge(object): <NEW_LINE> <INDENT> def __init__(self, env_var, host_address, session_address): <NEW_LINE> <INDENT> self.env_var = env_var <NEW_LINE> self.host_address = host_address <NEW_LINE> self.session_address = session_address <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> retu... | Configuration for a single socket bridge entry.
This is a 3-tuple of a label, the address of a Unix-domain socket in the
host environment, and the address of a Unix-domain socket in the session
environment.
.. data:: env_var
The label of the socket bridge. This is used as the environment variable
in the sessi... | 62598f8066656f66f7d59e29 |
class FriendlyGrayscaleStyle(Style): <NEW_LINE> <INDENT> background_color = "#f0f0f0" <NEW_LINE> default_style = "" <NEW_LINE> styles = { Whitespace: "#bbbbbb", Comment: "italic #959595", Comment.Preproc: "noitalic #575757", Comment.Special: "noitalic bg:#F4F4F4", Ke... | A modern grayscale style based on the friendly style.
.. versionadded:: 2.11 | 62598f80d53ae8145f917ec2 |
class UniRV(RV_with_mean_and_cov): <NEW_LINE> <INDENT> def _sample(self, N): <NEW_LINE> <INDENT> R = self.C.Right <NEW_LINE> D = rnd.randn(N, len(R)) <NEW_LINE> r = rnd.rand(N)**(1/len(R)) / np.sqrt(np.sum(D**2, axis=1)) <NEW_LINE> D = r[:, None]*D <NEW_LINE> return D @ R * 2 | Uniform multivariate random variable.
Has an elliptic-shape support.
Ref: Voelker et al. (2017) "Efficiently sampling
vectors and coordinates from the n-sphere and n-ball" | 62598f8023e79379d538bf2e |
class HelperRssiDevice(HGDevice): <NEW_LINE> <INDENT> def __init__(self, device_description, proxy, resolveparamsets=False): <NEW_LINE> <INDENT> super().__init__(device_description, proxy, resolveparamsets) <NEW_LINE> self.ATTRIBUTENODE["RSSI_DEVICE"] = [0] <NEW_LINE> <DEDENT> def get_rssi(self, channel=0): <NEW_LINE> ... | Used for devices which report their RSSI value through RSSI_DEVICE | 62598f80d99f1b3c44d050e2 |
class QOverrideCursor(object): <NEW_LINE> <INDENT> def __init__(self, cursor): <NEW_LINE> <INDENT> QApplication.instance().setOverrideCursor(cursor) <NEW_LINE> self.__needCleanup = True <NEW_LINE> <DEDENT> def __del__(self): <NEW_LINE> <INDENT> self.__cleanup() <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDEN... | The base class for QWaitCursor and QBusyCursor.
| 62598f8021bff66bcd72269d |
class INgramFilter(object): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def filter(self, collocation_finder): <NEW_LINE> <INDENT> raise NotImplementedError | Interface for filters on ngrams | 62598f80fb3f5b602db47ecb |
class updateChannelNotificationSetting_args(object): <NEW_LINE> <INDENT> def __init__(self, setting=None,): <NEW_LINE> <INDENT> self.setting = setting <NEW_LINE> <DEDENT> def read(self, iprot): <NEW_LINE> <INDENT> if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thri... | Attributes:
- setting | 62598f8030dc7b766599f28f |
class IMmsaLanguage(IViewletManager): <NEW_LINE> <INDENT> pass | A viewlet manager that is responsible for appearing of a language viewlet.
| 62598f8073bcbd0ca4bc9c86 |
class VagrantCtl(object): <NEW_LINE> <INDENT> def __init__(self, path): <NEW_LINE> <INDENT> self.path = path <NEW_LINE> <DEDENT> def up(self, output_stream=None): <NEW_LINE> <INDENT> p = subprocess.Popen( ['vagrant', 'up'], cwd=self.path, stderr=output_stream, stdout=output_stream ) <NEW_LINE> p.wait() <NEW_LINE> <DEDE... | Class for Vagrant controls: starting,halting destroying, etc..
| 62598f80cad5886f8bdc4d5b |
class NewsCommentTests(NewsBaseTestCase): <NEW_LINE> <INDENT> def do_submit_comment(self, client, parent_id='', comment_text='', username='ice', password='iceiceice'): <NEW_LINE> <INDENT> submit_com_view = reverse('news.views.comments.submit_comment') <NEW_LINE> response = client.post(submit_com_view, {'parent_id': par... | These are tests for submitting comments. | 62598f8026238365f5fac5a4 |
class SanitizeSecretsProcessor(SanitizePasswordsProcessor): <NEW_LINE> <INDENT> FIELDS = frozenset(['auth', 'token', 'atrequest', 'request']) <NEW_LINE> PATTERNS = [ r'[A-Za-z0-9]{16}', r'token/[A-Za-z0-9]+', r'[^/]+@[^/]*', ] <NEW_LINE> def sanitize(self, key, value): <NEW_LINE> <INDENT> if isinstance(value, basestrin... | Asterisk out sensitive data from frames, http, and basic extra data. | 62598f8045492302aabfbf12 |
@deconstructible <NEW_LINE> class PrivateFileSystemStorage(FileSystemStorage): <NEW_LINE> <INDENT> def __init__(self, location=None, base_url=None, **kwargs): <NEW_LINE> <INDENT> if location is None: <NEW_LINE> <INDENT> location = appconfig.PRIVATE_STORAGE_ROOT <NEW_LINE> <DEDENT> super().__init__( location=location, b... | Interface to the Django storage system,
storing the files in a private folder. | 62598f8015baa723494619b4 |
class Operator: <NEW_LINE> <INDENT> def __init__(self, name, argument, params=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.argument = argument <NEW_LINE> self.params = params <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> if not self.params: <NEW_LINE> <INDENT> return "{0}({1})".format(self.... | An Operator, like lag(.) or diff[2](.) or lag[0:2](.)
>>> print(Operator('lag', 'y'))
lag(y)
>>> print(Operator('diff', 'x', 2))
diff[2](x)
>>> print(Operator('lag', 'z', '0:2'))
lag[0:2](z) | 62598f80a4f1c619b294e022 |
class Zip(Container): <NEW_LINE> <INDENT> def contain(self, name, root, toadd): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.logger.debug('Zip.contain(name=%s, root=%s, toadd=%s)', repr(name), repr(root), repr(toadd)) <NEW_LINE> zfile = ZipFile(str(self.join(name)), 'w') <NEW_LINE> <DEDENT> except IOError: <NEW_LI... | Generate a 'zip' archive file.
Zip(*files, name=(containername), root=os.curdir, exclude=(defaults). | 62598f8076d4e153a661c649 |
class Graded(GradedModulesCategory): <NEW_LINE> <INDENT> def _repr_object_names(self): <NEW_LINE> <INDENT> return "H-graded {}".format(self.base_category()._repr_object_names()) | The category of H-graded super Lie conformal algebras.
EXAMPLES::
sage: LieConformalAlgebras(AA).Super().Graded()
Category of H-graded super Lie conformal algebras over Algebraic Real Field | 62598f8071ff763f4b5e71a3 |
class CommentViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Comment.objects.all().order_by('-date_created') <NEW_LINE> serializer_class = CommentWriteSerializer <NEW_LINE> authentication_classes = [BasicAuthentication, TokenAuthentication, SessionAuthentication] <NEW_LINE> permission_classes = [CommentP... | API endpoint that allows Comments to be listed/created
Usage:
- `/comments/{comment_id}`
- GET: get JSON for one comment
- `/comments`
- POST: create a new comment (must specify parent post)
- GET: list all comments (paginated)
Usage (comments by parent post):
- `/posts/{post_id}/comments`
-... | 62598f80e64d504609df90cb |
class LevelView(QFrame): <NEW_LINE> <INDENT> def __init__(self, parent, level): <NEW_LINE> <INDENT> QFrame.__init__(self, parent) <NEW_LINE> self.level = level <NEW_LINE> self.background = BackgroundView() <NEW_LINE> self.enemy_view = EnemyShipView(self.level.enemy) <NEW_LINE> self.ship_view = HeroShipView(self.level.s... | Represents the View of the Level | 62598f8007f4c71912baee7e |
class StaticService: <NEW_LINE> <INDENT> pass | StaticService defines the static API methods exposed by the platform VM | 62598f80bde94217f3707381 |
class CartUpdate(View): <NEW_LINE> <INDENT> def post(self, request): <NEW_LINE> <INDENT> user = request.user <NEW_LINE> if not user.is_authenticated(): <NEW_LINE> <INDENT> return JsonResponse({"status": 301, "msg": "用户未登录"}) <NEW_LINE> <DEDENT> sku_id = request.POST.get('sku_id') <NEW_LINE> count = request.POST.get('co... | 更新购物车中的商品记录 | 62598f807c178a314d78cee1 |
class QueryDealerInfoListResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.PageData = None <NEW_LINE> self.NextCursor = None <NEW_LINE> self.HasMore = None <NEW_LINE> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> if params.get("Page... | QueryDealerInfoList返回参数结构体
| 62598f8030c21e258be98240 |
class WithNamespace(EnumMeta): <NEW_LINE> <INDENT> @property <NEW_LINE> def namespace(self): <NEW_LINE> <INDENT> return ns | Metaclass adding a 'namespace' property an Enum | 62598f8091af0d3eaad3983e |
class SingleTargetRegulation(Regulation): <NEW_LINE> <INDENT> def exert(self, source, targets): <NEW_LINE> <INDENT> for target in targets: <NEW_LINE> <INDENT> self.exert_single(source, target) <NEW_LINE> <DEDENT> <DEDENT> @abstractmethod <NEW_LINE> def exert_single(self, source, target): <NEW_LINE> <INDENT> pass | Source entity in single target affection only affect on a single target each function call. It may have multiple targets
to affect each time step. | 62598f80d53ae8145f917ec4 |
@pytest.mark.usefixtures('db') <NEW_LINE> class TestUser: <NEW_LINE> <INDENT> def test_get_by_id(self): <NEW_LINE> <INDENT> user = User('foo', 'foo@bar.com') <NEW_LINE> user.save() <NEW_LINE> retrieved = User.query.get(user.id) <NEW_LINE> assert retrieved == user <NEW_LINE> <DEDENT> def test_created_at_defaults_to_date... | User tests. | 62598f801d351010ab8f3574 |
class ShellUtils(object): <NEW_LINE> <INDENT> def bundlestate_to_str(self, state): <NEW_LINE> <INDENT> states = { pelix.Bundle.INSTALLED: "INSTALLED", pelix.Bundle.ACTIVE: "ACTIVE", pelix.Bundle.RESOLVED: "RESOLVED", pelix.Bundle.STARTING: "STARTING", pelix.Bundle.STOPPING: "STOPPING", pelix.Bundle.UNIN... | Utility methods for the shell | 62598f800383005118f6d139 |
class ScheduleConfiguration(AWSProperty): <NEW_LINE> <INDENT> props: PropsDictType = { "ScheduleExpression": (str, True), } | `ScheduleConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-scheduledquery-scheduleconfiguration.html>`__ | 62598f80c432627299fa2a05 |
class AWSConfigProvider(Provider): <NEW_LINE> <INDENT> def __init__(self, filename=None, profile=None): <NEW_LINE> <INDENT> self._filename = ( filename or os.environ.get("AWS_SHARED_CREDENTIALS_FILE") or os.path.join(_user_home_dir(), ".aws", "credentials") ) <NEW_LINE> self._profile = profile or os.environ.get("AWS_PR... | Credential provider from AWS credential file. | 62598f8066673b3332c2fdfc |
class StorageId: <NEW_LINE> <INDENT> def __init__(self, securityOrigin: str, isLocalStorage: bool): <NEW_LINE> <INDENT> self.securityOrigin = securityOrigin <NEW_LINE> self.isLocalStorage = isLocalStorage | DOM Storage identifier. | 62598f8015baa723494619b5 |
class BaseTestCase(AutopilotTestCase): <NEW_LINE> <INDENT> local_location = os.path.dirname(os.path.dirname(os.getcwd())) <NEW_LINE> local_location_qml = os.path.join(local_location, 'Main.qml') <NEW_LINE> click_package = '{0}.{1}'.format('test', 'if') <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super(BaseTestCase,... | A common test case class
| 62598f80a17c0f6771d5bc7b |
class PatchedIOSXRDriver(iosxr.IOSXRDriver): <NEW_LINE> <INDENT> def __init__(self, hostname, username, password, timeout=60, optional_args=None): <NEW_LINE> <INDENT> super().__init__(hostname, username, password, timeout, optional_args) <NEW_LINE> self.patched_attrs = ['device'] <NEW_LINE> self.device = FakeIOSXRDevic... | Patched IOS Driver. | 62598f808e05c05ec3f6eb63 |
class CommandLineCaller(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def get_CLI_context_manager(cls): <NEW_LINE> <INDENT> return contextmanagers.CLIcontextManager() <NEW_LINE> <DEDENT> def __init__(self,callstr,PIDpublisher=None,in_tmpdir=False,tmpdir_loc=None, capture_stdout=False,silence_stdout=False, err_to... | Intended to be used as base class for concrete command line controller classes
for specific command line programs. Provides management of CLI exectution
context via CLIcontextManager.
Initialization parameters:
:param callstr: String to be passed to subprocess.Popen() to be executed at
the command ... | 62598f80379a373c97d98a4a |
class _RefinementBase(object): <NEW_LINE> <INDENT> @property <NEW_LINE> def refine_title(self): <NEW_LINE> <INDENT> return "Refinement Base" <NEW_LINE> <DEDENT> @property <NEW_LINE> def refine_descriptor_data(self): <NEW_LINE> <INDENT> return dict() <NEW_LINE> <DEDENT> @property <NEW_LINE> def is_refinable(self): <NEW_... | Base class for `RefinementGroup` and `RefinementValue` mixins. It's
used to provide common functionality and a way to check for the kind of
refinement class we're dealing with when building the refinement tree.
.. attribute:: refine_title
A string used as the title for the group in the refinement tree
.... | 62598f81e76e3b2f99fd846d |
class DictFeatWidget(QtGui.QWidget): <NEW_LINE> <INDENT> def __init__(self, parent, target, feat): <NEW_LINE> <INDENT> super().__init__(parent) <NEW_LINE> self._feat = feat <NEW_LINE> layout = QtGui.QHBoxLayout(self) <NEW_LINE> if feat.keys: <NEW_LINE> <INDENT> wid = QtGui.QComboBox() <NEW_LINE> if isinstance(feat.keys... | Widget to show a DictFeat.
:param parent: parent widget.
:param target: driver object to connect.
:param feat: DictFeat to connect. | 62598f81d10714528d69d908 |
class SCENE_OT_namedlayer_lock_all(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "scene.namedlayer_lock_all" <NEW_LINE> bl_label = "Lock Objects" <NEW_LINE> layer_idx = IntProperty() <NEW_LINE> use_lock = BoolProperty() <NEW_LINE> group_idx = IntProperty() <NEW_LINE> @classmethod <NEW_LINE> def poll(cls, context... | Lock all objects on this layer | 62598f8121a7993f00c659aa |
class Author(models.Model): <NEW_LINE> <INDENT> name = models.CharField(primary_key=True, max_length=300) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> ordering = ('name',) | Model for storing Authors associated with Texts | 62598f8150485f2cf55da9aa |
class OpenRefine(object): <NEW_LINE> <INDENT> def __init__(self, list_of_edits, by_word=True): <NEW_LINE> <INDENT> super(OpenRefine, self).__init__() <NEW_LINE> self.repl = {} <NEW_LINE> self.by_word = by_word <NEW_LINE> for l in list_of_edits: <NEW_LINE> <INDENT> self.load_edits(l) <NEW_LINE> <DEDENT> print("OpenRefin... | docstring for OpenRefine | 62598f81596a8972361276aa |
class NamedTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def test_first_last_name(self): <NEW_LINE> <INDENT> formatted_name = get_formatted_name('janis','joplin') <NEW_LINE> self.assertEqual(formatted_name, 'Janis Joplin') <NEW_LINE> <DEDENT> def test_first_last_middle_name(self): <NEW_LINE> <INDENT> formatted_name ... | Tests for 'name_function.py'. | 62598f81a79ad16197769a99 |
class PeriodicJob(BaseJob): <NEW_LINE> <INDENT> def __init__(self, target=None, periodicity=None, watch_service=None, type=None, *args, **kwargs): <NEW_LINE> <INDENT> super(PeriodicJob, self).__init__(type=JobTypes.TARGET) <NEW_LINE> self.target = target <NEW_LINE> self.periodicity = periodicity <NEW_LINE> self.service... | Represents periodic job loaded from the db | 62598f816fb2d068a7693b4a |
class Tracking(Enum): <NEW_LINE> <INDENT> independent = '0' <NEW_LINE> series = '1' <NEW_LINE> parallel = '3' | Tracking state for a multi-channel power supply.
These values should correspond to the values returned by the ``STATUS?`` command.
There seems to be conflicting information about these values.
The other values I've seen are:
* 0 - independent
* 1 - series
* 2 - parallel
* 3 - symmetric
However, I don't have... | 62598f81d99f1b3c44d050e6 |
class BrightnessTransform(Transform): <NEW_LINE> <INDENT> def __call__(self, data, label, gt): <NEW_LINE> <INDENT> data = data.astype(np.float32) <NEW_LINE> delta = random.randint(-self.delta, self.delta) <NEW_LINE> data += delta <NEW_LINE> data[data>255] = 255 <NEW_LINE> data[data<0] = 0 <NEW_LINE> data = data.astype(... | Transform brightness
Parameters: delta | 62598f810a366e3fb87dc405 |
class NetworkLayer(metaclass=abc.ABCMeta): <NEW_LINE> <INDENT> def __init__(self, n_priors, n_neurons, activation_func=None, learn_rate=None, next_layer=None): <NEW_LINE> <INDENT> self._neurons = [ Neuron(n_priors=n_priors, activation_func=activation_func, learn_rate=learn_rate) for _ in range(n_neurons) ] <NEW_LINE> s... | Abstraction of network layer containing some Neurons with similar settings
No param check enforced in this class | 62598f81b5575c28eb7129e3 |
class DataABC(object,metaclass=ABCMeta): <NEW_LINE> <INDENT> @abstractmethod <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def beautify(self, ticker:str)->str: <NEW_LINE> <INDENT> return " ".join(ticker.split()).lower() | Base class for all Data structures.
| 62598f81d4950a0f3b110b51 |
class Action4(SetTimeAction): <NEW_LINE> <INDENT> def action(self, value, new): <NEW_LINE> <INDENT> value.tm_wday = new | Set day of week
Parameters:
0: Set day of week (EXPRESSION, ExpressionParameter) | 62598f81d6c5a102081e1b81 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.