code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private AbstractRESTEntity asEntity(byte[] responseBody, Class<?> clazz) throws Exception { AbstractRESTEntity entity = null; entity = (AbstractRESTEntity) mapper.readValue(responseBody, clazz); return entity; }
class class_name[name] begin[{] method[asEntity, return_type[type[AbstractRESTEntity]], modifier[private], parameter[responseBody, clazz]] begin[{] local_variable[type[AbstractRESTEntity], entity] assign[member[.entity], Cast(expression=MethodInvocation(arguments=[MemberReference(member...
Keyword[private] identifier[AbstractRESTEntity] identifier[asEntity] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[responseBody] , identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] Keyword[throws] identifier[Exception] { identifier[AbstractRESTEntity] ide...
@Override public void analyze(Event event) { SearchCriteria criteria = new SearchCriteria(). setUser(event.getUser()). setDetectionPoint(event.getDetectionPoint()). setDetectionSystemIds(appSensorServer.getConfiguration().getRelatedDetectionSystems(event.getDetectionSystem())); // find all events mat...
class class_name[name] begin[{] method[analyze, return_type[void], modifier[public], parameter[event]] begin[{] local_variable[type[SearchCriteria], criteria] local_variable[type[Collection], existingEvents] local_variable[type[Collection], configuredDetectionPoints] if[...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[analyze] operator[SEP] identifier[Event] identifier[event] operator[SEP] { identifier[SearchCriteria] identifier[criteria] operator[=] Keyword[new] identifier[SearchCriteria] operator[SEP] operator[SEP] operator[SEP] identifier[setUser] ...
public static boolean isUsableAsUniqueKey(String candidate, JSONArray array) throws JSONException { Set<Object> seenValues = new HashSet<Object>(); for (int i = 0; i < array.length(); i++) { Object item = array.get(i); if (item instanceof JSONObject) { JSONObject ...
class class_name[name] begin[{] method[isUsableAsUniqueKey, return_type[type[boolean]], modifier[public static], parameter[candidate, array]] begin[{] local_variable[type[Set], seenValues] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarat...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isUsableAsUniqueKey] operator[SEP] identifier[String] identifier[candidate] , identifier[JSONArray] identifier[array] operator[SEP] Keyword[throws] identifier[JSONException] { identifier[Set] operator[<] identifier[Object] operator[>] identifier[seenVa...
@Restricted(DoNotUse.class) public HttpResponse doInstallStatus(StaplerRequest request) { try { String correlationId = request.getParameter("correlationId"); Map<String,Object> response = new HashMap<>(); response.put("state", Jenkins.getInstance().getInstallState().name(...
class class_name[name] begin[{] method[doInstallStatus, return_type[type[HttpResponse]], modifier[public], parameter[request]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_ope...
annotation[@] identifier[Restricted] operator[SEP] identifier[DoNotUse] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[HttpResponse] identifier[doInstallStatus] operator[SEP] identifier[StaplerRequest] identifier[request] operator[SEP] { Keyword[try] { identifier[String] identif...
@Override public void initializeParsers(ExtensionParsingContext context) { context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_0.getUriString(), JMXSubsystemParser_1_0::new); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_1.getUriString(), JMXSubsystemParser_1_1::new); ...
class class_name[name] begin[{] method[initializeParsers, return_type[void], modifier[public], parameter[context]] begin[{] call[context.setSubsystemXmlMapping, parameter[member[.SUBSYSTEM_NAME], call[Namespace.JMX_1_0.getUriString, parameter[]], MethodReference(expression=MemberReference(membe...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[initializeParsers] operator[SEP] identifier[ExtensionParsingContext] identifier[context] operator[SEP] { identifier[context] operator[SEP] identifier[setSubsystemXmlMapping] operator[SEP] identifier[SUBSYSTEM_NAME] , identifier[Namespac...
@Override public void requestMsgs(int requestNumber, int receiveBytes, int requestedBytes) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "requestMessages", new Object[] ...
class class_name[name] begin[{] method[requestMsgs, return_type[void], modifier[public], parameter[requestNumber, receiveBytes, requestedBytes]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] ca...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[requestMsgs] operator[SEP] Keyword[int] identifier[requestNumber] , Keyword[int] identifier[receiveBytes] , Keyword[int] identifier[requestedBytes] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] iden...
@Override protected String getDetail(String data) { String pcs[] = split(data, U, 2); char type = pcs[1].isEmpty() ? 0 : pcs[1].charAt(0); List<String> result = new ArrayList<>(); switch (type) { case 'A': getBroker().callRPCList("RGCWCACV DETAIL", result...
class class_name[name] begin[{] method[getDetail, return_type[type[String]], modifier[protected], parameter[data]] begin[{] local_variable[type[String], pcs] local_variable[type[char], type] local_variable[type[List], result] SwitchStatement(cases=[SwitchStatementCase(case=[Lite...
annotation[@] identifier[Override] Keyword[protected] identifier[String] identifier[getDetail] operator[SEP] identifier[String] identifier[data] operator[SEP] { identifier[String] identifier[pcs] operator[SEP] operator[SEP] operator[=] identifier[split] operator[SEP] identifier[data] , identifier[U] , Other[2]...
public void outputTracerReport() { JvmMetrics.maybeWriteJvmMetrics(this.output, "verbose:pretty:all"); calcTotalStats(); ArrayList<Entry<String, Stats>> statEntries = new ArrayList<>(); statEntries.addAll(this.summary.entrySet()); Collections.sort( statEntries, new Comparator<Entry<...
class class_name[name] begin[{] method[outputTracerReport, return_type[void], modifier[public], parameter[]] begin[{] call[JvmMetrics.maybeWriteJvmMetrics, parameter[THIS[member[None.output]], literal["verbose:pretty:all"]]] call[.calcTotalStats, parameter[]] local_varia...
Keyword[public] Keyword[void] identifier[outputTracerReport] operator[SEP] operator[SEP] { identifier[JvmMetrics] operator[SEP] identifier[maybeWriteJvmMetrics] operator[SEP] Keyword[this] operator[SEP] identifier[output] , literal[String] operator[SEP] operator[SEP] identifier[calcTotalStats] operator[SEP] ope...
public void marshall(ListItemsRequest listItemsRequest, ProtocolMarshaller protocolMarshaller) { if (listItemsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listItemsRequest.getPath(), PAT...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[listItemsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.listItemsRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postf...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ListItemsRequest] identifier[listItemsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[listItemsRequest] operator[==] Other[null] operator[SEP] { Ke...
public IStringBuffer deleteCharAt( int idx ) { if ( idx < 0 ) throw new IndexOutOfBoundsException("idx < 0"); if ( idx >= count ) throw new IndexOutOfBoundsException("idx >= buffer.length"); //here we got a bug for j < count //change over it to count ...
class class_name[name] begin[{] method[deleteCharAt, return_type[type[IStringBuffer]], modifier[public], parameter[idx]] begin[{] if[binary_operation[member[.idx], <, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], quali...
Keyword[public] identifier[IStringBuffer] identifier[deleteCharAt] operator[SEP] Keyword[int] identifier[idx] operator[SEP] { Keyword[if] operator[SEP] identifier[idx] operator[<] Other[0] operator[SEP] Keyword[throw] Keyword[new] identifier[IndexOutOfBoundsException] operator[SEP] literal[String] operator[SEP] ...
private String extractAuthTokenFromCookieList(String cookieList) { if (cookieList == null || cookieList.length() == 0) { return null; } String[] cookies = cookieList.split(";"); for (String cookie : cookies) { if (cookie.trim().startsWith(tokenKey)) { ...
class class_name[name] begin[{] method[extractAuthTokenFromCookieList, return_type[type[String]], modifier[private], parameter[cookieList]] begin[{] if[binary_operation[binary_operation[member[.cookieList], ==, literal[null]], ||, binary_operation[call[cookieList.length, parameter[]], ==, liter...
Keyword[private] identifier[String] identifier[extractAuthTokenFromCookieList] operator[SEP] identifier[String] identifier[cookieList] operator[SEP] { Keyword[if] operator[SEP] identifier[cookieList] operator[==] Other[null] operator[||] identifier[cookieList] operator[SEP] identifier[length] operator[SEP] opera...
public boolean runNext() { if (!hasQueuedTasks()) { return false; } if (Thread.currentThread().equals(executorThread)) { Logger.info("ignoring request to execute task - called from executor's own thread"); return false; } Runnable task = deferredTasks.poll(); task.run(); re...
class class_name[name] begin[{] method[runNext, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[call[.hasQueuedTasks, parameter[]]] begin[{] return[literal[false]] else begin[{] None end[}] if[call[Thread.currentThread, paramete...
Keyword[public] Keyword[boolean] identifier[runNext] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[hasQueuedTasks] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] identifier[Thread] op...
public static void initGallery(CmsDialog wp) { // 1. get "gallerytypename" by reading the folderpath String galleryTypeName = null; if (wp.useNewStyle()) { galleryTypeName = CmsResource.getName(CmsResource.getFolderPath(wp.getAdminTool().getHandler().getLink())); } else { ...
class class_name[name] begin[{] method[initGallery, return_type[void], modifier[public static], parameter[wp]] begin[{] local_variable[type[String], galleryTypeName] if[call[wp.useNewStyle, parameter[]]] begin[{] assign[member[.galleryTypeName], call[CmsResource....
Keyword[public] Keyword[static] Keyword[void] identifier[initGallery] operator[SEP] identifier[CmsDialog] identifier[wp] operator[SEP] { identifier[String] identifier[galleryTypeName] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[wp] operator[SEP] identifier[useNewStyle] operator[SEP...
private void initializeRpcPlugins(final String[] pluginClassNames, final ImmutableList.Builder<RpcPlugin> rpcs) { for (final String plugin : pluginClassNames) { final RpcPlugin rpc = createAndInitialize(plugin, RpcPlugin.class); rpcs.add(rpc); } }
class class_name[name] begin[{] method[initializeRpcPlugins, return_type[void], modifier[private], parameter[pluginClassNames, rpcs]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Met...
Keyword[private] Keyword[void] identifier[initializeRpcPlugins] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[pluginClassNames] , Keyword[final] identifier[ImmutableList] operator[SEP] identifier[Builder] operator[<] identifier[RpcPlugin] operator[>] identifier[rpcs] operator[S...
public static String createId(String name, int index) { StringBuffer result = new StringBuffer(); result.append(name); result.append('.'); result.append(index); return result.toString(); }
class class_name[name] begin[{] method[createId, return_type[type[String]], modifier[public static], parameter[name, index]] begin[{] local_variable[type[StringBuffer], result] call[result.append, parameter[member[.name]]] call[result.append, parameter[literal['.']]] ...
Keyword[public] Keyword[static] identifier[String] identifier[createId] operator[SEP] identifier[String] identifier[name] , Keyword[int] identifier[index] operator[SEP] { identifier[StringBuffer] identifier[result] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] operator[SEP] operator[SEP] ident...
public boolean restoreAccessibilityFocus(CalendarDay day) { if ((day.year != mYear) || (day.month != mMonth) || (day.day > mNumCells)) { return false; } mTouchHelper.setFocusedVirtualView(day.day); return true; }
class class_name[name] begin[{] method[restoreAccessibilityFocus, return_type[type[boolean]], modifier[public], parameter[day]] begin[{] if[binary_operation[binary_operation[binary_operation[member[day.year], !=, member[.mYear]], ||, binary_operation[member[day.month], !=, member[.mMonth]]], ||...
Keyword[public] Keyword[boolean] identifier[restoreAccessibilityFocus] operator[SEP] identifier[CalendarDay] identifier[day] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[day] operator[SEP] identifier[year] operator[!=] identifier[mYear] operator[SEP] operator[||] operator[SEP] identifier[da...
public final EObject ruleXShortClosure() throws RecognitionException { EObject current = null; Token otherlv_2=null; Token lv_explicitSyntax_4_0=null; EObject lv_declaredFormalParameters_1_0 = null; EObject lv_declaredFormalParameters_3_0 = null; EObject lv_expression_...
class class_name[name] begin[{] method[ruleXShortClosure, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[Token], otherlv_2] local_variable[type[Token], lv_explicitSyntax_4_0] local_variable[typ...
Keyword[public] Keyword[final] identifier[EObject] identifier[ruleXShortClosure] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[Token] identifier[otherlv_2] operator[=] Other[null] operator[SE...
public void marshall(DescribeProtectedResourceRequest describeProtectedResourceRequest, ProtocolMarshaller protocolMarshaller) { if (describeProtectedResourceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[describeProtectedResourceRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.describeProtectedResourceRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=Class...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeProtectedResourceRequest] identifier[describeProtectedResourceRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[describeProtectedResourceRequest] operat...
@Override public synchronized void stop(final StopContext context) { final Runnable task = new Runnable() { @Override public void run() { try { if (isMasterDomainController && (discoveryOptions != null)) { for (DiscoveryOpti...
class class_name[name] begin[{] method[stop, return_type[void], modifier[synchronized public], parameter[context]] begin[{] local_variable[type[Runnable], task] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operat...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[void] identifier[stop] operator[SEP] Keyword[final] identifier[StopContext] identifier[context] operator[SEP] { Keyword[final] identifier[Runnable] identifier[task] operator[=] Keyword[new] identifier[Runnable] operator[SEP] operato...
public ProjectCalendarHours getHours(Day day) { ProjectCalendarHours result = getCalendarHours(day); if (result == null) { // // If this is a base calendar and we have no hours, then we // have a problem - so we add the default hours and try again // if ...
class class_name[name] begin[{] method[getHours, return_type[type[ProjectCalendarHours]], modifier[public], parameter[day]] begin[{] local_variable[type[ProjectCalendarHours], result] if[binary_operation[member[.result], ==, literal[null]]] begin[{] if[binary_ope...
Keyword[public] identifier[ProjectCalendarHours] identifier[getHours] operator[SEP] identifier[Day] identifier[day] operator[SEP] { identifier[ProjectCalendarHours] identifier[result] operator[=] identifier[getCalendarHours] operator[SEP] identifier[day] operator[SEP] operator[SEP] Keyword[if] operator[SEP] iden...
public static String slcEnd( String str, int end ) { return FastStringUtils.noCopyStringFromChars( Chr.slcEnd( FastStringUtils.toCharArray(str), end ) ); }
class class_name[name] begin[{] method[slcEnd, return_type[type[String]], modifier[public static], parameter[str, end]] begin[{] return[call[FastStringUtils.noCopyStringFromChars, parameter[call[Chr.slcEnd, parameter[call[FastStringUtils.toCharArray, parameter[member[.str]]], member[.end]]]]]] end[...
Keyword[public] Keyword[static] identifier[String] identifier[slcEnd] operator[SEP] identifier[String] identifier[str] , Keyword[int] identifier[end] operator[SEP] { Keyword[return] identifier[FastStringUtils] operator[SEP] identifier[noCopyStringFromChars] operator[SEP] identifier[Chr] operator[SEP] identifier...
protected String handleContextHeader(BufferedReader document) throws IOException { return (readHeader) ? document.readLine().trim() : null; }
class class_name[name] begin[{] method[handleContextHeader, return_type[type[String]], modifier[protected], parameter[document]] begin[{] return[TernaryExpression(condition=MemberReference(member=readHeader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_false=Literal(postfix_...
Keyword[protected] identifier[String] identifier[handleContextHeader] operator[SEP] identifier[BufferedReader] identifier[document] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] operator[SEP] identifier[readHeader] operator[SEP] operator[?] identifier[document] operator[SEP] identifier[...
public OutputInner createOrReplace(String resourceGroupName, String jobName, String outputName, OutputInner output, String ifMatch, String ifNoneMatch) { return createOrReplaceWithServiceResponseAsync(resourceGroupName, jobName, outputName, output, ifMatch, ifNoneMatch).toBlocking().single().body(); }
class class_name[name] begin[{] method[createOrReplace, return_type[type[OutputInner]], modifier[public], parameter[resourceGroupName, jobName, outputName, output, ifMatch, ifNoneMatch]] begin[{] return[call[.createOrReplaceWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.jobName...
Keyword[public] identifier[OutputInner] identifier[createOrReplace] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[jobName] , identifier[String] identifier[outputName] , identifier[OutputInner] identifier[output] , identifier[String] identifier[ifMatch] , identifier[...
@Override public V putIfAbsent(K key, V value) { return rMap.putIfAbsent(key, value); }
class class_name[name] begin[{] method[putIfAbsent, return_type[type[V]], modifier[public], parameter[key, value]] begin[{] return[call[rMap.putIfAbsent, parameter[member[.key], member[.value]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[V] identifier[putIfAbsent] operator[SEP] identifier[K] identifier[key] , identifier[V] identifier[value] operator[SEP] { Keyword[return] identifier[rMap] operator[SEP] identifier[putIfAbsent] operator[SEP] identifier[key] , identifier[value] operato...
public Geometry read( InStream is ) throws IOException, ParseException { dis.setInStream(is); Geometry g = readSpatialiteGeometry(); return g; }
class class_name[name] begin[{] method[read, return_type[type[Geometry]], modifier[public], parameter[is]] begin[{] call[dis.setInStream, parameter[member[.is]]] local_variable[type[Geometry], g] return[member[.g]] end[}] END[}]
Keyword[public] identifier[Geometry] identifier[read] operator[SEP] identifier[InStream] identifier[is] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ParseException] { identifier[dis] operator[SEP] identifier[setInStream] operator[SEP] identifier[is] operator[SEP] operator[SEP] identifier[G...
public String[] getPartNames() { Set s = _partMap.keySet(); return (String[]) s.toArray(new String[s.size()]); }
class class_name[name] begin[{] method[getPartNames, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[Set], s] return[Cast(expression=MethodInvocation(arguments=[ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], pref...
Keyword[public] identifier[String] operator[SEP] operator[SEP] identifier[getPartNames] operator[SEP] operator[SEP] { identifier[Set] identifier[s] operator[=] identifier[_partMap] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[String] operator...
public void marshall(RevokeFlowEntitlementRequest revokeFlowEntitlementRequest, ProtocolMarshaller protocolMarshaller) { if (revokeFlowEntitlementRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[revokeFlowEntitlementRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.revokeFlowEntitlementRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[RevokeFlowEntitlementRequest] identifier[revokeFlowEntitlementRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[revokeFlowEntitlementRequest] operator[==] Other...
public void update(NavigationCameraUpdate update, int durationMs, @Nullable MapboxMap.CancelableCallback callback) { animationDelegate.render(update, durationMs, callback); }
class class_name[name] begin[{] method[update, return_type[void], modifier[public], parameter[update, durationMs, callback]] begin[{] call[animationDelegate.render, parameter[member[.update], member[.durationMs], member[.callback]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[update] operator[SEP] identifier[NavigationCameraUpdate] identifier[update] , Keyword[int] identifier[durationMs] , annotation[@] identifier[Nullable] identifier[MapboxMap] operator[SEP] identifier[CancelableCallback] identifier[callback] operator[SEP] { identifier[anim...
private boolean match(Class<?>[] declaredTypes, Class<?>[] actualTypes) { if (declaredTypes.length == actualTypes.length) { for (int i = 0; i < actualTypes.length; i++) { if (actualTypes[i] == NULL.class) continue; if (wrapper(declaredTypes[i]).is...
class class_name[name] begin[{] method[match, return_type[type[boolean]], modifier[private], parameter[declaredTypes, actualTypes]] begin[{] if[binary_operation[member[declaredTypes.length], ==, member[actualTypes.length]]] begin[{] ForStatement(body=BlockStatement(label=None, state...
Keyword[private] Keyword[boolean] identifier[match] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[declaredTypes] , identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[actualTypes] operator[SEP] { Keyword[if] op...
public static int toInt(byte[] bytes ) { int result = 0; for (int i = 0; i < 4; i++) { result = (result << 8) - Byte.MIN_VALUE + (int)bytes[i]; } return result; }
class class_name[name] begin[{] method[toInt, return_type[type[int]], modifier[public static], parameter[bytes]] begin[{] local_variable[type[int], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=resul...
Keyword[public] Keyword[static] Keyword[int] identifier[toInt] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[SEP] { Keyword[int] identifier[result] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] iden...
protected State replaceOrRegister(StateSignature sig) { State state = register.get(sig); if (state != null) { return state; } state = new State(sig); register.put(sig, state); for (int i = 0; i < sig.successors.array.length; i++) { State succ = si...
class class_name[name] begin[{] method[replaceOrRegister, return_type[type[State]], modifier[protected], parameter[sig]] begin[{] local_variable[type[State], state] if[binary_operation[member[.state], !=, literal[null]]] begin[{] return[member[.state]] else begin[{] ...
Keyword[protected] identifier[State] identifier[replaceOrRegister] operator[SEP] identifier[StateSignature] identifier[sig] operator[SEP] { identifier[State] identifier[state] operator[=] identifier[register] operator[SEP] identifier[get] operator[SEP] identifier[sig] operator[SEP] operator[SEP] Keyword[if] oper...
private void addHeaderList(Map<String, List<String>> headers, String name, String value) { List<String> values = headers.get(name); if (values == null) { values = new ArrayList<String>(); headers.put(name, values); } values.add(value); }
class class_name[name] begin[{] method[addHeaderList, return_type[void], modifier[private], parameter[headers, name, value]] begin[{] local_variable[type[List], values] if[binary_operation[member[.values], ==, literal[null]]] begin[{] assign[member[.values], Clas...
Keyword[private] Keyword[void] identifier[addHeaderList] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[String] operator[>] operator[>] identifier[headers] , identifier[String] identifier[name] , identifier[String] identifier[value] operator[SEP] { ident...
protected DefaultMutableTreeNode getDataAsTree() { try { return (DefaultMutableTreeNode) MethodUtils.invokeMethod(view, "getDataAsTree", null); } catch (Exception e) { return null; } }
class class_name[name] begin[{] method[getDataAsTree, return_type[type[DefaultMutableTreeNode]], modifier[protected], parameter[]] begin[{] TryStatement(block=[ReturnStatement(expression=Cast(expression=MethodInvocation(arguments=[MemberReference(member=view, postfix_operators=[], prefix_operators=[], ...
Keyword[protected] identifier[DefaultMutableTreeNode] identifier[getDataAsTree] operator[SEP] operator[SEP] { Keyword[try] { Keyword[return] operator[SEP] identifier[DefaultMutableTreeNode] operator[SEP] identifier[MethodUtils] operator[SEP] identifier[invokeMethod] operator[SEP] identifier[view] , l...
private static void addGetOpenEngSBModelTail(CtClass clazz) throws CannotCompileException, NotFoundException { CtClass[] params = generateClassField(); CtMethod method = new CtMethod(cp.get(List.class.getName()), "getOpenEngSBModelTail", params, clazz); StringBuilder body = new StringBuilder(); ...
class class_name[name] begin[{] method[addGetOpenEngSBModelTail, return_type[void], modifier[private static], parameter[clazz]] begin[{] local_variable[type[CtClass], params] local_variable[type[CtMethod], method] local_variable[type[StringBuilder], body] call[body.appen...
Keyword[private] Keyword[static] Keyword[void] identifier[addGetOpenEngSBModelTail] operator[SEP] identifier[CtClass] identifier[clazz] operator[SEP] Keyword[throws] identifier[CannotCompileException] , identifier[NotFoundException] { identifier[CtClass] operator[SEP] operator[SEP] identifier[params] operator[=...
public EClass getIfcMassMeasure() { if (ifcMassMeasureEClass == null) { ifcMassMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(707); } return ifcMassMeasureEClass; }
class class_name[name] begin[{] method[getIfcMassMeasure, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcMassMeasureEClass], ==, literal[null]]] begin[{] assign[member[.ifcMassMeasureEClass], Cast(expression=MethodInvoca...
Keyword[public] identifier[EClass] identifier[getIfcMassMeasure] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcMassMeasureEClass] operator[==] Other[null] operator[SEP] { identifier[ifcMassMeasureEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPac...
public ApnsServiceBuilder asBatched(int waitTimeInSec, int maxWaitTimeInSec, ScheduledExecutorService batchThreadPoolExecutor) { this.isBatched = true; this.batchWaitTimeInSec = waitTimeInSec; this.batchMaxWaitTimeInSec = maxWaitTimeInSec; this.batchThreadPoolExecutor = batchThreadPoolEx...
class class_name[name] begin[{] method[asBatched, return_type[type[ApnsServiceBuilder]], modifier[public], parameter[waitTimeInSec, maxWaitTimeInSec, batchThreadPoolExecutor]] begin[{] assign[THIS[member[None.isBatched]], literal[true]] assign[THIS[member[None.batchWaitTimeInSec...
Keyword[public] identifier[ApnsServiceBuilder] identifier[asBatched] operator[SEP] Keyword[int] identifier[waitTimeInSec] , Keyword[int] identifier[maxWaitTimeInSec] , identifier[ScheduledExecutorService] identifier[batchThreadPoolExecutor] operator[SEP] { Keyword[this] operator[SEP] identifier[isBatched] oper...
protected final Object getIdentifier(Object value, SharedSessionContractImplementor session) throws HibernateException { if ( value == null ) { return null; } //isNotEmbedded copied from EntityType#isNotEmbedded boolean isNotEmbedded = isNotEmbedded( session ); if ( isNotEmbedded ) { return value; } ...
class class_name[name] begin[{] method[getIdentifier, return_type[type[Object]], modifier[final protected], parameter[value, session]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] lo...
Keyword[protected] Keyword[final] identifier[Object] identifier[getIdentifier] operator[SEP] identifier[Object] identifier[value] , identifier[SharedSessionContractImplementor] identifier[session] operator[SEP] Keyword[throws] identifier[HibernateException] { Keyword[if] operator[SEP] identifier[value] operator...
public static CPDefinitionLink findByPrimaryKey(long CPDefinitionLinkId) throws com.liferay.commerce.product.exception.NoSuchCPDefinitionLinkException { return getPersistence().findByPrimaryKey(CPDefinitionLinkId); }
class class_name[name] begin[{] method[findByPrimaryKey, return_type[type[CPDefinitionLink]], modifier[public static], parameter[CPDefinitionLinkId]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CPDefinitionLink] identifier[findByPrimaryKey] operator[SEP] Keyword[long] identifier[CPDefinitionLinkId] operator[SEP] Keyword[throws] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[product] operator[SEP] identifi...
public static String asPath(String path) { if (path == null) { return null; } // On windows we have to replace the backslash if (!File.separator.equals(FileUtil.URI_SEPARATOR_CHAR)) { return path.replace(File.separator, FileUtil.URI_SEPARATOR_CHAR); } els...
class class_name[name] begin[{] method[asPath, return_type[type[String]], modifier[public static], parameter[path]] begin[{] if[binary_operation[member[.path], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] if[call[File.s...
Keyword[public] Keyword[static] identifier[String] identifier[asPath] operator[SEP] identifier[String] identifier[path] operator[SEP] { Keyword[if] operator[SEP] identifier[path] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[if] operator[SEP...
private Shape decodeInterior(int width, int height) { path.reset(); path.moveTo(1, 1); path.lineTo(width - 2, 1); path.lineTo(width - 2, height - 3); path.lineTo(width - 3, height - 2); path.lineTo(3, height - 2); path.lineTo(2, height - 3); path.closePath...
class class_name[name] begin[{] method[decodeInterior, return_type[type[Shape]], modifier[private], parameter[width, height]] begin[{] call[path.reset, parameter[]] call[path.moveTo, parameter[literal[1], literal[1]]] call[path.lineTo, parameter[binary_operation[...
Keyword[private] identifier[Shape] identifier[decodeInterior] operator[SEP] Keyword[int] identifier[width] , Keyword[int] identifier[height] operator[SEP] { identifier[path] operator[SEP] identifier[reset] operator[SEP] operator[SEP] operator[SEP] identifier[path] operator[SEP] identifier[moveTo] operator[SEP] ...
private static int findMinimumLeadingSpaces(String line, int count) { int length = line.length(); int index = 0; while (index < length && index < count && Character.isWhitespace(line.charAt(index))) index++; return index; }
class class_name[name] begin[{] method[findMinimumLeadingSpaces, return_type[type[int]], modifier[private static], parameter[line, count]] begin[{] local_variable[type[int], length] local_variable[type[int], index] while[binary_operation[binary_operation[binary_operation[member[...
Keyword[private] Keyword[static] Keyword[int] identifier[findMinimumLeadingSpaces] operator[SEP] identifier[String] identifier[line] , Keyword[int] identifier[count] operator[SEP] { Keyword[int] identifier[length] operator[=] identifier[line] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator...
protected void cumulateDistance(final List<LightweightTypeReference> references, Multimap<JvmType, LightweightTypeReference> all, Multiset<JvmType> cumulatedDistance) { for(LightweightTypeReference other: references) { Multiset<JvmType> otherDistance = LinkedHashMultiset.create(); initializeDistance(other, a...
class class_name[name] begin[{] method[cumulateDistance, return_type[void], modifier[protected], parameter[references, all, cumulatedDistance]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initi...
Keyword[protected] Keyword[void] identifier[cumulateDistance] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[LightweightTypeReference] operator[>] identifier[references] , identifier[Multimap] operator[<] identifier[JvmType] , identifier[LightweightTypeReference] operator[>] identifier[all] , i...
public void setAnimatedMouseCursor(String ref, int x, int y, int width, int height, int[] cursorDelays) throws SlickException { try { Cursor cursor; cursor = CursorLoader.get().getAnimatedCursor(ref, x, y, width, height, cursorDelays); setMouseCursor(cursor, x, y); } catch (IOException e) { thro...
class class_name[name] begin[{] method[setAnimatedMouseCursor, return_type[void], modifier[public], parameter[ref, x, y, width, height, cursorDelays]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=cursor)], mo...
Keyword[public] Keyword[void] identifier[setAnimatedMouseCursor] operator[SEP] identifier[String] identifier[ref] , Keyword[int] identifier[x] , Keyword[int] identifier[y] , Keyword[int] identifier[width] , Keyword[int] identifier[height] , Keyword[int] operator[SEP] operator[SEP] identifier[cursorDelays] operator...
public void setForegroundColors(int[] colors) { if (colors.length < _corners) { throw new IllegalArgumentException(String.format(Locale.getDefault(), "Not enough foreground colors, your corners is %d.", _corners)); } _foreground_colors = new int[colors.length]; ...
class class_name[name] begin[{] method[setForegroundColors, return_type[void], modifier[public], parameter[colors]] begin[{] if[binary_operation[member[colors.length], <, member[._corners]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Metho...
Keyword[public] Keyword[void] identifier[setForegroundColors] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[colors] operator[SEP] { Keyword[if] operator[SEP] identifier[colors] operator[SEP] identifier[length] operator[<] identifier[_corners] operator[SEP] { Keyword[throw] Keyword[...
@Override public Collection<Range<T>> rangesContaining(final T item) { final ImmutableSet.Builder<Range<T>> ret = ImmutableSet.builder(); for (final Range<T> range : ranges) { if (range.contains(item)) { ret.add(range); } } return ret.build(); }
class class_name[name] begin[{] method[rangesContaining, return_type[type[Collection]], modifier[public], parameter[item]] begin[{] local_variable[type[ImmutableSet], ret] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(...
annotation[@] identifier[Override] Keyword[public] identifier[Collection] operator[<] identifier[Range] operator[<] identifier[T] operator[>] operator[>] identifier[rangesContaining] operator[SEP] Keyword[final] identifier[T] identifier[item] operator[SEP] { Keyword[final] identifier[ImmutableSet] operator[SEP] ...
@SuppressWarnings("unchecked") public T swap(T value) { final Holder holder; final T oldValue; WeakReference<Holder> ref = local.get(); if (ref != null) { holder = ref.get(); Object holderValue = holder.value; if (holderValue != UNINITIALISED) { ...
class class_name[name] begin[{] method[swap, return_type[type[T]], modifier[public], parameter[value]] begin[{] local_variable[type[Holder], holder] local_variable[type[T], oldValue] local_variable[type[WeakReference], ref] if[binary_operation[member[.ref], !=, literal[n...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[T] identifier[swap] operator[SEP] identifier[T] identifier[value] operator[SEP] { Keyword[final] identifier[Holder] identifier[holder] operator[SEP] Keyword[final] identifier[T] identifier[oldValue] ...
public static UnitResponse createMissingParam(Object theMissingParameters, String errMsg) { return UnitResponse.createError(Group.CODE_LACK_OF_PARAMETER, theMissingParameters, errMsg); }
class class_name[name] begin[{] method[createMissingParam, return_type[type[UnitResponse]], modifier[public static], parameter[theMissingParameters, errMsg]] begin[{] return[call[UnitResponse.createError, parameter[member[Group.CODE_LACK_OF_PARAMETER], member[.theMissingParameters], member[.errMsg]]]] ...
Keyword[public] Keyword[static] identifier[UnitResponse] identifier[createMissingParam] operator[SEP] identifier[Object] identifier[theMissingParameters] , identifier[String] identifier[errMsg] operator[SEP] { Keyword[return] identifier[UnitResponse] operator[SEP] identifier[createError] operator[SEP] identifie...
public String getHeader(String name) { if(name == null) { throw new NullPointerException("header name is null"); } try { return RFC2396UrlDecoder.decode(((javax.sip.address.SipURI) super.uri).getHeader(name)); } catch (NullPointerException e) { return null; } }
class class_name[name] begin[{] method[getHeader, return_type[type[String]], modifier[public], parameter[name]] begin[{] if[binary_operation[member[.name], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[...
Keyword[public] identifier[String] identifier[getHeader] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[name] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] literal[String] oper...
protected Logger getLogger() { Logger l = this.logger; if (l == null) { l = LoggerFactory.getLogger(LOGGER_NAME); this.logger = l; } return l; }
class class_name[name] begin[{] method[getLogger, return_type[type[Logger]], modifier[protected], parameter[]] begin[{] local_variable[type[Logger], l] if[binary_operation[member[.l], ==, literal[null]]] begin[{] assign[member[.l], call[LoggerFactory.getLogger, p...
Keyword[protected] identifier[Logger] identifier[getLogger] operator[SEP] operator[SEP] { identifier[Logger] identifier[l] operator[=] Keyword[this] operator[SEP] identifier[logger] operator[SEP] Keyword[if] operator[SEP] identifier[l] operator[==] Other[null] operator[SEP] { identifier[l] operator[=]...
public synchronized void sendEventExcludeSource(java.util.EventObject event) { if (!hasListeners || !enabled) return; Object source = event.getSource(); Object[] args = new Object[1]; args[0] = event; // send event to all listeners except the source ListIterator iter = listeners.listIter...
class class_name[name] begin[{] method[sendEventExcludeSource, return_type[void], modifier[synchronized public], parameter[event]] begin[{] if[binary_operation[member[.hasListeners], ||, member[.enabled]]] begin[{] return[None] else begin[{] None end[}] local_variable[ty...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[sendEventExcludeSource] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[EventObject] identifier[event] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[hasListeners] operator[||] operator[!] iden...
private static TransitionType getTransitionHorizontalVertical(TransitionType a, TransitionType b, int ox, int oy) { final TransitionType type; if (ox == -1 && oy == 0) { type = TransitionType.from(!b.getDownRight(), a.getDownLeft(), !b.getUpRight(), a.getUpLeft()); ...
class class_name[name] begin[{] method[getTransitionHorizontalVertical, return_type[type[TransitionType]], modifier[private static], parameter[a, b, ox, oy]] begin[{] local_variable[type[TransitionType], type] if[binary_operation[binary_operation[member[.ox], ==, literal[1]], &&, binary...
Keyword[private] Keyword[static] identifier[TransitionType] identifier[getTransitionHorizontalVertical] operator[SEP] identifier[TransitionType] identifier[a] , identifier[TransitionType] identifier[b] , Keyword[int] identifier[ox] , Keyword[int] identifier[oy] operator[SEP] { Keyword[final] identifier[Transi...
public static void main(String[] args) { CitrusRemoteServer server = new CitrusRemoteServer(args); if (server.configuration.getTimeToLive() > 0) { CompletableFuture.runAsync(() -> { try { new CompletableFuture<Void>().get(server.configuration.getTimeToLiv...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] local_variable[type[CitrusRemoteServer], server] if[binary_operation[call[server.configuration.getTimeToLive, parameter[]], >, literal[0]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { identifier[CitrusRemoteServer] identifier[server] operator[=] Keyword[new] identifier[CitrusRemoteServer] operator[SEP] identifier[args] operator[SEP] opera...
private Point3d[] generateSpherePoints(int nSpherePoints) { Point3d[] points = new Point3d[nSpherePoints]; double inc = Math.PI * (3.0 - Math.sqrt(5.0)); double offset = 2.0 / nSpherePoints; for (int k=0;k<nSpherePoints;k++) { double y = k * offset - 1.0 + (offset / 2.0); double r = Math.sqrt(1.0 - y*y); ...
class class_name[name] begin[{] method[generateSpherePoints, return_type[type[Point3d]], modifier[private], parameter[nSpherePoints]] begin[{] local_variable[type[Point3d], points] local_variable[type[double], inc] local_variable[type[double], offset] ForStatement(body=BlockStat...
Keyword[private] identifier[Point3d] operator[SEP] operator[SEP] identifier[generateSpherePoints] operator[SEP] Keyword[int] identifier[nSpherePoints] operator[SEP] { identifier[Point3d] operator[SEP] operator[SEP] identifier[points] operator[=] Keyword[new] identifier[Point3d] operator[SEP] identifier[nSpherePo...
@TargetApi(Build.VERSION_CODES.GINGERBREAD) public static boolean hasSipVoipFeature(Context context) { return hasSipVoipFeature(context.getPackageManager()); }
class class_name[name] begin[{] method[hasSipVoipFeature, return_type[type[boolean]], modifier[public static], parameter[context]] begin[{] return[call[.hasSipVoipFeature, parameter[call[context.getPackageManager, parameter[]]]]] end[}] END[}]
annotation[@] identifier[TargetApi] operator[SEP] identifier[Build] operator[SEP] identifier[VERSION_CODES] operator[SEP] identifier[GINGERBREAD] operator[SEP] Keyword[public] Keyword[static] Keyword[boolean] identifier[hasSipVoipFeature] operator[SEP] identifier[Context] identifier[context] operator[SEP] { Keyw...
public void marshall(UpdateWorkGroupRequest updateWorkGroupRequest, ProtocolMarshaller protocolMarshaller) { if (updateWorkGroupRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(updateWorkGro...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[updateWorkGroupRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.updateWorkGroupRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[L...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UpdateWorkGroupRequest] identifier[updateWorkGroupRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[updateWorkGroupRequest] operator[==] Other[null] operator[SE...
@Beta public static ScheduledExecutorService getExitingScheduledExecutorService( ScheduledThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { return new Application() .getExitingScheduledExecutorService(executor, terminationTimeout, timeUnit); }
class class_name[name] begin[{] method[getExitingScheduledExecutorService, return_type[type[ScheduledExecutorService]], modifier[public static], parameter[executor, terminationTimeout, timeUnit]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[]...
annotation[@] identifier[Beta] Keyword[public] Keyword[static] identifier[ScheduledExecutorService] identifier[getExitingScheduledExecutorService] operator[SEP] identifier[ScheduledThreadPoolExecutor] identifier[executor] , Keyword[long] identifier[terminationTimeout] , identifier[TimeUnit] identifier[timeUnit] opera...
public long copyIn(final String sql, Reader from) throws SQLException, IOException { return copyIn(sql, from, DEFAULT_BUFFER_SIZE); }
class class_name[name] begin[{] method[copyIn, return_type[type[long]], modifier[public], parameter[sql, from]] begin[{] return[call[.copyIn, parameter[member[.sql], member[.from], member[.DEFAULT_BUFFER_SIZE]]]] end[}] END[}]
Keyword[public] Keyword[long] identifier[copyIn] operator[SEP] Keyword[final] identifier[String] identifier[sql] , identifier[Reader] identifier[from] operator[SEP] Keyword[throws] identifier[SQLException] , identifier[IOException] { Keyword[return] identifier[copyIn] operator[SEP] identifier[sql] , identifie...
private static boolean isLocalDefaultValueAssignment(Node targetNode, Node valueNode) { return valueNode.isOr() && targetNode.isQualifiedName() && valueNode.getFirstChild().isEquivalentTo(targetNode) && NodeUtil.evaluatesToLocalValue(valueNode.getLastChild()); }
class class_name[name] begin[{] method[isLocalDefaultValueAssignment, return_type[type[boolean]], modifier[private static], parameter[targetNode, valueNode]] begin[{] return[binary_operation[binary_operation[binary_operation[call[valueNode.isOr, parameter[]], &&, call[targetNode.isQualifiedName, parame...
Keyword[private] Keyword[static] Keyword[boolean] identifier[isLocalDefaultValueAssignment] operator[SEP] identifier[Node] identifier[targetNode] , identifier[Node] identifier[valueNode] operator[SEP] { Keyword[return] identifier[valueNode] operator[SEP] identifier[isOr] operator[SEP] operator[SEP] operator[&&]...
public static String ascii(String code, String key) { return ascii(code, CryptUtils.stringToKey(key)); }
class class_name[name] begin[{] method[ascii, return_type[type[String]], modifier[public static], parameter[code, key]] begin[{] return[call[.ascii, parameter[member[.code], call[CryptUtils.stringToKey, parameter[member[.key]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[ascii] operator[SEP] identifier[String] identifier[code] , identifier[String] identifier[key] operator[SEP] { Keyword[return] identifier[ascii] operator[SEP] identifier[code] , identifier[CryptUtils] operator[SEP] identifier[stringToKey] operator[SE...
protected void initialize() { if (m_folderList != null) { // ensure folders are sorted starting with parent folders Collections.sort(m_folderList, I_CmsResource.COMPARE_ROOT_PATH); } if (m_fileList != null) { // ensure files are sorted starting with files in...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[protected], parameter[]] begin[{] if[binary_operation[member[.m_folderList], !=, literal[null]]] begin[{] call[Collections.sort, parameter[member[.m_folderList], member[I_CmsResource.COMPARE_R...
Keyword[protected] Keyword[void] identifier[initialize] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[m_folderList] operator[!=] Other[null] operator[SEP] { identifier[Collections] operator[SEP] identifier[sort] operator[SEP] identifier[m_folderList] , identifier[I_CmsResource] o...
public static DefaultListModel leftShift(DefaultListModel self, Object e) { self.addElement(e); return self; }
class class_name[name] begin[{] method[leftShift, return_type[type[DefaultListModel]], modifier[public static], parameter[self, e]] begin[{] call[self.addElement, parameter[member[.e]]] return[member[.self]] end[}] END[}]
Keyword[public] Keyword[static] identifier[DefaultListModel] identifier[leftShift] operator[SEP] identifier[DefaultListModel] identifier[self] , identifier[Object] identifier[e] operator[SEP] { identifier[self] operator[SEP] identifier[addElement] operator[SEP] identifier[e] operator[SEP] operator[SEP] Keyword[...
public static final void setCurrentEpoch(int number) { if (tc.isDebugEnabled()) Tr.debug(tc, "setCurrentEpoch", number); currentEpoch = number; }
class class_name[name] begin[{] method[setCurrentEpoch, return_type[void], modifier[final public static], parameter[number]] begin[{] if[call[tc.isDebugEnabled, parameter[]]] begin[{] call[Tr.debug, parameter[member[.tc], literal["setCurrentEpoch"], member[.number]]] else be...
Keyword[public] Keyword[static] Keyword[final] Keyword[void] identifier[setCurrentEpoch] operator[SEP] Keyword[int] identifier[number] operator[SEP] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifie...
@Override public <SN,N,V> Mutator<K> addInsertion(K key, String cf, HSuperColumn<SN,N,V> sc) { getPendingMutations().addSuperInsertion(key, Arrays.asList(cf), ((HSuperColumnImpl<SN,N,V>) sc).toThrift()); return this; }
class class_name[name] begin[{] method[addInsertion, return_type[type[Mutator]], modifier[public], parameter[key, cf, sc]] begin[{] call[.getPendingMutations, parameter[]] return[THIS[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[SN] , identifier[N] , identifier[V] operator[>] identifier[Mutator] operator[<] identifier[K] operator[>] identifier[addInsertion] operator[SEP] identifier[K] identifier[key] , identifier[String] identifier[cf] , identifier[HSuperColumn] oper...
public static DirectBuffer toBuffer(NDArrayMessage message) { ByteBuffer byteBuffer = ByteBuffer.allocateDirect(byteBufferSizeForMessage(message)).order(ByteOrder.nativeOrder()); //declare message opType byteBuffer.putInt(MessageType.WHOLE.ordinal()); //perform th...
class class_name[name] begin[{] method[toBuffer, return_type[type[DirectBuffer]], modifier[public static], parameter[message]] begin[{] local_variable[type[ByteBuffer], byteBuffer] call[byteBuffer.putInt, parameter[call[MessageType.WHOLE.ordinal, parameter[]]]] if[call[m...
Keyword[public] Keyword[static] identifier[DirectBuffer] identifier[toBuffer] operator[SEP] identifier[NDArrayMessage] identifier[message] operator[SEP] { identifier[ByteBuffer] identifier[byteBuffer] operator[=] identifier[ByteBuffer] operator[SEP] identifier[allocateDirect] operator[SEP] identifier[byteBufferS...
public void setChnlCde(Integer newChnlCde) { Integer oldChnlCde = chnlCde; chnlCde = newChnlCde; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.LND__CHNL_CDE, oldChnlCde, chnlCde)); }
class class_name[name] begin[{] method[setChnlCde, return_type[void], modifier[public], parameter[newChnlCde]] begin[{] local_variable[type[Integer], oldChnlCde] assign[member[.chnlCde], member[.newChnlCde]] if[call[.eNotificationRequired, parameter[]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setChnlCde] operator[SEP] identifier[Integer] identifier[newChnlCde] operator[SEP] { identifier[Integer] identifier[oldChnlCde] operator[=] identifier[chnlCde] operator[SEP] identifier[chnlCde] operator[=] identifier[newChnlCde] operator[SEP] Keyword[if] operator[SEP] ide...
private static List<ConfigPropType> inputProperties(String classname, BufferedReader in, boolean supportRequired) throws IOException { List<ConfigPropType> props = new ArrayList<>(); Set<String> propsNamesSet = new HashSet<>(); while (true) { System.out.println(rb.getString(...
class class_name[name] begin[{] method[inputProperties, return_type[type[List]], modifier[private static], parameter[classname, in, supportRequired]] begin[{] local_variable[type[List], props] local_variable[type[Set], propsNamesSet] while[literal[true]] begin[{] ...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[ConfigPropType] operator[>] identifier[inputProperties] operator[SEP] identifier[String] identifier[classname] , identifier[BufferedReader] identifier[in] , Keyword[boolean] identifier[supportRequired] operator[SEP] Keyword[throws] identifier[IO...
public View findTopChildUnder(int x, int y) { final int childCount = mParentView.getChildCount(); for (int i = childCount - 1; i >= 0; i--) { final View child = mParentView.getChildAt(mCallback.getOrderedChildIndex(i)); if (x >= child.getLeft() && x < child.getRight() && ...
class class_name[name] begin[{] method[findTopChildUnder, return_type[type[View]], modifier[public], parameter[x, y]] begin[{] local_variable[type[int], childCount] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(...
Keyword[public] identifier[View] identifier[findTopChildUnder] operator[SEP] Keyword[int] identifier[x] , Keyword[int] identifier[y] operator[SEP] { Keyword[final] Keyword[int] identifier[childCount] operator[=] identifier[mParentView] operator[SEP] identifier[getChildCount] operator[SEP] operator[SEP] operator...
public void addNewArray(String name, TypeMirror type, int size) throws IOException { if (type.getKind() != TypeKind.ARRAY) { throw new IllegalArgumentException(type+" is not array"); } ArrayType at = (ArrayType) type; addVariable(name, at); newarra...
class class_name[name] begin[{] method[addNewArray, return_type[void], modifier[public], parameter[name, type, size]] begin[{] if[binary_operation[call[type.getKind, parameter[]], !=, member[TypeKind.ARRAY]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation...
Keyword[public] Keyword[void] identifier[addNewArray] operator[SEP] identifier[String] identifier[name] , identifier[TypeMirror] identifier[type] , Keyword[int] identifier[size] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[type] operator[SEP] identifier[getKind] ...
@Override public int read() throws IOException { if (max >= 0 && pos >= max) { return -1; } int result = in.read(); pos++; return result; }
class class_name[name] begin[{] method[read, return_type[type[int]], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[member[.max], >=, literal[0]], &&, binary_operation[member[.pos], >=, member[.max]]]] begin[{] return[literal[1]] else begin[{] N...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[read] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[max] operator[>=] Other[0] operator[&&] identifier[pos] operator[>=] identifier[max] operator[SEP] { Keyword[retur...
public boolean log(String filename, int lineNo, Logger.Level level, String format) { return FerryJNI.Logger_log(swigCPtr, this, filename, lineNo, level.swigValue(), format); }
class class_name[name] begin[{] method[log, return_type[type[boolean]], modifier[public], parameter[filename, lineNo, level, format]] begin[{] return[call[FerryJNI.Logger_log, parameter[member[.swigCPtr], THIS[], member[.filename], member[.lineNo], call[level.swigValue, parameter[]], member[.format]]]]...
Keyword[public] Keyword[boolean] identifier[log] operator[SEP] identifier[String] identifier[filename] , Keyword[int] identifier[lineNo] , identifier[Logger] operator[SEP] identifier[Level] identifier[level] , identifier[String] identifier[format] operator[SEP] { Keyword[return] identifier[FerryJNI] operator[...
public JsonValueProcessor findJsonValueProcessor( Class propertyType, String key ) { JsonValueProcessor jsonValueProcessor = null; jsonValueProcessor = (JsonValueProcessor) keyMap.get( key ); if( jsonValueProcessor != null ) { return jsonValueProcessor; } Object tkey = jsonValueP...
class class_name[name] begin[{] method[findJsonValueProcessor, return_type[type[JsonValueProcessor]], modifier[public], parameter[propertyType, key]] begin[{] local_variable[type[JsonValueProcessor], jsonValueProcessor] assign[member[.jsonValueProcessor], Cast(expression=MethodInvocatio...
Keyword[public] identifier[JsonValueProcessor] identifier[findJsonValueProcessor] operator[SEP] identifier[Class] identifier[propertyType] , identifier[String] identifier[key] operator[SEP] { identifier[JsonValueProcessor] identifier[jsonValueProcessor] operator[=] Other[null] operator[SEP] identifier[jsonValue...
public boolean initiateOutgoingMessage(String toUri, String viaNonProxyRoute) { return initiateOutgoingMessage(null, toUri, viaNonProxyRoute, null, null, null); }
class class_name[name] begin[{] method[initiateOutgoingMessage, return_type[type[boolean]], modifier[public], parameter[toUri, viaNonProxyRoute]] begin[{] return[call[.initiateOutgoingMessage, parameter[literal[null], member[.toUri], member[.viaNonProxyRoute], literal[null], literal[null], literal[null...
Keyword[public] Keyword[boolean] identifier[initiateOutgoingMessage] operator[SEP] identifier[String] identifier[toUri] , identifier[String] identifier[viaNonProxyRoute] operator[SEP] { Keyword[return] identifier[initiateOutgoingMessage] operator[SEP] Other[null] , identifier[toUri] , identifier[viaNonProxyRo...
public AgentProperties findParametersForAzure( Logger logger ) { logger.info( "User data are being retrieved for Microsoft Azure..." ); String userData = ""; try { // Get the user data from /var/lib/waagent/ovf-env.xml and decode it String userDataEncoded = getValueOfTagInXMLFile( "/var/lib/waagent/ovf-env...
class class_name[name] begin[{] method[findParametersForAzure, return_type[type[AgentProperties]], modifier[public], parameter[logger]] begin[{] call[logger.info, parameter[literal["User data are being retrieved for Microsoft Azure..."]]] local_variable[type[String], userData] T...
Keyword[public] identifier[AgentProperties] identifier[findParametersForAzure] operator[SEP] identifier[Logger] identifier[logger] operator[SEP] { identifier[logger] operator[SEP] identifier[info] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[String] identifier[userData] operator[=] litera...
private Object invokeAction(Object clazz, Method method, UrlInfo urlInfo, Object... args) throws IllegalAccessException, InvocationTargetException { if (this.isRequestMethodServed(method, urlInfo.getRequestMethod())) { return method.invoke(clazz, args); } else { throw new IllegalArgumentException("Method " + ...
class class_name[name] begin[{] method[invokeAction, return_type[type[Object]], modifier[private], parameter[clazz, method, urlInfo, args]] begin[{] if[THIS[call[None.isRequestMethodServed, parameter[member[.method], call[urlInfo.getRequestMethod, parameter[]]]]]] begin[{] return[ca...
Keyword[private] identifier[Object] identifier[invokeAction] operator[SEP] identifier[Object] identifier[clazz] , identifier[Method] identifier[method] , identifier[UrlInfo] identifier[urlInfo] , identifier[Object] operator[...] identifier[args] operator[SEP] Keyword[throws] identifier[IllegalAccessException] , ide...
public void invalidateRegion (int x, int y, int width, int height) { if (isValidSize(width, height)) { addDirtyRegion(new Rectangle(x, y, width, height)); } }
class class_name[name] begin[{] method[invalidateRegion, return_type[void], modifier[public], parameter[x, y, width, height]] begin[{] if[call[.isValidSize, parameter[member[.width], member[.height]]]] begin[{] call[.addDirtyRegion, parameter[ClassCreator(arguments=[Memb...
Keyword[public] Keyword[void] identifier[invalidateRegion] operator[SEP] Keyword[int] identifier[x] , Keyword[int] identifier[y] , Keyword[int] identifier[width] , Keyword[int] identifier[height] operator[SEP] { Keyword[if] operator[SEP] identifier[isValidSize] operator[SEP] identifier[width] , identifier[he...
private static FaxClientSpiInterceptor[] createFaxClientSpiInterceptors(FaxClientSpi faxClientSpi) { //get type list String typeListStr=faxClientSpi.getConfigurationValue(FaxClientSpiFactory.SPI_INTERCEPTOR_LIST_PROPERTY_KEY); FaxClientSpiInterceptor[] interceptors=null; if(typeListS...
class class_name[name] begin[{] method[createFaxClientSpiInterceptors, return_type[type[FaxClientSpiInterceptor]], modifier[private static], parameter[faxClientSpi]] begin[{] local_variable[type[String], typeListStr] local_variable[type[FaxClientSpiInterceptor], interceptors] if...
Keyword[private] Keyword[static] identifier[FaxClientSpiInterceptor] operator[SEP] operator[SEP] identifier[createFaxClientSpiInterceptors] operator[SEP] identifier[FaxClientSpi] identifier[faxClientSpi] operator[SEP] { identifier[String] identifier[typeListStr] operator[=] identifier[faxClientSpi] operator[SEP]...
public void clear() throws InterruptedException { if (thread != null) { synchronized (this) { if (thread != null) { thread.interrupt(); thread.join(); thread = null; queue.clear(); } } } }
class class_name[name] begin[{] method[clear, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.thread], !=, literal[null]]] begin[{] SYNCHRONIZED[THIS[]] BEGIN[{] if[binary_operation[member[.thread], !...
Keyword[public] Keyword[void] identifier[clear] operator[SEP] operator[SEP] Keyword[throws] identifier[InterruptedException] { Keyword[if] operator[SEP] identifier[thread] operator[!=] Other[null] operator[SEP] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { Keyword[...
public static void main(final String[] args) { Switch about = new Switch("a", "about", "display about message"); Switch help = new Switch("h", "help", "display help message"); FileArgument referenceFile = new FileArgument("r", "reference", "reference input file, in fasta format, default stdin", ...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] local_variable[type[Switch], about] local_variable[type[Switch], help] local_variable[type[FileArgument], referenceFile] local_variable[type[FileArgument], firstRea...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { identifier[Switch] identifier[about] operator[=] Keyword[new] identifier[Switch] operator[SEP] literal[String] , literal[String] , literal[...
public IAtomContainer assignMMFF94PartialCharges(IAtomContainer ac) throws CDKException { if (!mmff.assignAtomTypes(ac)) throw new CDKException("Molecule had an atom of unknown MMFF type"); mmff.partialCharges(ac); mmff.clearProps(ac); for (IAtom atom : ac.atoms()) ...
class class_name[name] begin[{] method[assignMMFF94PartialCharges, return_type[type[IAtomContainer]], modifier[public], parameter[ac]] begin[{] if[call[mmff.assignAtomTypes, parameter[member[.ac]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_...
Keyword[public] identifier[IAtomContainer] identifier[assignMMFF94PartialCharges] operator[SEP] identifier[IAtomContainer] identifier[ac] operator[SEP] Keyword[throws] identifier[CDKException] { Keyword[if] operator[SEP] operator[!] identifier[mmff] operator[SEP] identifier[assignAtomTypes] operator[SEP] identif...
public MergeRequest getMergeRequest(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException { Response response = get(Response.Status.OK, null, "projects", getProjectIdOrPath(projectIdOrPath), "merge_requests", mergeRequestIid); return (response.readEntity(MergeRequest.class)); }
class class_name[name] begin[{] method[getMergeRequest, return_type[type[MergeRequest]], modifier[public], parameter[projectIdOrPath, mergeRequestIid]] begin[{] local_variable[type[Response], response] return[call[response.readEntity, parameter[ClassReference(postfix_operators=[], prefix_operat...
Keyword[public] identifier[MergeRequest] identifier[getMergeRequest] operator[SEP] identifier[Object] identifier[projectIdOrPath] , identifier[Integer] identifier[mergeRequestIid] operator[SEP] Keyword[throws] identifier[GitLabApiException] { identifier[Response] identifier[response] operator[=] identifier[get]...
public Process launch() throws IOException { final ProcessBuilder processBuilder = new ProcessBuilder(builder.build()); if (outputDestination != null) { processBuilder.redirectOutput(outputDestination); } if (errorDestination != null) { processBuilder.redirectErro...
class class_name[name] begin[{] method[launch, return_type[type[Process]], modifier[public], parameter[]] begin[{] local_variable[type[ProcessBuilder], processBuilder] if[binary_operation[member[.outputDestination], !=, literal[null]]] begin[{] call[processBuilde...
Keyword[public] identifier[Process] identifier[launch] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] identifier[ProcessBuilder] identifier[processBuilder] operator[=] Keyword[new] identifier[ProcessBuilder] operator[SEP] identifier[builder] operator[SEP] identifier[build] o...
private static SuggestTree checkIndexName(HttpServletRequest request, ProcessRetrieveResponse response, ServletContext context) { String indexName = request .getParameter(ProtocolConstants.INDEX_PARAMETER); SuggestTree index = null; // if no indexName Parameter was provided use the default index. if (ind...
class class_name[name] begin[{] method[checkIndexName, return_type[type[SuggestTree]], modifier[private static], parameter[request, response, context]] begin[{] local_variable[type[String], indexName] local_variable[type[SuggestTree], index] if[binary_operation[member[.indexName...
Keyword[private] Keyword[static] identifier[SuggestTree] identifier[checkIndexName] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[ProcessRetrieveResponse] identifier[response] , identifier[ServletContext] identifier[context] operator[SEP] { identifier[String] identifier[indexNam...
private void putIntoActivation(int index, Object value) { String argName = activation.function.getParamOrVarName(index); activation.put(argName, activation, value); }
class class_name[name] begin[{] method[putIntoActivation, return_type[void], modifier[private], parameter[index, value]] begin[{] local_variable[type[String], argName] call[activation.put, parameter[member[.argName], member[.activation], member[.value]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[putIntoActivation] operator[SEP] Keyword[int] identifier[index] , identifier[Object] identifier[value] operator[SEP] { identifier[String] identifier[argName] operator[=] identifier[activation] operator[SEP] identifier[function] operator[SEP] identifier[getParamOrVarName...
public void marshall(DescribeCertificateRequest describeCertificateRequest, ProtocolMarshaller protocolMarshaller) { if (describeCertificateRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(d...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[describeCertificateRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.describeCertificateRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argu...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeCertificateRequest] identifier[describeCertificateRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[describeCertificateRequest] operator[==] Other[null]...
String[] splitFromInlineComment( String line ) { String[] result = new String[] { line, "" }; int index = line.indexOf( ParsingConstants.COMMENT_DELIMITER ); if( index >= 0 ) { result[ 0 ] = line.substring( 0, index ); if( ! this.ignoreComments ) { // Find extra spaces before the in-line comment and pu...
class class_name[name] begin[{] method[splitFromInlineComment, return_type[type[String]], modifier[default], parameter[line]] begin[{] local_variable[type[String], result] local_variable[type[int], index] if[binary_operation[member[.index], >=, literal[0]]] begin[{] ...
identifier[String] operator[SEP] operator[SEP] identifier[splitFromInlineComment] operator[SEP] identifier[String] identifier[line] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[result] operator[=] Keyword[new] identifier[String] operator[SEP] operator[SEP] { identifier[lin...
public Job extract(String format, String destinationUri, JobOption... options) throws BigQueryException { return extract(format, ImmutableList.of(destinationUri), options); }
class class_name[name] begin[{] method[extract, return_type[type[Job]], modifier[public], parameter[format, destinationUri, options]] begin[{] return[call[.extract, parameter[member[.format], call[ImmutableList.of, parameter[member[.destinationUri]]], member[.options]]]] end[}] END[}]
Keyword[public] identifier[Job] identifier[extract] operator[SEP] identifier[String] identifier[format] , identifier[String] identifier[destinationUri] , identifier[JobOption] operator[...] identifier[options] operator[SEP] Keyword[throws] identifier[BigQueryException] { Keyword[return] identifier[extract] ope...
public ServiceFuture<VirtualNetworkGatewayInner> beginUpdateTagsAsync(String resourceGroupName, String virtualNetworkGatewayName, final ServiceCallback<VirtualNetworkGatewayInner> serviceCallback) { return ServiceFuture.fromResponse(beginUpdateTagsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewa...
class class_name[name] begin[{] method[beginUpdateTagsAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, virtualNetworkGatewayName, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.beginUpdateTagsWithServiceResponseAsync, parameter[...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[VirtualNetworkGatewayInner] operator[>] identifier[beginUpdateTagsAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[virtualNetworkGatewayName] , Keyword[final] identifier[ServiceCallback] operator[<] i...
public void addMetaBeanProperty(MetaBeanProperty mp) { MetaProperty staticProperty = establishStaticMetaProperty(mp); if (staticProperty != null) { staticPropertyIndex.put(mp.getName(), mp); } else { SingleKeyHashMap propertyMap = classPropertyIndex.getNotNull(theCached...
class class_name[name] begin[{] method[addMetaBeanProperty, return_type[void], modifier[public], parameter[mp]] begin[{] local_variable[type[MetaProperty], staticProperty] if[binary_operation[member[.staticProperty], !=, literal[null]]] begin[{] call[staticProper...
Keyword[public] Keyword[void] identifier[addMetaBeanProperty] operator[SEP] identifier[MetaBeanProperty] identifier[mp] operator[SEP] { identifier[MetaProperty] identifier[staticProperty] operator[=] identifier[establishStaticMetaProperty] operator[SEP] identifier[mp] operator[SEP] operator[SEP] Keyword[if] oper...
public double getPropertyAsDouble(final String bundleName, final String key) { LOG.info("Getting value for key: " + key + " from bundle: " + bundleName); ResourceBundle bundle = bundles.get(bundleName); try { return Double.parseDouble(bundle.getString(key)); } catch (MissingResourceException e) { LOG....
class class_name[name] begin[{] method[getPropertyAsDouble, return_type[type[double]], modifier[public], parameter[bundleName, key]] begin[{] call[LOG.info, parameter[binary_operation[binary_operation[binary_operation[literal["Getting value for key: "], +, member[.key]], +, literal[" from bundl...
Keyword[public] Keyword[double] identifier[getPropertyAsDouble] operator[SEP] Keyword[final] identifier[String] identifier[bundleName] , Keyword[final] identifier[String] identifier[key] operator[SEP] { identifier[LOG] operator[SEP] identifier[info] operator[SEP] literal[String] operator[+] identifier[key] oper...
private void obtainClassInfoRecursive(final Set<ClassInfo> reachableClassInfo) { reachableClassInfo.addAll(memberClassNameToClassInfo.values()); for (final PackageInfo subPackageInfo : getChildren()) { subPackageInfo.obtainClassInfoRecursive(reachableClassInfo); } }
class class_name[name] begin[{] method[obtainClassInfoRecursive, return_type[void], modifier[private], parameter[reachableClassInfo]] begin[{] call[reachableClassInfo.addAll, parameter[call[memberClassNameToClassInfo.values, parameter[]]]] ForStatement(body=BlockStatement(label=None, st...
Keyword[private] Keyword[void] identifier[obtainClassInfoRecursive] operator[SEP] Keyword[final] identifier[Set] operator[<] identifier[ClassInfo] operator[>] identifier[reachableClassInfo] operator[SEP] { identifier[reachableClassInfo] operator[SEP] identifier[addAll] operator[SEP] identifier[memberClassNameToC...
public void setTime(long time) { super.setTime((time/1000)*1000); nanos = (int)((time%1000) * 1000000); if (nanos < 0) { nanos = 1000000000 + nanos; super.setTime(((time/1000)-1)*1000); } }
class class_name[name] begin[{] method[setTime, return_type[void], modifier[public], parameter[time]] begin[{] SuperMethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=time, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), op...
Keyword[public] Keyword[void] identifier[setTime] operator[SEP] Keyword[long] identifier[time] operator[SEP] { Keyword[super] operator[SEP] identifier[setTime] operator[SEP] operator[SEP] identifier[time] operator[/] Other[1000] operator[SEP] operator[*] Other[1000] operator[SEP] operator[SEP] identifier[nanos] ...
public TokenSession getGuestSessionToken() throws MovieDbException { URL url = new ApiUrl(apiKey, MethodBase.AUTH).subMethod(MethodSub.GUEST_SESSION).buildUrl(); String webpage = httpTools.getRequest(url); try { return MAPPER.readValue(webpage, TokenSession.class); } catch (...
class class_name[name] begin[{] method[getGuestSessionToken, return_type[type[TokenSession]], modifier[public], parameter[]] begin[{] local_variable[type[URL], url] local_variable[type[String], webpage] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberRef...
Keyword[public] identifier[TokenSession] identifier[getGuestSessionToken] operator[SEP] operator[SEP] Keyword[throws] identifier[MovieDbException] { identifier[URL] identifier[url] operator[=] Keyword[new] identifier[ApiUrl] operator[SEP] identifier[apiKey] , identifier[MethodBase] operator[SEP] identifier[AUTH...
public static void addPaymentSettings(PaymentSettings paymentSettings) { if (paymentSettings == null) { logger.error("FbBotMill validation error: Payment Settings can't be null or empty!"); return; } FbBotMillNetworkController.postThreadSetting(paymentSettings); }
class class_name[name] begin[{] method[addPaymentSettings, return_type[void], modifier[public static], parameter[paymentSettings]] begin[{] if[binary_operation[member[.paymentSettings], ==, literal[null]]] begin[{] call[logger.error, parameter[literal["FbBotMill validati...
Keyword[public] Keyword[static] Keyword[void] identifier[addPaymentSettings] operator[SEP] identifier[PaymentSettings] identifier[paymentSettings] operator[SEP] { Keyword[if] operator[SEP] identifier[paymentSettings] operator[==] Other[null] operator[SEP] { identifier[logger] operator[SEP] identifier[...
public static Long hexToLongObject(@Nullable String str, Long defaultValue) { if (StringUtils.isEmpty(str)) { return defaultValue; } try { return Long.decode(str); } catch (final NumberFormatException nfe) { return defaultValue; } }
class class_name[name] begin[{] method[hexToLongObject, return_type[type[Long]], modifier[public static], parameter[str, defaultValue]] begin[{] if[call[StringUtils.isEmpty, parameter[member[.str]]]] begin[{] return[member[.defaultValue]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[Long] identifier[hexToLongObject] operator[SEP] annotation[@] identifier[Nullable] identifier[String] identifier[str] , identifier[Long] identifier[defaultValue] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isEmpty] operato...
public static void include( ServletContext servletContext, String page, HttpServletRequest request, HttpServletResponse response, Map<String,?> args ) throws SkipPageException, ServletException, IOException { // Resolve the dispatcher String contextRelativePath; { String currentPagePath = getCurrent...
class class_name[name] begin[{] method[include, return_type[void], modifier[public static], parameter[servletContext, page, request, response, args]] begin[{] local_variable[type[String], contextRelativePath] local_variable[type[String], currentPagePath] if[call[logger.i...
Keyword[public] Keyword[static] Keyword[void] identifier[include] operator[SEP] identifier[ServletContext] identifier[servletContext] , identifier[String] identifier[page] , identifier[HttpServletRequest] identifier[request] , identifier[HttpServletResponse] identifier[response] , identifier[Map] operator[<] identi...
public EClass getIfcRibPlateProfileProperties() { if (ifcRibPlateProfilePropertiesEClass == null) { ifcRibPlateProfilePropertiesEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(494); } return ifcRibPlateProfilePropertiesEClass; }
class class_name[name] begin[{] method[getIfcRibPlateProfileProperties, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcRibPlateProfilePropertiesEClass], ==, literal[null]]] begin[{] assign[member[.ifcRibPlateProfilePrope...
Keyword[public] identifier[EClass] identifier[getIfcRibPlateProfileProperties] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcRibPlateProfilePropertiesEClass] operator[==] Other[null] operator[SEP] { identifier[ifcRibPlateProfilePropertiesEClass] operator[=] operator[SEP] identi...
@Override public void prepare(FeatureProvider provider) { super.prepare(provider); if (provider instanceof Action) { setAction((Action) provider); } }
class class_name[name] begin[{] method[prepare, return_type[void], modifier[public], parameter[provider]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=provider, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=prepare, postfix_operators=[], prefi...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[prepare] operator[SEP] identifier[FeatureProvider] identifier[provider] operator[SEP] { Keyword[super] operator[SEP] identifier[prepare] operator[SEP] identifier[provider] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[...
public List<String> getTables(String keyspace) { ArrayList<String> result = new ArrayList<String>(); this.metadata = this.cluster.getMetadata(); if ((!existsKeyspace(keyspace, false)) || (this.metadata.getKeyspace(keyspace).getTables().isEmpty())) { return result; } f...
class class_name[name] begin[{] method[getTables, return_type[type[List]], modifier[public], parameter[keyspace]] begin[{] local_variable[type[ArrayList], result] assign[THIS[member[None.metadata]], THIS[member[None.cluster]call[None.getMetadata, parameter[]]]] if[binary...
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getTables] operator[SEP] identifier[String] identifier[keyspace] operator[SEP] { identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[result] operator[=] Keyword[new] identifier[ArrayList] operator[<] id...
public static String createCustomExpressionInvocationText2(String customExpName) { String fieldsMap = getTextForFieldsFromScriptlet(); String parametersMap = getTextForParametersFromScriptlet(); String variablesMap = getTextForVariablesFromScriptlet(); // String stringExpression = "((("+Custo...
class class_name[name] begin[{] method[createCustomExpressionInvocationText2, return_type[type[String]], modifier[public static], parameter[customExpName]] begin[{] local_variable[type[String], fieldsMap] local_variable[type[String], parametersMap] local_variable[type[String], variables...
Keyword[public] Keyword[static] identifier[String] identifier[createCustomExpressionInvocationText2] operator[SEP] identifier[String] identifier[customExpName] operator[SEP] { identifier[String] identifier[fieldsMap] operator[=] identifier[getTextForFieldsFromScriptlet] operator[SEP] operator[SEP] operator[SEP] ...
@Override public void processCalendarData(DirectoryEntry projectDir, Props projectProps, DocumentInputStreamFactory inputStreamFactory, HashMap<Integer, ProjectCalendar> resourceMap) throws IOException { DirectoryEntry calDir = (DirectoryEntry) projectDir.getEntry("TBkndCal"); //MPPUtility.fileHexDump("...
class class_name[name] begin[{] method[processCalendarData, return_type[void], modifier[public], parameter[projectDir, projectProps, inputStreamFactory, resourceMap]] begin[{] local_variable[type[DirectoryEntry], calDir] local_variable[type[VarMeta], calVarMeta] local_variable[type[Var2...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[processCalendarData] operator[SEP] identifier[DirectoryEntry] identifier[projectDir] , identifier[Props] identifier[projectProps] , identifier[DocumentInputStreamFactory] identifier[inputStreamFactory] , identifier[HashMap] operator[<] ident...