code
stringlengths
4
4.48k
docstring
stringlengths
1
6.45k
_id
stringlengths
24
24
class TreatmentResource(ModelResource): <NEW_LINE> <INDENT> animals = fields.ToManyField('mousedb.animal.api.AnimalResource','animals',full=True, null=True) <NEW_LINE> class Meta: <NEW_LINE> <INDENT> queryset = Treatment.objects.all() <NEW_LINE> fields = 'treatment' <NEW_LINE> resource_name = 'treatment' <NEW_LINE> inc...
This generates the API resource for :class:`~mousedb.data.models.Treatment` objects. This is a limited dataset for use in AnimalResource calls.
625990714f6381625f19a110
class Router(Node): <NEW_LINE> <INDENT> def __init__(self, node_id): <NEW_LINE> <INDENT> super(Router, self).__init__(node_id)
Router class, subclass of Node.
62599071ac7a0e7691f73db8
class Document(_MainResource, Base): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def _collection_path(cls): <NEW_LINE> <INDENT> return 'documents' <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def _instance_path(cls, dispute_id, document_id): <NEW_LINE> <INDENT> return ('disputes', dispute_id, 'documents', document_id) <...
API class representing a dispute document in an account. This API class is used for managing dispute document files. Documents are used to help resolve disputes. Supported file types include PNG, JPG, and PDF. Basic usage:: >>> import omise >>> omise.api_secret = 'skey_test_4xs8breq3htbkj03d2x' >>> dispu...
62599071aad79263cf430085
class Storage: <NEW_LINE> <INDENT> def __init__(self, base_folder, filename): <NEW_LINE> <INDENT> self.filename = os.path.join(base_folder, filename) <NEW_LINE> self.last_value = None <NEW_LINE> self.last_read_time = None <NEW_LINE> <DEDENT> @property <NEW_LINE> def value(self): <NEW_LINE> <INDENT> if not self.exists: ...
Read/write a value from/to a file
62599071f548e778e596ce5c
class Reminders: <NEW_LINE> <INDENT> def __init__(self, bot): <NEW_LINE> <INDENT> self.bot = bot <NEW_LINE> self.timers = bot.get_cog('Timers') <NEW_LINE> <DEDENT> async def on_message(self, msg): <NEW_LINE> <INDENT> if msg.channel.id != 269910005837332480: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> if msg.content....
Tools for reminding
625990717d43ff248742807a
class IPermission(Interface): <NEW_LINE> <INDENT> id = TextLine( title=u"Id", description=u"Id as which this permission will be known and used.", readonly=True, required=True) <NEW_LINE> title = TextLine( title=u"Title", description=u"Provides a title for the permission.", required=True) <NEW_LINE> description = Text( ...
A permission object.
625990710a50d4780f706a29
class PluginReportStateAPI(object): <NEW_LINE> <INDENT> def __init__(self, topic): <NEW_LINE> <INDENT> target = oslo_messaging.Target(topic=topic, version='1.0', namespace=n_const.RPC_NAMESPACE_STATE) <NEW_LINE> self.client = n_rpc.get_client(target) <NEW_LINE> <DEDENT> def report_state(self, context, agent_state, use_...
RPC client used to report state back to plugin. This class implements the client side of an rpc interface. The server side can be found in neutron.db.agents_db.AgentExtRpcCallback. For more information on changing rpc interfaces, see doc/source/contributor/internals/rpc_api.rst.
6259907166673b3332c31cce
class DrawingHandler: <NEW_LINE> <INDENT> @Route.get( r"/projects/{project_id}/drawings", parameters={ "project_id": "Project UUID" }, status_codes={ 200: "List of drawings returned", }, description="List drawings of a project") <NEW_LINE> async def list_drawings(request, response): <NEW_LINE> <INDENT> project = await ...
API entry point for Drawing
62599071fff4ab517ebcf0ea
class Core(object): <NEW_LINE> <INDENT> def __init__(self, logger, capability_repository, nodes_repository, valmanager, inter_node_orchestrator, communication_manager, capability_engine, as_daemon=True): <NEW_LINE> <INDENT> self.as_daemon = as_daemon <NEW_LINE> self.stopped = False <NEW_LINE> self.daemon = None <NEW_LI...
This module provides the core functionality of Motey. It can be executed as a daemon service or can be executed in foreground. It will start an API webserver and a MQTTServer which can be configured via the config.ini file. The core will also start all the necessary components like the VALManager, the InterNodeOrchestr...
62599071091ae35668706506
class Dconv_shuffle_depthwise(nn.Module): <NEW_LINE> <INDENT> def __init__(self, inplane, outplane, kernel_size, stride, padding): <NEW_LINE> <INDENT> super(Dconv_shuffle_depthwise, self).__init__() <NEW_LINE> print('cifar Dconv_shuffle_depthwise is used') <NEW_LINE> self.dilated_conv = nn.Conv2d(inplane, outplane, ker...
Deformable convolution with random shuffling of the feature map. Random shuffling only happened within each page independently. The sampling locations are generated for each forward pass during the training.
625990714e4d562566373cd6
class BasicUserTestCase(StaticLiveServerTestCase): <NEW_LINE> <INDENT> def test_user_input(self): <NEW_LINE> <INDENT> client = requests.session() <NEW_LINE> r = client.get(self.live_server_url) <NEW_LINE> csrftoken = client.cookies['csrftoken'] <NEW_LINE> page = html.parse(StringIO(r.text)).getroot() <NEW_LINE> form_te...
Tests basic user interaction with the app
62599071bf627c535bcb2d9b
class SetOutBandVpnAuthPasswordResponse(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")
SetOutBandVpnAuthPassword返回参数结构体
62599071e5267d203ee6d025
class ProbLogObject(object): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def create_from(cls, obj, **kwdargs): <NEW_LINE> <INDENT> return ProbLog.convert(obj, cls, **kwdargs) <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def createFrom(cls, obj, **kwdargs): <NEW_LINE> <INDENT> return cls.create_from(obj, **kwdargs) <NEW_...
Root class for all convertible objects in the ProbLog system.
62599071ad47b63b2c5a911d
class Type(BaseType): <NEW_LINE> <INDENT> def __init__(self, field): <NEW_LINE> <INDENT> super(Type, self).__init__([field])
基础类型
6259907192d797404e3897c3
class FileStream: <NEW_LINE> <INDENT> def __init__(self, content): <NEW_LINE> <INDENT> self._content = content <NEW_LINE> <DEDENT> def read(self): <NEW_LINE> <INDENT> content = self._content <NEW_LINE> self._content = '' <NEW_LINE> return content
A class that wraps a file stream, but adds extra attributes to it. Attributes: content: str. The content of the file snapshot.
62599071d268445f2663a7c5
class MaspyJsonEncoder(json.JSONEncoder): <NEW_LINE> <INDENT> def default(self, obj): <NEW_LINE> <INDENT> if hasattr(obj, '_reprJSON'): <NEW_LINE> <INDENT> return obj._reprJSON() <NEW_LINE> <DEDENT> return json.JSONEncoder.default(self, obj)
Extension of the json.JSONEncoder to serialize MasPy classes. Maspy classes need to define a _reprJSON() method, which returns a json serializable object.
6259907132920d7e50bc7917
class UICustomContextMenu(QMenu): <NEW_LINE> <INDENT> def __init__(self, sender, point, actions): <NEW_LINE> <INDENT> super(UICustomContextMenu, self).__init__() <NEW_LINE> for text, tip in actions: <NEW_LINE> <INDENT> act = self.addAction(self.tr(text)) <NEW_LINE> act.setStatusTip(self.tr(tip)) <NEW_LINE> <DEDENT> sel...
By setting a QWidget's contextMenuPolicy to CustomContextMenu, you can use this class to make the context menu creation more simple. For example: @pyqtSlot(QPoint) def on_myWidget_customContextMenuRequested(self, point): UICustomContextMenu(self.myWidget, point, ( ('Action Text 1', 'Status Tip 1'), ...
62599071aad79263cf430086
class RedFlagModel(): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.db = redflag_incidents <NEW_LINE> <DEDENT> def store(self, redflag_incidents): <NEW_LINE> <INDENT> self.db.append(redflag_incidents) <NEW_LINE> <DEDENT> def get_flags(self): <NEW_LINE> <INDENT> return self.db
This class contains methods to manipulate the redflag_incident variable used to simulate a database
62599071796e427e53850049
class AnnotationDot(Dot): <NEW_LINE> <INDENT> def __init__( self, radius=DEFAULT_DOT_RADIUS * 1.3, stroke_width=5, stroke_color=WHITE, fill_color=BLUE, **kwargs ): <NEW_LINE> <INDENT> Dot.__init__( self, radius=radius, stroke_width=stroke_width, stroke_color=stroke_color, fill_color=fill_color, **kwargs )
A dot with bigger radius and bold stroke to annotate scenes.
62599071a8370b77170f1c9a
class StringTable: <NEW_LINE> <INDENT> def __init__(s): <NEW_LINE> <INDENT> s.bytecounter = 0 <NEW_LINE> s.entry = [] <NEW_LINE> s.__map_stoo = {} <NEW_LINE> s.__map_otos = {} <NEW_LINE> s.__getitem__('<NULL>') <NEW_LINE> <DEDENT> @classmethod <NEW_LINE> def parse(cls, data): <NEW_LINE> <INDENT> s = cls(); <NEW_LINE> i...
@UTF Table String Table
62599071a17c0f6771d5d813
class PrintOption(Option): <NEW_LINE> <INDENT> def __init__(self, key, value): <NEW_LINE> <INDENT> self.need_stat = False <NEW_LINE> self.print_title = False <NEW_LINE> self.fmt = [] <NEW_LINE> for arg in value.replace(',', ' ').split(): <NEW_LINE> <INDENT> self.fmt.append(arg) <NEW_LINE> if arg not in ['name', 'path']...
Return information about a matched file. Print options are specified as a comma and/or space separated list of one or more of the following: group = group name md5 = MD5 digest of file contents mode = file mode (as integer) mtime = last modification time (as time_t) name = file basename ...
62599071a8370b77170f1c9b
class SoftLayerTransactionStatus(BaseSoftLayerObject): <NEW_LINE> <INDENT> def __init__(self, obj): <NEW_LINE> <INDENT> super(SoftLayerTransactionStatus, self).__init__(obj) <NEW_LINE> <DEDENT> @softlayer_property <NEW_LINE> def name(self): <NEW_LINE> <INDENT> return self.data['friendlyName'] if 'friendlyName' in self....
SoftLayer_Provisioning_Version1_Transaction_Status
6259907132920d7e50bc7918
class SingleDataset(BaseDataset): <NEW_LINE> <INDENT> def __init__(self, opt): <NEW_LINE> <INDENT> BaseDataset.__init__(self, opt) <NEW_LINE> self.A_paths = sorted(make_dataset(opt.dataroot, opt.max_dataset_size)) <NEW_LINE> input_nc = self.opt.output_nc if self.opt.direction == 'BtoA' else self.opt.input_nc <NEW_LINE>...
This dataset class can load a set of images specified by the path --dataroot /path/to/data. It can be used for generating CycleGAN results only for one side with the model option '-model test'.
62599071091ae35668706508
class BrianObjectException(Exception): <NEW_LINE> <INDENT> def __init__(self, message, brianobj, original_exception): <NEW_LINE> <INDENT> self._brian_message = message <NEW_LINE> self._brian_objname = brianobj.name <NEW_LINE> self._brian_origexc = '\n'.join(traceback.format_exception_only(type(original_exception), orig...
High level exception that adds extra Brian-specific information to exceptions This exception should only be raised at a fairly high level in Brian code to pass information back to the user. It adds extra information about where a `BrianObject` was defined to better enable users to locate the source of problems. You s...
625990717b25080760ed894c
class Test_FileConfigFiller: <NEW_LINE> <INDENT> pass
>>> try_parse('key = value', 'Found config option outside of config section') caught >>> try_parse(' key = value', 'Invalid indentation') caught >>> try_parse('[section', 'Unable to parse config section') caught >>> try_parse('[section]\nkey', 'Please use "key = value" syntax or indent values!') caught
6259907155399d3f05627dea
class PgDB(BaseDB): <NEW_LINE> <INDENT> def __init__(self, host, user, password, db): <NEW_LINE> <INDENT> BaseDB.__init__(self) <NEW_LINE> self._verify_connection(host, user, password, db) <NEW_LINE> <DEDENT> def _verify_connection(self, host, user, password, db=None): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self....
Class for PostgreSQL database. :param host: database host address. :param user: database username. :param password: database password. :param db: database name.
6259907171ff763f4b5e907a
class FinancialCodeAssignmentFormTest(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.codes = create_financial_codes() <NEW_LINE> <DEDENT> def test_expense_code_select(self): <NEW_LINE> <INDENT> transaction_type = self.codes[0].financial_code_group.type <NEW_LINE> system_id = self.codes[0].fina...
Test functions for the FinancialCode model
625990717c178a314d78e854
class TestPluginApi: <NEW_LINE> <INDENT> config = 'tasks: {}' <NEW_LINE> def test_unknown_plugin(self): <NEW_LINE> <INDENT> with pytest.raises(plugin.DependencyError): <NEW_LINE> <INDENT> plugin.get_plugin_by_name('nonexisting_plugin') <NEW_LINE> <DEDENT> <DEDENT> def test_unknown_plugin(self): <NEW_LINE> <INDENT> with...
Contains plugin api related tests
625990717047854f46340c89
class Writable(object): <NEW_LINE> <INDENT> def __init__(self, fname): <NEW_LINE> <INDENT> self.orig_mode = os.stat(fname).st_mode <NEW_LINE> self.change_needed = ~(self.orig_mode & stat.S_IWUSR) <NEW_LINE> self.fname = fname <NEW_LINE> <DEDENT> def __enter__(self): <NEW_LINE> <INDENT> if self.change_needed: <NEW_LINE>...
Context manager making file writable. It's not safe to use it concurrently on the same file, but nesting is ok.
62599071baa26c4b54d50b7d
class Event(object): <NEW_LINE> <INDENT> def __init__(self, event_type=None): <NEW_LINE> <INDENT> self.event_type = event_type <NEW_LINE> self.event_data_dict = {}
事件对象
6259907126068e7796d4e20d
class Scan(models.Model): <NEW_LINE> <INDENT> pdf = models.FileField(upload_to=TMP_UPLOAD, blank=True) <NEW_LINE> author = models.ForeignKey(settings.AUTH_USER_MODEL, related_name="scans_authored", blank=True, null=True) <NEW_LINE> uploader = models.ForeignKey(settings.AUTH_USER_MODEL, related_name="scans_uploaded") <N...
This is the raw scan with envelope and all.
625990718a43f66fc4bf3a66
class PycodestyleTestCase(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self._style = pycodestyle.StyleGuide( paths=[os.path.join(ROOT_DIR, 'testsuite')], select='E,W', quiet=True) <NEW_LINE> <DEDENT> def test_doctest(self): <NEW_LINE> <INDENT> import doctest <NEW_LINE> fail_d, done_d = d...
Test the standard errors and warnings (E and W).
625990712c8b7c6e89bd50b9
class SasAuthentication(Authentication): <NEW_LINE> <INDENT> _validation = { 'type': {'required': True}, } <NEW_LINE> _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, 'sas_uri': {'key': 'properties.sasUri', 'type': 'str'}, } <NEW_LINE> def __init__( self, *, sas_uri: Optional[str] = None, **kwargs ): <NEW_LIN...
Defines the properties to access the artifacts using an Azure Storage SAS URI. All required parameters must be populated in order to send to Azure. :param type: Required. The authentication type.Constant filled by server. :type type: str :param sas_uri: The SAS URI to the Azure Storage blob container. Any offset from...
62599071283ffb24f3cf517a
class ApiAuthSvcDeleteApiKeyFailedError(ApiAuthSvcRequestError): <NEW_LINE> <INDENT> def __init__(self, identity=None) -> None: <NEW_LINE> <INDENT> message = "API key delete failed" <NEW_LINE> super().__init__(message, identity)
Key delete failed
625990715fdd1c0f98e5f85a
class Offer: <NEW_LINE> <INDENT> address_owner = "" <NEW_LINE> offer_id = 0 <NEW_LINE> item_id = 0 <NEW_LINE> price = 0
A container object for storing the details of an offer.
62599071d486a94d0ba2d891
class BinarySearchTreeNode: <NEW_LINE> <INDENT> def __init__(self, data): <NEW_LINE> <INDENT> self._data = data <NEW_LINE> self._left = None <NEW_LINE> self._right = None <NEW_LINE> <DEDENT> def add_child(self, data): <NEW_LINE> <INDENT> if data == self._data: <NEW_LINE> <INDENT> return <NEW_LINE> <DEDENT> if data < se...
Binary Search Tree (BST) It can be used for sorting arrays and remove duplicates https://www.youtube.com/watch?v=lFq5mYUWEBk&list=PLeo1K3hjS3uu_n_a__MI_KktGTLYopZ12&index=10 https://www.youtube.com/watch?v=JnrbMQyGLiU&list=PLeo1K3hjS3uu_n_a__MI_KktGTLYopZ12&index=11
6259907160cbc95b063659d7
class Segment(object): <NEW_LINE> <INDENT> def __repr__(self): <NEW_LINE> <INDENT> return '[profLength: %s,profHeight: %s,profPush: %s,profCode: %s,profSpeed: %s,profNoiseID: %s]' % (self.profLength,self.profHeight,self.profPush,self.profCode,self.profSpeed,self.profNoiseID) <NEW_LINE> <DEDENT> def __init__(self,profLe...
classdocs
625990714f6381625f19a112
class Registers(Enum): <NEW_LINE> <INDENT> zero = 0 <NEW_LINE> at = 1 <NEW_LINE> v0 = 2 <NEW_LINE> v1 = 3 <NEW_LINE> a0 = 4 <NEW_LINE> a1 = 5 <NEW_LINE> a2 = 6 <NEW_LINE> a3 = 7 <NEW_LINE> t0 = 8 <NEW_LINE> t1 = 9 <NEW_LINE> t2 = 10 <NEW_LINE> t3 = 11 <NEW_LINE> t4 = 12 <NEW_LINE> t5 = 13 <NEW_LINE> t6 = 14 <NEW_LINE> ...
An enum representing the different register names/numbers in MIPS
6259907123849d37ff852989
class HostsOrderByCommand(SubCommand): <NEW_LINE> <INDENT> name = "hosts:order-by" <NEW_LINE> def add_arguments(self, parser: ArgumentParser) -> None: <NEW_LINE> <INDENT> parser.add_argument( "properties", nargs="*", help="items will be sorted in order" ) <NEW_LINE> parser.add_argument( "--reverse", action="store_true"...
[Hosts -> Hosts] sort the hosts by the given properties
625990714e4d562566373cd9
class Omegabase: <NEW_LINE> <INDENT> def __init__(self, conn_string, max_records=20): <NEW_LINE> <INDENT> self.engine = create_engine(conn_string, convert_unicode=True) <NEW_LINE> self.connection_string = conn_string <NEW_LINE> self.max_records = max_records <NEW_LINE> <DEDENT> def start_call(self, url, session_id): <N...
Wraps the database connection. The class methods wrap transactions.
625990715fc7496912d48ed2
class UnhandledError(Exception): <NEW_LINE> <INDENT> pass
Raise for unhandled errors
62599071f9cc0f698b1c5f34
class Command(BaseCommand): <NEW_LINE> <INDENT> def parse_date_from_path(self, path): <NEW_LINE> <INDENT> path_parts = path.split('/') <NEW_LINE> date = path_parts[-1] <NEW_LINE> m = re.match(r'^(\d\d\d\d)-(\d\d)-(\d\d)', date) <NEW_LINE> d = datetime.date( int(m.group(1)), int(m.group(2)), int(m.group(3)), ) <NEW_LINE...
Move meeting notes from Pages to Minutes app
625990714a966d76dd5f07bd
class Ogr2OgrExecOutput(ExecOutput): <NEW_LINE> <INDENT> @Config(ptype=str, default=None, required=True) <NEW_LINE> def dest_data_source(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @Config(ptype=str, default=None, required=False) <NEW_LINE> def dest_format(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> @Co...
Executes an Ogr2Ogr command. Input is a file name to be processed. Output by calling Ogr2Ogr command. consumes=FORMAT.string
6259907155399d3f05627deb
class LevelShutdown(_ListenerManager): <NEW_LINE> <INDENT> manager = level_shutdown_listener_manager
Register/unregister a LevelShutdown listener.
62599071aad79263cf430089
class HttpBinInitValidator(BaseValidator, ValidatorRedisSpider): <NEW_LINE> <INDENT> name = 'init' <NEW_LINE> urls = [ 'http://httpbin.org/ip', 'https://httpbin.org/ip', ] <NEW_LINE> use_set = False <NEW_LINE> task_queue = INIT_HTTP_QUEUE <NEW_LINE> https_tasks = ['https', 'weibo', 'zhihu'] <NEW_LINE> http_tasks = ['ht...
This validator does initial work for ip resources
625990711f037a2d8b9e54d4
class Cart(object): <NEW_LINE> <INDENT> def __init__(self, session_storage=None): <NEW_LINE> <INDENT> self.storage = OrderedDict({}) <NEW_LINE> self.session_storage = session_storage <NEW_LINE> pids = self.session_storage.keys() <NEW_LINE> products = Product.objects.filter(pk__in=pids) <NEW_LINE> self.queryset = produc...
_cart_instance = None def __new__(cls, *args, **kwargs): if not cls._cart_instance: cls._cart_instance = super(Cart, cls).__new__( cls, *args, **kwargs) return cls._cart_instance
625990713317a56b869bf1ae
class Service(_messages.Message): <NEW_LINE> <INDENT> displayName = _messages.StringField(1) <NEW_LINE> name = _messages.StringField(2) <NEW_LINE> serviceId = _messages.StringField(3)
Encapsulates a single service in Google Cloud Platform. Fields: displayName: A human readable display name for this service. name: The resource name for the service. Example: "services/DA34-426B-A397" serviceId: The identifier for the service. Example: "DA34-426B-A397"
6259907126068e7796d4e20f
class MonitoringVMForm(forms.Form): <NEW_LINE> <INDENT> vm_id = forms.CharField(widget=forms.HiddenInput()) <NEW_LINE> time = forms.CharField(widget=forms.HiddenInput()) <NEW_LINE> def __init__(self, *args, **kwargs): <NEW_LINE> <INDENT> super(MonitoringVMForm, self).__init__(*args, **kwargs) <NEW_LINE> self.fields['st...
Form for fetching the monitoring data for a selected virtual machine.
62599071b7558d5895464b9d
class HashDirectory(object): <NEW_LINE> <INDENT> def __init__(self, directory, exclude=None): <NEW_LINE> <INDENT> self.directory = directory <NEW_LINE> self.hashes = {} <NEW_LINE> self.exclude = [] if exclude is None else exclude <NEW_LINE> <DEDENT> def hash_files(self): <NEW_LINE> <INDENT> files_to_hash = [] <NEW_LINE...
Object to manage hashing files in a directory. This object is responsible for walking the directory tree and adding each file to a list. Once the directory walk has compelted, each file path is passed to hash_task(). After each file has been hashed, this object will then create a Python dictionary of files with their ...
625990715166f23b2e244ca7
@dataclass(frozen=True) <NEW_LINE> class Action: <NEW_LINE> <INDENT> cyclist: "Cyclist"
an action in Flamme Rouge
6259907199cbb53fe68327bd
class DescribeClusterNodesRequest(AbstractModel): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.InstanceId = None <NEW_LINE> self.NodeFlag = None <NEW_LINE> self.Offset = None <NEW_LINE> self.Limit = None <NEW_LINE> self.HardwareResourceType = None <NEW_LINE> self.SearchFields = None <NEW_LINE> <DEDE...
DescribeClusterNodes请求参数结构体
62599071283ffb24f3cf517c
class TestSquareMatrixMethods(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.squarematrix1 = SquareMatrix(2) <NEW_LINE> self.squarematrix2 = SquareMatrix(2, [1, 2, 3, 4]) <NEW_LINE> self.squarematrix3 = SquareMatrix(2, ['a', 2, 3, 'b']) <NEW_LINE> self.squarematrix4 = SquareMatrix(3) ...
Unittests for square matrix class methods
62599071435de62698e9d6da
class EncryptedDisk(RawDisk): <NEW_LINE> <INDENT> POSSIBLE_STATES = [] <NEW_LINE> def __init__( self, encryption_type=None, encryption_key=None, unencrypted_path=None, *args, **kwargs): <NEW_LINE> <INDENT> self.encryption_type = encryption_type <NEW_LINE> self.encryption_key = encryption_key <NEW_LINE> self.unencrypted...
Encrypted disk file evidence. Attributes: encryption_type: The type of encryption used, e.g. FileVault or Bitlocker. encryption_key: A string of the encryption key used for this disk. unencrypted_path: A string to the unencrypted local path
62599071ad47b63b2c5a9121
class GroovyLexer(RegexLexer): <NEW_LINE> <INDENT> name = 'Groovy' <NEW_LINE> aliases = ['groovy'] <NEW_LINE> filenames = ['*.groovy'] <NEW_LINE> mimetypes = ['text/x-groovy'] <NEW_LINE> flags = re.MULTILINE | re.DOTALL <NEW_LINE> tokens = { 'root': [ (r'^(\s*(?:[a-zA-Z_][a-zA-Z0-9_\.\[\]]*\s+)+?)' r'([a-zA-Z_][a-zA-Z0...
For `Groovy <http://groovy.codehaus.org/>`_ source code. *New in Pygments 1.5.*
6259907192d797404e3897c5
class WTChooseAnswerPage1(AllBasePage): <NEW_LINE> <INDENT> appPackage = 'com.langlib.ncee' <NEW_LINE> page_title_id = (By.ID, "{}:id/title_iframe_title_tv".format(appPackage)) <NEW_LINE> word_trans_list_num_id = (By.ID, "{}:id/fragment_word_trans_index_tv".format(appPackage)) <NEW_LINE> audio_icon_id = (By.ID, "{}:id/...
单词听译题目作答页
625990717047854f46340c8b
class StatsWrapper(gym.Wrapper): <NEW_LINE> <INDENT> def __init__(self, env, window=100): <NEW_LINE> <INDENT> super().__init__(env) <NEW_LINE> self.reward_hist = deque([0], maxlen=window + 1) <NEW_LINE> self.done_hist = deque([1], maxlen=window + 1) <NEW_LINE> self.total_steps = 0 <NEW_LINE> <DEDENT> def reset(self, **...
Compute running statistics (return, number of episodes, etc.) over a certain time window.
62599071cc0a2c111447c73b
class AKFloatingRoundedAppbarAvatarItem(AKFloatingRoundedAppbarItemBase): <NEW_LINE> <INDENT> source = StringProperty() <NEW_LINE> text = StringProperty() <NEW_LINE> text_color = ListProperty()
This class is used to create a button with an image to be placed inside the app bar
6259907144b2445a339b75c8
class ScaleAction(Model): <NEW_LINE> <INDENT> _validation = { 'direction': {'required': True}, 'type': {'required': True}, 'cooldown': {'required': True}, } <NEW_LINE> _attribute_map = { 'direction': {'key': 'direction', 'type': 'ScaleDirection'}, 'type': {'key': 'type', 'type': 'ScaleType'}, 'value': {'key': 'value', ...
The parameters for the scaling action. All required parameters must be populated in order to send to Azure. :param direction: Required. the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'None', 'Increase', 'Decrease' :type direction: str or ~azu...
62599071be8e80087fbc0964
class RequestForbidden(RestClientError): <NEW_LINE> <INDENT> pass
Error indicating a 403 was raised on the server
6259907160cbc95b063659d8
class MicrowaveRabiFloppingClock(QsimExperiment): <NEW_LINE> <INDENT> name = 'Microwave Rabi Flopping Clock' <NEW_LINE> exp_parameters = [] <NEW_LINE> exp_parameters.append(('RabiFlopping', 'scan')) <NEW_LINE> exp_parameters.append(('DopplerCooling', 'detuning')) <NEW_LINE> exp_parameters.append(('Transitions', 'main_c...
repeatedly prepare the |0> state, interrogate with resonant microwaves for a variable time t and measure the population in the bright state
62599071ac7a0e7691f73dbe
class idgenerator(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "node.idgenerator" <NEW_LINE> bl_label = "ID Color Node Generator" <NEW_LINE> bl_options = {'REGISTER', 'UNDO'} <NEW_LINE> def execute(self, context): <NEW_LINE> <INDENT> bpy.ops.view3d.assign_material() <NEW_LINE> bpy.context.object.active_material...
add a id colorramp node to node editor
6259907101c39578d7f1439f
class MLIODependenciesNotSatisfied(RuntimeError): <NEW_LINE> <INDENT> pass
Exception raised if a model cannot be loaded because dependencies are not satisfied
6259907132920d7e50bc791c
class PersonQuerySet(models.query.QuerySet): <NEW_LINE> <INDENT> def have_skills(self, skills): <NEW_LINE> <INDENT> for s in skills: <NEW_LINE> <INDENT> self = self.filter(qualification__skill=s) <NEW_LINE> <DEDENT> return self
Handles finding past, ongoing and upcoming events
62599071a8370b77170f1c9f
class GBM_By_Euler(GeometricBrownianMotion): <NEW_LINE> <INDENT> def __init__(self, f_s0, f_mu, f_sigma, f_time, f_steps, b_random_state=True): <NEW_LINE> <INDENT> super(GBM_By_Euler, self).__init__(f_s0=f_s0, f_mu=f_mu, f_sigma=f_sigma, f_time=f_time, f_steps=f_steps) <NEW_LINE> self.sigma_sqrt_t_eps = WienerProcess(f...
A representation of the Geometric Brownian Motion (GBM) simulated using Euler Method. Besides de variance, this process might present a drift
62599071aad79263cf43008b
class Sort: <NEW_LINE> <INDENT> def __init__(self, data=None, size=15): <NEW_LINE> <INDENT> if data is None: <NEW_LINE> <INDENT> self._data = np.random.randint(0, 100, size) <NEW_LINE> self._size = size <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> self._data = np.array(data) <NEW_LINE> self._size = len(data) <NEW_LINE...
Contains an array of numbers and methods to retrieve information on array
625990711b99ca40022901a0
class myClass(): <NEW_LINE> <INDENT> def __init__(self,name,age): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.age = age <NEW_LINE> global COUNT <NEW_LINE> COUNT +=1 <NEW_LINE> <DEDENT> def getName(self): <NEW_LINE> <INDENT> return self.name <NEW_LINE> <DEDENT> def getAge(self): <NEW_LINE> <INDENT> return self....
myClass allows you to create student objects that have both an age and a name. COUNT variable is incremented to mantain a running total of students.
625990711f037a2d8b9e54d5
class AvailabilitySymlinks(object): <NEW_LINE> <INDENT> def __init__(self, dir_a, dir_e, supports_activation, ignore_ext=[]): <NEW_LINE> <INDENT> self.dir_a, self.dir_e, self.ignore_ext = dir_a, dir_e, ignore_ext <NEW_LINE> self.supports_activation = supports_activation <NEW_LINE> <DEDENT> def list_available(self): <NE...
Manage directories of following style:: --sites.available |-a.site --b.site --sites.enabled --a.site -> ../sites.available/a.site
6259907191f36d47f2231af9
class JobTrialSpace1D(JobTrialSpace2D): <NEW_LINE> <INDENT> def __init__(self, shape, rootDir, **kwargs): <NEW_LINE> <INDENT> if shape is not None: <NEW_LINE> <INDENT> raise TypeError('shape must be None.') <NEW_LINE> <DEDENT> super(JobTrialSpace1D, self).__init__(None, rootDir, **kwargs) <NEW_LINE> <DEDENT> def _deter...
A 1D parameter sweep space with a number of trials per job. .. note:: This parameter space behaves like the :class:`~JobTrialSpace2D`, but he number of rows will be forced to be strictly 1. Thus when indexing, it is necessary to use notation ``space[0][idx]``. .. note:: Unlike :class:`~JobTrialSpace2D...
6259907167a9b606de54770e
class NewTweetDeleteRequest(UpdateTweet): <NEW_LINE> <INDENT> permission_classes = (IsAuthenticated, IsAdminUser) <NEW_LINE> def delete(self, request, *args, tweet_id, **kwargs): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> tweet_mod_request = TweetModRequest.new_delete_request( admin_user=request.user, tweet_id=tweet_...
Adds a Tweet `Delete` request
625990714c3428357761bb8a
class SrvVnetDir(SrvDir): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> SrvDir.__init__(self) <NEW_LINE> <DEDENT> def vnet(self, x): <NEW_LINE> <INDENT> val = None <NEW_LINE> vnetinfo = self.xvnet.vnet_get(x) <NEW_LINE> if not vnetinfo: <NEW_LINE> <INDENT> raise BNError('No such vnet ' + str(x)) <NEW_LINE...
Vnet directory.
6259907199cbb53fe68327bf
class Element(object): <NEW_LINE> <INDENT> source = None <NEW_LINE> def __init__(self, comments=None): <NEW_LINE> <INDENT> self.comments = comments if comments is not None else [] <NEW_LINE> <DEDENT> def _to_string(self, string=""): <NEW_LINE> <INDENT> if self.source: <NEW_LINE> <INDENT> string = self.source <NEW_LINE>...
A parsed element.
6259907138b623060ffaa4bf
@provides(IToggleField) <NEW_LINE> class ToggleField(MToggleField, Field): <NEW_LINE> <INDENT> def _get_control_value(self): <NEW_LINE> <INDENT> return self.control.isChecked() <NEW_LINE> <DEDENT> def _get_control_text(self): <NEW_LINE> <INDENT> return self.control.text() <NEW_LINE> <DEDENT> def _set_control_value(self...
The Qt-specific implementation of the toggle field class
62599071ad47b63b2c5a9123
class Entity(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'text': {'required': True}, 'category': {'required': True}, 'offset': {'required': True}, 'length': {'required': True}, 'confidence_score': {'required': True}, } <NEW_LINE> _attribute_map = { 'text': {'key': 'text', 'type': 'str'}, 'category'...
Entity. All required parameters must be populated in order to send to Azure. :ivar text: Required. Entity text as appears in the request. :vartype text: str :ivar category: Required. Entity type. :vartype category: str :ivar subcategory: (Optional) Entity sub type. :vartype subcategory: str :ivar offset: Required. St...
62599071ec188e330fdfa179
class BaseInlineFormSetMixin(BaseFormSetMixin): <NEW_LINE> <INDENT> model = None <NEW_LINE> inline_model = None <NEW_LINE> fk_name = None <NEW_LINE> formset_class = BaseInlineFormSet <NEW_LINE> exclude = None <NEW_LINE> fields = None <NEW_LINE> formfield_callback = None <NEW_LINE> can_delete = True <NEW_LINE> save_as_n...
Base class for constructing an inline formSet within a view
625990718e7ae83300eea966
class I3BarOutput(object): <NEW_LINE> <INDENT> def __init__(self, theme): <NEW_LINE> <INDENT> self._theme = theme <NEW_LINE> self._widgets = [] <NEW_LINE> <DEDENT> def start(self): <NEW_LINE> <INDENT> sys.stdout.write(json.dumps({"version": 1, "click_events": True}) + "[\n") <NEW_LINE> <DEDENT> def stop(self): <NEW_LIN...
Manage output according to the i3bar protocol
62599071e5267d203ee6d028
class SetPreset(MethodView): <NEW_LINE> <INDENT> def get(self, cam_name): <NEW_LINE> <INDENT> ctrl = control_for_camera(cam_name) <NEW_LINE> preset_num = int(request.args['preset']) <NEW_LINE> logger.info( 'Request to set camera %s preset %d', cam_name, preset_num ) <NEW_LINE> ctrl.set_preset_to_current(preset_num) <NE...
Render the GET /api/control/<string:cam_name>/set_preset API response. Query Parameters: preset - int
625990714428ac0f6e659e0a
class DeployMapValueError(DeployMapError, ValueError): <NEW_LINE> <INDENT> pass
A value is not the required type.
62599071aad79263cf43008c
class BpeResults(Frozen, metaclass=SaveAndLoad): <NEW_LINE> <INDENT> save: Callable[[BpeResults, Optional[Path], DefaultNamedArg(bool, 'use_hdf5')], None] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> self.param_names = None <NEW_LINE> self.begin_params = None <NEW_LINE> self.begin_innovs = None <NEW_LINE> self.b...
Batch Parameter Estimator Results. Examples -------- >>> from dstauffman.estimation import BpeResults >>> bpe_results = BpeResults()
625990718e7ae83300eea967
class TestWordBreak(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> self.test_object = [{ 'test_s': 'ha', 'test_dict': ['h', 'a'], 'test_output': True, }, { 'test_s': 'ha', 'test_dict': ['h', 'b'], 'test_output': False, }, { 'test_s': 'ha', 'test_dict': ['a', 'h'], 'test_output': True, }, { 'test_s'...
Regtest
6259907144b2445a339b75c9
class TestGetFileMTime(TestCaseWithWorkingTree): <NEW_LINE> <INDENT> def make_basic_tree(self): <NEW_LINE> <INDENT> tree = self.make_branch_and_tree('tree') <NEW_LINE> self.build_tree(['tree/one']) <NEW_LINE> tree.add(['one'], ['one-id']) <NEW_LINE> return tree <NEW_LINE> <DEDENT> def test_get_file_mtime(self): <NEW_LI...
Test WorkingTree.get_file_mtime. These are more involved because we need to handle files which have been renamed, etc.
6259907160cbc95b063659d9
class GeojsonGeometry(ga.Geometry): <NEW_LINE> <INDENT> from_text = "ST_GeomFromGeoJSON" <NEW_LINE> def result_processor(self, dialect: str, coltype): <NEW_LINE> <INDENT> def process(value: Optional[bytes]): <NEW_LINE> <INDENT> if value is not None: <NEW_LINE> <INDENT> geom = ga.shape.to_shape( ga.elements.WKBElement( ...
Custom geoalchemy type which returns GeoJSON.
625990713d592f4c4edbc7b8
class Null(Singleton): <NEW_LINE> <INDENT> def __nonzero__(self): <NEW_LINE> <INDENT> return False <NEW_LINE> <DEDENT> def __eq__(self, obj): <NEW_LINE> <INDENT> return isinstance(obj, Null) <NEW_LINE> <DEDENT> def __ne__(self, obj): <NEW_LINE> <INDENT> return not self.__eq__(obj) <NEW_LINE> <DEDENT> def __cmp__(self, ...
Object representing null value. In Daphne primarily used for subclassing and the subclasses used for blank form field values (so that we can preserve the type information). Doctest: >>> a = Null() >>> b = Null() >>> a is b True
6259907121bff66bcd72453e
@interface.implementer(interfaces.IParticipation) <NEW_LINE> class Participation(object): <NEW_LINE> <INDENT> def __init__(self, principal): <NEW_LINE> <INDENT> self.principal = principal <NEW_LINE> self.interaction = None
A trivial implementation of :class:`zope.security.interfaces.IParticipation`.
62599071a17c0f6771d5d816
class myThread4 (threading.Thread): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> threading.Thread.__init__(self) <NEW_LINE> self.flag=0 <NEW_LINE> self.t = 0 <NEW_LINE> self.applist = [] <NEW_LINE> self.winlist = [] <NEW_LINE> <DEDENT> def set(self): <NEW_LINE> <INDENT> self.flag=1 <NEW_LINE> <DEDENT> de...
It is a threading class which is controlled by our main application file
62599071091ae3566870650e
class TestDownloadHelper(object): <NEW_LINE> <INDENT> def test_keyboard_interrupt_situation(self, monkeypatch): <NEW_LINE> <INDENT> KNOWN_URL = 'https://ftp.isc.org/isc/bind9/9.10.4-P1/srcid' <NEW_LINE> LOCAL_FILE = os.path.basename(KNOWN_URL) <NEW_LINE> def interrupter(): <NEW_LINE> <INDENT> raise KeyboardInterrupt <N...
DownloadHelper tests
625990714a966d76dd5f07c1
class TestHomeView(TestCase): <NEW_LINE> <INDENT> desired_url = "/" <NEW_LINE> desired_name = "portal:home" <NEW_LINE> def test_desired_location(self): <NEW_LINE> <INDENT> resp = self.client.get(self.desired_url) <NEW_LINE> self.assertEqual(resp.status_code, 200) <NEW_LINE> <DEDENT> def test_desired_name(self): <NEW_LI...
HomeView test suite
62599071f548e778e596ce65
class HostnameConversion(object): <NEW_LINE> <INDENT> def __init__(self, options): <NEW_LINE> <INDENT> self._options = options <NEW_LINE> self._ns_cache = {} <NEW_LINE> self._ip_fields = ['source', 'destination', 'ip', 'measurement_agent'] <NEW_LINE> <DEDENT> def convert(self, ddict): <NEW_LINE> <INDENT> if not self._o...
Convert ip addresses to fully qualified domain names and cache the results.
625990713317a56b869bf1b0
class OptionsTests(SynchronousTestCase): <NEW_LINE> <INDENT> def test_malformedSecondary(self): <NEW_LINE> <INDENT> options = Options() <NEW_LINE> self.assertRaises(UsageError, options.parseOptions, ["--secondary", ""]) <NEW_LINE> self.assertRaises(UsageError, options.parseOptions, ["--secondary", "1.2.3.4"]) <NEW_LINE...
Tests for L{Options}, defining how command line arguments for the DNS server are parsed.
625990714a966d76dd5f07c2
class BigQueryExecutorTables(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> try: <NEW_LINE> <INDENT> self.create_my_table() <NEW_LINE> <DEDENT> except exceptions.Conflict as exc: <NEW_LINE> <INDENT> logging.info(exc) <NEW_LINE> <DEDENT> self.bq_client = dw.BigQueryExecutor() <NEW_LINE> <DE...
Test
625990717c178a314d78e857
class BaseInterval(Constraint, ABC): <NEW_LINE> <INDENT> def __init__(self, ll: float, ul: float, left_open: bool, right_open: bool, mono: int = 0, order: int = 0): <NEW_LINE> <INDENT> super().__init__(order=order) <NEW_LINE> self.ll = ll <NEW_LINE> self.ul = ul <NEW_LINE> self.left_open = left_open <NEW_LINE> self.rig...
Base class for interval constraints :param float ll: Lower limit of interval :param float ul: Upper limit of interval :param bool left_open: If True the left side of the interval is open :param bool right_open: If True the right side of the interval is open :param int mono: Monotonicity constraint of the interval in {...
6259907126068e7796d4e213
class WebSocketServer(asyncio.AbstractServer): <NEW_LINE> <INDENT> def __init__(self, loop): <NEW_LINE> <INDENT> self.loop = loop <NEW_LINE> self.closing = False <NEW_LINE> self.websockets = set() <NEW_LINE> <DEDENT> def wrap(self, server): <NEW_LINE> <INDENT> self.server = server <NEW_LINE> <DEDENT> def register(self,...
Wrapper for :class:`~asyncio.Server` that triggers the closing handshake.
625990718a43f66fc4bf3a6c
class UDPServer: <NEW_LINE> <INDENT> def __init__(self, udp_port): <NEW_LINE> <INDENT> self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) <NEW_LINE> self.server_address = ('0.0.0.0', udp_port) <NEW_LINE> self.sock.bind(self.server_address) <NEW_LINE> <DEDENT> def get_messages(self): <NEW_LINE> <INDENT> return...
Main udt server listner
625990712c8b7c6e89bd50bf
class AppendOperator(Operator): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def execute(source, destination): <NEW_LINE> <INDENT> if not os.path.exists(os.path.dirname(destination)): <NEW_LINE> <INDENT> os.makedirs(os.path.dirname(destination)) <NEW_LINE> <DEDENT> with open(dest...
Append the source to destination file
62599071097d151d1a2c294a
class itkImageToImageFilterICVF22ICVF22(itkImageSourcePython.itkImageSourceICVF22): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") <NEW_LINE> __repr...
Proxy of C++ itkImageToImageFilterICVF22ICVF22 class
62599071b7558d5895464b9f
class PonyLexer(RegexLexer): <NEW_LINE> <INDENT> name = 'Pony' <NEW_LINE> aliases = ['pony'] <NEW_LINE> filenames = ['*.pony'] <NEW_LINE> _caps = r'(iso|trn|ref|val|box|tag)' <NEW_LINE> tokens = { 'root': [ (r'\n', Text), (r'[^\S\n]+', Text), (r'//.*\n', Comment.Single), (r'/\*', Comment.Multiline, 'nested_comment'), (...
For Pony source code. .. versionadded:: 2.4
6259907138b623060ffaa4c0
class micro_net_wiring(base_wiring): <NEW_LINE> <INDENT> def getStripIndexFrom2D(self, x, y): <NEW_LINE> <INDENT> if y % 2 == 0: <NEW_LINE> <INDENT> return y * self.WCA_WIDTH + x + 4 <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> return (y + 1) * self.WCA_WIDTH - x + 3 <NEW_LINE> <DEDENT> <DEDENT> def mapMinutesInternal...
This class implements the wiring layout as described in https://www.mikrocontroller.net/articles/WordClock_mit_WS2812#Anschluss_WS2812-Streifen_f.C3.BCr_WordClock12h
62599071435de62698e9d6de
class TestLocationSiteCRUD(TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_LocationSite_create(self): <NEW_LINE> <INDENT> model = LocationSiteF.create() <NEW_LINE> self.assertTrue(model.pk is not None) <NEW_LINE> self.assertTrue(model.location_type is not None) <NEW...
Tests location site.
62599071283ffb24f3cf5180
class XMLToJSONResultSet(ResultSet): <NEW_LINE> <INDENT> def getJSONFromString(self, str): <NEW_LINE> <INDENT> return json.loads(str) <NEW_LINE> <DEDENT> def get_JSON(self): <NEW_LINE> <INDENT> return self._output.get('JSON', None)
A ResultSet with methods tailored to the values returned by the XMLToJSON Choreo. The ResultSet object is used to retrieve the results of a Choreo execution.
62599071ad47b63b2c5a9125
class Uses(Lister): <NEW_LINE> <INDENT> log = logging.getLogger(__name__) <NEW_LINE> def get_parser(self, prog_name): <NEW_LINE> <INDENT> parser = super(Uses, self).get_parser(prog_name) <NEW_LINE> parser.add_argument( 'module', help='the module name', ) <NEW_LINE> return parser <NEW_LINE> <DEDENT> def take_action(self...
List the projects that use the Oslo module
625990718e7ae83300eea968
class SnippetVisitor: <NEW_LINE> <INDENT> def visit(self, snippet): <NEW_LINE> <INDENT> return snippet.accept(self) <NEW_LINE> <DEDENT> def visit_composite_snippet(self, composite_snippet): <NEW_LINE> <INDENT> composite_snippet.left.accept(self) <NEW_LINE> composite_snippet.right.accept(self) <NEW_LINE> <DEDENT> def vi...
Base class for visitors working on syntax tree.
62599071d268445f2663a7c9