code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
protected I_CmsFormatterBean getElementFormatter(CmsContainerElementBean element) { if (m_elementInstances == null) { initPageData(); } I_CmsFormatterBean formatter = null; CmsContainerBean container = m_parentContainers.get(element.getInstanceId()); if (container ==...
class class_name[name] begin[{] method[getElementFormatter, return_type[type[I_CmsFormatterBean]], modifier[protected], parameter[element]] begin[{] if[binary_operation[member[.m_elementInstances], ==, literal[null]]] begin[{] call[.initPageData, parameter[]] els...
Keyword[protected] identifier[I_CmsFormatterBean] identifier[getElementFormatter] operator[SEP] identifier[CmsContainerElementBean] identifier[element] operator[SEP] { Keyword[if] operator[SEP] identifier[m_elementInstances] operator[==] Other[null] operator[SEP] { identifier[initPageData] operator[SE...
public static NfsCreateMode fromValue(int value) { NfsCreateMode createMode = VALUES.get(value); if (createMode == null) { createMode = new NfsCreateMode(value); VALUES.put(value, createMode); } return createMode; }
class class_name[name] begin[{] method[fromValue, return_type[type[NfsCreateMode]], modifier[public static], parameter[value]] begin[{] local_variable[type[NfsCreateMode], createMode] if[binary_operation[member[.createMode], ==, literal[null]]] begin[{] assign[me...
Keyword[public] Keyword[static] identifier[NfsCreateMode] identifier[fromValue] operator[SEP] Keyword[int] identifier[value] operator[SEP] { identifier[NfsCreateMode] identifier[createMode] operator[=] identifier[VALUES] operator[SEP] identifier[get] operator[SEP] identifier[value] operator[SEP] operator[SEP] Ke...
public boolean isFinal(Path path) { // Step through the nodes based on the given path. If any intermediate // nodes are marked as final, we can just return true. Node currentNode = root; for (Term t : path.getTerms()) { Node nextNode = currentNode.getChild(t); if (nextNode == null) { return false; ...
class class_name[name] begin[{] method[isFinal, return_type[type[boolean]], modifier[public], parameter[path]] begin[{] local_variable[type[Node], currentNode] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimen...
Keyword[public] Keyword[boolean] identifier[isFinal] operator[SEP] identifier[Path] identifier[path] operator[SEP] { identifier[Node] identifier[currentNode] operator[=] identifier[root] operator[SEP] Keyword[for] operator[SEP] identifier[Term] identifier[t] operator[:] identifier[path] operator[SEP] identifier...
public static void registerHelpers(ConfigurationExtensionBuilder builder, Map<String, Helper> helpers) { Checker.checkArgumentsNotNull(builder, helpers); for (Entry<String, Helper> entry : helpers.entrySet()) { registerHelper(builder, entry.getKey(), entry.getValue()); } }
class class_name[name] begin[{] method[registerHelpers, return_type[void], modifier[public static], parameter[builder, helpers]] begin[{] call[Checker.checkArgumentsNotNull, parameter[member[.builder], member[.helpers]]] ForStatement(body=BlockStatement(label=None, statements=[Statement...
Keyword[public] Keyword[static] Keyword[void] identifier[registerHelpers] operator[SEP] identifier[ConfigurationExtensionBuilder] identifier[builder] , identifier[Map] operator[<] identifier[String] , identifier[Helper] operator[>] identifier[helpers] operator[SEP] { identifier[Checker] operator[SEP] identifie...
public void setPattern(NumberPattern pattern, int _maxSigDigits, int _minSigDigits) { Format format = pattern.format(); minIntDigits = orDefault(options.minimumIntegerDigits(), format.minimumIntegerDigits()); maxFracDigits = currencyDigits == -1 ? format.maximumFractionDigits() : currencyDigits; maxFra...
class class_name[name] begin[{] method[setPattern, return_type[void], modifier[public], parameter[pattern, _maxSigDigits, _minSigDigits]] begin[{] local_variable[type[Format], format] assign[member[.minIntDigits], call[.orDefault, parameter[call[options.minimumIntegerDigits, parameter[]...
Keyword[public] Keyword[void] identifier[setPattern] operator[SEP] identifier[NumberPattern] identifier[pattern] , Keyword[int] identifier[_maxSigDigits] , Keyword[int] identifier[_minSigDigits] operator[SEP] { identifier[Format] identifier[format] operator[=] identifier[pattern] operator[SEP] identifier[forma...
public long extract_DevLong64(Any in) throws DevFailed { long data = 0; try { data = in.extract_longlong(); } catch (BAD_OPERATION ex) { throw_bad_type("DevLong64"); } return data; }
class class_name[name] begin[{] method[extract_DevLong64, return_type[type[long]], modifier[public], parameter[in]] begin[{] local_variable[type[long], data] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=data, postfix_operators=[], prefix_opera...
Keyword[public] Keyword[long] identifier[extract_DevLong64] operator[SEP] identifier[Any] identifier[in] operator[SEP] Keyword[throws] identifier[DevFailed] { Keyword[long] identifier[data] operator[=] Other[0] operator[SEP] Keyword[try] { identifier[data] operator[=] identifier[in] operator[SEP] iden...
private int[] getLineLengths() { List<Integer> lineLengthsList = new ArrayList<Integer>(); int linelength = 0; for (int i = 0; i < source.length(); i++) { linelength++; char ch = source.charAt(i); if (ch == '\n') { lineLengthsList.add(linelength); linelength = 0; } } lineLengths...
class class_name[name] begin[{] method[getLineLengths, return_type[type[int]], modifier[private], parameter[]] begin[{] local_variable[type[List], lineLengthsList] local_variable[type[int], linelength] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expressi...
Keyword[private] Keyword[int] operator[SEP] operator[SEP] identifier[getLineLengths] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Integer] operator[>] identifier[lineLengthsList] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[Integer] operator[>] operator[SEP] oper...
private <T> Future<T> invoke(String methodName, Object argument, Class<T> returnType, Map<String, String> extraHeaders) { return doInvoke(methodName, argument, returnType, extraHeaders, new JsonRpcFuture<T>()); }
class class_name[name] begin[{] method[invoke, return_type[type[Future]], modifier[private], parameter[methodName, argument, returnType, extraHeaders]] begin[{] return[call[.doInvoke, parameter[member[.methodName], member[.argument], member[.returnType], member[.extraHeaders], ClassCreator(arguments=[]...
Keyword[private] operator[<] identifier[T] operator[>] identifier[Future] operator[<] identifier[T] operator[>] identifier[invoke] operator[SEP] identifier[String] identifier[methodName] , identifier[Object] identifier[argument] , identifier[Class] operator[<] identifier[T] operator[>] identifier[returnType] , ident...
@Override public byte[] decompressRow(final int pageoffset, final int srcLength, final int resultLength, final byte[] page) { byte[] srcRow = Arrays.copyOfRange(page, pageoffset, srcLength + pageoffset); byte[] outRow = new byte[resultLength]; int srcOffset = 0; int outOffset = 0; ...
class class_name[name] begin[{] method[decompressRow, return_type[type[byte]], modifier[public], parameter[pageoffset, srcLength, resultLength, page]] begin[{] local_variable[type[byte], srcRow] local_variable[type[byte], outRow] local_variable[type[int], srcOffset] local_variab...
annotation[@] identifier[Override] Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[decompressRow] operator[SEP] Keyword[final] Keyword[int] identifier[pageoffset] , Keyword[final] Keyword[int] identifier[srcLength] , Keyword[final] Keyword[int] identifier[resultLength] , Keyword[final] Keyword[b...
public void addListeners() { super.addListeners(); this.getMainRecord().getField(Registration.RESOURCE_ID).addListener(new ReadSecondaryHandler(this.getRecord(Resource.RESOURCE_FILE))); }
class class_name[name] begin[{] method[addListeners, return_type[void], modifier[public], parameter[]] begin[{] SuperMethodInvocation(arguments=[], member=addListeners, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) THIS[call[None.g...
Keyword[public] Keyword[void] identifier[addListeners] operator[SEP] operator[SEP] { Keyword[super] operator[SEP] identifier[addListeners] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[getMainRecord] operator[SEP] operator[SEP] operator[SEP] identifier[getField] operator[SEP] i...
@POST public Response postOrganization(@Auth final DbCredential credential, final Organization organization){ if(!credential.getRoles().contains(DbCredential.AvailableRoles.DATA_UPDATER)){ throw new WebApplicationException(Response.status(Response.Status.UNAUTHORIZED).build()); } ...
class class_name[name] begin[{] method[postOrganization, return_type[type[Response]], modifier[public], parameter[credential, organization]] begin[{] if[call[credential.getRoles, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Mem...
annotation[@] identifier[POST] Keyword[public] identifier[Response] identifier[postOrganization] operator[SEP] annotation[@] identifier[Auth] Keyword[final] identifier[DbCredential] identifier[credential] , Keyword[final] identifier[Organization] identifier[organization] operator[SEP] { Keyword[if] operator[SEP...
@SuppressWarnings("unchecked") public void mousePressed(MouseEvent e) { if(checkModifiers(e)) { final VisualizationViewer<String,String> vv = (VisualizationViewer<String,String>)e.getSource(); final Point2D p = e.getPoint(); GraphElementAccessor<String,String> pickSupport = vv.ge...
class class_name[name] begin[{] method[mousePressed, return_type[void], modifier[public], parameter[e]] begin[{] if[call[.checkModifiers, parameter[member[.e]]]] begin[{] local_variable[type[VisualizationViewer], vv] local_variable[type[Point2D], p] local_var...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[mousePressed] operator[SEP] identifier[MouseEvent] identifier[e] operator[SEP] { Keyword[if] operator[SEP] identifier[checkModifiers] operator[SEP] identifier[e] operator[SEP] operator[...
@Override protected DataSource createInstance() throws Exception { DBInstance dbInstance = getDbInstance(getDbInstanceIdentifier()); // If there is no read replica available, delegate to super class if (dbInstance.getReadReplicaDBInstanceIdentifiers().isEmpty()) { return super.createInstance(); } HashMa...
class class_name[name] begin[{] method[createInstance, return_type[type[DataSource]], modifier[protected], parameter[]] begin[{] local_variable[type[DBInstance], dbInstance] if[call[dbInstance.getReadReplicaDBInstanceIdentifiers, parameter[]]] begin[{] return[SuperMethodInvo...
annotation[@] identifier[Override] Keyword[protected] identifier[DataSource] identifier[createInstance] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[DBInstance] identifier[dbInstance] operator[=] identifier[getDbInstance] operator[SEP] identifier[getDbInstanceIdentifier] operato...
public String packageStatement( PackageDescrBuilder pkg ) throws RecognitionException { String pkgName = null; try { helper.start( pkg, PackageDescrBuilder.class, null ); match( input, DRL5Lexer.ID, ...
class class_name[name] begin[{] method[packageStatement, return_type[type[String]], modifier[public], parameter[pkg]] begin[{] local_variable[type[String], pkgName] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=pkg, postfix_operators=[], p...
Keyword[public] identifier[String] identifier[packageStatement] operator[SEP] identifier[PackageDescrBuilder] identifier[pkg] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[String] identifier[pkgName] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[helper] ...
public void remove(BitSet other) { int idx = Math.min(wlen, other.wlen); long [] thisArr = this.bits; long [] otherArr = other.bits; while (--idx >= 0) { thisArr[idx] &= ~otherArr[idx]; } }
class class_name[name] begin[{] method[remove, return_type[void], modifier[public], parameter[other]] begin[{] local_variable[type[int], idx] local_variable[type[long], thisArr] local_variable[type[long], otherArr] while[binary_operation[member[.idx], >=, literal[0]]] be...
Keyword[public] Keyword[void] identifier[remove] operator[SEP] identifier[BitSet] identifier[other] operator[SEP] { Keyword[int] identifier[idx] operator[=] identifier[Math] operator[SEP] identifier[min] operator[SEP] identifier[wlen] , identifier[other] operator[SEP] identifier[wlen] operator[SEP] operator[SEP...
public final void write (@Nonnull final NODETYPE aNode, @Nonnull @WillNotClose final Writer aWriter) { final XMLEmitter aXMLWriter = createXMLEmitter (aWriter, m_aSettings); // No parent node // No previous and no next sibling emitNode (aXMLWriter, null, null, aNode, null); // Flush is important f...
class class_name[name] begin[{] method[write, return_type[void], modifier[final public], parameter[aNode, aWriter]] begin[{] local_variable[type[XMLEmitter], aXMLWriter] call[.emitNode, parameter[member[.aXMLWriter], literal[null], literal[null], member[.aNode], literal[null]]] ...
Keyword[public] Keyword[final] Keyword[void] identifier[write] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[NODETYPE] identifier[aNode] , annotation[@] identifier[Nonnull] annotation[@] identifier[WillNotClose] Keyword[final] identifier[Writer] identifier[aWriter] operator[SEP] { Ke...
public static void generateParamSerializer(BindTypeContext context, String propertyName, TypeName parameterTypeName, PersistType persistType) { propertyName = SQLiteDaoDefinition.PARAM_SERIALIZER_PREFIX + propertyName; MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder(propertyName).addJavadoc("for param ...
class class_name[name] begin[{] method[generateParamSerializer, return_type[void], modifier[public static], parameter[context, propertyName, parameterTypeName, persistType]] begin[{] assign[member[.propertyName], binary_operation[member[SQLiteDaoDefinition.PARAM_SERIALIZER_PREFIX], +, member[.p...
Keyword[public] Keyword[static] Keyword[void] identifier[generateParamSerializer] operator[SEP] identifier[BindTypeContext] identifier[context] , identifier[String] identifier[propertyName] , identifier[TypeName] identifier[parameterTypeName] , identifier[PersistType] identifier[persistType] operator[SEP] { i...
public static final <T> Function<T,T> ifFalseThen( final Type<T> targetType, final IFunction<? super T, Boolean> condition, final IFunction<? super T,? extends T> thenFunction) { return new IfThen<T>(false, targetType, condition, thenFunction); }
class class_name[name] begin[{] method[ifFalseThen, return_type[type[Function]], modifier[final public static], parameter[targetType, condition, thenFunction]] begin[{] return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), MemberRe...
Keyword[public] Keyword[static] Keyword[final] operator[<] identifier[T] operator[>] identifier[Function] operator[<] identifier[T] , identifier[T] operator[>] identifier[ifFalseThen] operator[SEP] Keyword[final] identifier[Type] operator[<] identifier[T] operator[>] identifier[targetType] , Keyword[final] identifier...
private void updateReferencePoint(List<? extends Solution<?>> solutionList) { double[] maxObjectives = new double[numberOfObjectives]; for (int i = 0; i < numberOfObjectives; i++) { maxObjectives[i] = 0; } for (int i = 0; i < solutionList.size(); i++) { for (int j = 0; j < numberOfObjective...
class class_name[name] begin[{] method[updateReferencePoint, return_type[void], modifier[private], parameter[solutionList]] begin[{] local_variable[type[double], maxObjectives] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberR...
Keyword[private] Keyword[void] identifier[updateReferencePoint] operator[SEP] identifier[List] operator[<] operator[?] Keyword[extends] identifier[Solution] operator[<] operator[?] operator[>] operator[>] identifier[solutionList] operator[SEP] { Keyword[double] operator[SEP] operator[SEP] identifier[maxObjective...
@Override public <OUT> IPromise<OUT> catchError(final Function<Object, IPromise<OUT>> function) { Promise res = new Promise<>(); then( new Callback<T>() { @Override public void complete(T result, Object error) { if ( ! Actor.isError(error) ) { ...
class class_name[name] begin[{] method[catchError, return_type[type[IPromise]], modifier[public], parameter[function]] begin[{] local_variable[type[Promise], res] call[.then, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[OUT] operator[>] identifier[IPromise] operator[<] identifier[OUT] operator[>] identifier[catchError] operator[SEP] Keyword[final] identifier[Function] operator[<] identifier[Object] , identifier[IPromise] operator[<] identifier[OUT] operator[>] ...
public List<String> getModulesToInstall() { if ((m_installModules == null) || m_installModules.isEmpty()) { return Collections.emptyList(); } return Collections.unmodifiableList(m_installModules); }
class class_name[name] begin[{] method[getModulesToInstall, return_type[type[List]], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[member[.m_installModules], ==, literal[null]], ||, call[m_installModules.isEmpty, parameter[]]]] begin[{] return[call[Col...
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getModulesToInstall] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[m_installModules] operator[==] Other[null] operator[SEP] operator[||] identifier[m_installModules] operator[SEP] identifier[...
private InputStream getDefault(String fileName) { InputStream result = null; try { result = new BufferedInputStream(new FileInputStream(fileName)); } catch (IOException ignore) { } return result; }
class class_name[name] begin[{] method[getDefault, return_type[type[InputStream]], modifier[private], parameter[fileName]] begin[{] local_variable[type[InputStream], result] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=result, postfix_operator...
Keyword[private] identifier[InputStream] identifier[getDefault] operator[SEP] identifier[String] identifier[fileName] operator[SEP] { identifier[InputStream] identifier[result] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[result] operator[=] Keyword[new] identifier[BufferedInputStre...
@Override public synchronized void stop(final StopContext context) { httpManagementConsumer.accept(null); ListenerRegistry lr = listenerRegistrySupplier.get(); if(lr != null) { lr.removeListener(HTTP_MANAGEMENT); lr.removeListener(HTTPS_MANAGEMENT); } ...
class class_name[name] begin[{] method[stop, return_type[void], modifier[synchronized public], parameter[context]] begin[{] call[httpManagementConsumer.accept, parameter[literal[null]]] local_variable[type[ListenerRegistry], lr] if[binary_operation[member[.lr], !=, liter...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[void] identifier[stop] operator[SEP] Keyword[final] identifier[StopContext] identifier[context] operator[SEP] { identifier[httpManagementConsumer] operator[SEP] identifier[accept] operator[SEP] Other[null] operator[SEP] operator[SEP...
public static tunnelglobal_binding get(nitro_service service) throws Exception{ tunnelglobal_binding obj = new tunnelglobal_binding(); tunnelglobal_binding response = (tunnelglobal_binding) obj.get_resource(service); return response; }
class class_name[name] begin[{] method[get, return_type[type[tunnelglobal_binding]], modifier[public static], parameter[service]] begin[{] local_variable[type[tunnelglobal_binding], obj] local_variable[type[tunnelglobal_binding], response] return[member[.response]] end[}] END[}]
Keyword[public] Keyword[static] identifier[tunnelglobal_binding] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] operator[SEP] Keyword[throws] identifier[Exception] { identifier[tunnelglobal_binding] identifier[obj] operator[=] Keyword[new] identifier[tunnelglobal_binding] operator[SE...
@Override public void registerStoppableAsynchConsumerCallback( StoppableAsynchConsumerCallback callback, int maxActiveMessages, long messageLockExpi...
class class_name[name] begin[{] method[registerStoppableAsynchConsumerCallback, return_type[void], modifier[public], parameter[callback, maxActiveMessages, messageLockExpiry, maxBatchSize, unrecoverableReliability, inLine, extendedMessageOrderingContext, maxSequentialFailures, hiddenMessageDelay]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[registerStoppableAsynchConsumerCallback] operator[SEP] identifier[StoppableAsynchConsumerCallback] identifier[callback] , Keyword[int] identifier[maxActiveMessages] , Keyword[long] identifier[messageLockExpiry] , Keyword[int] identifier[maxB...
protected static void extractFile(ZipInputStream zipIn, String filePath) throws IOException { BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(filePath)); byte[] bytesIn = new byte[BUFFER_SIZE]; int read = 0; while ((read = zipIn.read(bytesIn)) != -1) { bos.write(bytesIn, 0, read...
class class_name[name] begin[{] method[extractFile, return_type[void], modifier[static protected], parameter[zipIn, filePath]] begin[{] local_variable[type[BufferedOutputStream], bos] local_variable[type[byte], bytesIn] local_variable[type[int], read] while[binary_operat...
Keyword[protected] Keyword[static] Keyword[void] identifier[extractFile] operator[SEP] identifier[ZipInputStream] identifier[zipIn] , identifier[String] identifier[filePath] operator[SEP] Keyword[throws] identifier[IOException] { identifier[BufferedOutputStream] identifier[bos] operator[=] Keyword[new] identifi...
public void add(Task task) { synchronized(LOCK) { //terminated task will be selected immediately before start task.setListener(this); this.task[wi] = task; wi++; } }
class class_name[name] begin[{] method[add, return_type[void], modifier[public], parameter[task]] begin[{] SYNCHRONIZED[member[.LOCK]] BEGIN[{] call[task.setListener, parameter[THIS[]]] assign[THIS[member[None.task]ArraySelector(index=MemberRefere...
Keyword[public] Keyword[void] identifier[add] operator[SEP] identifier[Task] identifier[task] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[LOCK] operator[SEP] { identifier[task] operator[SEP] identifier[setListener] operator[SEP] Keyword[this] operator[SEP] operator[SEP] Keyword[this...
public synchronized void storeMapItems(Tile tile, List<MapElementContainer> mapItems) { this.put(tile, LayerUtil.collisionFreeOrdered(mapItems)); this.version += 1; }
class class_name[name] begin[{] method[storeMapItems, return_type[void], modifier[synchronized public], parameter[tile, mapItems]] begin[{] THIS[call[None.put, parameter[member[.tile], call[LayerUtil.collisionFreeOrdered, parameter[member[.mapItems]]]]]] assign[THIS[member[None....
Keyword[public] Keyword[synchronized] Keyword[void] identifier[storeMapItems] operator[SEP] identifier[Tile] identifier[tile] , identifier[List] operator[<] identifier[MapElementContainer] operator[>] identifier[mapItems] operator[SEP] { Keyword[this] operator[SEP] identifier[put] operator[SEP] identifier[tile]...
@SafeVarargs public static <T> Collection<T> apply(Filter<T> filter, T ... elements) { List<T> list = new ArrayList<T>(); if(elements != null) { for(T element : elements) { list.add(element); } } return apply(filter, list); }
class class_name[name] begin[{] method[apply, return_type[type[Collection]], modifier[public static], parameter[filter, elements]] begin[{] local_variable[type[List], list] if[binary_operation[member[.elements], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(l...
annotation[@] identifier[SafeVarargs] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Collection] operator[<] identifier[T] operator[>] identifier[apply] operator[SEP] identifier[Filter] operator[<] identifier[T] operator[>] identifier[filter] , identifier[T] operator[...] identifier[e...
public EEnum getGSMXMODE() { if (gsmxmodeEEnum == null) { gsmxmodeEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(148); } return gsmxmodeEEnum; }
class class_name[name] begin[{] method[getGSMXMODE, return_type[type[EEnum]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.gsmxmodeEEnum], ==, literal[null]]] begin[{] assign[member[.gsmxmodeEEnum], Cast(expression=MethodInvocation(arguments=[Membe...
Keyword[public] identifier[EEnum] identifier[getGSMXMODE] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[gsmxmodeEEnum] operator[==] Other[null] operator[SEP] { identifier[gsmxmodeEEnum] operator[=] operator[SEP] identifier[EEnum] operator[SEP] identifier[EPackage] operator[SEP] id...
@Override public Document fromString(String xml) throws IOException { ByteArrayInputStream stream = null; try { stream = new ByteArrayInputStream(xml.getBytes(Charsets.UTF_8)); return fromInputStream( stream, Charsets.UTF_8 ...
class class_name[name] begin[{] method[fromString, return_type[type[Document]], modifier[public], parameter[xml]] begin[{] local_variable[type[ByteArrayInputStream], stream] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=stream, postfix_operator...
annotation[@] identifier[Override] Keyword[public] identifier[Document] identifier[fromString] operator[SEP] identifier[String] identifier[xml] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ByteArrayInputStream] identifier[stream] operator[=] Other[null] operator[SEP] Keyword[try] { ...
private byte[] replaceInXml(CmsFile cmsFile) throws Exception { Exception e = null; CmsXmlContent xmlContent = CmsXmlContentFactory.unmarshal(getCms(), cmsFile); Pattern pattern = Pattern.compile(m_settings.getSearchpattern()); // loop over the locales of the content boolean mod...
class class_name[name] begin[{] method[replaceInXml, return_type[type[byte]], modifier[private], parameter[cmsFile]] begin[{] local_variable[type[Exception], e] local_variable[type[CmsXmlContent], xmlContent] local_variable[type[Pattern], pattern] local_variable[type[boolean], m...
Keyword[private] Keyword[byte] operator[SEP] operator[SEP] identifier[replaceInXml] operator[SEP] identifier[CmsFile] identifier[cmsFile] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Exception] identifier[e] operator[=] Other[null] operator[SEP] identifier[CmsXmlContent] identifier[xmlContent...
public List<Future<Boolean>> primeConnectionsAsync(final List<Server> servers, final PrimeConnectionListener listener) { if (servers == null) { return Collections.emptyList(); } List<Server> allServers = new ArrayList<Server>(); allServers.addAll(servers); if (allServ...
class class_name[name] begin[{] method[primeConnectionsAsync, return_type[type[List]], modifier[public], parameter[servers, listener]] begin[{] if[binary_operation[member[.servers], ==, literal[null]]] begin[{] return[call[Collections.emptyList, parameter[]]] else begin[{] N...
Keyword[public] identifier[List] operator[<] identifier[Future] operator[<] identifier[Boolean] operator[>] operator[>] identifier[primeConnectionsAsync] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[Server] operator[>] identifier[servers] , Keyword[final] identifier[PrimeConnectionListener] ide...
public void initialize(WebAppConfiguration config, DeployedModule moduleConfig, // BEGIN: List extensionFactories) throws ServletException, Throwable { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) logger.entering(CLASS_NAME, "I...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[public], parameter[config, moduleConfig, extensionFactories]] begin[{] if[binary_operation[call[com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[logger.isLoggable, parameter[member[Level.FIN...
Keyword[public] Keyword[void] identifier[initialize] operator[SEP] identifier[WebAppConfiguration] identifier[config] , identifier[DeployedModule] identifier[moduleConfig] , identifier[List] identifier[extensionFactories] operator[SEP] Keyword[throws] identifier[ServletException] , identifier[Throwable] { Key...
public String getNameAndAttributes() { Formatter sbuff = new Formatter(); sbuff.format("Structure "); getNameAndDimensions(sbuff, false, true); sbuff.format("%n"); for (Attribute att : attributes.getAttributes()) { sbuff.format(" %s:%s;%n",getShortName(), att.toString()); } return sbu...
class class_name[name] begin[{] method[getNameAndAttributes, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[Formatter], sbuff] call[sbuff.format, parameter[literal["Structure "]]] call[.getNameAndDimensions, parameter[member[.sbuff...
Keyword[public] identifier[String] identifier[getNameAndAttributes] operator[SEP] operator[SEP] { identifier[Formatter] identifier[sbuff] operator[=] Keyword[new] identifier[Formatter] operator[SEP] operator[SEP] operator[SEP] identifier[sbuff] operator[SEP] identifier[format] operator[SEP] literal[String] opera...
public boolean doSeek(String strSeekSign) throws DBException { Object objData = m_pTable.seek(strSeekSign, this); if (objData instanceof BaseBuffer) { this.setDataSource(objData); return true; // Success } else if (objData instanceof Boolean) ...
class class_name[name] begin[{] method[doSeek, return_type[type[boolean]], modifier[public], parameter[strSeekSign]] begin[{] local_variable[type[Object], objData] if[binary_operation[member[.objData], instanceof, type[BaseBuffer]]] begin[{] THIS[call[None.setDat...
Keyword[public] Keyword[boolean] identifier[doSeek] operator[SEP] identifier[String] identifier[strSeekSign] operator[SEP] Keyword[throws] identifier[DBException] { identifier[Object] identifier[objData] operator[=] identifier[m_pTable] operator[SEP] identifier[seek] operator[SEP] identifier[strSeekSign] , Keyw...
@Override public ListConnectorDefinitionVersionsResult listConnectorDefinitionVersions(ListConnectorDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListConnectorDefinitionVersions(request); }
class class_name[name] begin[{] method[listConnectorDefinitionVersions, return_type[type[ListConnectorDefinitionVersionsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeListCo...
annotation[@] identifier[Override] Keyword[public] identifier[ListConnectorDefinitionVersionsResult] identifier[listConnectorDefinitionVersions] operator[SEP] identifier[ListConnectorDefinitionVersionsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] o...
public void setSecurityGroupIds(java.util.Collection<String> securityGroupIds) { if (securityGroupIds == null) { this.securityGroupIds = null; return; } this.securityGroupIds = new java.util.ArrayList<String>(securityGroupIds); }
class class_name[name] begin[{] method[setSecurityGroupIds, return_type[void], modifier[public], parameter[securityGroupIds]] begin[{] if[binary_operation[member[.securityGroupIds], ==, literal[null]]] begin[{] assign[THIS[member[None.securityGroupIds]], literal[null]] ...
Keyword[public] Keyword[void] identifier[setSecurityGroupIds] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[securityGroupIds] operator[SEP] { Keyword[if] operator[SEP] identifier[securityGroupIds] operator[...
@Override public AddApplicationInputProcessingConfigurationResult addApplicationInputProcessingConfiguration(AddApplicationInputProcessingConfigurationRequest request) { request = beforeClientExecution(request); return executeAddApplicationInputProcessingConfiguration(request); }
class class_name[name] begin[{] method[addApplicationInputProcessingConfiguration, return_type[type[AddApplicationInputProcessingConfigurationResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] retu...
annotation[@] identifier[Override] Keyword[public] identifier[AddApplicationInputProcessingConfigurationResult] identifier[addApplicationInputProcessingConfiguration] operator[SEP] identifier[AddApplicationInputProcessingConfigurationRequest] identifier[request] operator[SEP] { identifier[request] operator[=] id...
public static double compuNatureFreq(NatureTerm from, NatureTerm to) { double twoWordFreq = NatureLibrary.getTwoNatureFreq(from.termNature.nature, to.termNature.nature); if (twoWordFreq == 0) { twoWordFreq = Math.log(from.selfScore + to.selfScore); } double score = from.score...
class class_name[name] begin[{] method[compuNatureFreq, return_type[type[double]], modifier[public static], parameter[from, to]] begin[{] local_variable[type[double], twoWordFreq] if[binary_operation[member[.twoWordFreq], ==, literal[0]]] begin[{] assign[member[....
Keyword[public] Keyword[static] Keyword[double] identifier[compuNatureFreq] operator[SEP] identifier[NatureTerm] identifier[from] , identifier[NatureTerm] identifier[to] operator[SEP] { Keyword[double] identifier[twoWordFreq] operator[=] identifier[NatureLibrary] operator[SEP] identifier[getTwoNatureFreq] opera...
@Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TypesPackage.JVM_OPERATION__STATIC: setStatic((Boolean)newValue); return; case TypesPackage.JVM_OPERATION__FINAL: setFinal((Boolean)newValue); return; case TypesPackage.JVM_OPERATION__ABSTRACT: setA...
class class_name[name] begin[{] method[eSet, return_type[void], modifier[public], parameter[featureID, newValue]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=JVM_OPERATION__STATIC, postfix_operators=[], prefix_operators=[], qualifier=TypesPackage, selectors=[])], st...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eSet] operator[SEP] Keyword[int] identifier[featureID] , identifier[Object] identifier[newValue] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[TypesPackage] opera...
public int addTerm(Term term) { if (term == null) { throw new InvalidArgument("term is null"); } // if we have already seen this term, return its index Integer visitedIndex = visitedTerms.get(term); if (visitedIndex != null) { return visitedIndex; ...
class class_name[name] begin[{] method[addTerm, return_type[type[int]], modifier[public], parameter[term]] begin[{] if[binary_operation[member[.term], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qu...
Keyword[public] Keyword[int] identifier[addTerm] operator[SEP] identifier[Term] identifier[term] operator[SEP] { Keyword[if] operator[SEP] identifier[term] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[InvalidArgument] operator[SEP] literal[String] operator[SEP] opera...
private void writeCharsToOut(char[] cbuf, int len) throws IOException { if(len > 0) { if(len == 1) { out.write(cbuf[0]); } else { out.write(cbuf, 0, len); } } }
class class_name[name] begin[{] method[writeCharsToOut, return_type[void], modifier[private], parameter[cbuf, len]] begin[{] if[binary_operation[member[.len], >, literal[0]]] begin[{] if[binary_operation[member[.len], ==, literal[1]]] begin[{] ...
Keyword[private] Keyword[void] identifier[writeCharsToOut] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[cbuf] , Keyword[int] identifier[len] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[len] operator[>] Other[0] operator[SEP] { Key...
public NamingEnumeration list(String name) throws NamingException { if ("".equals(name)) { // listing this context return new FlatNames(bindings.keys()); } // Perhaps `name' names a context Object target = lookup(name); if (target instanceof ...
class class_name[name] begin[{] method[list, return_type[type[NamingEnumeration]], modifier[public], parameter[name]] begin[{] if[literal[""]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=keys, postfix_operators=[], prefix_operators=[], qualifier=bin...
Keyword[public] identifier[NamingEnumeration] identifier[list] operator[SEP] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[NamingException] { Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[name] operator[SEP] operator[SEP] { ...
public void setWebsiteCertificateAuthorities(java.util.Collection<WebsiteCaSummary> websiteCertificateAuthorities) { if (websiteCertificateAuthorities == null) { this.websiteCertificateAuthorities = null; return; } this.websiteCertificateAuthorities = new java.util.Array...
class class_name[name] begin[{] method[setWebsiteCertificateAuthorities, return_type[void], modifier[public], parameter[websiteCertificateAuthorities]] begin[{] if[binary_operation[member[.websiteCertificateAuthorities], ==, literal[null]]] begin[{] assign[THIS[member[No...
Keyword[public] Keyword[void] identifier[setWebsiteCertificateAuthorities] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[WebsiteCaSummary] operator[>] identifier[websiteCertificateAuthorities] operator[SEP] { Keyword[if] operator[SEP] id...
public static String readHex(InputStream in, int length, boolean toLowerCase) throws IORuntimeException { return HexUtil.encodeHexStr(readBytes(in, length), toLowerCase); }
class class_name[name] begin[{] method[readHex, return_type[type[String]], modifier[public static], parameter[in, length, toLowerCase]] begin[{] return[call[HexUtil.encodeHexStr, parameter[call[.readBytes, parameter[member[.in], member[.length]]], member[.toLowerCase]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[readHex] operator[SEP] identifier[InputStream] identifier[in] , Keyword[int] identifier[length] , Keyword[boolean] identifier[toLowerCase] operator[SEP] Keyword[throws] identifier[IORuntimeException] { Keyword[return] identifier[HexUtil] operator[SE...
public static boolean isMixedCase(final CharSequence cs) { if (isEmpty(cs) || cs.length() == 1) { return false; } boolean containsUppercase = false; boolean containsLowercase = false; final int sz = cs.length(); for (int i = 0; i < sz; i++) { if (c...
class class_name[name] begin[{] method[isMixedCase, return_type[type[boolean]], modifier[public static], parameter[cs]] begin[{] if[binary_operation[call[.isEmpty, parameter[member[.cs]]], ||, binary_operation[call[cs.length, parameter[]], ==, literal[1]]]] begin[{] return[literal[f...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isMixedCase] operator[SEP] Keyword[final] identifier[CharSequence] identifier[cs] operator[SEP] { Keyword[if] operator[SEP] identifier[isEmpty] operator[SEP] identifier[cs] operator[SEP] operator[||] identifier[cs] operator[SEP] identifier[length] opera...
@Nonnull public static <T> LToLongFunctionBuilder<T> toLongFunction(Consumer<LToLongFunction<T>> consumer) { return new LToLongFunctionBuilder(consumer); }
class class_name[name] begin[{] method[toLongFunction, return_type[type[LToLongFunctionBuilder]], modifier[public static], parameter[consumer]] begin[{] return[ClassCreator(arguments=[MemberReference(member=consumer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, cons...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[LToLongFunctionBuilder] operator[<] identifier[T] operator[>] identifier[toLongFunction] operator[SEP] identifier[Consumer] operator[<] identifier[LToLongFunction] operator[<] identifier[T] operator[>] ope...
public Set<String> getPropAsSet(String key, String def) { return ImmutableSet.copyOf(LIST_SPLITTER.splitToList(getProp(key, def))); }
class class_name[name] begin[{] method[getPropAsSet, return_type[type[Set]], modifier[public], parameter[key, def]] begin[{] return[call[ImmutableSet.copyOf, parameter[call[LIST_SPLITTER.splitToList, parameter[call[.getProp, parameter[member[.key], member[.def]]]]]]]] end[}] END[}]
Keyword[public] identifier[Set] operator[<] identifier[String] operator[>] identifier[getPropAsSet] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[def] operator[SEP] { Keyword[return] identifier[ImmutableSet] operator[SEP] identifier[copyOf] operator[SEP] identifier[LIST_SPLITT...
@Override public int close() throws IOException { if (!writer.isClosed()) { int currentPositionInSegment = getCurrentPositionInSegment(); // write last segment writer.writeBlock(getCurrentSegment()); clear(); writer.getReturnQueue().clear(); this.writer.close(); return currentPositionInSegment...
class class_name[name] begin[{] method[close, return_type[type[int]], modifier[public], parameter[]] begin[{] if[call[writer.isClosed, parameter[]]] begin[{] local_variable[type[int], currentPositionInSegment] call[writer.writeBlock, parameter[call[.getCurren...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[!] identifier[writer] operator[SEP] identifier[isClosed] operator[SEP] operator[SEP] operator[SEP] { Keyword[int] i...
public float generate() { try { FloatReference ref = queue.take(); float value = ref.getValue(); return value; } catch (InterruptedException ex) { throw new IllegalArgumentException(ex); } }
class class_name[name] begin[{] method[generate, return_type[type[float]], modifier[public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=take, postfix_operators=[], pr...
Keyword[public] Keyword[float] identifier[generate] operator[SEP] operator[SEP] { Keyword[try] { identifier[FloatReference] identifier[ref] operator[=] identifier[queue] operator[SEP] identifier[take] operator[SEP] operator[SEP] operator[SEP] Keyword[float] identifier[value] operator[=] identifier[ref...
static String[] split( String selectors ) { ArrayList<String> result = null; int length = selectors.length(); char quote = 0; int off = 0; for( int i = 0; i < length; i++ ) { char ch = selectors.charAt( i ); switch( ch ) { case ',': ...
class class_name[name] begin[{] method[split, return_type[type[String]], modifier[static], parameter[selectors]] begin[{] local_variable[type[ArrayList], result] local_variable[type[int], length] local_variable[type[char], quote] local_variable[type[int], off] ForStateme...
Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[split] operator[SEP] identifier[String] identifier[selectors] operator[SEP] { identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[result] operator[=] Other[null] operator[SEP] Keyword[int] identifier[length] operato...
private static List<Profile> readProfileFromClasspath(String name) throws IOException { List<Profile> ret = new ArrayList<>(); ret.addAll(readAllFromClasspath(name, "default")); ret.addAll(readAllFromClasspath(name, "")); return ret; }
class class_name[name] begin[{] method[readProfileFromClasspath, return_type[type[List]], modifier[private static], parameter[name]] begin[{] local_variable[type[List], ret] call[ret.addAll, parameter[call[.readAllFromClasspath, parameter[member[.name], literal["default"]]]]] ...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[Profile] operator[>] identifier[readProfileFromClasspath] operator[SEP] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[IOException] { identifier[List] operator[<] identifier[Profile] operator[>] identifier[ret]...
protected void parseAsynchronousContinuation(Element element, ActivityImpl activity) { boolean isAsyncBefore = isAsyncBefore(element); boolean isAsyncAfter = isAsyncAfter(element); boolean exclusive = isExclusive(element); // set properties on activity activity.setAsyncBefore(isAsyncBefore, exclus...
class class_name[name] begin[{] method[parseAsynchronousContinuation, return_type[void], modifier[protected], parameter[element, activity]] begin[{] local_variable[type[boolean], isAsyncBefore] local_variable[type[boolean], isAsyncAfter] local_variable[type[boolean], exclusive] ...
Keyword[protected] Keyword[void] identifier[parseAsynchronousContinuation] operator[SEP] identifier[Element] identifier[element] , identifier[ActivityImpl] identifier[activity] operator[SEP] { Keyword[boolean] identifier[isAsyncBefore] operator[=] identifier[isAsyncBefore] operator[SEP] identifier[element] oper...
protected static String makeArgLine(Object mojo, Config.AgentMode junitMode, String currentArgLine) throws Exception { URL agentJarURL = Types.extractJarURL(EkstaziAgent.class); String agentAbsolutePath = new File(agentJarURL.toURI().getSchemeSpecificPart()).getAbsolutePath(); String...
class class_name[name] begin[{] method[makeArgLine, return_type[type[String]], modifier[static protected], parameter[mojo, junitMode, currentArgLine]] begin[{] local_variable[type[URL], agentJarURL] local_variable[type[String], agentAbsolutePath] local_variable[type[String], more] ...
Keyword[protected] Keyword[static] identifier[String] identifier[makeArgLine] operator[SEP] identifier[Object] identifier[mojo] , identifier[Config] operator[SEP] identifier[AgentMode] identifier[junitMode] , identifier[String] identifier[currentArgLine] operator[SEP] Keyword[throws] identifier[Exception] { id...
public void addRepository(String repository) { // Ignore any of the standard repositories, as they are set up using // either addJar or addRepository if (repository.startsWith("/WEB-INF/lib") || repository.startsWith("/WEB-INF/classes")) return; // Add this repo...
class class_name[name] begin[{] method[addRepository, return_type[void], modifier[public], parameter[repository]] begin[{] if[binary_operation[call[repository.startsWith, parameter[literal["/WEB-INF/lib"]]], ||, call[repository.startsWith, parameter[literal["/WEB-INF/classes"]]]]] begin[{] retu...
Keyword[public] Keyword[void] identifier[addRepository] operator[SEP] identifier[String] identifier[repository] operator[SEP] { Keyword[if] operator[SEP] identifier[repository] operator[SEP] identifier[startsWith] operator[SEP] literal[String] operator[SEP] operator[||] identifier[repository] operator[SEP] ident...
@Override public void validate(ValidationHelper helper, Context context, String key, ExternalDocumentation t) { ValidatorUtils.validateRequiredField(t.getUrl(), context, "url").ifPresent(helper::addValidationEvent); if (t.getUrl() != null) { if (!ValidatorUtils.isValidURI(t.getUrl())) {...
class class_name[name] begin[{] method[validate, return_type[void], modifier[public], parameter[helper, context, key, t]] begin[{] call[ValidatorUtils.validateRequiredField, parameter[call[t.getUrl, parameter[]], member[.context], literal["url"]]] if[binary_operation[call[t.getU...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[validate] operator[SEP] identifier[ValidationHelper] identifier[helper] , identifier[Context] identifier[context] , identifier[String] identifier[key] , identifier[ExternalDocumentation] identifier[t] operator[SEP] { identifier[Valida...
public static AppEventsLogger newLogger(Context context, String applicationId) { return new AppEventsLogger(context, applicationId, null); }
class class_name[name] begin[{] method[newLogger, return_type[type[AppEventsLogger]], modifier[public static], parameter[context, applicationId]] begin[{] return[ClassCreator(arguments=[MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference...
Keyword[public] Keyword[static] identifier[AppEventsLogger] identifier[newLogger] operator[SEP] identifier[Context] identifier[context] , identifier[String] identifier[applicationId] operator[SEP] { Keyword[return] Keyword[new] identifier[AppEventsLogger] operator[SEP] identifier[context] , identifier[applicat...
public synchronized JtxTransactionMode getTxMode(final Class type, final String methodName, final Class[] methodArgTypes, final String unique) { String signature = type.getName() + '#' + methodName + '%' + unique; JtxTransactionMode txMode = txmap.get(signature); if (txMode == null) { if (!txmap.containsKey(si...
class class_name[name] begin[{] method[getTxMode, return_type[type[JtxTransactionMode]], modifier[synchronized public], parameter[type, methodName, methodArgTypes, unique]] begin[{] local_variable[type[String], signature] local_variable[type[JtxTransactionMode], txMode] if[binar...
Keyword[public] Keyword[synchronized] identifier[JtxTransactionMode] identifier[getTxMode] operator[SEP] Keyword[final] identifier[Class] identifier[type] , Keyword[final] identifier[String] identifier[methodName] , Keyword[final] identifier[Class] operator[SEP] operator[SEP] identifier[methodArgTypes] , Keyword[fin...
public List<String> readFromFile(final String filePath, final int lineToStart, final int lineToEnd, final String encoding) throws IOException { if (lineToStart > lineToEnd) { throw new IllegalArgumentException( "Line to start must be lower than line to end"); } LOG.info("Reading from file: " + fileP...
class class_name[name] begin[{] method[readFromFile, return_type[type[List]], modifier[public], parameter[filePath, lineToStart, lineToEnd, encoding]] begin[{] if[binary_operation[member[.lineToStart], >, member[.lineToEnd]]] begin[{] ThrowStatement(expression=ClassCreator(arguments...
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[readFromFile] operator[SEP] Keyword[final] identifier[String] identifier[filePath] , Keyword[final] Keyword[int] identifier[lineToStart] , Keyword[final] Keyword[int] identifier[lineToEnd] , Keyword[final] identifier[String] ident...
public static <T> List<T> getLeftDiff(List<T> list1, List<T> list2) { if (isEmpty(list2)) { return list1; } List<T> list = new ArrayList<T>(); if (isNotEmpty(list1)) { for (T o : list1) { if (!list2.contains(o)) { list.add(o); ...
class class_name[name] begin[{] method[getLeftDiff, return_type[type[List]], modifier[public static], parameter[list1, list2]] begin[{] if[call[.isEmpty, parameter[member[.list2]]]] begin[{] return[member[.list1]] else begin[{] None end[}] local_variable[type...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[getLeftDiff] operator[SEP] identifier[List] operator[<] identifier[T] operator[>] identifier[list1] , identifier[List] operator[<] identifier[T] operator[>] identifier[list2] operator...
@Override public Object[] getParameters() { // return the parameters as used for the rule validation Object[] params = new Object[2]; params[0] = mass; params[1] = tolerance; return params; }
class class_name[name] begin[{] method[getParameters, return_type[type[Object]], modifier[public], parameter[]] begin[{] local_variable[type[Object], params] assign[member[.params], member[.mass]] assign[member[.params], member[.tolerance]] return[member[.params]...
annotation[@] identifier[Override] Keyword[public] identifier[Object] operator[SEP] operator[SEP] identifier[getParameters] operator[SEP] operator[SEP] { identifier[Object] operator[SEP] operator[SEP] identifier[params] operator[=] Keyword[new] identifier[Object] operator[SEP] Other[2] operator[SEP] operator[SEP...
public static File copyContent(File src, File dest, boolean isOverride) throws IORuntimeException { return FileCopier.create(src, dest).setCopyContentIfDir(true).setOverride(isOverride).copy(); }
class class_name[name] begin[{] method[copyContent, return_type[type[File]], modifier[public static], parameter[src, dest, isOverride]] begin[{] return[call[FileCopier.create, parameter[member[.src], member[.dest]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[File] identifier[copyContent] operator[SEP] identifier[File] identifier[src] , identifier[File] identifier[dest] , Keyword[boolean] identifier[isOverride] operator[SEP] Keyword[throws] identifier[IORuntimeException] { Keyword[return] identifier[FileCopier] operator[SE...
private List<String> collectRuleNames() { List<String> ruleNames = new ArrayList<>(); for (Rule rule : rules) { ruleNames.add(rule.getName()); } Collections.sort(ruleNames); return ruleNames; }
class class_name[name] begin[{] method[collectRuleNames, return_type[type[List]], modifier[private], parameter[]] begin[{] local_variable[type[List], ruleNames] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(a...
Keyword[private] identifier[List] operator[<] identifier[String] operator[>] identifier[collectRuleNames] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[ruleNames] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[S...
public Object makeObjectFromClassName(String className, String version, boolean bErrorIfNotFound) throws RuntimeException { if (className == null) return null; className = ClassServiceUtility.getFullClassName(className); Class<?> clazz = null; try { clazz = C...
class class_name[name] begin[{] method[makeObjectFromClassName, return_type[type[Object]], modifier[public], parameter[className, version, bErrorIfNotFound]] begin[{] if[binary_operation[member[.className], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None en...
Keyword[public] identifier[Object] identifier[makeObjectFromClassName] operator[SEP] identifier[String] identifier[className] , identifier[String] identifier[version] , Keyword[boolean] identifier[bErrorIfNotFound] operator[SEP] Keyword[throws] identifier[RuntimeException] { Keyword[if] operator[SEP] identifie...
public static boolean parseBoolean(Object configAlias, String propertyKey, Object obj, boolean defaultValue) { if (obj != null) { if (obj instanceof String) { String value = (String) obj; if (value.equalsIgnoreCase("true")) { return true; ...
class class_name[name] begin[{] method[parseBoolean, return_type[type[boolean]], modifier[public static], parameter[configAlias, propertyKey, obj, defaultValue]] begin[{] if[binary_operation[member[.obj], !=, literal[null]]] begin[{] if[binary_operation[member[.obj], ins...
Keyword[public] Keyword[static] Keyword[boolean] identifier[parseBoolean] operator[SEP] identifier[Object] identifier[configAlias] , identifier[String] identifier[propertyKey] , identifier[Object] identifier[obj] , Keyword[boolean] identifier[defaultValue] operator[SEP] { Keyword[if] operator[SEP] identifier[...
@Override public FAXSearchResult search(String corpNum, String sDate, String eDate, String[] state, Boolean reserveYN, Boolean senderOnly, int page, int perPage, String order) throws PopbillException { return search(corpNum, sDate, eDate, state, reserveYN, senderOnly, page, perPage, order, null); }
class class_name[name] begin[{] method[search, return_type[type[FAXSearchResult]], modifier[public], parameter[corpNum, sDate, eDate, state, reserveYN, senderOnly, page, perPage, order]] begin[{] return[call[.search, parameter[member[.corpNum], member[.sDate], member[.eDate], member[.state], member[.re...
annotation[@] identifier[Override] Keyword[public] identifier[FAXSearchResult] identifier[search] operator[SEP] identifier[String] identifier[corpNum] , identifier[String] identifier[sDate] , identifier[String] identifier[eDate] , identifier[String] operator[SEP] operator[SEP] identifier[state] , identifier[Boolean...
public static int getCount(Context context, Uri uri) { String[] proj = {"COUNT(*)"}; return Cursors.firstInt(context.getContentResolver().query(uri, proj, null, null, null)); }
class class_name[name] begin[{] method[getCount, return_type[type[int]], modifier[public static], parameter[context, uri]] begin[{] local_variable[type[String], proj] return[call[Cursors.firstInt, parameter[call[context.getContentResolver, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[int] identifier[getCount] operator[SEP] identifier[Context] identifier[context] , identifier[Uri] identifier[uri] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[proj] operator[=] { literal[String] } operator[SEP] Keyword[return...
private boolean hasSameBasePath(Dependency dependency1, Dependency dependency2) { if (dependency1 == null || dependency2 == null) { return false; } final File lFile = new File(dependency1.getFilePath()); String left = lFile.getParent(); final File rFile = new File(dep...
class class_name[name] begin[{] method[hasSameBasePath, return_type[type[boolean]], modifier[private], parameter[dependency1, dependency2]] begin[{] if[binary_operation[binary_operation[member[.dependency1], ==, literal[null]], ||, binary_operation[member[.dependency2], ==, literal[null]]]] beg...
Keyword[private] Keyword[boolean] identifier[hasSameBasePath] operator[SEP] identifier[Dependency] identifier[dependency1] , identifier[Dependency] identifier[dependency2] operator[SEP] { Keyword[if] operator[SEP] identifier[dependency1] operator[==] Other[null] operator[||] identifier[dependency2] operator[==]...
public CacheCluster withCacheNodes(CacheNode... cacheNodes) { if (this.cacheNodes == null) { setCacheNodes(new com.amazonaws.internal.SdkInternalList<CacheNode>(cacheNodes.length)); } for (CacheNode ele : cacheNodes) { this.cacheNodes.add(ele); } return th...
class class_name[name] begin[{] method[withCacheNodes, return_type[type[CacheCluster]], modifier[public], parameter[cacheNodes]] begin[{] if[binary_operation[THIS[member[None.cacheNodes]], ==, literal[null]]] begin[{] call[.setCacheNodes, parameter[ClassCreator(arguments...
Keyword[public] identifier[CacheCluster] identifier[withCacheNodes] operator[SEP] identifier[CacheNode] operator[...] identifier[cacheNodes] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[cacheNodes] operator[==] Other[null] operator[SEP] { identifier[setCacheNodes] o...
private final boolean cons(int i) { switch (b[i]) { case 'a': case 'e': case 'i': case 'o': case 'u': return false; case 'y': return (i == k0) ? true : !cons(i - 1); default: return true; } }
class class_name[name] begin[{] method[cons, return_type[type[boolean]], modifier[final private], parameter[i]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='a'), Literal(postfix_operators=[], prefix_ope...
Keyword[private] Keyword[final] Keyword[boolean] identifier[cons] operator[SEP] Keyword[int] identifier[i] operator[SEP] { Keyword[switch] operator[SEP] identifier[b] operator[SEP] identifier[i] operator[SEP] operator[SEP] { Keyword[case] literal[String] operator[:] Keyword[case] literal[String] oper...
public void marshall(S3ContentLocation s3ContentLocation, ProtocolMarshaller protocolMarshaller) { if (s3ContentLocation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(s3ContentLocation.getBucketA...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[s3ContentLocation, protocolMarshaller]] begin[{] if[binary_operation[member[.s3ContentLocation], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(pos...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[S3ContentLocation] identifier[s3ContentLocation] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[s3ContentLocation] operator[==] Other[null] operator[SEP] { ...
public static boolean hasRoot(Path path, Path root) { return hasRoot(path.getPath(), root.getPath()); }
class class_name[name] begin[{] method[hasRoot, return_type[type[boolean]], modifier[public static], parameter[path, root]] begin[{] return[call[.hasRoot, parameter[call[path.getPath, parameter[]], call[root.getPath, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[hasRoot] operator[SEP] identifier[Path] identifier[path] , identifier[Path] identifier[root] operator[SEP] { Keyword[return] identifier[hasRoot] operator[SEP] identifier[path] operator[SEP] identifier[getPath] operator[SEP] operator[SEP] , identifier[...
public void addFieldDescriptor(FieldDescriptor fld) { fld.setClassDescriptor(this); // BRJ if (m_FieldDescriptions == null) { m_FieldDescriptions = new FieldDescriptor[1]; m_FieldDescriptions[0] = fld; } else { int size = ...
class class_name[name] begin[{] method[addFieldDescriptor, return_type[void], modifier[public], parameter[fld]] begin[{] call[fld.setClassDescriptor, parameter[THIS[]]] if[binary_operation[member[.m_FieldDescriptions], ==, literal[null]]] begin[{] assign[...
Keyword[public] Keyword[void] identifier[addFieldDescriptor] operator[SEP] identifier[FieldDescriptor] identifier[fld] operator[SEP] { identifier[fld] operator[SEP] identifier[setClassDescriptor] operator[SEP] Keyword[this] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[m_FieldDescriptions] ope...
public ConnectionResults getPooledConnection(final CommonDataSource ds, String userName, String password, final boolean is2Phase, final WSConnectionRequestInfoImpl cri, boolean useKerberos, Object gssCredential) throws ResourceException { if (tc.isEntryEnabled()...
class class_name[name] begin[{] method[getPooledConnection, return_type[type[ConnectionResults]], modifier[public], parameter[ds, userName, password, is2Phase, cri, useKerberos, gssCredential]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[Tr.entry, parameter[THIS[...
Keyword[public] identifier[ConnectionResults] identifier[getPooledConnection] operator[SEP] Keyword[final] identifier[CommonDataSource] identifier[ds] , identifier[String] identifier[userName] , identifier[String] identifier[password] , Keyword[final] Keyword[boolean] identifier[is2Phase] , Keyword[final] identifie...
public static Set<Class<?>> scanForAnnotatedClassesFromSet(final File directory, final String packagePath, final Set<Class<? extends Annotation>> annotationClasses) throws ClassNotFoundException { final Set<Class<?>> foundClasses = new HashSet<>(); if (!directory.exists()) { return foundClasses; } // ...
class class_name[name] begin[{] method[scanForAnnotatedClassesFromSet, return_type[type[Set]], modifier[public static], parameter[directory, packagePath, annotationClasses]] begin[{] local_variable[type[Set], foundClasses] if[call[directory.exists, parameter[]]] begin[{] ret...
Keyword[public] Keyword[static] identifier[Set] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[scanForAnnotatedClassesFromSet] operator[SEP] Keyword[final] identifier[File] identifier[directory] , Keyword[final] identifier[String] identifier[packagePath] , Keyword[final] iden...
public final EObject ruleLiteralCondition() throws RecognitionException { EObject current = null; Token lv_true_1_0=null; Token otherlv_2=null; enterRule(); try { // InternalXtext.g:1724:2: ( ( () ( ( (lv_true_1_0= 'true' ) ) | otherlv_2= 'false' ) ) ) ...
class class_name[name] begin[{] method[ruleLiteralCondition, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[Token], lv_true_1_0] local_variable[type[Token], otherlv_2] call[.enterRule, ...
Keyword[public] Keyword[final] identifier[EObject] identifier[ruleLiteralCondition] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[Token] identifier[lv_true_1_0] operator[=] Other[null] operat...
public SqlExpressionGroup andInBySql(String name, String subSql, Object... args) { return and(inSql(name, subSql, args)); }
class class_name[name] begin[{] method[andInBySql, return_type[type[SqlExpressionGroup]], modifier[public], parameter[name, subSql, args]] begin[{] return[call[.and, parameter[call[.inSql, parameter[member[.name], member[.subSql], member[.args]]]]]] end[}] END[}]
Keyword[public] identifier[SqlExpressionGroup] identifier[andInBySql] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[subSql] , identifier[Object] operator[...] identifier[args] operator[SEP] { Keyword[return] identifier[and] operator[SEP] identifier[inSql] operator[SEP] ident...
@Override public void visitCode(Code obj) { try { userValues = new HashMap<>(); loops = new HashMap<>(); isInstanceMethod = !getMethod().isStatic(); super.visitCode(obj); } finally { userValues = null; loops = null; } ...
class class_name[name] begin[{] method[visitCode, return_type[void], modifier[public], parameter[obj]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=userValues, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, valu...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[visitCode] operator[SEP] identifier[Code] identifier[obj] operator[SEP] { Keyword[try] { identifier[userValues] operator[=] Keyword[new] identifier[HashMap] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] ide...
@Nonnull public static LIntToByteFunction intToByteFunctionFrom(Consumer<LIntToByteFunctionBuilder> buildingFunction) { LIntToByteFunctionBuilder builder = new LIntToByteFunctionBuilder(); buildingFunction.accept(builder); return builder.build(); }
class class_name[name] begin[{] method[intToByteFunctionFrom, return_type[type[LIntToByteFunction]], modifier[public static], parameter[buildingFunction]] begin[{] local_variable[type[LIntToByteFunctionBuilder], builder] call[buildingFunction.accept, parameter[member[.builder]]] ...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[LIntToByteFunction] identifier[intToByteFunctionFrom] operator[SEP] identifier[Consumer] operator[<] identifier[LIntToByteFunctionBuilder] operator[>] identifier[buildingFunction] operator[SEP] { identifier[LIntToByteFunctionBuilder] id...
public static <T> CombinedDownloadTask<T> single(DownloadTask<T> task) { Objects.requireNonNull(task); return new SingleCombinedTask<T>(task); }
class class_name[name] begin[{] method[single, return_type[type[CombinedDownloadTask]], modifier[public static], parameter[task]] begin[{] call[Objects.requireNonNull, parameter[member[.task]]] return[ClassCreator(arguments=[MemberReference(member=task, postfix_operators=[], prefix_oper...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[CombinedDownloadTask] operator[<] identifier[T] operator[>] identifier[single] operator[SEP] identifier[DownloadTask] operator[<] identifier[T] operator[>] identifier[task] operator[SEP] { identifier[Objects] operator[SEP] identifie...
public void lineTo(double x, double y, double z) { ensureSlots(true, 3); this.types[this.numTypes++] = PathElementType.LINE_TO; this.coords[this.numCoords++] = x; this.coords[this.numCoords++] = y; this.coords[this.numCoords++] = z; this.isEmpty = null; this.graphicalBounds = null; this.logicalBounds = ...
class class_name[name] begin[{] method[lineTo, return_type[void], modifier[public], parameter[x, y, z]] begin[{] call[.ensureSlots, parameter[literal[true], literal[3]]] assign[THIS[member[None.types]ArraySelector(index=This(postfix_operators=['++'], prefix_operators=[], qualifi...
Keyword[public] Keyword[void] identifier[lineTo] operator[SEP] Keyword[double] identifier[x] , Keyword[double] identifier[y] , Keyword[double] identifier[z] operator[SEP] { identifier[ensureSlots] operator[SEP] literal[boolean] , Other[3] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[type...
protected void handle(HttpConnection httpConnection) throws IOException { try { getServerThread().handleIncomingHttp(httpConnection); httpConnection.waitForResponse(); } catch (ConnectException ex) { httpConnection.respond(HttpStatus.GONE); } }
class class_name[name] begin[{] method[handle, return_type[void], modifier[protected], parameter[httpConnection]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=getServerThread, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodIn...
Keyword[protected] Keyword[void] identifier[handle] operator[SEP] identifier[HttpConnection] identifier[httpConnection] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { identifier[getServerThread] operator[SEP] operator[SEP] operator[SEP] identifier[handleIncomingHttp] operator[S...
public static int checksum(CharSequence input) { if (input == null || !atLeastFiveNonSpaceCharacters(input)) { throw new IllegalArgumentException("The input must be non-null and contain at least five non-space characters."); } final char[] buffer = new char[input.length() * 2]; ...
class class_name[name] begin[{] method[checksum, return_type[type[int]], modifier[public static], parameter[input]] begin[{] if[binary_operation[binary_operation[member[.input], ==, literal[null]], ||, call[.atLeastFiveNonSpaceCharacters, parameter[member[.input]]]]] begin[{] ThrowS...
Keyword[public] Keyword[static] Keyword[int] identifier[checksum] operator[SEP] identifier[CharSequence] identifier[input] operator[SEP] { Keyword[if] operator[SEP] identifier[input] operator[==] Other[null] operator[||] operator[!] identifier[atLeastFiveNonSpaceCharacters] operator[SEP] identifier[input] operat...
@Pure @Inline(value = "URISchemeType.JAR.isURL($1)", imported = {URISchemeType.class}) public static boolean isJarURL(URL url) { return URISchemeType.JAR.isURL(url); }
class class_name[name] begin[{] method[isJarURL, return_type[type[boolean]], modifier[public static], parameter[url]] begin[{] return[call[URISchemeType.JAR.isURL, parameter[member[.url]]]] end[}] END[}]
annotation[@] identifier[Pure] annotation[@] identifier[Inline] operator[SEP] identifier[value] operator[=] literal[String] , identifier[imported] operator[=] { identifier[URISchemeType] operator[SEP] Keyword[class] } operator[SEP] Keyword[public] Keyword[static] Keyword[boolean] identifier[isJarURL] operato...
public Object evaluate(Object pContext, VariableResolver pResolver, Map functions, String defaultPrefix, Logger pLogger) throws ELException { Object value = mExpression.evaluate(pContext, pRes...
class class_name[name] begin[{] method[evaluate, return_type[type[Object]], modifier[public], parameter[pContext, pResolver, functions, defaultPrefix, pLogger]] begin[{] local_variable[type[Object], value] if[binary_operation[member[.mOperator], !=, literal[null]]] begin[{] ...
Keyword[public] identifier[Object] identifier[evaluate] operator[SEP] identifier[Object] identifier[pContext] , identifier[VariableResolver] identifier[pResolver] , identifier[Map] identifier[functions] , identifier[String] identifier[defaultPrefix] , identifier[Logger] identifier[pLogger] operator[SEP] Keyword[thr...
@Deprecated public User updateUser(String id, UpdateUser updateUser, AccessToken accessToken) { return getUserService().updateUser(id, updateUser, accessToken); }
class class_name[name] begin[{] method[updateUser, return_type[type[User]], modifier[public], parameter[id, updateUser, accessToken]] begin[{] return[call[.getUserService, parameter[]]] end[}] END[}]
annotation[@] identifier[Deprecated] Keyword[public] identifier[User] identifier[updateUser] operator[SEP] identifier[String] identifier[id] , identifier[UpdateUser] identifier[updateUser] , identifier[AccessToken] identifier[accessToken] operator[SEP] { Keyword[return] identifier[getUserService] operator[SEP]...
protected void onLongitudeChange(String longitude) { try { m_editValue.setLongitude(longitude); updateMarkerPosition(); updateAddress(); } catch (Throwable t) { CmsErrorDialog.handleException(t); } }
class class_name[name] begin[{] method[onLongitudeChange, return_type[void], modifier[protected], parameter[longitude]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=longitude, postfix_operators=[], prefix_operators=[], qualifier=, select...
Keyword[protected] Keyword[void] identifier[onLongitudeChange] operator[SEP] identifier[String] identifier[longitude] operator[SEP] { Keyword[try] { identifier[m_editValue] operator[SEP] identifier[setLongitude] operator[SEP] identifier[longitude] operator[SEP] operator[SEP] identifier[updateMarkerPos...
public static DelayInformation getDelayInformation(Stanza packet) { DelayInformation delayInformation = getXep203DelayInformation(packet); if (delayInformation != null) { return delayInformation; } return getLegacyDelayInformation(packet); }
class class_name[name] begin[{] method[getDelayInformation, return_type[type[DelayInformation]], modifier[public static], parameter[packet]] begin[{] local_variable[type[DelayInformation], delayInformation] if[binary_operation[member[.delayInformation], !=, literal[null]]] begin[{] ...
Keyword[public] Keyword[static] identifier[DelayInformation] identifier[getDelayInformation] operator[SEP] identifier[Stanza] identifier[packet] operator[SEP] { identifier[DelayInformation] identifier[delayInformation] operator[=] identifier[getXep203DelayInformation] operator[SEP] identifier[packet] operator[SE...
public static <E extends Exception> int importData(final DataSet dataset, final Collection<String> selectColumnNames, final int offset, final int count, final Try.Predicate<? super Object[], E> filter, final PreparedStatement stmt, final int batchSize, final int batchInterval) throws Unchecked...
class class_name[name] begin[{] method[importData, return_type[type[int]], modifier[public static], parameter[dataset, selectColumnNames, offset, count, filter, stmt, batchSize, batchInterval]] begin[{] local_variable[type[Type], objType] local_variable[type[Map], columnTypeMap] ForStat...
Keyword[public] Keyword[static] operator[<] identifier[E] Keyword[extends] identifier[Exception] operator[>] Keyword[int] identifier[importData] operator[SEP] Keyword[final] identifier[DataSet] identifier[dataset] , Keyword[final] identifier[Collection] operator[<] identifier[String] operator[>] identifier[selectColum...
public HttpClient get(String url) throws HelloSignException { if (postFields != null) { logger.warn("POST fields set for a GET request, they will be ignored"); } request = new HttpGetRequest(url, getParams, auth); request.execute(); return this; }
class class_name[name] begin[{] method[get, return_type[type[HttpClient]], modifier[public], parameter[url]] begin[{] if[binary_operation[member[.postFields], !=, literal[null]]] begin[{] call[logger.warn, parameter[literal["POST fields set for a GET request, they will b...
Keyword[public] identifier[HttpClient] identifier[get] operator[SEP] identifier[String] identifier[url] operator[SEP] Keyword[throws] identifier[HelloSignException] { Keyword[if] operator[SEP] identifier[postFields] operator[!=] Other[null] operator[SEP] { identifier[logger] operator[SEP] identifier[w...
public final void mT__135() throws RecognitionException { try { int _type = T__135; int _channel = DEFAULT_TOKEN_CHANNEL; // InternalSARL.g:121:8: ( 'true' ) // InternalSARL.g:121:10: 'true' { match("true"); } st...
class class_name[name] begin[{] method[mT__135, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=T__135, postfix_operators=[], prefix_operators=...
Keyword[public] Keyword[final] Keyword[void] identifier[mT__135] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[T__135] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TO...
@Override public void setConnectionTimeoutMS(int connectionTimeoutMS) { connectionManager.getParams().setConnectionTimeout(connectionTimeoutMS); http.getParams().setConnectionManagerTimeout(connectionTimeoutMS); }
class class_name[name] begin[{] method[setConnectionTimeoutMS, return_type[void], modifier[public], parameter[connectionTimeoutMS]] begin[{] call[connectionManager.getParams, parameter[]] call[http.getParams, parameter[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setConnectionTimeoutMS] operator[SEP] Keyword[int] identifier[connectionTimeoutMS] operator[SEP] { identifier[connectionManager] operator[SEP] identifier[getParams] operator[SEP] operator[SEP] operator[SEP] identifier[setConnectionTimeou...
@Override public void solve(DefaultSolverScope<Solution_> solverScope) { SortedSet<ExhaustiveSearchNode> expandableNodeQueue = new TreeSet<>(nodeComparator); ExhaustiveSearchPhaseScope<Solution_> phaseScope = new ExhaustiveSearchPhaseScope<>(solverScope); phaseScope.setExpandableNodeQueue(ex...
class class_name[name] begin[{] method[solve, return_type[void], modifier[public], parameter[solverScope]] begin[{] local_variable[type[SortedSet], expandableNodeQueue] local_variable[type[ExhaustiveSearchPhaseScope], phaseScope] call[phaseScope.setExpandableNodeQueue, parameter...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[solve] operator[SEP] identifier[DefaultSolverScope] operator[<] identifier[Solution_] operator[>] identifier[solverScope] operator[SEP] { identifier[SortedSet] operator[<] identifier[ExhaustiveSearchNode] operator[>] identifier[expandabl...
public void setVirtualInterfaces(java.util.Collection<VirtualInterface> virtualInterfaces) { if (virtualInterfaces == null) { this.virtualInterfaces = null; return; } this.virtualInterfaces = new com.amazonaws.internal.SdkInternalList<VirtualInterface>(virtualInterfaces)...
class class_name[name] begin[{] method[setVirtualInterfaces, return_type[void], modifier[public], parameter[virtualInterfaces]] begin[{] if[binary_operation[member[.virtualInterfaces], ==, literal[null]]] begin[{] assign[THIS[member[None.virtualInterfaces]], literal[null...
Keyword[public] Keyword[void] identifier[setVirtualInterfaces] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[VirtualInterface] operator[>] identifier[virtualInterfaces] operator[SEP] { Keyword[if] operator[SEP] identifier[virtualInterfac...
@SuppressWarnings("unchecked") private ChronoZonedDateTimeImpl<D> create(Instant instant, ZoneId zone) { return (ChronoZonedDateTimeImpl<D>)ofInstant(getChronology(), instant, zone); }
class class_name[name] begin[{] method[create, return_type[type[ChronoZonedDateTimeImpl]], modifier[private], parameter[instant, zone]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getChronology, postfix_operators=[], prefix_operators=[], qualifier=,...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] identifier[ChronoZonedDateTimeImpl] operator[<] identifier[D] operator[>] identifier[create] operator[SEP] identifier[Instant] identifier[instant] , identifier[ZoneId] identifier[zone] operator[SEP] { Keyword...
public com.google.protobuf.ByteString getOrganizationBytes() { java.lang.Object ref = organization_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); organization_ = b; ...
class class_name[name] begin[{] method[getOrganizationBytes, return_type[type[com]], modifier[public], parameter[]] begin[{] local_variable[type[java], ref] if[binary_operation[member[.ref], instanceof, type[java]]] begin[{] local_variable[type[com], b] ...
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[protobuf] operator[SEP] identifier[ByteString] identifier[getOrganizationBytes] operator[SEP] operator[SEP] { identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[Object] identifier[ref] operator[=] iden...
@Override public List<Scope> getScopesByCollector(ObjectId collectorId) { List<Scope> scopes = scopeRepository.findByCollectorId(collectorId); //clean up needed for < > characters for (Scope scope : scopes) { scope.setName( scope.getName().replaceAll("[<>]", "") ); scope.setProjectPath( scope.getProje...
class class_name[name] begin[{] method[getScopesByCollector, return_type[type[List]], modifier[public], parameter[collectorId]] begin[{] local_variable[type[List], scopes] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodI...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[Scope] operator[>] identifier[getScopesByCollector] operator[SEP] identifier[ObjectId] identifier[collectorId] operator[SEP] { identifier[List] operator[<] identifier[Scope] operator[>] identifier[scopes] operator[=] ident...
public String getRelyingPartyIdentifier(final Service service, final WsFederationConfiguration configuration) { val relyingPartyIdentifier = configuration.getRelyingPartyIdentifier(); if (service != null) { val registeredService = this.servicesManager.findServiceBy(service); Regi...
class class_name[name] begin[{] method[getRelyingPartyIdentifier, return_type[type[String]], modifier[public], parameter[service, configuration]] begin[{] local_variable[type[val], relyingPartyIdentifier] if[binary_operation[member[.service], !=, literal[null]]] begin[{] loc...
Keyword[public] identifier[String] identifier[getRelyingPartyIdentifier] operator[SEP] Keyword[final] identifier[Service] identifier[service] , Keyword[final] identifier[WsFederationConfiguration] identifier[configuration] operator[SEP] { identifier[val] identifier[relyingPartyIdentifier] operator[=] identifier...
public EEnum getFNCYftUnits() { if (fncYftUnitsEEnum == null) { fncYftUnitsEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(23); } return fncYftUnitsEEnum; }
class class_name[name] begin[{] method[getFNCYftUnits, return_type[type[EEnum]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.fncYftUnitsEEnum], ==, literal[null]]] begin[{] assign[member[.fncYftUnitsEEnum], Cast(expression=MethodInvocation(argumen...
Keyword[public] identifier[EEnum] identifier[getFNCYftUnits] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[fncYftUnitsEEnum] operator[==] Other[null] operator[SEP] { identifier[fncYftUnitsEEnum] operator[=] operator[SEP] identifier[EEnum] operator[SEP] identifier[EPackage] operato...