language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
public static <T> Comparator<T> inverse(final Comparator<T> baseComp) { return new Comparator<T>() { @Override public int compare(T t, T t1) { return baseComp.compare(t1, t); } }; }
python
def delete_mutating_webhook_configuration(self, name, **kwargs): """ delete a MutatingWebhookConfiguration This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_mutating_webhook_configurat...
java
public static snmpengineid get(nitro_service service, Long ownernode) throws Exception{ snmpengineid obj = new snmpengineid(); obj.set_ownernode(ownernode); snmpengineid response = (snmpengineid) obj.get_resource(service); return response; }
java
private InjectorMethod createInvoker(String invokeeName, String invokeeTypeName, boolean hasInvokee, boolean isNative, boolean isThrowing, String invokerMethodName, String invokerPackageName, int invokerParamCount, MethodLiteral<?, ?> method, String returnTypeString, boolean returning, boolean isLongA...
java
@Override public JLabel createLabel(String labelKey, ValueModel[] argumentValueHolders) { return this.getDecoratedComponentFactory().createLabel(labelKey, argumentValueHolders); }
java
public void clearUnused(ConfigImpl config) { SystemOut.printDate(config.getOutWriter(), "PagePool: " + size() + ">(" + maxSize + ")"); if (size() > maxSize) { String[] keys = keys(); LongKeyList list = new LongKeyList(); for (int i = 0; i < keys.length; i++) { PageSource ps = getPageSource(keys[i], ...
python
def _locals(self, d): """Create a new :class:`.Context` with a copy of this :class:`.Context`'s current state, updated with the given dictionary. The :attr:`.Context.kwargs` collection remains unaffected. """ if not d: return self c = self....
python
def p_numeric_literal(self, p): """numeric_literal : NUMBER""" p[0] = self.asttypes.Number(p[1]) p[0].setpos(p)
java
private void obtainNavigationSelectionColor() { int color; try { color = ThemeUtil.getColor(this, R.attr.navigationSelectionColor); } catch (NotFoundException e) { color = ContextCompat.getColor(this, R.color.preference_selection_color_light); } setNavig...
python
def readDataAndReshuffle(args, categoriesInOrderOfInterest=None): """ Read data file specified in args, optionally reshuffle categories, print out some statistics, and return various data structures. This routine is pretty specific and only used in some simple test scripts. categoriesInOrderOfInterest (list)...
java
private String getLocalizationMessages(CmsMessages messages) { JSONObject result = new JSONObject(); try { result.put("search", messages.key(Messages.GUI_CODEMIRROR_LANG_SEARCH_0)); result.put("hint", messages.key(Messages.GUI_CODEMIRROR_LANG_HINT_0)); result.put("re...
java
@Override public ListEntityRecognizersResult listEntityRecognizers(ListEntityRecognizersRequest request) { request = beforeClientExecution(request); return executeListEntityRecognizers(request); }
python
def select_field(col, field_or_fields, filters=None): """Select single or multiple fields. :params field_or_fields: str or list of str :returns headers: headers :return data: list of row **中文文档** - 在选择单列时, 返回的是 str, list. - 在选择多列时, 返回的是 str list, list of list. 返回单列或多列的数据。 """ ...
java
public T setStartOffset(long offset, TimeUnit units) { checkNotNull(units); this.startOffset = units.toMillis(offset); return getThis(); }
python
def onMessageReceived(self, method_frame, properties, body): """ React to received message - deserialize it, add it to users reaction function stored in ``self.react_fn`` and send back result. If `Exception` is thrown during process, it is sent back instead of message. ...
java
private String firstConstantOfEnum() { Object[] enumConstants = targetClass.getEnumConstants(); if (enumConstants.length != 0) { return enumConstants[0].toString(); } return ""; // if empty Enum }
python
def get_page_template(self, **kwargs): """Return the template name used for this request. Only called if *page_template* is not given as a kwarg of *self.as_view*. """ opts = self.object_list.model._meta return '{0}/{1}{2}{3}.html'.format( opts.app_label, ...
python
def gzscore(x): """Geometric standard (Z) score. Parameters ---------- x : array_like Array of raw values Returns ------- gzscore : array_like Array of geometric z-scores (same shape as x) Notes ----- Geometric Z-scores are better measures of dispersion than ar...
java
public void checkSimpleXMLString(String xml) throws IOException { Pattern pattern = Pattern.compile("(<error.*?/>)", Pattern.DOTALL|Pattern.MULTILINE); Matcher matcher = pattern.matcher(xml); int pos = 0; while (matcher.find(pos)) { String errorElement = matcher.group(); pos = matcher.end();...
python
def do_work_spec(self, args): '''dump the contents of an existing work spec''' work_spec_name = self._get_work_spec_name(args) spec = self.task_master.get_work_spec(work_spec_name) if args.json: self.stdout.write(json.dumps(spec, indent=4, sort_keys=True) + ...
java
private String getChoiceName(int valueIndex) { if (isChoiceHandler()) { CmsEntity choice = m_entity.getAttribute(CmsType.CHOICE_ATTRIBUTE_NAME).getComplexValues().get(valueIndex); if (choice != null) { for (String option : getAttributeType().getAttributeNames()) { ...
java
@Override public void onImage(ResourceReference reference, boolean freestanding, Map<String, String> parameters) { getImageRenderer().beginRenderLink(getXWikiPrinter(), freestanding, parameters); getImageRenderer().endRenderLink(getXWikiPrinter(), reference, freestanding, parameters); }
python
def number_of_modified_bytes(buf, fuzzed_buf): """Determine the number of differing bytes. :param buf: original buffer. :param fuzzed_buf: fuzzed buffer. :return: number of different bytes. :rtype: int """ count = 0 for idx, b in enumerate(buf): if b != fuzzed_buf[idx]: ...
java
public Set<T> getValueAsEnum() { Set<T> retVal = new HashSet<T>(); for (CodingDt next : getCoding()) { if (next == null) { continue; } T nextT = myBinder.fromCodeString(defaultString(next.getCode().getValue()), defaultString(next.getSystem().getValueAsString())); if (nextT != null) { retVal.add(...
python
def div(numerator, denominator): ''' Returns numerator / denominator, but instead of a ZeroDivisionError: 0 / 0 = 0. x / 0 = float('inf') This is not mathematically correct, but often practically OK. Args: numerator (float or int) denominator (float or int) Returns: ...
python
def copy(self, invert=False): """Return a copy of the current instance Parameters ---------- invert: bool The copy will be inverted w.r.t. the original """ if invert: inverted = not self.inverted else: inverted = self.inverted ...
java
public static List<Node> requiredNodes(Model mo, JSONObject o, String id) throws JSONConverterException { checkKeys(o, id); Object x = o.get(id); if (!(x instanceof JSONArray)) { throw new JSONConverterException("integers expected at key '" + id + "'"); } return nodes...
java
private int next(final byte[] buffer, final int offset, final int length) throws IOException { final int max = Math.min(length, this.input.remaining()); this.input.put(buffer, offset, max); this.input.flip(); while (true) { final CoderResult result = this.decoder.deco...
python
def get_open_trackers_from_local(): """Returns open trackers announce URLs list from local backup.""" with open(path.join(path.dirname(__file__), 'repo', OPEN_TRACKERS_FILENAME)) as f: open_trackers = map(str.strip, f.readlines()) return list(open_trackers)
python
def convert_to_stream(self, format_p, variant, buffer_size): """Converts the currently opened image into a stream of the specified image type/variant. It is sufficient to open the image in read-only mode. Only few types and variants are supported due to the inherent restrictions of the o...
python
def createRPYText(self): '''Creates the text for roll, pitch and yaw.''' self.rollText = self.axes.text(self.leftPos+(self.vertSize/10.0),-0.97+(2*self.vertSize)-(self.vertSize/10.0),'Roll: %.2f' % self.roll,color='w',size=self.fontSize) self.pitchText = self.axes.text(self.leftPos+(self.vertS...
java
public DescribeConnectionsResult withConnections(Connection... connections) { if (this.connections == null) { setConnections(new java.util.ArrayList<Connection>(connections.length)); } for (Connection ele : connections) { this.connections.add(ele); } retur...
python
def publish_page(page, languages): """ Publish a CMS page in all given languages. """ for language_code, lang_name in iter_languages(languages): url = page.get_absolute_url() if page.publisher_is_draft: page.publish(language_code) log.info('page "%s" published in...
java
public void uploadStream(String stageName, String destPrefix, InputStream inputStream, String destFileName, boolean compressData) throws SQLException { uploadStreamInternal(stageName, destPrefix, inputStr...
java
public CMAAsset fetchOne(String spaceId, String environmentId, String assetId) { assertNotNull(spaceId, "spaceId"); assertNotNull(environmentId, "environmentId"); assertNotNull(assetId, "assetId"); return service.fetchOne(spaceId, environmentId, assetId).blockingFirst(); }
java
public void setContextCenter(Pattern pattern) { // build up the classgraph printing the relations for all of the // classes that make up the "center" of this context this.pattern = pattern; matched = new ArrayList<ClassDoc>(); for (ClassDoc cd : root.classes()) { if (pattern.matcher(cd.toString()).matches()) ...
java
public ElementDefinitionDt addCondition(IdDt theValue) { if (theValue == null) { throw new NullPointerException("theValue must not be null"); } getCondition().add(theValue); return this; }
python
def _get_jar(self, command, alts=None, allow_missing=False): """Retrieve the jar for running the specified command. """ dirs = [] for bdir in [self._gatk_dir, self._picard_ref]: dirs.extend([bdir, os.path.join(bdir, os.pardir, "gatk")]) if alt...
java
@Override public Object getAttribute(String name) { if (name == null) { logger.logp(Level.SEVERE, CLASS_NAME, "getAttribute", servlet40NLS.getString("name.is.null")); throw new java.lang.NullPointerException(servlet40NLS.getString("name.is.null")); } return super.get...
java
File validateBlockFile(int namespaceId, Block b) throws IOException { return getValidateBlockFile(namespaceId, b, false); }
java
public static void main(String[] args) throws Exception { AlluxioFramework framework = new AlluxioFramework(); JCommander jc = new JCommander(framework); try { jc.parse(args); } catch (Exception e) { System.out.println(e.getMessage()); jc.usage(); System.exit(1); } framew...
python
def has_permissions(**perms): """A :func:`.check` that is added that checks if the member has all of the permissions necessary. The permissions passed in must be exactly like the properties shown under :class:`.discord.Permissions`. This check raises a special exception, :exc:`.MissingPermissions`...
java
@Deprecated @Override public HoconTreeTraversingParser createJsonParser(InputStream in) throws IOException, JsonParseException { return createParser(in); }
python
def _build_request_url(self, secure, api_method): """Build a URL for a API method request """ if secure: proto = ANDROID_MANGA.PROTOCOL_SECURE else: proto = ANDROID_MANGA.PROTOCOL_INSECURE req_url = ANDROID_MANGA.API_URL.format( protocol=proto,...
python
def add_months(datetime_like_object, n, return_date=False): """ Returns a time that n months after a time. Notice: for example, the date that one month after 2015-01-31 supposed to be 2015-02-31. But there's no 31th in Feb, so we fix that value to 2015-02-28. :param datetimestr: a datetime obj...
python
def setupEnvironment(self, cmd): """ Turn all build properties into environment variables """ shell.ShellCommand.setupEnvironment(self, cmd) env = {} for k, v in self.build.getProperties().properties.items(): env[str(k)] = str(v[0]) if cmd.args['env'] is None: ...
python
def InspectZipFile(self, parser_mediator, zip_file): """Parses an OXML file-like object. Args: parser_mediator (ParserMediator): mediates interactions between parsers and other components, such as storage and dfvfs. zip_file (zipfile.ZipFile): the zip file containing OXML content. It is ...
java
protected boolean doesEndingTimeAllowServiceAccess() { if (this.endingDateTime != null) { val et = DateTimeUtils.zonedDateTimeOf(this.endingDateTime); if (et != null) { val now = ZonedDateTime.now(ZoneOffset.UTC); if (now.isAfter(et)) { ...
java
public EntryBuffer append(Entry entry) { int offset = offset(entry.getIndex()); Entry oldEntry = buffer[offset]; buffer[offset] = entry.acquire(); if (oldEntry != null) { oldEntry.release(); } return this; }
python
def consume(self, limit=None): """Returns an iterator that waits for one message at a time.""" for total_message_count in count(): if limit and total_message_count >= limit: raise StopIteration if not self.channel.is_open: raise StopIteration ...
python
def moderate(self, comment, content_object, request): """ Determine whether a given comment on a given object should be allowed to show up immediately, or should be marked non-public and await approval. Returns ``True`` if the comment should be moderated (marked non-public), ``False`` o...
java
public static MutableBoolean fromExternal(final BooleanSupplier s, final Consumer<Boolean> c) { return new MutableBoolean() { @Override public boolean getAsBoolean() { return s.getAsBoolean(); } @Override public Boolean get() { ...
java
public SqlResultSetMapping<EntityMappings<T>> getOrCreateSqlResultSetMapping() { List<Node> nodeList = childNode.get("sql-result-set-mapping"); if (nodeList != null && nodeList.size() > 0) { return new SqlResultSetMappingImpl<EntityMappings<T>>(this, "sql-result-set-mapping", childNode, n...
python
def delete_tag(self, tag_name, **kwargs): """delete a tag by name Args: tag_name (string): name of tag to delete """ resp = self._delete(self._u(self._TAG_ENDPOINT_SUFFIX, tag_name), **kwargs) resp.raise_for_status() # successful d...
java
public SessionImpl getSession(SessionInfo info, boolean create) { ServletContext key = info.getContext(); Map<String, SessionImpl> sessions = this.groupings.get(key); if (null == sessions) { synchronized (this.groupings) { sessions = this.groupings.get(key); ...
java
@Help(help = "Get all the Security of a NetworkServiceDescriptor with specific id") public Security getSecurities(final String idNsd) throws SDKException { String url = idNsd + "/security"; return ((Security) requestGet(url, Security.class)); }
java
@Ready public void onReady(final AtmosphereResource r) { logger.info("Browser {} connected.", r.uuid()); logger.info("Injected Factory {} connected.", factory.getClass().getName()); }
python
def init_population(self, population_size, graph_max_layer, graph_min_layer): """ initialize populations for evolution tuner """ population = [] graph = Graph(max_layer_num=graph_max_layer, min_layer_num=graph_min_layer, inputs=[Layer(LayerType.input.value, ...
python
def cublasDsyr2k(handle, uplo, trans, n, k, alpha, A, lda, B, ldb, beta, C, ldc): """ Rank-2k operation on real symmetric matrix. """ status = _libcublas.cublasDsyr2k_v2(handle, _CUBLAS_FILL_MODE[uplo], _CUBLAS_OP[trans]...
java
@Override public boolean registerFileExtension(String mimeTypeName, String fileTypeExtension, String application) throws OSException { // TODO create mime-info in /usr/share/mime/packages // TODO add MIME type to .desktop file // not possible due to missing permissions? throw new Uns...
python
def select_autoescape(enabled_extensions=('html', 'htm', 'xml'), disabled_extensions=(), default_for_string=True, default=False): """Intelligently sets the initial value of autoescaping based on the filename of the template. This is the recommen...
java
public static String getPOSTagModelFeaturesRange( final TrainingParameters params) { String lemmaRangeFlag = null; if (params.getSettings().get("POSTagModelFeaturesRange") != null) { lemmaRangeFlag = params.getSettings().get("POSTagModelFeaturesRange"); } else { lemmaRangeFlag = Flags.DEFA...
java
@Override public Iterator<Map.Entry<K, V>> iterator() { return Collections.unmodifiableSet(state.entrySet()).iterator(); }
java
public static syslog_aaa[] get(nitro_service client) throws Exception { syslog_aaa resource = new syslog_aaa(); resource.validate("get"); return (syslog_aaa[]) resource.get_resources(client); }
java
public static Tailer create(final File file, final TailerListener listener, final long delayMillis, final boolean end) { return Tailer.create(file, listener, delayMillis, end, Tailer.DEFAULT_BUFSIZE); }
python
def _lazy_load_get_model(): """Lazy loading of get_model. get_model loads django.conf.settings, which may fail if the settings haven't been configured yet. """ if django is None: def _get_model(app, model): raise import_failure else: from django import apps as django...
java
public DeploymentGroupInfo withEc2TagFilters(EC2TagFilter... ec2TagFilters) { if (this.ec2TagFilters == null) { setEc2TagFilters(new com.amazonaws.internal.SdkInternalList<EC2TagFilter>(ec2TagFilters.length)); } for (EC2TagFilter ele : ec2TagFilters) { this.ec2TagFilters....
java
public boolean isLambdaArgument(String arg) { if (lambdaArgs == null) { return false; } for (int i = lambdaArgs.size() - 1; i >= 0; i--) { Map<String, Object> lmap = lambdaArgs.elementAt(i); if (lmap.containsKey(arg)) { return true; ...
python
def sample(self, n=1): """ Returns random samples from the current particle distribution according to particle weights. :param int n: The number of samples to draw. :return: The sampled model parameter vectors. :rtype: `~numpy.ndarray` of shape ``(n, updater.n_rvs)``. ...
java
public void printRFC2822(CharBuffer cb) { cb.append(DAY_NAMES[(int) (_dayOfEpoch % 7 + 11) % 7]); cb.append(", "); cb.append((_dayOfMonth + 1) / 10); cb.append((_dayOfMonth + 1) % 10); cb.append(" "); cb.append(MONTH_NAMES[(int) _month]); cb.append(" "); cb.append(_year); cb.append...
python
def _get_prefixes(self, metric_type): """Get prefixes where applicable Add metric prefix counters, timers respectively if :attr:`prepend_metric_type` flag is True. :param str metric_type: The metric type :rtype: list """ prefixes = [] if self._prepend_m...
java
public boolean isValidPosixFileChar(char c) { if ((((c >= 'A') && (c <= 'Z')) || ((c >= 'a') && (c <= 'z')) || ((c >= '0') && (c <= '9')) || (c == '.') || (c == '_') || (c == '-'))) { return true; } else { return false; } }
python
def graph(self, name, *args, **kwargs): """ Creates a :py:class:`Graph` instance. :param str name: The namespace for the graph metadata. :returns: a :py:class:`Graph` instance. """ return Graph(self, name, *args, **kwargs)
java
protected ResourceEntry findResourceInternal(final String name, final String path) { checkStateForResourceLoading(name); if (name == null || path == null) { return null; } ResourceEntry entry = resourceEntries.get(path); if (entry != null) { return entr...
python
def provision_machine(self): """Perform the initial provisioning of the target machine. :return: bool: The client.AddMachineParams :raises: :class:`paramiko.ssh_exception.AuthenticationException` if the upload fails """ params = client.AddMachineParams() if ...
java
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AfplibPackage.BNG__PGRP_NAME: return getPGrpName(); case AfplibPackage.BNG__TRIPLETS: return getTriplets(); } return super.eGet(featureID, resolve, coreType); }
python
def record(self, context, value, timestamp, attachments=None): """records the view data against context""" if context is None: tags = dict() else: tags = context.map tag_values = self.get_tag_values(tags=tags, columns=self....
python
def _set_traffic_eng(self, v, load=False): """ Setter method for traffic_eng, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/mpls_interface/interface_dynamic_bypass/mpls_interface_dynamic_bypass_sub_cmds/traffic_eng (container) If this variable is read-only (config: false) in the so...
python
def _initialize_manager(self, runtime): """Sets the runtime, configuration and json client""" if self._runtime is not None: raise errors.IllegalState('this manager has already been initialized.') self._runtime = runtime self._config = runtime.get_configuration() set_j...
java
public void setExternalSelectedPart(IAtomContainer externalSelectedPart) { this.externalSelectedPart = externalSelectedPart; Map<IChemObject, Color> colorHash = getParameter(ColorHash.class).getValue(); colorHash.clear(); if (externalSelectedPart != null) { for (int i = 0; i ...
python
def fmt_ac_sia(ac_sia): """Format a AcSystemIrreducibilityAnalysis.""" body = ( '{ALPHA} = {alpha}\n' 'direction: {ac_sia.direction}\n' 'transition: {ac_sia.transition}\n' 'before state: {ac_sia.before_state}\n' 'after state: {ac_sia.after_state}\n' 'cut:\n{ac_sia...
python
def get_objects(remove_dups=True, include_frames=False): """Return a list of all known objects excluding frame objects. If (outer) frame objects shall be included, pass `include_frames=True`. In order to prevent building reference cycles, the current frame object (of the caller of get_objects) is igno...
java
public CreateImageResponse createImageFromInstance(String imageName, String instanceId) { return createImage(new CreateImageRequest() .withImageName(imageName).withInstanceId(instanceId)); }
python
def create(cls, name, datacenter, subnet=None, gateway=None, background=False): """Create a new vlan.""" if not background and not cls.intty(): background = True datacenter_id_ = int(Datacenter.usable_id(datacenter)) vlan_params = { 'name': name, ...
java
public String get(final String key, final String columnName) throws HectorException { ColumnQuery<String, String, String> q = HFactory.createColumnQuery(keyspace, serializer, serializer, serializer); QueryResult<HColumn<String, String>> r = q.setKey(key). setName(columnName). setColumnFa...
python
def supernodes(par, post, colcount): """ Find supernodes. ARGUMENTS par parent array post array with post ordering colcount array with column counts RETURNS snode array with supernodes; snode[snptr[k]:snptr[k+1]] contains the indices of supernode k ...
java
private void resetConfiguration() throws CryptoException, InvalidArgumentException { setSecurityLevel(securityLevel); setHashAlgorithm(hashAlgorithm); try { cf = CertificateFactory.getInstance(CERTIFICATE_FORMAT); } catch (CertificateException e) { CryptoExcept...
java
public ApiResponse<TaskStatusesHistoryEnvelope> getStatusesHistoryWithHttpInfo(String tid, String did) throws ApiException { com.squareup.okhttp.Call call = getStatusesHistoryValidateBeforeCall(tid, did, null, null); Type localVarReturnType = new TypeToken<TaskStatusesHistoryEnvelope>(){}.getType(); ...
java
public static VariableNumPattern fromTemplateVariables(VariableNumMap templateVariables, VariableNumMap fixedVariables, DynamicVariableSet variableSet) { int[] plateStarts = new int[templateVariables.size()]; int[] plateEnds = new int[templateVariables.size()]; int[] plateReplicationSizes = new i...
python
def solve_tuple(expr, vars): """Build a tuple from subexpressions.""" result = tuple(solve(x, vars).value for x in expr.children) return Result(result, ())
python
def withSize(cls, minimum, maximum): """Creates a subclass with value size constraint. """ class X(cls): subtypeSpec = cls.subtypeSpec + constraint.ValueSizeConstraint( minimum, maximum) X.__name__ = cls.__name__ return X
python
def rbh_network(id2desc, rbh, file_name, thresholds = [False, False, False, False]): """ make the network based on rbhs and score thresholds """ g = nx.Graph() # network graph for storing rbhs filtered = {} e_thresh, bit_thresh, length_thresh, norm_thresh = thresholds for genome in rbh: ...
python
def evaluate(self, num_eval_batches=None): """Run one round of evaluation, return loss and accuracy.""" num_eval_batches = num_eval_batches or self.num_eval_batches with tf.Graph().as_default() as graph: self.tensors = self.model.build_eval_graph(self.eval_data_paths, ...
python
def execute(self, command): """ Executes command on remote hosts :type command: str :param command: command to be run on remote host """ try: if self.ssh.get_transport() is not None: logger.debug('{0}: executing "{1}"'.format(self.target_addre...
java
public String getTableNames(boolean bAddQuotes) { return (m_tableName == null) ? Record.formatTableNames(ISSUE_CONTROL_FILE, bAddQuotes) : super.getTableNames(bAddQuotes); }
java
void setExterior(int path, boolean b_yes_no) { int oldflags = getPathFlags_(path); int flags = (oldflags | (int) PathFlags_.exteriorPath) - (int) PathFlags_.exteriorPath;// clear the bit; setPathFlags_(path, flags | (b_yes_no ? (int) PathFlags_.exteriorPath : 0)); }
java
@SuppressWarnings("rawtypes") public DataSet query(String table, Map<String, Class> selectColumnNameTypeMap, Condition whereClause, String groupBy, String having, String orderBy, int offset, int count) { N.checkArgNotNullOrEmpty(selectColumnNameTypeMap, "selectColumnNameTypeMap"); ...
java
public static Comparator<CompositeScore<?>> fullComparator(QueryHints hints) { if (hints != null && hints.contains(QueryHint.CONSUME_SLICE)) { return Comp.SLICE; } return Comp.FULL; }
java
@SuppressWarnings("unchecked") @Override public EList<String> getVKnotsAsString() { return (EList<String>) eGet(Ifc4Package.Literals.IFC_BSPLINE_SURFACE_WITH_KNOTS__VKNOTS_AS_STRING, true); }
java
public boolean hasTransitionTo(CharRange condition, NFAState<T> state) { Set<Transition<NFAState<T>>> set = transitions.get(condition); if (set != null) { for (Transition<NFAState<T>> tr : set) { if (state.equals(tr.getTo())) { ...