code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public Map<String, String> toMap() { Map<String, String> map = new HashMap<>(); map.put("message", this.getMessage()); map.put("success", this.getSuccess()); map.put("is_ported", this.getIsPorted()); map.put("is_cellphone", this.getIsCellphone()); return map; }
class class_name[name] begin[{] method[toMap, return_type[type[Map]], modifier[public], parameter[]] begin[{] local_variable[type[Map], map] call[map.put, parameter[literal["message"], THIS[call[None.getMessage, parameter[]]]]] call[map.put, parameter[literal["success"],...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[toMap] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[map] operator[=] Keyword[new] identifier[HashMap] operator[<] operator[>] op...
@Override public void postSetup(Site site) { if(processors != null){ for(Processor p: processors){ p.postSetup(site); } } }
class class_name[name] begin[{] method[postSetup, return_type[void], modifier[public], parameter[site]] begin[{] if[binary_operation[member[.processors], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvoca...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[postSetup] operator[SEP] identifier[Site] identifier[site] operator[SEP] { Keyword[if] operator[SEP] identifier[processors] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[Processor] identifier[p...
public DirContext createDirContext() throws NamingException { LOGGER.debug("Creating directory service context (DirContext)"); final Hashtable<String, String> env = new Hashtable<>(); env.put(Context.SECURITY_PRINCIPAL, BIND_USERNAME); env.put(Context.SECURITY_CREDENTIALS, BIND_PASSWORD)...
class class_name[name] begin[{] method[createDirContext, return_type[type[DirContext]], modifier[public], parameter[]] begin[{] call[LOGGER.debug, parameter[literal["Creating directory service context (DirContext)"]]] local_variable[type[Hashtable], env] call[env.put, pa...
Keyword[public] identifier[DirContext] identifier[createDirContext] operator[SEP] operator[SEP] Keyword[throws] identifier[NamingException] { identifier[LOGGER] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[final] identifier[Hashtable] operator[<] identifier[St...
@SuppressWarnings("unchecked") public static <V> CacheValue<V> getInstance(V value) { if (value == null) { return NULL_VALUE; } return strength == Strength.STRONG ? new StrongValue<V>(value) : new SoftValue<V>(value); }
class class_name[name] begin[{] method[getInstance, return_type[type[CacheValue]], modifier[public static], parameter[value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[member[.NULL_VALUE]] else begin[{] None end[}] retur...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[V] operator[>] identifier[CacheValue] operator[<] identifier[V] operator[>] identifier[getInstance] operator[SEP] identifier[V] identifier[value] operator[SEP] { Keyword[i...
public T elementPower( double b ) { T c = createLike(); ops.elementPower(mat,b,c.mat); return c; }
class class_name[name] begin[{] method[elementPower, return_type[type[T]], modifier[public], parameter[b]] begin[{] local_variable[type[T], c] call[ops.elementPower, parameter[member[.mat], member[.b], member[c.mat]]] return[member[.c]] end[}] END[}]
Keyword[public] identifier[T] identifier[elementPower] operator[SEP] Keyword[double] identifier[b] operator[SEP] { identifier[T] identifier[c] operator[=] identifier[createLike] operator[SEP] operator[SEP] operator[SEP] identifier[ops] operator[SEP] identifier[elementPower] operator[SEP] identifier[mat] , ident...
private StringBuilder makeNewPackageName(final StringBuilder packageName, final File dir) { if (packageName.length() == 0) { return new StringBuilder(dir.getName()); } else { return new StringBuilder(packageName).append(PATH_SEPARATOR).append(dir.getName()); } }
class class_name[name] begin[{] method[makeNewPackageName, return_type[type[StringBuilder]], modifier[private], parameter[packageName, dir]] begin[{] if[binary_operation[call[packageName.length, parameter[]], ==, literal[0]]] begin[{] return[ClassCreator(arguments=[MethodInvocation(...
Keyword[private] identifier[StringBuilder] identifier[makeNewPackageName] operator[SEP] Keyword[final] identifier[StringBuilder] identifier[packageName] , Keyword[final] identifier[File] identifier[dir] operator[SEP] { Keyword[if] operator[SEP] identifier[packageName] operator[SEP] identifier[length] operator[S...
public static UIContext getClosestContextForId(final WComponent root, final String id, final boolean visibleOnly) { FindComponentByIdVisitor visitor = new FindComponentByIdVisitor(id) { @Override public VisitorResult visit(final WComponent comp) { VisitorResult result = super.visit(comp); if (result...
class class_name[name] begin[{] method[getClosestContextForId, return_type[type[UIContext]], modifier[public static], parameter[root, id, visibleOnly]] begin[{] local_variable[type[FindComponentByIdVisitor], visitor] call[.doTraverse, parameter[member[.root], member[.visibleOnly], membe...
Keyword[public] Keyword[static] identifier[UIContext] identifier[getClosestContextForId] operator[SEP] Keyword[final] identifier[WComponent] identifier[root] , Keyword[final] identifier[String] identifier[id] , Keyword[final] Keyword[boolean] identifier[visibleOnly] operator[SEP] { identifier[FindComponentById...
public static void sliceByRowsAndCols(Image srcImage, File destDir, int rows, int cols) { if (false == destDir.exists()) { FileUtil.mkdir(destDir); } else if (false == destDir.isDirectory()) { throw new IllegalArgumentException("Destination Dir must be a Directory !"); } try { if (rows <= 0 ||...
class class_name[name] begin[{] method[sliceByRowsAndCols, return_type[void], modifier[public static], parameter[srcImage, destDir, rows, cols]] begin[{] if[binary_operation[literal[false], ==, call[destDir.exists, parameter[]]]] begin[{] call[FileUtil.mkdir, parameter[m...
Keyword[public] Keyword[static] Keyword[void] identifier[sliceByRowsAndCols] operator[SEP] identifier[Image] identifier[srcImage] , identifier[File] identifier[destDir] , Keyword[int] identifier[rows] , Keyword[int] identifier[cols] operator[SEP] { Keyword[if] operator[SEP] literal[boolean] operator[==] ident...
private static Map<String, CmsHtmlList> getListObjectMap(CmsWorkplaceSettings settings) { Map<String, CmsHtmlList> objects = CmsCollectionsGenericWrapper.map(settings.getListObject()); if (objects == null) { // using hashtable as most efficient version of a synchronized map obje...
class class_name[name] begin[{] method[getListObjectMap, return_type[type[Map]], modifier[private static], parameter[settings]] begin[{] local_variable[type[Map], objects] if[binary_operation[member[.objects], ==, literal[null]]] begin[{] assign[member[.objects],...
Keyword[private] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[CmsHtmlList] operator[>] identifier[getListObjectMap] operator[SEP] identifier[CmsWorkplaceSettings] identifier[settings] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[CmsHtmlList] operato...
public void getTimeOid (String arg1, TimeBaseService.GotTimeBaseListener arg2) { TimeBaseMarshaller.GotTimeBaseMarshaller listener2 = new TimeBaseMarshaller.GotTimeBaseMarshaller(); listener2.listener = arg2; sendRequest(GET_TIME_OID, new Object[] { arg1, listener2 }); ...
class class_name[name] begin[{] method[getTimeOid, return_type[void], modifier[public], parameter[arg1, arg2]] begin[{] local_variable[type[TimeBaseMarshaller], listener2] assign[member[listener2.listener], member[.arg2]] call[.sendRequest, parameter[member[.GET_TIME_OID...
Keyword[public] Keyword[void] identifier[getTimeOid] operator[SEP] identifier[String] identifier[arg1] , identifier[TimeBaseService] operator[SEP] identifier[GotTimeBaseListener] identifier[arg2] operator[SEP] { identifier[TimeBaseMarshaller] operator[SEP] identifier[GotTimeBaseMarshaller] identifier[listener2]...
public boolean deleteEdgeReference(AtlasEdge edge, DataTypes.TypeCategory typeCategory, boolean isComposite, boolean forceDeleteStructTrait) throws AtlasException { if (LOG.isDebugEnabled()) { LOG.debug("Deleting {}", string(edge)); } boolean forc...
class class_name[name] begin[{] method[deleteEdgeReference, return_type[type[boolean]], modifier[public], parameter[edge, typeCategory, isComposite, forceDeleteStructTrait]] begin[{] if[call[LOG.isDebugEnabled, parameter[]]] begin[{] call[LOG.debug, parameter[literal["De...
Keyword[public] Keyword[boolean] identifier[deleteEdgeReference] operator[SEP] identifier[AtlasEdge] identifier[edge] , identifier[DataTypes] operator[SEP] identifier[TypeCategory] identifier[typeCategory] , Keyword[boolean] identifier[isComposite] , Keyword[boolean] identifier[forceDeleteStructTrait] operator[SEP] ...
public static CommerceAccountOrganizationRel[] findByOrganizationId_PrevAndNext( CommerceAccountOrganizationRelPK commerceAccountOrganizationRelPK, long organizationId, OrderByComparator<CommerceAccountOrganizationRel> orderByComparator) throws com.liferay.commerce.account.exception.NoSuchAccountOrganizationRel...
class class_name[name] begin[{] method[findByOrganizationId_PrevAndNext, return_type[type[CommerceAccountOrganizationRel]], modifier[public static], parameter[commerceAccountOrganizationRelPK, organizationId, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceAccountOrganizationRel] operator[SEP] operator[SEP] identifier[findByOrganizationId_PrevAndNext] operator[SEP] identifier[CommerceAccountOrganizationRelPK] identifier[commerceAccountOrganizationRelPK] , Keyword[long] identifier[organizationId] , identifier[OrderByCom...
public static <V> Node<V> findNodeByLabel(List<Node<V>> parents, String labelPrefix) { return findNode(parents, new LabelPrefixPredicate<V>(labelPrefix)); }
class class_name[name] begin[{] method[findNodeByLabel, return_type[type[Node]], modifier[public static], parameter[parents, labelPrefix]] begin[{] return[call[.findNode, parameter[member[.parents], ClassCreator(arguments=[MemberReference(member=labelPrefix, postfix_operators=[], prefix_operators=[], q...
Keyword[public] Keyword[static] operator[<] identifier[V] operator[>] identifier[Node] operator[<] identifier[V] operator[>] identifier[findNodeByLabel] operator[SEP] identifier[List] operator[<] identifier[Node] operator[<] identifier[V] operator[>] operator[>] identifier[parents] , identifier[String] identifier[labe...
public void format(final String format) { FitDateHelper helper = DependencyManager.getOrCreate(FitDateHelper.class); helper.setFormat(format); }
class class_name[name] begin[{] method[format, return_type[void], modifier[public], parameter[format]] begin[{] local_variable[type[FitDateHelper], helper] call[helper.setFormat, parameter[member[.format]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[format] operator[SEP] Keyword[final] identifier[String] identifier[format] operator[SEP] { identifier[FitDateHelper] identifier[helper] operator[=] identifier[DependencyManager] operator[SEP] identifier[getOrCreate] operator[SEP] identifier[FitDateHelper] operator[SEP] Ke...
public static final BindingManager create ( final Map<String, Object> data ) { final BindingManager result = new BindingManager (); result.addBinder ( new MapBinder ( data ) ); result.addBinder ( new BindingManagerBinder () ); return result; }
class class_name[name] begin[{] method[create, return_type[type[BindingManager]], modifier[final public static], parameter[data]] begin[{] local_variable[type[BindingManager], result] call[result.addBinder, parameter[ClassCreator(arguments=[MemberReference(member=data, postfix_operators...
Keyword[public] Keyword[static] Keyword[final] identifier[BindingManager] identifier[create] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[data] operator[SEP] { Keyword[final] identifier[BindingManager] identifier[result] operator[=] Keyw...
private static MimeType getParentMimeType(Resource resource) { MimeType result = null; if (resource != null && (resource = resource.getParent()) != null) { ResourceHandle handle = ResourceHandle.use(resource); result = getMimeType(handle.getProperty(ResourceUtil.PROP_MIME_TYPE, "...
class class_name[name] begin[{] method[getParentMimeType, return_type[type[MimeType]], modifier[private static], parameter[resource]] begin[{] local_variable[type[MimeType], result] if[binary_operation[binary_operation[member[.resource], !=, literal[null]], &&, binary_operation[assign[m...
Keyword[private] Keyword[static] identifier[MimeType] identifier[getParentMimeType] operator[SEP] identifier[Resource] identifier[resource] operator[SEP] { identifier[MimeType] identifier[result] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[resource] operator[!=] Other[null] operato...
public CommandArgs<K, V> add(CommandKeyword keyword) { LettuceAssert.notNull(keyword, "CommandKeyword must not be null"); singularArguments.add(ProtocolKeywordArgument.of(keyword)); return this; }
class class_name[name] begin[{] method[add, return_type[type[CommandArgs]], modifier[public], parameter[keyword]] begin[{] call[LettuceAssert.notNull, parameter[member[.keyword], literal["CommandKeyword must not be null"]]] call[singularArguments.add, parameter[call[ProtocolKeyw...
Keyword[public] identifier[CommandArgs] operator[<] identifier[K] , identifier[V] operator[>] identifier[add] operator[SEP] identifier[CommandKeyword] identifier[keyword] operator[SEP] { identifier[LettuceAssert] operator[SEP] identifier[notNull] operator[SEP] identifier[keyword] , literal[String] operator[SEP...
@OptionDesc(longName = "style", shortName = "s", description = "citation STYLE name (default: ieee)", argumentName = "STYLE", argumentType = ArgumentType.STRING, priority = 10) public void setStyle(String style) { this.style = style; }
class class_name[name] begin[{] method[setStyle, return_type[void], modifier[public], parameter[style]] begin[{] assign[THIS[member[None.style]], member[.style]] end[}] END[}]
annotation[@] identifier[OptionDesc] operator[SEP] identifier[longName] operator[=] literal[String] , identifier[shortName] operator[=] literal[String] , identifier[description] operator[=] literal[String] , identifier[argumentName] operator[=] literal[String] , identifier[argumentType] operator[=] identifier[Argum...
public synchronized PacketBuilder withBoolean(final boolean b) { checkBuilt(); try { dataOutputStream.writeBoolean(b); } catch (final IOException e) { logger.error("Unable to add boolean: {} : {}", e.getClass(), e.getMessage()); } ...
class class_name[name] begin[{] method[withBoolean, return_type[type[PacketBuilder]], modifier[synchronized public], parameter[b]] begin[{] call[.checkBuilt, parameter[]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=b, postfix_ope...
Keyword[public] Keyword[synchronized] identifier[PacketBuilder] identifier[withBoolean] operator[SEP] Keyword[final] Keyword[boolean] identifier[b] operator[SEP] { identifier[checkBuilt] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[dataOutputStream] operator[SEP] identifier[writ...
private static HashSet<String> searchDirectoryForPattern(File dir,String A, String B) throws Exception { File[] files = dir.listFiles(); HashSet<String> pattern_set = new HashSet<String>(); for (int i = 0; i < files.length; i++) { File f = files[i]; if...
class class_name[name] begin[{] method[searchDirectoryForPattern, return_type[type[HashSet]], modifier[private static], parameter[dir, A, B]] begin[{] local_variable[type[File], files] local_variable[type[HashSet], pattern_set] ForStatement(body=BlockStatement(label=None, statements=[Lo...
Keyword[private] Keyword[static] identifier[HashSet] operator[<] identifier[String] operator[>] identifier[searchDirectoryForPattern] operator[SEP] identifier[File] identifier[dir] , identifier[String] identifier[A] , identifier[String] identifier[B] operator[SEP] Keyword[throws] identifier[Exception] { identi...
public void addSink(VehicleDataSink sink) { Log.i(TAG, "Adding data sink " + sink); mRemoteOriginPipeline.addSink(sink); }
class class_name[name] begin[{] method[addSink, return_type[void], modifier[public], parameter[sink]] begin[{] call[Log.i, parameter[member[.TAG], binary_operation[literal["Adding data sink "], +, member[.sink]]]] call[mRemoteOriginPipeline.addSink, parameter[member[.sink]]] ...
Keyword[public] Keyword[void] identifier[addSink] operator[SEP] identifier[VehicleDataSink] identifier[sink] operator[SEP] { identifier[Log] operator[SEP] identifier[i] operator[SEP] identifier[TAG] , literal[String] operator[+] identifier[sink] operator[SEP] operator[SEP] identifier[mRemoteOriginPipeline] oper...
private File getTempUploadDir() throws Exception { if (m_tempUploadDir == null) { try { m_tempUploadDir = getServer().getUploadDir(); } catch (InitializationException e) { throw new Exception("Unable to get server: " + e.getMessage(), e); } ...
class class_name[name] begin[{] method[getTempUploadDir, return_type[type[File]], modifier[private], parameter[]] begin[{] if[binary_operation[member[.m_tempUploadDir], ==, literal[null]]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberRefer...
Keyword[private] identifier[File] identifier[getTempUploadDir] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] identifier[m_tempUploadDir] operator[==] Other[null] operator[SEP] { Keyword[try] { identifier[m_tempUploadDir] operator[=] identi...
@NonNull private static ObservableTransformer<Boolean, Boolean> onSubscribeSetText(Button button, @StringRes int textResId) { return booleanObservable -> booleanObservable .doOnSubscribe((disposable) -> button.setText(textResId)) .subscribeOn(AndroidSchedulers.mainThread()); ...
class class_name[name] begin[{] method[onSubscribeSetText, return_type[type[ObservableTransformer]], modifier[private static], parameter[button, textResId]] begin[{] return[LambdaExpression(body=MethodInvocation(arguments=[LambdaExpression(body=MethodInvocation(arguments=[MemberReference(member=textRes...
annotation[@] identifier[NonNull] Keyword[private] Keyword[static] identifier[ObservableTransformer] operator[<] identifier[Boolean] , identifier[Boolean] operator[>] identifier[onSubscribeSetText] operator[SEP] identifier[Button] identifier[button] , annotation[@] identifier[StringRes] Keyword[int] identifier[textRe...
private void validateConstraint(RuleSet ruleSet, Constraint constraint, Severity severity) throws RuleException { if (!executedConstraints.contains(constraint)) { if (applyRequiredConcepts(ruleSet, constraint)) { ruleVisitor.visitConstraint(constraint, severity); } else {...
class class_name[name] begin[{] method[validateConstraint, return_type[void], modifier[private], parameter[ruleSet, constraint, severity]] begin[{] if[call[executedConstraints.contains, parameter[member[.constraint]]]] begin[{] if[call[.applyRequiredConcepts, parameter[m...
Keyword[private] Keyword[void] identifier[validateConstraint] operator[SEP] identifier[RuleSet] identifier[ruleSet] , identifier[Constraint] identifier[constraint] , identifier[Severity] identifier[severity] operator[SEP] Keyword[throws] identifier[RuleException] { Keyword[if] operator[SEP] operator[!] identif...
public static String getSIntA( int... intA ) { // String Info = ""; // if ( intA == null ) return "?"; if ( intA.length == 0 ) return "?"; // for ( int K = 0; K < intA.length; K ++ ) { // Info += ( Info.isEmpty() )? "" : ", "; Info += BTools.getSInt( intA[ K ] ); } // return Info; ...
class class_name[name] begin[{] method[getSIntA, return_type[type[String]], modifier[public static], parameter[intA]] begin[{] local_variable[type[String], Info] if[binary_operation[member[.intA], ==, literal[null]]] begin[{] return[literal["?"]] else begin[{] None end[}...
Keyword[public] Keyword[static] identifier[String] identifier[getSIntA] operator[SEP] Keyword[int] operator[...] identifier[intA] operator[SEP] { identifier[String] identifier[Info] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[intA] operator[==] Other[null] operator[SEP] Keyword...
@Override public int compareTo(final AbstractAttr<T> otherObj) { if (otherObj == null) { return 1; } else { return value.compareTo(otherObj.value); } }
class class_name[name] begin[{] method[compareTo, return_type[type[int]], modifier[public], parameter[otherObj]] begin[{] if[binary_operation[member[.otherObj], ==, literal[null]]] begin[{] return[literal[1]] else begin[{] return[call[value.compareTo, parameter[m...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[compareTo] operator[SEP] Keyword[final] identifier[AbstractAttr] operator[<] identifier[T] operator[>] identifier[otherObj] operator[SEP] { Keyword[if] operator[SEP] identifier[otherObj] operator[==] Other[null] operator[SEP] { ...
protected final String exceptionMessage(String msg) { if (msg == null) { msg = ""; } StringBuilder buf = new StringBuilder(128 + msg.length()) .append(protocol()) .append(", ") .append(authScheme()) .append(", ") .append(pr...
class class_name[name] begin[{] method[exceptionMessage, return_type[type[String]], modifier[final protected], parameter[msg]] begin[{] if[binary_operation[member[.msg], ==, literal[null]]] begin[{] assign[member[.msg], literal[""]] else begin[{] None end...
Keyword[protected] Keyword[final] identifier[String] identifier[exceptionMessage] operator[SEP] identifier[String] identifier[msg] operator[SEP] { Keyword[if] operator[SEP] identifier[msg] operator[==] Other[null] operator[SEP] { identifier[msg] operator[=] literal[String] operator[SEP] } ...
public static List<String> captureOutAndError(List<String> setup, List<String> cmd, File stdoutFilename, File stderrFilename, long tailLength, boolean useSetsid ) throws IOException { List<String> result = new ArrayList<String>(3); result.add(bashCommand); result.add("-c"...
class class_name[name] begin[{] method[captureOutAndError, return_type[type[List]], modifier[public static], parameter[setup, cmd, stdoutFilename, stderrFilename, tailLength, useSetsid]] begin[{] local_variable[type[List], result] call[result.add, parameter[member[.bashCommand]]] ...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[captureOutAndError] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[setup] , identifier[List] operator[<] identifier[String] operator[>] identifier[cmd] , identifier[File] identi...
public static boolean sendOnEvent(Object filter, FilterDescriptor descriptor, String id, FilterEventParameters parameters) throws FilterException { FilterElementDescriptor elementDescriptor = descriptor.getElement(id); if (elementDescriptor != null && elementDescriptor.getOnMethod() != null...
class class_name[name] begin[{] method[sendOnEvent, return_type[type[boolean]], modifier[public static], parameter[filter, descriptor, id, parameters]] begin[{] local_variable[type[FilterElementDescriptor], elementDescriptor] if[binary_operation[binary_operation[member[.elementDescripto...
Keyword[public] Keyword[static] Keyword[boolean] identifier[sendOnEvent] operator[SEP] identifier[Object] identifier[filter] , identifier[FilterDescriptor] identifier[descriptor] , identifier[String] identifier[id] , identifier[FilterEventParameters] identifier[parameters] operator[SEP] Keyword[throws] identifier[Fi...
public void changeRemoteDate(Application application, String strParams, CachedItem productItem, Date dateStart, Date dateEnd) { //+ this.setIcon(BaseApplet.getSharedInstance().loadImageIcon("tour/buttons/Lookup.gif", "Lookup"), CalendarConstants.START_ICON + 1); //x this.setIcon(BaseApplet.getSharedInstance...
class class_name[name] begin[{] method[changeRemoteDate, return_type[void], modifier[public], parameter[application, strParams, productItem, dateStart, dateEnd]] begin[{] call[productItem.setStatus, parameter[binary_operation[call[productItem.getStatus, parameter[]], |, binary_operation[literal...
Keyword[public] Keyword[void] identifier[changeRemoteDate] operator[SEP] identifier[Application] identifier[application] , identifier[String] identifier[strParams] , identifier[CachedItem] identifier[productItem] , identifier[Date] identifier[dateStart] , identifier[Date] identifier[dateEnd] operator[SEP] { ...
public static String getQuestionMark(int count) { StringBuilder qMark = new StringBuilder(); for (int i = 0; i < count; i++) { if(i > 0) { qMark.append(", "); } qMark.append("?"); } return qMark.toString(); }
class class_name[name] begin[{] method[getQuestionMark, return_type[type[String]], modifier[public static], parameter[count]] begin[{] local_variable[type[StringBuilder], qMark] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReferen...
Keyword[public] Keyword[static] identifier[String] identifier[getQuestionMark] operator[SEP] Keyword[int] identifier[count] operator[SEP] { identifier[StringBuilder] identifier[qMark] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[i...
public static <T> Func1<T, Observable<Object>> toEmpty() { return Functions.constant(Observable.<Object> empty()); }
class class_name[name] begin[{] method[toEmpty, return_type[type[Func1]], modifier[public static], parameter[]] begin[{] return[call[Functions.constant, parameter[call[.Observable, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Func1] operator[<] identifier[T] , identifier[Observable] operator[<] identifier[Object] operator[>] operator[>] identifier[toEmpty] operator[SEP] operator[SEP] { Keyword[return] identifier[Functions] operator[SEP] identifier[const...
public static com.github.bordertech.wcomponents.Image createThumbnail(final InputStream is, final String name, final Dimension scaledSize, final String mimeType) { final Dimension scale = scaledSize == null ? THUMBNAIL_SCALE_SIZE : scaledSize; // Generate thumbnail for image files if (is != null && mimeTyp...
class class_name[name] begin[{] method[createThumbnail, return_type[type[com]], modifier[public static], parameter[is, name, scaledSize, mimeType]] begin[{] local_variable[type[Dimension], scale] if[binary_operation[binary_operation[binary_operation[member[.is], !=, literal[null]], &&, ...
Keyword[public] Keyword[static] identifier[com] operator[SEP] identifier[github] operator[SEP] identifier[bordertech] operator[SEP] identifier[wcomponents] operator[SEP] identifier[Image] identifier[createThumbnail] operator[SEP] Keyword[final] identifier[InputStream] identifier[is] , Keyword[final] identifier[String]...
public static void writeElementList(XMLOutput xmlOutput, String tagName, Iterator<String> listValueIterator) throws IOException { while (listValueIterator.hasNext()) { xmlOutput.openTag(tagName); xmlOutput.writeText(listValueIterator.next()); xmlOutput.closeTag(ta...
class class_name[name] begin[{] method[writeElementList, return_type[void], modifier[public static], parameter[xmlOutput, tagName, listValueIterator]] begin[{] while[call[listValueIterator.hasNext, parameter[]]] begin[{] call[xmlOutput.openTag, parameter[member[.tagName]...
Keyword[public] Keyword[static] Keyword[void] identifier[writeElementList] operator[SEP] identifier[XMLOutput] identifier[xmlOutput] , identifier[String] identifier[tagName] , identifier[Iterator] operator[<] identifier[String] operator[>] identifier[listValueIterator] operator[SEP] Keyword[throws] identifier[IOExcep...
public void respondUsing(final RespondWithBlob callback) throws IOException { RespondWithData dataCallback = new RespondWithData() { @Override public Data onInterest(Name prefix, Interest interest) throws Exception { Data data = new Data(interest.getName()); Blob content = callback.onInt...
class class_name[name] begin[{] method[respondUsing, return_type[void], modifier[public], parameter[callback]] begin[{] local_variable[type[RespondWithData], dataCallback] call[.respondUsing, parameter[member[.dataCallback]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[respondUsing] operator[SEP] Keyword[final] identifier[RespondWithBlob] identifier[callback] operator[SEP] Keyword[throws] identifier[IOException] { identifier[RespondWithData] identifier[dataCallback] operator[=] Keyword[new] identifier[RespondWithData] operator[SEP] oper...
@Deprecated public static String removeChars(String S, char ch) { int pos; while((pos=S.indexOf(ch))!=-1) S=S.substring(0,pos)+S.substring(pos+1); return S; }
class class_name[name] begin[{] method[removeChars, return_type[type[String]], modifier[public static], parameter[S, ch]] begin[{] local_variable[type[int], pos] while[binary_operation[assign[member[.pos], call[S.indexOf, parameter[member[.ch]]]], !=, literal[1]]] begin[{] a...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] identifier[String] identifier[removeChars] operator[SEP] identifier[String] identifier[S] , Keyword[char] identifier[ch] operator[SEP] { Keyword[int] identifier[pos] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[pos] oper...
public ServletInputStream getInputStream() throws IOException { if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { logger.logp(Level.FINE, CLASS_NAME,"getInputStream", "this->"+this+": gotReader = " + _srtRequestHelper._gotReader); } if (WCCustomProperties.C...
class class_name[name] begin[{] method[getInputStream, return_type[type[ServletInputStream]], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[logger.isLoggable, parameter[member[Level.FINE]]]]] begin[{] ...
Keyword[public] identifier[ServletInputStream] identifier[getInputStream] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[logger] operator[S...
public SDVariable convertToConstant(@NonNull SDVariable variable) { convertToConstants(Collections.singletonList(variable)); return variable; }
class class_name[name] begin[{] method[convertToConstant, return_type[type[SDVariable]], modifier[public], parameter[variable]] begin[{] call[.convertToConstants, parameter[call[Collections.singletonList, parameter[member[.variable]]]]] return[member[.variable]] end[}] END[}]
Keyword[public] identifier[SDVariable] identifier[convertToConstant] operator[SEP] annotation[@] identifier[NonNull] identifier[SDVariable] identifier[variable] operator[SEP] { identifier[convertToConstants] operator[SEP] identifier[Collections] operator[SEP] identifier[singletonList] operator[SEP] identifier[va...
public YearMonth withChronologyRetainFields(Chronology newChronology) { newChronology = DateTimeUtils.getChronology(newChronology); newChronology = newChronology.withUTC(); if (newChronology == getChronology()) { return this; } else { YearMonth newYearMonth = new ...
class class_name[name] begin[{] method[withChronologyRetainFields, return_type[type[YearMonth]], modifier[public], parameter[newChronology]] begin[{] assign[member[.newChronology], call[DateTimeUtils.getChronology, parameter[member[.newChronology]]]] assign[member[.newChronology...
Keyword[public] identifier[YearMonth] identifier[withChronologyRetainFields] operator[SEP] identifier[Chronology] identifier[newChronology] operator[SEP] { identifier[newChronology] operator[=] identifier[DateTimeUtils] operator[SEP] identifier[getChronology] operator[SEP] identifier[newChronology] operator[SEP]...
@Override public void afterPropertiesSet() { if (this.blockingMongoOperations != null) { IndexOperations indexOperations = this.blockingMongoOperations.indexOps(this.collectionName); this.mongoSessionConverter.ensureIndexes(indexOperations); } }
class class_name[name] begin[{] method[afterPropertiesSet, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[THIS[member[None.blockingMongoOperations]], !=, literal[null]]] begin[{] local_variable[type[IndexOperations], indexOperations] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[afterPropertiesSet] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[blockingMongoOperations] operator[!=] Other[null] operator[SEP] { identifier[IndexOperations] identifier[indexO...
public void initialize(CmsListInfoBean listInfo) { m_dialogContent = new CmsFieldsetFormFieldPanel(listInfo, null); m_dialogContent.addStyleName(I_CmsInputLayoutBundle.INSTANCE.inputCss().highTextBoxes()); m_dialogContent.getFieldSet().setOpenerVisible(false); m_dialogContent.getFieldSe...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[public], parameter[listInfo]] begin[{] assign[member[.m_dialogContent], ClassCreator(arguments=[MemberReference(member=listInfo, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_o...
Keyword[public] Keyword[void] identifier[initialize] operator[SEP] identifier[CmsListInfoBean] identifier[listInfo] operator[SEP] { identifier[m_dialogContent] operator[=] Keyword[new] identifier[CmsFieldsetFormFieldPanel] operator[SEP] identifier[listInfo] , Other[null] operator[SEP] operator[SEP] identifier[m...
public SingleOutputStreamOperator<T> sum(int positionToSum) { return aggregate(new SumAggregator<>(positionToSum, input.getType(), input.getExecutionConfig())); }
class class_name[name] begin[{] method[sum, return_type[type[SingleOutputStreamOperator]], modifier[public], parameter[positionToSum]] begin[{] return[call[.aggregate, parameter[ClassCreator(arguments=[MemberReference(member=positionToSum, postfix_operators=[], prefix_operators=[], qualifier=, selector...
Keyword[public] identifier[SingleOutputStreamOperator] operator[<] identifier[T] operator[>] identifier[sum] operator[SEP] Keyword[int] identifier[positionToSum] operator[SEP] { Keyword[return] identifier[aggregate] operator[SEP] Keyword[new] identifier[SumAggregator] operator[<] operator[>] operator[SEP] identi...
public void export(Writer output, DirectedGraph<V, E> g) { export(output, g, true); }
class class_name[name] begin[{] method[export, return_type[void], modifier[public], parameter[output, g]] begin[{] call[.export, parameter[member[.output], member[.g], literal[true]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[export] operator[SEP] identifier[Writer] identifier[output] , identifier[DirectedGraph] operator[<] identifier[V] , identifier[E] operator[>] identifier[g] operator[SEP] { identifier[export] operator[SEP] identifier[output] , identifier[g] , literal[boolean] operator[...
public void registerMemoryNotifications(NotificationListener notificationListener, Object handback) { NotificationEmitter emitter = (NotificationEmitter) this.getMemory(); emitter.addNotificationListener(notificationListener, null, handback); }
class class_name[name] begin[{] method[registerMemoryNotifications, return_type[void], modifier[public], parameter[notificationListener, handback]] begin[{] local_variable[type[NotificationEmitter], emitter] call[emitter.addNotificationListener, parameter[member[.notificationListener], ...
Keyword[public] Keyword[void] identifier[registerMemoryNotifications] operator[SEP] identifier[NotificationListener] identifier[notificationListener] , identifier[Object] identifier[handback] operator[SEP] { identifier[NotificationEmitter] identifier[emitter] operator[=] operator[SEP] identifier[NotificationEmi...
@SuppressWarnings("rawtypes") public static void configure( Configuration conf, String qualifiedOutputTableId, BigQueryTableSchema outputTableSchema, String outputGcsPath, BigQueryFileFormat outputFileFormat, Class<? extends FileOutputFormat> outputFormatClass) throws IOExcep...
class class_name[name] begin[{] method[configure, return_type[void], modifier[public static], parameter[conf, qualifiedOutputTableId, outputTableSchema, outputGcsPath, outputFileFormat, outputFormatClass]] begin[{] call[.configure, parameter[member[.conf], member[.qualifiedOutputTableId], call[...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[void] identifier[configure] operator[SEP] identifier[Configuration] identifier[conf] , identifier[String] identifier[qualifiedOutputTableId] , identifier[BigQueryTableSchema] identifier[outpu...
@Override public List<PhoneNumber> searchForNumbers(String country, PhoneNumberSearchFilters listFilters) { Locale locale = new Locale("en",country); String iso3Country = locale.getISO3Country(); if(logger.isDebugEnabled()) { logger.debug("searchPattern " + listFilters.getFilterP...
class class_name[name] begin[{] method[searchForNumbers, return_type[type[List]], modifier[public], parameter[country, listFilters]] begin[{] local_variable[type[Locale], locale] local_variable[type[String], iso3Country] if[call[logger.isDebugEnabled, parameter[]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[PhoneNumber] operator[>] identifier[searchForNumbers] operator[SEP] identifier[String] identifier[country] , identifier[PhoneNumberSearchFilters] identifier[listFilters] operator[SEP] { identifier[Locale] identifier[local...
@Override public void handleChannelData(final JSONObject jsonObject) throws BitfinexClientException { final String channelType = jsonObject.getString("channel"); final int channelId = jsonObject.getInt("chanId"); BitfinexStreamSymbol symbol = null; switch (channelType) { case "ticker": symbol = handleT...
class class_name[name] begin[{] method[handleChannelData, return_type[void], modifier[public], parameter[jsonObject]] begin[{] local_variable[type[String], channelType] local_variable[type[int], channelId] local_variable[type[BitfinexStreamSymbol], symbol] SwitchStatement(cases=...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[handleChannelData] operator[SEP] Keyword[final] identifier[JSONObject] identifier[jsonObject] operator[SEP] Keyword[throws] identifier[BitfinexClientException] { Keyword[final] identifier[String] identifier[channelType] operator[=] ident...
public static void fire(final HasShowHandlers source) { if (TYPE != null) { ShowEvent event = new ShowEvent(); source.fireEvent(event); } }
class class_name[name] begin[{] method[fire, return_type[void], modifier[public static], parameter[source]] begin[{] if[binary_operation[member[.TYPE], !=, literal[null]]] begin[{] local_variable[type[ShowEvent], event] call[source.fireEvent, parameter[member...
Keyword[public] Keyword[static] Keyword[void] identifier[fire] operator[SEP] Keyword[final] identifier[HasShowHandlers] identifier[source] operator[SEP] { Keyword[if] operator[SEP] identifier[TYPE] operator[!=] Other[null] operator[SEP] { identifier[ShowEvent] identifier[event] operator[=] Keyword[new...
User replaceUser(String id, User user, AccessToken accessToken) { if (user == null) { throw new InvalidAttributeException("The given User can't be null."); } if (Strings.isNullOrEmpty(id)) { throw new InvalidAttributeException("The given User ID can't be null or empty.");...
class class_name[name] begin[{] method[replaceUser, return_type[type[User]], modifier[default], parameter[id, user, accessToken]] begin[{] if[binary_operation[member[.user], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], ...
identifier[User] identifier[replaceUser] operator[SEP] identifier[String] identifier[id] , identifier[User] identifier[user] , identifier[AccessToken] identifier[accessToken] operator[SEP] { Keyword[if] operator[SEP] identifier[user] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[ne...
void removePathAndBlocks(String src, List<BlockInfo> blocks) throws IOException { // No need for lock until we start accepting requests from clients. assert (!nameNode.isRpcServerRunning() || hasWriteLock()); leaseManager.removeLeaseWithPrefixPath(src); removeBlocks(blocks); }
class class_name[name] begin[{] method[removePathAndBlocks, return_type[void], modifier[default], parameter[src, blocks]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=isRpcServerRunning, postfix_operators=[], prefix_operators=['!'], qualifier=nameNod...
Keyword[void] identifier[removePathAndBlocks] operator[SEP] identifier[String] identifier[src] , identifier[List] operator[<] identifier[BlockInfo] operator[>] identifier[blocks] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[assert] operator[SEP] operator[!] identifier[nameNode] operator[SEP] ...
public void openWithParents(CmsTreeItem item) { if (item != null) { item.setOpen(true); openWithParents(item.getParentItem()); } }
class class_name[name] begin[{] method[openWithParents, return_type[void], modifier[public], parameter[item]] begin[{] if[binary_operation[member[.item], !=, literal[null]]] begin[{] call[item.setOpen, parameter[literal[true]]] call[.openWithParen...
Keyword[public] Keyword[void] identifier[openWithParents] operator[SEP] identifier[CmsTreeItem] identifier[item] operator[SEP] { Keyword[if] operator[SEP] identifier[item] operator[!=] Other[null] operator[SEP] { identifier[item] operator[SEP] identifier[setOpen] operator[SEP] literal[boolean] operato...
public void process(List<ChessboardCorner> corners ) { this.corners = corners; // reset internal data structures vertexes.reset(); edges.reset(); clusters.reset(); // Create a vertex for each corner for (int idx = 0; idx < corners.size(); idx++) { Vertex v = vertexes.grow(); v.reset(); v.index ...
class class_name[name] begin[{] method[process, return_type[void], modifier[public], parameter[corners]] begin[{] assign[THIS[member[None.corners]], member[.corners]] call[vertexes.reset, parameter[]] call[edges.reset, parameter[]] call[clusters.r...
Keyword[public] Keyword[void] identifier[process] operator[SEP] identifier[List] operator[<] identifier[ChessboardCorner] operator[>] identifier[corners] operator[SEP] { Keyword[this] operator[SEP] identifier[corners] operator[=] identifier[corners] operator[SEP] identifier[vertexes] operator[SEP] identifier[res...
@Synchronized @SneakyThrows public void buildMetadataResolverAggregate(final String entityId) { LOGGER.trace("Building metadata resolver aggregate"); this.metadataResolver = new ChainingMetadataResolver(); val resolvers = new ArrayList<MetadataResolver>(); val entries = this.meta...
class class_name[name] begin[{] method[buildMetadataResolverAggregate, return_type[void], modifier[public], parameter[entityId]] begin[{] call[LOGGER.trace, parameter[literal["Building metadata resolver aggregate"]]] assign[THIS[member[None.metadataResolver]], ClassCreator(argum...
annotation[@] identifier[Synchronized] annotation[@] identifier[SneakyThrows] Keyword[public] Keyword[void] identifier[buildMetadataResolverAggregate] operator[SEP] Keyword[final] identifier[String] identifier[entityId] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[trace] operator[SEP] literal[Stri...
public Observable<ServiceResponse<Page<VirtualNetworkUsageInner>>> listUsageWithServiceResponseAsync(final String resourceGroupName, final String virtualNetworkName) { return listUsageSinglePageAsync(resourceGroupName, virtualNetworkName) .concatMap(new Func1<ServiceResponse<Page<VirtualNetworkUsage...
class class_name[name] begin[{] method[listUsageWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, virtualNetworkName]] begin[{] return[call[.listUsageSinglePageAsync, parameter[member[.resourceGroupName], member[.virtualNetworkName]]]] end[}] EN...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[VirtualNetworkUsageInner] operator[>] operator[>] operator[>] identifier[listUsageWithServiceResponseAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , ...
@Override public List<T> multiGet(List<List<Object>> keys) { // keysにはStateBaseNameの名称のみが指定される。そのため、1要素目を用いればいい。 String baseKey = (String) keys.get(0).get(0); // 前回のクラスタ実行結果を取得する。存在しない場合は空値として扱う。 List<T> dataModels = new ArrayList<>(); T dataModel = null; Long p...
class class_name[name] begin[{] method[multiGet, return_type[type[List]], modifier[public], parameter[keys]] begin[{] local_variable[type[String], baseKey] local_variable[type[List], dataModels] local_variable[type[T], dataModel] local_variable[type[Long], previousTxId] ...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[T] operator[>] identifier[multiGet] operator[SEP] identifier[List] operator[<] identifier[List] operator[<] identifier[Object] operator[>] operator[>] identifier[keys] operator[SEP] { identifier[String] identifier[baseKey]...
public ServiceFuture<FailoverGroupInner> beginForceFailoverAllowDataLossAsync(String resourceGroupName, String serverName, String failoverGroupName, final ServiceCallback<FailoverGroupInner> serviceCallback) { return ServiceFuture.fromResponse(beginForceFailoverAllowDataLossWithServiceResponseAsync(resourceGrou...
class class_name[name] begin[{] method[beginForceFailoverAllowDataLossAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, serverName, failoverGroupName, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.beginForceFailoverAllowDataLoss...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[FailoverGroupInner] operator[>] identifier[beginForceFailoverAllowDataLossAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[serverName] , identifier[String] identifier[failoverGroupName] , Keyword[fin...
public boolean checkIfEJBWorkAllowed(EJBModuleMetaDataImpl module) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // F743-15941 - By default, this flag will be false for compatibility. // For performance, this flag will be reset after the application is // fully start...
class class_name[name] begin[{] method[checkIfEJBWorkAllowed, return_type[type[boolean]], modifier[public], parameter[module]] begin[{] local_variable[type[boolean], isTraceOn] if[member[.ivCurrentlyBlockingWork]] begin[{] if[binary_operation[member[.isTraceOn], ...
Keyword[public] Keyword[boolean] identifier[checkIfEJBWorkAllowed] operator[SEP] identifier[EJBModuleMetaDataImpl] identifier[module] operator[SEP] { Keyword[final] Keyword[boolean] identifier[isTraceOn] operator[=] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[S...
protected I_CmsXmlContentValue addValue( CmsObject cms, Element parent, I_CmsXmlSchemaType type, Locale locale, int insertIndex) { // first generate the XML element for the new value Element element = type.generateXml(cms, this, parent, locale); // detach...
class class_name[name] begin[{] method[addValue, return_type[type[I_CmsXmlContentValue]], modifier[protected], parameter[cms, parent, type, locale, insertIndex]] begin[{] local_variable[type[Element], element] call[element.detach, parameter[]] call[CmsXmlGenericWrapper.c...
Keyword[protected] identifier[I_CmsXmlContentValue] identifier[addValue] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[Element] identifier[parent] , identifier[I_CmsXmlSchemaType] identifier[type] , identifier[Locale] identifier[locale] , Keyword[int] identifier[insertIndex] operator[SEP] { ...
private String collapseWhitespaces(String src) { StringBuffer ret = new StringBuffer(); boolean inws = false; for (int i = 0; i < src.length(); i++) { char ch = src.charAt(i); if (collapsews && isWhitespace(ch)) { if (!inws) ...
class class_name[name] begin[{] method[collapseWhitespaces, return_type[type[String]], modifier[private], parameter[src]] begin[{] local_variable[type[StringBuffer], ret] local_variable[type[boolean], inws] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaratio...
Keyword[private] identifier[String] identifier[collapseWhitespaces] operator[SEP] identifier[String] identifier[src] operator[SEP] { identifier[StringBuffer] identifier[ret] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[inws] operator[=] l...
public static EvaluationStrategy<Long, Long> instantiateStrategy(final Properties properties, final DataModelIF<Long, Long> trainingModel, final DataModelIF<Long, Long> testModel) throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchMethodException ...
class class_name[name] begin[{] method[instantiateStrategy, return_type[type[EvaluationStrategy]], modifier[public static], parameter[properties, trainingModel, testModel]] begin[{] local_variable[type[Double], threshold] local_variable[type[String], strategyClassName] local_variable[ty...
Keyword[public] Keyword[static] identifier[EvaluationStrategy] operator[<] identifier[Long] , identifier[Long] operator[>] identifier[instantiateStrategy] operator[SEP] Keyword[final] identifier[Properties] identifier[properties] , Keyword[final] identifier[DataModelIF] operator[<] identifier[Long] , identifier[Long...
public Object[] getArguments(Type[] formalParameters) { if (formalParameters.length == 0) { return new Object[0]; } Object[] arguments = new Object[formalParameters.length]; if (isObject(formalParameters)) { // if there is single formal parameter and it is not a value type create object instance a...
class class_name[name] begin[{] method[getArguments, return_type[type[Object]], modifier[public], parameter[formalParameters]] begin[{] if[binary_operation[member[formalParameters.length], ==, literal[0]]] begin[{] return[ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix...
Keyword[public] identifier[Object] operator[SEP] operator[SEP] identifier[getArguments] operator[SEP] identifier[Type] operator[SEP] operator[SEP] identifier[formalParameters] operator[SEP] { Keyword[if] operator[SEP] identifier[formalParameters] operator[SEP] identifier[length] operator[==] Other[0] operator[SE...
protected static int installationOrder(Skill skill) { final int len = StandardBuiltinCapacitiesProvider.SKILL_INSTALLATION_ORDER.length; if (skill instanceof BuiltinSkill) { for (int i = 0; i < len; ++i) { final Class<? extends Skill> type = StandardBuiltinCapacitiesProvider.SKILL_INSTALLATION_ORDER[i]; ...
class class_name[name] begin[{] method[installationOrder, return_type[type[int]], modifier[static protected], parameter[skill]] begin[{] local_variable[type[int], len] if[binary_operation[member[.skill], instanceof, type[BuiltinSkill]]] begin[{] ForStatement(body=BlockStatem...
Keyword[protected] Keyword[static] Keyword[int] identifier[installationOrder] operator[SEP] identifier[Skill] identifier[skill] operator[SEP] { Keyword[final] Keyword[int] identifier[len] operator[=] identifier[StandardBuiltinCapacitiesProvider] operator[SEP] identifier[SKILL_INSTALLATION_ORDER] operator[SEP] id...
@CheckResult @NonNull public final Data<T> filter(@NonNull Predicate<? super T> predicate) { return new FilterData<>(this, predicate); }
class class_name[name] begin[{] method[filter, return_type[type[Data]], modifier[final public], parameter[predicate]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=predicate, postfix_operators=[], prefix_ope...
annotation[@] identifier[CheckResult] annotation[@] identifier[NonNull] Keyword[public] Keyword[final] identifier[Data] operator[<] identifier[T] operator[>] identifier[filter] operator[SEP] annotation[@] identifier[NonNull] identifier[Predicate] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifi...
public boolean evaluate(Object target) { try { return (Boolean) expression.evaluate(target); } catch (ClassCastException e) { throw new IllegalArgumentException( "Specified expression does not evaluate to a boolean value", e); } }
class class_name[name] begin[{] method[evaluate, return_type[type[boolean]], modifier[public], parameter[target]] begin[{] TryStatement(block=[ReturnStatement(expression=Cast(expression=MethodInvocation(arguments=[MemberReference(member=target, postfix_operators=[], prefix_operators=[], qualifier=, sel...
Keyword[public] Keyword[boolean] identifier[evaluate] operator[SEP] identifier[Object] identifier[target] operator[SEP] { Keyword[try] { Keyword[return] operator[SEP] identifier[Boolean] operator[SEP] identifier[expression] operator[SEP] identifier[evaluate] operator[SEP] identifier[target] operator[S...
public Object fromStream(final byte[] iStream) throws IOException { if (iStream == null || iStream.length == 0) // NULL VALUE return null; final ByteArrayInputStream is = new ByteArrayInputStream(iStream); final ObjectInputStream in = new ObjectInputStream(is); try { return in.readObject(); ...
class class_name[name] begin[{] method[fromStream, return_type[type[Object]], modifier[public], parameter[iStream]] begin[{] if[binary_operation[binary_operation[member[.iStream], ==, literal[null]], ||, binary_operation[member[iStream.length], ==, literal[0]]]] begin[{] return[literal[null]] ...
Keyword[public] identifier[Object] identifier[fromStream] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[iStream] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[iStream] operator[==] Other[null] operator[||] identifier[iStream] oper...
private static boolean isYunOS() { try { String version = System.getProperty("ro.yunos.version"); String vmName = System.getProperty("java.vm.name"); return (vmName != null && vmName.toLowerCase().contains("lemur")) || (version != null && version.trim().le...
class class_name[name] begin[{] method[isYunOS, return_type[type[boolean]], modifier[private static], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], p...
Keyword[private] Keyword[static] Keyword[boolean] identifier[isYunOS] operator[SEP] operator[SEP] { Keyword[try] { identifier[String] identifier[version] operator[=] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[String] id...
@Override protected byte[] createTile(int z, long x, long y) { byte[] bytes = null; String zoomUrl = tileUrl; // Replace x, y, and z if (urlHasXYZ) { long yRequest = y; // If TMS, flip the y value if (tileFormat == TileFormatType.TMS) { yRequest = TileBoundingBoxUtils.getYAsOppositeTileFormat(...
class class_name[name] begin[{] method[createTile, return_type[type[byte]], modifier[protected], parameter[z, x, y]] begin[{] local_variable[type[byte], bytes] local_variable[type[String], zoomUrl] if[member[.urlHasXYZ]] begin[{] local_variable[type[long], yRequest] ...
annotation[@] identifier[Override] Keyword[protected] Keyword[byte] operator[SEP] operator[SEP] identifier[createTile] operator[SEP] Keyword[int] identifier[z] , Keyword[long] identifier[x] , Keyword[long] identifier[y] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[=] Oth...
public Resource getResource(String name, Locale locale, String encoding) throws IOException { name = UrlUtils.cleanName(name); locale = cleanLocale(locale); return loadResource(name, locale, encoding); }
class class_name[name] begin[{] method[getResource, return_type[type[Resource]], modifier[public], parameter[name, locale, encoding]] begin[{] assign[member[.name], call[UrlUtils.cleanName, parameter[member[.name]]]] assign[member[.locale], call[.cleanLocale, parameter[member[.l...
Keyword[public] identifier[Resource] identifier[getResource] operator[SEP] identifier[String] identifier[name] , identifier[Locale] identifier[locale] , identifier[String] identifier[encoding] operator[SEP] Keyword[throws] identifier[IOException] { identifier[name] operator[=] identifier[UrlUtils] operator[SEP...
@Override public CompressionInputStream createInputStream(InputStream in, Decompressor decompressor) throws IOException { checkNativeCodeLoaded(); return new BlockDecompressorStream(in, decompressor, 256*1024); }
class class_name[name] begin[{] method[createInputStream, return_type[type[CompressionInputStream]], modifier[public], parameter[in, decompressor]] begin[{] call[.checkNativeCodeLoaded, parameter[]] return[ClassCreator(arguments=[MemberReference(member=in, postfix_operators=[], prefix_o...
annotation[@] identifier[Override] Keyword[public] identifier[CompressionInputStream] identifier[createInputStream] operator[SEP] identifier[InputStream] identifier[in] , identifier[Decompressor] identifier[decompressor] operator[SEP] Keyword[throws] identifier[IOException] { identifier[checkNativeCodeLoaded] o...
private void setDbCodeCollection() { dbCodeCollection = new ArrayList<String>(shardingNum); int codeLength = Integer.toBinaryString(shardingNum - 1).length(); for (int i = 0; i < shardingNum; i++) { String dbcode = Integer.toBinaryString(i); for (int j = dbcode.length(); ...
class class_name[name] begin[{] method[setDbCodeCollection, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.dbCodeCollection], ClassCreator(arguments=[MemberReference(member=shardingNum, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None,...
Keyword[private] Keyword[void] identifier[setDbCodeCollection] operator[SEP] operator[SEP] { identifier[dbCodeCollection] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] identifier[shardingNum] operator[SEP] operator[SEP] Keyword[int] identifier[codeLength]...
public final void contains(@NullableDecl Object element) { if (!Iterables.contains(actual(), element)) { List<Object> elementList = newArrayList(element); if (hasMatchingToStringPair(actual(), elementList)) { failWithoutActual( fact("expected to contain", element), fact("...
class class_name[name] begin[{] method[contains, return_type[void], modifier[final public], parameter[element]] begin[{] if[call[Iterables.contains, parameter[call[.actual, parameter[]], member[.element]]]] begin[{] local_variable[type[List], elementList] if[...
Keyword[public] Keyword[final] Keyword[void] identifier[contains] operator[SEP] annotation[@] identifier[NullableDecl] identifier[Object] identifier[element] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[Iterables] operator[SEP] identifier[contains] operator[SEP] identifier[actual] operator[SE...
public synchronized TypedProperties putIfAbsent(String key, String value) { if (getProperty(key) == null) { put(key, value); } return this; }
class class_name[name] begin[{] method[putIfAbsent, return_type[type[TypedProperties]], modifier[synchronized public], parameter[key, value]] begin[{] if[binary_operation[call[.getProperty, parameter[member[.key]]], ==, literal[null]]] begin[{] call[.put, parameter[membe...
Keyword[public] Keyword[synchronized] identifier[TypedProperties] identifier[putIfAbsent] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[getProperty] operator[SEP] identifier[key] operator[SEP] operator[==] Other[null]...
private void uploadSampleFile() { mDialog = ProgressDialog.show(MainActivity.this, getText(R.string.boxsdk_Please_wait), getText(R.string.boxsdk_Please_wait)); new Thread() { @Override public void run() { try { String uploadFileName = "box_logo...
class class_name[name] begin[{] method[uploadSampleFile, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.mDialog], call[ProgressDialog.show, parameter[THIS[], call[.getText, parameter[member[R.string.boxsdk_Please_wait]]], call[.getText, parameter[member[R.string.boxs...
Keyword[private] Keyword[void] identifier[uploadSampleFile] operator[SEP] operator[SEP] { identifier[mDialog] operator[=] identifier[ProgressDialog] operator[SEP] identifier[show] operator[SEP] identifier[MainActivity] operator[SEP] Keyword[this] , identifier[getText] operator[SEP] identifier[R] operator[SEP] i...
@Override public Set<String> keySet() { Set<String> keys = new HashSet<>(); keysR(root.getLeft(), -1, keys); return keys; }
class class_name[name] begin[{] method[keySet, return_type[type[Set]], modifier[public], parameter[]] begin[{] local_variable[type[Set], keys] call[.keysR, parameter[call[root.getLeft, parameter[]], literal[1], member[.keys]]] return[member[.keys]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Set] operator[<] identifier[String] operator[>] identifier[keySet] operator[SEP] operator[SEP] { identifier[Set] operator[<] identifier[String] operator[>] identifier[keys] operator[=] Keyword[new] identifier[HashSet] operator[<] operator[>] operator[...
static PathFileObject createSimplePathFileObject(JavacPathFileManager fileManager, final Path path) { return new PathFileObject(fileManager, path) { @Override String inferBinaryName(Iterable<? extends Path> paths) { Path absPath = path.toAbsolutePath(); ...
class class_name[name] begin[{] method[createSimplePathFileObject, return_type[type[PathFileObject]], modifier[static], parameter[fileManager, path]] begin[{] return[ClassCreator(arguments=[MemberReference(member=fileManager, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberR...
Keyword[static] identifier[PathFileObject] identifier[createSimplePathFileObject] operator[SEP] identifier[JavacPathFileManager] identifier[fileManager] , Keyword[final] identifier[Path] identifier[path] operator[SEP] { Keyword[return] Keyword[new] identifier[PathFileObject] operator[SEP] identifier[fileManager...
public <T extends AmazonWebServiceRequest> T withGeneralProgressListener(ProgressListener progressListener) { setGeneralProgressListener(progressListener); @SuppressWarnings("unchecked") T t = (T) this; return t; }
class class_name[name] begin[{] method[withGeneralProgressListener, return_type[type[T]], modifier[public], parameter[progressListener]] begin[{] call[.setGeneralProgressListener, parameter[member[.progressListener]]] local_variable[type[T], t] return[member[.t]] end[}] END[...
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[AmazonWebServiceRequest] operator[>] identifier[T] identifier[withGeneralProgressListener] operator[SEP] identifier[ProgressListener] identifier[progressListener] operator[SEP] { identifier[setGeneralProgressListener] operator[SEP] identifier[...
public void setToolDefault(int tool, boolean enabled) { switch (tool) { case IBurpExtenderCallbacks.TOOL_PROXY: if (mCallbacks.loadExtensionSetting(SETTING_PROXY) == null) { jCheckBoxProxy.setSelected(enabled); } break; ...
class class_name[name] begin[{] method[setToolDefault, return_type[void], modifier[public], parameter[tool, enabled]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=TOOL_PROXY, postfix_operators=[], prefix_operators=[], qualifier=IBurpExtenderCallbacks, selectors=[])],...
Keyword[public] Keyword[void] identifier[setToolDefault] operator[SEP] Keyword[int] identifier[tool] , Keyword[boolean] identifier[enabled] operator[SEP] { Keyword[switch] operator[SEP] identifier[tool] operator[SEP] { Keyword[case] identifier[IBurpExtenderCallbacks] operator[SEP] identifier[TOOL_PRO...
ObjectStreamField[] fields() { if (fields == null) { Class<?> forCl = forClass(); if (forCl != null && isSerializable() && !forCl.isArray()) { buildFieldDescriptors(forCl.getDeclaredFields()); } else { // Externalizables or arrays do not need F...
class class_name[name] begin[{] method[fields, return_type[type[ObjectStreamField]], modifier[default], parameter[]] begin[{] if[binary_operation[member[.fields], ==, literal[null]]] begin[{] local_variable[type[Class], forCl] if[binary_operation[binary_opera...
identifier[ObjectStreamField] operator[SEP] operator[SEP] identifier[fields] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[fields] operator[==] Other[null] operator[SEP] { identifier[Class] operator[<] operator[?] operator[>] identifier[forCl] operator[=] identifier[forClass] oper...
public Collector<Point, ?, Length> toTourLength() { return Collector.of( () -> new LengthCollector(this), LengthCollector::add, LengthCollector::combine, LengthCollector::tourLength ); }
class class_name[name] begin[{] method[toTourLength, return_type[type[Collector]], modifier[public], parameter[]] begin[{] return[call[Collector.of, parameter[LambdaExpression(body=ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[])], body=None, constru...
Keyword[public] identifier[Collector] operator[<] identifier[Point] , operator[?] , identifier[Length] operator[>] identifier[toTourLength] operator[SEP] operator[SEP] { Keyword[return] identifier[Collector] operator[SEP] identifier[of] operator[SEP] operator[SEP] operator[SEP] operator[->] Keyword[new] identi...
public static LibertyVersion valueOf(String versionString) { if (versionString == null) { return null; } versionString = versionString.trim(); Matcher versionMatcher = VALID_VERSION.matcher(versionString); if (!versionMatcher.matches()) { return null; ...
class class_name[name] begin[{] method[valueOf, return_type[type[LibertyVersion]], modifier[public static], parameter[versionString]] begin[{] if[binary_operation[member[.versionString], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[LibertyVersion] identifier[valueOf] operator[SEP] identifier[String] identifier[versionString] operator[SEP] { Keyword[if] operator[SEP] identifier[versionString] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } ...
@SuppressWarnings("static-method") public boolean isAssigned(final EObject object) { assert object != null; return object.eAdapters().contains(ASSIGNMENT_MARKER); }
class class_name[name] begin[{] method[isAssigned, return_type[type[boolean]], modifier[public], parameter[object]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=object, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_o...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[boolean] identifier[isAssigned] operator[SEP] Keyword[final] identifier[EObject] identifier[object] operator[SEP] { Keyword[assert] identifier[object] operator[!=] Other[null] operator[SEP] Keyword[retu...
public final Flux<List<T>> buffer(Duration bufferingTimespan, Scheduler timer) { return buffer(interval(bufferingTimespan, timer)); }
class class_name[name] begin[{] method[buffer, return_type[type[Flux]], modifier[final public], parameter[bufferingTimespan, timer]] begin[{] return[call[.buffer, parameter[call[.interval, parameter[member[.bufferingTimespan], member[.timer]]]]]] end[}] END[}]
Keyword[public] Keyword[final] identifier[Flux] operator[<] identifier[List] operator[<] identifier[T] operator[>] operator[>] identifier[buffer] operator[SEP] identifier[Duration] identifier[bufferingTimespan] , identifier[Scheduler] identifier[timer] operator[SEP] { Keyword[return] identifier[buffer] operator...
public com.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig getNumericalStatsConfig() { if (typeCase_ == 1) { return (com.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig) type_; } return com.google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig.getDefaultInstance(); }
class class_name[name] begin[{] method[getNumericalStatsConfig, return_type[type[com]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.typeCase_], ==, literal[1]]] begin[{] return[Cast(expression=MemberReference(member=type_, postfix_operators=[], prefix_operato...
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[privacy] operator[SEP] identifier[dlp] operator[SEP] identifier[v2] operator[SEP] identifier[PrivacyMetric] operator[SEP] identifier[NumericalStatsConfig] identifier[getNumericalStatsConfig] operator[SEP] operator[SEP] { Ke...
@Override protected boolean prepare(final Context2D context, final Attributes attr, final double alpha) { if (m_list.size() < 1) { if (false == parse(attr)) { return false; } } if (m_list.size() < 1) { return...
class class_name[name] begin[{] method[prepare, return_type[type[boolean]], modifier[protected], parameter[context, attr, alpha]] begin[{] if[binary_operation[call[m_list.size, parameter[]], <, literal[1]]] begin[{] if[binary_operation[literal[false], ==, call[.parse, pa...
annotation[@] identifier[Override] Keyword[protected] Keyword[boolean] identifier[prepare] operator[SEP] Keyword[final] identifier[Context2D] identifier[context] , Keyword[final] identifier[Attributes] identifier[attr] , Keyword[final] Keyword[double] identifier[alpha] operator[SEP] { Keyword[if] operator[SEP]...
public static boolean eq(String s1, String s2, int modifier) { return isEqual(s1, s2, modifier); }
class class_name[name] begin[{] method[eq, return_type[type[boolean]], modifier[public static], parameter[s1, s2, modifier]] begin[{] return[call[.isEqual, parameter[member[.s1], member[.s2], member[.modifier]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[eq] operator[SEP] identifier[String] identifier[s1] , identifier[String] identifier[s2] , Keyword[int] identifier[modifier] operator[SEP] { Keyword[return] identifier[isEqual] operator[SEP] identifier[s1] , identifier[s2] , identifier[modifier] oper...
@CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Single<T> delaySubscription(long time, TimeUnit unit) { return delaySubscription(time, unit, Schedulers.computation()); }
class class_name[name] begin[{] method[delaySubscription, return_type[type[Single]], modifier[final public], parameter[time, unit]] begin[{] return[call[.delaySubscription, parameter[member[.time], member[.unit], call[Schedulers.computation, parameter[]]]]] end[}] END[}]
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[COMPUTATION] operator[SEP] Keyword[public] Keyword[final] identifier[Single] operator[<] identifier[T] operator[>] identifier[delaySubscription] operator[SEP] Keyword...
@Deprecated public ClientVpnEndpoint withAssociatedTargetNetworks(java.util.Collection<AssociatedTargetNetwork> associatedTargetNetworks) { setAssociatedTargetNetworks(associatedTargetNetworks); return this; }
class class_name[name] begin[{] method[withAssociatedTargetNetworks, return_type[type[ClientVpnEndpoint]], modifier[public], parameter[associatedTargetNetworks]] begin[{] call[.setAssociatedTargetNetworks, parameter[member[.associatedTargetNetworks]]] return[THIS[]] end[}] END[}]
annotation[@] identifier[Deprecated] Keyword[public] identifier[ClientVpnEndpoint] identifier[withAssociatedTargetNetworks] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[AssociatedTargetNetwork] operator[>] identifier[associatedTargetNetworks] ...
@Override public TwoPhaseIterator asTwoPhaseIterator() { if (!query.twoPhaseIteratorAllowed()) { return null; } else { TwoPhaseIterator originalTwoPhaseIterator = subSpans.asTwoPhaseIterator(); if (originalTwoPhaseIterator != null) { return new TwoPhaseIterator(originalTwoPhaseIterat...
class class_name[name] begin[{] method[asTwoPhaseIterator, return_type[type[TwoPhaseIterator]], modifier[public], parameter[]] begin[{] if[call[query.twoPhaseIteratorAllowed, parameter[]]] begin[{] return[literal[null]] else begin[{] local_variable[type[TwoPhaseI...
annotation[@] identifier[Override] Keyword[public] identifier[TwoPhaseIterator] identifier[asTwoPhaseIterator] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[query] operator[SEP] identifier[twoPhaseIteratorAllowed] operator[SEP] operator[SEP] operator[SEP] { Keyword[ret...
public static <T extends Enum> T getExtension(SlingHttpServletRequest request, T defaultValue) { String extension = request.getRequestPathInfo().getExtension(); if (extension != null) { Class type = defaultValue.getClass(); try { T value = (T) T.valueOf(type, exte...
class class_name[name] begin[{] method[getExtension, return_type[type[T]], modifier[public static], parameter[request, defaultValue]] begin[{] local_variable[type[String], extension] if[binary_operation[member[.extension], !=, literal[null]]] begin[{] local_variable[type[Cla...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Enum] operator[>] identifier[T] identifier[getExtension] operator[SEP] identifier[SlingHttpServletRequest] identifier[request] , identifier[T] identifier[defaultValue] operator[SEP] { identifier[String] identifier[extension] o...
public static XLinkConnectorView[] getViewsOfRegistration(XLinkConnectorRegistration registration) { List<XLinkConnectorView> viewsOfRegistration = new ArrayList<XLinkConnectorView>(); Map<ModelDescription, XLinkConnectorView[]> modelsToViews = registration.getModelsToViews(); for (XLinkConnecto...
class class_name[name] begin[{] method[getViewsOfRegistration, return_type[type[XLinkConnectorView]], modifier[public static], parameter[registration]] begin[{] local_variable[type[List], viewsOfRegistration] local_variable[type[Map], modelsToViews] ForStatement(body=BlockStatement(labe...
Keyword[public] Keyword[static] identifier[XLinkConnectorView] operator[SEP] operator[SEP] identifier[getViewsOfRegistration] operator[SEP] identifier[XLinkConnectorRegistration] identifier[registration] operator[SEP] { identifier[List] operator[<] identifier[XLinkConnectorView] operator[>] identifier[viewsOfReg...
@Override public final void invokeQuery(InboxAmp inbox, StubAmp actorDeliver) { try { MethodAmp method = method(); StubAmp actorMessage = serviceRef().stub(); StubStateAmp load = actorDeliver.load(actorMessage, this); load.inPipe(actorDeliver, actorMessage, ...
class class_name[name] begin[{] method[invokeQuery, return_type[void], modifier[final public], parameter[inbox, actorDeliver]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=method, p...
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[void] identifier[invokeQuery] operator[SEP] identifier[InboxAmp] identifier[inbox] , identifier[StubAmp] identifier[actorDeliver] operator[SEP] { Keyword[try] { identifier[MethodAmp] identifier[method] operator[=] identifier[me...
@Override public String fixPropertyName(String name) { name = super.fixPropertyName(name); if ("cssFloat".equals(name)) { return "styleFloat"; } else if ("class".equals(name)) { return "className"; } return name; }
class class_name[name] begin[{] method[fixPropertyName, return_type[type[String]], modifier[public], parameter[name]] begin[{] assign[member[.name], SuperMethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fixPro...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[fixPropertyName] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[name] operator[=] Keyword[super] operator[SEP] identifier[fixPropertyName] operator[SEP] identifier[name] operator[SEP] operator[SEP] Keyw...
public static String snakeToCamel(String snake, boolean upper) { StringBuilder sb = new StringBuilder(); boolean firstWord = true; for (String word : snake.split("_")) { if (!word.isEmpty()) { if (firstWord && !upper) { sb.append(word.toLowerCase()...
class class_name[name] begin[{] method[snakeToCamel, return_type[type[String]], modifier[public static], parameter[snake, upper]] begin[{] local_variable[type[StringBuilder], sb] local_variable[type[boolean], firstWord] ForStatement(body=BlockStatement(label=None, statements=[IfStatemen...
Keyword[public] Keyword[static] identifier[String] identifier[snakeToCamel] operator[SEP] identifier[String] identifier[snake] , Keyword[boolean] identifier[upper] operator[SEP] { identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP...
public static JSpinner createSpinner( SpinnerModel model, final int fractionDigits) { return new JSpinner(model) { /** * Serial UID */ private static final long serialVersionUID = -9185142711286020504L; @Override ...
class class_name[name] begin[{] method[createSpinner, return_type[type[JSpinner]], modifier[public static], parameter[model, fractionDigits]] begin[{] return[ClassCreator(arguments=[MemberReference(member=model, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=[FieldDeclarati...
Keyword[public] Keyword[static] identifier[JSpinner] identifier[createSpinner] operator[SEP] identifier[SpinnerModel] identifier[model] , Keyword[final] Keyword[int] identifier[fractionDigits] operator[SEP] { Keyword[return] Keyword[new] identifier[JSpinner] operator[SEP] identifier[model] operator[SEP] { ...
public void marshall(ShareResult shareResult, ProtocolMarshaller protocolMarshaller) { if (shareResult == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(shareResult.getPrincipalId(), PRINCIPALID_BIND...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[shareResult, protocolMarshaller]] begin[{] if[binary_operation[member[.shareResult], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operato...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ShareResult] identifier[shareResult] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[shareResult] operator[==] Other[null] operator[SEP] { Keyword[throw] Ke...
@SuppressWarnings("unchecked") @Override public EList<IfcRelAssignsToControl> getControls() { return (EList<IfcRelAssignsToControl>) eGet(Ifc4Package.Literals.IFC_CONTROL__CONTROLS, true); }
class class_name[name] begin[{] method[getControls, return_type[type[EList]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_CONTROL__CONTROLS, postfix_operators=[], prefix_operators=[], qualifier=Ifc4Package.Literals, selectors=[])...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[EList] operator[<] identifier[IfcRelAssignsToControl] operator[>] identifier[getControls] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[ELi...
@Transactional public void deleteNamespace(String namespace) { List<L10nString> namespaceEntities = getL10nStrings(namespace); dataService.delete(L10N_STRING, namespaceEntities.stream()); }
class class_name[name] begin[{] method[deleteNamespace, return_type[void], modifier[public], parameter[namespace]] begin[{] local_variable[type[List], namespaceEntities] call[dataService.delete, parameter[member[.L10N_STRING], call[namespaceEntities.stream, parameter[]]]] end[}] END...
annotation[@] identifier[Transactional] Keyword[public] Keyword[void] identifier[deleteNamespace] operator[SEP] identifier[String] identifier[namespace] operator[SEP] { identifier[List] operator[<] identifier[L10nString] operator[>] identifier[namespaceEntities] operator[=] identifier[getL10nStrings] operator[SE...
@SuppressWarnings({ "rawtypes", "unchecked" }) @BackpressureSupport(BackpressureKind.FULL) @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Flowable<T> concatArrayEager(MaybeSource<? extends T>... sources) { return Flowable.fromArray(sources).concatMapEager((Function)...
class class_name[name] begin[{] method[concatArrayEager, return_type[type[Flowable]], modifier[public static], parameter[sources]] begin[{] return[call[Flowable.fromArray, parameter[member[.sources]]]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[FULL] operator[SEP] annotation[@] identifier[CheckReturnValue] annotation[@] identifie...
public void setPosition(int newIndex) { if (index != newIndex) { if (index == -1 || index > newIndex) { pos = 0; index = 0; } else { index++; if (length != NULL_LENGTH) { pos += length; } } for (; index <= newIndex; index++) { if (in...
class class_name[name] begin[{] method[setPosition, return_type[void], modifier[public], parameter[newIndex]] begin[{] if[binary_operation[member[.index], !=, member[.newIndex]]] begin[{] if[binary_operation[binary_operation[member[.index], ==, literal[1]], ||, binary_op...
Keyword[public] Keyword[void] identifier[setPosition] operator[SEP] Keyword[int] identifier[newIndex] operator[SEP] { Keyword[if] operator[SEP] identifier[index] operator[!=] identifier[newIndex] operator[SEP] { Keyword[if] operator[SEP] identifier[index] operator[==] operator[-] Other[1] operator[||]...
public static AsyncWork<XMLDocument, Exception> create(XMLStreamEventsAsync stream) { XMLDocument doc = new XMLDocument(); AsyncWork<XMLDocument, Exception> result = new AsyncWork<>(); create(doc, stream, result, new SynchronizationPoint<>(true)); return result; }
class class_name[name] begin[{] method[create, return_type[type[AsyncWork]], modifier[public static], parameter[stream]] begin[{] local_variable[type[XMLDocument], doc] local_variable[type[AsyncWork], result] call[.create, parameter[member[.doc], member[.stream], member[.result]...
Keyword[public] Keyword[static] identifier[AsyncWork] operator[<] identifier[XMLDocument] , identifier[Exception] operator[>] identifier[create] operator[SEP] identifier[XMLStreamEventsAsync] identifier[stream] operator[SEP] { identifier[XMLDocument] identifier[doc] operator[=] Keyword[new] identifier[XMLDocume...