language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def _set_serializer_by_mime_type(self, mime_type): """ :param mime_type: :return: used by content_type_set to set get a reference to the appropriate serializer """ # ignore if binary response if isinstance(self._app_iter, BinaryResponse): self.logger...
java
@Override public void postVisit(PlanNode node) { try { // --------- check special cases for which we handle post visit differently ---------- // skip data source node (they have no inputs) // also, do nothing for union nodes, we connect them later when gathering the inputs for a task // solution sets...
python
def __reset_parser(self): """Reset parser's internal variables Restore the parser to an initial state. Useful when creating a new parser or reusing an existing one. """ self.result = [] self.hash_comments = [] self.__cstate = None self.__curcommand = Non...
java
@Nonnull public static <T1, T2> LBiObjCharPredicateBuilder<T1, T2> biObjCharPredicate(Consumer<LBiObjCharPredicate<T1, T2>> consumer) { return new LBiObjCharPredicateBuilder(consumer); }
python
def native_obj(self): """Native storage object.""" if self.__native is None: self.__native = self._get_object() return self.__native
java
private static void encodeHeader(DnsQuery query, ByteBuf buf) { buf.writeShort(query.id()); int flags = 0; flags |= (query.opCode().byteValue() & 0xFF) << 14; if (query.isRecursionDesired()) { flags |= 1 << 8; } buf.writeShort(flags); buf.writeShort(qu...
python
def newest(cls, session): """Fetches the latest media added to MAL. :type session: :class:`myanimelist.session.Session` :param session: A valid MAL session :rtype: :class:`.Media` :return: the newest media on MAL :raises: :class:`.MalformedMediaPageError` """ media_type = cls.__name_...
python
def find_whole_word(w): """ Scan through string looking for a location where this word produces a match, and return a corresponding MatchObject instance. Return None if no position in the string matches the pattern; note that this is different from finding a zero-length match at some point in the st...
java
@Override public DeleteScheduledAuditResult deleteScheduledAudit(DeleteScheduledAuditRequest request) { request = beforeClientExecution(request); return executeDeleteScheduledAudit(request); }
python
def list_resources(self, device_id): """List all resources registered to a connected device. .. code-block:: python >>> for r in api.list_resources(device_id): print(r.name, r.observable, r.uri) None,True,/3/0/1 Update,False,/5/0/3 .....
python
def get_items(self, source=None, target=None, crit=None): """Copy records from source to target collection. :param source: Input collection :type source: QueryEngine :param target: Output collection :type target: QueryEngine :param crit: Filter criteria, e.g. "{ 'flag': ...
python
def _trade(self, security, price=0, amount=0, volume=0, entrust_bs="buy"): """ 调仓 :param security: :param price: :param amount: :param volume: :param entrust_bs: :return: """ stock = self._search_stock_info(security) balance = self....
python
def _days_from_last_update(catalog, date_field="modified"): """Calcula días desde la última actualización del catálogo. Args: catalog (dict): Un catálogo. date_field (str): Campo de metadatos a utilizar para considerar los días desde la última actualización del catálogo. Return...
python
def _format_summary(lines, element, spacer=" "): """Adds the element's summary tag to the lines if it exists.""" summary = spacer + element.summary if element.summary == "": summary = spacer + "No description given in XML documentation for this element." lines.append(summary)
python
def unregister(self, type_, handler): """注销事件处理函数监听""" # 尝试获取该事件类型对应的处理函数列表,若无则忽略该次注销请求 handlerList = self.__handlers[type_] # 如果该函数存在于列表中,则移除 if handler in handlerList: handlerList.remove(handler) # 如果函数列表为空,则从引擎中移除该事件类型 if not handle...
java
public static Calendar getThreadCalendar(Locale l, TimeZone tz) { if (tz == null) tz = ThreadLocalPageContext.getTimeZone(); Calendar c = localeCalendar.get(tz, l); c.setTimeZone(tz); return c; }
java
@NonNull public List<Address> getFromLocationName(final String locationName, final int maxResults, final boolean parseAddressComponents) throws GeocoderException { if (locationName == null) { throw new IllegalArgumentException("locationName == null"); } i...
python
def status_delete(self, id): """ Delete a status """ id = self.__unpack_id(id) url = '/api/v1/statuses/{0}'.format(str(id)) self.__api_request('DELETE', url)
java
public static ECKey fromPrivateAndPrecalculatedPublic(byte[] priv, byte[] pub) { checkNotNull(priv); checkNotNull(pub); return new ECKey(new BigInteger(1, priv), CURVE.getCurve().decodePoint(pub)); }
python
def _add_expansion_to_acronym_dict(acronym, expansion, level, dictionary): """Add an acronym to the dictionary. Takes care of avoiding duplicates and keeping the expansion marked with the best score. """ if len(acronym) >= len(expansion) or acronym in expansion: return for punctuation ...
java
@Override public Collection<Alternative> getAlternatives() { List<Alternative> allSuggestions = new ArrayList<>(); for (List<Alternative> suggestions : this.suggestions.values()) { allSuggestions.addAll(suggestions); } return allSuggestions; }
java
public DataMigrationServiceInner beginCreateOrUpdate(String groupName, String serviceName, DataMigrationServiceInner parameters) { return beginCreateOrUpdateWithServiceResponseAsync(groupName, serviceName, parameters).toBlocking().single().body(); }
python
def select(self, fields, **exprs): """ Create a new table containing a subset of attributes, with optionally newly-added fields computed from each rec in the original table. @param fields: list of strings, or single space-delimited string, listing attribute name to be included in the ...
python
def _plt_pydot(self, fout_img): """Plot using the pydot graphics engine.""" dag = self._get_pydot_graph() img_fmt = os.path.splitext(fout_img)[1][1:] dag.write(fout_img, format=img_fmt) self.log.write(" {GO_USR:>3} usr {GO_ALL:>3} GOs WROTE: {F}\n".format( F=fout_im...
python
def get_logger(): """ Instantiate a logger. """ root = logging.getLogger() root.setLevel(logging.WARNING) ch = logging.StreamHandler(sys.stderr) ch.setLevel(logging.DEBUG) formatter = logging.Formatter('%(message)s') ch.setFormatter(formatter) root.addHandler(ch) return root
java
public static boolean clientIdentEqual(final ClntIdent ident1, final ClntIdent ident2) { boolean areEqual = true; if (ident1 == null || ident2 == null || ident1.discriminator() == null || ident2.discriminator() == null) { areEqual = false; } else if (ident1.discriminator().value() !=...
python
def container(self, cls, **kwargs): """Container context manager.""" self.start_container(cls, **kwargs) yield self.end_container()
java
@Override public Long getRepositoryObjectCount() { final Repository repo = getJcrRepository(repository); try { return getRepositoryCount(repo); } catch (final RepositoryException e) { throw new RepositoryRuntimeException(e); } }
java
public void billingAccount_rsva_serviceName_PUT(String billingAccount, String serviceName, OvhRsva body) throws IOException { String qPath = "/telephony/{billingAccount}/rsva/{serviceName}"; StringBuilder sb = path(qPath, billingAccount, serviceName); exec(qPath, "PUT", sb.toString(), body); }
java
@Override public int compareTo(final MutableByte other) { return (this.value > other.value) ? 1 : ((this.value == other.value) ? 0 : -1); }
java
public void resolve(@Nullable View view, @NonNull HttpRequest request, @NonNull HttpResponse response) { if (view == null) return; Object output = view.output(); if (output == null) return; if (view.rest()) { resolveRest(output, request, response); } else { ...
python
def iter_tar(arch_f, gz=False, stream=False): """Iter over tar archive, yielding (path, object-like) tuples. Args: arch_f: File object of the archive to iterate. gz: If True, open a gzip'ed archive. stream: If True, open the archive in stream mode which allows for faster processing and less tempo...
java
public void shiftValuesLeft(final int numberOfBinaryOrdersOfMagnitude) { if (numberOfBinaryOrdersOfMagnitude < 0) { throw new IllegalArgumentException("Cannot shift by a negative number of magnitudes"); } if (numberOfBinaryOrdersOfMagnitude == 0) { return; } ...
java
private void addWarpExtensionsDeployment(WebArchive archive) { final Collection<WarpDeploymentEnrichmentExtension> lifecycleExtensions = serviceLoader.get().all( WarpDeploymentEnrichmentExtension.class); for (WarpDeploymentEnrichmentExtension extension : lifecycleExtensions) { J...
java
public static Range valueOf(final String value) { final Optional<Integer[]> vals = parse(value); if (vals.isPresent()) { return new Range(vals.get()[0], vals.get()[1]); } return null; }
python
def _compile(self, module=None): """ Compile functions for argparsing. """ # get the main module mod = module or sys.modules['__main__'] self.mod = mod # setup the script version if hasattr(mod, '__version__'): version = "%(prog)s " + mod.__ver...
java
public String toHtml(Locale locale) { CmsMessages mg = Messages.get().getBundle(locale); if (m_brokenLinks.size() > 0) { StringBuffer result = new StringBuffer(1024); Iterator<Entry<String, String>> brokenLinks = m_brokenLinks.entrySet().iterator(); result.append(mg....
python
def _raise_on_invalid_client(self, request): """Raise on failed client authentication.""" if self.request_validator.client_authentication_required(request): if not self.request_validator.authenticate_client(request): log.debug('Client authentication failed, %r.', request) ...
java
public void setItem(int index) { if (index < 0 || index >= items.size()) { return; } stop(); currentItemIndex = index; try { PlayItemEntry entry = items.get(currentItemIndex); if (entry != null) { IPlayItem item = entry...
python
def ticket_form_show(self, id, **kwargs): "https://developer.zendesk.com/rest_api/docs/core/ticket_forms#show-ticket-form" api_path = "/api/v2/ticket_forms/{id}.json" api_path = api_path.format(id=id) return self.call(api_path, **kwargs)
java
public static URLEntity createUrlEntity(int start, int end, String url, String expandedURL, String displayURL) { return new URLEntityJSONImpl(start, end, url, expandedURL, displayURL); }
python
def _get_connection(self, cluster): """Return a connection to a Cluster. Return a MongoClient or a MongoReplicaSetClient for the given Cluster. This is done in a lazy manner (if there is already a Client connected to the Cluster, it is returned and no other Client is created). ...
java
public static double xbarVariance(double variance, int sampleN, int populationN) { if(populationN<=0 || sampleN<=0 || sampleN>populationN) { throw new IllegalArgumentException("All the parameters must be positive and sampleN smaller than populationN."); } double xbarVariance...
java
public void setMatchedText(String v) { if (BioVerb_Type.featOkTst && ((BioVerb_Type)jcasType).casFeat_matchedText == null) jcasType.jcas.throwFeatMissing("matchedText", "ch.epfl.bbp.uima.types.BioVerb"); jcasType.ll_cas.ll_setStringValue(addr, ((BioVerb_Type)jcasType).casFeatCode_matchedText, v);}
java
public static DiscountCurveInterpolation createDiscountCurveFromZeroRates( String name, LocalDate referenceDate, double[] times, double[] givenZeroRates, boolean[] isParameter, InterpolationMethod interpolationMethod, ExtrapolationMethod extrapolationMethod, InterpolationEntity interpolationEntity) { double...
java
@Override public Evidence convert(BELEvidence be) { if (be == null) { return null; } return CommonModelFactory.getInstance().createEvidence( be.getEvidenceLine()); }
java
public java.util.List<DBSecurityGroupMembership> getDBSecurityGroupMemberships() { if (dBSecurityGroupMemberships == null) { dBSecurityGroupMemberships = new com.amazonaws.internal.SdkInternalList<DBSecurityGroupMembership>(); } return dBSecurityGroupMemberships; }
python
def declared_date(self, value): """ The date on which the corporate action was declared :param value: :return: """ if value: self._declared_date = parse(value).date() if isinstance(value, type_check) else value
python
def fetch(self, request, callback=None, raise_error=True, **kwargs): """Executes a request by AsyncHTTPClient, asynchronously returning an `tornado.HTTPResponse`. The ``raise_error=False`` argument currently suppresses *all* errors, encapsulating them in `HTTPResponse` objects ...
java
public Future<List<PlayerStats>> getStatsSummary(long summoner, Season season) { return new ApiFuture<>(() -> handler.getStatsSummary(summoner, season)); }
python
def distinct(self): """ Only return distinct row. Return a new query set with distinct mark """ new_query_set = self.clone() new_query_set.query.distinct = True return new_query_set
java
void removeProducer(JmsMsgProducerImpl producer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "removeProducer", producer); producers.remove(producer); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(t...
java
public static synchronized LocalConfig getConfig(String name) { SeLionLogger.getLogger().entering(name); checkArgument(StringUtils.isNotBlank(name), "The test name for which configuration is being retrieved cannot be null (or) empty."); // if no local config added? I.e reading f...
java
public void addToToolbar( JComponent comp ) { toolbar.add(comp,1+algBoxes.length); toolbar.revalidate(); addedComponents.add(comp); }
java
@Override public GetPatchBaselineResult getPatchBaseline(GetPatchBaselineRequest request) { request = beforeClientExecution(request); return executeGetPatchBaseline(request); }
java
protected static List getFileListFromServer(boolean includeFolders) { List result = new ArrayList(); // get the RFS package export path String exportpath = OpenCms.getSystemInfo().getPackagesRfsPath(); File folder = new File(exportpath); // get a list of all files of the packa...
python
def get_order_in_album(self, reversed_ordering=True): ''' Returns image order number. It is calculated as (number+1) of images attached to the same content_object whose order is greater (if 'reverse_ordering' is True) or lesser (if 'reverse_ordering' is False) than image's order. ...
python
def sentiment(text): """ Returns a float for sentiment strength based on the input text. Positive values are positive valence, negative value are negative valence. """ sentiment.valence_dict = load_valence_dict() if sentiment.valence_dict is None else sentiment_valence_dict wordsAndEmotico...
python
def _dump_additional_attributes(additional_attributes): """ try to parse additional attributes, but ends up to hexdump if the scheme is unknown """ attributes_raw = io.BytesIO(additional_attributes) attributes_hex = binascii.hexlify(additional_attributes) if not len(additional_attributes): ret...
python
def _validate_prepostcmd_hook(cls, func: Callable, data_type: Type) -> None: """Check parameter and return types for pre and post command hooks.""" signature = inspect.signature(func) # validate that the callable has the right number of parameters cls._validate_callable_param_count(func,...
java
public JClass []getParameterTypes() { Class []types = _method.getParameterTypes(); JClass []jTypes = new JClass[types.length]; for (int i = 0; i < types.length; i++) { jTypes[i] = _loader.forName(types[i].getName()); } return jTypes; }
python
def SortBy(*qs): """Convert a list of Q objects into list of sort instructions""" sort = [] for q in qs: if q._path.endswith('.desc'): sort.append((q._path[:-5], DESCENDING)) else: sort.append((q._path, ASCENDING)) return sort
java
public boolean isHomeKeyPresent() { final GVRApplication application = mApplication.get(); if (null != application) { final String model = getHmtModel(); if (null != model && model.contains("R323")) { return true; } } return false; ...
java
@SuppressWarnings({ "unchecked", "rawtypes" }) public static <D> SimpleExpression<D> constantAs(D source, Path<D> alias) { if (source == null) { return as((Expression) nullExpression(), alias); } else { return as(ConstantImpl.create(source), alias); } }
java
@Override public SessionHandle openSessionWithImpersonation(String username, String password, Map<String, String> configuration, String delegationToken) throws HiveSQLException { SessionHandle sessionHandle = sessionManager.openSession(SERVER_VERSION, username, password, null, configuration, true, d...
python
def delete_virtual_mfa_device(serial, region=None, key=None, keyid=None, profile=None): ''' Deletes the specified virtual MFA device. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_virtual_mfa_device serial_num ''' conn = __utils__['boto3.get_connection_func']('iam')(...
python
def GetHiResImage(ID): ''' Queries the Palomar Observatory Sky Survey II catalog to obtain a higher resolution optical image of the star with EPIC number :py:obj:`ID`. ''' # Get the TPF info client = kplr.API() star = client.k2_star(ID) k2ra = star.k2_ra k2dec = star.k2_dec ...
python
def _create_edge_by_target(self): """creates a edge_by_target dict with the same edge objects as the edge_by_source. Also adds an '@id' field to each edge.""" ebt = {} for edge_dict in self._edge_by_source.values(): for edge_id, edge in edge_dict.items(): targ...
java
protected boolean relevantSubspace(long[] subspace, DoubleDBIDList neigh, KernelDensityEstimator kernel) { final double crit = K_S_CRITICAL001 / FastMath.sqrt(neigh.size() - 2); double[] data = new double[neigh.size()]; Relation<? extends NumberVector> relation = kernel.relation; for(int dim = BitsUtil...
python
def choose_tag(self: object, tokens: List[str], index: int, history: List[str]): """ Looks up token in ``lemmas`` dict and returns the corresponding value as lemma. :rtype: str :type tokens: list :param tokens: List of tokens to be lemmatized :type index: int ...
java
public static BundleAdjustment<SceneStructureMetric> bundleDenseMetric(boolean robust, @Nullable ConfigBundleAdjustment config ) { if( config == null ) config = new ConfigBundleAdjustment(); UnconstrainedLeastSquaresSchur<DMatrixRMaj> minimizer; if( config.configOptimizer instanceof Conf...
java
public static ns_ssl_certkey[] gen_csr(nitro_service client, ns_ssl_certkey[] resources) throws Exception { if(resources == null) throw new Exception("Null resource array"); if(resources.length == 1) return ((ns_ssl_certkey[]) resources[0].perform_operation(client, "gen_csr")); return ((n...
java
@Test public void MPJwtNoMpJwtConfig_formLoginInWebXML_basicInApp() throws Exception { genericLoginConfigFormLoginVariationTest( MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_BASIC_IN_APP_ROOT_CONTEXT, ...
java
public void getItemInfo(int[] ids, Callback<List<Item>> callback) throws GuildWars2Exception, NullPointerException { isParamValid(new ParamChecker(ids)); gw2API.getItemInfo(processIds(ids), GuildWars2.lang.getValue()).enqueue(callback); }
java
public String decrypt(String toDecrypt) throws DuraCloudRuntimeException { try { byte[] input = decodeBytes(toDecrypt); cipher.init(Cipher.DECRYPT_MODE, key); byte[] plainText = cipher.doFinal(input); return new String(plainText, "UTF-8"); } catch (Excepti...
java
@Override public void destroy() { synchronized (channels) { isCurrentlyShutingDown = true; for (final SynchronizeFXTomcatChannel server : channels.values()) { server.shutdown(); } servers.clear(); channels.clear(); isCur...
python
def param_cred(ns_run, logw=None, simulate=False, probability=0.5, param_ind=0): """One-tailed credible interval on the value of a single parameter (component of theta). Parameters ---------- ns_run: dict Nested sampling run dict (see the data_processing module docstr...
python
def get_workers_with_qualification(self, qualification_id): """Get workers with the given qualification.""" done = False next_token = None while not done: if next_token is not None: response = self.mturk.list_workers_with_qualification_type( ...
java
public static int cusolverRfBatchSolve( cusolverRfHandle handle, Pointer P, Pointer Q, int nrhs, //only nrhs=1 is supported Pointer Temp, //of size 2*batchSize*(n*nrhs) int ldt, //only ldt=n is supported /** Input/Output (in the device memory) */ ...
java
private static DefaultDirectedGraph<DataPropertyExpression,DefaultEdge> getDataPropertyGraph(OntologyImpl.UnclassifiedOntologyTBox ontology) { DefaultDirectedGraph<DataPropertyExpression,DefaultEdge> graph = new DefaultDirectedGraph<>(DefaultEdge.class); for (DataPropertyExpression role : ontology.dataProperties(...
python
def bind(self, name, filterset): """ attach filter to filterset gives a name to use to extract arguments from querydict """ if self.name is not None: name = self.name self.field.bind(name, self)
java
public void addDecorations(CmsDecorationDefintion decorationDefinition) throws CmsException { m_decorations.putAll(decorationDefinition.createDecorationBundle(m_cms, m_configurationLocale).getAll()); }
java
public void marshall(HlsTimedMetadataScheduleActionSettings hlsTimedMetadataScheduleActionSettings, ProtocolMarshaller protocolMarshaller) { if (hlsTimedMetadataScheduleActionSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
java
public void marshall(FailedCreateAssociation failedCreateAssociation, ProtocolMarshaller protocolMarshaller) { if (failedCreateAssociation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(failedCrea...
python
def _on_client_connect(self, data): """Handle client connect.""" client = None if data.get('id') in self._clients: client = self._clients[data.get('id')] client.update_connected(True) else: client = Snapclient(self, data.get('client')) self...
java
@Override public CommerceSubscriptionEntry fetchByC_C_C(String CPInstanceUuid, long CProductId, long commerceOrderItemId, boolean retrieveFromCache) { Object[] finderArgs = new Object[] { CPInstanceUuid, CProductId, commerceOrderItemId }; Object result = null; if (retrieveFromCache) { result = find...
python
def get_all(self): """ Gets all component references registered in this reference map. :return: a list with component references. """ components = [] self._lock.acquire() try: for reference in self._references: components.appe...
python
def username_access_time(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") username = ET.SubElement(config, "username", xmlns="urn:brocade.com:mgmt:brocade-aaa") name_key = ET.SubElement(username, "name") name_key.text = kwargs.pop('name') ...
python
def _get_variable_names(arr): """Return the variable names of an array""" if VARIABLELABEL in arr.dims: return arr.coords[VARIABLELABEL].tolist() else: return arr.name
java
public final Pair<String, String> simpleDim() throws RecognitionException { Pair<String, String> dims = null; Token a=null; Token b=null; try { // druidG.g:292:2: ( (a= ID ( WS AS WS b= ID )? ) ) // druidG.g:292:4: (a= ID ( WS AS WS b= ID )? ) { // druidG.g:292:4: (a= ID ( WS AS WS b= ID )? ) ...
python
def _pos(self, idx): """Convert an index into a pair (alpha, beta) that can be used to access the corresponding _lists[alpha][beta] position. Most queries require the index be built. Details of the index are described in self._build_index. Indexing requires traversing the tree ...
java
protected void startServing(String startMessage, String stopMessage) { MetricsSystem.startSinks(ServerConfiguration.get(PropertyKey.METRICS_CONF_FILE)); startServingWebServer(); startJvmMonitorProcess(); LOG.info( "Alluxio master version {} started{}. bindAddress={}, connectAddress={}, webAddres...
python
def getjp2header(Id): ''' GET /api/v1/getJP2Header/ Get the XML header embedded in a JPEG2000 image. Includes the FITS header as well as a section of Helioviewer-specific metadata. Request Parameters: Parameter Required Type Example Description id Required number 7654321 Unique JP2 image ide...
python
def patch_cmdline_parser(): """ Patches the ``luigi.cmdline_parser.CmdlineParser`` to store the original command line arguments for later processing in the :py:class:`law.config.Config`. """ # store original functions _init = luigi.cmdline_parser.CmdlineParser.__init__ # patch init def ...
python
def call_later( self, delay: float, callback: Callable[..., None], *args: Any, **kwargs: Any ) -> object: """Runs the ``callback`` after ``delay`` seconds have passed. Returns an opaque handle that may be passed to `remove_timeout` to cancel. Note that unlike the `asyncio` method o...
python
def find_visible(hull, observer, background): '''Given an observer location, find the first and last visible points in the hull The observer at "observer" is looking at the hull whose most distant vertex from the observer is "background. Find the vertices that are the furthest di...
java
public boolean hasRole(String roleName){ if (roles != null) { for (String r : roles) { if (r.equals(roleName)) return true; } } return false; }
java
public final <C extends IRequestablePage> C newPage(final Class<C> pageClass) { PageFactory<C> content = getFactory(pageClass); if (content != null) { return content.createPage(new PageParameters()); } return new DefaultPageFactory().newPage(pageClass); }
java
@Override public List<GroupState> listGroups() { TrackerListGroupsCommand command = new TrackerListGroupsCommand(); return trackerConnectionManager.executeFdfsTrackerCmd(command); }
java
public ModuleDefinitionDataComponent addData() { //3 ModuleDefinitionDataComponent t = new ModuleDefinitionDataComponent(); if (this.data == null) this.data = new ArrayList<ModuleDefinitionDataComponent>(); this.data.add(t); return t; }