code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private TimeSeriesValue interpolateTSV(GroupName name) { final Map.Entry<DateTime, TimeSeriesValue> backTSV = findName(backward, name), forwTSV = findName(forward, name); final long backMillis = max(new Duration(backTSV.getKey(), getTimestamp()).getMillis(), 0), forwMill...
class class_name[name] begin[{] method[interpolateTSV, return_type[type[TimeSeriesValue]], modifier[private], parameter[name]] begin[{] local_variable[type[Map], backTSV] local_variable[type[long], backMillis] local_variable[type[double], totalMillis] local_variable[type[double]...
Keyword[private] identifier[TimeSeriesValue] identifier[interpolateTSV] operator[SEP] identifier[GroupName] identifier[name] operator[SEP] { Keyword[final] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[DateTime] , identifier[TimeSeriesValue] operator[>] identifier[backTSV] operator[=] i...
public void addArgument(AstNode arg) { assertNotNull(arg); if (arguments == null) { arguments = new ArrayList<AstNode>(); } arguments.add(arg); arg.setParent(this); }
class class_name[name] begin[{] method[addArgument, return_type[void], modifier[public], parameter[arg]] begin[{] call[.assertNotNull, parameter[member[.arg]]] if[binary_operation[member[.arguments], ==, literal[null]]] begin[{] assign[member[.arguments],...
Keyword[public] Keyword[void] identifier[addArgument] operator[SEP] identifier[AstNode] identifier[arg] operator[SEP] { identifier[assertNotNull] operator[SEP] identifier[arg] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[arguments] operator[==] Other[null] operator[SEP] { identifie...
private static LocalResource registerLocalResource( Path remoteRsrcPath, long resourceSize, long resourceModificationTime) { LocalResource localResource = Records.newRecord(LocalResource.class); localResource.setResource(ConverterUtils.getYarnUrlFromURI(remoteRsrcPath.toUri())); localResource.setSize(res...
class class_name[name] begin[{] method[registerLocalResource, return_type[type[LocalResource]], modifier[private static], parameter[remoteRsrcPath, resourceSize, resourceModificationTime]] begin[{] local_variable[type[LocalResource], localResource] call[localResource.setResource, parame...
Keyword[private] Keyword[static] identifier[LocalResource] identifier[registerLocalResource] operator[SEP] identifier[Path] identifier[remoteRsrcPath] , Keyword[long] identifier[resourceSize] , Keyword[long] identifier[resourceModificationTime] operator[SEP] { identifier[LocalResource] identifier[localResource...
public String extractName(XAttributable element) { XAttribute attribute = element.getAttributes().get(KEY_NAME); if (attribute == null) { return null; } else { return ((XAttributeLiteral) attribute).getValue(); } }
class class_name[name] begin[{] method[extractName, return_type[type[String]], modifier[public], parameter[element]] begin[{] local_variable[type[XAttribute], attribute] if[binary_operation[member[.attribute], ==, literal[null]]] begin[{] return[literal[null]] else b...
Keyword[public] identifier[String] identifier[extractName] operator[SEP] identifier[XAttributable] identifier[element] operator[SEP] { identifier[XAttribute] identifier[attribute] operator[=] identifier[element] operator[SEP] identifier[getAttributes] operator[SEP] operator[SEP] operator[SEP] identifier[get] ope...
public void addSelections(Class<?> selectionType) { List<Field> fields = JpaHelper.listFields(selectionType); for (Field field : fields) { if (field.getName().equals("serialVersionUID")) continue; if (type != null && JpaHelper.findField(type, field.getName()) != null) { if (JpaHelper.findField(type, f...
class class_name[name] begin[{] method[addSelections, return_type[void], modifier[public], parameter[selectionType]] begin[{] local_variable[type[List], fields] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getName, postfix_...
Keyword[public] Keyword[void] identifier[addSelections] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[selectionType] operator[SEP] { identifier[List] operator[<] identifier[Field] operator[>] identifier[fields] operator[=] identifier[JpaHelper] operator[SEP] identifier[listFields...
public void rollback() { try { log.debug("Rolling back modifyAttributes operation"); ldapOperations.modifyAttributes(dn, compensatingModifications); } catch (Exception e) { log .warn("Failed to rollback ModifyAttributes operation, dn: " ...
class class_name[name] begin[{] method[rollback, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Rolling back modifyAttribute...
Keyword[public] Keyword[void] identifier[rollback] operator[SEP] operator[SEP] { Keyword[try] { identifier[log] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[ldapOperations] operator[SEP] identifier[modifyAttributes] operator[SEP] identifier[dn] ,...
@Override public void close() { log.debug("close"); // spawn a thread to finish up our flv writer work boolean locked = false; try { // try to get a lock within x time locked = lock.tryAcquire(500L, TimeUnit.MILLISECONDS); if (locked) { ...
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] call[log.debug, parameter[literal["close"]]] local_variable[type[boolean], locked] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(m...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] { identifier[log] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[boolean] identifier[locked] operator[=] literal[boolean] operator[SEP] Keyword[try] {...
public <V extends Comparable<? super V>> OptionalLong maxBy(LongFunction<V> keyExtractor) { ObjLongBox<V> result = collect(() -> new ObjLongBox<>(null, 0), (box, i) -> { V val = Objects.requireNonNull(keyExtractor.apply(i)); if (box.a == null || box.a.compareTo(val) < 0) { ...
class class_name[name] begin[{] method[maxBy, return_type[type[OptionalLong]], modifier[public], parameter[keyExtractor]] begin[{] local_variable[type[ObjLongBox], result] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=a, postfix_operators=[], prefix_operator...
Keyword[public] operator[<] identifier[V] Keyword[extends] identifier[Comparable] operator[<] operator[?] Keyword[super] identifier[V] operator[>] operator[>] identifier[OptionalLong] identifier[maxBy] operator[SEP] identifier[LongFunction] operator[<] identifier[V] operator[>] identifier[keyExtractor] operator[SEP] {...
protected static String safePrint(Object... o){ StringBuilder sb = new StringBuilder(); for (Object obj: o){ sb.append(obj != null ? obj : "null"); } return sb.toString(); }
class class_name[name] begin[{] method[safePrint, return_type[type[String]], modifier[static protected], parameter[o]] begin[{] local_variable[type[StringBuilder], sb] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[TernaryExpr...
Keyword[protected] Keyword[static] identifier[String] identifier[safePrint] operator[SEP] identifier[Object] operator[...] identifier[o] operator[SEP] { identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP]...
public void flush(final long targetCounter) throws IOException { if (targetCounter <= mFlushCounter.get()) { return; } // Using reentrant lock, since it seems to result in higher throughput than using 'synchronized' mFlushLock.lock(); try { long startTime = System.nanoTime(); long ...
class class_name[name] begin[{] method[flush, return_type[void], modifier[public], parameter[targetCounter]] begin[{] if[binary_operation[member[.targetCounter], <=, call[mFlushCounter.get, parameter[]]]] begin[{] return[None] else begin[{] None end[}] ...
Keyword[public] Keyword[void] identifier[flush] operator[SEP] Keyword[final] Keyword[long] identifier[targetCounter] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[targetCounter] operator[<=] identifier[mFlushCounter] operator[SEP] identifier[get] operator[SEP] opera...
protected boolean updateState() { if (!overrideKeyboardInput) { return false; // Let the class do the default thing. } // Update movement: mTicksSinceLastVelocityChange++; if (mTicksSinceLastVelocityChange <= mInertiaTicks) { mVelocit...
class class_name[name] begin[{] method[updateState, return_type[type[boolean]], modifier[protected], parameter[]] begin[{] if[member[.overrideKeyboardInput]] begin[{] return[literal[false]] else begin[{] None end[}] member[.mTicksSinceLastVelocityChan...
Keyword[protected] Keyword[boolean] identifier[updateState] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[overrideKeyboardInput] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } identifier[mTicksSinceLastVelocityChange] operator[++] operat...
public void addState(GameState state) { states.put(new Integer(state.getID()), state); if (currentState.getID() == -1) { currentState = state; } }
class class_name[name] begin[{] method[addState, return_type[void], modifier[public], parameter[state]] begin[{] call[states.put, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getID, postfix_operators=[], prefix_operators=[], qualifier=state, selectors=[], type_argumen...
Keyword[public] Keyword[void] identifier[addState] operator[SEP] identifier[GameState] identifier[state] operator[SEP] { identifier[states] operator[SEP] identifier[put] operator[SEP] Keyword[new] identifier[Integer] operator[SEP] identifier[state] operator[SEP] identifier[getID] operator[SEP] operator[SEP] oper...
private String getHashKey(final String tableName, final String rowKey) { StringBuilder builder = new StringBuilder(tableName); builder.append(":"); builder.append(rowKey); return builder.toString(); }
class class_name[name] begin[{] method[getHashKey, return_type[type[String]], modifier[private], parameter[tableName, rowKey]] begin[{] local_variable[type[StringBuilder], builder] call[builder.append, parameter[literal[":"]]] call[builder.append, parameter[member[.rowKe...
Keyword[private] identifier[String] identifier[getHashKey] operator[SEP] Keyword[final] identifier[String] identifier[tableName] , Keyword[final] identifier[String] identifier[rowKey] operator[SEP] { identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] i...
public static void actionCreate(PageContext pc, Resource directory, String serverPassword, boolean createPath, int mode, Object acl, String storage, int nameConflict) throws PageException { SecurityManager securityManager = pc.getConfig().getSecurityManager(); securityManager.checkFileLocation(pc.getConfig(), d...
class class_name[name] begin[{] method[actionCreate, return_type[void], modifier[public static], parameter[pc, directory, serverPassword, createPath, mode, acl, storage, nameConflict]] begin[{] local_variable[type[SecurityManager], securityManager] call[securityManager.checkFileLocation...
Keyword[public] Keyword[static] Keyword[void] identifier[actionCreate] operator[SEP] identifier[PageContext] identifier[pc] , identifier[Resource] identifier[directory] , identifier[String] identifier[serverPassword] , Keyword[boolean] identifier[createPath] , Keyword[int] identifier[mode] , identifier[Object] ide...
protected static boolean loadDefaultConf(String packageName) throws ParseException { if (packageName.endsWith(".conf")) { return false; } packageName = packageName.replaceAll("\\$[0-9]+$", ""); Resource defaultConf = new ClasspathResource((packageName.replaceAll("\\.", ...
class class_name[name] begin[{] method[loadDefaultConf, return_type[type[boolean]], modifier[static protected], parameter[packageName]] begin[{] if[call[packageName.endsWith, parameter[literal[".conf"]]]] begin[{] return[literal[false]] else begin[{] None end[}] ...
Keyword[protected] Keyword[static] Keyword[boolean] identifier[loadDefaultConf] operator[SEP] identifier[String] identifier[packageName] operator[SEP] Keyword[throws] identifier[ParseException] { Keyword[if] operator[SEP] identifier[packageName] operator[SEP] identifier[endsWith] operator[SEP] literal[String] op...
public static boolean vpdPageCodeSupported (final VitalProductDataPageName vitalProductDataPageName) { for (int i = 0; i < SUPPORTED_VPD_PAGES.length; ++i) { PageCode pageCode = new PageCode(SUPPORTED_VPD_PAGES[i]); if (pageCode.getVitalProductDataPageName() == vitalProductDataPageNam...
class class_name[name] begin[{] method[vpdPageCodeSupported, return_type[type[boolean]], modifier[public static], parameter[vitalProductDataPageName]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[]...
Keyword[public] Keyword[static] Keyword[boolean] identifier[vpdPageCodeSupported] operator[SEP] Keyword[final] identifier[VitalProductDataPageName] identifier[vitalProductDataPageName] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[...
public static void aromatizeMolecule(IAtomContainer mol) { // need to find rings and aromaticity again since added H's IRingSet ringSet = null; try { AllRingsFinder arf = new AllRingsFinder(); ringSet = arf.findAllRings(mol); // SSSRFinder s = new SSSRFinde...
class class_name[name] begin[{] method[aromatizeMolecule, return_type[void], modifier[public static], parameter[mol]] begin[{] local_variable[type[IRingSet], ringSet] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCre...
Keyword[public] Keyword[static] Keyword[void] identifier[aromatizeMolecule] operator[SEP] identifier[IAtomContainer] identifier[mol] operator[SEP] { identifier[IRingSet] identifier[ringSet] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[AllRingsFinder] identifier[arf] operator[=] Keyw...
public int drainTo(Collection<? super Task> c) { if (c == this) throw new IllegalArgumentException("cannot drain task set into itself"); if (c == null) throw new NullPointerException("target collection must not be null"); int count = 0; while (true) { ...
class class_name[name] begin[{] method[drainTo, return_type[type[int]], modifier[public], parameter[c]] begin[{] if[binary_operation[member[.c], ==, THIS[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[...
Keyword[public] Keyword[int] identifier[drainTo] operator[SEP] identifier[Collection] operator[<] operator[?] Keyword[super] identifier[Task] operator[>] identifier[c] operator[SEP] { Keyword[if] operator[SEP] identifier[c] operator[==] Keyword[this] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalAr...
public PolyhedralSurface toPolyhedralSurface( List<com.google.android.gms.maps.model.Polygon> polygonList) { return toPolyhedralSurface(polygonList, false, false); }
class class_name[name] begin[{] method[toPolyhedralSurface, return_type[type[PolyhedralSurface]], modifier[public], parameter[polygonList]] begin[{] return[call[.toPolyhedralSurface, parameter[member[.polygonList], literal[false], literal[false]]]] end[}] END[}]
Keyword[public] identifier[PolyhedralSurface] identifier[toPolyhedralSurface] operator[SEP] identifier[List] operator[<] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[android] operator[SEP] identifier[gms] operator[SEP] identifier[maps] operator[SEP] identifier[model] operator[SEP] identifie...
@Deprecated public static List<Footer> readSummaryFile(Configuration configuration, FileStatus summaryStatus) throws IOException { final Path parent = summaryStatus.getPath().getParent(); ParquetMetadata mergedFooters = readFooter(configuration, summaryStatus, filter(false)); return footersFromSummaryFile...
class class_name[name] begin[{] method[readSummaryFile, return_type[type[List]], modifier[public static], parameter[configuration, summaryStatus]] begin[{] local_variable[type[Path], parent] local_variable[type[ParquetMetadata], mergedFooters] return[call[.footersFromSummaryFile, parame...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Footer] operator[>] identifier[readSummaryFile] operator[SEP] identifier[Configuration] identifier[configuration] , identifier[FileStatus] identifier[summaryStatus] operator[SEP] Keyword[throws] identifier[IOEx...
public static String capitalize( String s ) { String result = s; if( ! Utils.isEmptyOrWhitespaces( s )) result = Character.toUpperCase( s.charAt( 0 )) + s.substring( 1 ).toLowerCase(); return result; }
class class_name[name] begin[{] method[capitalize, return_type[type[String]], modifier[public static], parameter[s]] begin[{] local_variable[type[String], result] if[call[Utils.isEmptyOrWhitespaces, parameter[member[.s]]]] begin[{] assign[member[.result], binary_operation[ca...
Keyword[public] Keyword[static] identifier[String] identifier[capitalize] operator[SEP] identifier[String] identifier[s] operator[SEP] { identifier[String] identifier[result] operator[=] identifier[s] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[Utils] operator[SEP] identifier[isEmptyOrWhitespa...
@Override public String retrievePublicIpAddress( TargetHandlerParameters parameters, String machineId ) throws TargetException { NovaApi novaApi = novaApi( parameters.getTargetProperties()); String zoneName = findZoneName( novaApi, parameters.getTargetProperties()); String result = null; Server server = nov...
class class_name[name] begin[{] method[retrievePublicIpAddress, return_type[type[String]], modifier[public], parameter[parameters, machineId]] begin[{] local_variable[type[NovaApi], novaApi] local_variable[type[String], zoneName] local_variable[type[String], result] local_variab...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[retrievePublicIpAddress] operator[SEP] identifier[TargetHandlerParameters] identifier[parameters] , identifier[String] identifier[machineId] operator[SEP] Keyword[throws] identifier[TargetException] { identifier[NovaApi] identifier...
public DescribeAccountAttributesResult withAccountAttributes(AccountAttribute... accountAttributes) { if (this.accountAttributes == null) { setAccountAttributes(new com.amazonaws.internal.SdkInternalList<AccountAttribute>(accountAttributes.length)); } for (AccountAttribute ele : acco...
class class_name[name] begin[{] method[withAccountAttributes, return_type[type[DescribeAccountAttributesResult]], modifier[public], parameter[accountAttributes]] begin[{] if[binary_operation[THIS[member[None.accountAttributes]], ==, literal[null]]] begin[{] call[.setAcco...
Keyword[public] identifier[DescribeAccountAttributesResult] identifier[withAccountAttributes] operator[SEP] identifier[AccountAttribute] operator[...] identifier[accountAttributes] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[accountAttributes] operator[==] Other[null] operato...
public String add(File file, boolean preserveExternalFileName) { File existingFile = checkFileExists(file); String result = zipPathFor(existingFile, preserveExternalFileName); entries.put(existingFile, result); return result; }
class class_name[name] begin[{] method[add, return_type[type[String]], modifier[public], parameter[file, preserveExternalFileName]] begin[{] local_variable[type[File], existingFile] local_variable[type[String], result] call[entries.put, parameter[member[.existingFile], member[.r...
Keyword[public] identifier[String] identifier[add] operator[SEP] identifier[File] identifier[file] , Keyword[boolean] identifier[preserveExternalFileName] operator[SEP] { identifier[File] identifier[existingFile] operator[=] identifier[checkFileExists] operator[SEP] identifier[file] operator[SEP] operator[SEP] ...
int runProgram(String[] args) { //if (!commandConsole.isInputStreamAvailable()) { // commandConsole.printErrorMessage(CommandUtils.getMessage("error.missingIO", "stdin")); // return 254; //} if (!commandConsole.isStandardOutAvailable()) { commandConsole.printErrorM...
class class_name[name] begin[{] method[runProgram, return_type[type[int]], modifier[default], parameter[args]] begin[{] if[call[commandConsole.isStandardOutAvailable, parameter[]]] begin[{] call[commandConsole.printErrorMessage, parameter[call[CommandUtils.getMessage, pa...
Keyword[int] identifier[runProgram] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[commandConsole] operator[SEP] identifier[isStandardOutAvailable] operator[SEP] operator[SEP] operator[SEP] { identifier[com...
public static <T> Ref<T> create(Key<T> key) { if (key == null) throw new NullPointerException("Cannot create a Ref from a null key"); return new LiveRef<>(key); }
class class_name[name] begin[{] method[create, return_type[type[Ref]], modifier[public static], parameter[key]] begin[{] if[binary_operation[member[.key], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Ref] operator[<] identifier[T] operator[>] identifier[create] operator[SEP] identifier[Key] operator[<] identifier[T] operator[>] identifier[key] operator[SEP] { Keyword[if] operator[SEP] identifier[key] operator[==] Other[null] ope...
public EntityBuilder addProperties(Map<String, Object> properties) { if(MapUtils.isEmpty(properties)) { throw new IllegalArgumentException("properties cannot be null or empty."); } for (String key : properties.keySet()) { addProperty(key, properties.get(key)); } ...
class class_name[name] begin[{] method[addProperties, return_type[type[EntityBuilder]], modifier[public], parameter[properties]] begin[{] if[call[MapUtils.isEmpty, parameter[member[.properties]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[...
Keyword[public] identifier[EntityBuilder] identifier[addProperties] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[properties] operator[SEP] { Keyword[if] operator[SEP] identifier[MapUtils] operator[SEP] identifier[isEmpty] operator[SEP] identifier[prope...
public static ApplicationSession openApplication(String appName, String host, int port, SSLTransportParameters sslParams, Credentials credentials) { Utils.require(!Utils.isEmpty(appName), "appName"); ...
class class_name[name] begin[{] method[openApplication, return_type[type[ApplicationSession]], modifier[public static], parameter[appName, host, port, sslParams, credentials]] begin[{] call[Utils.require, parameter[call[Utils.isEmpty, parameter[member[.appName]]], literal["appName"]]] ...
Keyword[public] Keyword[static] identifier[ApplicationSession] identifier[openApplication] operator[SEP] identifier[String] identifier[appName] , identifier[String] identifier[host] , Keyword[int] identifier[port] , identifier[SSLTransportParameters] identifier[sslParams] , identifier[Credentials] identifier[creden...
@SuppressWarnings("unchecked") public static <T extends Annotation> T getAnnotation(Annotation ann, Class<T> annotationType) { if (annotationType.isInstance(ann)) { return (T) ann; } try { return ann.annotationType().getAnnotation(annotationType); } catch (Exception ex) { // Assuming nested Class va...
class class_name[name] begin[{] method[getAnnotation, return_type[type[T]], modifier[public static], parameter[ann, annotationType]] begin[{] if[call[annotationType.isInstance, parameter[member[.ann]]]] begin[{] return[Cast(expression=MemberReference(member=ann, postfix_operators=[]...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Annotation] operator[>] identifier[T] identifier[getAnnotation] operator[SEP] identifier[Annotation] identifier[ann] , identifier[Class] operator[...
public PagedList<ManagedInstanceKeyInner> listByInstance(final String resourceGroupName, final String managedInstanceName, final String filter) { ServiceResponse<Page<ManagedInstanceKeyInner>> response = listByInstanceSinglePageAsync(resourceGroupName, managedInstanceName, filter).toBlocking().single(); ...
class class_name[name] begin[{] method[listByInstance, return_type[type[PagedList]], modifier[public], parameter[resourceGroupName, managedInstanceName, filter]] begin[{] local_variable[type[ServiceResponse], response] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=body, p...
Keyword[public] identifier[PagedList] operator[<] identifier[ManagedInstanceKeyInner] operator[>] identifier[listByInstance] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , Keyword[final] identifier[String] identifier[managedInstanceName] , Keyword[final] identifier[String] identifier[...
private static String buildTemplateNameForJavadoc( SoyFileNode currSoyFile, TemplateMetadata template) { StringBuilder resultSb = new StringBuilder(); if (template.getSourceLocation().getFilePath().equals(currSoyFile.getFilePath()) && template.getTemplateKind() != TemplateMetadata.Kind.DELTEMPLA...
class class_name[name] begin[{] method[buildTemplateNameForJavadoc, return_type[type[String]], modifier[private static], parameter[currSoyFile, template]] begin[{] local_variable[type[StringBuilder], resultSb] if[binary_operation[call[template.getSourceLocation, parameter[]], &&, binary...
Keyword[private] Keyword[static] identifier[String] identifier[buildTemplateNameForJavadoc] operator[SEP] identifier[SoyFileNode] identifier[currSoyFile] , identifier[TemplateMetadata] identifier[template] operator[SEP] { identifier[StringBuilder] identifier[resultSb] operator[=] Keyword[new] identifier[StringB...
public AnnSchema getSchema(final Class<? extends Ann> klass) { for (AnnSchema ann : annSchemas) if (ann.getKlass().equals(klass)) return ann; return null; }
class class_name[name] begin[{] method[getSchema, return_type[type[AnnSchema]], modifier[public], parameter[klass]] begin[{] ForStatement(body=IfStatement(condition=MethodInvocation(arguments=[], member=getKlass, postfix_operators=[], prefix_operators=[], qualifier=ann, selectors=[MethodInvocation(argu...
Keyword[public] identifier[AnnSchema] identifier[getSchema] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Ann] operator[>] identifier[klass] operator[SEP] { Keyword[for] operator[SEP] identifier[AnnSchema] identifier[ann] operator[:] identifier[annSchemas] op...
public CellStyle getOrCreateRowStyle(int y) { final Row row = getOrCreateRow(y); CellStyle rowStyle = row.getRowStyle(); if (null == rowStyle) { rowStyle = this.workbook.createCellStyle(); row.setRowStyle(rowStyle); } return rowStyle; }
class class_name[name] begin[{] method[getOrCreateRowStyle, return_type[type[CellStyle]], modifier[public], parameter[y]] begin[{] local_variable[type[Row], row] local_variable[type[CellStyle], rowStyle] if[binary_operation[literal[null], ==, member[.rowStyle]]] begin[{] ...
Keyword[public] identifier[CellStyle] identifier[getOrCreateRowStyle] operator[SEP] Keyword[int] identifier[y] operator[SEP] { Keyword[final] identifier[Row] identifier[row] operator[=] identifier[getOrCreateRow] operator[SEP] identifier[y] operator[SEP] operator[SEP] identifier[CellStyle] identifier[rowStyle] o...
public PagedList<NodeFile> listFilesFromTask(String jobId, String taskId, Boolean recursive, DetailLevel detailLevel) throws BatchErrorException, IOException { return listFilesFromTask(jobId, taskId, recursive, detailLevel, null); }
class class_name[name] begin[{] method[listFilesFromTask, return_type[type[PagedList]], modifier[public], parameter[jobId, taskId, recursive, detailLevel]] begin[{] return[call[.listFilesFromTask, parameter[member[.jobId], member[.taskId], member[.recursive], member[.detailLevel], literal[null]]]] ...
Keyword[public] identifier[PagedList] operator[<] identifier[NodeFile] operator[>] identifier[listFilesFromTask] operator[SEP] identifier[String] identifier[jobId] , identifier[String] identifier[taskId] , identifier[Boolean] identifier[recursive] , identifier[DetailLevel] identifier[detailLevel] operator[SEP] Keywo...
public DeleteItemRequest withExpressionAttributeNames(java.util.Map<String, String> expressionAttributeNames) { setExpressionAttributeNames(expressionAttributeNames); return this; }
class class_name[name] begin[{] method[withExpressionAttributeNames, return_type[type[DeleteItemRequest]], modifier[public], parameter[expressionAttributeNames]] begin[{] call[.setExpressionAttributeNames, parameter[member[.expressionAttributeNames]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[DeleteItemRequest] identifier[withExpressionAttributeNames] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[expressionAttributeNames] operator[SEP] { identifier[setEx...
@Override public boolean add(T object) { Preconditions.checkNotNull(object, "object"); // Locking this object protects against removing the exact object, but does not protect against // removing a distinct, but equivalent object. synchronized (object) { // add() will atomically add the object t...
class class_name[name] begin[{] method[add, return_type[type[boolean]], modifier[public], parameter[object]] begin[{] call[Preconditions.checkNotNull, parameter[member[.object], literal["object"]]] SYNCHRONIZED[member[.object]] BEGIN[{] if[call[mPrimaryIn...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[add] operator[SEP] identifier[T] identifier[object] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[object] , literal[String] operator[SEP] operator[SEP] Keyword[synchronized]...
public void setTimeout(Long timeout) { if (timeout != null) { if (timeout < 1000) { logger.error("A timeout of 1000 will cause the originate to almost cretainly fail!"); } if (timeout < 10000) { logger.warn( ...
class class_name[name] begin[{] method[setTimeout, return_type[void], modifier[public], parameter[timeout]] begin[{] if[binary_operation[member[.timeout], !=, literal[null]]] begin[{] if[binary_operation[member[.timeout], <, literal[1000]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setTimeout] operator[SEP] identifier[Long] identifier[timeout] operator[SEP] { Keyword[if] operator[SEP] identifier[timeout] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[timeout] operator[<] Other[1000] operator[SEP] { ...
public Javalin wsBefore(@NotNull String path, @NotNull Consumer<WsHandler> wsHandler) { return addWsHandler(WsHandlerType.WS_BEFORE, path, wsHandler); }
class class_name[name] begin[{] method[wsBefore, return_type[type[Javalin]], modifier[public], parameter[path, wsHandler]] begin[{] return[call[.addWsHandler, parameter[member[WsHandlerType.WS_BEFORE], member[.path], member[.wsHandler]]]] end[}] END[}]
Keyword[public] identifier[Javalin] identifier[wsBefore] operator[SEP] annotation[@] identifier[NotNull] identifier[String] identifier[path] , annotation[@] identifier[NotNull] identifier[Consumer] operator[<] identifier[WsHandler] operator[>] identifier[wsHandler] operator[SEP] { Keyword[return] identifier[add...
public AdvancedModelWrapper loadReferencedModel(Field field, ModelRegistry modelRegistry, EngineeringDatabaseService edbService, EDBConverter edbConverter) { try { ModelDescription description = getModelDescriptionFromField(field); String modelKey = (String) FieldUtils.readFi...
class class_name[name] begin[{] method[loadReferencedModel, return_type[type[AdvancedModelWrapper]], modifier[public], parameter[field, modelRegistry, edbService, edbConverter]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initiali...
Keyword[public] identifier[AdvancedModelWrapper] identifier[loadReferencedModel] operator[SEP] identifier[Field] identifier[field] , identifier[ModelRegistry] identifier[modelRegistry] , identifier[EngineeringDatabaseService] identifier[edbService] , identifier[EDBConverter] identifier[edbConverter] operator[SEP] {...
public synchronized boolean variablesChanged() { for (Map.Entry<String, Object> entry : variableCache.entrySet()) { String variableName = entry.getKey(); Object oldVariableValue = entry.getValue(); Object newVariableValue = lookupVariable(variableName); if (newVar...
class class_name[name] begin[{] method[variablesChanged, return_type[type[boolean]], modifier[synchronized public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodIn...
Keyword[public] Keyword[synchronized] Keyword[boolean] identifier[variablesChanged] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[Object] operator[>] identifier[entry] operator[:] identifier[variableCache] op...
public List<String> getErrorMessages() { List<String> messages = new ArrayList<String>( errors.size() ); for ( DroolsParserException activeException : errors ) { messages.add( activeException.getMessage() ); } return messages; }
class class_name[name] begin[{] method[getErrorMessages, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], messages] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arg...
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getErrorMessages] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[messages] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operato...
public static Map<String, CoprocessorInfo> getCoprocessorInfo(HTableDescriptor tableDescriptor) { Map<String, CoprocessorInfo> info = Maps.newHashMap(); // Extract information about existing data janitor coprocessor // The following logic is copied from RegionCoprocessorHost in HBase for (Map.Entry<Imm...
class class_name[name] begin[{] method[getCoprocessorInfo, return_type[type[Map]], modifier[public static], parameter[tableDescriptor]] begin[{] local_variable[type[Map], info] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Variabl...
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[CoprocessorInfo] operator[>] identifier[getCoprocessorInfo] operator[SEP] identifier[HTableDescriptor] identifier[tableDescriptor] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[CoprocessorI...
public static void belongsTo(File directory, File parameter, String name) throws IllegalArgumentException { String dirPath = directory.getAbsolutePath(); String filePath = parameter.getAbsolutePath(); if (!filePath.startsWith(dirPath)) { throw new IllegalArgumentException(String.format("%s |%s| is outside ...
class class_name[name] begin[{] method[belongsTo, return_type[void], modifier[public static], parameter[directory, parameter, name]] begin[{] local_variable[type[String], dirPath] local_variable[type[String], filePath] if[call[filePath.startsWith, parameter[member[.dirPath]]]] b...
Keyword[public] Keyword[static] Keyword[void] identifier[belongsTo] operator[SEP] identifier[File] identifier[directory] , identifier[File] identifier[parameter] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { identifier[String] identifier[dirPath] ope...
public void createKLT() { PkltConfig config = new PkltConfig(); config.templateRadius = 3; config.pyramidScaling = new int[]{1,2,4,8}; tracker = FactoryPointTracker.klt(config, new ConfigGeneralDetector(600, 6, 1), imageType, derivType); }
class class_name[name] begin[{] method[createKLT, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[PkltConfig], config] assign[member[config.templateRadius], literal[3]] assign[member[config.pyramidScaling], ArrayCreator(dimensions=[None], i...
Keyword[public] Keyword[void] identifier[createKLT] operator[SEP] operator[SEP] { identifier[PkltConfig] identifier[config] operator[=] Keyword[new] identifier[PkltConfig] operator[SEP] operator[SEP] operator[SEP] identifier[config] operator[SEP] identifier[templateRadius] operator[=] Other[3] operator[SEP] iden...
public static List<String> filterCommands(Collection<String> commands, String whitelistRegex, String blacklistRegex, Logger log) { List<String> filteredCommands = new LinkedList<String>(); Pattern whitelistPattern = Pattern.compile(whitelistRegex); Pattern blacklistPattern = Pattern.compile(blacklistR...
class class_name[name] begin[{] method[filterCommands, return_type[type[List]], modifier[public static], parameter[commands, whitelistRegex, blacklistRegex, log]] begin[{] local_variable[type[List], filteredCommands] local_variable[type[Pattern], whitelistPattern] local_variable[type[Pa...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[filterCommands] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[commands] , identifier[String] identifier[whitelistRegex] , identifier[String] identifier[blacklistRegex] , ...
@Override public List<RuleRuntimeEventListener> getRuleRuntimeEventListeners(RuntimeEngine runtime) { List<RuleRuntimeEventListener> list = new ArrayList<RuleRuntimeEventListener>(); list.addAll(_rootFactory.getRuleRuntimeEventListeners(runtime)); for (RegisterableItemsFactory f : _factories...
class class_name[name] begin[{] method[getRuleRuntimeEventListeners, return_type[type[List]], modifier[public], parameter[runtime]] begin[{] local_variable[type[List], list] call[list.addAll, parameter[call[_rootFactory.getRuleRuntimeEventListeners, parameter[member[.runtime]]]]] ...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[RuleRuntimeEventListener] operator[>] identifier[getRuleRuntimeEventListeners] operator[SEP] identifier[RuntimeEngine] identifier[runtime] operator[SEP] { identifier[List] operator[<] identifier[RuleRuntimeEventListener] o...
public Content getTagletOutput(Tag tag, TagletWriter writer) { return header == null || tag == null ? null : writer.simpleTagOutput(tag, header); }
class class_name[name] begin[{] method[getTagletOutput, return_type[type[Content]], modifier[public], parameter[tag, writer]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=header, postfix_operators=[], prefix_operators=[], qualifier...
Keyword[public] identifier[Content] identifier[getTagletOutput] operator[SEP] identifier[Tag] identifier[tag] , identifier[TagletWriter] identifier[writer] operator[SEP] { Keyword[return] identifier[header] operator[==] Other[null] operator[||] identifier[tag] operator[==] Other[null] operator[?] Other[null] op...
public HystrixCommandExecutionHook getCommandExecutionHook() { if (commandExecutionHook.get() == null) { // check for an implementation from Archaius first Object impl = getPluginImplementation(HystrixCommandExecutionHook.class); if (impl == null) { // nothing...
class class_name[name] begin[{] method[getCommandExecutionHook, return_type[type[HystrixCommandExecutionHook]], modifier[public], parameter[]] begin[{] if[binary_operation[call[commandExecutionHook.get, parameter[]], ==, literal[null]]] begin[{] local_variable[type[Object], impl] ...
Keyword[public] identifier[HystrixCommandExecutionHook] identifier[getCommandExecutionHook] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[commandExecutionHook] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { identifier[Object] ide...
public VotesCategories getCategories(String year) throws VoteSmartException, VoteSmartErrorException { return api.query("Votes.getCategories", new ArgMap("year", year), VotesCategories.class ); }
class class_name[name] begin[{] method[getCategories, return_type[type[VotesCategories]], modifier[public], parameter[year]] begin[{] return[call[api.query, parameter[literal["Votes.getCategories"], ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[],...
Keyword[public] identifier[VotesCategories] identifier[getCategories] operator[SEP] identifier[String] identifier[year] operator[SEP] Keyword[throws] identifier[VoteSmartException] , identifier[VoteSmartErrorException] { Keyword[return] identifier[api] operator[SEP] identifier[query] operator[SEP] literal[Strin...
public void setViewPager(ViewPager viewPager) { mTabStrip.removeAllViews(); mViewPager = viewPager; if (viewPager != null) { viewPager.setOnPageChangeListener(new InternalViewPagerListener()); populateTabStrip(); } }
class class_name[name] begin[{] method[setViewPager, return_type[void], modifier[public], parameter[viewPager]] begin[{] call[mTabStrip.removeAllViews, parameter[]] assign[member[.mViewPager], member[.viewPager]] if[binary_operation[member[.viewPager], !=, litera...
Keyword[public] Keyword[void] identifier[setViewPager] operator[SEP] identifier[ViewPager] identifier[viewPager] operator[SEP] { identifier[mTabStrip] operator[SEP] identifier[removeAllViews] operator[SEP] operator[SEP] operator[SEP] identifier[mViewPager] operator[=] identifier[viewPager] operator[SEP] Keyword[...
public void encryptBlock(byte[] data, int offset, byte[] dest, int destOffset) { // w128_t x; // x.q[0] = ((uint64_t *) blk)[0]; // x.q[1] = ((uint64_t *) blk)[1]; Kuz128 x = new Kuz128(); x.setQ(0, ByteStrings.bytesToLong(data, offset)); x.setQ(1, ByteStrings.bytesToLong...
class class_name[name] begin[{] method[encryptBlock, return_type[void], modifier[public], parameter[data, offset, dest, destOffset]] begin[{] local_variable[type[Kuz128], x] call[x.setQ, parameter[literal[0], call[ByteStrings.bytesToLong, parameter[member[.data], member[.offset]]]]] ...
Keyword[public] Keyword[void] identifier[encryptBlock] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[int] identifier[offset] , Keyword[byte] operator[SEP] operator[SEP] identifier[dest] , Keyword[int] identifier[destOffset] operator[SEP] { identifier[Kuz128] identifier[x] ...
public void clean() { if (!remove(this)) return; try { thunk.run(); } catch (final Throwable x) { AccessController.doPrivileged(new PrivilegedAction<Void>() { public Void run() { if (System.err != null) ...
class class_name[name] begin[{] method[clean, return_type[void], modifier[public], parameter[]] begin[{] if[call[.remove, parameter[THIS[]]]] begin[{] return[None] else begin[{] None end[}] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[],...
Keyword[public] Keyword[void] identifier[clean] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[remove] operator[SEP] Keyword[this] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[try] { identifier[thunk] operator[SEP] identifier[run] operator[SEP] oper...
public Weekday getNextMatch(Weekday weekday) { if (contains(weekday)) { return weekday; } else if (getSet().isEmpty()) { return null; } else { Weekday result = weekday.getNext(); while (!contains(result)) { result = weekday.getNext(); if (result == weekday) { ...
class class_name[name] begin[{] method[getNextMatch, return_type[type[Weekday]], modifier[public], parameter[weekday]] begin[{] if[call[.contains, parameter[member[.weekday]]]] begin[{] return[member[.weekday]] else begin[{] if[call[.getSet, parameter[]]] begin[{...
Keyword[public] identifier[Weekday] identifier[getNextMatch] operator[SEP] identifier[Weekday] identifier[weekday] operator[SEP] { Keyword[if] operator[SEP] identifier[contains] operator[SEP] identifier[weekday] operator[SEP] operator[SEP] { Keyword[return] identifier[weekday] operator[SEP] } ...
private static void startAllocCounting() { // Before we start trigger a GC and reset the debug counts. Run the // finalizers and another GC before starting and stopping the alloc // counts. This will free up any objects that were just sitting around // waiting for their finalizers to be ...
class class_name[name] begin[{] method[startAllocCounting, return_type[void], modifier[private static], parameter[]] begin[{] call[Runtime.getRuntime, parameter[]] call[Runtime.getRuntime, parameter[]] call[Runtime.getRuntime, parameter[]] call[De...
Keyword[private] Keyword[static] Keyword[void] identifier[startAllocCounting] operator[SEP] operator[SEP] { identifier[Runtime] operator[SEP] identifier[getRuntime] operator[SEP] operator[SEP] operator[SEP] identifier[gc] operator[SEP] operator[SEP] operator[SEP] identifier[Runtime] operator[SEP] identifier[getR...
public Map<Group, List<ServerMonitoringStatistics>> getMonitoringStatsAsMap(GroupFilter groupFilter, ServerMonitoringFilter config) { return getMonitoringStatsAsMap(Arrays.asList(getRefsFromFilter(groupFilter)), config); }
class class_name[name] begin[{] method[getMonitoringStatsAsMap, return_type[type[Map]], modifier[public], parameter[groupFilter, config]] begin[{] return[call[.getMonitoringStatsAsMap, parameter[call[Arrays.asList, parameter[call[.getRefsFromFilter, parameter[member[.groupFilter]]]]], member[.config]]]...
Keyword[public] identifier[Map] operator[<] identifier[Group] , identifier[List] operator[<] identifier[ServerMonitoringStatistics] operator[>] operator[>] identifier[getMonitoringStatsAsMap] operator[SEP] identifier[GroupFilter] identifier[groupFilter] , identifier[ServerMonitoringFilter] identifier[config] operator...
private LockedObject generateTempLockedObjects( String path ) { if (!tempLocks.containsKey(path)) { LockedObject returnObject = new LockedObject(this, path, temporary); String parentPath = getParentPath(path); if (parentPath != null) { LockedObject parentLocke...
class class_name[name] begin[{] method[generateTempLockedObjects, return_type[type[LockedObject]], modifier[private], parameter[path]] begin[{] if[call[tempLocks.containsKey, parameter[member[.path]]]] begin[{] local_variable[type[LockedObject], returnObject] local_varia...
Keyword[private] identifier[LockedObject] identifier[generateTempLockedObjects] operator[SEP] identifier[String] identifier[path] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[tempLocks] operator[SEP] identifier[containsKey] operator[SEP] identifier[path] operator[SEP] operator[SEP] { ...
protected Properties getConfigurationProperties(OperationContext context, ModelNode model) throws OperationFailedException { Properties props = new Properties(); getResourceProperties(props, IIOPRootDefinition.INSTANCE, context, model); // check if the node contains a list of generic properti...
class class_name[name] begin[{] method[getConfigurationProperties, return_type[type[Properties]], modifier[protected], parameter[context, model]] begin[{] local_variable[type[Properties], props] call[.getResourceProperties, parameter[member[.props], member[IIOPRootDefinition.INSTANCE], ...
Keyword[protected] identifier[Properties] identifier[getConfigurationProperties] operator[SEP] identifier[OperationContext] identifier[context] , identifier[ModelNode] identifier[model] operator[SEP] Keyword[throws] identifier[OperationFailedException] { identifier[Properties] identifier[props] operator[=] Keyw...
public static base_responses update(nitro_service client, systemuser resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { systemuser updateresources[] = new systemuser[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = ne...
class class_name[name] begin[{] method[update, return_type[type[base_responses]], modifier[public static], parameter[client, resources]] begin[{] local_variable[type[base_responses], result] if[binary_operation[binary_operation[member[.resources], !=, literal[null]], &&, binary_operatio...
Keyword[public] Keyword[static] identifier[base_responses] identifier[update] operator[SEP] identifier[nitro_service] identifier[client] , identifier[systemuser] identifier[resources] operator[SEP] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[base_responses] identifier[result] ...
@Override public boolean removeAttribute(String name) { boolean result = true; // Send confirmation to client final SharedObjectEvent event = new SharedObjectEvent(Type.CLIENT_DELETE_DATA, name, null); if (ownerMessage.addEvent(event)) { if (super.removeAttribute(na...
class class_name[name] begin[{] method[removeAttribute, return_type[type[boolean]], modifier[public], parameter[name]] begin[{] local_variable[type[boolean], result] local_variable[type[SharedObjectEvent], event] if[call[ownerMessage.addEvent, parameter[member[.event]]]] begin[{...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[removeAttribute] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[boolean] identifier[result] operator[=] literal[boolean] operator[SEP] Keyword[final] identifier[SharedObjectEvent] identifier[event] operator[...
public ApiResponse<GetMOHFilesResponse> getMOHFilesWithHttpInfo() throws ApiException { com.squareup.okhttp.Call call = getMOHFilesValidateBeforeCall(null, null); Type localVarReturnType = new TypeToken<GetMOHFilesResponse>(){}.getType(); return apiClient.execute(call, localVarReturnType); }
class class_name[name] begin[{] method[getMOHFilesWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] return[call[apiClient.execute, parameter[member[.call], member[.localVar...
Keyword[public] identifier[ApiResponse] operator[<] identifier[GetMOHFilesResponse] operator[>] identifier[getMOHFilesWithHttpInfo] operator[SEP] operator[SEP] Keyword[throws] identifier[ApiException] { identifier[com] operator[SEP] identifier[squareup] operator[SEP] identifier[okhttp] operator[SEP] identifier[C...
public ListIndicesResult withIndexNames(String... indexNames) { if (this.indexNames == null) { setIndexNames(new java.util.ArrayList<String>(indexNames.length)); } for (String ele : indexNames) { this.indexNames.add(ele); } return this; }
class class_name[name] begin[{] method[withIndexNames, return_type[type[ListIndicesResult]], modifier[public], parameter[indexNames]] begin[{] if[binary_operation[THIS[member[None.indexNames]], ==, literal[null]]] begin[{] call[.setIndexNames, parameter[ClassCreator(argu...
Keyword[public] identifier[ListIndicesResult] identifier[withIndexNames] operator[SEP] identifier[String] operator[...] identifier[indexNames] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[indexNames] operator[==] Other[null] operator[SEP] { identifier[setIndexNames]...
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AfplibPackage.FNNRG__GCGID: return getGCGID(); case AfplibPackage.FNNRG__TS_OFFSET: return getTSOffset(); } return super.eGet(featureID, resolve, coreType); }
class class_name[name] begin[{] method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=FNNRG__GCGID, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { K...
public final void mT__75() throws RecognitionException { try { int _type = T__75; int _channel = DEFAULT_TOKEN_CHANNEL; // InternalXbaseWithAnnotations.g:73:7: ( 'throw' ) // InternalXbaseWithAnnotations.g:73:9: 'throw' { match("throw"); ...
class class_name[name] begin[{] method[mT__75, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=T__75, postfix_operators=[], prefix_operators=[]...
Keyword[public] Keyword[final] Keyword[void] identifier[mT__75] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[T__75] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TOKE...
public static Calendar trimToMidnight(Calendar calendar) { calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); return calendar; }
class class_name[name] begin[{] method[trimToMidnight, return_type[type[Calendar]], modifier[public static], parameter[calendar]] begin[{] call[calendar.set, parameter[member[Calendar.HOUR_OF_DAY], literal[0]]] call[calendar.set, parameter[member[Calendar.MINUTE], literal[0]]] ...
Keyword[public] Keyword[static] identifier[Calendar] identifier[trimToMidnight] operator[SEP] identifier[Calendar] identifier[calendar] operator[SEP] { identifier[calendar] operator[SEP] identifier[set] operator[SEP] identifier[Calendar] operator[SEP] identifier[HOUR_OF_DAY] , Other[0] operator[SEP] operator[SE...
public static void mult( DMatrix4x4 a , DMatrix4x4 b , DMatrix4x4 c) { c.a11 = a.a11*b.a11 + a.a12*b.a21 + a.a13*b.a31 + a.a14*b.a41; c.a12 = a.a11*b.a12 + a.a12*b.a22 + a.a13*b.a32 + a.a14*b.a42; c.a13 = a.a11*b.a13 + a.a12*b.a23 + a.a13*b.a33 + a.a14*b.a43; c.a14 = a.a11*b.a14 + a.a12*...
class class_name[name] begin[{] method[mult, return_type[void], modifier[public static], parameter[a, b, c]] begin[{] assign[member[c.a11], binary_operation[binary_operation[binary_operation[binary_operation[member[a.a11], *, member[b.a11]], +, binary_operation[member[a.a12], *, member[b.a21]]]...
Keyword[public] Keyword[static] Keyword[void] identifier[mult] operator[SEP] identifier[DMatrix4x4] identifier[a] , identifier[DMatrix4x4] identifier[b] , identifier[DMatrix4x4] identifier[c] operator[SEP] { identifier[c] operator[SEP] identifier[a11] operator[=] identifier[a] operator[SEP] identifier[a11] ope...
protected Label createLabel(String text) { Label label = new Label(text); Style style = label.getElement().getStyle(); style.setMarginTop(10, Unit.PX); style.setMarginBottom(4, Unit.PX); style.setFontWeight(FontWeight.BOLD); return label; }
class class_name[name] begin[{] method[createLabel, return_type[type[Label]], modifier[protected], parameter[text]] begin[{] local_variable[type[Label], label] local_variable[type[Style], style] call[style.setMarginTop, parameter[literal[10], member[Unit.PX]]] ca...
Keyword[protected] identifier[Label] identifier[createLabel] operator[SEP] identifier[String] identifier[text] operator[SEP] { identifier[Label] identifier[label] operator[=] Keyword[new] identifier[Label] operator[SEP] identifier[text] operator[SEP] operator[SEP] identifier[Style] identifier[style] operator[=] ...
public void sendMessage(Message message) throws NotYetConnectedException { lock.lock(); try { if (writeTarget == null) throw new NotYetConnectedException(); } finally { lock.unlock(); } // TODO: Some round-tripping could be avoided here ...
class class_name[name] begin[{] method[sendMessage, return_type[void], modifier[public], parameter[message]] begin[{] call[lock.lock, parameter[]] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=writeTarget, postfix_operators=[], prefix_operator...
Keyword[public] Keyword[void] identifier[sendMessage] operator[SEP] identifier[Message] identifier[message] operator[SEP] Keyword[throws] identifier[NotYetConnectedException] { identifier[lock] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { Keyword[if] operator...
public float getFloat(String property) { return getProperty(property, value -> { try { return Float.valueOf(value); } catch (NumberFormatException e) { throw new ConfigurationException("malformed property value: " + property + " must be a float"); } }); }
class class_name[name] begin[{] method[getFloat, return_type[type[float]], modifier[public], parameter[property]] begin[{] return[call[.getProperty, parameter[member[.property], LambdaExpression(body=[TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=valu...
Keyword[public] Keyword[float] identifier[getFloat] operator[SEP] identifier[String] identifier[property] operator[SEP] { Keyword[return] identifier[getProperty] operator[SEP] identifier[property] , identifier[value] operator[->] { Keyword[try] { Keyword[return] identifier[Float] opera...
public Observable<PublicIPPrefixInner> updateTagsAsync(String resourceGroupName, String publicIpPrefixName) { return updateTagsWithServiceResponseAsync(resourceGroupName, publicIpPrefixName).map(new Func1<ServiceResponse<PublicIPPrefixInner>, PublicIPPrefixInner>() { @Override public Pub...
class class_name[name] begin[{] method[updateTagsAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, publicIpPrefixName]] begin[{] return[call[.updateTagsWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.publicIpPrefixName]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[PublicIPPrefixInner] operator[>] identifier[updateTagsAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[publicIpPrefixName] operator[SEP] { Keyword[return] identifier[updateTagsWithServiceResponseAs...
public JSONObject getTaskStatus(int id, HashMap<String, String> options) { AipRequest request = new AipRequest(); preOperation(request); request.addBody("id", id); if (options != null) { request.addBody(options); } request.setUri(KnowledgeGraphicConst...
class class_name[name] begin[{] method[getTaskStatus, return_type[type[JSONObject]], modifier[public], parameter[id, options]] begin[{] local_variable[type[AipRequest], request] call[.preOperation, parameter[member[.request]]] call[request.addBody, parameter[literal["id"...
Keyword[public] identifier[JSONObject] identifier[getTaskStatus] operator[SEP] Keyword[int] identifier[id] , identifier[HashMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[options] operator[SEP] { identifier[AipRequest] identifier[request] operator[=] Keyword[new] identifier[Aip...
@Override public LogRepositoryBrowser findNext(LogRepositoryBrowser current, long timelimit) { long cur; if (current == null) { cur = Long.MIN_VALUE; } else if (current instanceof LogRepositoryBrowserImpl) { // Check if it's an instance browser. if (((LogR...
class class_name[name] begin[{] method[findNext, return_type[type[LogRepositoryBrowser]], modifier[public], parameter[current, timelimit]] begin[{] local_variable[type[long], cur] if[binary_operation[member[.current], ==, literal[null]]] begin[{] assign[member[.c...
annotation[@] identifier[Override] Keyword[public] identifier[LogRepositoryBrowser] identifier[findNext] operator[SEP] identifier[LogRepositoryBrowser] identifier[current] , Keyword[long] identifier[timelimit] operator[SEP] { Keyword[long] identifier[cur] operator[SEP] Keyword[if] operator[SEP] identifier[curre...
public Observable<DataMigrationServiceInner> getByResourceGroupAsync(String groupName, String serviceName) { return getByResourceGroupWithServiceResponseAsync(groupName, serviceName).map(new Func1<ServiceResponse<DataMigrationServiceInner>, DataMigrationServiceInner>() { @Override public...
class class_name[name] begin[{] method[getByResourceGroupAsync, return_type[type[Observable]], modifier[public], parameter[groupName, serviceName]] begin[{] return[call[.getByResourceGroupWithServiceResponseAsync, parameter[member[.groupName], member[.serviceName]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[DataMigrationServiceInner] operator[>] identifier[getByResourceGroupAsync] operator[SEP] identifier[String] identifier[groupName] , identifier[String] identifier[serviceName] operator[SEP] { Keyword[return] identifier[getByResourceGroupWithServiceRes...
public void service_externalContact_externalEmailAddress_PUT(String service, String externalEmailAddress, OvhExternalContact body) throws IOException { String qPath = "/email/pro/{service}/externalContact/{externalEmailAddress}"; StringBuilder sb = path(qPath, service, externalEmailAddress); exec(qPath, "PUT", sb...
class class_name[name] begin[{] method[service_externalContact_externalEmailAddress_PUT, return_type[void], modifier[public], parameter[service, externalEmailAddress, body]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] call[.exec, paramete...
Keyword[public] Keyword[void] identifier[service_externalContact_externalEmailAddress_PUT] operator[SEP] identifier[String] identifier[service] , identifier[String] identifier[externalEmailAddress] , identifier[OvhExternalContact] identifier[body] operator[SEP] Keyword[throws] identifier[IOException] { identif...
public void registerRule(Auditable rule) { _lock.writeLock().lock(); try { _auditMap.put(rule.getName(), new HashMap<>()); } finally { _lock.writeLock().unlock(); } }
class class_name[name] begin[{] method[registerRule, return_type[void], modifier[public], parameter[rule]] begin[{] call[_lock.writeLock, parameter[]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_op...
Keyword[public] Keyword[void] identifier[registerRule] operator[SEP] identifier[Auditable] identifier[rule] operator[SEP] { identifier[_lock] operator[SEP] identifier[writeLock] operator[SEP] operator[SEP] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifi...
@Override public StringValue readRecord(StringValue reuse, byte[] bytes, int offset, int numBytes) { if (this.ascii) { reuse.setValueAscii(bytes, offset, numBytes); return reuse; } else { ByteBuffer byteWrapper = this.byteWrapper; if (bytes != byteWrapper.array()) { byteWrapper = ByteBuffer.wrap(...
class class_name[name] begin[{] method[readRecord, return_type[type[StringValue]], modifier[public], parameter[reuse, bytes, offset, numBytes]] begin[{] if[THIS[member[None.ascii]]] begin[{] call[reuse.setValueAscii, parameter[member[.bytes], member[.offset], member[.num...
annotation[@] identifier[Override] Keyword[public] identifier[StringValue] identifier[readRecord] operator[SEP] identifier[StringValue] identifier[reuse] , Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , Keyword[int] identifier[offset] , Keyword[int] identifier[numBytes] operator[SEP] { Keyword[...
@Override public StartAccessLoggingResult startAccessLogging(StartAccessLoggingRequest request) { request = beforeClientExecution(request); return executeStartAccessLogging(request); }
class class_name[name] begin[{] method[startAccessLogging, return_type[type[StartAccessLoggingResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeStartAccessLogging, parameter[me...
annotation[@] identifier[Override] Keyword[public] identifier[StartAccessLoggingResult] identifier[startAccessLogging] operator[SEP] identifier[StartAccessLoggingRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operat...
public final Optional<E> first() { Iterator<E> iterator = getDelegate().iterator(); return iterator.hasNext() ? Optional.of(iterator.next()) : Optional.<E>absent(); }
class class_name[name] begin[{] method[first, return_type[type[Optional]], modifier[final public], parameter[]] begin[{] local_variable[type[Iterator], iterator] return[TernaryExpression(condition=MethodInvocation(arguments=[], member=hasNext, postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] Keyword[final] identifier[Optional] operator[<] identifier[E] operator[>] identifier[first] operator[SEP] operator[SEP] { identifier[Iterator] operator[<] identifier[E] operator[>] identifier[iterator] operator[=] identifier[getDelegate] operator[SEP] operator[SEP] operator[SEP] identifier[iterat...
public static IWicketJquerySelectorsSettings settings() { if (Application.exists()) { final IWicketJquerySelectorsSettings settings = Application.get().getMetaData(JQUERY_SELECTORS_SETTINGS_METADATA_KEY); if (settings != null) { return settings; } else { ...
class class_name[name] begin[{] method[settings, return_type[type[IWicketJquerySelectorsSettings]], modifier[public static], parameter[]] begin[{] if[call[Application.exists, parameter[]]] begin[{] local_variable[type[IWicketJquerySelectorsSettings], settings] ...
Keyword[public] Keyword[static] identifier[IWicketJquerySelectorsSettings] identifier[settings] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[Application] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[SEP] { Keyword[final] identifier[IWicketJquerySelectorsS...
public MaterialRevisions getRevisionsBasedOnDependencies(PipelineConfigDependencyGraph graph, MaterialRevisions actualRevisions) { MaterialRevisions computedRevisions = new MaterialRevisions(); overrideCommonMaterialRevisions(graph, actualRevisions, computedRevisions); copyMissingRevisions(actua...
class class_name[name] begin[{] method[getRevisionsBasedOnDependencies, return_type[type[MaterialRevisions]], modifier[public], parameter[graph, actualRevisions]] begin[{] local_variable[type[MaterialRevisions], computedRevisions] call[.overrideCommonMaterialRevisions, parameter[member[...
Keyword[public] identifier[MaterialRevisions] identifier[getRevisionsBasedOnDependencies] operator[SEP] identifier[PipelineConfigDependencyGraph] identifier[graph] , identifier[MaterialRevisions] identifier[actualRevisions] operator[SEP] { identifier[MaterialRevisions] identifier[computedRevisions] operator[=] ...
private static Resource getAutoDetectedResourceType() { if (System.getenv("GAE_INSTANCE") != null) { return Resource.GaeAppFlex; } if (System.getenv("KUBERNETES_SERVICE_HOST") != null) { return Resource.Container; } if (ServiceOptions.getAppEngineAppId() != null) { return Resource....
class class_name[name] begin[{] method[getAutoDetectedResourceType, return_type[type[Resource]], modifier[private static], parameter[]] begin[{] if[binary_operation[call[System.getenv, parameter[literal["GAE_INSTANCE"]]], !=, literal[null]]] begin[{] return[member[Resource.GaeAppFle...
Keyword[private] Keyword[static] identifier[Resource] identifier[getAutoDetectedResourceType] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getenv] operator[SEP] literal[String] operator[SEP] operator[!=] Other[null] operator[SEP] { Keyword[return]...
Pointer valInMulti(final T val, final int elements) { final long ptrVal2SizeOff = MDB_VAL_STRUCT_SIZE + STRUCT_FIELD_OFFSET_SIZE; ptrArray.putLong(ptrVal2SizeOff, elements); // ptrVal2.size proxy.in(val, ptrVal, ptrValAddr); // ptrVal1.data final long totalBufferSize = ptrVal.getLong(STRUCT_FIELD_OFFSET...
class class_name[name] begin[{] method[valInMulti, return_type[type[Pointer]], modifier[default], parameter[val, elements]] begin[{] local_variable[type[long], ptrVal2SizeOff] call[ptrArray.putLong, parameter[member[.ptrVal2SizeOff], member[.elements]]] call[proxy.in, pa...
identifier[Pointer] identifier[valInMulti] operator[SEP] Keyword[final] identifier[T] identifier[val] , Keyword[final] Keyword[int] identifier[elements] operator[SEP] { Keyword[final] Keyword[long] identifier[ptrVal2SizeOff] operator[=] identifier[MDB_VAL_STRUCT_SIZE] operator[+] identifier[STRUCT_FIELD_OFFSET_...
@Override public CommerceSubscriptionEntry create(long commerceSubscriptionEntryId) { CommerceSubscriptionEntry commerceSubscriptionEntry = new CommerceSubscriptionEntryImpl(); commerceSubscriptionEntry.setNew(true); commerceSubscriptionEntry.setPrimaryKey(commerceSubscriptionEntryId); String uuid = PortalUU...
class class_name[name] begin[{] method[create, return_type[type[CommerceSubscriptionEntry]], modifier[public], parameter[commerceSubscriptionEntryId]] begin[{] local_variable[type[CommerceSubscriptionEntry], commerceSubscriptionEntry] call[commerceSubscriptionEntry.setNew, parameter[lit...
annotation[@] identifier[Override] Keyword[public] identifier[CommerceSubscriptionEntry] identifier[create] operator[SEP] Keyword[long] identifier[commerceSubscriptionEntryId] operator[SEP] { identifier[CommerceSubscriptionEntry] identifier[commerceSubscriptionEntry] operator[=] Keyword[new] identifier[CommerceS...
public List<NodeTypeData> registerNodeTypes(final List<NodeTypeValue> ntvalues, final int alreadyExistsBehaviour) throws RepositoryException { // convert to Node data. final List<NodeTypeData> nodeTypes = nodeTypeConverter.convertFromValueToData(ntvalues); return registerListOfNodeType...
class class_name[name] begin[{] method[registerNodeTypes, return_type[type[List]], modifier[public], parameter[ntvalues, alreadyExistsBehaviour]] begin[{] local_variable[type[List], nodeTypes] return[call[.registerListOfNodeTypes, parameter[member[.nodeTypes], member[.alreadyExistsBehaviour]]]]...
Keyword[public] identifier[List] operator[<] identifier[NodeTypeData] operator[>] identifier[registerNodeTypes] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[NodeTypeValue] operator[>] identifier[ntvalues] , Keyword[final] Keyword[int] identifier[alreadyExistsBehaviour] operator[SEP] Keyword[thr...
public OMVRBTreeEntry<K, V> getFirstInMemory() { OMVRBTreeEntry<K, V> node = this; OMVRBTreeEntry<K, V> prev = this; while (node != null) { prev = node; node = node.getPreviousInMemory(); } return prev; }
class class_name[name] begin[{] method[getFirstInMemory, return_type[type[OMVRBTreeEntry]], modifier[public], parameter[]] begin[{] local_variable[type[OMVRBTreeEntry], node] local_variable[type[OMVRBTreeEntry], prev] while[binary_operation[member[.node], !=, literal[null]]] beg...
Keyword[public] identifier[OMVRBTreeEntry] operator[<] identifier[K] , identifier[V] operator[>] identifier[getFirstInMemory] operator[SEP] operator[SEP] { identifier[OMVRBTreeEntry] operator[<] identifier[K] , identifier[V] operator[>] identifier[node] operator[=] Keyword[this] operator[SEP] identifier[OMVRBT...
@Override public Streamlet<R> filter(SerializablePredicate<R> filterFn) { checkNotNull(filterFn, "filterFn cannot be null"); FilterStreamlet<R> retval = new FilterStreamlet<>(this, filterFn); addChild(retval); return retval; }
class class_name[name] begin[{] method[filter, return_type[type[Streamlet]], modifier[public], parameter[filterFn]] begin[{] call[.checkNotNull, parameter[member[.filterFn], literal["filterFn cannot be null"]]] local_variable[type[FilterStreamlet], retval] call[.addChild...
annotation[@] identifier[Override] Keyword[public] identifier[Streamlet] operator[<] identifier[R] operator[>] identifier[filter] operator[SEP] identifier[SerializablePredicate] operator[<] identifier[R] operator[>] identifier[filterFn] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[filterFn] ...
public static boolean isFieldParameterizedWithPropertyType(final Field field) { if (field.getGenericType() instanceof ParameterizedType) { final ParameterizedType genericType = (ParameterizedType) field.getGenericType(); for (final Type type : genericType.getActualTypeArguments()) { ...
class class_name[name] begin[{] method[isFieldParameterizedWithPropertyType, return_type[type[boolean]], modifier[public static], parameter[field]] begin[{] if[binary_operation[call[field.getGenericType, parameter[]], instanceof, type[ParameterizedType]]] begin[{] local_variable[typ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isFieldParameterizedWithPropertyType] operator[SEP] Keyword[final] identifier[Field] identifier[field] operator[SEP] { Keyword[if] operator[SEP] identifier[field] operator[SEP] identifier[getGenericType] operator[SEP] operator[SEP] Keyword[instanceof] i...
public static <T1, T2, T3, T4> TypeFactory<Tuple4<T1, T2, T3, T4>> typeFactory( TypeFactory<T1> type1, TypeFactory<T2> type2, TypeFactory<T3> type3, ...
class class_name[name] begin[{] method[typeFactory, return_type[type[TypeFactory]], modifier[public static], parameter[type1, type2, type3, type4]] begin[{] return[ClassCreator(arguments=[MemberReference(member=type1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference...
Keyword[public] Keyword[static] operator[<] identifier[T1] , identifier[T2] , identifier[T3] , identifier[T4] operator[>] identifier[TypeFactory] operator[<] identifier[Tuple4] operator[<] identifier[T1] , identifier[T2] , identifier[T3] , identifier[T4] operator[>] operator[>] identifier[typeFactory] operator[SE...
public final void entryRuleNegatedToken() throws RecognitionException { try { // InternalXtext.g:1271:1: ( ruleNegatedToken EOF ) // InternalXtext.g:1272:1: ruleNegatedToken EOF { before(grammarAccess.getNegatedTokenRule()); pushFollow(FollowSets000....
class class_name[name] begin[{] method[entryRuleNegatedToken, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getNegatedTokenRule,...
Keyword[public] Keyword[final] Keyword[void] identifier[entryRuleNegatedToken] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { { identifier[before] operator[SEP] identifier[grammarAccess] operator[SEP] identifier[getNegatedTokenRule] operato...
public static String stackTrace( Throwable t, String separator, int depth ) { if (GreenPepper.isDebugEnabled()) depth = FULL; StringWriter sw = new StringWriter(); sw.append( t.toString() ); for (int i = 0; i < t.getStackTrace().length && i <= depth; i++) { ...
class class_name[name] begin[{] method[stackTrace, return_type[type[String]], modifier[public static], parameter[t, separator, depth]] begin[{] if[call[GreenPepper.isDebugEnabled, parameter[]]] begin[{] assign[member[.depth], member[.FULL]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[String] identifier[stackTrace] operator[SEP] identifier[Throwable] identifier[t] , identifier[String] identifier[separator] , Keyword[int] identifier[depth] operator[SEP] { Keyword[if] operator[SEP] identifier[GreenPepper] operator[SEP] identifier[isDebugEnabled] oper...
public AdminGetUserResult withMFAOptions(MFAOptionType... mFAOptions) { if (this.mFAOptions == null) { setMFAOptions(new java.util.ArrayList<MFAOptionType>(mFAOptions.length)); } for (MFAOptionType ele : mFAOptions) { this.mFAOptions.add(ele); } return thi...
class class_name[name] begin[{] method[withMFAOptions, return_type[type[AdminGetUserResult]], modifier[public], parameter[mFAOptions]] begin[{] if[binary_operation[THIS[member[None.mFAOptions]], ==, literal[null]]] begin[{] call[.setMFAOptions, parameter[ClassCreator(arg...
Keyword[public] identifier[AdminGetUserResult] identifier[withMFAOptions] operator[SEP] identifier[MFAOptionType] operator[...] identifier[mFAOptions] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[mFAOptions] operator[==] Other[null] operator[SEP] { identifier[setMFA...
public static short getShortFromBytes(byte[] buf, int offset) { short result = 0; result += buf[offset++] & 0xFF; result += ((buf[offset]) << 8); return result; }
class class_name[name] begin[{] method[getShortFromBytes, return_type[type[short]], modifier[public static], parameter[buf, offset]] begin[{] local_variable[type[short], result] assign[member[.result], binary_operation[member[.buf], &, literal[0xFF]]] assign[member[.resu...
Keyword[public] Keyword[static] Keyword[short] identifier[getShortFromBytes] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[buf] , Keyword[int] identifier[offset] operator[SEP] { Keyword[short] identifier[result] operator[=] Other[0] operator[SEP] identifier[result] operator[+=] identifier[b...
@Override public Iterator<FeatureRow> iterator() { return new Iterator<FeatureRow>() { /** * {@inheritDoc} */ @Override public boolean hasNext() { return cursor.moveToNext(); } /** * {@inheri...
class class_name[name] begin[{] method[iterator, return_type[type[Iterator]], modifier[public], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[], member=m...
annotation[@] identifier[Override] Keyword[public] identifier[Iterator] operator[<] identifier[FeatureRow] operator[>] identifier[iterator] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[Iterator] operator[<] identifier[FeatureRow] operator[>] operator[SEP] operator[SEP] { annot...
public static <T> Predicate<T> equalTo(@NullableDecl T target) { return (target == null) ? Predicates.<T>isNull() : new IsEqualToPredicate<T>(target); }
class class_name[name] begin[{] method[equalTo, return_type[type[Predicate]], modifier[public static], parameter[target]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=target, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Li...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Predicate] operator[<] identifier[T] operator[>] identifier[equalTo] operator[SEP] annotation[@] identifier[NullableDecl] identifier[T] identifier[target] operator[SEP] { Keyword[return] operator[SEP] identifier[target] operator[==]...
protected void mergeLists(GossipManager gossipManager, RemoteGossipMember senderMember, List<GossipMember> remoteList) { // if the person sending to us is in the dead list consider them up for (LocalGossipMember i : gossipManager.getDeadList()) { if (i.getId().equals(senderMember.getId())) { ...
class class_name[name] begin[{] method[mergeLists, return_type[void], modifier[protected], parameter[gossipManager, senderMember, remoteList]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getId, postfix_operators=[], prefi...
Keyword[protected] Keyword[void] identifier[mergeLists] operator[SEP] identifier[GossipManager] identifier[gossipManager] , identifier[RemoteGossipMember] identifier[senderMember] , identifier[List] operator[<] identifier[GossipMember] operator[>] identifier[remoteList] operator[SEP] { Keyword[for] operator[SE...
public static Iterable<MutableIntTuple> vonNeumannNeighborhoodIterable( IntTuple center, final int radius) { final IntTuple localCenter = IntTuples.copy(center); return new Iterable<MutableIntTuple>() { @Override public Iterator<MutableIntTuple> iterato...
class class_name[name] begin[{] method[vonNeumannNeighborhoodIterable, return_type[type[Iterable]], modifier[public static], parameter[center, radius]] begin[{] local_variable[type[IntTuple], localCenter] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=...
Keyword[public] Keyword[static] identifier[Iterable] operator[<] identifier[MutableIntTuple] operator[>] identifier[vonNeumannNeighborhoodIterable] operator[SEP] identifier[IntTuple] identifier[center] , Keyword[final] Keyword[int] identifier[radius] operator[SEP] { Keyword[final] identifier[IntTuple] identifie...
public void deserialize(ClassLoader parentClassLoader) { if (tc.isEntryEnabled()) Tr.entry(tc, "deserialize", new Object[] { this, parentClassLoader }); // Deserialize the logData object. If this fails, we may retry later. We should // always be able to deserialize, otherwise we c...
class class_name[name] begin[{] method[deserialize, return_type[void], modifier[public], parameter[parentClassLoader]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[Tr.entry, parameter[member[.tc], literal["deserialize"], ArrayCreator(dimensions=[None], initializer...
Keyword[public] Keyword[void] identifier[deserialize] operator[SEP] identifier[ClassLoader] identifier[parentClassLoader] operator[SEP] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[entry] oper...
public Observable<List<LabelTextObject>> examplesMethodAsync(UUID appId, String versionId, String modelId, ExamplesMethodOptionalParameter examplesMethodOptionalParameter) { return examplesMethodWithServiceResponseAsync(appId, versionId, modelId, examplesMethodOptionalParameter).map(new Func1<ServiceResponse<Li...
class class_name[name] begin[{] method[examplesMethodAsync, return_type[type[Observable]], modifier[public], parameter[appId, versionId, modelId, examplesMethodOptionalParameter]] begin[{] return[call[.examplesMethodWithServiceResponseAsync, parameter[member[.appId], member[.versionId], member[.modelId...
Keyword[public] identifier[Observable] operator[<] identifier[List] operator[<] identifier[LabelTextObject] operator[>] operator[>] identifier[examplesMethodAsync] operator[SEP] identifier[UUID] identifier[appId] , identifier[String] identifier[versionId] , identifier[String] identifier[modelId] , identifier[Example...
public static Collection<Thread> findThreadsByName(final String threadName, final String threadGroupName) { Validate.isTrue(threadName != null, "The thread name must not be null"); Validate.isTrue(threadGroupName != null, "The thread group name must not be null"); final Collection<ThreadGro...
class class_name[name] begin[{] method[findThreadsByName, return_type[type[Collection]], modifier[public static], parameter[threadName, threadGroupName]] begin[{] call[Validate.isTrue, parameter[binary_operation[member[.threadName], !=, literal[null]], literal["The thread name must not be null"...
Keyword[public] Keyword[static] identifier[Collection] operator[<] identifier[Thread] operator[>] identifier[findThreadsByName] operator[SEP] Keyword[final] identifier[String] identifier[threadName] , Keyword[final] identifier[String] identifier[threadGroupName] operator[SEP] { identifier[Validate] operator[SEP...
public static <T> T doAs( final Subject subject, final PrivilegedAction<T> privilegedAction ) { checkDoAsPermission(); if (privilegedAction == null) { throw new RuntimeException("No privileged action provided"); } return AccessController.doPrivileged(privilegedAction, createContext(subject...
class class_name[name] begin[{] method[doAs, return_type[type[T]], modifier[public static], parameter[subject, privilegedAction]] begin[{] call[.checkDoAsPermission, parameter[]] if[binary_operation[member[.privilegedAction], ==, literal[null]]] begin[{] ThrowStateme...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[doAs] operator[SEP] Keyword[final] identifier[Subject] identifier[subject] , Keyword[final] identifier[PrivilegedAction] operator[<] identifier[T] operator[>] identifier[privilegedAction] operator[SEP] { identifier[ch...
public void setPrefixes(NamespaceSupport nsSupport, boolean excludeXSLDecl) throws TransformerException { Enumeration decls = nsSupport.getDeclaredPrefixes(); while (decls.hasMoreElements()) { String prefix = (String) decls.nextElement(); if (null == m_declaredPrefixes) m_...
class class_name[name] begin[{] method[setPrefixes, return_type[void], modifier[public], parameter[nsSupport, excludeXSLDecl]] begin[{] local_variable[type[Enumeration], decls] while[call[decls.hasMoreElements, parameter[]]] begin[{] local_variable[type[String], prefix] ...
Keyword[public] Keyword[void] identifier[setPrefixes] operator[SEP] identifier[NamespaceSupport] identifier[nsSupport] , Keyword[boolean] identifier[excludeXSLDecl] operator[SEP] Keyword[throws] identifier[TransformerException] { identifier[Enumeration] identifier[decls] operator[=] identifier[nsSupport] operat...