code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
Collection<QProfileDto> getChildProfiles() { loadDescendants(); return getProfiles().stream() .flatMap(p -> profilesByParentUuid.get(p.getKee()).stream()) .collect(Collectors.toList()); }
class class_name[name] begin[{] method[getChildProfiles, return_type[type[Collection]], modifier[default], parameter[]] begin[{] call[.loadDescendants, parameter[]] return[call[.getProfiles, parameter[]]] end[}] END[}]
identifier[Collection] operator[<] identifier[QProfileDto] operator[>] identifier[getChildProfiles] operator[SEP] operator[SEP] { identifier[loadDescendants] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[getProfiles] operator[SEP] operator[SEP] operator[SEP] identifier[stream] operator[SEP...
@Override public EEnum getIfcSpatialZoneTypeEnum() { if (ifcSpatialZoneTypeEnumEEnum == null) { ifcSpatialZoneTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(1068); } return ifcSpatialZoneTypeEnumEEnum; }
class class_name[name] begin[{] method[getIfcSpatialZoneTypeEnum, return_type[type[EEnum]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcSpatialZoneTypeEnumEEnum], ==, literal[null]]] begin[{] assign[member[.ifcSpatialZoneTypeEnumEEnum], Cast(ex...
annotation[@] identifier[Override] Keyword[public] identifier[EEnum] identifier[getIfcSpatialZoneTypeEnum] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcSpatialZoneTypeEnumEEnum] operator[==] Other[null] operator[SEP] { identifier[ifcSpatialZoneTypeEnumEEnum] operator[=] operat...
private static void getLeafNodes( TreeModel treeModel, Object node, Collection<Object> leafNodes) { if (node == null) { return; } int childCount = treeModel.getChildCount(node); if (childCount == 0) { leafNodes.add(node); ...
class class_name[name] begin[{] method[getLeafNodes, return_type[void], modifier[private static], parameter[treeModel, node, leafNodes]] begin[{] if[binary_operation[member[.node], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] local_vari...
Keyword[private] Keyword[static] Keyword[void] identifier[getLeafNodes] operator[SEP] identifier[TreeModel] identifier[treeModel] , identifier[Object] identifier[node] , identifier[Collection] operator[<] identifier[Object] operator[>] identifier[leafNodes] operator[SEP] { Keyword[if] operator[SEP] identifier[...
protected ScopeImpl getScopeActivity() { ScopeImpl scope = null; // this if condition is important during process instance startup // where the activity of the process instance execution may not be aligned // with the execution tree if (isProcessInstanceExecution()) { scope = getProcessDefinit...
class class_name[name] begin[{] method[getScopeActivity, return_type[type[ScopeImpl]], modifier[protected], parameter[]] begin[{] local_variable[type[ScopeImpl], scope] if[call[.isProcessInstanceExecution, parameter[]]] begin[{] assign[member[.scope], call[.getPr...
Keyword[protected] identifier[ScopeImpl] identifier[getScopeActivity] operator[SEP] operator[SEP] { identifier[ScopeImpl] identifier[scope] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[isProcessInstanceExecution] operator[SEP] operator[SEP] operator[SEP] { identifier[scop...
public static void flip( Polygon2D_I32 a ) { int N = a.size(); int H = N/2; for (int i = 1; i <= H; i++) { int j = N-i; Point2D_I32 tmp = a.vertexes.data[i]; a.vertexes.data[i] = a.vertexes.data[j]; a.vertexes.data[j] = tmp; } }
class class_name[name] begin[{] method[flip, return_type[void], modifier[public static], parameter[a]] begin[{] local_variable[type[int], N] local_variable[type[int], H] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Variab...
Keyword[public] Keyword[static] Keyword[void] identifier[flip] operator[SEP] identifier[Polygon2D_I32] identifier[a] operator[SEP] { Keyword[int] identifier[N] operator[=] identifier[a] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[H] operator[=] identifier[N] o...
@Override public void receiveResponse(Tree message) { // Verify protocol version if (checkVersion) { String ver = message.get("ver", "unknown"); if (!PROTOCOL_VERSION.equals(ver)) { logger.warn("Invalid protocol version (" + ver + ")!"); return; } } // Get response's unique ID String id = ...
class class_name[name] begin[{] method[receiveResponse, return_type[void], modifier[public], parameter[message]] begin[{] if[member[.checkVersion]] begin[{] local_variable[type[String], ver] if[call[PROTOCOL_VERSION.equals, parameter[member[.ver]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[receiveResponse] operator[SEP] identifier[Tree] identifier[message] operator[SEP] { Keyword[if] operator[SEP] identifier[checkVersion] operator[SEP] { identifier[String] identifier[ver] operator[=] identifier[message] operator...
public CmsJspNavElement getNavigationForResource(String sitePath) { CmsJspNavElement result = getNavigationForResource(sitePath, CmsResourceFilter.DEFAULT, false); if ((result != null) && (result.getNavContext() == null)) { result.setNavContext(new NavContext(this, Visibility.navigation, Cm...
class class_name[name] begin[{] method[getNavigationForResource, return_type[type[CmsJspNavElement]], modifier[public], parameter[sitePath]] begin[{] local_variable[type[CmsJspNavElement], result] if[binary_operation[binary_operation[member[.result], !=, literal[null]], &&, binary_opera...
Keyword[public] identifier[CmsJspNavElement] identifier[getNavigationForResource] operator[SEP] identifier[String] identifier[sitePath] operator[SEP] { identifier[CmsJspNavElement] identifier[result] operator[=] identifier[getNavigationForResource] operator[SEP] identifier[sitePath] , identifier[CmsResourceFilt...
@BetaApi public final Operation invalidateCacheUrlMap( ProjectGlobalUrlMapName urlMap, CacheInvalidationRule cacheInvalidationRuleResource) { InvalidateCacheUrlMapHttpRequest request = InvalidateCacheUrlMapHttpRequest.newBuilder() .setUrlMap(urlMap == null ? null : urlMap.toString()) ...
class class_name[name] begin[{] method[invalidateCacheUrlMap, return_type[type[Operation]], modifier[final public], parameter[urlMap, cacheInvalidationRuleResource]] begin[{] local_variable[type[InvalidateCacheUrlMapHttpRequest], request] return[call[.invalidateCacheUrlMap, parameter[member[.re...
annotation[@] identifier[BetaApi] Keyword[public] Keyword[final] identifier[Operation] identifier[invalidateCacheUrlMap] operator[SEP] identifier[ProjectGlobalUrlMapName] identifier[urlMap] , identifier[CacheInvalidationRule] identifier[cacheInvalidationRuleResource] operator[SEP] { identifier[InvalidateCacheUr...
public Document createDocument(String[] tokenstring) { this.lexicon.incrementDocCount(); return new SimpleDocument(tokenstring, this.lexicon, true); }
class class_name[name] begin[{] method[createDocument, return_type[type[Document]], modifier[public], parameter[tokenstring]] begin[{] THIS[member[None.lexicon]call[None.incrementDocCount, parameter[]]] return[ClassCreator(arguments=[MemberReference(member=tokenstring, postfix_operators...
Keyword[public] identifier[Document] identifier[createDocument] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[tokenstring] operator[SEP] { Keyword[this] operator[SEP] identifier[lexicon] operator[SEP] identifier[incrementDocCount] operator[SEP] operator[SEP] operator[SEP] Keyword[return...
@Override public void drawWithTransforms(final Context2D context, final double alpha, final BoundingBox bounds) { if ((context.isSelection()) && (false == isListening())) { return; } if (context.isDrag() || isVisible()) { context.saveContainer(); ...
class class_name[name] begin[{] method[drawWithTransforms, return_type[void], modifier[public], parameter[context, alpha, bounds]] begin[{] if[binary_operation[call[context.isSelection, parameter[]], &&, binary_operation[literal[false], ==, call[.isListening, parameter[]]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[drawWithTransforms] operator[SEP] Keyword[final] identifier[Context2D] identifier[context] , Keyword[final] Keyword[double] identifier[alpha] , Keyword[final] identifier[BoundingBox] identifier[bounds] operator[SEP] { Keyword[if] opera...
public String printSolution(Iterable<Variable> solution) { String result = ""; for (Variable var : solution) { result += printVariableBinding(var) + "\n"; } return result; }
class class_name[name] begin[{] method[printSolution, return_type[type[String]], modifier[public], parameter[solution]] begin[{] local_variable[type[String], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(me...
Keyword[public] identifier[String] identifier[printSolution] operator[SEP] identifier[Iterable] operator[<] identifier[Variable] operator[>] identifier[solution] operator[SEP] { identifier[String] identifier[result] operator[=] literal[String] operator[SEP] Keyword[for] operator[SEP] identifier[Variable] identif...
@Override public List<CommerceTaxFixedRate> getCommerceTaxFixedRates(int start, int end) { return commerceTaxFixedRatePersistence.findAll(start, end); }
class class_name[name] begin[{] method[getCommerceTaxFixedRates, return_type[type[List]], modifier[public], parameter[start, end]] begin[{] return[call[commerceTaxFixedRatePersistence.findAll, parameter[member[.start], member[.end]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CommerceTaxFixedRate] operator[>] identifier[getCommerceTaxFixedRates] operator[SEP] Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SEP] { Keyword[return] identifier[commerceTaxFixedRatePersistence...
@Override public GetOperationResult getOperation(GetOperationRequest request) { request = beforeClientExecution(request); return executeGetOperation(request); }
class class_name[name] begin[{] method[getOperation, return_type[type[GetOperationResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetOperation, parameter[member[.request]]]] ...
annotation[@] identifier[Override] Keyword[public] identifier[GetOperationResult] identifier[getOperation] operator[SEP] identifier[GetOperationRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[S...
public static EventCollection list(EventListParams params, RequestOptions options) throws StripeException { return requestCollection(classUrl(Event.class), params, EventCollection.class, options); }
class class_name[name] begin[{] method[list, return_type[type[EventCollection]], modifier[public static], parameter[params, options]] begin[{] return[call[.requestCollection, parameter[call[.classUrl, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=Ref...
Keyword[public] Keyword[static] identifier[EventCollection] identifier[list] operator[SEP] identifier[EventListParams] identifier[params] , identifier[RequestOptions] identifier[options] operator[SEP] Keyword[throws] identifier[StripeException] { Keyword[return] identifier[requestCollection] operator[SEP] ident...
public void exportEmitter() { if (selected == null) { return; } chooser.setDialogTitle("Save"); int resp = chooser.showSaveDialog(this); if (resp == JFileChooser.APPROVE_OPTION) { File file = chooser.getSelectedFile(); if (!file.getName().endsWith(".xml")) { file = new File(file.getAbs...
class class_name[name] begin[{] method[exportEmitter, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.selected], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] call[chooser.setDialogTitle, pa...
Keyword[public] Keyword[void] identifier[exportEmitter] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[selected] operator[==] Other[null] operator[SEP] { Keyword[return] operator[SEP] } identifier[chooser] operator[SEP] identifier[setDialogTitle] operator[SEP] literal...
private boolean isVisible(RuleInfo rule, ViewPort viewPort) { if (rule == null) { return true; } double minResolution = Double.MAX_VALUE; double maxResolution = Double.MIN_VALUE; if (rule.getMinScaleDenominator() != null && rule.getMinScaleDenominator().getMinScaleDenominator() != 0) { maxResolution = ...
class class_name[name] begin[{] method[isVisible, return_type[type[boolean]], modifier[private], parameter[rule, viewPort]] begin[{] if[binary_operation[member[.rule], ==, literal[null]]] begin[{] return[literal[true]] else begin[{] None end[}] local_variable...
Keyword[private] Keyword[boolean] identifier[isVisible] operator[SEP] identifier[RuleInfo] identifier[rule] , identifier[ViewPort] identifier[viewPort] operator[SEP] { Keyword[if] operator[SEP] identifier[rule] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] ...
public ManagedInstanceKeyInner get(String resourceGroupName, String managedInstanceName, String keyName) { return getWithServiceResponseAsync(resourceGroupName, managedInstanceName, keyName).toBlocking().single().body(); }
class class_name[name] begin[{] method[get, return_type[type[ManagedInstanceKeyInner]], modifier[public], parameter[resourceGroupName, managedInstanceName, keyName]] begin[{] return[call[.getWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.managedInstanceName], member[.keyName]]]...
Keyword[public] identifier[ManagedInstanceKeyInner] identifier[get] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[managedInstanceName] , identifier[String] identifier[keyName] operator[SEP] { Keyword[return] identifier[getWithServiceResponseAsync] operator[SEP] ...
public void write(String str, int off, int len) { char[] chars = new char[len]; str.getChars(off, off+len, chars, 0); buf.append(chars); }
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[str, off, len]] begin[{] local_variable[type[char], chars] call[str.getChars, parameter[member[.off], binary_operation[member[.off], +, member[.len]], member[.chars], literal[0]]] ...
Keyword[public] Keyword[void] identifier[write] operator[SEP] identifier[String] identifier[str] , Keyword[int] identifier[off] , Keyword[int] identifier[len] operator[SEP] { Keyword[char] operator[SEP] operator[SEP] identifier[chars] operator[=] Keyword[new] Keyword[char] operator[SEP] identifier[len] operato...
protected void onPostTransform(View view, float position) { if(mCustomAnimationInterface != null){ if(position == -1 || position == 1){ mCustomAnimationInterface.onCurrentItemDisappear(view); isApp = true; }else if(position == 0){ mCustomAn...
class class_name[name] begin[{] method[onPostTransform, return_type[void], modifier[protected], parameter[view, position]] begin[{] if[binary_operation[member[.mCustomAnimationInterface], !=, literal[null]]] begin[{] if[binary_operation[binary_operation[member[.position]...
Keyword[protected] Keyword[void] identifier[onPostTransform] operator[SEP] identifier[View] identifier[view] , Keyword[float] identifier[position] operator[SEP] { Keyword[if] operator[SEP] identifier[mCustomAnimationInterface] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identif...
public void inverse(double[] a) { int n = a.length; if (!Math.isPower2(n)) { throw new IllegalArgumentException("The data vector size is not a power of 2."); } if (n < ncof) { throw new IllegalArgumentException("The data vector size is less than wavelet coeffici...
class class_name[name] begin[{] method[inverse, return_type[void], modifier[public], parameter[a]] begin[{] local_variable[type[int], n] if[call[Math.isPower2, parameter[member[.n]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pr...
Keyword[public] Keyword[void] identifier[inverse] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[a] operator[SEP] { Keyword[int] identifier[n] operator[=] identifier[a] operator[SEP] identifier[length] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[Math] operator[SEP] identi...
private synchronized void removeTail() { I_CmsLruCacheObject oldTail = m_listTail; if (oldTail != null) { I_CmsLruCacheObject newTail = oldTail.getNextLruObject(); // set the list pointers correct if (newTail != null) { // there are still objects rem...
class class_name[name] begin[{] method[removeTail, return_type[void], modifier[synchronized private], parameter[]] begin[{] local_variable[type[I_CmsLruCacheObject], oldTail] if[binary_operation[member[.oldTail], !=, literal[null]]] begin[{] local_variable[type[I_CmsLruCache...
Keyword[private] Keyword[synchronized] Keyword[void] identifier[removeTail] operator[SEP] operator[SEP] { identifier[I_CmsLruCacheObject] identifier[oldTail] operator[=] identifier[m_listTail] operator[SEP] Keyword[if] operator[SEP] identifier[oldTail] operator[!=] Other[null] operator[SEP] { identifi...
public static <T> T getValue(ValuedProperty<T> property) { return (property == null) ? null : property.getValue(); }
class class_name[name] begin[{] method[getValue, return_type[type[T]], modifier[public static], parameter[property]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=property, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Liter...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[getValue] operator[SEP] identifier[ValuedProperty] operator[<] identifier[T] operator[>] identifier[property] operator[SEP] { Keyword[return] operator[SEP] identifier[property] operator[==] Other[null] operator[SEP] op...
protected final int isLeft(double[] a, double[] b, double[] o) { final double cross = getRX(a, o) * getRY(b, o) - getRY(a, o) * getRX(b, o); if(cross == 0) { // Compare manhattan distances - same angle! final double dista = Math.abs(getRX(a, o)) + Math.abs(getRY(a, o)); final double distb = Ma...
class class_name[name] begin[{] method[isLeft, return_type[type[int]], modifier[final protected], parameter[a, b, o]] begin[{] local_variable[type[double], cross] if[binary_operation[member[.cross], ==, literal[0]]] begin[{] local_variable[type[double], dista] lo...
Keyword[protected] Keyword[final] Keyword[int] identifier[isLeft] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[a] , Keyword[double] operator[SEP] operator[SEP] identifier[b] , Keyword[double] operator[SEP] operator[SEP] identifier[o] operator[SEP] { Keyword[final] Keyword[double] identi...
public static Year randomYearBefore(Year before) { checkArgument(before != null, "Before must be non-null"); return randomYearBefore(before.getValue()); }
class class_name[name] begin[{] method[randomYearBefore, return_type[type[Year]], modifier[public static], parameter[before]] begin[{] call[.checkArgument, parameter[binary_operation[member[.before], !=, literal[null]], literal["Before must be non-null"]]] return[call[.randomYearBefore,...
Keyword[public] Keyword[static] identifier[Year] identifier[randomYearBefore] operator[SEP] identifier[Year] identifier[before] operator[SEP] { identifier[checkArgument] operator[SEP] identifier[before] operator[!=] Other[null] , literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[randomYearB...
public static Stack getStack() { Stack stack = interceptionContexts.get(); if (stack == null) { stack = new Stack(interceptionContexts); interceptionContexts.set(stack); } return stack; }
class class_name[name] begin[{] method[getStack, return_type[type[Stack]], modifier[public static], parameter[]] begin[{] local_variable[type[Stack], stack] if[binary_operation[member[.stack], ==, literal[null]]] begin[{] assign[member[.stack], ClassCreator(argum...
Keyword[public] Keyword[static] identifier[Stack] identifier[getStack] operator[SEP] operator[SEP] { identifier[Stack] identifier[stack] operator[=] identifier[interceptionContexts] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[stack] operator[==] Ot...
public static void create( String baseName , File dataFolder , int blockCount , int blockSize , boolean forceSync ) throws DataStoreException { if (blockCount <= 0) throw n...
class class_name[name] begin[{] method[create, return_type[void], modifier[public static], parameter[baseName, dataFolder, blockCount, blockSize, forceSync]] begin[{] if[binary_operation[member[.blockCount], <=, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(pos...
Keyword[public] Keyword[static] Keyword[void] identifier[create] operator[SEP] identifier[String] identifier[baseName] , identifier[File] identifier[dataFolder] , Keyword[int] identifier[blockCount] , Keyword[int] identifier[blockSize] , Keyword[boolean] identifier[forceSync] operator[SEP] Keyword[throws] identifie...
public static PolygonOptions createPolygonOptions(GeoPackage geoPackage, FeatureRow featureRow, float density) { PolygonOptions polygonOptions = new PolygonOptions(); setFeatureStyle(polygonOptions, geoPackage, featureRow, density); return polygonOptions; }
class class_name[name] begin[{] method[createPolygonOptions, return_type[type[PolygonOptions]], modifier[public static], parameter[geoPackage, featureRow, density]] begin[{] local_variable[type[PolygonOptions], polygonOptions] call[.setFeatureStyle, parameter[member[.polygonOptions], me...
Keyword[public] Keyword[static] identifier[PolygonOptions] identifier[createPolygonOptions] operator[SEP] identifier[GeoPackage] identifier[geoPackage] , identifier[FeatureRow] identifier[featureRow] , Keyword[float] identifier[density] operator[SEP] { identifier[PolygonOptions] identifier[polygonOptions] oper...
public ApiSuccessResponse setAgentStateNotReady(NotReadyData notReadyData) throws ApiException { ApiResponse<ApiSuccessResponse> resp = setAgentStateNotReadyWithHttpInfo(notReadyData); return resp.getData(); }
class class_name[name] begin[{] method[setAgentStateNotReady, return_type[type[ApiSuccessResponse]], modifier[public], parameter[notReadyData]] begin[{] local_variable[type[ApiResponse], resp] return[call[resp.getData, parameter[]]] end[}] END[}]
Keyword[public] identifier[ApiSuccessResponse] identifier[setAgentStateNotReady] operator[SEP] identifier[NotReadyData] identifier[notReadyData] operator[SEP] Keyword[throws] identifier[ApiException] { identifier[ApiResponse] operator[<] identifier[ApiSuccessResponse] operator[>] identifier[resp] operator[=] ide...
public static byte[] toArray(Collection<? extends Number> bytes) { byte[] array = new byte[bytes.size()]; Iterator<? extends Number> iter = bytes.iterator(); for (int i = 0; i < bytes.size(); i++) { array[i] = iter.next().byteValue(); } return array; }
class class_name[name] begin[{] method[toArray, return_type[type[byte]], modifier[public static], parameter[bytes]] begin[{] local_variable[type[byte], array] local_variable[type[Iterator], iter] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Ass...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[toArray] operator[SEP] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[Number] operator[>] identifier[bytes] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[array] operator[=] Keyw...
public void setFlowLogs(java.util.Collection<FlowLog> flowLogs) { if (flowLogs == null) { this.flowLogs = null; return; } this.flowLogs = new com.amazonaws.internal.SdkInternalList<FlowLog>(flowLogs); }
class class_name[name] begin[{] method[setFlowLogs, return_type[void], modifier[public], parameter[flowLogs]] begin[{] if[binary_operation[member[.flowLogs], ==, literal[null]]] begin[{] assign[THIS[member[None.flowLogs]], literal[null]] return[None] ...
Keyword[public] Keyword[void] identifier[setFlowLogs] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[FlowLog] operator[>] identifier[flowLogs] operator[SEP] { Keyword[if] operator[SEP] identifier[flowLogs] operator[==] Other[null] operato...
public void write(String outputLocation, String format) throws ReportException { Format reportFormat = null; try { reportFormat = Format.valueOf(format.toUpperCase()); } catch (IllegalArgumentException ex) { LOGGER.trace("ignore this exception", ex); } if...
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[outputLocation, format]] begin[{] local_variable[type[Format], reportFormat] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=reportFormat, postfix_operat...
Keyword[public] Keyword[void] identifier[write] operator[SEP] identifier[String] identifier[outputLocation] , identifier[String] identifier[format] operator[SEP] Keyword[throws] identifier[ReportException] { identifier[Format] identifier[reportFormat] operator[=] Other[null] operator[SEP] Keyword[try] { ...
public void addArtifact(SessionProvider sp, ArtifactDescriptor artifact, InputStream jarIStream, InputStream pomIStream) throws RepositoryException { Session session = currentSession(sp); Node rootNode = (Node) session.getItem(rootNodePath); Node groupId_tail = createGroupIdLayout(roo...
class class_name[name] begin[{] method[addArtifact, return_type[void], modifier[public], parameter[sp, artifact, jarIStream, pomIStream]] begin[{] local_variable[type[Session], session] local_variable[type[Node], rootNode] local_variable[type[Node], groupId_tail] local_variable[...
Keyword[public] Keyword[void] identifier[addArtifact] operator[SEP] identifier[SessionProvider] identifier[sp] , identifier[ArtifactDescriptor] identifier[artifact] , identifier[InputStream] identifier[jarIStream] , identifier[InputStream] identifier[pomIStream] operator[SEP] Keyword[throws] identifier[RepositoryExc...
public void marshall(DeleteChannelRequest deleteChannelRequest, ProtocolMarshaller protocolMarshaller) { if (deleteChannelRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteChannelReques...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[deleteChannelRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.deleteChannelRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Liter...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeleteChannelRequest] identifier[deleteChannelRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deleteChannelRequest] operator[==] Other[null] operator[SEP] { ...
public final boolean hasPermission(@Nonnull Permission p) { Authentication a = Jenkins.getAuthentication(); if (a == SYSTEM) { return true; } return hasPermission(a, p); }
class class_name[name] begin[{] method[hasPermission, return_type[type[boolean]], modifier[final public], parameter[p]] begin[{] local_variable[type[Authentication], a] if[binary_operation[member[.a], ==, member[.SYSTEM]]] begin[{] return[literal[true]] else begin[{]...
Keyword[public] Keyword[final] Keyword[boolean] identifier[hasPermission] operator[SEP] annotation[@] identifier[Nonnull] identifier[Permission] identifier[p] operator[SEP] { identifier[Authentication] identifier[a] operator[=] identifier[Jenkins] operator[SEP] identifier[getAuthentication] operator[SEP] operato...
@Override public boolean supports(AuthenticationToken token) { return super.supports(token) || (_anonymousId != null && AnonymousToken.isAnonymous(token)); }
class class_name[name] begin[{] method[supports, return_type[type[boolean]], modifier[public], parameter[token]] begin[{] return[binary_operation[SuperMethodInvocation(arguments=[MemberReference(member=token, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=supports, postfi...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[supports] operator[SEP] identifier[AuthenticationToken] identifier[token] operator[SEP] { Keyword[return] Keyword[super] operator[SEP] identifier[supports] operator[SEP] identifier[token] operator[SEP] operator[||] operator[SEP] ident...
static void setHravenQueueNamePut(Configuration jobConf, Put jobPut, JobKey jobKey, byte[] jobConfColumnPrefix) { String hRavenQueueName = HadoopConfUtil.getQueueName(jobConf); if (hRavenQueueName.equalsIgnoreCase(Constants.DEFAULT_VALUE_QUEUENAME)) { // due to a bug in hadoop2, the queue name valu...
class class_name[name] begin[{] method[setHravenQueueNamePut, return_type[void], modifier[static], parameter[jobConf, jobPut, jobKey, jobConfColumnPrefix]] begin[{] local_variable[type[String], hRavenQueueName] if[call[hRavenQueueName.equalsIgnoreCase, parameter[member[Constants.DEFAULT...
Keyword[static] Keyword[void] identifier[setHravenQueueNamePut] operator[SEP] identifier[Configuration] identifier[jobConf] , identifier[Put] identifier[jobPut] , identifier[JobKey] identifier[jobKey] , Keyword[byte] operator[SEP] operator[SEP] identifier[jobConfColumnPrefix] operator[SEP] { identifier[String...
public GetEntitlementsRequest withFilter(java.util.Map<String, java.util.List<String>> filter) { setFilter(filter); return this; }
class class_name[name] begin[{] method[withFilter, return_type[type[GetEntitlementsRequest]], modifier[public], parameter[filter]] begin[{] call[.setFilter, parameter[member[.filter]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[GetEntitlementsRequest] identifier[withFilter] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[String] operator[>...
public static int ptb2Text(Reader ptbText, Writer w) throws IOException { int numTokens = 0; PTB2TextLexer lexer = new PTB2TextLexer(ptbText); for (String token; (token = lexer.next()) != null; ) { numTokens++; w.write(token); } return numTokens; }
class class_name[name] begin[{] method[ptb2Text, return_type[type[int]], modifier[public static], parameter[ptbText, w]] begin[{] local_variable[type[int], numTokens] local_variable[type[PTB2TextLexer], lexer] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(...
Keyword[public] Keyword[static] Keyword[int] identifier[ptb2Text] operator[SEP] identifier[Reader] identifier[ptbText] , identifier[Writer] identifier[w] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[int] identifier[numTokens] operator[=] Other[0] operator[SEP] identifier[PTB2TextLexer] identi...
public ISingleItemSubscriberStream newSingleItemSubscriberStream(Number streamId) { if (isValidStreamId(streamId)) { // get SingleItemSubscriberStream defined as a prototype in red5-common.xml SingleItemSubscriberStream siss = (SingleItemSubscriberStream) scope.getContext().getBean("s...
class class_name[name] begin[{] method[newSingleItemSubscriberStream, return_type[type[ISingleItemSubscriberStream]], modifier[public], parameter[streamId]] begin[{] if[call[.isValidStreamId, parameter[member[.streamId]]]] begin[{] local_variable[type[SingleItemSubscriberStream], si...
Keyword[public] identifier[ISingleItemSubscriberStream] identifier[newSingleItemSubscriberStream] operator[SEP] identifier[Number] identifier[streamId] operator[SEP] { Keyword[if] operator[SEP] identifier[isValidStreamId] operator[SEP] identifier[streamId] operator[SEP] operator[SEP] { identifier[Sing...
public Socket createSocket() throws IOException { // // bug 6771432: // The Exception is used by HttpsClient to signal that // unconnected sockets have not been implemented. // UnsupportedOperationException uop = new UnsupportedOperationException(); ...
class class_name[name] begin[{] method[createSocket, return_type[type[Socket]], modifier[public], parameter[]] begin[{] local_variable[type[UnsupportedOperationException], uop] local_variable[type[SocketException], se] call[se.initCause, parameter[member[.uop]]] ThrowSta...
Keyword[public] identifier[Socket] identifier[createSocket] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[UnsupportedOperationException] identifier[uop] operator[=] Keyword[new] identifier[UnsupportedOperationException] operator[SEP] operator[SEP] operator[SEP] identifier[Socke...
private List<Entity> runQuery(Query query) throws DatastoreException { RunQueryRequest.Builder request = RunQueryRequest.newBuilder(); request.setQuery(query); RunQueryResponse response = datastore.runQuery(request.build()); if (response.getBatch().getMoreResults() == QueryResultBatch.MoreResultsType.N...
class class_name[name] begin[{] method[runQuery, return_type[type[List]], modifier[private], parameter[query]] begin[{] local_variable[type[RunQueryRequest], request] call[request.setQuery, parameter[member[.query]]] local_variable[type[RunQueryResponse], response] ...
Keyword[private] identifier[List] operator[<] identifier[Entity] operator[>] identifier[runQuery] operator[SEP] identifier[Query] identifier[query] operator[SEP] Keyword[throws] identifier[DatastoreException] { identifier[RunQueryRequest] operator[SEP] identifier[Builder] identifier[request] operator[=] identifi...
public void cleanupAttachmentsForCall(Context context, UUID callId) { File dir = getAttachmentsDirectoryForCall(callId, false); Utility.deleteDirectory(dir); }
class class_name[name] begin[{] method[cleanupAttachmentsForCall, return_type[void], modifier[public], parameter[context, callId]] begin[{] local_variable[type[File], dir] call[Utility.deleteDirectory, parameter[member[.dir]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[cleanupAttachmentsForCall] operator[SEP] identifier[Context] identifier[context] , identifier[UUID] identifier[callId] operator[SEP] { identifier[File] identifier[dir] operator[=] identifier[getAttachmentsDirectoryForCall] operator[SEP] identifier[callId] , literal[bool...
public static boolean apply(@NonNull ViewPosition pos, @NonNull View view) { return pos.init(view); }
class class_name[name] begin[{] method[apply, return_type[type[boolean]], modifier[public static], parameter[pos, view]] begin[{] return[call[pos.init, parameter[member[.view]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[apply] operator[SEP] annotation[@] identifier[NonNull] identifier[ViewPosition] identifier[pos] , annotation[@] identifier[NonNull] identifier[View] identifier[view] operator[SEP] { Keyword[return] identifier[pos] operator[SEP] identifier[init] operato...
long getLong(final long off) throws IOException, InterruptedException { if (off < 0 || off > zipFileSlice.len - 8) { throw new IndexOutOfBoundsException(); } if (read(off, scratch, 0, 8) < 8) { throw new EOFException("Unexpected EOF"); } return ((scratch[7...
class class_name[name] begin[{] method[getLong, return_type[type[long]], modifier[default], parameter[off]] begin[{] if[binary_operation[binary_operation[member[.off], <, literal[0]], ||, binary_operation[member[.off], >, binary_operation[member[zipFileSlice.len], -, literal[8]]]]] begin[{] ...
Keyword[long] identifier[getLong] operator[SEP] Keyword[final] Keyword[long] identifier[off] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InterruptedException] { Keyword[if] operator[SEP] identifier[off] operator[<] Other[0] operator[||] identifier[off] operator[>] identifier[zipFileSlice]...
@Override public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) { return new TransformedOperation(this.operationTransformer.transformOperation(operation), this.resultTransformer); }
class class_name[name] begin[{] method[transformOperation, return_type[type[TransformedOperation]], modifier[public], parameter[context, address, operation]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=operati...
annotation[@] identifier[Override] Keyword[public] identifier[TransformedOperation] identifier[transformOperation] operator[SEP] identifier[TransformationContext] identifier[context] , identifier[PathAddress] identifier[address] , identifier[ModelNode] identifier[operation] operator[SEP] { Keyword[return] Keyw...
public List<ElementType> toList() { List<ElementType> result = new ArrayList<ElementType>(size()); for (ElementType e : this) result.add(e); return result; }
class class_name[name] begin[{] method[toList, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], result] ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qu...
Keyword[public] identifier[List] operator[<] identifier[ElementType] operator[>] identifier[toList] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[ElementType] operator[>] identifier[result] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[ElementType] operator[>] oper...
@Override protected int readBytesWireFormat ( byte[] buffer, int bufferIndex ) throws SMBProtocolDecodingException { int start = bufferIndex; int structureSize = SMBUtil.readInt2(buffer, bufferIndex); if ( structureSize != 89 ) { throw new SMBProtocolDecodingException("Structure...
class class_name[name] begin[{] method[readBytesWireFormat, return_type[type[int]], modifier[protected], parameter[buffer, bufferIndex]] begin[{] local_variable[type[int], start] local_variable[type[int], structureSize] if[binary_operation[member[.structureSize], !=, literal[89]...
annotation[@] identifier[Override] Keyword[protected] Keyword[int] identifier[readBytesWireFormat] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[buffer] , Keyword[int] identifier[bufferIndex] operator[SEP] Keyword[throws] identifier[SMBProtocolDecodingException] { Keyword[int] identifier[st...
@Bean @ConditionalOnMissingBean({WroManagerFactory.class, ProcessorsFactory.class}) ProcessorsFactory processorsFactory(final Wro4jProperties wro4jProperties) { final List<ResourcePreProcessor> preProcessors = new ArrayList<>(); if (wro4jProperties.getPreProcessors() != null) { for (Class<? extends ResourcePre...
class class_name[name] begin[{] method[processorsFactory, return_type[type[ProcessorsFactory]], modifier[default], parameter[wro4jProperties]] begin[{] local_variable[type[List], preProcessors] if[binary_operation[call[wro4jProperties.getPreProcessors, parameter[]], !=, literal[null]]] ...
annotation[@] identifier[Bean] annotation[@] identifier[ConditionalOnMissingBean] operator[SEP] { identifier[WroManagerFactory] operator[SEP] Keyword[class] , identifier[ProcessorsFactory] operator[SEP] Keyword[class] } operator[SEP] identifier[ProcessorsFactory] identifier[processorsFactory] operator[SEP] K...
public static String getExternalVariable(String var) { String value = System.getProperty(var); if (StringUtilities.isEmpty(value)) { value = System.getenv(var); } return StringUtilities.isEmpty(value) ? null : value; }
class class_name[name] begin[{] method[getExternalVariable, return_type[type[String]], modifier[public static], parameter[var]] begin[{] local_variable[type[String], value] if[call[StringUtilities.isEmpty, parameter[member[.value]]]] begin[{] assign[member[.value...
Keyword[public] Keyword[static] identifier[String] identifier[getExternalVariable] operator[SEP] identifier[String] identifier[var] operator[SEP] { identifier[String] identifier[value] operator[=] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] identifier[var] operator[SEP] operator[SEP] K...
@Override public com.liferay.commerce.model.CommerceOrder deleteCommerceOrder( com.liferay.commerce.model.CommerceOrder commerceOrder) throws com.liferay.portal.kernel.exception.PortalException { return _commerceOrderLocalService.deleteCommerceOrder(commerceOrder); }
class class_name[name] begin[{] method[deleteCommerceOrder, return_type[type[com]], modifier[public], parameter[commerceOrder]] begin[{] return[call[_commerceOrderLocalService.deleteCommerceOrder, parameter[member[.commerceOrder]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[model] operator[SEP] identifier[CommerceOrder] identifier[deleteCommerceOrder] operator[SEP] identifier[com] operator[SEP] identifier[liferay] operator[SEP] id...
static int join6(FileDescriptor fd, byte[] group, int index, byte[] source) throws IOException { return joinOrDrop6(true, fd, group, index, source); }
class class_name[name] begin[{] method[join6, return_type[type[int]], modifier[static], parameter[fd, group, index, source]] begin[{] return[call[.joinOrDrop6, parameter[literal[true], member[.fd], member[.group], member[.index], member[.source]]]] end[}] END[}]
Keyword[static] Keyword[int] identifier[join6] operator[SEP] identifier[FileDescriptor] identifier[fd] , Keyword[byte] operator[SEP] operator[SEP] identifier[group] , Keyword[int] identifier[index] , Keyword[byte] operator[SEP] operator[SEP] identifier[source] operator[SEP] Keyword[throws] identifier[IOException] {...
public static String escape(String str) { StringBuffer result = new StringBuffer(); StringTokenizer tokenizer = new StringTokenizer(str, DELIMITER, true); while(tokenizer.hasMoreTokens()) { String currentToken = tokenizer.nextToken(); if(ESCAPED_CHARS.containsKey(currentToken)) { result....
class class_name[name] begin[{] method[escape, return_type[type[String]], modifier[public static], parameter[str]] begin[{] local_variable[type[StringBuffer], result] local_variable[type[StringTokenizer], tokenizer] while[call[tokenizer.hasMoreTokens, parameter[]]] begin[{] ...
Keyword[public] Keyword[static] identifier[String] identifier[escape] operator[SEP] identifier[String] identifier[str] operator[SEP] { identifier[StringBuffer] identifier[result] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] operator[SEP] operator[SEP] identifier[StringTokenizer] identifier[tok...
private static boolean endsWith(byte[] subject, byte[] suffix) { int start = subject.length - suffix.length; if (start < 0) { return false; } for (int i = start; i < subject.length; i++) { if (subject[i] != suffix[i - start]) { return false; } } return true; }
class class_name[name] begin[{] method[endsWith, return_type[type[boolean]], modifier[private static], parameter[subject, suffix]] begin[{] local_variable[type[int], start] if[binary_operation[member[.start], <, literal[0]]] begin[{] return[literal[false]] else begin...
Keyword[private] Keyword[static] Keyword[boolean] identifier[endsWith] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[subject] , Keyword[byte] operator[SEP] operator[SEP] identifier[suffix] operator[SEP] { Keyword[int] identifier[start] operator[=] identifier[subject] operator[SEP] identifie...
public static <T> JoinerQuery<T, Long> count(EntityPath<T> from) { JoinerQueryBase<T, Long> request = new JoinerQueryBase<>(from, true); request.distinct(false); return request; }
class class_name[name] begin[{] method[count, return_type[type[JoinerQuery]], modifier[public static], parameter[from]] begin[{] local_variable[type[JoinerQueryBase], request] call[request.distinct, parameter[literal[false]]] return[member[.request]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[JoinerQuery] operator[<] identifier[T] , identifier[Long] operator[>] identifier[count] operator[SEP] identifier[EntityPath] operator[<] identifier[T] operator[>] identifier[from] operator[SEP] { identifier[JoinerQueryBase] operato...
public Map<String, String> getLayoutMappings() { String mappingsValues = environment.getProperty("mustache.layoutMappings", MustacheSettings.LAYOUT_MAPPINGS).trim(); if (mappingsValues.isEmpty()) { return emptyMap(); } Map<String, String> mappings = new HashMap<String, String>(); String[] values = mappin...
class class_name[name] begin[{] method[getLayoutMappings, return_type[type[Map]], modifier[public], parameter[]] begin[{] local_variable[type[String], mappingsValues] if[call[mappingsValues.isEmpty, parameter[]]] begin[{] return[call[.emptyMap, parameter[]]] else beg...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[getLayoutMappings] operator[SEP] operator[SEP] { identifier[String] identifier[mappingsValues] operator[=] identifier[environment] operator[SEP] identifier[getProperty] operator[SEP] literal[String] , ide...
public void addSequence(List<Long> sleeps) { sleepHistogram.addAll(sleeps); sleepSequences.add(new SleepSequence(sleeps)); }
class class_name[name] begin[{] method[addSequence, return_type[void], modifier[public], parameter[sleeps]] begin[{] call[sleepHistogram.addAll, parameter[member[.sleeps]]] call[sleepSequences.add, parameter[ClassCreator(arguments=[MemberReference(member=sleeps, postfix_operator...
Keyword[public] Keyword[void] identifier[addSequence] operator[SEP] identifier[List] operator[<] identifier[Long] operator[>] identifier[sleeps] operator[SEP] { identifier[sleepHistogram] operator[SEP] identifier[addAll] operator[SEP] identifier[sleeps] operator[SEP] operator[SEP] identifier[sleepSequences] oper...
public WriteResult updateMulti(final DBObject query, final DBObject update) { return update(query, update, false, true); }
class class_name[name] begin[{] method[updateMulti, return_type[type[WriteResult]], modifier[public], parameter[query, update]] begin[{] return[call[.update, parameter[member[.query], member[.update], literal[false], literal[true]]]] end[}] END[}]
Keyword[public] identifier[WriteResult] identifier[updateMulti] operator[SEP] Keyword[final] identifier[DBObject] identifier[query] , Keyword[final] identifier[DBObject] identifier[update] operator[SEP] { Keyword[return] identifier[update] operator[SEP] identifier[query] , identifier[update] , literal[boolean...
public static final void writeScript(Writer writer) throws IOException { String newline = IO.newline(); boolean isWindows = System.getProperty("os.name").startsWith("Windows"); String variablePrefix = "$C"; String variableSuffix = File.pathSeparator; if(isWindows) ...
class class_name[name] begin[{] method[writeScript, return_type[void], modifier[final public static], parameter[writer]] begin[{] local_variable[type[String], newline] local_variable[type[boolean], isWindows] local_variable[type[String], variablePrefix] local_variable[type[Strin...
Keyword[public] Keyword[static] Keyword[final] Keyword[void] identifier[writeScript] operator[SEP] identifier[Writer] identifier[writer] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[newline] operator[=] identifier[IO] operator[SEP] identifier[newline] operator[SEP] operat...
private ChangeSummary toChangeSummary( final RevCommit commit ) { final PersonIdent who = commit.getAuthorIdent(); final Date when = new Date( TimeUnit.MILLISECONDS.convert( commit.getCommitTime(), TimeUnit.SECONDS ) ); return new ChangeSummary( who.getName(), commit.getFullMessage(), when, ...
class class_name[name] begin[{] method[toChangeSummary, return_type[type[ChangeSummary]], modifier[private], parameter[commit]] begin[{] local_variable[type[PersonIdent], who] local_variable[type[Date], when] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getName, ...
Keyword[private] identifier[ChangeSummary] identifier[toChangeSummary] operator[SEP] Keyword[final] identifier[RevCommit] identifier[commit] operator[SEP] { Keyword[final] identifier[PersonIdent] identifier[who] operator[=] identifier[commit] operator[SEP] identifier[getAuthorIdent] operator[SEP] operator[SEP] o...
public final void synpred15_InternalXbaseWithAnnotations_fragment() throws RecognitionException { // InternalXbaseWithAnnotations.g:1540:6: ( ( '<' '<' ) ) // InternalXbaseWithAnnotations.g:1540:7: ( '<' '<' ) { // InternalXbaseWithAnnotations.g:1540:7: ( '<' '<' ) // Internal...
class class_name[name] begin[{] method[synpred15_InternalXbaseWithAnnotations_fragment, return_type[void], modifier[final public], parameter[]] begin[{] call[.match, parameter[member[.input], literal[26], member[.FOLLOW_15]]] if[member[state.failed]] begin[{] ret...
Keyword[public] Keyword[final] Keyword[void] identifier[synpred15_InternalXbaseWithAnnotations_fragment] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { { { identifier[match] operator[SEP] identifier[input] , Other[26] , identifier[FOLLOW_15] operator[SE...
public Frame process(Frame frame) { count = frame.getLength() / 2; Frame res = Memory.allocate(count); byte[] data=frame.getData(); byte[] resData=res.getData(); for (i = 0,j = 0; i < count; i++,j++) resData[i]=EncoderData.aLawCompressTable[data[j+1] & 0xf...
class class_name[name] begin[{] method[process, return_type[type[Frame]], modifier[public], parameter[frame]] begin[{] assign[member[.count], binary_operation[call[frame.getLength, parameter[]], /, literal[2]]] local_variable[type[Frame], res] local_variable[type[byte], data] ...
Keyword[public] identifier[Frame] identifier[process] operator[SEP] identifier[Frame] identifier[frame] operator[SEP] { identifier[count] operator[=] identifier[frame] operator[SEP] identifier[getLength] operator[SEP] operator[SEP] operator[/] Other[2] operator[SEP] identifier[Frame] identifier[res] operator[=] ...
public java.util.List<RetentionConfiguration> getRetentionConfigurations() { if (retentionConfigurations == null) { retentionConfigurations = new com.amazonaws.internal.SdkInternalList<RetentionConfiguration>(); } return retentionConfigurations; }
class class_name[name] begin[{] method[getRetentionConfigurations, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.retentionConfigurations], ==, literal[null]]] begin[{] assign[member[.retentionConfigurations], ClassCreator(ar...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[RetentionConfiguration] operator[>] identifier[getRetentionConfigurations] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[retentionConfigurations] operator[==] Other[null] ope...
public T addSparkArg(String arg) { SparkSubmitOptionParser validator = new ArgumentValidator(false); validator.parse(Arrays.asList(arg)); builder.userArgs.add(arg); return self(); }
class class_name[name] begin[{] method[addSparkArg, return_type[type[T]], modifier[public], parameter[arg]] begin[{] local_variable[type[SparkSubmitOptionParser], validator] call[validator.parse, parameter[call[Arrays.asList, parameter[member[.arg]]]]] call[builder.userA...
Keyword[public] identifier[T] identifier[addSparkArg] operator[SEP] identifier[String] identifier[arg] operator[SEP] { identifier[SparkSubmitOptionParser] identifier[validator] operator[=] Keyword[new] identifier[ArgumentValidator] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[validator] ...
@Nullable public static String extractMariaDbVersion(@Nullable String jdbcDatabaseProductVersion) { if (jdbcDatabaseProductVersion == null) { return null; } if(!jdbcDatabaseProductVersion.contains("MariaDB")) { return null; } String mariaDbVersion =...
class class_name[name] begin[{] method[extractMariaDbVersion, return_type[type[String]], modifier[public static], parameter[jdbcDatabaseProductVersion]] begin[{] if[binary_operation[member[.jdbcDatabaseProductVersion], ==, literal[null]]] begin[{] return[literal[null]] else ...
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[String] identifier[extractMariaDbVersion] operator[SEP] annotation[@] identifier[Nullable] identifier[String] identifier[jdbcDatabaseProductVersion] operator[SEP] { Keyword[if] operator[SEP] identifier[jdbcDatabaseProductVersion] opera...
public void setTree(final TreeNode<ChartData> TREE) { if (null != tree) { getTreeNode().flattened().forEach(node -> node.removeAllTreeNodeEventListeners()); } tree.set(TREE); getTreeNode().flattened().forEach(node -> node.setOnTreeNodeEvent(e -> redraw())); prepareData(); if (isA...
class class_name[name] begin[{] method[setTree, return_type[void], modifier[public], parameter[TREE]] begin[{] if[binary_operation[literal[null], !=, member[.tree]]] begin[{] call[.getTreeNode, parameter[]] else begin[{] None end[}] call[t...
Keyword[public] Keyword[void] identifier[setTree] operator[SEP] Keyword[final] identifier[TreeNode] operator[<] identifier[ChartData] operator[>] identifier[TREE] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[!=] identifier[tree] operator[SEP] { identifier[getTreeNode] operator[SEP] o...
@Override public void setPermissionsFromString(final String value) { final char[] chars = value.toCharArray(); final EnumSet<SharedAccessQueuePermissions> retSet = EnumSet.noneOf(SharedAccessQueuePermissions.class); for (final char c : chars) { switch (c) { case ...
class class_name[name] begin[{] method[setPermissionsFromString, return_type[void], modifier[public], parameter[value]] begin[{] local_variable[type[char], chars] local_variable[type[EnumSet], retSet] ForStatement(body=BlockStatement(label=None, statements=[SwitchStatement(cases=[Switch...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setPermissionsFromString] operator[SEP] Keyword[final] identifier[String] identifier[value] operator[SEP] { Keyword[final] Keyword[char] operator[SEP] operator[SEP] identifier[chars] operator[=] identifier[value] operator[SEP] identifier...
protected void appendInternal(StringBuilder buffer, String fieldName, Object value, boolean detail) { if (isRegistered(value) && !(value instanceof Number || value instanceof Boolean || value instanceof Character)) { appendCyclicObject(buffer, fieldName, value); return; ...
class class_name[name] begin[{] method[appendInternal, return_type[void], modifier[protected], parameter[buffer, fieldName, value, detail]] begin[{] if[binary_operation[call[.isRegistered, parameter[member[.value]]], &&, binary_operation[binary_operation[binary_operation[member[.value], instanc...
Keyword[protected] Keyword[void] identifier[appendInternal] operator[SEP] identifier[StringBuilder] identifier[buffer] , identifier[String] identifier[fieldName] , identifier[Object] identifier[value] , Keyword[boolean] identifier[detail] operator[SEP] { Keyword[if] operator[SEP] identifier[isRegistered] oper...
public String getStringValue() { if (dataType != DataType.STRING) return null; return (svalue != null) ? svalue : _getStringValue(0); }
class class_name[name] begin[{] method[getStringValue, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.dataType], !=, member[DataType.STRING]]] begin[{] return[literal[null]] else begin[{] None end[}] return[TernaryExpressio...
Keyword[public] identifier[String] identifier[getStringValue] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[dataType] operator[!=] identifier[DataType] operator[SEP] identifier[STRING] operator[SEP] Keyword[return] Other[null] operator[SEP] Keyword[return] operator[SEP] identifier[svalue] op...
@Override public Schema visitSchema(Context context, String key, Schema schema) { visitor.visitSchema(context, key, schema); return schema; }
class class_name[name] begin[{] method[visitSchema, return_type[type[Schema]], modifier[public], parameter[context, key, schema]] begin[{] call[visitor.visitSchema, parameter[member[.context], member[.key], member[.schema]]] return[member[.schema]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Schema] identifier[visitSchema] operator[SEP] identifier[Context] identifier[context] , identifier[String] identifier[key] , identifier[Schema] identifier[schema] operator[SEP] { identifier[visitor] operator[SEP] identifier[visitSchema] operator[SEP...
@Override public CPOptionValue findByUuid_Last(String uuid, OrderByComparator<CPOptionValue> orderByComparator) throws NoSuchCPOptionValueException { CPOptionValue cpOptionValue = fetchByUuid_Last(uuid, orderByComparator); if (cpOptionValue != null) { return cpOptionValue; } StringBundler msg = new St...
class class_name[name] begin[{] method[findByUuid_Last, return_type[type[CPOptionValue]], modifier[public], parameter[uuid, orderByComparator]] begin[{] local_variable[type[CPOptionValue], cpOptionValue] if[binary_operation[member[.cpOptionValue], !=, literal[null]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[CPOptionValue] identifier[findByUuid_Last] operator[SEP] identifier[String] identifier[uuid] , identifier[OrderByComparator] operator[<] identifier[CPOptionValue] operator[>] identifier[orderByComparator] operator[SEP] Keyword[throws] identifier[NoSuchCPOpt...
public static Recorder wrapInputStreamWithHttpRecord(File dir, String basename, InputStream in, String encoding) throws IOException { Recorder rec = new Recorder(dir, basename); if (encoding != null && encoding.length() > 0) { rec.setCharset(Charset.forName(encoding)); } ...
class class_name[name] begin[{] method[wrapInputStreamWithHttpRecord, return_type[type[Recorder]], modifier[public static], parameter[dir, basename, in, encoding]] begin[{] local_variable[type[Recorder], rec] if[binary_operation[binary_operation[member[.encoding], !=, literal[null]], &&...
Keyword[public] Keyword[static] identifier[Recorder] identifier[wrapInputStreamWithHttpRecord] operator[SEP] identifier[File] identifier[dir] , identifier[String] identifier[basename] , identifier[InputStream] identifier[in] , identifier[String] identifier[encoding] operator[SEP] Keyword[throws] identifier[IOExcepti...
@Beta public MSICredentials withClientId(String clientId) { this.clientId = clientId; this.objectId = null; this.identityId = null; return this; }
class class_name[name] begin[{] method[withClientId, return_type[type[MSICredentials]], modifier[public], parameter[clientId]] begin[{] assign[THIS[member[None.clientId]], member[.clientId]] assign[THIS[member[None.objectId]], literal[null]] assign[THIS[member[No...
annotation[@] identifier[Beta] Keyword[public] identifier[MSICredentials] identifier[withClientId] operator[SEP] identifier[String] identifier[clientId] operator[SEP] { Keyword[this] operator[SEP] identifier[clientId] operator[=] identifier[clientId] operator[SEP] Keyword[this] operator[SEP] identifier[objectId]...
int guessFluffedSize() { // Start with the base fluffed size of the message headers. int total = FLUFFED_HEADER_BASE_SIZE; // For each routing path, get the estimates size for the destination name list. // The rp also contains a list of String busnames, a list of SIBUuid8s & a byte // array, so we...
class class_name[name] begin[{] method[guessFluffedSize, return_type[type[int]], modifier[default], parameter[]] begin[{] local_variable[type[int], total] local_variable[type[int], listSize] assign[member[.total], binary_operation[member[.listSize], *, literal[3]]] ...
Keyword[int] identifier[guessFluffedSize] operator[SEP] operator[SEP] { Keyword[int] identifier[total] operator[=] identifier[FLUFFED_HEADER_BASE_SIZE] operator[SEP] Keyword[int] identifier[listSize] operator[=] identifier[getHdr2] operator[SEP] operator[SEP] operator[SEP] identifier[estimateFieldValueSize] oper...
@Override public void close() { synchronized (startedTasks) { if (executor.isShutdown()) { return; } // ... stop updater thread. Do not interrupt. executor.shutdown(); try { updater.get(); } catch (Interr...
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] SYNCHRONIZED[member[.startedTasks]] BEGIN[{] if[call[executor.isShutdown, parameter[]]] begin[{] return[None] else begin[{] None ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[startedTasks] operator[SEP] { Keyword[if] operator[SEP] identifier[executor] operator[SEP] identifier[isShutdown] operator[SEP] operator[SEP] ...
private int serializeUpdate(@NonNull TableEntry entry, byte[] target, int targetOffset, long version) { val key = entry.getKey().getKey(); val value = entry.getValue(); Preconditions.checkArgument(key.getLength() <= MAX_KEY_LENGTH, "Key too large."); int serializationLength = getUpdateLe...
class class_name[name] begin[{] method[serializeUpdate, return_type[type[int]], modifier[private], parameter[entry, target, targetOffset, version]] begin[{] local_variable[type[val], key] local_variable[type[val], value] call[Preconditions.checkArgument, parameter[binary_operati...
Keyword[private] Keyword[int] identifier[serializeUpdate] operator[SEP] annotation[@] identifier[NonNull] identifier[TableEntry] identifier[entry] , Keyword[byte] operator[SEP] operator[SEP] identifier[target] , Keyword[int] identifier[targetOffset] , Keyword[long] identifier[version] operator[SEP] { identifi...
public T toDateTime(DateTime dateTime) { try { D dateObj = dateClass.newInstance(); PropertyUtils.setProperty(dateObj, "year", dateTime.getYear()); PropertyUtils.setProperty(dateObj, "month", dateTime.getMonthOfYear()); PropertyUtils.setProperty(dateObj, "day", dateTime.getDayOfMonth()); ...
class class_name[name] begin[{] method[toDateTime, return_type[type[T]], modifier[public], parameter[dateTime]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=newInstance, postfix_ope...
Keyword[public] identifier[T] identifier[toDateTime] operator[SEP] identifier[DateTime] identifier[dateTime] operator[SEP] { Keyword[try] { identifier[D] identifier[dateObj] operator[=] identifier[dateClass] operator[SEP] identifier[newInstance] operator[SEP] operator[SEP] operator[SEP] identifier[Pro...
private CFTag getCFTag() { Tag tag = this; while ((tag = tag.getParent()) != null) { if (tag instanceof CFTag) { return (CFTag) tag; } } return null; }
class class_name[name] begin[{] method[getCFTag, return_type[type[CFTag]], modifier[private], parameter[]] begin[{] local_variable[type[Tag], tag] while[binary_operation[assign[member[.tag], call[tag.getParent, parameter[]]], !=, literal[null]]] begin[{] if[binar...
Keyword[private] identifier[CFTag] identifier[getCFTag] operator[SEP] operator[SEP] { identifier[Tag] identifier[tag] operator[=] Keyword[this] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[tag] operator[=] identifier[tag] operator[SEP] identifier[getParent] operator[SEP] operator[SEP] oper...
@Override public RetireGrantResult retireGrant(RetireGrantRequest request) { request = beforeClientExecution(request); return executeRetireGrant(request); }
class class_name[name] begin[{] method[retireGrant, return_type[type[RetireGrantResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeRetireGrant, parameter[member[.request]]]] ...
annotation[@] identifier[Override] Keyword[public] identifier[RetireGrantResult] identifier[retireGrant] operator[SEP] identifier[RetireGrantRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP]...
public ComponentDescriptor[] getDescriptors(ComponentID[] componentIds) throws NullPointerException, ManagementException { if (componentIds == null) throw new NullPointerException("null component ids"); try { ComponentDescriptor[] descriptors = new ComponentDescriptor[componentIds.length]; for (int i =...
class class_name[name] begin[{] method[getDescriptors, return_type[type[ComponentDescriptor]], modifier[public], parameter[componentIds]] begin[{] if[binary_operation[member[.componentIds], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=...
Keyword[public] identifier[ComponentDescriptor] operator[SEP] operator[SEP] identifier[getDescriptors] operator[SEP] identifier[ComponentID] operator[SEP] operator[SEP] identifier[componentIds] operator[SEP] Keyword[throws] identifier[NullPointerException] , identifier[ManagementException] { Keyword[if] operato...
protected void initSystemDatabase() { final ODocument defaultCfg = getStorage(OSystemDatabase.SYSTEM_DB_NAME) .loadDatabaseConfiguration(getDefaultDatabaseConfigFile()); defaultCfg.field("autoDeploy", false); final OModifiableDistributedConfiguration sysCfg = new OModifiableDistributedConfiguration(...
class class_name[name] begin[{] method[initSystemDatabase, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[ODocument], defaultCfg] call[defaultCfg.field, parameter[literal["autoDeploy"], literal[false]]] local_variable[type[OModifiableDistribute...
Keyword[protected] Keyword[void] identifier[initSystemDatabase] operator[SEP] operator[SEP] { Keyword[final] identifier[ODocument] identifier[defaultCfg] operator[=] identifier[getStorage] operator[SEP] identifier[OSystemDatabase] operator[SEP] identifier[SYSTEM_DB_NAME] operator[SEP] operator[SEP] identifier[lo...
public void setContextKeyValues(java.util.Collection<String> contextKeyValues) { if (contextKeyValues == null) { this.contextKeyValues = null; return; } this.contextKeyValues = new com.amazonaws.internal.SdkInternalList<String>(contextKeyValues); }
class class_name[name] begin[{] method[setContextKeyValues, return_type[void], modifier[public], parameter[contextKeyValues]] begin[{] if[binary_operation[member[.contextKeyValues], ==, literal[null]]] begin[{] assign[THIS[member[None.contextKeyValues]], literal[null]] ...
Keyword[public] Keyword[void] identifier[setContextKeyValues] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[contextKeyValues] operator[SEP] { Keyword[if] operator[SEP] identifier[contextKeyValues] operator[...
private ConciseSet performOperation(ConciseSet other, Operator operator) { // non-empty arguments if (this.isEmpty() || other.isEmpty()) { return operator.combineEmptySets(this, other); } // if the two operands are disjoint, the operation is faster ConciseSet res = operator.combineD...
class class_name[name] begin[{] method[performOperation, return_type[type[ConciseSet]], modifier[private], parameter[other, operator]] begin[{] if[binary_operation[THIS[call[None.isEmpty, parameter[]]], ||, call[other.isEmpty, parameter[]]]] begin[{] return[call[operator.combineEmpt...
Keyword[private] identifier[ConciseSet] identifier[performOperation] operator[SEP] identifier[ConciseSet] identifier[other] , identifier[Operator] identifier[operator] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[||] identifier[ot...
public static byte[] parseBase64Binary(String val) { Assert.notNull(val, "val must not be null!"); int length = val.length(); StringBuilder sb = new StringBuilder(length); for (int i = 0, len = length; i < len; i++) { char c = val.charAt(i); if(c == ...
class class_name[name] begin[{] method[parseBase64Binary, return_type[type[byte]], modifier[public static], parameter[val]] begin[{] call[Assert.notNull, parameter[member[.val], literal["val must not be null!"]]] local_variable[type[int], length] local_variable[type[StringBuilde...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[parseBase64Binary] operator[SEP] identifier[String] identifier[val] operator[SEP] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[val] , literal[String] operator[SEP] operator[SEP] Keyword[int] i...
@Deprecated public void surf(Reader json, SurfingConfiguration configuration) { ensureSetting(configuration); jsonParserAdapter.parse(json, new SurfingContext(configuration)); }
class class_name[name] begin[{] method[surf, return_type[void], modifier[public], parameter[json, configuration]] begin[{] call[.ensureSetting, parameter[member[.configuration]]] call[jsonParserAdapter.parse, parameter[member[.json], ClassCreator(arguments=[MemberReference(membe...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[void] identifier[surf] operator[SEP] identifier[Reader] identifier[json] , identifier[SurfingConfiguration] identifier[configuration] operator[SEP] { identifier[ensureSetting] operator[SEP] identifier[configuration] operator[SEP] operator[SEP] identif...
private String buildApplicationUrl(final UIContext uic) { Environment env = uic.getEnvironment(); return env.getPostPath(); }
class class_name[name] begin[{] method[buildApplicationUrl, return_type[type[String]], modifier[private], parameter[uic]] begin[{] local_variable[type[Environment], env] return[call[env.getPostPath, parameter[]]] end[}] END[}]
Keyword[private] identifier[String] identifier[buildApplicationUrl] operator[SEP] Keyword[final] identifier[UIContext] identifier[uic] operator[SEP] { identifier[Environment] identifier[env] operator[=] identifier[uic] operator[SEP] identifier[getEnvironment] operator[SEP] operator[SEP] operator[SEP] Keyword[ret...
public LZ4Compressor highCompressor(int compressionLevel) { if(compressionLevel > MAX_COMPRESSION_LEVEL) { compressionLevel = MAX_COMPRESSION_LEVEL; } else if (compressionLevel < 1) { compressionLevel = DEFAULT_COMPRESSION_LEVEL; } return highCompressors[compressionLevel]; }
class class_name[name] begin[{] method[highCompressor, return_type[type[LZ4Compressor]], modifier[public], parameter[compressionLevel]] begin[{] if[binary_operation[member[.compressionLevel], >, member[.MAX_COMPRESSION_LEVEL]]] begin[{] assign[member[.compressionLevel], ...
Keyword[public] identifier[LZ4Compressor] identifier[highCompressor] operator[SEP] Keyword[int] identifier[compressionLevel] operator[SEP] { Keyword[if] operator[SEP] identifier[compressionLevel] operator[>] identifier[MAX_COMPRESSION_LEVEL] operator[SEP] { identifier[compressionLevel] operator[=] ide...
@Override public org.fcrepo.server.types.gen.RepositoryInfo describeRepository() { MessageContext ctx = context.getMessageContext(); Context context = ReadOnlyContext.getSoapContext(ctx); assertInitialized(); try { org.fcrepo.server.access.RepositoryInfo repositoryInfo = ...
class class_name[name] begin[{] method[describeRepository, return_type[type[org]], modifier[public], parameter[]] begin[{] local_variable[type[MessageContext], ctx] local_variable[type[Context], context] call[.assertInitialized, parameter[]] TryStatement(block=[LocalVari...
annotation[@] identifier[Override] Keyword[public] identifier[org] operator[SEP] identifier[fcrepo] operator[SEP] identifier[server] operator[SEP] identifier[types] operator[SEP] identifier[gen] operator[SEP] identifier[RepositoryInfo] identifier[describeRepository] operator[SEP] operator[SEP] { identifier[Messa...
public <K, V> CacheManagerBuilder<T> withCache(String alias, CacheConfiguration<K, V> configuration) { return new CacheManagerBuilder<>(this, configBuilder.addCache(alias, configuration)); }
class class_name[name] begin[{] method[withCache, return_type[type[CacheManagerBuilder]], modifier[public], parameter[alias, configuration]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MethodInvocation(arguments=[MemberReference...
Keyword[public] operator[<] identifier[K] , identifier[V] operator[>] identifier[CacheManagerBuilder] operator[<] identifier[T] operator[>] identifier[withCache] operator[SEP] identifier[String] identifier[alias] , identifier[CacheConfiguration] operator[<] identifier[K] , identifier[V] operator[>] identifier[config...
public void pushPairCurrentMatched(ElemTemplateElement template, int child) { m_currentMatchTemplates.push(template); m_currentMatchedNodes.push(child); }
class class_name[name] begin[{] method[pushPairCurrentMatched, return_type[void], modifier[public], parameter[template, child]] begin[{] call[m_currentMatchTemplates.push, parameter[member[.template]]] call[m_currentMatchedNodes.push, parameter[member[.child]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[pushPairCurrentMatched] operator[SEP] identifier[ElemTemplateElement] identifier[template] , Keyword[int] identifier[child] operator[SEP] { identifier[m_currentMatchTemplates] operator[SEP] identifier[push] operator[SEP] identifier[template] operator[SEP] operator[SEP] i...
public static <T, U extends T, V extends T,E> T findResult(Collection<E> self, U defaultResult, @ClosureParams(FirstParam.FirstGenericType.class) Closure<V> closure) { T result = findResult(self, closure); if (result == null) return defaultResult; return result; }
class class_name[name] begin[{] method[findResult, return_type[type[T]], modifier[public static], parameter[self, defaultResult, closure]] begin[{] local_variable[type[T], result] if[binary_operation[member[.result], ==, literal[null]]] begin[{] return[member[.defaultResult]] el...
Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[U] Keyword[extends] identifier[T] , identifier[V] Keyword[extends] identifier[T] , identifier[E] operator[>] identifier[T] identifier[findResult] operator[SEP] identifier[Collection] operator[<] identifier[E] operator[>] identifier[self] , ident...
@BetaApi public final ListInstanceTemplatesPagedResponse listInstanceTemplates(ProjectName project) { ListInstanceTemplatesHttpRequest request = ListInstanceTemplatesHttpRequest.newBuilder() .setProject(project == null ? null : project.toString()) .build(); return listInstanceT...
class class_name[name] begin[{] method[listInstanceTemplates, return_type[type[ListInstanceTemplatesPagedResponse]], modifier[final public], parameter[project]] begin[{] local_variable[type[ListInstanceTemplatesHttpRequest], request] return[call[.listInstanceTemplates, parameter[member[.request...
annotation[@] identifier[BetaApi] Keyword[public] Keyword[final] identifier[ListInstanceTemplatesPagedResponse] identifier[listInstanceTemplates] operator[SEP] identifier[ProjectName] identifier[project] operator[SEP] { identifier[ListInstanceTemplatesHttpRequest] identifier[request] operator[=] identifier[ListI...
public static String getSolrRangeString(String from, String to) { // If a parameter is not initialized, use the asterisk '*' operator if (CmsStringUtil.isEmptyOrWhitespaceOnly(from)) { from = "*"; } if (CmsStringUtil.isEmptyOrWhitespaceOnly(to)) { to = "*"; ...
class class_name[name] begin[{] method[getSolrRangeString, return_type[type[String]], modifier[public static], parameter[from, to]] begin[{] if[call[CmsStringUtil.isEmptyOrWhitespaceOnly, parameter[member[.from]]]] begin[{] assign[member[.from], literal["*"]] els...
Keyword[public] Keyword[static] identifier[String] identifier[getSolrRangeString] operator[SEP] identifier[String] identifier[from] , identifier[String] identifier[to] operator[SEP] { Keyword[if] operator[SEP] identifier[CmsStringUtil] operator[SEP] identifier[isEmptyOrWhitespaceOnly] operator[SEP] identifier[f...
public static CPInstance remove(long CPInstanceId) throws com.liferay.commerce.product.exception.NoSuchCPInstanceException { return getPersistence().remove(CPInstanceId); }
class class_name[name] begin[{] method[remove, return_type[type[CPInstance]], modifier[public static], parameter[CPInstanceId]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CPInstance] identifier[remove] operator[SEP] Keyword[long] identifier[CPInstanceId] operator[SEP] Keyword[throws] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[product] operator[SEP] identifier[exception] operator...
protected synchronized void releaseBeanContextResources() { for (Class serviceClass : _serviceProviders.keySet()) { ServiceProvider sp = _serviceProviders.get(serviceClass); if (sp.isDelegated()) { sp.revoke(new BeanContextServiceRevokedEvent((BeanContextServices)getPeer...
class class_name[name] begin[{] method[releaseBeanContextResources, return_type[void], modifier[synchronized protected], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Met...
Keyword[protected] Keyword[synchronized] Keyword[void] identifier[releaseBeanContextResources] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[Class] identifier[serviceClass] operator[:] identifier[_serviceProviders] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] ...
public void parse (Reader reader) { try { char[] data = new char[1024]; int offset = 0; while (true) { int length = reader.read(data, offset, data.length - offset); if (length == -1) break; if (length == 0) { char[] newData = new char[data.length * 2]; System.arraycopy(data, 0, newData,...
class class_name[name] begin[{] method[parse, return_type[void], modifier[public], parameter[reader]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_operators=...
Keyword[public] Keyword[void] identifier[parse] operator[SEP] identifier[Reader] identifier[reader] operator[SEP] { Keyword[try] { Keyword[char] operator[SEP] operator[SEP] identifier[data] operator[=] Keyword[new] Keyword[char] operator[SEP] Other[1024] operator[SEP] operator[SEP] Keyword[int] identi...
public static void runDOT(String dotText, String format, File out) throws IOException { runDOT(new StringReader(dotText), format, out); }
class class_name[name] begin[{] method[runDOT, return_type[void], modifier[public static], parameter[dotText, format, out]] begin[{] call[.runDOT, parameter[ClassCreator(arguments=[MemberReference(member=dotText, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, ...
Keyword[public] Keyword[static] Keyword[void] identifier[runDOT] operator[SEP] identifier[String] identifier[dotText] , identifier[String] identifier[format] , identifier[File] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] { identifier[runDOT] operator[SEP] Keyword[new] identifier[Strin...
public double overlapAbsolute(DoubleRange other) { if (!intersects(other)) { return 0; } int loCmp = lo.compareTo(other.lo); int hiCmp = hi.compareTo(other.hi); if (loCmp >= 0 && hiCmp <= 0) { return this.length(); } else if (loCmp <= 0 && hiCmp >= 0) { return other.length(); ...
class class_name[name] begin[{] method[overlapAbsolute, return_type[type[double]], modifier[public], parameter[other]] begin[{] if[call[.intersects, parameter[member[.other]]]] begin[{] return[literal[0]] else begin[{] None end[}] local_variable[type[int], lo...
Keyword[public] Keyword[double] identifier[overlapAbsolute] operator[SEP] identifier[DoubleRange] identifier[other] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[intersects] operator[SEP] identifier[other] operator[SEP] operator[SEP] { Keyword[return] Other[0] operator[SEP] }...
private Collection<JaversType> bootJsonConverter() { JsonConverterBuilder jsonConverterBuilder = jsonConverterBuilder(); addModule(new ChangeTypeAdaptersModule(getContainer())); addModule(new CommitTypeAdaptersModule(getContainer())); if (new RequiredMongoSupportPredicate().test(reposi...
class class_name[name] begin[{] method[bootJsonConverter, return_type[type[Collection]], modifier[private], parameter[]] begin[{] local_variable[type[JsonConverterBuilder], jsonConverterBuilder] call[.addModule, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[], member=get...
Keyword[private] identifier[Collection] operator[<] identifier[JaversType] operator[>] identifier[bootJsonConverter] operator[SEP] operator[SEP] { identifier[JsonConverterBuilder] identifier[jsonConverterBuilder] operator[=] identifier[jsonConverterBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[ad...
private int pollRemovedCountHolders(AtomicReferenceArray<Queue<Integer>> removedCountHolders) { int count = 0; for (int i = 0; i < partitionCount; i++) { Queue<Integer> removalCounts = removedCountHolders.get(i); count += removalCounts.poll(); } return count; ...
class class_name[name] begin[{] method[pollRemovedCountHolders, return_type[type[int]], modifier[private], parameter[removedCountHolders]] begin[{] local_variable[type[int], count] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Var...
Keyword[private] Keyword[int] identifier[pollRemovedCountHolders] operator[SEP] identifier[AtomicReferenceArray] operator[<] identifier[Queue] operator[<] identifier[Integer] operator[>] operator[>] identifier[removedCountHolders] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] ...
@Override protected StoreAccessorFactory configureFlashStoreAccessorFactory() { final StoreAccessorFactory candidate = configuredMessagesStoreAccessorFactory(); return candidate == null ? super.configureFlashStoreAccessorFactory() : candidate; }
class class_name[name] begin[{] method[configureFlashStoreAccessorFactory, return_type[type[StoreAccessorFactory]], modifier[protected], parameter[]] begin[{] local_variable[type[StoreAccessorFactory], candidate] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member...
annotation[@] identifier[Override] Keyword[protected] identifier[StoreAccessorFactory] identifier[configureFlashStoreAccessorFactory] operator[SEP] operator[SEP] { Keyword[final] identifier[StoreAccessorFactory] identifier[candidate] operator[=] identifier[configuredMessagesStoreAccessorFactory] operator[SEP] op...