code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static NbtAddress getByName( String host, int type, String scope ) throws UnknownHostException { return getByName( host, type, scope, null ); }
class class_name[name] begin[{] method[getByName, return_type[type[NbtAddress]], modifier[public static], parameter[host, type, scope]] begin[{] return[call[.getByName, parameter[member[.host], member[.type], member[.scope], literal[null]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[NbtAddress] identifier[getByName] operator[SEP] identifier[String] identifier[host] , Keyword[int] identifier[type] , identifier[String] identifier[scope] operator[SEP] Keyword[throws] identifier[UnknownHostException] { Keyword[return] identifier[getByName] operator[S...
private SecurityConstraint createSecurityConstraint(com.ibm.ws.javaee.dd.web.common.SecurityConstraint archiveConstraint, boolean denyUncoveredHttpMethods) { List<WebResourceCollection> webResourceCollections = createWebResourceCollections(archiveConstraint, denyUncoveredHttpMethods); List<String> roles...
class class_name[name] begin[{] method[createSecurityConstraint, return_type[type[SecurityConstraint]], modifier[private], parameter[archiveConstraint, denyUncoveredHttpMethods]] begin[{] local_variable[type[List], webResourceCollections] local_variable[type[List], roles] local_variable...
Keyword[private] identifier[SecurityConstraint] identifier[createSecurityConstraint] operator[SEP] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ws] operator[SEP] identifier[javaee] operator[SEP] identifier[dd] operator[SEP] identifier[web] operator[SEP] identifier[common] operator[SEP] identif...
static <T> GraphTraversal<T, Vertex> inSubs(GraphTraversal<T, Vertex> traversal) { return inSubs(traversal, TRAVERSE_ALL_SUB_EDGES); }
class class_name[name] begin[{] method[inSubs, return_type[type[GraphTraversal]], modifier[static], parameter[traversal]] begin[{] return[call[.inSubs, parameter[member[.traversal], member[.TRAVERSE_ALL_SUB_EDGES]]]] end[}] END[}]
Keyword[static] operator[<] identifier[T] operator[>] identifier[GraphTraversal] operator[<] identifier[T] , identifier[Vertex] operator[>] identifier[inSubs] operator[SEP] identifier[GraphTraversal] operator[<] identifier[T] , identifier[Vertex] operator[>] identifier[traversal] operator[SEP] { Keyword[return...
public static URL generateUrl(final String url) throws OMDBException { try { return new URL(url); } catch (MalformedURLException ex) { throw new OMDBException(ApiExceptionType.INVALID_URL, "Failed to create URL", url, ex); } }
class class_name[name] begin[{] method[generateUrl, return_type[type[URL]], modifier[public static], parameter[url]] begin[{] TryStatement(block=[ReturnStatement(expression=ClassCreator(arguments=[MemberReference(member=url, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=No...
Keyword[public] Keyword[static] identifier[URL] identifier[generateUrl] operator[SEP] Keyword[final] identifier[String] identifier[url] operator[SEP] Keyword[throws] identifier[OMDBException] { Keyword[try] { Keyword[return] Keyword[new] identifier[URL] operator[SEP] identifier[url] operator[SEP] oper...
public void addExportPoint(String uri, String destination) { CmsExportPoint point = new CmsExportPoint(uri, destination); m_exportPoints.add(point); if (CmsLog.INIT.isInfoEnabled() && (point.getDestinationPath() != null)) { CmsLog.INIT.info( Messages.get().getBundle(...
class class_name[name] begin[{] method[addExportPoint, return_type[void], modifier[public], parameter[uri, destination]] begin[{] local_variable[type[CmsExportPoint], point] call[m_exportPoints.add, parameter[member[.point]]] if[binary_operation[call[CmsLog.INIT.isInfoEn...
Keyword[public] Keyword[void] identifier[addExportPoint] operator[SEP] identifier[String] identifier[uri] , identifier[String] identifier[destination] operator[SEP] { identifier[CmsExportPoint] identifier[point] operator[=] Keyword[new] identifier[CmsExportPoint] operator[SEP] identifier[uri] , identifier[dest...
public static void init(Map<String, ?> conf) { if (null != engine) throw new IllegalStateException("Rythm is already initialized"); engine = new RythmEngine(conf); // See #296 ShutdownService service = getShutdownService(engine.conf().gae()); service.setShutdown(new Runnable() { ...
class class_name[name] begin[{] method[init, return_type[void], modifier[public static], parameter[conf]] begin[{] if[binary_operation[literal[null], !=, member[.engine]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=Non...
Keyword[public] Keyword[static] Keyword[void] identifier[init] operator[SEP] identifier[Map] operator[<] identifier[String] , operator[?] operator[>] identifier[conf] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[!=] identifier[engine] operator[SEP] Keyword[throw] Keyword[new] identifier[Illega...
public T min() { TObjectLongIterator<T> iter = counts.iterator(); long minCount = Long.MAX_VALUE; T min = null; while (iter.hasNext()) { iter.advance(); long count = iter.value(); if (count < minCount) { min = iter.key(); ...
class class_name[name] begin[{] method[min, return_type[type[T]], modifier[public], parameter[]] begin[{] local_variable[type[TObjectLongIterator], iter] local_variable[type[long], minCount] local_variable[type[T], min] while[call[iter.hasNext, parameter[]]] begin[{] ...
Keyword[public] identifier[T] identifier[min] operator[SEP] operator[SEP] { identifier[TObjectLongIterator] operator[<] identifier[T] operator[>] identifier[iter] operator[=] identifier[counts] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] Keyword[long] identifier[minCount] operato...
@Override public void activate(final Object maintainer) throws InterruptedException, CouldNotPerformException { if (!isLocked() || this.maintainer.equals(maintainer)) { synchronized (maintainerLock) { unlock(maintainer); activate(); lock(maintainer...
class class_name[name] begin[{] method[activate, return_type[void], modifier[public], parameter[maintainer]] begin[{] if[binary_operation[call[.isLocked, parameter[]], ||, THIS[member[None.maintainer]call[None.equals, parameter[member[.maintainer]]]]]] begin[{] SYNCHRONI...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[activate] operator[SEP] Keyword[final] identifier[Object] identifier[maintainer] operator[SEP] Keyword[throws] identifier[InterruptedException] , identifier[CouldNotPerformException] { Keyword[if] operator[SEP] operator[!] identifier[is...
public MessageResourcesModel getDefaultMessageResources() { for ( java.util.Iterator ii = _messageResources.iterator(); ii.hasNext(); ) { MessageResourcesModel i = ( MessageResourcesModel ) ii.next(); if ( i.getKey() == null ) return i; } return nul...
class class_name[name] begin[{] method[getDefaultMessageResources, return_type[type[MessageResourcesModel]], modifier[public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializ...
Keyword[public] identifier[MessageResourcesModel] identifier[getDefaultMessageResources] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Iterator] identifier[ii] operator[=] identifier[_messageResources] operator[SEP] identifier[it...
public SipPhone createSipPhone(String host, String me) throws InvalidArgumentException, ParseException { return createSipPhone(host, PROTOCOL_UDP, DEFAULT_PORT, me); }
class class_name[name] begin[{] method[createSipPhone, return_type[type[SipPhone]], modifier[public], parameter[host, me]] begin[{] return[call[.createSipPhone, parameter[member[.host], member[.PROTOCOL_UDP], member[.DEFAULT_PORT], member[.me]]]] end[}] END[}]
Keyword[public] identifier[SipPhone] identifier[createSipPhone] operator[SEP] identifier[String] identifier[host] , identifier[String] identifier[me] operator[SEP] Keyword[throws] identifier[InvalidArgumentException] , identifier[ParseException] { Keyword[return] identifier[createSipPhone] operator[SEP] identi...
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "includesCRS") public JAXBElement<CoordinateReferenceSystemRefType> createIncludesCRS(CoordinateReferenceSystemRefType value) { return new JAXBElement<CoordinateReferenceSystemRefType>(_IncludesCRS_QNAME, CoordinateReferenceSystemRefType.class...
class class_name[name] begin[{] method[createIncludesCRS, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_IncludesCRS_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_o...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[CoordinateReferenceSystemRefType] operator[>] identifier[createIncludesCRS] operator[SEP] ...
public static String convertYamlToJson(Reader yamlReader) { try (Reader reader = yamlReader) { Object yaml = new ObjectMapper(new YAMLFactory()).readValue(reader, Object.class); return new ObjectMapper().writeValueAsString(yaml); } catch (IOException e) { throw new Y...
class class_name[name] begin[{] method[convertYamlToJson, return_type[type[String]], modifier[public static], parameter[yamlReader]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[ClassCreator(argu...
Keyword[public] Keyword[static] identifier[String] identifier[convertYamlToJson] operator[SEP] identifier[Reader] identifier[yamlReader] operator[SEP] { Keyword[try] operator[SEP] identifier[Reader] identifier[reader] operator[=] identifier[yamlReader] operator[SEP] { identifier[Object] identifier[yam...
public static int execute(String programName, PrintWriter errWriter, PrintWriter warnWriter, PrintWriter noticeWriter, String defaultDocletClassName, ClassLoader docletPa...
class class_name[name] begin[{] method[execute, return_type[type[int]], modifier[public static], parameter[programName, errWriter, warnWriter, noticeWriter, defaultDocletClassName, docletParentClassLoader, args]] begin[{] local_variable[type[Start], jdoc] return[call[jdoc.begin, parameter[membe...
Keyword[public] Keyword[static] Keyword[int] identifier[execute] operator[SEP] identifier[String] identifier[programName] , identifier[PrintWriter] identifier[errWriter] , identifier[PrintWriter] identifier[warnWriter] , identifier[PrintWriter] identifier[noticeWriter] , identifier[String] identifier[defaultDocletC...
public static Map<Transition, Collection<TileRef>> imports(Media config) { final Xml root = new Xml(config); final Collection<Xml> nodesTransition = root.getChildren(NODE_TRANSITION); final Map<Transition, Collection<TileRef>> transitions = new HashMap<>(nodesTransition.size()); ...
class class_name[name] begin[{] method[imports, return_type[type[Map]], modifier[public static], parameter[config]] begin[{] local_variable[type[Xml], root] local_variable[type[Collection], nodesTransition] local_variable[type[Map], transitions] ForStatement(body=BlockStatement(...
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[Transition] , identifier[Collection] operator[<] identifier[TileRef] operator[>] operator[>] identifier[imports] operator[SEP] identifier[Media] identifier[config] operator[SEP] { Keyword[final] identifier[Xml] identifier[root] operator[=] K...
@Override public Snapshot copyClusterSnapshot(CopyClusterSnapshotRequest request) { request = beforeClientExecution(request); return executeCopyClusterSnapshot(request); }
class class_name[name] begin[{] method[copyClusterSnapshot, return_type[type[Snapshot]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCopyClusterSnapshot, parameter[member[.request]...
annotation[@] identifier[Override] Keyword[public] identifier[Snapshot] identifier[copyClusterSnapshot] operator[SEP] identifier[CopyClusterSnapshotRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operat...
public void setupFields() { FieldInfo field = null; field = new FieldInfo(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null); field.setDataClass(Integer.class); field.setHidden(true); field = new FieldInfo(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null); ...
class class_name[name] begin[{] method[setupFields, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[FieldInfo], field] assign[member[.field], ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberRefer...
Keyword[public] Keyword[void] identifier[setupFields] operator[SEP] operator[SEP] { identifier[FieldInfo] identifier[field] operator[=] Other[null] operator[SEP] identifier[field] operator[=] Keyword[new] identifier[FieldInfo] operator[SEP] Keyword[this] , identifier[ID] , identifier[Constants] operator[SEP] i...
public GetQYAgentListResponse getAll(){ GetQYAgentListResponse response; String url = BASE_API_URL + "cgi-bin/agent/list?access_token=#"; BaseResponse r = executeGet(url); String jsonResult = isSuccess(r.getErrcode()) ? r.getErrmsg() : r.toJsonString(); response = JSONUtil.toBean...
class class_name[name] begin[{] method[getAll, return_type[type[GetQYAgentListResponse]], modifier[public], parameter[]] begin[{] local_variable[type[GetQYAgentListResponse], response] local_variable[type[String], url] local_variable[type[BaseResponse], r] local_variable[type[St...
Keyword[public] identifier[GetQYAgentListResponse] identifier[getAll] operator[SEP] operator[SEP] { identifier[GetQYAgentListResponse] identifier[response] operator[SEP] identifier[String] identifier[url] operator[=] identifier[BASE_API_URL] operator[+] literal[String] operator[SEP] identifier[BaseResponse] iden...
private static boolean isFormatStringParameter(Symbol formatString, VisitorState state) { Type stringType = state.getSymtab().stringType; // The input symbol must be a String and a parameter of a @FormatMethod to be a @FormatString. if (!ASTHelpers.isSameType(formatString.type, stringType, state) |...
class class_name[name] begin[{] method[isFormatStringParameter, return_type[type[boolean]], modifier[private static], parameter[formatString, state]] begin[{] local_variable[type[Type], stringType] if[binary_operation[binary_operation[call[ASTHelpers.isSameType, parameter[member[formatS...
Keyword[private] Keyword[static] Keyword[boolean] identifier[isFormatStringParameter] operator[SEP] identifier[Symbol] identifier[formatString] , identifier[VisitorState] identifier[state] operator[SEP] { identifier[Type] identifier[stringType] operator[=] identifier[state] operator[SEP] identifier[getSymtab] o...
public static List<ValidationMessage> validateScope(TagData data, List<ValidationMessage> messages) { Object o = data.getAttribute("scope"); if( o != null && o != TagData.REQUEST_TIME_VALUE ) { String scope = Coercion.toString(o); try { Scope.getScopeId(scope); // Value is OK } catch(JspTag...
class class_name[name] begin[{] method[validateScope, return_type[type[List]], modifier[public static], parameter[data, messages]] begin[{] local_variable[type[Object], o] if[binary_operation[binary_operation[member[.o], !=, literal[null]], &&, binary_operation[member[.o], !=, member[Ta...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[ValidationMessage] operator[>] identifier[validateScope] operator[SEP] identifier[TagData] identifier[data] , identifier[List] operator[<] identifier[ValidationMessage] operator[>] identifier[messages] operator[SEP] { identifier[Object] ide...
protected static IPackageFragmentRoot[] findRootsForClasspath(IPath entry, IJavaProject[] searchOrder) { for (int i= 0; i < searchOrder.length; i++) { IPackageFragmentRoot[] elements= findRootsInProject(entry, searchOrder[i]); if (elements.length != 0) { return elements; } } return null; }
class class_name[name] begin[{] method[findRootsForClasspath, return_type[type[IPackageFragmentRoot]], modifier[static protected], parameter[entry, searchOrder]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(di...
Keyword[protected] Keyword[static] identifier[IPackageFragmentRoot] operator[SEP] operator[SEP] identifier[findRootsForClasspath] operator[SEP] identifier[IPath] identifier[entry] , identifier[IJavaProject] operator[SEP] operator[SEP] identifier[searchOrder] operator[SEP] { Keyword[for] operator[SEP] Keyword[in...
public static <T> boolean forall(Iterator<T> iterator, Function1<? super T, Boolean> predicate) { if (predicate == null) throw new NullPointerException("predicate"); while(iterator.hasNext()) { if (!predicate.apply(iterator.next())) return false; } return true; }
class class_name[name] begin[{] method[forall, return_type[type[boolean]], modifier[public static], parameter[iterator, predicate]] begin[{] if[binary_operation[member[.predicate], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefi...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[boolean] identifier[forall] operator[SEP] identifier[Iterator] operator[<] identifier[T] operator[>] identifier[iterator] , identifier[Function1] operator[<] operator[?] Keyword[super] identifier[T] , identifier[Boolean] operator[>] identif...
@SuppressWarnings("unchecked") private void registerVoidMethod(Class type, Method method) { executor.register(type, wrapVoidMethod(method)); }
class class_name[name] begin[{] method[registerVoidMethod, return_type[void], modifier[private], parameter[type, method]] begin[{] call[executor.register, parameter[member[.type], call[.wrapVoidMethod, parameter[member[.method]]]]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[void] identifier[registerVoidMethod] operator[SEP] identifier[Class] identifier[type] , identifier[Method] identifier[method] operator[SEP] { identifier[executor] operator[SEP] identifier[register] op...
private boolean indexCovers(Index newIndex, Index existingIndex) { assert(newIndex.getParent().getTypeName().equals(existingIndex.getParent().getTypeName())); // non-unique indexes don't help with this check if (existingIndex.getUnique() == false) { return false; } ...
class class_name[name] begin[{] method[indexCovers, return_type[type[boolean]], modifier[private], parameter[newIndex, existingIndex]] begin[{] AssertStatement(condition=MethodInvocation(arguments=[], member=getParent, postfix_operators=[], prefix_operators=[], qualifier=newIndex, selectors=[], type_ar...
Keyword[private] Keyword[boolean] identifier[indexCovers] operator[SEP] identifier[Index] identifier[newIndex] , identifier[Index] identifier[existingIndex] operator[SEP] { Keyword[assert] operator[SEP] identifier[newIndex] operator[SEP] identifier[getParent] operator[SEP] operator[SEP] operator[SEP] identifier...
public static List<ProviderInfo> parseProviderInfos(List<String> urls) { List<ProviderInfo> providers = new ArrayList<ProviderInfo>(); if (CommonUtils.isNotEmpty(urls)) { for (String object : urls) { providers.add(parseProviderInfo(object)); } } re...
class class_name[name] begin[{] method[parseProviderInfos, return_type[type[List]], modifier[public static], parameter[urls]] begin[{] local_variable[type[List], providers] if[call[CommonUtils.isNotEmpty, parameter[member[.urls]]]] begin[{] ForStatement(body=BlockStatement(l...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[ProviderInfo] operator[>] identifier[parseProviderInfos] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[urls] operator[SEP] { identifier[List] operator[<] identifier[ProviderInfo] operator[>] identifier[...
public static Message getMessage(final Supplier<?> supplier, final MessageFactory messageFactory) { if (supplier == null) { return null; } final Object result = supplier.get(); return result instanceof Message ? (Message) result : messageFactory.newMessage(result); }
class class_name[name] begin[{] method[getMessage, return_type[type[Message]], modifier[public static], parameter[supplier, messageFactory]] begin[{] if[binary_operation[member[.supplier], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[Message] identifier[getMessage] operator[SEP] Keyword[final] identifier[Supplier] operator[<] operator[?] operator[>] identifier[supplier] , Keyword[final] identifier[MessageFactory] identifier[messageFactory] operator[SEP] { Keyword[if] operator[SEP] identifier[suppli...
public boolean lock(KeyColumn kc, T requestor, Instant expires) { assert null != kc; assert null != requestor; final StackTraceElement[] acquiredAt = log.isTraceEnabled() ? new Throwable("Lock acquisition by " + requestor).getStackTrace() : null; AuditRecord<T> audit = ...
class class_name[name] begin[{] method[lock, return_type[type[boolean]], modifier[public], parameter[kc, requestor, expires]] begin[{] AssertStatement(condition=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operandr=MemberReferenc...
Keyword[public] Keyword[boolean] identifier[lock] operator[SEP] identifier[KeyColumn] identifier[kc] , identifier[T] identifier[requestor] , identifier[Instant] identifier[expires] operator[SEP] { Keyword[assert] Other[null] operator[!=] identifier[kc] operator[SEP] Keyword[assert] Other[null] operator[!=] ide...
public static int count(final byte[] data) { int count = 0; for (int i = data.length; --i >= 0;) { count += count(data[i]); } return count; }
class class_name[name] begin[{] method[count, return_type[type[int]], modifier[public static], parameter[data]] begin[{] local_variable[type[int], count] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=count, ...
Keyword[public] Keyword[static] Keyword[int] identifier[count] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[data] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] identifier[dat...
public ServiceFuture<List<VirtualMachineImageResourceInner>> listSkusAsync(String location, String publisherName, String offer, final ServiceCallback<List<VirtualMachineImageResourceInner>> serviceCallback) { return ServiceFuture.fromResponse(listSkusWithServiceResponseAsync(location, publisherName, offer), ser...
class class_name[name] begin[{] method[listSkusAsync, return_type[type[ServiceFuture]], modifier[public], parameter[location, publisherName, offer, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.listSkusWithServiceResponseAsync, parameter[member[.location], member[.p...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[VirtualMachineImageResourceInner] operator[>] operator[>] identifier[listSkusAsync] operator[SEP] identifier[String] identifier[location] , identifier[String] identifier[publisherName] , identifier[String] identifier[offer] ...
public T getValue() { Object value = BeanUtils.getPropertyValue(bean, propertyName); return getBoxedPropertyType().cast(value); }
class class_name[name] begin[{] method[getValue, return_type[type[T]], modifier[public], parameter[]] begin[{] local_variable[type[Object], value] return[call[.getBoxedPropertyType, parameter[]]] end[}] END[}]
Keyword[public] identifier[T] identifier[getValue] operator[SEP] operator[SEP] { identifier[Object] identifier[value] operator[=] identifier[BeanUtils] operator[SEP] identifier[getPropertyValue] operator[SEP] identifier[bean] , identifier[propertyName] operator[SEP] operator[SEP] Keyword[return] identifier[getB...
protected ILaunchConfigurationWorkingCopy initLaunchConfiguration(String configurationType, String projectName, String id, boolean resetJavaMainClass) throws CoreException { final ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager(); final ILaunchConfigurationType configType = launchManager...
class class_name[name] begin[{] method[initLaunchConfiguration, return_type[type[ILaunchConfigurationWorkingCopy]], modifier[protected], parameter[configurationType, projectName, id, resetJavaMainClass]] begin[{] local_variable[type[ILaunchManager], launchManager] local_variable[type[ILaunchCon...
Keyword[protected] identifier[ILaunchConfigurationWorkingCopy] identifier[initLaunchConfiguration] operator[SEP] identifier[String] identifier[configurationType] , identifier[String] identifier[projectName] , identifier[String] identifier[id] , Keyword[boolean] identifier[resetJavaMainClass] operator[SEP] Keyword[th...
public final void acknowledgeTask(TaskName name, Timestamp scheduleTime) { AcknowledgeTaskRequest request = AcknowledgeTaskRequest.newBuilder() .setName(name == null ? null : name.toString()) .setScheduleTime(scheduleTime) .build(); acknowledgeTask(request); }
class class_name[name] begin[{] method[acknowledgeTask, return_type[void], modifier[final public], parameter[name, scheduleTime]] begin[{] local_variable[type[AcknowledgeTaskRequest], request] call[.acknowledgeTask, parameter[member[.request]]] end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[acknowledgeTask] operator[SEP] identifier[TaskName] identifier[name] , identifier[Timestamp] identifier[scheduleTime] operator[SEP] { identifier[AcknowledgeTaskRequest] identifier[request] operator[=] identifier[AcknowledgeTaskRequest] operator[SEP] identi...
public Set<String> availableOperators() { Set<String> operators = new HashSet<String>(this.getObjects().keySet()); Iterator<String> it = operators.iterator(); while (it.hasNext()) { String key = it.next(); if (!getObject(key).isOperator()) { it.remove(); ...
class class_name[name] begin[{] method[availableOperators, return_type[type[Set]], modifier[public], parameter[]] begin[{] local_variable[type[Set], operators] local_variable[type[Iterator], it] while[call[it.hasNext, parameter[]]] begin[{] local_variable[type[String...
Keyword[public] identifier[Set] operator[<] identifier[String] operator[>] identifier[availableOperators] operator[SEP] operator[SEP] { identifier[Set] operator[<] identifier[String] operator[>] identifier[operators] operator[=] Keyword[new] identifier[HashSet] operator[<] identifier[String] operator[>] operator...
public void marshall(StartContinuousExportRequest startContinuousExportRequest, ProtocolMarshaller protocolMarshaller) { if (startContinuousExportRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { } catch (Exception e) { ...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[startContinuousExportRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.startContinuousExportRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[StartContinuousExportRequest] identifier[startContinuousExportRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[startContinuousExportRequest] operator[==] Other...
private ObjectJS jsonMessage(String message, StringifierFactory jsonStringifierFactory) { ObjectJS timelineJS = new ObjectJS(); timelineJS.setSimpleAttribute("message", message, jsonStringifierFactory.getStringifier(String.class)); return timelineJS; }
class class_name[name] begin[{] method[jsonMessage, return_type[type[ObjectJS]], modifier[private], parameter[message, jsonStringifierFactory]] begin[{] local_variable[type[ObjectJS], timelineJS] call[timelineJS.setSimpleAttribute, parameter[literal["message"], member[.message], call[js...
Keyword[private] identifier[ObjectJS] identifier[jsonMessage] operator[SEP] identifier[String] identifier[message] , identifier[StringifierFactory] identifier[jsonStringifierFactory] operator[SEP] { identifier[ObjectJS] identifier[timelineJS] operator[=] Keyword[new] identifier[ObjectJS] operator[SEP] operator[...
protected void setLeftMargin(View view, int leftMargin) { SlidingPaneLayout.LayoutParams lp = (SlidingPaneLayout.LayoutParams) view.getLayoutParams(); lp.leftMargin = leftMargin; lp.rightMargin = 0; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { lp.setMar...
class class_name[name] begin[{] method[setLeftMargin, return_type[void], modifier[protected], parameter[view, leftMargin]] begin[{] local_variable[type[SlidingPaneLayout], lp] assign[member[lp.leftMargin], member[.leftMargin]] assign[member[lp.rightMargin], literal[0]] ...
Keyword[protected] Keyword[void] identifier[setLeftMargin] operator[SEP] identifier[View] identifier[view] , Keyword[int] identifier[leftMargin] operator[SEP] { identifier[SlidingPaneLayout] operator[SEP] identifier[LayoutParams] identifier[lp] operator[=] operator[SEP] identifier[SlidingPaneLayout] operator[SE...
private ChannelFuture respond(Encodable result) { SocketAddress remoteAddress = channel.remoteAddress(); return channel.writeAndFlush(result).addListener(future -> { if (future.isSuccess()) { logger.trace("Sent result {} to client {}", result, remoteAddress); } else { logger.error(St...
class class_name[name] begin[{] method[respond, return_type[type[ChannelFuture]], modifier[private], parameter[result]] begin[{] local_variable[type[SocketAddress], remoteAddress] return[call[channel.writeAndFlush, parameter[member[.result]]]] end[}] END[}]
Keyword[private] identifier[ChannelFuture] identifier[respond] operator[SEP] identifier[Encodable] identifier[result] operator[SEP] { identifier[SocketAddress] identifier[remoteAddress] operator[=] identifier[channel] operator[SEP] identifier[remoteAddress] operator[SEP] operator[SEP] operator[SEP] Keyword[retur...
public void call(final T request, final Functor<String, RemoteService.Response> process, final Functor<Void, RemoteService.Response> confirm) { try { String message = process.invoke(RemoteService.call(location, endpoint, true, request)); if (message != null) { // clean fa...
class class_name[name] begin[{] method[call, return_type[void], modifier[public], parameter[request, process, confirm]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments...
Keyword[public] Keyword[void] identifier[call] operator[SEP] Keyword[final] identifier[T] identifier[request] , Keyword[final] identifier[Functor] operator[<] identifier[String] , identifier[RemoteService] operator[SEP] identifier[Response] operator[>] identifier[process] , Keyword[final] identifier[Functor] operato...
public static List<String> couchStyleRevisionHistoryToFullRevisionIDs(final int start, List<String> ids) { List<String> revisionHistory = new ArrayList<String>(); int generation = start; for (String revIdHash : ids) { revisionHistory.add(generation + "-" + revIdHash); gen...
class class_name[name] begin[{] method[couchStyleRevisionHistoryToFullRevisionIDs, return_type[type[List]], modifier[public static], parameter[start, ids]] begin[{] local_variable[type[List], revisionHistory] local_variable[type[int], generation] ForStatement(body=BlockStatement(label=N...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[couchStyleRevisionHistoryToFullRevisionIDs] operator[SEP] Keyword[final] Keyword[int] identifier[start] , identifier[List] operator[<] identifier[String] operator[>] identifier[ids] operator[SEP] { identifier[...
public static Result unsupportedMediaType(File content, boolean inline) { return unsupportedMediaType(content, inline, StaticFileMimeTypes.fileMimeTypes()); }
class class_name[name] begin[{] method[unsupportedMediaType, return_type[type[Result]], modifier[public static], parameter[content, inline]] begin[{] return[call[.unsupportedMediaType, parameter[member[.content], member[.inline], call[StaticFileMimeTypes.fileMimeTypes, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Result] identifier[unsupportedMediaType] operator[SEP] identifier[File] identifier[content] , Keyword[boolean] identifier[inline] operator[SEP] { Keyword[return] identifier[unsupportedMediaType] operator[SEP] identifier[content] , identifier[inline] , identifier[Stat...
public URL find(String uri) throws IOException { String fullUri = path + uri; URL resource = getResource(fullUri); if (resource == null) { throw new IOException("Could not find resource '" + fullUri + "'"); } return resource; }
class class_name[name] begin[{] method[find, return_type[type[URL]], modifier[public], parameter[uri]] begin[{] local_variable[type[String], fullUri] local_variable[type[URL], resource] if[binary_operation[member[.resource], ==, literal[null]]] begin[{] ThrowStatemen...
Keyword[public] identifier[URL] identifier[find] operator[SEP] identifier[String] identifier[uri] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[fullUri] operator[=] identifier[path] operator[+] identifier[uri] operator[SEP] identifier[URL] identifier[resource] operator[=] ...
public void marshall(S3Resource s3Resource, ProtocolMarshaller protocolMarshaller) { if (s3Resource == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(s3Resource.getBucketName(), BUCKETNAME_BINDING); ...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[s3Resource, protocolMarshaller]] begin[{] if[binary_operation[member[.s3Resource], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[S3Resource] identifier[s3Resource] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[s3Resource] operator[==] Other[null] operator[SEP] { Keyword[throw] Keywo...
protected final PrcInpAccEntriesRetrieve lazyGetPrcInpAccEntriesRetrieve( final Map<String, Object> pAddParam) throws Exception { @SuppressWarnings("unchecked") PrcInpAccEntriesRetrieve<RS> proc = (PrcInpAccEntriesRetrieve<RS>) this.processorsMap .get(PrcInpAccEntriesRetrieve.class.getSimpleNa...
class class_name[name] begin[{] method[lazyGetPrcInpAccEntriesRetrieve, return_type[type[PrcInpAccEntriesRetrieve]], modifier[final protected], parameter[pAddParam]] begin[{] local_variable[type[PrcInpAccEntriesRetrieve], proc] if[binary_operation[member[.proc], ==, literal[null]]] begi...
Keyword[protected] Keyword[final] identifier[PrcInpAccEntriesRetrieve] identifier[lazyGetPrcInpAccEntriesRetrieve] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[pAddParam] operator[SEP] Keyword[throws] identifier[Exception] { annotation[@...
public ServiceFuture<TroubleshootingResultInner> getTroubleshootingAsync(String resourceGroupName, String networkWatcherName, TroubleshootingParameters parameters, final ServiceCallback<TroubleshootingResultInner> serviceCallback) { return ServiceFuture.fromResponse(getTroubleshootingWithServiceResponseAsync(re...
class class_name[name] begin[{] method[getTroubleshootingAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, networkWatcherName, parameters, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.getTroubleshootingWithServiceResponseAsync,...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[TroubleshootingResultInner] operator[>] identifier[getTroubleshootingAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[networkWatcherName] , identifier[TroubleshootingParameters] identifier[parameters]...
public void publish(Object event) { Objects.requireNonNull(event, Required.EVENT.toString()); this.eventBus.post(event); this.events.getAndIncrement(); }
class class_name[name] begin[{] method[publish, return_type[void], modifier[public], parameter[event]] begin[{] call[Objects.requireNonNull, parameter[member[.event], call[Required.EVENT.toString, parameter[]]]] THIS[member[None.eventBus]call[None.post, parameter[member[.event]]...
Keyword[public] Keyword[void] identifier[publish] operator[SEP] identifier[Object] identifier[event] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[event] , identifier[Required] operator[SEP] identifier[EVENT] operator[SEP] identifier[toString] operator[SEP...
public void process() { width = sourceImage.getWidth(); height = sourceImage.getHeight(); picsize = width * height; initArrays(); readLuminance(); if (contrastNormalized) normalizeContrast(); computeGradients(gaussianKernelRadius, gaussianKernelWidth);...
class class_name[name] begin[{] method[process, return_type[void], modifier[public], parameter[]] begin[{] assign[member[.width], call[sourceImage.getWidth, parameter[]]] assign[member[.height], call[sourceImage.getHeight, parameter[]]] assign[member[.picsize], b...
Keyword[public] Keyword[void] identifier[process] operator[SEP] operator[SEP] { identifier[width] operator[=] identifier[sourceImage] operator[SEP] identifier[getWidth] operator[SEP] operator[SEP] operator[SEP] identifier[height] operator[=] identifier[sourceImage] operator[SEP] identifier[getHeight] operator[SE...
private static String extractStringFromStringExprNode(Node node) throws MalformedException { switch (node.getToken()) { case STRING: return node.getString(); case TEMPLATELIT: if (node.hasOneChild()) { // Cooked string can be null only for tagged template literals. ...
class class_name[name] begin[{] method[extractStringFromStringExprNode, return_type[type[String]], modifier[private static], parameter[node]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['STRING'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[], member=getString, post...
Keyword[private] Keyword[static] identifier[String] identifier[extractStringFromStringExprNode] operator[SEP] identifier[Node] identifier[node] operator[SEP] Keyword[throws] identifier[MalformedException] { Keyword[switch] operator[SEP] identifier[node] operator[SEP] identifier[getToken] operator[SEP] operator[S...
protected void init(Source source) throws SQLException { if (source == null) { throw Util.nullArgument("source"); } Transformer transformer = JDBCSQLXML.getIdentityTransformer(); StreamResult result = new StreamResult(); ByteArray...
class class_name[name] begin[{] method[init, return_type[void], modifier[protected], parameter[source]] begin[{] if[binary_operation[member[.source], ==, literal[null]]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[],...
Keyword[protected] Keyword[void] identifier[init] operator[SEP] identifier[Source] identifier[source] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[if] operator[SEP] identifier[source] operator[==] Other[null] operator[SEP] { Keyword[throw] identifier[Util] operator[SEP] identifier[...
public void offerEvent(IPortletWindowId portletWindowId, QueuedEvent event) { Queue<QueuedEvent> events = resolvedEventQueues.get(portletWindowId); if (events == null) { events = ConcurrentMapUtils.putIfAbsent( resolvedEventQueues, ...
class class_name[name] begin[{] method[offerEvent, return_type[void], modifier[public], parameter[portletWindowId, event]] begin[{] local_variable[type[Queue], events] if[binary_operation[member[.events], ==, literal[null]]] begin[{] assign[member[.events], call[...
Keyword[public] Keyword[void] identifier[offerEvent] operator[SEP] identifier[IPortletWindowId] identifier[portletWindowId] , identifier[QueuedEvent] identifier[event] operator[SEP] { identifier[Queue] operator[<] identifier[QueuedEvent] operator[>] identifier[events] operator[=] identifier[resolvedEventQueues]...
public Action onFragment(final DirectBuffer buffer, final int offset, final int length, final Header header) { final byte flags = header.flags(); Action action = Action.CONTINUE; if ((flags & UNFRAGMENTED) == UNFRAGMENTED) { action = delegate.onFragment(buffer, offset, ...
class class_name[name] begin[{] method[onFragment, return_type[type[Action]], modifier[public], parameter[buffer, offset, length, header]] begin[{] local_variable[type[byte], flags] local_variable[type[Action], action] if[binary_operation[binary_operation[member[.flags], &, memb...
Keyword[public] identifier[Action] identifier[onFragment] operator[SEP] Keyword[final] identifier[DirectBuffer] identifier[buffer] , Keyword[final] Keyword[int] identifier[offset] , Keyword[final] Keyword[int] identifier[length] , Keyword[final] identifier[Header] identifier[header] operator[SEP] { Keyword[fi...
public static Bootstrap removeConfiguration(Bootstrap b, String name) { Objects.requireNonNull(b, "bootstrap"); Objects.requireNonNull(name, "name"); if (b.config().handler() != null) { b.handler(removeConfiguration(b.config().handler(), name)); } return b; }
class class_name[name] begin[{] method[removeConfiguration, return_type[type[Bootstrap]], modifier[public static], parameter[b, name]] begin[{] call[Objects.requireNonNull, parameter[member[.b], literal["bootstrap"]]] call[Objects.requireNonNull, parameter[member[.name], literal...
Keyword[public] Keyword[static] identifier[Bootstrap] identifier[removeConfiguration] operator[SEP] identifier[Bootstrap] identifier[b] , identifier[String] identifier[name] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[b] , literal[String] operator[SEP] ...
public boolean closeLog(int closemode) { if (log == null) { return true; } try { switch (closemode) { case Database.CLOSEMODE_IMMEDIATELY : log.shutdown(); break; case Database.CLOSEMODE_NORMAL : ...
class class_name[name] begin[{] method[closeLog, return_type[type[boolean]], modifier[public], parameter[closemode]] begin[{] if[binary_operation[member[.log], ==, literal[null]]] begin[{] return[literal[true]] else begin[{] None end[}] TryStatement(block=[Sw...
Keyword[public] Keyword[boolean] identifier[closeLog] operator[SEP] Keyword[int] identifier[closemode] operator[SEP] { Keyword[if] operator[SEP] identifier[log] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[try] { Keyword[swi...
public static Number intdiv(Number left, Number right) { return NumberMath.intdiv(left, right); }
class class_name[name] begin[{] method[intdiv, return_type[type[Number]], modifier[public static], parameter[left, right]] begin[{] return[call[NumberMath.intdiv, parameter[member[.left], member[.right]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Number] identifier[intdiv] operator[SEP] identifier[Number] identifier[left] , identifier[Number] identifier[right] operator[SEP] { Keyword[return] identifier[NumberMath] operator[SEP] identifier[intdiv] operator[SEP] identifier[left] , identifier[right] operator[SEP]...
private boolean isPredicateKnown_(int predicate) { assert(m_scl.charAt(predicate) != '*'); if (m_matrix[predicate] == -2) return false; if (m_matrix[predicate] == -1) { m_perform_predicates[predicate] = false; m_predicate_count--; return ...
class class_name[name] begin[{] method[isPredicateKnown_, return_type[type[boolean]], modifier[private], parameter[predicate]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=predicate, postfix_operators=[], prefix_operators=[], qualifier=,...
Keyword[private] Keyword[boolean] identifier[isPredicateKnown_] operator[SEP] Keyword[int] identifier[predicate] operator[SEP] { Keyword[assert] operator[SEP] identifier[m_scl] operator[SEP] identifier[charAt] operator[SEP] identifier[predicate] operator[SEP] operator[!=] literal[String] operator[SEP] operator[S...
@Override public R visitUnionType(UnionTypeTree node, P p) { return scan(node.getTypeAlternatives(), p); }
class class_name[name] begin[{] method[visitUnionType, return_type[type[R]], modifier[public], parameter[node, p]] begin[{] return[call[.scan, parameter[call[node.getTypeAlternatives, parameter[]], member[.p]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[R] identifier[visitUnionType] operator[SEP] identifier[UnionTypeTree] identifier[node] , identifier[P] identifier[p] operator[SEP] { Keyword[return] identifier[scan] operator[SEP] identifier[node] operator[SEP] identifier[getTypeAlternatives] operato...
@NullSafe public static boolean isWaiting(Thread thread) { return (thread != null && Thread.State.WAITING.equals(thread.getState())); }
class class_name[name] begin[{] method[isWaiting, return_type[type[boolean]], modifier[public static], parameter[thread]] begin[{] return[binary_operation[binary_operation[member[.thread], !=, literal[null]], &&, call[Thread.State.WAITING.equals, parameter[call[thread.getState, parameter[]]]]]] end...
annotation[@] identifier[NullSafe] Keyword[public] Keyword[static] Keyword[boolean] identifier[isWaiting] operator[SEP] identifier[Thread] identifier[thread] operator[SEP] { Keyword[return] operator[SEP] identifier[thread] operator[!=] Other[null] operator[&&] identifier[Thread] operator[SEP] identifier[State] o...
public PoolGetAllLifetimeStatisticsHeaders withLastModified(DateTime lastModified) { if (lastModified == null) { this.lastModified = null; } else { this.lastModified = new DateTimeRfc1123(lastModified); } return this; }
class class_name[name] begin[{] method[withLastModified, return_type[type[PoolGetAllLifetimeStatisticsHeaders]], modifier[public], parameter[lastModified]] begin[{] if[binary_operation[member[.lastModified], ==, literal[null]]] begin[{] assign[THIS[member[None.lastModifi...
Keyword[public] identifier[PoolGetAllLifetimeStatisticsHeaders] identifier[withLastModified] operator[SEP] identifier[DateTime] identifier[lastModified] operator[SEP] { Keyword[if] operator[SEP] identifier[lastModified] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[la...
private static Object computeFragment(final ITemplateContext context, final String input) { final IStandardExpressionParser expressionParser = StandardExpressions.getExpressionParser(context.getConfiguration()); final String trimmedInput = input.trim(); if (shouldBeWrappedAsFragmentExpression...
class class_name[name] begin[{] method[computeFragment, return_type[type[Object]], modifier[private static], parameter[context, input]] begin[{] local_variable[type[IStandardExpressionParser], expressionParser] local_variable[type[String], trimmedInput] if[call[.shouldBeWrappedA...
Keyword[private] Keyword[static] identifier[Object] identifier[computeFragment] operator[SEP] Keyword[final] identifier[ITemplateContext] identifier[context] , Keyword[final] identifier[String] identifier[input] operator[SEP] { Keyword[final] identifier[IStandardExpressionParser] identifier[expressionParser] op...
public void bySshWithEveryRetryWaitFor(int time, TimeUnit units) throws IOException { checkState(withEveryRetryWaitFor(time, units), "Port %s is not opened to connect to", hostAndPort.getPort()); for (int i = 1; i <= retries; i++) { Connection connection = new Connection(hostAndPort.getHost...
class class_name[name] begin[{] method[bySshWithEveryRetryWaitFor, return_type[void], modifier[public], parameter[time, units]] begin[{] call[.checkState, parameter[call[.withEveryRetryWaitFor, parameter[member[.time], member[.units]]], literal["Port %s is not opened to connect to"], call[hostA...
Keyword[public] Keyword[void] identifier[bySshWithEveryRetryWaitFor] operator[SEP] Keyword[int] identifier[time] , identifier[TimeUnit] identifier[units] operator[SEP] Keyword[throws] identifier[IOException] { identifier[checkState] operator[SEP] identifier[withEveryRetryWaitFor] operator[SEP] identifier[time] ...
public static <T> Predicate<T> or(Collection<? extends Predicate<? super T>> components) { return new OrPredicate<T>(components); }
class class_name[name] begin[{] method[or, return_type[type[Predicate]], modifier[public static], parameter[components]] begin[{] return[ClassCreator(arguments=[MemberReference(member=components, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_argument...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Predicate] operator[<] identifier[T] operator[>] identifier[or] operator[SEP] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[Predicate] operator[<] operator[?] Keyword[super] identifier[T] operator[>] operator[>...
protected <T> T getDatamodelObjectFromResponse(JsonNode response, List<String> path, Class<T> targetClass) throws JsonProcessingException { if(response == null) { throw new JsonMappingException("The API response is null"); } JsonNode currentNode = response; for(String field : path) { if (!currentNode.has(...
class class_name[name] begin[{] method[getDatamodelObjectFromResponse, return_type[type[T]], modifier[protected], parameter[response, path, targetClass]] begin[{] if[binary_operation[member[.response], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Li...
Keyword[protected] operator[<] identifier[T] operator[>] identifier[T] identifier[getDatamodelObjectFromResponse] operator[SEP] identifier[JsonNode] identifier[response] , identifier[List] operator[<] identifier[String] operator[>] identifier[path] , identifier[Class] operator[<] identifier[T] operator[>] identifier[...
public OvhOrder overTheBox_serviceName_migrate_POST(String serviceName, Boolean hardware, String offer, String shippingContactID, OvhShippingMethodEnum shippingMethod, Long shippingRelayID) throws IOException { String qPath = "/order/overTheBox/{serviceName}/migrate"; StringBuilder sb = path(qPath, serviceName); ...
class class_name[name] begin[{] method[overTheBox_serviceName_migrate_POST, return_type[type[OvhOrder]], modifier[public], parameter[serviceName, hardware, offer, shippingContactID, shippingMethod, shippingRelayID]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder]...
Keyword[public] identifier[OvhOrder] identifier[overTheBox_serviceName_migrate_POST] operator[SEP] identifier[String] identifier[serviceName] , identifier[Boolean] identifier[hardware] , identifier[String] identifier[offer] , identifier[String] identifier[shippingContactID] , identifier[OvhShippingMethodEnum] ident...
public static LinkedList<Method> getLIFOMethodList(List<Method> methodList, LinkedList<Class<?>> lifoSuperClassesList) { // Create LinkedList to be returned. LinkedList<Method> sortedList = new LinkedList<Method>(); // For each Class object in sorted list of super classe...
class class_name[name] begin[{] method[getLIFOMethodList, return_type[type[LinkedList]], modifier[public static], parameter[methodList, lifoSuperClassesList]] begin[{] local_variable[type[LinkedList], sortedList] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=Met...
Keyword[public] Keyword[static] identifier[LinkedList] operator[<] identifier[Method] operator[>] identifier[getLIFOMethodList] operator[SEP] identifier[List] operator[<] identifier[Method] operator[>] identifier[methodList] , identifier[LinkedList] operator[<] identifier[Class] operator[<] operator[?] operator[>] ope...
@Override public ListLogSubscriptionsResult listLogSubscriptions(ListLogSubscriptionsRequest request) { request = beforeClientExecution(request); return executeListLogSubscriptions(request); }
class class_name[name] begin[{] method[listLogSubscriptions, return_type[type[ListLogSubscriptionsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeListLogSubscriptions, parame...
annotation[@] identifier[Override] Keyword[public] identifier[ListLogSubscriptionsResult] identifier[listLogSubscriptions] operator[SEP] identifier[ListLogSubscriptionsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ...
public void setDriverKeyInfo(FieldList keys, boolean[] sortOrder, int id) { if(id < 0 || id >= driverKeys.length) { throw new CompilerException("Invalid id for driver key information. DriverStrategy requires only " +super.getDriverStrategy().getNumRequiredComparators()+" comparators."); } this.drive...
class class_name[name] begin[{] method[setDriverKeyInfo, return_type[void], modifier[public], parameter[keys, sortOrder, id]] begin[{] if[binary_operation[binary_operation[member[.id], <, literal[0]], ||, binary_operation[member[.id], >=, member[driverKeys.length]]]] begin[{] ThrowS...
Keyword[public] Keyword[void] identifier[setDriverKeyInfo] operator[SEP] identifier[FieldList] identifier[keys] , Keyword[boolean] operator[SEP] operator[SEP] identifier[sortOrder] , Keyword[int] identifier[id] operator[SEP] { Keyword[if] operator[SEP] identifier[id] operator[<] Other[0] operator[||] identifie...
@Nonnull public static String encodeFromFile (@Nonnull final String filename) throws IOException { // Setup some useful variables final File file = new File (filename); // Open a stream try (final Base64InputStream bis = new Base64InputStream (FileHelper.getBufferedInputStream (file), ENCODE)) ...
class class_name[name] begin[{] method[encodeFromFile, return_type[type[String]], modifier[public static], parameter[filename]] begin[{] local_variable[type[File], file] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Array...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[String] identifier[encodeFromFile] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[String] identifier[filename] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] identifier[File] identifier...
private List<ValidatorMetaData> extractMetaDataFromString( Class<?> clazz, String propertyName, String unparsedString ) { String propertyKey = clazz.getName() + "." + propertyName; /* See if we parsed this bad boy already. */ L...
class class_name[name] begin[{] method[extractMetaDataFromString, return_type[type[List]], modifier[private], parameter[clazz, propertyName, unparsedString]] begin[{] local_variable[type[String], propertyKey] local_variable[type[List], validatorMetaDataList] if[binary_operation[...
Keyword[private] identifier[List] operator[<] identifier[ValidatorMetaData] operator[>] identifier[extractMetaDataFromString] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[String] identifier[propertyName] , identifier[String] identifier[unparsedString] operator[SEP...
@DoesServiceRequest public <R> ResultSegment<R> executeSegmented(final TableQuery<?> query, final EntityResolver<R> resolver, final ResultContinuation continuationToken) throws StorageException { return this.executeSegmented(query, resolver, continuationToken, null /* options */, null /* opConte...
class class_name[name] begin[{] method[executeSegmented, return_type[type[ResultSegment]], modifier[public], parameter[query, resolver, continuationToken]] begin[{] return[THIS[call[None.executeSegmented, parameter[member[.query], member[.resolver], member[.continuationToken], literal[null], literal[nu...
annotation[@] identifier[DoesServiceRequest] Keyword[public] operator[<] identifier[R] operator[>] identifier[ResultSegment] operator[<] identifier[R] operator[>] identifier[executeSegmented] operator[SEP] Keyword[final] identifier[TableQuery] operator[<] operator[?] operator[>] identifier[query] , Keyword[final] iden...
@Nullable @ReturnsMutableCopy public static Object [] getAsObjectArray (@Nullable final Collection <?> aCollection) { if (CollectionHelper.isEmpty (aCollection)) return null; final Object [] ret = new Object [aCollection.size ()]; return aCollection.toArray (ret); }
class class_name[name] begin[{] method[getAsObjectArray, return_type[type[Object]], modifier[public static], parameter[aCollection]] begin[{] if[call[CollectionHelper.isEmpty, parameter[member[.aCollection]]]] begin[{] return[literal[null]] else begin[{] None end[}] loca...
annotation[@] identifier[Nullable] annotation[@] identifier[ReturnsMutableCopy] Keyword[public] Keyword[static] identifier[Object] operator[SEP] operator[SEP] identifier[getAsObjectArray] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[Collection] operator[<] operator[?] operator[>] identifie...
@SuppressWarnings("unchecked") public List seqLabeling(String data){ List<Sentence> obsvSeqs = dataReader.readString(data); return labeling(obsvSeqs); }
class class_name[name] begin[{] method[seqLabeling, return_type[type[List]], modifier[public], parameter[data]] begin[{] local_variable[type[List], obsvSeqs] return[call[.labeling, parameter[member[.obsvSeqs]]]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[List] identifier[seqLabeling] operator[SEP] identifier[String] identifier[data] operator[SEP] { identifier[List] operator[<] identifier[Sentence] operator[>] identifier[obsvSeqs] operator[=] identifi...
@Override public String getMainActivity() throws AndroidSdkException { if (mainActivity == null) { try { mainActivity = extractApkDetails("launchable-activity: name='(.*?)'"); } catch (ShellCommandException e) { throw new SelendroidException("The main activity of the apk " + apkFile.ge...
class class_name[name] begin[{] method[getMainActivity, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.mainActivity], ==, literal[null]]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReferenc...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getMainActivity] operator[SEP] operator[SEP] Keyword[throws] identifier[AndroidSdkException] { Keyword[if] operator[SEP] identifier[mainActivity] operator[==] Other[null] operator[SEP] { Keyword[try] { iden...
public String getMessage() { String message = super.getMessage(); if (m_iErrorCode != -1) message = message + " Error code: " + m_iErrorCode; return message; }
class class_name[name] begin[{] method[getMessage, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[String], message] if[binary_operation[member[.m_iErrorCode], !=, literal[1]]] begin[{] assign[member[.message], binary_operation[binary_o...
Keyword[public] identifier[String] identifier[getMessage] operator[SEP] operator[SEP] { identifier[String] identifier[message] operator[=] Keyword[super] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[m_iErrorCode] operator[!=] operator[-] Othe...
static ImmutableAttributes loadAttributes(String repoType, File featureFile, ProvisioningDetails details) throws IOException { // This will throw exceptions if required attributes mismatch or are missing details.ensureValid(); // retrieve the symbolic name and feature manifest version ...
class class_name[name] begin[{] method[loadAttributes, return_type[type[ImmutableAttributes]], modifier[static], parameter[repoType, featureFile, details]] begin[{] call[details.ensureValid, parameter[]] local_variable[type[String], symbolicName] local_variable[type[int], featur...
Keyword[static] identifier[ImmutableAttributes] identifier[loadAttributes] operator[SEP] identifier[String] identifier[repoType] , identifier[File] identifier[featureFile] , identifier[ProvisioningDetails] identifier[details] operator[SEP] Keyword[throws] identifier[IOException] { identifier[details] operator[...
public RepositoryResourceImpl createResourceFromAsset(Asset ass, RepositoryConnection connection) throws RepositoryBackendException { // No wlp information means no type set, so can't create a resource from this.... RepositoryResourceImpl result; if (null == ass.getWlpInformation() || ...
class class_name[name] begin[{] method[createResourceFromAsset, return_type[type[RepositoryResourceImpl]], modifier[public], parameter[ass, connection]] begin[{] local_variable[type[RepositoryResourceImpl], result] if[binary_operation[binary_operation[literal[null], ==, call[ass.getWlpI...
Keyword[public] identifier[RepositoryResourceImpl] identifier[createResourceFromAsset] operator[SEP] identifier[Asset] identifier[ass] , identifier[RepositoryConnection] identifier[connection] operator[SEP] Keyword[throws] identifier[RepositoryBackendException] { identifier[RepositoryResourceImpl] identifier[re...
public final T fromJson(Reader in) throws IOException { JsonReader reader = new JsonReader(in); return read(reader); }
class class_name[name] begin[{] method[fromJson, return_type[type[T]], modifier[final public], parameter[in]] begin[{] local_variable[type[JsonReader], reader] return[call[.read, parameter[member[.reader]]]] end[}] END[}]
Keyword[public] Keyword[final] identifier[T] identifier[fromJson] operator[SEP] identifier[Reader] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] { identifier[JsonReader] identifier[reader] operator[=] Keyword[new] identifier[JsonReader] operator[SEP] identifier[in] operator[SEP] operator[S...
private void checkExtents(ClassDescriptorDef classDef, String checkLevel) throws ConstraintException { if (CHECKLEVEL_NONE.equals(checkLevel)) { return; } HashMap processedClasses = new HashMap(); InheritanceHelper helper = new Inher...
class class_name[name] begin[{] method[checkExtents, return_type[void], modifier[private], parameter[classDef, checkLevel]] begin[{] if[call[CHECKLEVEL_NONE.equals, parameter[member[.checkLevel]]]] begin[{] return[None] else begin[{] None end[}] local_variabl...
Keyword[private] Keyword[void] identifier[checkExtents] operator[SEP] identifier[ClassDescriptorDef] identifier[classDef] , identifier[String] identifier[checkLevel] operator[SEP] Keyword[throws] identifier[ConstraintException] { Keyword[if] operator[SEP] identifier[CHECKLEVEL_NONE] operator[SEP] identifier[equ...
@Override @Measure( timers = @MetricNamed( DEFAULT ) ) public Transfer store( final ArtifactStore store, final String path, final InputStream stream, final TransferOperation op, final EventMetadata eventMetadata ) throws IndyWorkflowException { if ( store.getKe...
class class_name[name] begin[{] method[store, return_type[type[Transfer]], modifier[public], parameter[store, path, stream, op, eventMetadata]] begin[{] if[binary_operation[call[store.getKey, parameter[]], ==, member[StoreType.group]]] begin[{] return[literal[null]] else beg...
annotation[@] identifier[Override] annotation[@] identifier[Measure] operator[SEP] identifier[timers] operator[=] annotation[@] identifier[MetricNamed] operator[SEP] identifier[DEFAULT] operator[SEP] operator[SEP] Keyword[public] identifier[Transfer] identifier[store] operator[SEP] Keyword[final] identifier[ArtifactSto...
@Override public Writable serialize(Object arg0, ObjectInspector arg1) throws SerDeException { if (!(arg1 instanceof StructObjectInspector)) { throw new SerDeException("Expect a row of Strings for serialization"); } final StructObjectInspector outputOI = (StructObjectInspector) arg1; final List<? extends St...
class class_name[name] begin[{] method[serialize, return_type[type[Writable]], modifier[public], parameter[arg0, arg1]] begin[{] if[binary_operation[member[.arg1], instanceof, type[StructObjectInspector]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_op...
annotation[@] identifier[Override] Keyword[public] identifier[Writable] identifier[serialize] operator[SEP] identifier[Object] identifier[arg0] , identifier[ObjectInspector] identifier[arg1] operator[SEP] Keyword[throws] identifier[SerDeException] { Keyword[if] operator[SEP] operator[!] operator[SEP] identifier...
public Observable<ServiceResponse<Page<IotHubQuotaMetricInfoInner>>> getQuotaMetricsSinglePageAsync(final String resourceGroupName, final String resourceName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cann...
class class_name[name] begin[{] method[getQuotaMetricsSinglePageAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, resourceName]] begin[{] if[binary_operation[THIS[member[None.client]call[None.subscriptionId, parameter[]]], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[IotHubQuotaMetricInfoInner] operator[>] operator[>] operator[>] identifier[getQuotaMetricsSinglePageAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , K...
@SuppressWarnings("unchecked") static void findByNativeQuery(final EntityManager em, final String query) { Query q = em.createNativeQuery(query, Tweets.class); Map<String, Client> clients = (Map<String, Client>) em.getDelegate(); ThriftClient client = (ThriftClient) clients.get("tw...
class class_name[name] begin[{] method[findByNativeQuery, return_type[void], modifier[static], parameter[em, query]] begin[{] local_variable[type[Query], q] local_variable[type[Map], clients] local_variable[type[ThriftClient], client] call[client.setCqlVersion, parameter...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[static] Keyword[void] identifier[findByNativeQuery] operator[SEP] Keyword[final] identifier[EntityManager] identifier[em] , Keyword[final] identifier[String] identifier[query] operator[SEP] { identifier[Query] identif...
public Long getTps() { Long tps = 0L; if (items.size() != 0) { for (ThroughputStat item : items) { if (item.getEndTime().equals(item.getStartTime())) { tps += item.getNumber(); } else { tps += item.getNumber() * 1000 / (...
class class_name[name] begin[{] method[getTps, return_type[type[Long]], modifier[public], parameter[]] begin[{] local_variable[type[Long], tps] if[binary_operation[call[items.size, parameter[]], !=, literal[0]]] begin[{] ForStatement(body=BlockStatement(label=None, statement...
Keyword[public] identifier[Long] identifier[getTps] operator[SEP] operator[SEP] { identifier[Long] identifier[tps] operator[=] Other[0L] operator[SEP] Keyword[if] operator[SEP] identifier[items] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[!=] Other[0] operator[SEP] { Keyword[fo...
public final void mT__44() throws RecognitionException { try { int _type = T__44; int _channel = DEFAULT_TOKEN_CHANNEL; // InternalXbaseWithAnnotations.g:42:7: ( 'val' ) // InternalXbaseWithAnnotations.g:42:9: 'val' { match("val"); ...
class class_name[name] begin[{] method[mT__44, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=T__44, postfix_operators=[], prefix_operators=[]...
Keyword[public] Keyword[final] Keyword[void] identifier[mT__44] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[T__44] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TOKE...
String getDefaultSourcClassForSystemEvent(Class systemEventClass) { Constructor[] constructors = systemEventClass.getConstructors(); for (Constructor constr : constructors) { Class[] parms = constr.getParameterTypes(); if (parms == null || parms.length != 1) ...
class class_name[name] begin[{] method[getDefaultSourcClassForSystemEvent, return_type[type[String]], modifier[default], parameter[systemEventClass]] begin[{] local_variable[type[Constructor], constructors] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annota...
identifier[String] identifier[getDefaultSourcClassForSystemEvent] operator[SEP] identifier[Class] identifier[systemEventClass] operator[SEP] { identifier[Constructor] operator[SEP] operator[SEP] identifier[constructors] operator[=] identifier[systemEventClass] operator[SEP] identifier[getConstructors] operator[S...
public static void matrixCopy(Object[][] src, Object[][] dest) { if (src != null && dest != null) { for (int i = 0; i < src.length; i++) { System.arraycopy(src[i], 0, dest[i], 0, src[i].length); } } }
class class_name[name] begin[{] method[matrixCopy, return_type[void], modifier[public static], parameter[src, dest]] begin[{] if[binary_operation[binary_operation[member[.src], !=, literal[null]], &&, binary_operation[member[.dest], !=, literal[null]]]] begin[{] ForStatement(body=Bl...
Keyword[public] Keyword[static] Keyword[void] identifier[matrixCopy] operator[SEP] identifier[Object] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[src] , identifier[Object] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[dest] operator[SEP] { Keyword[if] operator[SEP] id...
@Override public void deleteDurableSubscription(String subscriptionName, String durableSubscriptionHome) throws SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, ...
class class_name[name] begin[{] method[deleteDurableSubscription, return_type[void], modifier[public], parameter[subscriptionName, durableSubscriptionHome]] begin[{] assign[member[.durableSubscriptionHome], call[_messageProcessor.getMessagingEngineName, parameter[]]] if[binary_o...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[deleteDurableSubscription] operator[SEP] identifier[String] identifier[subscriptionName] , identifier[String] identifier[durableSubscriptionHome] operator[SEP] Keyword[throws] identifier[SIConnectionUnavailableException] , identifier[SIConnec...
public static <T> Set<T> toSet(Iterable<T> self) { return toSet(self.iterator()); }
class class_name[name] begin[{] method[toSet, return_type[type[Set]], modifier[public static], parameter[self]] begin[{] return[call[.toSet, parameter[call[self.iterator, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Set] operator[<] identifier[T] operator[>] identifier[toSet] operator[SEP] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[self] operator[SEP] { Keyword[return] identifier[toSet] operator[SEP] identifier[self] ...
public static Pair<List<Table>, Set<String>> getSnapshotableTables(Database catalog, boolean isReplicated) { List<Table> tables = new ArrayList<>(); Set<String> optionalTableNames = new HashSet<>(); for (Table table : catalog.getTables()) { if (table.getIsreplicated() != isReplic...
class class_name[name] begin[{] method[getSnapshotableTables, return_type[type[Pair]], modifier[public static], parameter[catalog, isReplicated]] begin[{] local_variable[type[List], tables] local_variable[type[Set], optionalTableNames] ForStatement(body=BlockStatement(label=None, statem...
Keyword[public] Keyword[static] identifier[Pair] operator[<] identifier[List] operator[<] identifier[Table] operator[>] , identifier[Set] operator[<] identifier[String] operator[>] operator[>] identifier[getSnapshotableTables] operator[SEP] identifier[Database] identifier[catalog] , Keyword[boolean] identifier[isRepl...
protected SSLServerSocketFactory createFactory() throws Exception { SSLContext context; if (_provider == null) { context = SSLContext.getInstance(_protocol); } else { context = SSLContext.getInstance(_protocol, _provider); } KeyManagerFactory keyManagerFactory = KeyManagerFa...
class class_name[name] begin[{] method[createFactory, return_type[type[SSLServerSocketFactory]], modifier[protected], parameter[]] begin[{] local_variable[type[SSLContext], context] if[binary_operation[member[._provider], ==, literal[null]]] begin[{] assign[membe...
Keyword[protected] identifier[SSLServerSocketFactory] identifier[createFactory] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[SSLContext] identifier[context] operator[SEP] Keyword[if] operator[SEP] identifier[_provider] operator[==] Other[null] operator[SEP] { identifi...
public static NFSubstitution makeSubstitution(int pos, NFRule rule, NFRule rulePredecessor, NFRuleSet ruleSet, RuleBased...
class class_name[name] begin[{] method[makeSubstitution, return_type[type[NFSubstitution]], modifier[public static], parameter[pos, rule, rulePredecessor, ruleSet, formatter, description]] begin[{] if[binary_operation[call[description.length, parameter[]], ==, literal[0]]] begin[{] ...
Keyword[public] Keyword[static] identifier[NFSubstitution] identifier[makeSubstitution] operator[SEP] Keyword[int] identifier[pos] , identifier[NFRule] identifier[rule] , identifier[NFRule] identifier[rulePredecessor] , identifier[NFRuleSet] identifier[ruleSet] , identifier[RuleBasedNumberFormat] identifier[formatt...
@Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.MDRRG__RG_LENGTH: setRGLength(RG_LENGTH_EDEFAULT); return; case AfplibPackage.MDRRG__TRIPLETS: getTriplets().clear(); return; } super.eUnset(featureID); }
class class_name[name] begin[{] method[eUnset, return_type[void], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=MDRRG__RG_LENGTH, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[St...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eUnset] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[MDRRG__RG_LENGTH] op...
public static void deprecated(Class<?> clazz, String methodOrPropName, String version) { if (LOG_DEPRECATED) { deprecated("Property or method [" + methodOrPropName + "] of class [" + clazz.getName() + "] is deprecated in [" + version + "] and will be removed i...
class class_name[name] begin[{] method[deprecated, return_type[void], modifier[public static], parameter[clazz, methodOrPropName, version]] begin[{] if[member[.LOG_DEPRECATED]] begin[{] call[.deprecated, parameter[binary_operation[binary_operation[binary_operation[binary...
Keyword[public] Keyword[static] Keyword[void] identifier[deprecated] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[String] identifier[methodOrPropName] , identifier[String] identifier[version] operator[SEP] { Keyword[if] operator[SEP] identifier[LOG_DEPRECAT...
public void write(int b) { int newcount = count + 1; if (newcount > buffer.length) buffer = copyOf(buffer, Math.max(buffer.length << 1, newcount)); buffer[count] = (byte) b; count = newcount; }
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[b]] begin[{] local_variable[type[int], newcount] if[binary_operation[member[.newcount], >, member[buffer.length]]] begin[{] assign[member[.buffer], call[.copyOf, parameter[member[.bu...
Keyword[public] Keyword[void] identifier[write] operator[SEP] Keyword[int] identifier[b] operator[SEP] { Keyword[int] identifier[newcount] operator[=] identifier[count] operator[+] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[newcount] operator[>] identifier[buffer] operator[SEP] identifier[length...
public FileScanner setSearchPath(String... srPath) { if (srPath == null || srPath.length == 0) { this.srPath = new String[0]; } else { this.srPath = srPath; } return this; }
class class_name[name] begin[{] method[setSearchPath, return_type[type[FileScanner]], modifier[public], parameter[srPath]] begin[{] if[binary_operation[binary_operation[member[.srPath], ==, literal[null]], ||, binary_operation[member[srPath.length], ==, literal[0]]]] begin[{] ...
Keyword[public] identifier[FileScanner] identifier[setSearchPath] operator[SEP] identifier[String] operator[...] identifier[srPath] operator[SEP] { Keyword[if] operator[SEP] identifier[srPath] operator[==] Other[null] operator[||] identifier[srPath] operator[SEP] identifier[length] operator[==] Other[0] operator...
public TransportApiResult<List<Agency>> getAgenciesNearby(AgencyQueryOptions options, double latitude, double longitude, int radiusInMeters) { if (options == null) { options = AgencyQueryOptions.defaultQueryOptions(); } if (radiusInMeters < 0) { throw new IllegalA...
class class_name[name] begin[{] method[getAgenciesNearby, return_type[type[TransportApiResult]], modifier[public], parameter[options, latitude, longitude, radiusInMeters]] begin[{] if[binary_operation[member[.options], ==, literal[null]]] begin[{] assign[member[.options]...
Keyword[public] identifier[TransportApiResult] operator[<] identifier[List] operator[<] identifier[Agency] operator[>] operator[>] identifier[getAgenciesNearby] operator[SEP] identifier[AgencyQueryOptions] identifier[options] , Keyword[double] identifier[latitude] , Keyword[double] identifier[longitude] , Keyword[in...
private void parseLanguageMatchingFix(JsonObject root) { JsonObject node = resolve(root, "supplemental", "languageMatching", "written_new"); JsonArray matches = node.getAsJsonArray("languageMatch"); for (JsonElement element : matches) { JsonObject value = (JsonObject) element; String desired = s...
class class_name[name] begin[{] method[parseLanguageMatchingFix, return_type[void], modifier[private], parameter[root]] begin[{] local_variable[type[JsonObject], node] local_variable[type[JsonArray], matches] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclarat...
Keyword[private] Keyword[void] identifier[parseLanguageMatchingFix] operator[SEP] identifier[JsonObject] identifier[root] operator[SEP] { identifier[JsonObject] identifier[node] operator[=] identifier[resolve] operator[SEP] identifier[root] , literal[String] , literal[String] , literal[String] operator[SEP] o...
Rule NthRepeatText() { return SequenceS(suppr("\""), ZeroOrMore(NonQuote()).label(NthRepeatText).suppressSubnodes(), suppr("\"")); }
class class_name[name] begin[{] method[NthRepeatText, return_type[type[Rule]], modifier[default], parameter[]] begin[{] return[call[.SequenceS, parameter[call[.suppr, parameter[literal["\""]]], call[.ZeroOrMore, parameter[call[.NonQuote, parameter[]]]], call[.suppr, parameter[literal["\""]]]]]] end...
identifier[Rule] identifier[NthRepeatText] operator[SEP] operator[SEP] { Keyword[return] identifier[SequenceS] operator[SEP] identifier[suppr] operator[SEP] literal[String] operator[SEP] , identifier[ZeroOrMore] operator[SEP] identifier[NonQuote] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifie...
public void stop() { if (schedulerThread != null) { schedulerThread.interrupt(); try { schedulerThread.join(1000); } catch (InterruptedException ie) { } // application.releaseRequest(schedulerThread); schedulerThread = null; System.out.println(new LogEntry("scheduler thread stopped....
class class_name[name] begin[{] method[stop, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.schedulerThread], !=, literal[null]]] begin[{] call[schedulerThread.interrupt, parameter[]] TryStatement(block=[StatementExpres...
Keyword[public] Keyword[void] identifier[stop] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[schedulerThread] operator[!=] Other[null] operator[SEP] { identifier[schedulerThread] operator[SEP] identifier[interrupt] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { ...
protected void checkXmlSpaceAttr(int type, WordResolver enumValues) throws XMLStreamException { boolean ok = (type == DTDAttribute.TYPE_ENUMERATED); if (ok) { switch (enumValues.size()) { case 1: ok = (enumValues.find("preserve") != null) ...
class class_name[name] begin[{] method[checkXmlSpaceAttr, return_type[void], modifier[protected], parameter[type, enumValues]] begin[{] local_variable[type[boolean], ok] if[member[.ok]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], p...
Keyword[protected] Keyword[void] identifier[checkXmlSpaceAttr] operator[SEP] Keyword[int] identifier[type] , identifier[WordResolver] identifier[enumValues] operator[SEP] Keyword[throws] identifier[XMLStreamException] { Keyword[boolean] identifier[ok] operator[=] operator[SEP] identifier[type] operator[==] iden...
void remove_document(Document doc) { for (Document<K> document : documents_) { if (document.equals(doc)) { remove_document(doc); return; } } }
class class_name[name] begin[{] method[remove_document, return_type[void], modifier[default], parameter[doc]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=doc, postfix_operators=[], prefix_operators=[], qualif...
Keyword[void] identifier[remove_document] operator[SEP] identifier[Document] identifier[doc] operator[SEP] { Keyword[for] operator[SEP] identifier[Document] operator[<] identifier[K] operator[>] identifier[document] operator[:] identifier[documents_] operator[SEP] { Keyword[if] operator[SEP] identifi...
@Override public Result uploadBinary(Request request, String repositoryName, String workspaceName, String filePath, InputStream binaryStream) throws RepositoryException { CheckArg.isNo...
class class_name[name] begin[{] method[uploadBinary, return_type[type[Result]], modifier[public], parameter[request, repositoryName, workspaceName, filePath, binaryStream]] begin[{] call[CheckArg.isNotNull, parameter[member[.binaryStream], literal["request body"]]] local_variable[type[S...
annotation[@] identifier[Override] Keyword[public] identifier[Result] identifier[uploadBinary] operator[SEP] identifier[Request] identifier[request] , identifier[String] identifier[repositoryName] , identifier[String] identifier[workspaceName] , identifier[String] identifier[filePath] , identifier[InputStream] iden...
private void addPostParams(final Request request) { if (author != null) { request.addPostParam("Author", author); } if (attributes != null) { request.addPostParam("Attributes", attributes); } if (dateCreated != null) { request.addPostParam("D...
class class_name[name] begin[{] method[addPostParams, return_type[void], modifier[private], parameter[request]] begin[{] if[binary_operation[member[.author], !=, literal[null]]] begin[{] call[request.addPostParam, parameter[literal["Author"], member[.author]]] el...
Keyword[private] Keyword[void] identifier[addPostParams] operator[SEP] Keyword[final] identifier[Request] identifier[request] operator[SEP] { Keyword[if] operator[SEP] identifier[author] operator[!=] Other[null] operator[SEP] { identifier[request] operator[SEP] identifier[addPostParam] operator[SEP] l...