code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class SQLTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def __init__(self, name, vendor, factory): <NEW_LINE> <INDENT> unittest.TestCase.__init__(self, name) <NEW_LINE> self.vendor = vendor <NEW_LINE> self.factory = factory <NEW_LINE> if self.vendor.datahandler: <NEW_LINE> <INDENT> self.datahandler = __imp__(self.ven...
Base testing class. It contains the list of table and factory information to run any tests.
62598f868a349b6b43685d36
class FeaturedResource(models.Model): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> verbose_name = _('Une') <NEW_LINE> verbose_name_plural = _('Unes') <NEW_LINE> <DEDENT> title = models.CharField(_('Titre'), max_length=80) <NEW_LINE> type = models.CharField(_('Type'), max_length=80) <NEW_LINE> authors = models.Ch...
A FeaturedResource is a link to a resource that is featured by the Staff It displays 3 main informations: - A background picture - A title - The author(s) of the resource Currently, the five newer FeaturedResource are displayed on the front page.
62598f86fbf16365ca793b9c
class ArrivalAirport(RequestConstructor): <NEW_LINE> <INDENT> def __init__(self, airport_code: str, city: str): <NEW_LINE> <INDENT> self.syntax = { 'airport_code': airport_code, 'city': city }
Departure airport. Args: airport_code: Airport code of the departure airport. city: Departure city of the flight.
62598f86442bda511e95bf4d
class DummyDriver(MonitorBaseDriver): <NEW_LINE> <INDENT> def __init__(self, username, password, endpoint, **kwargs): <NEW_LINE> <INDENT> super(DummyDriver, self).__init__(username, password, endpoint, **kwargs) <NEW_LINE> hostnames = kwargs['nodes_down'].split(';') <NEW_LINE> self.nodes_down = [{'host': n} for n in ho...
A monitoring driver that returns a configured list of nodes as failed. This can be useful for testing without actually shutting down the nodes. The nodes that should be reported as failing, can be configured in the monitoring section of the freezer_dr configuration file as follows: kwargs = nodes_down:hostname1;hos...
62598f86d7e4931a7ef3bb8e
class ExerciseCodeDirective(FStarListingBaseDirective): <NEW_LINE> <INDENT> directive = "exercise-code" <NEW_LINE> node_class = exercise_code_node
An exercise-specific snippet of code. This directive must appear within the body of an ``.. exercise::`` node. It behaves like ``.. code``, but unlike ``.. code::`` blocks its contents are included in files generated by the ``:save-as:`` option. For example:: .. exercise:: Big-step interpretation Define a...
62598f8615baa72349461a70
class Field: <NEW_LINE> <INDENT> def __init__(self, position, title, name=None, conversion=lambda x: x): <NEW_LINE> <INDENT> self.position = position <NEW_LINE> self.function = conversion <NEW_LINE> self.description = title <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def transform(func, value): <NEW_LINE> <INDENT> ret...
Define a field. Provide the position, a description, and a conversion rule. The name is there to parallel the ``nmea_data`` Namedtuple implementation. Subclasses should include conversions directly. This can be used with conversion plug-in functions. ``f = Text(1, "Description")`` is better than ``f = Field(1, "De...
62598f86be383301e02532ed
class TextViewer(QTextBrowser): <NEW_LINE> <INDENT> sigEscapePressed = pyqtSignal() <NEW_LINE> def __init__(self, parent=None): <NEW_LINE> <INDENT> QTextBrowser.__init__(self, parent) <NEW_LINE> self._parentWidget = parent <NEW_LINE> self.setOpenExternalLinks(True) <NEW_LINE> self.setOpenLinks(False) <NEW_LINE> self.__...
Text viewer
62598f86435de62698e9b8eb
class NodePoolCollection(collection.Collection): <NEW_LINE> <INDENT> nodepools = [NodePool] <NEW_LINE> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self._type = 'nodepools' <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def convert_with_links(rpc_bays, limit, url=None, expand=False, **kwargs): <NEW_LINE> <INDENT> co...
API representation of a collection of nodepools.
62598f86462c4b4f79dbb4f5
class Function(ColumnElement, FromClause): <NEW_LINE> <INDENT> __visit_name__ = 'function' <NEW_LINE> def __init__(self, name, *clauses, **kwargs): <NEW_LINE> <INDENT> self.packagenames = kwargs.get('packagenames', None) or [] <NEW_LINE> self.name = name <NEW_LINE> self._bind = kwargs.get('bind', None) <NEW_LINE> args ...
Describe a SQL function.
62598f86e64d504609df912a
class StringNotCollectionError(MarshmallowError, TypeError): <NEW_LINE> <INDENT> pass
Raised when a string is passed while a list of strings is expected.
62598f868e05c05ec3f6ebc1
class Joystickdialog(QtWidgets.QDialog, Ui_Joystickdialog): <NEW_LINE> <INDENT> def __init__(self, st): <NEW_LINE> <INDENT> super(Joystickdialog, self).__init__() <NEW_LINE> self.st = st <NEW_LINE> self.joystick_axes_n = self.st.indiclient.joystick_axes.nnp <NEW_LINE> self.st.indiclient.joystick_conf_ui = self <NEW_LIN...
Joystick configuration dialog
62598f8630dc7b766599f34b
class IoTSecuritySolutionsList(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'value': {'required': True}, 'next_link': {'readonly': True}, } <NEW_LINE> _attribute_map = { 'value': {'key': 'value', 'type': '[IoTSecuritySolutionModel]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } <NEW_LINE> def...
List of IoT Security solutions. 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. :param value: Required. List of IoT Security solutions. :type value: list[~azure.mgmt.security.models.IoTSecuritySolutionModel] ...
62598f869b70327d1c57e890
class ApposRuleset(NounPhraseRuleset): <NEW_LINE> <INDENT> rel = 'appos' <NEW_LINE> def extract(self, relations, index, context, engine, info={}): <NEW_LINE> <INDENT> this = NounPhraseRuleset.extract(self, relations, index, context, engine, info)['return_list'] <NEW_LINE> for subj in info['subj']['return_list']: <NEW_L...
A ruleset that processes the 'appos' relation.
62598f8673bcbd0ca4bc9d45
class _ServerWithKnownLimit(_ServerWithLimit): <NEW_LINE> <INDENT> def __init__(self, identifier, limit): <NEW_LINE> <INDENT> self._limit = limit <NEW_LINE> super(_ServerWithKnownLimit, self).__init__(identifier) <NEW_LINE> <DEDENT> def register_request(self, request_url): <NEW_LINE> <INDENT> super(_ServerWithKnownLimi...
A server with a known limit ahead of time e.g. 5 requests then 1 wait
62598f8696565a6dacd2ccf1
class MistakeType(enum.Enum): <NEW_LINE> <INDENT> full_file = 1 <NEW_LINE> oneliner = 2 <NEW_LINE> headings = 3 <NEW_LINE> headings_dir = 4 <NEW_LINE> pagenumbers = 5 <NEW_LINE> pagenumbers_dir = 6 <NEW_LINE> configuration = 7 <NEW_LINE> formulas = 8
The mistake type determines the arguments and the environment in which to run the tests. Shortcuts for this table: par == paragraph, h == datastructures.Heading type parameters Explanation full_file content content: dict mapping from line number to ...
62598f86f7d966606f747adb
class InputsSame(object): <NEW_LINE> <INDENT> def __init__(self, message=None): <NEW_LINE> <INDENT> if not message: <NEW_LINE> <INDENT> message = ("The inputs in an input group must be identical to one " "another") <NEW_LINE> <DEDENT> self.message = message <NEW_LINE> <DEDENT> def __call__(self, form, field): <NEW_LINE...
Raise an error if the inputs differ in the input group.
62598f86498bea3a75a57616
class QuestionEngine(object): <NEW_LINE> <INDENT> def __init__(self, model_path, pipeline, mapping=None, debug=False): <NEW_LINE> <INDENT> self.pipeline = pipeline <NEW_LINE> self.debug = debug <NEW_LINE> self.tagger = Tagger.load(model_path) <NEW_LINE> if not self.tagger: <NEW_LINE> <INDENT> msg = "Cannot load tagger ...
A class that holds the actual question generation model.
62598f86a17c0f6771d5bd35
class GeneralName(Choice): <NEW_LINE> <INDENT> _alternatives = [ ('rfc822Name', IA5String, {'tag':0, 'tag_type':'implicit'}), ('dNSName', IA5String, {'tag':1, 'tag_type':'implicit'}), ('directoryName', Name, {'tag':2, 'tag_type':'implicit'}), ('uniformResourceIdentifier', ...
GeneralName ::= CHOICE { rfc822Name IA5String (SIZE (1..128)), dNSName IA5String (SIZE (1..128)), directoryName Name, uniformResourceIdentifier IA5String (SIZE (1..128)), iPAddress OCTET STRING (SIZE (1..16)), --4 octets for IPV4 16 octets...
62598f86ec188e330fdf8391
class _BinaryExpression(ColumnElement): <NEW_LINE> <INDENT> def __init__(self, left, right, operator, type_=None, negate=None, modifiers=None): <NEW_LINE> <INDENT> ColumnElement.__init__(self) <NEW_LINE> self.left = _literal_as_text(left).self_group(against=operator) <NEW_LINE> self.right = _literal_as_text(right).self...
Represent an expression that is ``LEFT <operator> RIGHT``.
62598f8650485f2cf55daa66
class WikiTabTestCase(ModuleStoreTestCase): <NEW_LINE> <INDENT> shard = 4 <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super(WikiTabTestCase, self).setUp() <NEW_LINE> self.course = CourseFactory.create() <NEW_LINE> self.instructor = AdminFactory.create() <NEW_LINE> self.user = UserFactory() <NEW_LINE> <DEDENT> def g...
Test cases for Wiki Tab.
62598f86b57a9660fecd156f
class MrvLxSSH(CiscoSSHConnection): <NEW_LINE> <INDENT> def session_preparation(self): <NEW_LINE> <INDENT> self._test_channel_read(pattern=r"[>|>>]") <NEW_LINE> self.set_base_prompt() <NEW_LINE> self.enable() <NEW_LINE> self.disable_paging(command="no pause") <NEW_LINE> time.sleep(0.3 * self.global_delay_factor) <NEW_L...
MRV Communications Driver (LX).
62598f8691af0d3eaad398f0
class FlowNotReadyError(CumulusCIException): <NEW_LINE> <INDENT> pass
Raise when flow is called before it has been prepared
62598f86097d151d1a2c0b19
class DataGenerator(): <NEW_LINE> <INDENT> def __init__(self, x, y, batch_size=1, shuffle=True, seed=0, ng=None, smoothing = None, map_size = 512, y_shape = (2,), augment = False, scale = 60*3.5, d = None, from_files=False): <NEW_LINE> <INDENT> self.x, self.y = x, y <NEW_LINE> self.from_files = from_files <NEW_LINE> se...
Data generator. Generates minibatches of data and labels. Usage: from imgen import ImageGenerator g = DataGenerator(data, labels)
62598f8682261d6c5272fc4e
class UserFactory(BaseFactory): <NEW_LINE> <INDENT> email = factory.LazyAttribute(lambda x: faker.email()) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> model = User
User factory
62598f86711fe17d825e01de
class ScanOle(strelka.Scanner): <NEW_LINE> <INDENT> def scan(self, data, file, options, expire_at): <NEW_LINE> <INDENT> self.event['total'] = {'streams': 0, 'extracted': 0} <NEW_LINE> try: <NEW_LINE> <INDENT> ole = olefile.OleFileIO(data) <NEW_LINE> ole_streams = ole.listdir(streams=True) <NEW_LINE> self.event['total']...
Extracts files from OLECF files.
62598f86fbf16365ca793b9e
class Tree: <NEW_LINE> <INDENT> def __init__(self, label, *children): <NEW_LINE> <INDENT> self.__label = label; <NEW_LINE> self.__children = [ c if type(c) is Tree else Tree(c) for c in children] <NEW_LINE> <DEDENT> @property <NEW_LINE> def is_leaf(self): <NEW_LINE> <INDENT> return self.arity == 0 <NEW_LINE> <...
A Tree consists of a label and a sequence of 0 or more Trees, called its children.
62598f866e29344779b00159
class Station(Producer): <NEW_LINE> <INDENT> key_schema = avro.load(f"{Path(__file__).parents[0]}/schemas/arrival_key.json") <NEW_LINE> value_schema = avro.load(f"{Path(__file__).parents[0]}/schemas/arrival_value.json") <NEW_LINE> def __init__(self, station_id, name, color, direction_a=None, direction_b=None): <NEW_LIN...
Defines a single station
62598f8607f4c71912baef38
@python_2_unicode_compatible <NEW_LINE> class release_tag_raw(abstract__model_tag_raw): <NEW_LINE> <INDENT> release = models.OneToOneField('release', primary_key=True) <NEW_LINE> def __str__(self): <NEW_LINE> <INDENT> return 'Release Tag Raw' <NEW_LINE> <DEDENT> class Meta: <NEW_LINE> <INDENT> db_table = 'release_tag_r...
Not all parameters are listed here, only those that present some interest in their Django implementation. :param release: References :class:`release`.
62598f86462c4b4f79dbb4f7
class RandomGenerator: <NEW_LINE> <INDENT> def __init__(self, seed=None): <NEW_LINE> <INDENT> self.set_seed(seed) <NEW_LINE> <DEDENT> @property <NEW_LINE> def seed(self): <NEW_LINE> <INDENT> return self._seed <NEW_LINE> <DEDENT> def set_seed(self, seed): <NEW_LINE> <INDENT> self._seed = seed <NEW_LINE> if self._seed is...
Random generator controlling the games generation.
62598f86b7558d5895463128
class VCommentDict(VComment, DictMixin): <NEW_LINE> <INDENT> def __getitem__(self, key): <NEW_LINE> <INDENT> key.encode('ascii') <NEW_LINE> values = [value for (k, value) in self if k == key.lower()] <NEW_LINE> if not values: raise KeyError(key) <NEW_LINE> else: return values <NEW_LINE> <DEDENT> def __delitem__(self, k...
A VComment that looks like a dictionary. This object differs from a dictionary in two ways. First, len(comment) will still return the number of values, not the number of keys. Secondly, iterating through the object will iterate over (key, value) pairs, not keys. Since a key may have multiple values, the same value may...
62598f868e05c05ec3f6ebc2
class Wrapper(Layer): <NEW_LINE> <INDENT> def __init__(self, layer, **kwargs): <NEW_LINE> <INDENT> self.layer = layer <NEW_LINE> self._input_map = {} <NEW_LINE> super(Wrapper, self).__init__(**kwargs) <NEW_LINE> <DEDENT> def build(self, input_shape=None): <NEW_LINE> <INDENT> self.built = True <NEW_LINE> <DEDENT> @prope...
Abstract wrapper base class. Wrappers take another layer and augment it in various ways. Do not use this class as a layer, it is only an abstract base class. Two usable wrappers are the `TimeDistributed` and `Bidirectional` wrappers. # Arguments layer: The layer to be wrapped.
62598f86d10714528d69d9c5
class BrepLoopList(object,IEnumerable[BrepLoop],IEnumerable,IRhinoTable[BrepLoop]): <NEW_LINE> <INDENT> def Add(self,loopType,face=None): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def AddOuterLoop(self,faceIndex): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def AddPlanarFaceLoop(self,faceIndex,loopType,boundaryCurv...
Provides access to all the Loops in a Brep object.
62598f86a4f1c619b294e0e2
class MediaStorage(S3Boto3Storage): <NEW_LINE> <INDENT> location = 'media' <NEW_LINE> file_overwrite = False
Media storage class using Amazon S3 storage to store upload file.
62598f866fece00bbaccb47e
class applyEffect(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.stat1 = "ATK" <NEW_LINE> self.stat2 = "DEF" <NEW_LINE> self.val1 = 50 <NEW_LINE> self.val2 = 20 <NEW_LINE> self.user = BuildPokemonBattleWrapper() <NEW_LINE> self.delegate = SwapStatDelegate(self.stat1, self.stat2) <NEW...
Test cases of applyEffect
62598f8696565a6dacd2ccf2
class SuperlocusVariantFile: <NEW_LINE> <INDENT> def __init__(self,fname): <NEW_LINE> <INDENT> self.fh=csv.reader(open(fname,'r'),delimiter="\t") <NEW_LINE> self.colnames=self.fh.next() <NEW_LINE> <DEDENT> def _iter(self): <NEW_LINE> <INDENT> for i in self.fh: <NEW_LINE> <INDENT> yield i <NEW_LINE> <DEDENT> <DEDENT> de...
This class encapsulates the so-called SuperlocusOutput.tsv file generated by running cgatools calldiff. An example looks like this: SuperlocusId Chromosome Begin End Classification Reference AllelesA AllelesB 1 chr1 41980 41981 alt-identical;alt-identical A G;G G...
62598f86498bea3a75a57618
class StringExpr(object): <NEW_LINE> <INDENT> def __init__(self, expression, braces_required=False): <NEW_LINE> <INDENT> if not isinstance(expression, Token): <NEW_LINE> <INDENT> expression = Token(expression, 0) <NEW_LINE> <DEDENT> self.translator = Interpolator(expression, braces_required) <NEW_LINE> <DEDENT> def __c...
Similar to the built-in ``string.Template``, but uses an expression engine to support pluggable string substitution expressions. Expr string: string := (text | substitution) (string)? substitution := ('$' variable | '${' expression '}') text := .* In other words, an expression string can contain...
62598f8626238365f5fac663
class GeocodeByAddressInputSet(InputSet): <NEW_LINE> <INDENT> def set_Address(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'Address', value) <NEW_LINE> <DEDENT> def set_Bounds(self, value): <NEW_LINE> <INDENT> InputSet._set_input(self, 'Bounds', value) <NEW_LINE> <DEDENT> def set_Language(self, value): <...
An InputSet with methods appropriate for specifying the inputs to the GeocodeByAddress Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
62598f86b57a9660fecd1571
class PersonalizerError(Model): <NEW_LINE> <INDENT> _validation = { 'code': {'required': True}, 'message': {'required': True}, } <NEW_LINE> _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, 'target': {'key': 'target', 'type': 'str'}, 'details': {'key': 'details', '...
The error object. All required parameters must be populated in order to send to Azure. :param code: Required. High level error code. Possible values include: 'BadRequest', 'ResourceNotFound', 'InternalServerError' :type code: str or ~azure.cognitiveservices.personalizer.models.ErrorCode :param message: Required. A m...
62598f86925a0f43d25e7b2a
class AssignStatement(Statement): <NEW_LINE> <INDENT> def __init__(self, name, aexp): <NEW_LINE> <INDENT> self.name = VarAexp(name) <NEW_LINE> self.aexp = aexp <NEW_LINE> <DEDENT> def __repr__(self): <NEW_LINE> <INDENT> return '%s:= %s' % (self.name, self.aexp)
Class that handles assignements
62598f865f7d997b871f9153
class BoardEntry(abc.BaseBoard, abc.Serializable): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> self.name: str = kwargs.get("name") <NEW_LINE> self.board_id: int = kwargs.get("board_id") <NEW_LINE> self.description: str = kwargs.get("description") <NEW_LINE> self.posts: int = kwargs.get("posts"...
Represents a board in the list of boards. This is the board information available when viewing a section (e.g. World, Trade, Community) .. versionadded:: 3.0.0 Attributes ---------- name: :class:`str` The name of the board. board_id: :class:`int` The board's internal id. description: :class:`str` The des...
62598f8663b5f9789fe84c66
class Countries(dict): <NEW_LINE> <INDENT> def set(self, country_et): <NEW_LINE> <INDENT> code = country_et.get("code") <NEW_LINE> name = country_et.get("name") <NEW_LINE> url = country_et.get("url") <NEW_LINE> self.setdefault(code, {})[name] = url
Stores country information
62598f8624f1403a92685628
class TypedSet(collections.MutableSet): <NEW_LINE> <INDENT> def __init__(self, iterable=[], *types): <NEW_LINE> <INDENT> if not types: <NEW_LINE> <INDENT> types = (object,) <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> types = tuple(types) <NEW_LINE> <DEDENT> for t in types: <NEW_LINE> <INDENT> if not issubclass(t, obj...
docstring for TypedSet
62598f868a349b6b43685d3a
class GetScoreValueNode(ScoreNode): <NEW_LINE> <INDENT> model = TotalScore <NEW_LINE> def render(self, context): <NEW_LINE> <INDENT> ctype, object_pk = self.get_target_ctype_pk(context) <NEW_LINE> if object_pk: <NEW_LINE> <INDENT> context[self.as_varname] = self.get_score_value(ctype, object_pk) <NEW_LINE> <DEDENT> ret...
Inject score value to context.
62598f8607f4c71912baef39
@six.add_metaclass(abc.ABCMeta) <NEW_LINE> class FwaasDriverBase(object): <NEW_LINE> <INDENT> @abc.abstractmethod <NEW_LINE> def create_firewall(self, agent_mode, apply_list, firewall): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @abc.abstractmethod <NEW_LINE> def delete_firewall(self, agent_mode, apply_list, firewall...
Firewall as a Service Driver base class. Using FwaasDriver Class, an instance of L3 perimeter Firewall can be created. The firewall co-exists with the L3 agent. One instance is created for each tenant. One firewall policy is associated with each tenant (in the Havana release). The Firewall can be visualized as havin...
62598f8676d4e153a661c70a
class Trigon(object): <NEW_LINE> <INDENT> def __init__( self, pt1: Union[Tuple[int, int]], pt2: Union[Tuple[int, int]], pt3: Union[Tuple[int, int]], ) -> None: <NEW_LINE> <INDENT> self.pt1 = Vuple(pt1) <NEW_LINE> self.pt2 = Vuple(pt2) <NEW_LINE> self.pt3 = Vuple(pt3) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def from...
Trigon object composed of three points connected by lines.
62598f8607d97122c421679b
class CountingStream(object): <NEW_LINE> <INDENT> def __init__(self, stream, start=-1): <NEW_LINE> <INDENT> self.stream = iter(stream) <NEW_LINE> self.index = start <NEW_LINE> self.stopped = False <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> return self <NEW_LINE> <DEDENT> def next(self): <NEW_LINE> <IND...
Stream wrapper counting the number of element it has yielded. Similar role to ``enumerate``, but for use when the iteration process of the stream isn't fully under caller control (the stream can be iterated from multiple points including within a library) ``start`` allows overriding the starting index (the index befor...
62598f863eb6a72ae038a126
class Transaction(Resource): <NEW_LINE> <INDENT> member_path = 'transactions/%s' <NEW_LINE> collection_path = 'transactions' <NEW_LINE> nodename = 'transaction' <NEW_LINE> attributes = ( 'uuid', 'action', 'account', 'currency', 'amount_in_cents', 'tax_in_cents', 'status', 'reference', 'test', 'voidable', 'description',...
An immediate one-time charge made to a customer's account.
62598f86004d5f362081ed74
class IndexFormatter(Formatter): <NEW_LINE> <INDENT> def __init__(self, labels): <NEW_LINE> <INDENT> self.labels = labels <NEW_LINE> self.n = len(labels) <NEW_LINE> <DEDENT> def __call__(self, x, pos=None): <NEW_LINE> <INDENT> i = int(x + 0.5) <NEW_LINE> if i < 0: <NEW_LINE> <INDENT> return '' <NEW_LINE> <DEDENT> elif ...
format the position x to the nearest i-th label where i=int(x+0.5)
62598f86baa26c4b54d4eda8
class Arthropod(Organism): <NEW_LINE> <INDENT> def __init__(self, name, x, y, legs): <NEW_LINE> <INDENT> Organism.__init__(self, name, x, y) <NEW_LINE> self.legs = legs <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return '(%s, %s, [%s, %s])' % (self.name, self.legs, self.x, self.y)
An arthropod that has a fixed number of legs.
62598f86e76e3b2f99fd852d
class data_static(): <NEW_LINE> <INDENT> def __init__(self,trian_path,test_path): <NEW_LINE> <INDENT> self.trian_path = trian_path <NEW_LINE> self.test_path = test_path <NEW_LINE> self.max_depth = 0 <NEW_LINE> self.max_nodesize = 0 <NEW_LINE> self.vocb_size = None <NEW_LINE> self.dict = {} <NEW_LINE> self.data_size = 0...
tong ji xiang guang shu ju
62598f86bde94217f37073e1
class AssertionConsumerServicePostEndpoint(Resource, DictMixin): <NEW_LINE> <INDENT> pass
AssertionConsumerServicePostEndpoint resource.
62598f86435de62698e9b8ef
class Solution(object): <NEW_LINE> <INDENT> def mergeTwoLists(self, l1, l2): <NEW_LINE> <INDENT> self.agent_dict = {} <NEW_LINE> self.upload_nodes(l1) <NEW_LINE> self.upload_nodes(l2) <NEW_LINE> merged_list = self.merge_current_nodes() <NEW_LINE> return merged_list <NEW_LINE> <DEDENT> def merge_current_nodes(self): <NE...
208 / 208 test cases passed. Status: Accepted Runtime: 68 ms Submitted: 3 minutes ago
62598f86d99f1b3c44d051a4
class _CallContext(HasTraits): <NEW_LINE> <INDENT> event = Instance(TraceCall) <NEW_LINE> node = Unicode() <NEW_LINE> graph = Instance(nx.MultiDiGraph, allow_none=True) <NEW_LINE> output_table = Dict() <NEW_LINE> variable_table = Dict() <NEW_LINE> event_table = Instance(WeakKeyDictionary, ())
Context for a trace call event. Internal state for FlowGraphBuilder.
62598f86b830903b9686e1ed
class Rules(object): <NEW_LINE> <INDENT> def __init__(self, domain, token, telemetry=True): <NEW_LINE> <INDENT> self.domain = domain <NEW_LINE> self.client = RestClient(jwt=token, telemetry=telemetry) <NEW_LINE> <DEDENT> def _url(self, id=None): <NEW_LINE> <INDENT> url = 'https://{}/api/v2/rules'.format(self.domain) <N...
Rules endpoint implementation. Args: domain (str): Your Auth0 domain, e.g: 'username.auth0.com' token (str): Management API v2 Token telemetry (bool, optional): Enable or disable Telemetry (defaults to True)
62598f8673bcbd0ca4bc9d49
class ElidedPrettyPrinter(PrettyPrinter): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> self.threshold = kwargs.pop('threshold', 200) <NEW_LINE> PrettyPrinter.__init__(self, *args, **kwargs) <NEW_LINE> <DEDENT> def _format(self, val, stream, indent, allowance, context, level): <NEW_LINE> ...
PrettyPrinter subclass that elides long lists/arrays/strings
62598f86f7d966606f747adf
class Logger: <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.show_info = True <NEW_LINE> self.show_warning = False <NEW_LINE> self.show_debug = False <NEW_LINE> self.file = None <NEW_LINE> <DEDENT> def info(self, txt): <NEW_LINE> <INDENT> if self.show_info: print(txt) <NEW_LINE> <DEDENT> def warn(self...
use logger instead of print statements throughout the code for debug and other purposes a different implementation of same interface can be assigned to ocelot.logger if other features are needed
62598f860fa83653e46f49e5
class SlackRoomOccupant(RoomOccupant, SlackPerson): <NEW_LINE> <INDENT> def __init__(self, sc, userid, channelid, bot): <NEW_LINE> <INDENT> super().__init__(sc, userid, channelid) <NEW_LINE> self._room = SlackRoom(channelid=channelid, bot=bot) <NEW_LINE> <DEDENT> @property <NEW_LINE> def room(self): <NEW_LINE> <INDENT>...
This class represents a person inside a MUC.
62598f8650485f2cf55daa6a
class IPConfiguration(SubResource): <NEW_LINE> <INDENT> _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, 'subnet': {'key': 'properties.subnet...
IP configuration. :param id: Resource ID. :type id: str :param private_ip_address: The private IP address of the IP configuration. :type private_ip_address: str :param private_ip_allocation_method: The private IP allocation method. Possible values are 'Static' and 'Dynamic'. Possible values include: 'Static', 'Dynam...
62598f86d6c5a102081e1c41
class UploadResponse: <NEW_LINE> <INDENT> def __init__(self, json: dict): <NEW_LINE> <INDENT> dataset_id = json.get(DATASET_ID_KEY) <NEW_LINE> new_items = json.get(NEW_ITEMS, 0) <NEW_LINE> updated_items = json.get(UPDATED_ITEMS, 0) <NEW_LINE> ignored_items = json.get(IGNORED_ITEMS, 0) <NEW_LINE> upload_errors = json.ge...
Response for long upload job. For internal use only! Parameters: json: Payload from which to construct the UploadResponse. Attributes: dataset_id: The scale-generated id for the dataset that was uploaded to new_items: How many items are new in the upload updated_items: How many items were updated ...
62598f8623849d37ff850bb5
class TrainingSetPrepositionRandomRegularizer(RandomRegularizer): <NEW_LINE> <INDENT> def fit_transform(self, X, y=None): <NEW_LINE> <INDENT> return self._transform(X, y) <NEW_LINE> <DEDENT> def transform(self, X, y=None): <NEW_LINE> <INDENT> if y is None: <NEW_LINE> <INDENT> return X <NEW_LINE> <DEDENT> else: <NEW_LIN...
Takes examples in the form of a vector of indices. Replaces each middle value in each vector with a value from some other example.
62598f86b57a9660fecd1574
class UserFilter(django_filters.FilterSet): <NEW_LINE> <INDENT> class Meta: <NEW_LINE> <INDENT> model = models.User <NEW_LINE> fields = ( 'first_name', 'last_name', 'email', 'phone_number',)
User filter class.
62598f86097d151d1a2c0b1d
class Bernoulli(Likelihood): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Bernoulli, self).__init__() <NEW_LINE> <DEDENT> def pdf(self, f, y): <NEW_LINE> <INDENT> sigmoid = torch.nn.Sigmoid() <NEW_LINE> p = sigmoid(f).flatten() <NEW_LINE> bernoulli = Ber(probs=p) <NEW_LINE> pdf = torch.exp(bernoull...
Class for Gaussian Likelihood
62598f8629b78933be269e56
class TiradaJuego: <NEW_LINE> <INDENT> def __init__(self, mem): <NEW_LINE> <INDENT> self.mem=mem <NEW_LINE> <DEDENT> def numThrows(self): <NEW_LINE> <INDENT> resultado=0 <NEW_LINE> for j in self.mem.jugadores.arr: <NEW_LINE> <INDENT> resultado=resultado+j.tiradahistorica.numThrows() <NEW_LINE> <DEDENT> return resultado...
Estudio estadistico de tiradas globales del juego (une todos jugadores). Se usa para temas estadisticos y recorre las tiradas historicas de todos los jugadores.
62598f86009cb60464d01023
class BaseView(TemplateView): <NEW_LINE> <INDENT> active_menu = None <NEW_LINE> title = None <NEW_LINE> def get_active_menu(self, **kwargs): <NEW_LINE> <INDENT> return self.active_menu <NEW_LINE> <DEDENT> def get_title(self, **kwargs): <NEW_LINE> <INDENT> return self.title <NEW_LINE> <DEDENT> def get_context_data(self,...
Base class for views.
62598f86d4950a0f3b110bb1
class GetAllReferencesResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None) <NEW_LINE> <DEDENT> def get_FirstPage(self): <NEW_LINE> <INDENT> return s...
A ResultSet with methods tailored to the values returned by the GetAllReferences Choreo. The ResultSet object is used to retrieve the results of a Choreo execution.
62598f86d53ae8145f917f87
class PortProfileAdmin(VersionAdmin): <NEW_LINE> <INDENT> pass
Admin class of port profiles.
62598f860383005118f6d1f3
class OverQuotaError(Error): <NEW_LINE> <INDENT> pass
Raised by APIProxy calls when they have been blocked due to a lack of available quota.
62598f869b70327d1c57e896
class _UpdateBase(Executable, ClauseElement): <NEW_LINE> <INDENT> __visit_name__ = 'update_base' <NEW_LINE> _execution_options = Executable._execution_options.union({'autocommit':True}) <NEW_LINE> kwargs = util.frozendict() <NEW_LINE> def _process_colparams(self, parameters): <NEW_LINE> <INDENT> if isinstance(parameter...
Form the base for ``INSERT``, ``UPDATE``, and ``DELETE`` statements.
62598f86c432627299fa2ac9
class AbsoluteSpeedAction(_PrivateActionType): <NEW_LINE> <INDENT> def __init__(self,speed:float,transition_dynamics): <NEW_LINE> <INDENT> self.speed = speed <NEW_LINE> if not isinstance(transition_dynamics,TransitionDynamics): <NEW_LINE> <INDENT> raise TypeError('transition_dynamics input not of type TransitionDynamic...
The AbsoluteSpeedAction class specifies a LongitudinalAction of type SpeedAction with an abosulte target speed Parameters ---------- speed (float): the speed wanted transition_dynamics (TransitionDynamics): how the change should be made Attributes ---------- speed (float): the speed wanted transiti...
62598f868e05c05ec3f6ebc4
class Library: <NEW_LINE> <INDENT> def __init__(self, rgroups): <NEW_LINE> <INDENT> self.rgroups = rgroups <NEW_LINE> <DEDENT> def isValid(self): <NEW_LINE> <INDENT> for rg in self.rgroups: <NEW_LINE> <INDENT> if len(rg.sidechains) == 0: <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> <DEDENT> return True <NEW_LIN...
A library is a collection of RGroups that need to be combinitorially combined
62598f866fb2d068a7693bab
class Test_IScheduleServersParser(twistedcaldav.test.util.TestCase): <NEW_LINE> <INDENT> def test_readXML(self): <NEW_LINE> <INDENT> fp = FilePath(self.mktemp()) <NEW_LINE> fp.open("w").write( ) <NEW_LINE> parser = IScheduleServersParser(fp) <NEW_LINE> self.assertEqual(len(parser.servers), 1)
Test L{IScheduleServersParser} implementation.
62598f86a4f1c619b294e0e6
class Humidity(Sensor): <NEW_LINE> <INDENT> def __init__(self, humidity, scale): <NEW_LINE> <INDENT> Sensor.__init__(self,humidity,scale)
Class that hold humidity data as a single data point, inherits from the Sensor class to inclued the properties from this class
62598f86287bf620b62716ae
@pytest.mark.incremental <NEW_LINE> class TestMinting(object): <NEW_LINE> <INDENT> def test_f_mint_owner(self, chain): <NEW_LINE> <INDENT> oo = deploy(chain) <NEW_LINE> owner = chain.web3.eth.coinbase <NEW_LINE> wait_n_blocks(chain, 10) <NEW_LINE> balance1 = oo.call().balanceOf(owner) <NEW_LINE> mintable1 = oo.call().g...
mint()
62598f861d351010ab8f362e
class BotOfflineEventActive(MiraiEvent): <NEW_LINE> <INDENT> type = "BotOfflineEventActive" <NEW_LINE> qq: int <NEW_LINE> Dispatcher = EmptyDispatcher
当该事件发生时, 应用实例所辖账号主动离线 ** 注意: 当监听该事件或该类事件时, 请优先考虑使用原始事件类作为类型注解, 以此获得事件类实例, 便于获取更多的信息! ** Allowed Extra Parameters(提供的额外注解支持): GraiaMiraiApplication (annotation): 发布事件的应用实例
62598f86a17c0f6771d5bd3b
class TextualSelect(SelectBase): <NEW_LINE> <INDENT> __visit_name__ = "textual_select" <NEW_LINE> _label_style = LABEL_STYLE_NONE <NEW_LINE> _traverse_internals = [ ("element", InternalTraversal.dp_clauseelement), ("column_args", InternalTraversal.dp_clauseelement_list), ] + SupportsCloneAnnotations._clone_annotations_...
Wrap a :class:`_expression.TextClause` construct within a :class:`_expression.SelectBase` interface. This allows the :class:`_expression.TextClause` object to gain a ``.c`` collection and other FROM-like capabilities such as :meth:`_expression.FromClause.alias`, :meth:`_expression.SelectBase.cte`, etc. The :class:`_e...
62598f86dc8b845886d530b0
class SfpoldevchkError(ValueError): <NEW_LINE> <INDENT> pass
A slightly more specific Exception class to raise
62598f86a79ad16197769b5b
class AssessmentTemplatesService(BaseService): <NEW_LINE> <INDENT> ENDPOINT = url.ASSESSMENT_TEMPLATES <NEW_LINE> def create(self, count, audit): <NEW_LINE> <INDENT> return self.create_list_objs(factory=AssessmentTemplatesFactory(), count=count, audit=audit.__dict__)
Service for working with Assessment Templates entities.
62598f8623849d37ff850bb7
class IJsonWidget(IWidget): <NEW_LINE> <INDENT> pass
Generic JSON widget.
62598f8610dbd63aa1c706ad
class UnexpectedExceptionTestCase(ExceptionTestCase): <NEW_LINE> <INDENT> class SubClassExc(exception.UnexpectedError): <NEW_LINE> <INDENT> debug_message_format = 'Debug Message: %(debug_info)s' <NEW_LINE> <DEDENT> def setUp(self): <NEW_LINE> <INDENT> super(UnexpectedExceptionTestCase, self).setUp() <NEW_LINE> self.exc...
Tests if internal info is exposed to the API user on UnexpectedError.
62598f8607d97122c421679e
class AppearanceStruct(StructProperty): <NEW_LINE> <INDENT> typename = 'TAppearance' <NEW_LINE> head = Property('nmHead', 'NameProperty','LatFem_C') <NEW_LINE> gender = Property('iGender', 'IntProperty', 2) <NEW_LINE> race = Property('iRace', 'IntProperty', 3) <NEW_LINE> haircut = Property('nmHaircut', 'Nam...
represents a TAppearance struct in a character file
62598f8615baa72349461a77
class StagingConfig(BaseConfig): <NEW_LINE> <INDENT> DEBUG = True
Staging Specific Configurations
62598f86baa26c4b54d4edac
class CreateApplicationTriggerPersonalResponse(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.RequestId = None <NEW_LINE> <DEDENT> def _deserialize(self, params): <NEW_LINE> <INDENT> self.RequestId = params.get("RequestId")
CreateApplicationTriggerPersonal返回参数结构体
62598f8626068e7796d4c457
class Results(object): <NEW_LINE> <INDENT> def __init__(self, decoded): <NEW_LINE> <INDENT> response_part = decoded.get('response') or {} <NEW_LINE> self.docs = response_part.get('docs', ()) <NEW_LINE> self.hits = response_part.get('numFound', 0) <NEW_LINE> self.debug = decoded.get('debug', {}) <NEW_LINE> self.highligh...
Default results class for wrapping decoded (from JSON) solr responses. Required ``decoded`` argument must be a Solr response dictionary. Individual documents can be retrieved either through ``docs`` attribute or by iterating over results instance. Example:: results = Results({ 'response': { '...
62598f86d99f1b3c44d051a8
@admin.register(User, site=admin_site) <NEW_LINE> class CTFUserAdmin(UserAdmin): <NEW_LINE> <INDENT> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> for fieldset in self.add_fieldsets: <NEW_LINE> <INDENT> if fieldset[0] is None: <NEW_LINE> <INDENT> fieldset[1]['fiel...
Custom variant of UserAdmin which adjusts the displayed, filterable and editable fields and adds an InlineModelAdmin for the associated team.
62598f86d6c5a102081e1c45
class API: <NEW_LINE> <INDENT> HISTORY_URL = "https://api.steampowered.com/IDOTA2Match_570/GetMatchHistory/V001/" <NEW_LINE> MATCH_URL = "https://api.steampowered.com/IDOTA2Match_570/GetMatchDetails/V001/" <NEW_LINE> TEAM_URL = "https://api.steampowered.com/IDOTA2Match_570/GetTeamInfoByTeamID/v001/" <NEW_LINE> def __in...
The network side of things. Parameters ---------- key: value API key Returns ------- api: API Notes ----- Call specific keyword args should go into their respective functions.
62598f8623e79379d538bff7
class UpdateDocumentOperation(DocumentOperation): <NEW_LINE> <INDENT> default_error_msg="Erro ao atualizar registro" <NEW_LINE> def _on_pre_execute(self): <NEW_LINE> <INDENT> super()._on_pre_execute() <NEW_LINE> self.context=self._get_context(method="PUT") <NEW_LINE> <DEDENT> def _on_execute(self): <NEW_LINE> <INDENT> ...
Updates a document. Warning: This is a full update! All fields and groups not included in the parameters will be deleted! This includes multivalued fields/groups.For a partial update, see the PartialUpdateDocumentOperation class. Params: - basename (string): name of the base - doc_id (int): id of the docu...
62598f86c432627299fa2aca
class IntegerField(_IntegerField): <NEW_LINE> <INDENT> widget = NumberInput()
**IntegerField** using **NumberInput** by default
62598f860fa83653e46f49e9
class Solution: <NEW_LINE> <INDENT> def reverseWords(self, s): <NEW_LINE> <INDENT> word = [] <NEW_LINE> words = deque() <NEW_LINE> for ch in s: <NEW_LINE> <INDENT> if ch != ' ': <NEW_LINE> <INDENT> word += ch <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> if word: <NEW_LINE> <INDENT> words.appendleft(''.join(word)) <NEW...
@param: s: A string @return: A string
62598f860a366e3fb87dc4c9
class CSVModelForm(forms.ModelForm): <NEW_LINE> <INDENT> def __init__(self, *args, headers=None, **kwargs): <NEW_LINE> <INDENT> super().__init__(*args, **kwargs) <NEW_LINE> if headers: <NEW_LINE> <INDENT> for field, to_field in headers.items(): <NEW_LINE> <INDENT> if to_field is not None: <NEW_LINE> <INDENT> self.field...
ModelForm used for the import of objects in CSV format.
62598f860a50d4780f704ed3
class ProductInfo(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.base_url = "http://10.248.50.225:8990/api/v2/sync/BBOSS/syncProduct2Province?offerNum=50013" <NEW_LINE> self.od = OraDb() <NEW_LINE> <DEDENT> def test_normal(self): <NEW_LINE> <INDENT> response = requests.get(self.base_url) <NEW_LINE...
测试test
62598f8638b623060ffa8b91
class ModbusExceptionAcknowledge(Exception): <NEW_LINE> <INDENT> pass
Exception code = 5 Exception raised when a specialized use in conjunction with programming commands. The server has accepted the request and is processing it, but a long duration of time will be required to do so. This response is returned to prevent a timeout error from occurring in the client. The client can next ...
62598f86d10714528d69d9cb
class FollowedByQuery(Seqable): <NEW_LINE> <INDENT> def __init__(self, prefix, keyname='query'): <NEW_LINE> <INDENT> self.prefix = prefix <NEW_LINE> self.keyname = keyname
For query strings.
62598f8645492302aabfbfda
class CentsToTranspo(PyoObject): <NEW_LINE> <INDENT> def __init__(self, input, mul=1, add=0): <NEW_LINE> <INDENT> pyoArgsAssert(self, "oOO", input, mul, add) <NEW_LINE> PyoObject.__init__(self, mul, add) <NEW_LINE> self._input = input <NEW_LINE> self._in_fader = InputFader(input) <NEW_LINE> in_fader, mul, add, lmax = c...
Returns the transposition factor equivalent of a given cents value. Returns the transposition factor equivalent of a given cents value, 0 cents = 1. :Parent: :py:class:`PyoObject` :Args: input: PyoObject Input signal, cents value. >>> s = Server().boot() >>> s.start() >>> met = Metro(.125, poly=2).play...
62598f8607d97122c42167a0
class Category(Page): <NEW_LINE> <INDENT> def iter_translations(self): <NEW_LINE> <INDENT> return (cat for cat in (mwdb.Wikipedia(ll.lang.replace('-', '_')).get_category(ll.title) for ll in self.language_links if ll.lang.replace('-', '_') in mwdb.databases.languages) if cat) <NEW_LINE> <DEDENT> def iter_subcategories_s...
A Category
62598f8629b78933be269e58
class SalesforceAutomaticFieldsRest(SalesforceAutomaticFields): <NEW_LINE> <INDENT> salesforce_api = 'REST' <NEW_LINE> @staticmethod <NEW_LINE> def name(): <NEW_LINE> <INDENT> return "tt_salesforce_auto_rest" <NEW_LINE> <DEDENT> def test_run(self): <NEW_LINE> <INDENT> self.automatic_fields_test()
Test that with no fields selected for a stream automatic fields are still replicated
62598f86d10714528d69d9cc
@openflow_instruction("METER", 6) <NEW_LINE> class ofp_instruction_meter (ofp_instruction): <NEW_LINE> <INDENT> _MIN_LENGTH = ofp_instruction._MIN_LENGTH + 8 <NEW_LINE> def __init__(self,**kw): <NEW_LINE> <INDENT> ofp_instruction.__init__(self) <NEW_LINE> self.meterId = 0 <NEW_LINE> self.reserve = [] <NEW_LINE> initHel...
This class is generated by Milktank_tool @author:milktank @version:1.0 @todo:
62598f868e71fb1e983bb5ad
class BookInstance(models.Model): <NEW_LINE> <INDENT> id = models.UUIDField(primary_key=True, default=uuid.uuid4, help_text='Unique ID for this particular book across whole library') <NEW_LINE> book = models.ForeignKey('Book', on_delete=models.SET_NULL, null=True) <NEW_LINE> publisher = models.CharField(max_length=200)...
Model representing a specific copy of a book (i.e. that can be borrowed from the library).
62598f86507cdc57c63a4889
class DihedralBaseMetric(BaseMetric): <NEW_LINE> <INDENT> def _featurizer(self, **kwargs): <NEW_LINE> <INDENT> return DihedralFeaturizer(sincos=False, **kwargs) <NEW_LINE> <DEDENT> def _extract_data(self, traj): <NEW_LINE> <INDENT> data = [] <NEW_LINE> for tp in self.types: <NEW_LINE> <INDENT> featurizer = self._featur...
Base dihedral metric object
62598f8621a7993f00c65a70
class Chdir(object): <NEW_LINE> <INDENT> def __init__(self, new_path): <NEW_LINE> <INDENT> self.newPath = os.path.expanduser(new_path) <NEW_LINE> self.savedPath = None <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> self.savedPath = os.getcwd() <NEW_LINE> os.chdir(self.newPath) <NEW_LINE> <DEDENT> def __ex...
Context manager for changing the current working directory
62598f8615baa72349461a7a
class Lambda(Expression): <NEW_LINE> <INDENT> def __init__(self, args, default_args, statements): <NEW_LINE> <INDENT> Expression.__init__(self) <NEW_LINE> self.args = args <NEW_LINE> self.default_values = default_args <NEW_LINE> self.statements = statements <NEW_LINE> self.__remove_returns() <NEW_LINE> <DEDENT> def __r...
Lambda expression: lambda args: expr
62598f876aa9bd52df0d49d5