code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public void provision(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName, String recoveryPointId, ILRRequestResource parameters) { provisionWithServiceResponseAsync(vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPoin...
class class_name[name] begin[{] method[provision, return_type[void], modifier[public], parameter[vaultName, resourceGroupName, fabricName, containerName, protectedItemName, recoveryPointId, parameters]] begin[{] call[.provisionWithServiceResponseAsync, parameter[member[.vaultName], member[.reso...
Keyword[public] Keyword[void] identifier[provision] operator[SEP] identifier[String] identifier[vaultName] , identifier[String] identifier[resourceGroupName] , identifier[String] identifier[fabricName] , identifier[String] identifier[containerName] , identifier[String] identifier[protectedItemName] , identifier[St...
public static Class<?> lenientClassForName(String className) throws ClassNotFoundException { try { // TODO: consider whether any control over class loader is really needed here // (forName(className, true, Thread.currentThread().getContextClassLoader())?) return Class.forName(className); } cat...
class class_name[name] begin[{] method[lenientClassForName, return_type[type[Class]], modifier[public static], parameter[className]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=className, postfix_operators=[], prefix_operators=[], qualifier...
Keyword[public] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] identifier[lenientClassForName] operator[SEP] identifier[String] identifier[className] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] { Keyword[try] { Keyword[return] identifier[Class] operator[SEP]...
public static Class getPropertyType(Class<?> beanClass, String property){ Method getter = getGetterMethod(beanClass, property); if(getter==null) return null; else return getter.getReturnType(); }
class class_name[name] begin[{] method[getPropertyType, return_type[type[Class]], modifier[public static], parameter[beanClass, property]] begin[{] local_variable[type[Method], getter] if[binary_operation[member[.getter], ==, literal[null]]] begin[{] return[literal[null]] else b...
Keyword[public] Keyword[static] identifier[Class] identifier[getPropertyType] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[beanClass] , identifier[String] identifier[property] operator[SEP] { identifier[Method] identifier[getter] operator[=] identifier[getGetterMethod] operator...
@SuppressWarnings("rawtypes") public static String createSign(String key, Map<String, Object> params) { SortedMap<Object, Object> parameters = new TreeMap<Object, Object>(); Set es = params.entrySet(); Iterator it = es.iterator(); while (it.hasNext()) { Map.Entry entry = ...
class class_name[name] begin[{] method[createSign, return_type[type[String]], modifier[public static], parameter[key, params]] begin[{] local_variable[type[SortedMap], parameters] local_variable[type[Set], es] local_variable[type[Iterator], it] while[call[it.hasNext, par...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[String] identifier[createSign] operator[SEP] identifier[String] identifier[key] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[params] operato...
public static Mirror newInstanceForClassName(String className) throws ClassNotFoundException, InstantiationException, IllegalAccessException { className = className.trim(); Class<?> objClass = Class.forName(className); return new Mirror(ClassPath.newInstance(objClass)); }
class class_name[name] begin[{] method[newInstanceForClassName, return_type[type[Mirror]], modifier[public static], parameter[className]] begin[{] assign[member[.className], call[className.trim, parameter[]]] local_variable[type[Class], objClass] return[ClassCreator(arguments=[M...
Keyword[public] Keyword[static] identifier[Mirror] identifier[newInstanceForClassName] operator[SEP] identifier[String] identifier[className] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] , identifier[InstantiationException] , identifier[IllegalAccessException] { identifier[className] operat...
static Predicate<DateValue> weekIntervalFilter(final int interval, final DayOfWeek weekStart, final DateValue dtStart) { return new Predicate<DateValue>() { private static final long serialVersionUID = 7059994888520369846L; //the latest day with day of week weekStart on or before dtStart DateValue wkStart; ...
class class_name[name] begin[{] method[weekIntervalFilter, return_type[type[Predicate]], modifier[static], parameter[interval, weekStart, dtStart]] begin[{] return[ClassCreator(arguments=[], body=[FieldDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfi...
Keyword[static] identifier[Predicate] operator[<] identifier[DateValue] operator[>] identifier[weekIntervalFilter] operator[SEP] Keyword[final] Keyword[int] identifier[interval] , Keyword[final] identifier[DayOfWeek] identifier[weekStart] , Keyword[final] identifier[DateValue] identifier[dtStart] operator[SEP] { ...
private static RouteDefinition find(Map<RouteDefinition, Method> add, Method method) { if (add == null || add.size() == 0) { return null; } for (RouteDefinition additional : add.keySet()) { Method match = add.get(additional); if (isMatching(method, match)) { return additional; } } return n...
class class_name[name] begin[{] method[find, return_type[type[RouteDefinition]], modifier[private static], parameter[add, method]] begin[{] if[binary_operation[binary_operation[member[.add], ==, literal[null]], ||, binary_operation[call[add.size, parameter[]], ==, literal[0]]]] begin[{] ...
Keyword[private] Keyword[static] identifier[RouteDefinition] identifier[find] operator[SEP] identifier[Map] operator[<] identifier[RouteDefinition] , identifier[Method] operator[>] identifier[add] , identifier[Method] identifier[method] operator[SEP] { Keyword[if] operator[SEP] identifier[add] operator[==] Oth...
@Override protected InputStream getCompilerAsStream() throws IOException { final Vector<InputStream> inputStreams = new Vector<InputStream>(); inputStreams.add(getWebjarLocator().locate(WebjarUriLocator.createUri("jquery.js"))); inputStreams.add(getWebjarLocator().locate(WebjarUriLocator.createUri("handle...
class class_name[name] begin[{] method[getCompilerAsStream, return_type[type[InputStream]], modifier[protected], parameter[]] begin[{] local_variable[type[Vector], inputStreams] call[inputStreams.add, parameter[call[.getWebjarLocator, parameter[]]]] call[inputStreams.add...
annotation[@] identifier[Override] Keyword[protected] identifier[InputStream] identifier[getCompilerAsStream] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] identifier[Vector] operator[<] identifier[InputStream] operator[>] identifier[inputStreams] operator[=] Keyword[new] i...
public void marshall(M3u8Settings m3u8Settings, ProtocolMarshaller protocolMarshaller) { if (m3u8Settings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(m3u8Settings.getAudioFramesPerPes(), AUDIOF...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[m3u8Settings, protocolMarshaller]] begin[{] if[binary_operation[member[.m3u8Settings], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_opera...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[M3u8Settings] identifier[m3u8Settings] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[m3u8Settings] operator[==] Other[null] operator[SEP] { Keyword[throw]...
public String hashPassword(String password, String accountName) { return Hashing.sha256().hashString(password, Charset.forName("UTF-8")).toString(); }
class class_name[name] begin[{] method[hashPassword, return_type[type[String]], modifier[public], parameter[password, accountName]] begin[{] return[call[Hashing.sha256, parameter[]]] end[}] END[}]
Keyword[public] identifier[String] identifier[hashPassword] operator[SEP] identifier[String] identifier[password] , identifier[String] identifier[accountName] operator[SEP] { Keyword[return] identifier[Hashing] operator[SEP] identifier[sha256] operator[SEP] operator[SEP] operator[SEP] identifier[hashString] ope...
public Set<SbbEntityID> getSortedSbbAttachmentSet( Set<SbbEntityID> excludeSet) { final Set<SbbEntityID> sbbAttachementSet = cacheData .getSbbEntitiesAttached(); Set<SbbEntityID> result = new HashSet<SbbEntityID>(); for (SbbEntityID sbbEntityId : sbbAttachementSet) { if (!excludeSet.contains(sbbEntityId...
class class_name[name] begin[{] method[getSortedSbbAttachmentSet, return_type[type[Set]], modifier[public], parameter[excludeSet]] begin[{] local_variable[type[Set], sbbAttachementSet] local_variable[type[Set], result] ForStatement(body=BlockStatement(label=None, statements=[IfStatement...
Keyword[public] identifier[Set] operator[<] identifier[SbbEntityID] operator[>] identifier[getSortedSbbAttachmentSet] operator[SEP] identifier[Set] operator[<] identifier[SbbEntityID] operator[>] identifier[excludeSet] operator[SEP] { Keyword[final] identifier[Set] operator[<] identifier[SbbEntityID] operator[>]...
private void scanMBeanAttributes(MBeanConfig mBeanConfig, ObjectName mBeanName) { MBeanInfo mBeanInfo; try { mBeanInfo = mBeanServer.getMBeanInfo(mBeanName); MBeanAttributeInfo[] infos = mBeanInfo.getAttributes(); for (int i = 0; i < infos.length; i++) { MBeanAttributeConfig cMBAttr = makeConfigMBea...
class class_name[name] begin[{] method[scanMBeanAttributes, return_type[void], modifier[private], parameter[mBeanConfig, mBeanName]] begin[{] local_variable[type[MBeanInfo], mBeanInfo] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=mBeanInfo, po...
Keyword[private] Keyword[void] identifier[scanMBeanAttributes] operator[SEP] identifier[MBeanConfig] identifier[mBeanConfig] , identifier[ObjectName] identifier[mBeanName] operator[SEP] { identifier[MBeanInfo] identifier[mBeanInfo] operator[SEP] Keyword[try] { identifier[mBeanInfo] operator[=] identi...
private UserInfoIssueResponse callUserInfoIssue(String accessToken, Map<String, Object> claims) { // Create a request for /api/auth/userinfo/issue API. UserInfoIssueRequest request = new UserInfoIssueRequest() .setToken(accessToken); if (claims != null && claims.size() != 0) ...
class class_name[name] begin[{] method[callUserInfoIssue, return_type[type[UserInfoIssueResponse]], modifier[private], parameter[accessToken, claims]] begin[{] local_variable[type[UserInfoIssueRequest], request] if[binary_operation[binary_operation[member[.claims], !=, literal[null]], &...
Keyword[private] identifier[UserInfoIssueResponse] identifier[callUserInfoIssue] operator[SEP] identifier[String] identifier[accessToken] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[claims] operator[SEP] { identifier[UserInfoIssueRequest] identifier[request] ope...
public static double normF(double[][] elements) { double f = 0; for(int i = 0; i < elements.length; i++) { final double[] row = elements[i]; for(int j = 0; j < row.length; j++) { final double v = row[j]; f += v * v; } } // TODO: detect overflow, fall back to slower hypo...
class class_name[name] begin[{] method[normF, return_type[type[double]], modifier[public static], parameter[elements]] begin[{] local_variable[type[double], f] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimen...
Keyword[public] Keyword[static] Keyword[double] identifier[normF] operator[SEP] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[elements] operator[SEP] { Keyword[double] identifier[f] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] opera...
@Api public void setRectangleStyle(ShapeStyle rectangleStyle) { this.rectangleStyle = rectangleStyle; if (targetRectangle != null) { targetRectangle.setStyle(rectangleStyle); render(targetRectangle, RenderGroup.SCREEN, RenderStatus.ALL); } }
class class_name[name] begin[{] method[setRectangleStyle, return_type[void], modifier[public], parameter[rectangleStyle]] begin[{] assign[THIS[member[None.rectangleStyle]], member[.rectangleStyle]] if[binary_operation[member[.targetRectangle], !=, literal[null]]] begin[{] ...
annotation[@] identifier[Api] Keyword[public] Keyword[void] identifier[setRectangleStyle] operator[SEP] identifier[ShapeStyle] identifier[rectangleStyle] operator[SEP] { Keyword[this] operator[SEP] identifier[rectangleStyle] operator[=] identifier[rectangleStyle] operator[SEP] Keyword[if] operator[SEP] identifie...
public static void delete(final Collection<File> files) throws IOException { for (final File file : files) { delete(file); } }
class class_name[name] begin[{] method[delete, return_type[void], modifier[public static], parameter[files]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=file, postfix_operators=[], prefix_operators=[...
Keyword[public] Keyword[static] Keyword[void] identifier[delete] operator[SEP] Keyword[final] identifier[Collection] operator[<] identifier[File] operator[>] identifier[files] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[for] operator[SEP] Keyword[final] identifier[File] identifier[file] opera...
public void marshall(GetEndpointRequest getEndpointRequest, ProtocolMarshaller protocolMarshaller) { if (getEndpointRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getEndpointRequest.getApp...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[getEndpointRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.getEndpointRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(p...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[GetEndpointRequest] identifier[getEndpointRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[getEndpointRequest] operator[==] Other[null] operator[SEP] { ...
public String getPhase() { String phase = (String) getStateHelper().eval(PropertyKeys.phase); if (phase != null) { phase = phase.toUpperCase(); } return phase; }
class class_name[name] begin[{] method[getPhase, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[String], phase] if[binary_operation[member[.phase], !=, literal[null]]] begin[{] assign[member[.phase], call[phase.toUpperCase,...
Keyword[public] identifier[String] identifier[getPhase] operator[SEP] operator[SEP] { identifier[String] identifier[phase] operator[=] operator[SEP] identifier[String] operator[SEP] identifier[getStateHelper] operator[SEP] operator[SEP] operator[SEP] identifier[eval] operator[SEP] identifier[PropertyKeys] operat...
public void marshall(AttributeKeyAndValue attributeKeyAndValue, ProtocolMarshaller protocolMarshaller) { if (attributeKeyAndValue == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(attributeKeyAndValu...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[attributeKeyAndValue, protocolMarshaller]] begin[{] if[binary_operation[member[.attributeKeyAndValue], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Liter...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[AttributeKeyAndValue] identifier[attributeKeyAndValue] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[attributeKeyAndValue] operator[==] Other[null] operator[SEP] { ...
void setChild(int index, Node child){ if ((this.splitTest.maxBranches() >= 0) && (index >= this.splitTest.maxBranches())) { throw new IndexOutOfBoundsException(); } this.children.set(index, child); }
class class_name[name] begin[{] method[setChild, return_type[void], modifier[default], parameter[index, child]] begin[{] if[binary_operation[binary_operation[THIS[member[None.splitTest]call[None.maxBranches, parameter[]]], >=, literal[0]], &&, binary_operation[member[.index], >=, THIS[member[No...
Keyword[void] identifier[setChild] operator[SEP] Keyword[int] identifier[index] , identifier[Node] identifier[child] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[splitTest] operator[SEP] identifier[maxBranches] operator[SEP] operator[SEP] operator[>=] Other[0] o...
public String strLabeling(File file){ List<Sentence> obsvSeqs = dataReader.readFile(file.getPath()); List lblSeqs = labeling(obsvSeqs); String ret = dataWriter.writeString(lblSeqs); return ret; }
class class_name[name] begin[{] method[strLabeling, return_type[type[String]], modifier[public], parameter[file]] begin[{] local_variable[type[List], obsvSeqs] local_variable[type[List], lblSeqs] local_variable[type[String], ret] return[member[.ret]] end[}] END[}]
Keyword[public] identifier[String] identifier[strLabeling] operator[SEP] identifier[File] identifier[file] operator[SEP] { identifier[List] operator[<] identifier[Sentence] operator[>] identifier[obsvSeqs] operator[=] identifier[dataReader] operator[SEP] identifier[readFile] operator[SEP] identifier[file] operat...
public static void cache(XmlFileModel key, Document document) { String cacheKey = getKey(key); map.put(cacheKey, new CacheDocument(false, document)); }
class class_name[name] begin[{] method[cache, return_type[void], modifier[public static], parameter[key, document]] begin[{] local_variable[type[String], cacheKey] call[map.put, parameter[member[.cacheKey], ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], quali...
Keyword[public] Keyword[static] Keyword[void] identifier[cache] operator[SEP] identifier[XmlFileModel] identifier[key] , identifier[Document] identifier[document] operator[SEP] { identifier[String] identifier[cacheKey] operator[=] identifier[getKey] operator[SEP] identifier[key] operator[SEP] operator[SEP] iden...
public Observable<ServiceResponse<Page<RoleAssignmentInner>>> listForScopeSinglePageAsync(final String scope, final String filter) { if (scope == null) { throw new IllegalArgumentException("Parameter scope is required and cannot be null."); } if (this.client.apiVersion() == null) { ...
class class_name[name] begin[{] method[listForScopeSinglePageAsync, return_type[type[Observable]], modifier[public], parameter[scope, filter]] begin[{] if[binary_operation[member[.scope], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[RoleAssignmentInner] operator[>] operator[>] operator[>] identifier[listForScopeSinglePageAsync] operator[SEP] Keyword[final] identifier[String] identifier[scope] , Keyword[final] identifi...
private UnicodeSet applyFilter(Filter filter, int src) { // Logically, walk through all Unicode characters, noting the start // and end of each range for which filter.contain(c) is // true. Add each range to a set. // // To improve performance, use an inclusions set which ...
class class_name[name] begin[{] method[applyFilter, return_type[type[UnicodeSet]], modifier[private], parameter[filter, src]] begin[{] call[.clear, parameter[]] local_variable[type[int], startHasProperty] local_variable[type[UnicodeSet], inclusions] local_variable[type[i...
Keyword[private] identifier[UnicodeSet] identifier[applyFilter] operator[SEP] identifier[Filter] identifier[filter] , Keyword[int] identifier[src] operator[SEP] { identifier[clear] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[startHasProperty] operator[=] operator[-] Other[1] operator[SEP] ...
public static void checkSQLRestriction(DatasourceConnection dc, SQL sql) throws PageException { Array sqlparts = ListUtil.listToArrayRemoveEmpty(SQLUtil.removeLiterals(sql.getSQLString()), " \t" + System.getProperty("line.separator")); // print.ln(List.toStringArray(sqlparts)); DataSource ds = dc.getDatasource(); ...
class class_name[name] begin[{] method[checkSQLRestriction, return_type[void], modifier[public static], parameter[dc, sql]] begin[{] local_variable[type[Array], sqlparts] local_variable[type[DataSource], ds] if[call[ds.hasAllow, parameter[member[DataSource.ALLOW_ALTER]]]] begin[...
Keyword[public] Keyword[static] Keyword[void] identifier[checkSQLRestriction] operator[SEP] identifier[DatasourceConnection] identifier[dc] , identifier[SQL] identifier[sql] operator[SEP] Keyword[throws] identifier[PageException] { identifier[Array] identifier[sqlparts] operator[=] identifier[ListUtil] operator...
public static xen_supplemental_pack[] install(nitro_service client, xen_supplemental_pack[] resources) throws Exception { if(resources == null) throw new Exception("Null resource array"); if(resources.length == 1) return ((xen_supplemental_pack[]) resources[0].perform_operation(client, "install")); ...
class class_name[name] begin[{] method[install, return_type[type[xen_supplemental_pack]], modifier[public static], parameter[client, resources]] begin[{] if[binary_operation[member[.resources], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operat...
Keyword[public] Keyword[static] identifier[xen_supplemental_pack] operator[SEP] operator[SEP] identifier[install] operator[SEP] identifier[nitro_service] identifier[client] , identifier[xen_supplemental_pack] operator[SEP] operator[SEP] identifier[resources] operator[SEP] Keyword[throws] identifier[Exception] { ...
static List<NetworkInterface> getInterfaces() throws SocketException { List<NetworkInterface> all = new ArrayList<NetworkInterface>(); addAllInterfaces(all, Collections.list(NetworkInterface.getNetworkInterfaces())); return all; }
class class_name[name] begin[{] method[getInterfaces, return_type[type[List]], modifier[static], parameter[]] begin[{] local_variable[type[List], all] call[.addAllInterfaces, parameter[member[.all], call[Collections.list, parameter[call[NetworkInterface.getNetworkInterfaces, parameter[]...
Keyword[static] identifier[List] operator[<] identifier[NetworkInterface] operator[>] identifier[getInterfaces] operator[SEP] operator[SEP] Keyword[throws] identifier[SocketException] { identifier[List] operator[<] identifier[NetworkInterface] operator[>] identifier[all] operator[=] Keyword[new] identifier[Array...
public static <T> T parseWithException(String in, Class<T> mapTo) throws ParseException { JSONParser p = new JSONParser(DEFAULT_PERMISSIVE_MODE); return p.parse(in, defaultReader.getMapper(mapTo)); }
class class_name[name] begin[{] method[parseWithException, return_type[type[T]], modifier[public static], parameter[in, mapTo]] begin[{] local_variable[type[JSONParser], p] return[call[p.parse, parameter[member[.in], call[defaultReader.getMapper, parameter[member[.mapTo]]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[parseWithException] operator[SEP] identifier[String] identifier[in] , identifier[Class] operator[<] identifier[T] operator[>] identifier[mapTo] operator[SEP] Keyword[throws] identifier[ParseException] { identifier[JSO...
public static Long getLong(Config config, String path, Long def) { if (config.hasPath(path)) { return Long.valueOf(config.getLong(path)); } return def; }
class class_name[name] begin[{] method[getLong, return_type[type[Long]], modifier[public static], parameter[config, path, def]] begin[{] if[call[config.hasPath, parameter[member[.path]]]] begin[{] return[call[Long.valueOf, parameter[call[config.getLong, parameter[member[.path]]]]]] ...
Keyword[public] Keyword[static] identifier[Long] identifier[getLong] operator[SEP] identifier[Config] identifier[config] , identifier[String] identifier[path] , identifier[Long] identifier[def] operator[SEP] { Keyword[if] operator[SEP] identifier[config] operator[SEP] identifier[hasPath] operator[SEP] identifi...
private Instance readDenseInstanceSparse() { //Returns a dense instance Instance instance = newDenseInstance(this.instanceInformation.numAttributes()); //System.out.println(this.instanceInformation.numAttributes()); int numAttribute; try { //while (streamTokenizer.tty...
class class_name[name] begin[{] method[readDenseInstanceSparse, return_type[type[Instance]], modifier[private], parameter[]] begin[{] local_variable[type[Instance], instance] local_variable[type[int], numAttribute] TryStatement(block=[StatementExpression(expression=MethodInvocation(argu...
Keyword[private] identifier[Instance] identifier[readDenseInstanceSparse] operator[SEP] operator[SEP] { identifier[Instance] identifier[instance] operator[=] identifier[newDenseInstance] operator[SEP] Keyword[this] operator[SEP] identifier[instanceInformation] operator[SEP] identifier[numAttributes] operator[SEP...
@Override @Pure public int indexOf(Object obj) { if (this.clazz.isInstance(obj)) { return this.grid.indexOf(this.clazz.cast(obj)); } return -1; }
class class_name[name] begin[{] method[indexOf, return_type[type[int]], modifier[public], parameter[obj]] begin[{] if[THIS[member[None.clazz]call[None.isInstance, parameter[member[.obj]]]]] begin[{] return[THIS[member[None.grid]call[None.indexOf, parameter[THIS[member[None.clazz]cal...
annotation[@] identifier[Override] annotation[@] identifier[Pure] Keyword[public] Keyword[int] identifier[indexOf] operator[SEP] identifier[Object] identifier[obj] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[clazz] operator[SEP] identifier[isInstance] operator[SEP] identifier...
@Override public List<Option> getCommandLineOptions() { final List<Option> ret = new LinkedList<Option>(); String help; help = TIME_HELP; ret.add(new Option(SHORT_OPT_TIME, LONG_OPT_TIME, false, help)); help = WARNINGS_AS_ERRORS; ret.add(new Option(null, LONG_OPT_P...
class class_name[name] begin[{] method[getCommandLineOptions, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], ret] local_variable[type[String], help] assign[member[.help], member[.TIME_HELP]] call[ret.add, parameter[Cla...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[Option] operator[>] identifier[getCommandLineOptions] operator[SEP] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[Option] operator[>] identifier[ret] operator[=] Keyword[new] identifier[LinkedList]...
public GeneratorSetBuilder generator( String functionName, ITestCaseGenerator generator) { generatorSet_.addGenerator( functionName, generator); return this; }
class class_name[name] begin[{] method[generator, return_type[type[GeneratorSetBuilder]], modifier[public], parameter[functionName, generator]] begin[{] call[generatorSet_.addGenerator, parameter[member[.functionName], member[.generator]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[GeneratorSetBuilder] identifier[generator] operator[SEP] identifier[String] identifier[functionName] , identifier[ITestCaseGenerator] identifier[generator] operator[SEP] { identifier[generatorSet_] operator[SEP] identifier[addGenerator] operator[SEP] identifier[functionName] , identi...
protected @Nonnull <T> Provider<T> getBeanProvider(@Nullable BeanResolutionContext resolutionContext, @Nonnull Class<T> beanType, @Nullable Qualifier<T> qualifier) { ArgumentUtils.requireNonNull("beanType", beanType); @SuppressWarnings("unchecked") BeanRegistration<T> beanRegistration = singletonObjects...
class class_name[name] begin[{] method[getBeanProvider, return_type[type[Provider]], modifier[protected], parameter[resolutionContext, beanType, qualifier]] begin[{] call[ArgumentUtils.requireNonNull, parameter[literal["beanType"], member[.beanType]]] local_variable[type[BeanRegistratio...
Keyword[protected] annotation[@] identifier[Nonnull] operator[<] identifier[T] operator[>] identifier[Provider] operator[<] identifier[T] operator[>] identifier[getBeanProvider] operator[SEP] annotation[@] identifier[Nullable] identifier[BeanResolutionContext] identifier[resolutionContext] , annotation[@] identifier[N...
protected void refreshFromSystem() { try { // Re-read and re-register all of the namespaces ... SessionCache systemCache = repository.createSystemSession(repository.context(), false); SystemContent system = new SystemContent(systemCache); CachedNode locks = system...
class class_name[name] begin[{] method[refreshFromSystem, return_type[void], modifier[protected], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], memb...
Keyword[protected] Keyword[void] identifier[refreshFromSystem] operator[SEP] operator[SEP] { Keyword[try] { identifier[SessionCache] identifier[systemCache] operator[=] identifier[repository] operator[SEP] identifier[createSystemSession] operator[SEP] identifier[repository] operator[SEP] identifier[co...
private void removeEntryFromAuthCacheForUser(HttpServletRequest req, HttpServletResponse res) { getAuthCacheService(); if (authCacheService == null) { return; } String user = req.getRemoteUser(); if (user == null) { Principal p = req.getUserPrincipal(); ...
class class_name[name] begin[{] method[removeEntryFromAuthCacheForUser, return_type[void], modifier[private], parameter[req, res]] begin[{] call[.getAuthCacheService, parameter[]] if[binary_operation[member[.authCacheService], ==, literal[null]]] begin[{] return[None...
Keyword[private] Keyword[void] identifier[removeEntryFromAuthCacheForUser] operator[SEP] identifier[HttpServletRequest] identifier[req] , identifier[HttpServletResponse] identifier[res] operator[SEP] { identifier[getAuthCacheService] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier...
@Override public void reset(final long mNodeKey) { super.reset(mNodeKey); if (mSeq != null) { for (AbsAxis ax : mSeq) { ax.reset(mNodeKey); } } mCurrent = null; mNum = 0; }
class class_name[name] begin[{] method[reset, return_type[void], modifier[public], parameter[mNodeKey]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=mNodeKey, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=reset, postfix_operators=[], prefix_op...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[reset] operator[SEP] Keyword[final] Keyword[long] identifier[mNodeKey] operator[SEP] { Keyword[super] operator[SEP] identifier[reset] operator[SEP] identifier[mNodeKey] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[mSe...
@Override public SetCognitoEventsResult setCognitoEvents(SetCognitoEventsRequest request) { request = beforeClientExecution(request); return executeSetCognitoEvents(request); }
class class_name[name] begin[{] method[setCognitoEvents, return_type[type[SetCognitoEventsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeSetCognitoEvents, parameter[member[....
annotation[@] identifier[Override] Keyword[public] identifier[SetCognitoEventsResult] identifier[setCognitoEvents] operator[SEP] identifier[SetCognitoEventsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP...
public float toFloat(float defaultValue) { try { return Float.parseFloat(sb.toString()); } catch (java.lang.NumberFormatException e) { } return defaultValue; }
class class_name[name] begin[{] method[toFloat, return_type[type[float]], modifier[public], parameter[defaultValue]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=s...
Keyword[public] Keyword[float] identifier[toFloat] operator[SEP] Keyword[float] identifier[defaultValue] operator[SEP] { Keyword[try] { Keyword[return] identifier[Float] operator[SEP] identifier[parseFloat] operator[SEP] identifier[sb] operator[SEP] identifier[toString] operator[SEP] operator[SEP] ope...
public void preInvoke( InterceptorContext context, InterceptorChain chain ) throws InterceptorException { preRequest( ( RequestInterceptorContext ) context, chain ); }
class class_name[name] begin[{] method[preInvoke, return_type[void], modifier[public], parameter[context, chain]] begin[{] call[.preRequest, parameter[Cast(expression=MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(argumen...
Keyword[public] Keyword[void] identifier[preInvoke] operator[SEP] identifier[InterceptorContext] identifier[context] , identifier[InterceptorChain] identifier[chain] operator[SEP] Keyword[throws] identifier[InterceptorException] { identifier[preRequest] operator[SEP] operator[SEP] identifier[RequestInterceptorC...
@DoesServiceRequest public void upload(final InputStream sourceStream, final long length, final AccessCondition accessCondition, FileRequestOptions options, OperationContext opContext) throws StorageException, IOException, URISyntaxException { if (opContext == null) { opContext = new...
class class_name[name] begin[{] method[upload, return_type[void], modifier[public], parameter[sourceStream, length, accessCondition, options, opContext]] begin[{] if[binary_operation[member[.opContext], ==, literal[null]]] begin[{] assign[member[.opContext], ClassCreator...
annotation[@] identifier[DoesServiceRequest] Keyword[public] Keyword[void] identifier[upload] operator[SEP] Keyword[final] identifier[InputStream] identifier[sourceStream] , Keyword[final] Keyword[long] identifier[length] , Keyword[final] identifier[AccessCondition] identifier[accessCondition] , identifier[FileReque...
private SuppressionInfo updateSuppressions(Tree tree, VisitorState state) { SuppressionInfo prevSuppressionInfo = currentSuppressions; if (tree instanceof CompilationUnitTree) { currentSuppressions = currentSuppressions.forCompilationUnit((CompilationUnitTree) tree, state); } else { Sy...
class class_name[name] begin[{] method[updateSuppressions, return_type[type[SuppressionInfo]], modifier[private], parameter[tree, state]] begin[{] local_variable[type[SuppressionInfo], prevSuppressionInfo] if[binary_operation[member[.tree], instanceof, type[CompilationUnitTree]]] begin[...
Keyword[private] identifier[SuppressionInfo] identifier[updateSuppressions] operator[SEP] identifier[Tree] identifier[tree] , identifier[VisitorState] identifier[state] operator[SEP] { identifier[SuppressionInfo] identifier[prevSuppressionInfo] operator[=] identifier[currentSuppressions] operator[SEP] Keyword[i...
@Implementation(minSdk = P) protected static long nativeAssetSeek(long asset_ptr, long offset, int whence) { return ShadowArscAssetManager9.nativeAssetSeek(asset_ptr, offset, whence); }
class class_name[name] begin[{] method[nativeAssetSeek, return_type[type[long]], modifier[static protected], parameter[asset_ptr, offset, whence]] begin[{] return[call[ShadowArscAssetManager9.nativeAssetSeek, parameter[member[.asset_ptr], member[.offset], member[.whence]]]] end[}] END[}]
annotation[@] identifier[Implementation] operator[SEP] identifier[minSdk] operator[=] identifier[P] operator[SEP] Keyword[protected] Keyword[static] Keyword[long] identifier[nativeAssetSeek] operator[SEP] Keyword[long] identifier[asset_ptr] , Keyword[long] identifier[offset] , Keyword[int] identifier[whence] operator...
protected void doWarning (int level, int minutes) { _rebootSoon = (level > -1); int[] warnings = getWarnings(); if (level == warnings.length) { if (checkLocks()) { return; } // that's it! do the reboot log.info("Performing aut...
class class_name[name] begin[{] method[doWarning, return_type[void], modifier[protected], parameter[level, minutes]] begin[{] assign[member[._rebootSoon], binary_operation[member[.level], >, literal[1]]] local_variable[type[int], warnings] if[binary_operation[member[.lev...
Keyword[protected] Keyword[void] identifier[doWarning] operator[SEP] Keyword[int] identifier[level] , Keyword[int] identifier[minutes] operator[SEP] { identifier[_rebootSoon] operator[=] operator[SEP] identifier[level] operator[>] operator[-] Other[1] operator[SEP] operator[SEP] Keyword[int] operator[SEP] opera...
public static void sortMenu(BaseComponent parent, int startIndex, int endIndex) { List<BaseComponent> items = parent.getChildren(); int bottom = startIndex + 1; for (int i = startIndex; i < endIndex;) { BaseComponent item1 = items.get(i++); BaseComponent item2 = items.ge...
class class_name[name] begin[{] method[sortMenu, return_type[void], modifier[public static], parameter[parent, startIndex, endIndex]] begin[{] local_variable[type[List], items] local_variable[type[int], bottom] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclar...
Keyword[public] Keyword[static] Keyword[void] identifier[sortMenu] operator[SEP] identifier[BaseComponent] identifier[parent] , Keyword[int] identifier[startIndex] , Keyword[int] identifier[endIndex] operator[SEP] { identifier[List] operator[<] identifier[BaseComponent] operator[>] identifier[items] operator[=...
protected Object[] extractHeaderNamesAndValues(String headersMap, String rowDelimiter, String columnDelimiter) throws Exception { String[] rows = headersMap.split(Pattern.quote(rowDelimiter)); ArrayList<String> headerNames = new ArrayList<>(); ArrayList<String> headerValues = new Arr...
class class_name[name] begin[{] method[extractHeaderNamesAndValues, return_type[type[Object]], modifier[protected], parameter[headersMap, rowDelimiter, columnDelimiter]] begin[{] local_variable[type[String], rows] local_variable[type[ArrayList], headerNames] local_variable[type[ArrayLis...
Keyword[protected] identifier[Object] operator[SEP] operator[SEP] identifier[extractHeaderNamesAndValues] operator[SEP] identifier[String] identifier[headersMap] , identifier[String] identifier[rowDelimiter] , identifier[String] identifier[columnDelimiter] operator[SEP] Keyword[throws] identifier[Exception] { ...
protected final PrcSubaccountLineCreate<RS> createPutPrcSubaccountLineCreate( final Map<String, Object> pAddParam) throws Exception { PrcSubaccountLineCreate<RS> proc = new PrcSubaccountLineCreate<RS>(); @SuppressWarnings("unchecked") IEntityProcessor<SubaccountLine, Long> procDlg = (IEntity...
class class_name[name] begin[{] method[createPutPrcSubaccountLineCreate, return_type[type[PrcSubaccountLineCreate]], modifier[final protected], parameter[pAddParam]] begin[{] local_variable[type[PrcSubaccountLineCreate], proc] local_variable[type[IEntityProcessor], procDlg] call...
Keyword[protected] Keyword[final] identifier[PrcSubaccountLineCreate] operator[<] identifier[RS] operator[>] identifier[createPutPrcSubaccountLineCreate] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[pAddParam] operator[SEP] Keyword[throws] iden...
public static int randInt(int min, int max) { // NOTE: Usually this should be a field rather than a method // variable so that it is not re-seeded every call. Random rand = new Random(); // nextInt is normally exclusive of the top value, // so add 1 to make it inclusive ...
class class_name[name] begin[{] method[randInt, return_type[type[int]], modifier[public static], parameter[min, max]] begin[{] local_variable[type[Random], rand] local_variable[type[int], randomNum] return[member[.randomNum]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[int] identifier[randInt] operator[SEP] Keyword[int] identifier[min] , Keyword[int] identifier[max] operator[SEP] { identifier[Random] identifier[rand] operator[=] Keyword[new] identifier[Random] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[randomNum] ...
@Override public List<CPDisplayLayout> findAll() { return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
class class_name[name] begin[{] method[findAll, return_type[type[List]], modifier[public], parameter[]] begin[{] return[call[.findAll, parameter[member[QueryUtil.ALL_POS], member[QueryUtil.ALL_POS], literal[null]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CPDisplayLayout] operator[>] identifier[findAll] operator[SEP] operator[SEP] { Keyword[return] identifier[findAll] operator[SEP] identifier[QueryUtil] operator[SEP] identifier[ALL_POS] , identifier[QueryUtil] operator[SEP...
public final int compareTo(String string) { return getID().length() >= string.length() ? getID().compareToIgnoreCase(string) : getID().compareToIgnoreCase( string.substring(0, getID().length())); }
class class_name[name] begin[{] method[compareTo, return_type[type[int]], modifier[final public], parameter[string]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getID, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[Method...
Keyword[public] Keyword[final] Keyword[int] identifier[compareTo] operator[SEP] identifier[String] identifier[string] operator[SEP] { Keyword[return] identifier[getID] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>=] identifier[string] operator[SEP] identifier...
public static boolean isValidName(String name) { return name != null && name.length() > 1 && name.charAt(0) == CommonDefs.ALIAS_FIRST_CHAR && Utils.allAlphaNumUnderscore(name.substring(1)); }
class class_name[name] begin[{] method[isValidName, return_type[type[boolean]], modifier[public static], parameter[name]] begin[{] return[binary_operation[binary_operation[binary_operation[binary_operation[member[.name], !=, literal[null]], &&, binary_operation[call[name.length, parameter[]], >, litera...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isValidName] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[return] identifier[name] operator[!=] Other[null] operator[&&] identifier[name] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[1] oper...
public int setString(String strField, boolean bDisplayOption, int iMoveMode) // init this field override for other value { int iFieldLength = 0; Object objTempBinary = null; if (strField != null) { iFieldLength = strField.length(); int iMaxLeng...
class class_name[name] begin[{] method[setString, return_type[type[int]], modifier[public], parameter[strField, bDisplayOption, iMoveMode]] begin[{] local_variable[type[int], iFieldLength] local_variable[type[Object], objTempBinary] if[binary_operation[member[.strField], !=, lit...
Keyword[public] Keyword[int] identifier[setString] operator[SEP] identifier[String] identifier[strField] , Keyword[boolean] identifier[bDisplayOption] , Keyword[int] identifier[iMoveMode] operator[SEP] { Keyword[int] identifier[iFieldLength] operator[=] Other[0] operator[SEP] identifier[Object] identifier[objT...
public static <S extends Enum<S>> S getSystemPropertyAsEnum(Class<S> type, String name) { return getSystemPropertyAsEnum(type, name, null); }
class class_name[name] begin[{] method[getSystemPropertyAsEnum, return_type[type[S]], modifier[public static], parameter[type, name]] begin[{] return[call[.getSystemPropertyAsEnum, parameter[member[.type], member[.name], literal[null]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[S] Keyword[extends] identifier[Enum] operator[<] identifier[S] operator[>] operator[>] identifier[S] identifier[getSystemPropertyAsEnum] operator[SEP] identifier[Class] operator[<] identifier[S] operator[>] identifier[type] , identifier[String] identifier[name] op...
public static FastCharArrayWriter copy(final InputStream input, final String encoding, final int count) throws IOException { try (FastCharArrayWriter output = createFastCharArrayWriter()) { copy(input, output, encoding, count); return output; } }
class class_name[name] begin[{] method[copy, return_type[type[FastCharArrayWriter]], modifier[public static], parameter[input, encoding, count]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[...
Keyword[public] Keyword[static] identifier[FastCharArrayWriter] identifier[copy] operator[SEP] Keyword[final] identifier[InputStream] identifier[input] , Keyword[final] identifier[String] identifier[encoding] , Keyword[final] Keyword[int] identifier[count] operator[SEP] Keyword[throws] identifier[IOException] { ...
public static Expression decodeJson(JsonObject json) { char[] encoded = JsonStringEncoder.getInstance().quoteAsString(json.toString()); return x("DECODE_JSON(\"" + new String(encoded) + "\")"); }
class class_name[name] begin[{] method[decodeJson, return_type[type[Expression]], modifier[public static], parameter[json]] begin[{] local_variable[type[char], encoded] return[call[.x, parameter[binary_operation[binary_operation[literal["DECODE_JSON(\""], +, ClassCreator(arguments=[MemberRefere...
Keyword[public] Keyword[static] identifier[Expression] identifier[decodeJson] operator[SEP] identifier[JsonObject] identifier[json] operator[SEP] { Keyword[char] operator[SEP] operator[SEP] identifier[encoded] operator[=] identifier[JsonStringEncoder] operator[SEP] identifier[getInstance] operator[SEP] operator[...
private void ensureElementFormatter(CmsResource resource, HttpServletRequest req) { CmsJspStandardContextBean contextBean = CmsJspStandardContextBean.getInstance(req); CmsContainerElementBean element = contextBean.getElement(); if (!resource.getStructureId().equals(element.getFormatterId())) { ...
class class_name[name] begin[{] method[ensureElementFormatter, return_type[void], modifier[private], parameter[resource, req]] begin[{] local_variable[type[CmsJspStandardContextBean], contextBean] local_variable[type[CmsContainerElementBean], element] if[call[resource.getStructu...
Keyword[private] Keyword[void] identifier[ensureElementFormatter] operator[SEP] identifier[CmsResource] identifier[resource] , identifier[HttpServletRequest] identifier[req] operator[SEP] { identifier[CmsJspStandardContextBean] identifier[contextBean] operator[=] identifier[CmsJspStandardContextBean] operator[S...
static boolean makeDirectories(final File dirToMake) { try { Boolean result = getInstance().doPrivileged( new PrivilegedAction<Boolean>() { public Boolean run() { return Boolean.valueOf(dirToMake.mkdirs()); } } ); return result.booleanVal...
class class_name[name] begin[{] method[makeDirectories, return_type[type[boolean]], modifier[static], parameter[dirToMake]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getInstance,...
Keyword[static] Keyword[boolean] identifier[makeDirectories] operator[SEP] Keyword[final] identifier[File] identifier[dirToMake] operator[SEP] { Keyword[try] { identifier[Boolean] identifier[result] operator[=] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[doPrivileged] ...
@Exported public YesNoMaybe supportsDynamicLoad() { String v = manifest.getMainAttributes().getValue("Support-Dynamic-Loading"); if (v==null) return YesNoMaybe.MAYBE; return Boolean.parseBoolean(v) ? YesNoMaybe.YES : YesNoMaybe.NO; }
class class_name[name] begin[{] method[supportsDynamicLoad, return_type[type[YesNoMaybe]], modifier[public], parameter[]] begin[{] local_variable[type[String], v] if[binary_operation[member[.v], ==, literal[null]]] begin[{] return[member[YesNoMaybe.MAYBE]] else begin[{] None ...
annotation[@] identifier[Exported] Keyword[public] identifier[YesNoMaybe] identifier[supportsDynamicLoad] operator[SEP] operator[SEP] { identifier[String] identifier[v] operator[=] identifier[manifest] operator[SEP] identifier[getMainAttributes] operator[SEP] operator[SEP] operator[SEP] identifier[getValue] oper...
@Override public boolean enableImmediateResponseRead() { if (headersSent()) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Request hdrs already sent, too late for immediate read"); } return false; } if (T...
class class_name[name] begin[{] method[enableImmediateResponseRead, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[call[.headersSent, parameter[]]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isD...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[enableImmediateResponseRead] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[headersSent] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] ide...
public void setAdditionalInfoVisible(boolean visible) { if (m_openClose == null) { return; } if (visible) { addStyleName(CmsListItemWidget.OPENCLASS); m_openClose.setDown(true); OpenEvent.fire(this, this); } else { removeStyleN...
class class_name[name] begin[{] method[setAdditionalInfoVisible, return_type[void], modifier[public], parameter[visible]] begin[{] if[binary_operation[member[.m_openClose], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] if[member[...
Keyword[public] Keyword[void] identifier[setAdditionalInfoVisible] operator[SEP] Keyword[boolean] identifier[visible] operator[SEP] { Keyword[if] operator[SEP] identifier[m_openClose] operator[==] Other[null] operator[SEP] { Keyword[return] operator[SEP] } Keyword[if] operator[SEP] ident...
public String submitExtra (String name, String text, String extra) { return fixedInput("submit", name, text, extra); }
class class_name[name] begin[{] method[submitExtra, return_type[type[String]], modifier[public], parameter[name, text, extra]] begin[{] return[call[.fixedInput, parameter[literal["submit"], member[.name], member[.text], member[.extra]]]] end[}] END[}]
Keyword[public] identifier[String] identifier[submitExtra] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[text] , identifier[String] identifier[extra] operator[SEP] { Keyword[return] identifier[fixedInput] operator[SEP] literal[String] , identifier[name] , identifier[text] ...
protected String sha1( File file ) { try { if (contentBasedSha1()) { byte[] hash = SecureHash.getHash(SecureHash.Algorithm.SHA_1, file); return StringUtil.getHexString(hash); } return SecureHash.sha1(createUrlForFile(file).toString()); ...
class class_name[name] begin[{] method[sha1, return_type[type[String]], modifier[protected], parameter[file]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=contentBasedSha1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=No...
Keyword[protected] identifier[String] identifier[sha1] operator[SEP] identifier[File] identifier[file] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[contentBasedSha1] operator[SEP] operator[SEP] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[h...
public Corners getImageCorners( int width , int height , Corners corners ) { if( corners == null ) corners = new Corners(); int w = width; int h = height; tranCurrToWorld.compute(0,0,work); corners.p0.set(work.x, work.y); tranCurrToWorld.compute(w,0,work); corners.p1.set(work.x, work.y); tranCurrTo...
class class_name[name] begin[{] method[getImageCorners, return_type[type[Corners]], modifier[public], parameter[width, height, corners]] begin[{] if[binary_operation[member[.corners], ==, literal[null]]] begin[{] assign[member[.corners], ClassCreator(arguments=[], body=None, constru...
Keyword[public] identifier[Corners] identifier[getImageCorners] operator[SEP] Keyword[int] identifier[width] , Keyword[int] identifier[height] , identifier[Corners] identifier[corners] operator[SEP] { Keyword[if] operator[SEP] identifier[corners] operator[==] Other[null] operator[SEP] identifier[corners] opera...
private static void par_ief(CompList<?> t, int numproc) throws Exception { if (numproc < 1) { throw new IllegalArgumentException("numproc"); } final CountDownLatch latch = new CountDownLatch(t.list().size()); // final ExecutorService e = Executors.newFixedThreadPool(numproc); ...
class class_name[name] begin[{] method[par_ief, return_type[void], modifier[private static], parameter[t, numproc]] begin[{] if[binary_operation[member[.numproc], <, literal[1]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operator...
Keyword[private] Keyword[static] Keyword[void] identifier[par_ief] operator[SEP] identifier[CompList] operator[<] operator[?] operator[>] identifier[t] , Keyword[int] identifier[numproc] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] identifier[numproc] operator[<] Other[1] oper...
private <O> void setValue(Map<String, O> nameValueMap, String name, O value) { checkForNull(name, value); nameValueMap.put(name, value); }
class class_name[name] begin[{] method[setValue, return_type[void], modifier[private], parameter[nameValueMap, name, value]] begin[{] call[.checkForNull, parameter[member[.name], member[.value]]] call[nameValueMap.put, parameter[member[.name], member[.value]]] end[}] END[}]
Keyword[private] operator[<] identifier[O] operator[>] Keyword[void] identifier[setValue] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[O] operator[>] identifier[nameValueMap] , identifier[String] identifier[name] , identifier[O] identifier[value] operator[SEP] { identifier[checkFo...
public static double choose(int n, int k) { if (n < 0 || k < 0) { throw new IllegalArgumentException(String.format("Invalid n = %d, k = %d", n, k)); } if (n < k) { return 0.0; } return Math.floor(0.5 + Math.exp(logChoose(n, k))); }
class class_name[name] begin[{] method[choose, return_type[type[double]], modifier[public static], parameter[n, k]] begin[{] if[binary_operation[binary_operation[member[.n], <, literal[0]], ||, binary_operation[member[.k], <, literal[0]]]] begin[{] ThrowStatement(expression=ClassCre...
Keyword[public] Keyword[static] Keyword[double] identifier[choose] operator[SEP] Keyword[int] identifier[n] , Keyword[int] identifier[k] operator[SEP] { Keyword[if] operator[SEP] identifier[n] operator[<] Other[0] operator[||] identifier[k] operator[<] Other[0] operator[SEP] { Keyword[throw] Keyword[...
public void marshall(CreateHttpNamespaceRequest createHttpNamespaceRequest, ProtocolMarshaller protocolMarshaller) { if (createHttpNamespaceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(c...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[createHttpNamespaceRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.createHttpNamespaceRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argu...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[CreateHttpNamespaceRequest] identifier[createHttpNamespaceRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[createHttpNamespaceRequest] operator[==] Other[null]...
public void setResourceAdaptorContext(ResourceAdaptorContext raContext) { this.resourceAdaptorContext = raContext; tracer = raContext.getTracer(HttpServletResourceAdaptor.class.getSimpleName()); eventIdCache = new EventIDCache(raContext.getTracer(EventIDCache.class.getSimpleName())); ...
class class_name[name] begin[{] method[setResourceAdaptorContext, return_type[void], modifier[public], parameter[raContext]] begin[{] assign[THIS[member[None.resourceAdaptorContext]], member[.raContext]] assign[member[.tracer], call[raContext.getTracer, parameter[ClassReference(...
Keyword[public] Keyword[void] identifier[setResourceAdaptorContext] operator[SEP] identifier[ResourceAdaptorContext] identifier[raContext] operator[SEP] { Keyword[this] operator[SEP] identifier[resourceAdaptorContext] operator[=] identifier[raContext] operator[SEP] identifier[tracer] operator[=] identifier[raCon...
public String[][] getPopupMap() { String string[][] = { {DBParams.MENU, "menu"}, {DBParams.SCREEN, "screen"}, {DBParams.RECORD, "record"}, {DBParams.LINK, "link"}, {MenuConstants.GRID, "grid"}, {MenuConstants.FORM, "form"}, ...
class class_name[name] begin[{] method[getPopupMap, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[String], string] return[member[.string]] end[}] END[}]
Keyword[public] identifier[String] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[getPopupMap] operator[SEP] operator[SEP] { identifier[String] identifier[string] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[=] { { identifier[DBParams] operator[SE...
public ResultMap getResultMap(Configuration configuration) { if (this.resultMap != null) { return this.resultMap; } if (entityClassColumns == null || entityClassColumns.size() == 0) { return null; } List<ResultMapping> resultMappings = new ArrayList<Result...
class class_name[name] begin[{] method[getResultMap, return_type[type[ResultMap]], modifier[public], parameter[configuration]] begin[{] if[binary_operation[THIS[member[None.resultMap]], !=, literal[null]]] begin[{] return[THIS[member[None.resultMap]]] else begin[{] None ...
Keyword[public] identifier[ResultMap] identifier[getResultMap] operator[SEP] identifier[Configuration] identifier[configuration] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[resultMap] operator[!=] Other[null] operator[SEP] { Keyword[return] Keyword[this] operator[S...
protected void onValidMarkup(AppendingStringBuffer responseBuffer, ValidationReport report) { IRequestablePage responsePage = getResponsePage(); DocType doctype = getDocType(responseBuffer); log.info("Markup for {} is valid {}", responsePage != null ? responsePage.getClass().getName() : "<unable to ...
class class_name[name] begin[{] method[onValidMarkup, return_type[void], modifier[protected], parameter[responseBuffer, report]] begin[{] local_variable[type[IRequestablePage], responsePage] local_variable[type[DocType], doctype] call[log.info, parameter[literal["Markup for {} i...
Keyword[protected] Keyword[void] identifier[onValidMarkup] operator[SEP] identifier[AppendingStringBuffer] identifier[responseBuffer] , identifier[ValidationReport] identifier[report] operator[SEP] { identifier[IRequestablePage] identifier[responsePage] operator[=] identifier[getResponsePage] operator[SEP] oper...
public void addTangoUserListener(ITangoUserListener listener, String attrName, String[] filters) throws DevFailed { addTangoUserListener(listener, attrName, filters, false); }
class class_name[name] begin[{] method[addTangoUserListener, return_type[void], modifier[public], parameter[listener, attrName, filters]] begin[{] call[.addTangoUserListener, parameter[member[.listener], member[.attrName], member[.filters], literal[false]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addTangoUserListener] operator[SEP] identifier[ITangoUserListener] identifier[listener] , identifier[String] identifier[attrName] , identifier[String] operator[SEP] operator[SEP] identifier[filters] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[addTan...
public final Script compileString(String source, String sourceName, int lineno, Object securityDomain) { if (lineno < 0) { // For compatibility IllegalArgumentException can not be thrown here lineno = 0; ...
class class_name[name] begin[{] method[compileString, return_type[type[Script]], modifier[final public], parameter[source, sourceName, lineno, securityDomain]] begin[{] if[binary_operation[member[.lineno], <, literal[0]]] begin[{] assign[member[.lineno], literal[0]] ...
Keyword[public] Keyword[final] identifier[Script] identifier[compileString] operator[SEP] identifier[String] identifier[source] , identifier[String] identifier[sourceName] , Keyword[int] identifier[lineno] , identifier[Object] identifier[securityDomain] operator[SEP] { Keyword[if] operator[SEP] identifier[lin...
public void addInvitationListener(WorkgroupInvitationListener invitationListener) { synchronized (invitationListeners) { if (!invitationListeners.contains(invitationListener)) { invitationListeners.add(invitationListener); } } }
class class_name[name] begin[{] method[addInvitationListener, return_type[void], modifier[public], parameter[invitationListener]] begin[{] SYNCHRONIZED[member[.invitationListeners]] BEGIN[{] if[call[invitationListeners.contains, parameter[member[.invitationListener]]]] b...
Keyword[public] Keyword[void] identifier[addInvitationListener] operator[SEP] identifier[WorkgroupInvitationListener] identifier[invitationListener] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[invitationListeners] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[invi...
public static <T> Id<T> newId(final TypeToken<T> type, final Annotation annotation) { return (Id<T>) Ids.newId(type.getType(), annotation); }
class class_name[name] begin[{] method[newId, return_type[type[Id]], modifier[public static], parameter[type, annotation]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getType, postfix_operators=[], prefix_operators=[], qualifier=type, selectors=[], ...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Id] operator[<] identifier[T] operator[>] identifier[newId] operator[SEP] Keyword[final] identifier[TypeToken] operator[<] identifier[T] operator[>] identifier[type] , Keyword[final] identifier[Annotation] identifier[annotation] operator[...
public void animate(float animationTime, Matrix4f mat) { mRotInterpolator.animate(animationTime, mRotKey); mPosInterpolator.animate(animationTime, mPosKey); mSclInterpolator.animate(animationTime, mScaleKey); mat.translationRotateScale(mPosKey[0], mPosKey[1], mPosKey[2], mRotKey[0], ...
class class_name[name] begin[{] method[animate, return_type[void], modifier[public], parameter[animationTime, mat]] begin[{] call[mRotInterpolator.animate, parameter[member[.animationTime], member[.mRotKey]]] call[mPosInterpolator.animate, parameter[member[.animationTime], membe...
Keyword[public] Keyword[void] identifier[animate] operator[SEP] Keyword[float] identifier[animationTime] , identifier[Matrix4f] identifier[mat] operator[SEP] { identifier[mRotInterpolator] operator[SEP] identifier[animate] operator[SEP] identifier[animationTime] , identifier[mRotKey] operator[SEP] operator[SEP...
public PoolGetHeaders 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[PoolGetHeaders]], modifier[public], parameter[lastModified]] begin[{] if[binary_operation[member[.lastModified], ==, literal[null]]] begin[{] assign[THIS[member[None.lastModified]], literal[null]] ...
Keyword[public] identifier[PoolGetHeaders] 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[lastModified] operator[...
public static Date getDate(Map<String, Object> map, String key, String dateTimeFormat) { Object obj = map.get(key); return obj instanceof Number ? new Date(((Number) obj).longValue()) : (obj instanceof String ? DateFormatUtils.fromString(obj.toString(), dateTimeFo...
class class_name[name] begin[{] method[getDate, return_type[type[Date]], modifier[public static], parameter[map, key, dateTimeFormat]] begin[{] local_variable[type[Object], obj] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=obj, postfix_operators=[], prefix_...
Keyword[public] Keyword[static] identifier[Date] identifier[getDate] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[map] , identifier[String] identifier[key] , identifier[String] identifier[dateTimeFormat] operator[SEP] { identifier[Object] identifier[...
private void processFunction(final Expression expression, final FunctionDescriptor od, RulesTextProvider textProvider) throws ParserException { log.debug("processFunction"); if (!exact("(",textProvider)) throw new ParserException("Expected ')' after '"+od.getName()+"': ",textProvider); Class<?> args[] = od...
class class_name[name] begin[{] method[processFunction, return_type[void], modifier[private], parameter[expression, od, textProvider]] begin[{] call[log.debug, parameter[literal["processFunction"]]] if[call[.exact, parameter[literal["("], member[.textProvider]]]] begin[{] ThrowS...
Keyword[private] Keyword[void] identifier[processFunction] operator[SEP] Keyword[final] identifier[Expression] identifier[expression] , Keyword[final] identifier[FunctionDescriptor] identifier[od] , identifier[RulesTextProvider] identifier[textProvider] operator[SEP] Keyword[throws] identifier[ParserException] { ...
public static void logCSV(String csvData, final Logger log) { log.info(""); log.info("**** Here we go with CSV:"); log.info(""); log.info(csvData); log.info(""); log.info("**** End of CSV data. Have a nice day!"); log.info(""); LogHelper.moo(log); }
class class_name[name] begin[{] method[logCSV, return_type[void], modifier[public static], parameter[csvData, log]] begin[{] call[log.info, parameter[literal[""]]] call[log.info, parameter[literal["**** Here we go with CSV:"]]] call[log.info, parameter[literal[""...
Keyword[public] Keyword[static] Keyword[void] identifier[logCSV] operator[SEP] identifier[String] identifier[csvData] , Keyword[final] identifier[Logger] identifier[log] operator[SEP] { identifier[log] operator[SEP] identifier[info] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[log] opera...
@Override public final void handleRequest(InputStream input, OutputStream output, Context context) throws IOException { byte[] inputBytes = IOUtils.toByteArray(input); for (AlexaSkill skill : skills) { SkillResponse response = skill.execute(new BaseSkillRequest(inputBytes), context); ...
class class_name[name] begin[{] method[handleRequest, return_type[void], modifier[final public], parameter[input, output, context]] begin[{] local_variable[type[byte], inputBytes] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Vari...
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[void] identifier[handleRequest] operator[SEP] identifier[InputStream] identifier[input] , identifier[OutputStream] identifier[output] , identifier[Context] identifier[context] operator[SEP] Keyword[throws] identifier[IOException] { Keywo...
public byte[] allocInputBuffer(int minSize) { byte[] buf = inputBuffer; if (buf == null || buf.length < minSize) { buf = new byte[Math.max(minSize, MIN_OUTPUT_BUFFER)]; } else { inputBuffer = null; } return buf; }
class class_name[name] begin[{] method[allocInputBuffer, return_type[type[byte]], modifier[public], parameter[minSize]] begin[{] local_variable[type[byte], buf] if[binary_operation[binary_operation[member[.buf], ==, literal[null]], ||, binary_operation[member[buf.length], <, member[.min...
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[allocInputBuffer] operator[SEP] Keyword[int] identifier[minSize] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[buf] operator[=] identifier[inputBuffer] operator[SEP] Keyword[if] operator[SEP] identifier[buf] operator[==] ...
public static boolean isPhoenixProcess(Context context) { int currentPid = Process.myPid(); ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); List<ActivityManager.RunningAppProcessInfo> runningProcesses = manager.getRunningAppProcesses(); if ...
class class_name[name] begin[{] method[isPhoenixProcess, return_type[type[boolean]], modifier[public static], parameter[context]] begin[{] local_variable[type[int], currentPid] local_variable[type[ActivityManager], manager] local_variable[type[List], runningProcesses] if...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isPhoenixProcess] operator[SEP] identifier[Context] identifier[context] operator[SEP] { Keyword[int] identifier[currentPid] operator[=] identifier[Process] operator[SEP] identifier[myPid] operator[SEP] operator[SEP] operator[SEP] identifier[ActivityMana...
private ExtractionInfo extractMultilineComment( JsDocToken token, WhitespaceOption option, boolean isMarker, boolean includeAnnotations) { StringBuilder builder = new StringBuilder(); int startLineno = -1; int startCharno = -1; if (isMarker) { stream.update(); startLineno = stream.ge...
class class_name[name] begin[{] method[extractMultilineComment, return_type[type[ExtractionInfo]], modifier[private], parameter[token, option, isMarker, includeAnnotations]] begin[{] local_variable[type[StringBuilder], builder] local_variable[type[int], startLineno] local_variable[type[...
Keyword[private] identifier[ExtractionInfo] identifier[extractMultilineComment] operator[SEP] identifier[JsDocToken] identifier[token] , identifier[WhitespaceOption] identifier[option] , Keyword[boolean] identifier[isMarker] , Keyword[boolean] identifier[includeAnnotations] operator[SEP] { identifier[StringBu...
@Override protected boolean canHighlight(final Component component, final ComponentAdapter adapter) { return component instanceof IconAware || component instanceof JLabel; }
class class_name[name] begin[{] method[canHighlight, return_type[type[boolean]], modifier[protected], parameter[component, adapter]] begin[{] return[binary_operation[binary_operation[member[.component], instanceof, type[IconAware]], ||, binary_operation[member[.component], instanceof, type[JLabel]]]] ...
annotation[@] identifier[Override] Keyword[protected] Keyword[boolean] identifier[canHighlight] operator[SEP] Keyword[final] identifier[Component] identifier[component] , Keyword[final] identifier[ComponentAdapter] identifier[adapter] operator[SEP] { Keyword[return] identifier[component] Keyword[instanceof] ide...
public static int decodeInteger(ByteBuffer buf) { DerId id = DerId.decode(buf); if (!id.matches(DerId.TagClass.UNIVERSAL, DerId.EncodingType.PRIMITIVE, ASN1_INTEGER_TAG_NUM)) { throw new IllegalArgumentException("Expected INTEGER identifier, received " + id); } int len = DerU...
class class_name[name] begin[{] method[decodeInteger, return_type[type[int]], modifier[public static], parameter[buf]] begin[{] local_variable[type[DerId], id] if[call[id.matches, parameter[member[DerId.TagClass.UNIVERSAL], member[DerId.EncodingType.PRIMITIVE], member[.ASN1_INTEGER_TAG_...
Keyword[public] Keyword[static] Keyword[int] identifier[decodeInteger] operator[SEP] identifier[ByteBuffer] identifier[buf] operator[SEP] { identifier[DerId] identifier[id] operator[=] identifier[DerId] operator[SEP] identifier[decode] operator[SEP] identifier[buf] operator[SEP] operator[SEP] Keyword[if] operato...
public CreateDomainResponse createDomain(CreateDomainRequest request) { checkNotNull(request, "The parameter request should NOT be null."); InternalRequest internalRequest = createRequest(request, HttpMethodName.PUT, DOMAIN, request.getDomain()); this.attachRequestToBody(request, internalRequest...
class class_name[name] begin[{] method[createDomain, return_type[type[CreateDomainResponse]], modifier[public], parameter[request]] begin[{] call[.checkNotNull, parameter[member[.request], literal["The parameter request should NOT be null."]]] local_variable[type[InternalRequest], inter...
Keyword[public] identifier[CreateDomainResponse] identifier[createDomain] operator[SEP] identifier[CreateDomainRequest] identifier[request] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[request] , literal[String] operator[SEP] operator[SEP] identifier[InternalRequest] identifier[internalRequ...
public String getPageSql(String sql, Page<?> page) { StringBuffer pageSql = new StringBuffer(sql.length() + 100); pageSql.append(getPageBefore(sql, page)); pageSql.append(sql); pageSql.append(getPageAfter(sql, page)); return pageSql.toString(); }
class class_name[name] begin[{] method[getPageSql, return_type[type[String]], modifier[public], parameter[sql, page]] begin[{] local_variable[type[StringBuffer], pageSql] call[pageSql.append, parameter[call[.getPageBefore, parameter[member[.sql], member[.page]]]]] call[p...
Keyword[public] identifier[String] identifier[getPageSql] operator[SEP] identifier[String] identifier[sql] , identifier[Page] operator[<] operator[?] operator[>] identifier[page] operator[SEP] { identifier[StringBuffer] identifier[pageSql] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] identifi...
public static <T> T executeGroovyScript(final GroovyObject groovyObject, final Object[] args, final Class<T> clazz, final boolean failOnError) { return executeGroovyScript(groovyObject, "run", args, clazz, failOnError); ...
class class_name[name] begin[{] method[executeGroovyScript, return_type[type[T]], modifier[public static], parameter[groovyObject, args, clazz, failOnError]] begin[{] return[call[.executeGroovyScript, parameter[member[.groovyObject], literal["run"], member[.args], member[.clazz], member[.failOnError]]]...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[executeGroovyScript] operator[SEP] Keyword[final] identifier[GroovyObject] identifier[groovyObject] , Keyword[final] identifier[Object] operator[SEP] operator[SEP] identifier[args] , Keyword[final] identifier[Class] operato...
public void setState(int newState) throws SystemException { if (tc.isEntryEnabled()) Tr.entry(tc, "setState", "from " + stateToString(_state) + " to " + stateToString(newState)); final int oldState = _state; // Check that the state change is valid if (validStateChange[_...
class class_name[name] begin[{] method[setState, return_type[void], modifier[public], parameter[newState]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[Tr.entry, parameter[member[.tc], literal["setState"], binary_operation[binary_operation[binary_operation[literal...
Keyword[public] Keyword[void] identifier[setState] operator[SEP] Keyword[int] identifier[newState] operator[SEP] Keyword[throws] identifier[SystemException] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] i...
public boolean hasParents(final Class<?> group) { final Set<Class<?>> possibleParents = getParentsOfGroup(group); return possibleParents != null && !possibleParents.isEmpty(); }
class class_name[name] begin[{] method[hasParents, return_type[type[boolean]], modifier[public], parameter[group]] begin[{] local_variable[type[Set], possibleParents] return[binary_operation[binary_operation[member[.possibleParents], !=, literal[null]], &&, call[possibleParents.isEmpty, paramet...
Keyword[public] Keyword[boolean] identifier[hasParents] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[group] operator[SEP] { Keyword[final] identifier[Set] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[possibleParents] ope...
private void stopSpinning() { if (pool.spinningCount.decrementAndGet() == 0) for (SEPExecutor executor : pool.executors) executor.maybeSchedule(); prevStopCheck = soleSpinnerSpinTime = 0; }
class class_name[name] begin[{] method[stopSpinning, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[call[pool.spinningCount.decrementAndGet, parameter[]], ==, literal[0]]] begin[{] ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[], m...
Keyword[private] Keyword[void] identifier[stopSpinning] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[pool] operator[SEP] identifier[spinningCount] operator[SEP] identifier[decrementAndGet] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[...
public void commit(Xid xid, boolean onePhase) throws XAException { String command = "XA COMMIT " + xidToString(xid); if (onePhase) { command += " ONE PHASE"; } execute(command); }
class class_name[name] begin[{] method[commit, return_type[void], modifier[public], parameter[xid, onePhase]] begin[{] local_variable[type[String], command] if[member[.onePhase]] begin[{] assign[member[.command], literal[" ONE PHASE"]] else begin[{] None ...
Keyword[public] Keyword[void] identifier[commit] operator[SEP] identifier[Xid] identifier[xid] , Keyword[boolean] identifier[onePhase] operator[SEP] Keyword[throws] identifier[XAException] { identifier[String] identifier[command] operator[=] literal[String] operator[+] identifier[xidToString] operator[SEP] iden...
public void overrideSetting(String name, double value) { overrides.put(name, Double.toString(value)); }
class class_name[name] begin[{] method[overrideSetting, return_type[void], modifier[public], parameter[name, value]] begin[{] call[overrides.put, parameter[member[.name], call[Double.toString, parameter[member[.value]]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[overrideSetting] operator[SEP] identifier[String] identifier[name] , Keyword[double] identifier[value] operator[SEP] { identifier[overrides] operator[SEP] identifier[put] operator[SEP] identifier[name] , identifier[Double] operator[SEP] identifier[toString] operator[SEP...
public void clearRequestSettings(int pathId, String clientUUID) throws Exception { this.setRequestEnabled(pathId, false, clientUUID); OverrideService.getInstance().disableAllOverrides(pathId, clientUUID, Constants.OVERRIDE_TYPE_REQUEST); EditService.getInstance().updateRepeatNumber(Constants.OVE...
class class_name[name] begin[{] method[clearRequestSettings, return_type[void], modifier[public], parameter[pathId, clientUUID]] begin[{] THIS[call[None.setRequestEnabled, parameter[member[.pathId], literal[false], member[.clientUUID]]]] call[OverrideService.getInstance, paramet...
Keyword[public] Keyword[void] identifier[clearRequestSettings] operator[SEP] Keyword[int] identifier[pathId] , identifier[String] identifier[clientUUID] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[this] operator[SEP] identifier[setRequestEnabled] operator[SEP] identifier[pathId] , literal[boo...
@SuppressWarnings("unchecked") @Override public EList<IfcVirtualGridIntersection> getHasIntersections() { return (EList<IfcVirtualGridIntersection>) eGet(Ifc4Package.Literals.IFC_GRID_AXIS__HAS_INTERSECTIONS, true); }
class class_name[name] begin[{] method[getHasIntersections, return_type[type[EList]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_GRID_AXIS__HAS_INTERSECTIONS, postfix_operators=[], prefix_operators=[], qualifier=Ifc4Package.Lite...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[EList] operator[<] identifier[IfcVirtualGridIntersection] operator[>] identifier[getHasIntersections] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] id...
public Observable<ServiceResponse<ImageList>> getDetailsWithServiceResponseAsync(String listId) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (listId == null) { throw new ...
class class_name[name] begin[{] method[getDetailsWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[listId]] begin[{] if[binary_operation[THIS[member[None.client]call[None.baseUrl, parameter[]]], ==, literal[null]]] begin[{] ThrowStatement(expressio...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[ImageList] operator[>] operator[>] identifier[getDetailsWithServiceResponseAsync] operator[SEP] identifier[String] identifier[listId] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identif...
private MetricsAggregationBuilder getMetricsAggregation(Expression expression, EntityMetadata entityMetadata) { AggregateFunction function = (AggregateFunction) expression; MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel( entityMetadata...
class class_name[name] begin[{] method[getMetricsAggregation, return_type[type[MetricsAggregationBuilder]], modifier[private], parameter[expression, entityMetadata]] begin[{] local_variable[type[AggregateFunction], function] local_variable[type[MetamodelImpl], metaModel] local_variable[...
Keyword[private] identifier[MetricsAggregationBuilder] identifier[getMetricsAggregation] operator[SEP] identifier[Expression] identifier[expression] , identifier[EntityMetadata] identifier[entityMetadata] operator[SEP] { identifier[AggregateFunction] identifier[function] operator[=] operator[SEP] identifier[Agg...
private DNode findFrontendNode() { DNode frontend = getNode(requirements.getFrontend()); if (frontend == DNode.NOT_FOUND) { frontend = searchFrontendNode(); if (frontend == DNode.NOT_FOUND) { frontend = calculateSourceNode(); ...
class class_name[name] begin[{] method[findFrontendNode, return_type[type[DNode]], modifier[private], parameter[]] begin[{] local_variable[type[DNode], frontend] if[binary_operation[member[.frontend], ==, member[DNode.NOT_FOUND]]] begin[{] assign[member[.frontend...
Keyword[private] identifier[DNode] identifier[findFrontendNode] operator[SEP] operator[SEP] { identifier[DNode] identifier[frontend] operator[=] identifier[getNode] operator[SEP] identifier[requirements] operator[SEP] identifier[getFrontend] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] ope...
public static boolean contains(ByteBuffer buf, int position, final short i) { final int x = toIntUnsigned(i); return (buf.getLong(x / 64 * 8 + position) & (1L << x)) != 0; }
class class_name[name] begin[{] method[contains, return_type[type[boolean]], modifier[public static], parameter[buf, position, i]] begin[{] local_variable[type[int], x] return[binary_operation[binary_operation[call[buf.getLong, parameter[binary_operation[binary_operation[binary_operation[member...
Keyword[public] Keyword[static] Keyword[boolean] identifier[contains] operator[SEP] identifier[ByteBuffer] identifier[buf] , Keyword[int] identifier[position] , Keyword[final] Keyword[short] identifier[i] operator[SEP] { Keyword[final] Keyword[int] identifier[x] operator[=] identifier[toIntUnsigned] operator[S...