code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public ProcessInstance readProcessInstance(MarshallerReaderContext context) throws IOException { InternalKnowledgeBase ruleBase = context.kBase; InternalWorkingMemory wm = context.wm; JBPMMessages.ProcessInstance _instance = (org.jbpm.marshalling.impl.JBPMMessages.ProcessInstance) conte...
class class_name[name] begin[{] method[readProcessInstance, return_type[type[ProcessInstance]], modifier[public], parameter[context]] begin[{] local_variable[type[InternalKnowledgeBase], ruleBase] local_variable[type[InternalWorkingMemory], wm] local_variable[type[JBPMMessages], _instan...
Keyword[public] identifier[ProcessInstance] identifier[readProcessInstance] operator[SEP] identifier[MarshallerReaderContext] identifier[context] operator[SEP] Keyword[throws] identifier[IOException] { identifier[InternalKnowledgeBase] identifier[ruleBase] operator[=] identifier[context] operator[SEP] identifier...
@Override public DescribeTableRestoreStatusResult describeTableRestoreStatus(DescribeTableRestoreStatusRequest request) { request = beforeClientExecution(request); return executeDescribeTableRestoreStatus(request); }
class class_name[name] begin[{] method[describeTableRestoreStatus, return_type[type[DescribeTableRestoreStatusResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDescribeTableRes...
annotation[@] identifier[Override] Keyword[public] identifier[DescribeTableRestoreStatusResult] identifier[describeTableRestoreStatus] operator[SEP] identifier[DescribeTableRestoreStatusRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] id...
public static double getLatitudeFromPixel(long height, BoundingBox boundingBox, float pixel) { return getLatitudeFromPixel(height, boundingBox, boundingBox, pixel); }
class class_name[name] begin[{] method[getLatitudeFromPixel, return_type[type[double]], modifier[public static], parameter[height, boundingBox, pixel]] begin[{] return[call[.getLatitudeFromPixel, parameter[member[.height], member[.boundingBox], member[.boundingBox], member[.pixel]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[double] identifier[getLatitudeFromPixel] operator[SEP] Keyword[long] identifier[height] , identifier[BoundingBox] identifier[boundingBox] , Keyword[float] identifier[pixel] operator[SEP] { Keyword[return] identifier[getLatitudeFromPixel] operator[SEP] identifier[height] ...
public static OutputStreamWriter getWriter(OutputStream out, Charset charset) { if (null == out) { return null; } if (null == charset) { return new OutputStreamWriter(out); } else { return new OutputStreamWriter(out, charset); } }
class class_name[name] begin[{] method[getWriter, return_type[type[OutputStreamWriter]], modifier[public static], parameter[out, charset]] begin[{] if[binary_operation[literal[null], ==, member[.out]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[OutputStreamWriter] identifier[getWriter] operator[SEP] identifier[OutputStream] identifier[out] , identifier[Charset] identifier[charset] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[out] operator[SEP] { Keyword[return] Othe...
public void generate(GenRepoInfoFileConfiguration configuration) throws AppEngineException { List<String> arguments = new ArrayList<>(); arguments.add("beta"); arguments.add("debug"); arguments.add("source"); arguments.add("gen-repo-info-file"); arguments.addAll(GcloudArgs.get("output-directory...
class class_name[name] begin[{] method[generate, return_type[void], modifier[public], parameter[configuration]] begin[{] local_variable[type[List], arguments] call[arguments.add, parameter[literal["beta"]]] call[arguments.add, parameter[literal["debug"]]] ...
Keyword[public] Keyword[void] identifier[generate] operator[SEP] identifier[GenRepoInfoFileConfiguration] identifier[configuration] operator[SEP] Keyword[throws] identifier[AppEngineException] { identifier[List] operator[<] identifier[String] operator[>] identifier[arguments] operator[=] Keyword[new] identifier[...
public BatchGetTriggersResult withTriggers(Trigger... triggers) { if (this.triggers == null) { setTriggers(new java.util.ArrayList<Trigger>(triggers.length)); } for (Trigger ele : triggers) { this.triggers.add(ele); } return this; }
class class_name[name] begin[{] method[withTriggers, return_type[type[BatchGetTriggersResult]], modifier[public], parameter[triggers]] begin[{] if[binary_operation[THIS[member[None.triggers]], ==, literal[null]]] begin[{] call[.setTriggers, parameter[ClassCreator(argumen...
Keyword[public] identifier[BatchGetTriggersResult] identifier[withTriggers] operator[SEP] identifier[Trigger] operator[...] identifier[triggers] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[triggers] operator[==] Other[null] operator[SEP] { identifier[setTriggers] o...
boolean checkCross(Lexeme lexeme){ return (lexeme.getBegin() >= this.pathBegin && lexeme.getBegin() < this.pathEnd) || (this.pathBegin >= lexeme.getBegin() && this.pathBegin < lexeme.getBegin()+ lexeme.getLength()); }
class class_name[name] begin[{] method[checkCross, return_type[type[boolean]], modifier[default], parameter[lexeme]] begin[{] return[binary_operation[binary_operation[binary_operation[call[lexeme.getBegin, parameter[]], >=, THIS[member[None.pathBegin]]], &&, binary_operation[call[lexeme.getBegin, param...
Keyword[boolean] identifier[checkCross] operator[SEP] identifier[Lexeme] identifier[lexeme] operator[SEP] { Keyword[return] operator[SEP] identifier[lexeme] operator[SEP] identifier[getBegin] operator[SEP] operator[SEP] operator[>=] Keyword[this] operator[SEP] identifier[pathBegin] operator[&&] identifier[lexeme...
public List<PropertyData> getReferencesData(String nodeIdentifier) throws RepositoryException, IllegalStateException, UnsupportedOperationException { Statistics s = ALL_STATISTICS.get(GET_REFERENCES_DATA_DESCR); try { s.begin(); return wcs.getReferencesData(nodeIdentifier); ...
class class_name[name] begin[{] method[getReferencesData, return_type[type[List]], modifier[public], parameter[nodeIdentifier]] begin[{] local_variable[type[Statistics], s] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=begin, postfix_operators=[], pref...
Keyword[public] identifier[List] operator[<] identifier[PropertyData] operator[>] identifier[getReferencesData] operator[SEP] identifier[String] identifier[nodeIdentifier] operator[SEP] Keyword[throws] identifier[RepositoryException] , identifier[IllegalStateException] , identifier[UnsupportedOperationException] { ...
public static DataBinding map( Object source, Object destination ) { return bindObject( source ).mapTo( destination ); }
class class_name[name] begin[{] method[map, return_type[type[DataBinding]], modifier[public static], parameter[source, destination]] begin[{] return[call[.bindObject, parameter[member[.source]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[DataBinding] identifier[map] operator[SEP] identifier[Object] identifier[source] , identifier[Object] identifier[destination] operator[SEP] { Keyword[return] identifier[bindObject] operator[SEP] identifier[source] operator[SEP] operator[SEP] identifier[mapTo] operator[...
public static int[] sliceByTime(CSTable table, int timeCol, Date start, Date end) { if (end.before(start)) { throw new IllegalArgumentException("end<start"); } if (timeCol < 0) { throw new IllegalArgumentException("timeCol :" + timeCol); } int s = -1; ...
class class_name[name] begin[{] method[sliceByTime, return_type[type[int]], modifier[public static], parameter[table, timeCol, start, end]] begin[{] if[call[end.before, parameter[member[.start]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[...
Keyword[public] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[sliceByTime] operator[SEP] identifier[CSTable] identifier[table] , Keyword[int] identifier[timeCol] , identifier[Date] identifier[start] , identifier[Date] identifier[end] operator[SEP] { Keyword[if] operator[SEP] identifier[e...
public static String getSourceName(Type type) throws NoSourceNameException { if (type instanceof Class<?>) { Class<?> clazz = (Class<?>) type; if (clazz.isPrimitive()) { return clazz.getName(); // Returns "int" for integer etc. } String name = clazz.getCanonicalName(); // We ...
class class_name[name] begin[{] method[getSourceName, return_type[type[String]], modifier[public static], parameter[type]] begin[{] if[binary_operation[member[.type], instanceof, type[Class]]] begin[{] local_variable[type[Class], clazz] if[call[clazz.isPrimit...
Keyword[public] Keyword[static] identifier[String] identifier[getSourceName] operator[SEP] identifier[Type] identifier[type] operator[SEP] Keyword[throws] identifier[NoSourceNameException] { Keyword[if] operator[SEP] identifier[type] Keyword[instanceof] identifier[Class] operator[<] operator[?] operator[>] opera...
public synchronized void flush() throws IOException { if (sink != null) { if (sink.closedByReader || closed) { throw new IOException("Pipe closed"); } synchronized (sink) { sink.notifyAll(); } } }
class class_name[name] begin[{] method[flush, return_type[void], modifier[synchronized public], parameter[]] begin[{] if[binary_operation[member[.sink], !=, literal[null]]] begin[{] if[binary_operation[member[sink.closedByReader], ||, member[.closed]]] begin[{] ...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[flush] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[sink] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[sink] operator[SEP] identifier[closedByRe...
@Override public CauseOfBlockage getCauseOfBlockage() { // Block builds until they are done with post-production if (!isConcurrentBuild() && isLogUpdated()) { final R lastBuild = getLastBuild(); if (lastBuild != null) { return new BlockedBecauseOfBuildInProgre...
class class_name[name] begin[{] method[getCauseOfBlockage, return_type[type[CauseOfBlockage]], modifier[public], parameter[]] begin[{] if[binary_operation[call[.isConcurrentBuild, parameter[]], &&, call[.isLogUpdated, parameter[]]]] begin[{] local_variable[type[R], lastBuild] ...
annotation[@] identifier[Override] Keyword[public] identifier[CauseOfBlockage] identifier[getCauseOfBlockage] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isConcurrentBuild] operator[SEP] operator[SEP] operator[&&] identifier[isLogUpdated] operator[SEP] operator[SEP] operator[SE...
public ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets(String resourceGroupName, String accountName, String contentKeyPolicyName) { return getPolicyPropertiesWithSecretsWithServiceResponseAsync(resourceGroupName, accountName, contentKeyPolicyName).toBlocking().single().body(); }
class class_name[name] begin[{] method[getPolicyPropertiesWithSecrets, return_type[type[ContentKeyPolicyPropertiesInner]], modifier[public], parameter[resourceGroupName, accountName, contentKeyPolicyName]] begin[{] return[call[.getPolicyPropertiesWithSecretsWithServiceResponseAsync, parameter[member[.r...
Keyword[public] identifier[ContentKeyPolicyPropertiesInner] identifier[getPolicyPropertiesWithSecrets] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[accountName] , identifier[String] identifier[contentKeyPolicyName] operator[SEP] { Keyword[return] identifier[get...
public static Context begin(final String _userName, final Inheritance _inheritance) throws EFapsException { return Context.begin(_userName, null, null, null, null, _inheritance); }
class class_name[name] begin[{] method[begin, return_type[type[Context]], modifier[public static], parameter[_userName, _inheritance]] begin[{] return[call[Context.begin, parameter[member[._userName], literal[null], literal[null], literal[null], literal[null], member[._inheritance]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Context] identifier[begin] operator[SEP] Keyword[final] identifier[String] identifier[_userName] , Keyword[final] identifier[Inheritance] identifier[_inheritance] operator[SEP] Keyword[throws] identifier[EFapsException] { Keyword[return] identifier[Context] operator[SE...
private Class<? extends Field> getClassObject(final Element element) { String className = element.getAttributeValue(XMLTags.CLASS); Class<? extends Field> classObject = null; try { className = className.indexOf('.') > 0 ? className : getClass().getPackage().getName() + '.' + className; classObject = Cl...
class class_name[name] begin[{] method[getClassObject, return_type[type[Class]], modifier[private], parameter[element]] begin[{] local_variable[type[String], className] local_variable[type[Class], classObject] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=Mem...
Keyword[private] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Field] operator[>] identifier[getClassObject] operator[SEP] Keyword[final] identifier[Element] identifier[element] operator[SEP] { identifier[String] identifier[className] operator[=] identifier[element] operator[SEP] identifi...
public RefundQuery refundQueryByTransactionId(String transactionId) { RefundQueryRequestWrapper refundQueryRequestWrapper = new RefundQueryRequestWrapper(); refundQueryRequestWrapper.setTransactionId(transactionId); return refundQuery(refundQueryRequestWrapper); }
class class_name[name] begin[{] method[refundQueryByTransactionId, return_type[type[RefundQuery]], modifier[public], parameter[transactionId]] begin[{] local_variable[type[RefundQueryRequestWrapper], refundQueryRequestWrapper] call[refundQueryRequestWrapper.setTransactionId, parameter[m...
Keyword[public] identifier[RefundQuery] identifier[refundQueryByTransactionId] operator[SEP] identifier[String] identifier[transactionId] operator[SEP] { identifier[RefundQueryRequestWrapper] identifier[refundQueryRequestWrapper] operator[=] Keyword[new] identifier[RefundQueryRequestWrapper] operator[SEP] operat...
public Piece getPiece(int index) { if (this.pieces == null) { throw new IllegalStateException("Torrent not initialized yet."); } if (index >= this.pieces.length) { throw new IllegalArgumentException("Invalid piece index!"); } return this.pieces[index]; }
class class_name[name] begin[{] method[getPiece, return_type[type[Piece]], modifier[public], parameter[index]] begin[{] if[binary_operation[THIS[member[None.pieces]], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_...
Keyword[public] identifier[Piece] identifier[getPiece] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[pieces] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[S...
protected static List<water.ModelMetrics>fetchAll() { return new ArrayList<water.ModelMetrics>(H2O.KeySnapshot.globalSnapshot().fetchAll(water.ModelMetrics.class).values()); }
class class_name[name] begin[{] method[fetchAll, return_type[type[List]], modifier[static protected], parameter[]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=globalSnapshot, postfix_operators=[], prefix_operators=[], qualifier=H2O.KeySnapshot, selectors=[MethodInvocat...
Keyword[protected] Keyword[static] identifier[List] operator[<] identifier[water] operator[SEP] identifier[ModelMetrics] operator[>] identifier[fetchAll] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[ArrayList] operator[<] identifier[water] operator[SEP] identifier[ModelMetrics] operator[...
public void run(Socket socket) { synchronized (lock) { nextSocket = socket; lock.notify(); } Thread.yield(); }
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[socket]] begin[{] SYNCHRONIZED[member[.lock]] BEGIN[{] assign[member[.nextSocket], member[.socket]] call[lock.notify, parameter[]] END[}] ...
Keyword[public] Keyword[void] identifier[run] operator[SEP] identifier[Socket] identifier[socket] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[lock] operator[SEP] { identifier[nextSocket] operator[=] identifier[socket] operator[SEP] identifier[lock] operator[SEP] identifier[notify] o...
protected final PrcAccEntityWithSubaccCreate<RS, IHasId<Object>, Object> createPutPrcAccEntityWithSubaccCreate( final Map<String, Object> pAddParam) throws Exception { PrcAccEntityWithSubaccCreate<RS, IHasId<Object>, Object> proc = new PrcAccEntityWithSubaccCreate<RS, IHasId<Object>, Object>(); ...
class class_name[name] begin[{] method[createPutPrcAccEntityWithSubaccCreate, return_type[type[PrcAccEntityWithSubaccCreate]], modifier[final protected], parameter[pAddParam]] begin[{] local_variable[type[PrcAccEntityWithSubaccCreate], proc] local_variable[type[PrcEntityCreate], procDlg] ...
Keyword[protected] Keyword[final] identifier[PrcAccEntityWithSubaccCreate] operator[<] identifier[RS] , identifier[IHasId] operator[<] identifier[Object] operator[>] , identifier[Object] operator[>] identifier[createPutPrcAccEntityWithSubaccCreate] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[S...
private Page<CollectorItem> removeJobUrlAndInstanceUrl(Page<CollectorItem> collectorItems) { for (CollectorItem cItem : collectorItems) { if(cItem.getOptions().containsKey("jobUrl")) cItem.getOptions().remove("jobUrl"); if(cItem.getOptions().containsKey("instanceUrl")) cItem.getOptions()...
class class_name[name] begin[{] method[removeJobUrlAndInstanceUrl, return_type[type[Page]], modifier[private], parameter[collectorItems]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getOptions, postfix_operators=[], prefi...
Keyword[private] identifier[Page] operator[<] identifier[CollectorItem] operator[>] identifier[removeJobUrlAndInstanceUrl] operator[SEP] identifier[Page] operator[<] identifier[CollectorItem] operator[>] identifier[collectorItems] operator[SEP] { Keyword[for] operator[SEP] identifier[CollectorItem] identifier[cI...
public long getTimeRangeEndingTimeInMillis (final long timeInMillis) { final Calendar rangeEndingTime = createJavaCalendar (timeInMillis); rangeEndingTime.set (Calendar.HOUR_OF_DAY, m_nRangeEndingHourOfDay); rangeEndingTime.set (Calendar.MINUTE, m_nRangeEndingMinute); rangeEndingTime.set (Calendar.SEC...
class class_name[name] begin[{] method[getTimeRangeEndingTimeInMillis, return_type[type[long]], modifier[public], parameter[timeInMillis]] begin[{] local_variable[type[Calendar], rangeEndingTime] call[rangeEndingTime.set, parameter[member[Calendar.HOUR_OF_DAY], member[.m_nRangeEndingHou...
Keyword[public] Keyword[long] identifier[getTimeRangeEndingTimeInMillis] operator[SEP] Keyword[final] Keyword[long] identifier[timeInMillis] operator[SEP] { Keyword[final] identifier[Calendar] identifier[rangeEndingTime] operator[=] identifier[createJavaCalendar] operator[SEP] identifier[timeInMillis] operator[S...
public static void addToJson(JSONObject jsonObject, String key, Object value) throws JSONException { if (jsonObject == null) { throw new JSONException("Can't add key '" + key + "' to a null object."); } if (key == null) { throw new JSONException("Can't add null key."); } JSONValue jsonValue = null; if...
class class_name[name] begin[{] method[addToJson, return_type[void], modifier[public static], parameter[jsonObject, key, value]] begin[{] if[binary_operation[member[.jsonObject], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=...
Keyword[public] Keyword[static] Keyword[void] identifier[addToJson] operator[SEP] identifier[JSONObject] identifier[jsonObject] , identifier[String] identifier[key] , identifier[Object] identifier[value] operator[SEP] Keyword[throws] identifier[JSONException] { Keyword[if] operator[SEP] identifier[jsonObject] ...
public SeriesColorMarkerLineStyle getNextSeriesColorMarkerLineStyle() { // 1. Color - cycle through colors one by one if (colorCounter >= seriesColorList.length) { colorCounter = 0; strokeCounter++; } Color seriesColor = seriesColorList[colorCounter++]; // 2. Stroke - cycle through str...
class class_name[name] begin[{] method[getNextSeriesColorMarkerLineStyle, return_type[type[SeriesColorMarkerLineStyle]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.colorCounter], >=, member[seriesColorList.length]]] begin[{] assign[member[.colorC...
Keyword[public] identifier[SeriesColorMarkerLineStyle] identifier[getNextSeriesColorMarkerLineStyle] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[colorCounter] operator[>=] identifier[seriesColorList] operator[SEP] identifier[length] operator[SEP] { identifier[colorCounter] opera...
public static ShearCaptcha createShearCaptcha(int width, int height, int codeCount, int thickness) { return new ShearCaptcha(width, height, codeCount, thickness); }
class class_name[name] begin[{] method[createShearCaptcha, return_type[type[ShearCaptcha]], modifier[public static], parameter[width, height, codeCount, thickness]] begin[{] return[ClassCreator(arguments=[MemberReference(member=width, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])...
Keyword[public] Keyword[static] identifier[ShearCaptcha] identifier[createShearCaptcha] operator[SEP] Keyword[int] identifier[width] , Keyword[int] identifier[height] , Keyword[int] identifier[codeCount] , Keyword[int] identifier[thickness] operator[SEP] { Keyword[return] Keyword[new] identifier[ShearCaptcha]...
private static double[][] quantile(double[] x, Distribution d) { Arrays.sort(x); int n = x.length; double[][] q = new double[n][2]; for (int i = 0; i < n; i++) { double p = (i + 1) / (n + 1.0); q[i][0] = x[(int) Math.round(p * x.length)]; q[i][1] = d....
class class_name[name] begin[{] method[quantile, return_type[type[double]], modifier[private static], parameter[x, d]] begin[{] call[Arrays.sort, parameter[member[.x]]] local_variable[type[int], n] local_variable[type[double], q] ForStatement(body=BlockStatement(label=No...
Keyword[private] Keyword[static] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[quantile] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[x] , identifier[Distribution] identifier[d] operator[SEP] { identifier[Arrays] operator[SEP] identifier[sort] operato...
public ListenableFuture<?> reserve(QueryId queryId, String allocationTag, long bytes) { checkArgument(bytes >= 0, "bytes is negative"); ListenableFuture<?> result; synchronized (this) { if (bytes != 0) { queryMemoryReservations.merge(queryId, bytes, Long::sum); ...
class class_name[name] begin[{] method[reserve, return_type[type[ListenableFuture]], modifier[public], parameter[queryId, allocationTag, bytes]] begin[{] call[.checkArgument, parameter[binary_operation[member[.bytes], >=, literal[0]], literal["bytes is negative"]]] local_variable[type[L...
Keyword[public] identifier[ListenableFuture] operator[<] operator[?] operator[>] identifier[reserve] operator[SEP] identifier[QueryId] identifier[queryId] , identifier[String] identifier[allocationTag] , Keyword[long] identifier[bytes] operator[SEP] { identifier[checkArgument] operator[SEP] identifier[bytes] o...
public boolean removeRecord(Record r, int section) { if (sections[section] != null && sections[section].remove(r)) { header.decCount(section); return true; } else return false; }
class class_name[name] begin[{] method[removeRecord, return_type[type[boolean]], modifier[public], parameter[r, section]] begin[{] if[binary_operation[binary_operation[member[.sections], !=, literal[null]], &&, member[.sections]]] begin[{] call[header.decCount, parameter...
Keyword[public] Keyword[boolean] identifier[removeRecord] operator[SEP] identifier[Record] identifier[r] , Keyword[int] identifier[section] operator[SEP] { Keyword[if] operator[SEP] identifier[sections] operator[SEP] identifier[section] operator[SEP] operator[!=] Other[null] operator[&&] identifier[sections] op...
public Type getTypeOfArrayItems() throws DataConversionException { JsonSchema arrayValues = getItemsWithinDataType(); if (arrayValues == null) { throw new DataConversionException("Array types only allow values as primitive, null or JsonObject"); } return arrayValues.getType(); }
class class_name[name] begin[{] method[getTypeOfArrayItems, return_type[type[Type]], modifier[public], parameter[]] begin[{] local_variable[type[JsonSchema], arrayValues] if[binary_operation[member[.arrayValues], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCr...
Keyword[public] identifier[Type] identifier[getTypeOfArrayItems] operator[SEP] operator[SEP] Keyword[throws] identifier[DataConversionException] { identifier[JsonSchema] identifier[arrayValues] operator[=] identifier[getItemsWithinDataType] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] iden...
@Override public CompletableFuture<LogicalSlot> allocateSlot( SlotRequestId slotRequestId, ScheduledUnit scheduledUnit, SlotProfile slotProfile, boolean allowQueuedScheduling, Time allocationTimeout) { log.debug("Received slot request [{}] for task: {}", slotRequestId, scheduledUnit.getTaskToExecute()); ...
class class_name[name] begin[{] method[allocateSlot, return_type[type[CompletableFuture]], modifier[public], parameter[slotRequestId, scheduledUnit, slotProfile, allowQueuedScheduling, allocationTimeout]] begin[{] call[log.debug, parameter[literal["Received slot request [{}] for task: {}"], mem...
annotation[@] identifier[Override] Keyword[public] identifier[CompletableFuture] operator[<] identifier[LogicalSlot] operator[>] identifier[allocateSlot] operator[SEP] identifier[SlotRequestId] identifier[slotRequestId] , identifier[ScheduledUnit] identifier[scheduledUnit] , identifier[SlotProfile] identifier[slotPro...
public TaskGetOptions withOcpDate(DateTime ocpDate) { if (ocpDate == null) { this.ocpDate = null; } else { this.ocpDate = new DateTimeRfc1123(ocpDate); } return this; }
class class_name[name] begin[{] method[withOcpDate, return_type[type[TaskGetOptions]], modifier[public], parameter[ocpDate]] begin[{] if[binary_operation[member[.ocpDate], ==, literal[null]]] begin[{] assign[THIS[member[None.ocpDate]], literal[null]] else begin[{...
Keyword[public] identifier[TaskGetOptions] identifier[withOcpDate] operator[SEP] identifier[DateTime] identifier[ocpDate] operator[SEP] { Keyword[if] operator[SEP] identifier[ocpDate] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[ocpDate] operator[=] Other[null] opera...
@Override public Multimap<Id, Revision> publish() { Multimap<Id, Revision> result = options.transactions.writeNewRequired(this::doPublish); if (this.cache != null) { result.keySet().forEach(this.cache::refresh); } return result; }
class class_name[name] begin[{] method[publish, return_type[type[Multimap]], modifier[public], parameter[]] begin[{] local_variable[type[Multimap], result] if[binary_operation[THIS[member[None.cache]], !=, literal[null]]] begin[{] call[result.keySet, parameter[]]...
annotation[@] identifier[Override] Keyword[public] identifier[Multimap] operator[<] identifier[Id] , identifier[Revision] operator[>] identifier[publish] operator[SEP] operator[SEP] { identifier[Multimap] operator[<] identifier[Id] , identifier[Revision] operator[>] identifier[result] operator[=] identifier[op...
public void deleteMessages() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { OfflineMessageRequest request = new OfflineMessageRequest(); request.setType(IQ.Type.set); request.setPurge(true); connection.createStanzaCollectorAndSend(request).n...
class class_name[name] begin[{] method[deleteMessages, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[OfflineMessageRequest], request] call[request.setType, parameter[member[IQ.Type.set]]] call[request.setPurge, parameter[literal[true]]] ...
Keyword[public] Keyword[void] identifier[deleteMessages] operator[SEP] operator[SEP] Keyword[throws] identifier[NoResponseException] , identifier[XMPPErrorException] , identifier[NotConnectedException] , identifier[InterruptedException] { identifier[OfflineMessageRequest] identifier[request] operator[=] Keywo...
@Override @CallerSideMethod public void subscribe(Subscriber subs) { // need callerside to transform to Callback Callback callback = (r, e) -> { if (Actors.isResult(e)) subs.getReceiver().receive((ChangeMessage) r); }; _subscribe(subs.getFilter(), callback...
class class_name[name] begin[{] method[subscribe, return_type[void], modifier[public], parameter[subs]] begin[{] local_variable[type[Callback], callback] call[._subscribe, parameter[call[subs.getFilter, parameter[]], member[.callback], call[subs.getId, parameter[]]]] end[}] END[}]
annotation[@] identifier[Override] annotation[@] identifier[CallerSideMethod] Keyword[public] Keyword[void] identifier[subscribe] operator[SEP] identifier[Subscriber] identifier[subs] operator[SEP] { identifier[Callback] identifier[callback] operator[=] operator[SEP] identifier[r] , identifier[e] operator[SEP] ...
void addShifted(MutableBigInteger addend, int n) { if (addend.isZero()) { return; } int x = intLen; int y = addend.intLen + n; int resultLen = (intLen > y ? intLen : y); int[] result = (value.length < resultLen ? new int[resultLen] : value); int rsta...
class class_name[name] begin[{] method[addShifted, return_type[void], modifier[default], parameter[addend, n]] begin[{] if[call[addend.isZero, parameter[]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[int], x] local_variable[ty...
Keyword[void] identifier[addShifted] operator[SEP] identifier[MutableBigInteger] identifier[addend] , Keyword[int] identifier[n] operator[SEP] { Keyword[if] operator[SEP] identifier[addend] operator[SEP] identifier[isZero] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] ...
private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); // not all values in the property bag are going to be serializable; we // need to be careful which parts of the bag we serialize // Map<Object, Object> tempProperties = new Has...
class class_name[name] begin[{] method[writeObject, return_type[void], modifier[private], parameter[stream]] begin[{] call[stream.defaultWriteObject, parameter[]] local_variable[type[Map], tempProperties] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDecl...
Keyword[private] Keyword[void] identifier[writeObject] operator[SEP] identifier[ObjectOutputStream] identifier[stream] operator[SEP] Keyword[throws] identifier[IOException] { identifier[stream] operator[SEP] identifier[defaultWriteObject] operator[SEP] operator[SEP] operator[SEP] identifier[Map] operator[<] iden...
public void sendMessage(BaseMessage messageOut, BaseInternalMessageProcessor messageOutProcessor) { int iErrorCode = this.convertToExternal(messageOut, messageOutProcessor); // Convert my standard message to the external format for this message BaseMessage messageReplyIn = null; if (iErro...
class class_name[name] begin[{] method[sendMessage, return_type[void], modifier[public], parameter[messageOut, messageOutProcessor]] begin[{] local_variable[type[int], iErrorCode] local_variable[type[BaseMessage], messageReplyIn] if[binary_operation[member[.iErrorCode], !=, memb...
Keyword[public] Keyword[void] identifier[sendMessage] operator[SEP] identifier[BaseMessage] identifier[messageOut] , identifier[BaseInternalMessageProcessor] identifier[messageOutProcessor] operator[SEP] { Keyword[int] identifier[iErrorCode] operator[=] Keyword[this] operator[SEP] identifier[convertToExternal] ...
static Function<String, ManagedCloudSdk> newManagedSdkFactory() { return (version) -> { try { if (Strings.isNullOrEmpty(version)) { return ManagedCloudSdk.newManagedSdk(); } else { return ManagedCloudSdk.newManagedSdk(new Version(version)); } } catch (Unsuppor...
class class_name[name] begin[{] method[newManagedSdkFactory, return_type[type[Function]], modifier[static], parameter[]] begin[{] return[LambdaExpression(body=[TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=version, postfix_operators=[], prefix_operators=[]...
Keyword[static] identifier[Function] operator[<] identifier[String] , identifier[ManagedCloudSdk] operator[>] identifier[newManagedSdkFactory] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[version] operator[SEP] operator[->] { Keyword[try] { Keyword[if] operato...
Get generateContinueRequest(String cmcontinue) { return newRequestBuilder() // .param("cmcontinue", MediaWiki.urlEncode(cmcontinue)) // .buildGet(); }
class class_name[name] begin[{] method[generateContinueRequest, return_type[type[Get]], modifier[default], parameter[cmcontinue]] begin[{] return[call[.newRequestBuilder, parameter[]]] end[}] END[}]
identifier[Get] identifier[generateContinueRequest] operator[SEP] identifier[String] identifier[cmcontinue] operator[SEP] { Keyword[return] identifier[newRequestBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[param] operator[SEP] literal[String] , identifier[MediaWiki] operator[SEP] identifier[url...
public static BitfinexCandlestickSymbol fromBitfinexString(final String symbol) { if(! symbol.startsWith("trade:")) { throw new IllegalArgumentException("Unable to parse: " + symbol); } final String[] splitString = symbol.split(":"); if(splitString.length != 3) { throw new IllegalArgumentException(...
class class_name[name] begin[{] method[fromBitfinexString, return_type[type[BitfinexCandlestickSymbol]], modifier[public static], parameter[symbol]] begin[{] if[call[symbol.startsWith, parameter[literal["trade:"]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOp...
Keyword[public] Keyword[static] identifier[BitfinexCandlestickSymbol] identifier[fromBitfinexString] operator[SEP] Keyword[final] identifier[String] identifier[symbol] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[symbol] operator[SEP] identifier[startsWith] operator[SEP] literal[String] opera...
public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext) { if (!isActive()) { throw new ContextNotActiveException(); } if (creationalContext != null) { T instance = contextual.create(creationalContext); if (creationalContext instanceo...
class class_name[name] begin[{] method[get, return_type[type[T]], modifier[public], parameter[contextual, creationalContext]] begin[{] if[call[.isActive, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_o...
Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[get] operator[SEP] identifier[Contextual] operator[<] identifier[T] operator[>] identifier[contextual] , identifier[CreationalContext] operator[<] identifier[T] operator[>] identifier[creationalContext] operator[SEP] { Keyword[if] op...
public List<List<SquareNode>> process(List<Polygon2D_F64> squares ) { recycleData(); // set up nodes computeNodeInfo(squares); // Connect nodes to each other connectNodes(); // Prune noise disconnectSingleConnections(); // Find all valid graphs findClusters(); return clusters.toList(); }
class class_name[name] begin[{] method[process, return_type[type[List]], modifier[public], parameter[squares]] begin[{] call[.recycleData, parameter[]] call[.computeNodeInfo, parameter[member[.squares]]] call[.connectNodes, parameter[]] call[.disc...
Keyword[public] identifier[List] operator[<] identifier[List] operator[<] identifier[SquareNode] operator[>] operator[>] identifier[process] operator[SEP] identifier[List] operator[<] identifier[Polygon2D_F64] operator[>] identifier[squares] operator[SEP] { identifier[recycleData] operator[SEP] operator[SEP] ope...
public static void startFakeThread(ServerSocket server) { Thread thread = new Thread(new FakeRunnable(server)); thread.start(); }
class class_name[name] begin[{] method[startFakeThread, return_type[void], modifier[public static], parameter[server]] begin[{] local_variable[type[Thread], thread] call[thread.start, parameter[]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[startFakeThread] operator[SEP] identifier[ServerSocket] identifier[server] operator[SEP] { identifier[Thread] identifier[thread] operator[=] Keyword[new] identifier[Thread] operator[SEP] Keyword[new] identifier[FakeRunnable] operator[SEP] identifier[server...
private void createTables(PersistenceServiceUnit persistenceServiceUnit) throws Exception { // Run under a new transaction and commit right away LocalTransactionCurrent localTranCurrent = this.localTranCurrent; LocalTransactionCoordinator suspendedLTC = localTranCurrent.suspend(); Embedd...
class class_name[name] begin[{] method[createTables, return_type[void], modifier[private], parameter[persistenceServiceUnit]] begin[{] local_variable[type[LocalTransactionCurrent], localTranCurrent] local_variable[type[LocalTransactionCoordinator], suspendedLTC] local_variable[type[Embe...
Keyword[private] Keyword[void] identifier[createTables] operator[SEP] identifier[PersistenceServiceUnit] identifier[persistenceServiceUnit] operator[SEP] Keyword[throws] identifier[Exception] { identifier[LocalTransactionCurrent] identifier[localTranCurrent] operator[=] Keyword[this] operator[SEP] identifier[loc...
public static void processException(Object source ,Class sourceClass ,String methodName ,Throwable throwable ,String probe ,Object[] ob...
class class_name[name] begin[{] method[processException, return_type[void], modifier[public static], parameter[source, sourceClass, methodName, throwable, probe, objects]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[trace.isEntryEnabled, paramete...
Keyword[public] Keyword[static] Keyword[void] identifier[processException] operator[SEP] identifier[Object] identifier[source] , identifier[Class] identifier[sourceClass] , identifier[String] identifier[methodName] , identifier[Throwable] identifier[throwable] , identifier[String] identifier[probe] , identifier[Ob...
@NonNull @Card.CardBrand public static String getPossibleCardType(@Nullable String cardNumber) { return getPossibleCardType(cardNumber, true); }
class class_name[name] begin[{] method[getPossibleCardType, return_type[type[String]], modifier[public static], parameter[cardNumber]] begin[{] return[call[.getPossibleCardType, parameter[member[.cardNumber], literal[true]]]] end[}] END[}]
annotation[@] identifier[NonNull] annotation[@] identifier[Card] operator[SEP] identifier[CardBrand] Keyword[public] Keyword[static] identifier[String] identifier[getPossibleCardType] operator[SEP] annotation[@] identifier[Nullable] identifier[String] identifier[cardNumber] operator[SEP] { Keyword[return] identi...
protected void doExecuteCommand() { if(!ValkyrieRepository.getInstance().getApplicationConfig().applicationSecurityManager().isSecuritySupported()) { return ; } CompositeDialogPage tabbedPage = new TabbedDialogPage( "loginForm" ); final LoginForm loginForm = createLoginForm(...
class class_name[name] begin[{] method[doExecuteCommand, return_type[void], modifier[protected], parameter[]] begin[{] if[call[ValkyrieRepository.getInstance, parameter[]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[CompositeDialogPag...
Keyword[protected] Keyword[void] identifier[doExecuteCommand] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[ValkyrieRepository] operator[SEP] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[getApplicationConfig] operator[SEP] operator[SEP] operator[SE...
public static void main(String[] args) { Test instance = JKFactory.instance(Test.class); System.out.println(instance.hello()); System.out.println(instance.hello()); System.out.println(instance.hello()); System.out.println(instance.hello()); }
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] local_variable[type[Test], instance] call[System.out.println, parameter[call[instance.hello, parameter[]]]] call[System.out.println, parameter[call[instance...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { identifier[Test] identifier[instance] operator[=] identifier[JKFactory] operator[SEP] identifier[instance] operator[SEP] identifier[Test] operator[SEP] Keyw...
private boolean checkText(final Characters paramEvent) { assert paramEvent != null; final String text = paramEvent.getData().trim(); return mWtx.getNode().getKind() == IConstants.TEXT && mWtx.getValueOfCurrentNode().equals(text); }
class class_name[name] begin[{] method[checkText, return_type[type[boolean]], modifier[private], parameter[paramEvent]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=paramEvent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(p...
Keyword[private] Keyword[boolean] identifier[checkText] operator[SEP] Keyword[final] identifier[Characters] identifier[paramEvent] operator[SEP] { Keyword[assert] identifier[paramEvent] operator[!=] Other[null] operator[SEP] Keyword[final] identifier[String] identifier[text] operator[=] identifier[paramEvent] op...
protected final <T> String getString(final IKey<T> key) { final Object value = config.get(key.key()); return String.valueOf(value != null ? value : key.getDefaultValue()); }
class class_name[name] begin[{] method[getString, return_type[type[String]], modifier[final protected], parameter[key]] begin[{] local_variable[type[Object], value] return[call[String.valueOf, parameter[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_o...
Keyword[protected] Keyword[final] operator[<] identifier[T] operator[>] identifier[String] identifier[getString] operator[SEP] Keyword[final] identifier[IKey] operator[<] identifier[T] operator[>] identifier[key] operator[SEP] { Keyword[final] identifier[Object] identifier[value] operator[=] identifier[config] o...
@Indexable(type = IndexableType.REINDEX) @Override public CommerceNotificationAttachment updateCommerceNotificationAttachment( CommerceNotificationAttachment commerceNotificationAttachment) { return commerceNotificationAttachmentPersistence.update(commerceNotificationAttachment); }
class class_name[name] begin[{] method[updateCommerceNotificationAttachment, return_type[type[CommerceNotificationAttachment]], modifier[public], parameter[commerceNotificationAttachment]] begin[{] return[call[commerceNotificationAttachmentPersistence.update, parameter[member[.commerceNotificationAttac...
annotation[@] identifier[Indexable] operator[SEP] identifier[type] operator[=] identifier[IndexableType] operator[SEP] identifier[REINDEX] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[CommerceNotificationAttachment] identifier[updateCommerceNotificationAttachment] operator[SEP] identifier...
private void downHeap() { E elem = storage.array[0]; int currIdx = 0; while (2 * currIdx < size) { int leftChildIdx = 2 * currIdx; E leftChild = storage.array[leftChildIdx]; if (comparator.compare(elem, leftChild) > 0) { storage.array[currIdx]...
class class_name[name] begin[{] method[downHeap, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[E], elem] local_variable[type[int], currIdx] while[binary_operation[binary_operation[literal[2], *, member[.currIdx]], <, member[.size]]] begin[{] ...
Keyword[private] Keyword[void] identifier[downHeap] operator[SEP] operator[SEP] { identifier[E] identifier[elem] operator[=] identifier[storage] operator[SEP] identifier[array] operator[SEP] Other[0] operator[SEP] operator[SEP] Keyword[int] identifier[currIdx] operator[=] Other[0] operator[SEP] Keyword[while] op...
@FFDCIgnore({ IllegalStateException.class, Exception.class }) public BundleLifecycleStatus uninstallBundles(final BundleContext bundleContext, final BundleList removeBundles, final BundleInstallStatus installStatus, ...
class class_name[name] begin[{] method[uninstallBundles, return_type[type[BundleLifecycleStatus]], modifier[public], parameter[bundleContext, removeBundles, installStatus, shutdownHook]] begin[{] local_variable[type[List], bundlesToUninstall] call[removeBundles.foreach, parameter[ClassC...
annotation[@] identifier[FFDCIgnore] operator[SEP] { identifier[IllegalStateException] operator[SEP] Keyword[class] , identifier[Exception] operator[SEP] Keyword[class] } operator[SEP] Keyword[public] identifier[BundleLifecycleStatus] identifier[uninstallBundles] operator[SEP] Keyword[final] identifier[Bundl...
public <T extends AmazonWebServiceRequest> T withSdkClientExecutionTimeout(int sdkClientExecutionTimeout) { setSdkClientExecutionTimeout(sdkClientExecutionTimeout); @SuppressWarnings("unchecked") T t = (T) this; return t; }
class class_name[name] begin[{] method[withSdkClientExecutionTimeout, return_type[type[T]], modifier[public], parameter[sdkClientExecutionTimeout]] begin[{] call[.setSdkClientExecutionTimeout, parameter[member[.sdkClientExecutionTimeout]]] local_variable[type[T], t] return[membe...
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[AmazonWebServiceRequest] operator[>] identifier[T] identifier[withSdkClientExecutionTimeout] operator[SEP] Keyword[int] identifier[sdkClientExecutionTimeout] operator[SEP] { identifier[setSdkClientExecutionTimeout] operator[SEP] identifier[sdk...
public Observable<Page<DeletedCertificateItem>> getDeletedCertificatesAsync(final String vaultBaseUrl, final Integer maxresults, final Boolean includePending) { return getDeletedCertificatesWithServiceResponseAsync(vaultBaseUrl, maxresults, includePending) .map(new Func1<ServiceResponse<Page<Deleted...
class class_name[name] begin[{] method[getDeletedCertificatesAsync, return_type[type[Observable]], modifier[public], parameter[vaultBaseUrl, maxresults, includePending]] begin[{] return[call[.getDeletedCertificatesWithServiceResponseAsync, parameter[member[.vaultBaseUrl], member[.maxresults], member[.i...
Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[DeletedCertificateItem] operator[>] operator[>] identifier[getDeletedCertificatesAsync] operator[SEP] Keyword[final] identifier[String] identifier[vaultBaseUrl] , Keyword[final] identifier[Integer] identifier[maxresults] , Keyw...
public void message(SourceLocator srcLctr, String msg, boolean terminate) throws TransformerException { ErrorListener errHandler = m_transformer.getErrorListener(); if (null != errHandler) { errHandler.warning(new TransformerException(msg, srcLctr)); } else { if (terminate) ...
class class_name[name] begin[{] method[message, return_type[void], modifier[public], parameter[srcLctr, msg, terminate]] begin[{] local_variable[type[ErrorListener], errHandler] if[binary_operation[literal[null], !=, member[.errHandler]]] begin[{] call[errHandler...
Keyword[public] Keyword[void] identifier[message] operator[SEP] identifier[SourceLocator] identifier[srcLctr] , identifier[String] identifier[msg] , Keyword[boolean] identifier[terminate] operator[SEP] Keyword[throws] identifier[TransformerException] { identifier[ErrorListener] identifier[errHandler] operator[...
public static String format(final OffsetTime self, String pattern) { return self.format(DateTimeFormatter.ofPattern(pattern)); }
class class_name[name] begin[{] method[format, return_type[type[String]], modifier[public static], parameter[self, pattern]] begin[{] return[call[self.format, parameter[call[DateTimeFormatter.ofPattern, parameter[member[.pattern]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[format] operator[SEP] Keyword[final] identifier[OffsetTime] identifier[self] , identifier[String] identifier[pattern] operator[SEP] { Keyword[return] identifier[self] operator[SEP] identifier[format] operator[SEP] identifier[DateTimeFormatter] operat...
boolean isProtoBufMessageObject(Object object) { if (object == null) { return false; } if (MULTIPLE_CLASSLOADER) { return object instanceof MessageLite || isProtoBufMessageClass(object.getClass()); } else { return object instanceof MessageLite; ...
class class_name[name] begin[{] method[isProtoBufMessageObject, return_type[type[boolean]], modifier[default], parameter[object]] begin[{] if[binary_operation[member[.object], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] ...
Keyword[boolean] identifier[isProtoBufMessageObject] operator[SEP] identifier[Object] identifier[object] operator[SEP] { Keyword[if] operator[SEP] identifier[object] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] identi...
public LightweightTypeReference getReturnTypeOfOverriddenOperation(JvmOperation operation, ITypeReferenceOwner owner, IVisibilityHelper visibilityHelper) { if (operation.getVisibility() == JvmVisibility.PRIVATE || !InferredTypeIndicator.isInferred(operation.getReturnType())) { return null; } LightweightTypeRef...
class class_name[name] begin[{] method[getReturnTypeOfOverriddenOperation, return_type[type[LightweightTypeReference]], modifier[public], parameter[operation, owner, visibilityHelper]] begin[{] if[binary_operation[binary_operation[call[operation.getVisibility, parameter[]], ==, member[JvmVisibi...
Keyword[public] identifier[LightweightTypeReference] identifier[getReturnTypeOfOverriddenOperation] operator[SEP] identifier[JvmOperation] identifier[operation] , identifier[ITypeReferenceOwner] identifier[owner] , identifier[IVisibilityHelper] identifier[visibilityHelper] operator[SEP] { Keyword[if] operator[...
public ValidateTemplateResult withParameters(TemplateParameter... parameters) { if (this.parameters == null) { setParameters(new com.amazonaws.internal.SdkInternalList<TemplateParameter>(parameters.length)); } for (TemplateParameter ele : parameters) { this.parameters.add...
class class_name[name] begin[{] method[withParameters, return_type[type[ValidateTemplateResult]], modifier[public], parameter[parameters]] begin[{] if[binary_operation[THIS[member[None.parameters]], ==, literal[null]]] begin[{] call[.setParameters, parameter[ClassCreator...
Keyword[public] identifier[ValidateTemplateResult] identifier[withParameters] operator[SEP] identifier[TemplateParameter] operator[...] identifier[parameters] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[parameters] operator[==] Other[null] operator[SEP] { identifie...
public final void inlineListExpression() throws RecognitionException { try { // src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:560:5: ( LEFT_SQUARE ( expressionList )? RIGHT_SQUARE ) // src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:560:9: LEFT_SQUARE ( expressionList )? RIGHT_SQUA...
class class_name[name] begin[{] method[inlineListExpression, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_...
Keyword[public] Keyword[final] Keyword[void] identifier[inlineListExpression] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { { identifier[match] operator[SEP] identifier[input] , identifier[LEFT_SQUARE] , identifier[FOLLOW_LEFT_SQUARE_in_...
public Decorators<BeansDescriptor> getOrCreateDecorators() { List<Node> nodeList = model.get("decorators"); if (nodeList != null && nodeList.size() > 0) { return new DecoratorsImpl<BeansDescriptor>(this, "decorators", model, nodeList.get(0)); } return createDecorators(); }
class class_name[name] begin[{] method[getOrCreateDecorators, return_type[type[Decorators]], modifier[public], parameter[]] begin[{] local_variable[type[List], nodeList] if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operation[call[nodeList.size, ...
Keyword[public] identifier[Decorators] operator[<] identifier[BeansDescriptor] operator[>] identifier[getOrCreateDecorators] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList] operator[=] identifier[model] operator[SEP] identifier[get] operator[SEP] liter...
public T get(Object key) { SoftReference<T> ref = cache.get(key); T ob; if( ref == null ) { return null; } ob = ref.get(); if( ob == null ) { release(key); } if( ob instanceof CachedItem ) { if( !((CachedItem)ob...
class class_name[name] begin[{] method[get, return_type[type[T]], modifier[public], parameter[key]] begin[{] local_variable[type[SoftReference], ref] local_variable[type[T], ob] if[binary_operation[member[.ref], ==, literal[null]]] begin[{] return[literal[null]] ...
Keyword[public] identifier[T] identifier[get] operator[SEP] identifier[Object] identifier[key] operator[SEP] { identifier[SoftReference] operator[<] identifier[T] operator[>] identifier[ref] operator[=] identifier[cache] operator[SEP] identifier[get] operator[SEP] identifier[key] operator[SEP] operator[SEP] iden...
public static <MSG extends Message> void writeStream(Iterable<MSG> messages, OutputStream output) { try { for (Message message : messages) { message.writeDelimitedTo(output); } } catch (Exception e) { throw ContextException.of("Unable to write messages", e); } }
class class_name[name] begin[{] method[writeStream, return_type[void], modifier[public static], parameter[messages, output]] begin[{] TryStatement(block=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=output, po...
Keyword[public] Keyword[static] operator[<] identifier[MSG] Keyword[extends] identifier[Message] operator[>] Keyword[void] identifier[writeStream] operator[SEP] identifier[Iterable] operator[<] identifier[MSG] operator[>] identifier[messages] , identifier[OutputStream] identifier[output] operator[SEP] { Keyword...
private String getServiceIdFromMavenBundlePlugin() { Plugin bundlePlugin = project.getBuildPlugins().stream() .filter(plugin -> StringUtils.equals(plugin.getKey(), MAVEN_BUNDLE_PLUGIN_ID)) .findFirst().orElse(null); if (bundlePlugin != null) { Xpp3Dom configuration = (Xpp3Dom)bundlePlugin....
class class_name[name] begin[{] method[getServiceIdFromMavenBundlePlugin, return_type[type[String]], modifier[private], parameter[]] begin[{] local_variable[type[Plugin], bundlePlugin] if[binary_operation[member[.bundlePlugin], !=, literal[null]]] begin[{] local_variable[typ...
Keyword[private] identifier[String] identifier[getServiceIdFromMavenBundlePlugin] operator[SEP] operator[SEP] { identifier[Plugin] identifier[bundlePlugin] operator[=] identifier[project] operator[SEP] identifier[getBuildPlugins] operator[SEP] operator[SEP] operator[SEP] identifier[stream] operator[SEP] operator...
public static synchronized void resetAll(Object... additionalMocks) { MockRepository.addObjectsToAutomaticallyReplayAndVerify(additionalMocks); for (Object classToReplayOrVerify : MockRepository.getObjectsToAutomaticallyReplayAndVerify()) { reset(classToReplayOrVerify); } }
class class_name[name] begin[{] method[resetAll, return_type[void], modifier[synchronized public static], parameter[additionalMocks]] begin[{] call[MockRepository.addObjectsToAutomaticallyReplayAndVerify, parameter[member[.additionalMocks]]] ForStatement(body=BlockStatement(label=None, ...
Keyword[public] Keyword[static] Keyword[synchronized] Keyword[void] identifier[resetAll] operator[SEP] identifier[Object] operator[...] identifier[additionalMocks] operator[SEP] { identifier[MockRepository] operator[SEP] identifier[addObjectsToAutomaticallyReplayAndVerify] operator[SEP] identifier[additionalMock...
public static <T> List<T> page(int pageNo, int pageSize, List<T> list) { if (isEmpty(list)) { return new ArrayList<>(0); } int resultSize = list.size(); // 每页条目数大于总数直接返回所有 if (resultSize <= pageSize) { if (pageNo <= 1) { return Collections.unmodifiableList(list); } else { // 越界直接返...
class class_name[name] begin[{] method[page, return_type[type[List]], modifier[public static], parameter[pageNo, pageSize, list]] begin[{] if[call[.isEmpty, parameter[member[.list]]]] begin[{] return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[page] operator[SEP] Keyword[int] identifier[pageNo] , Keyword[int] identifier[pageSize] , identifier[List] operator[<] identifier[T] operator[>] identifier[list] operator[SEP] { ...
@Override public List<CommerceAccount> findByCompanyId(long companyId) { return findByCompanyId(companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
class class_name[name] begin[{] method[findByCompanyId, return_type[type[List]], modifier[public], parameter[companyId]] begin[{] return[call[.findByCompanyId, parameter[member[.companyId], member[QueryUtil.ALL_POS], member[QueryUtil.ALL_POS], literal[null]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CommerceAccount] operator[>] identifier[findByCompanyId] operator[SEP] Keyword[long] identifier[companyId] operator[SEP] { Keyword[return] identifier[findByCompanyId] operator[SEP] identifier[companyId] , identifier[Query...
public void get(Object rootVal, MatchSpaceKey msg, EvalCache cache, Object contextValue, SearchResults result) throws MatchingException,BadMessageFormatMatchingException { if (tc.isEntryEnabled()) tc.entry(this,cclass, "get", new Obj...
class class_name[name] begin[{] method[get, return_type[void], modifier[public], parameter[rootVal, msg, cache, contextValue, result]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[tc.entry, parameter[THIS[], member[.cclass], literal["get"], ArrayCreator(dimensions...
Keyword[public] Keyword[void] identifier[get] operator[SEP] identifier[Object] identifier[rootVal] , identifier[MatchSpaceKey] identifier[msg] , identifier[EvalCache] identifier[cache] , identifier[Object] identifier[contextValue] , identifier[SearchResults] identifier[result] operator[SEP] Keyword[throws] identifi...
public Subscription updateSubscription(final String uuid, final SubscriptionUpdate subscriptionUpdate) { return doPUT(Subscriptions.SUBSCRIPTIONS_RESOURCE + "/" + uuid, subscriptionUpdate, Subscription.class); }
class class_name[name] begin[{] method[updateSubscription, return_type[type[Subscription]], modifier[public], parameter[uuid, subscriptionUpdate]] begin[{] return[call[.doPUT, parameter[binary_operation[binary_operation[member[Subscriptions.SUBSCRIPTIONS_RESOURCE], +, literal["/"]], +, member[.uuid]], ...
Keyword[public] identifier[Subscription] identifier[updateSubscription] operator[SEP] Keyword[final] identifier[String] identifier[uuid] , Keyword[final] identifier[SubscriptionUpdate] identifier[subscriptionUpdate] operator[SEP] { Keyword[return] identifier[doPUT] operator[SEP] identifier[Subscriptions] operat...
@InterfaceAudience.Private protected void checkSession() { if (getAuthenticator() != null) { Authorizer auth = (Authorizer) getAuthenticator(); auth.setRemoteURL(remote); auth.setLocalUUID(db.publicUUID()); } if (getAuthenticator() != null && getAuthentica...
class class_name[name] begin[{] method[checkSession, return_type[void], modifier[protected], parameter[]] begin[{] if[binary_operation[call[.getAuthenticator, parameter[]], !=, literal[null]]] begin[{] local_variable[type[Authorizer], auth] call[auth.setRemot...
annotation[@] identifier[InterfaceAudience] operator[SEP] identifier[Private] Keyword[protected] Keyword[void] identifier[checkSession] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[getAuthenticator] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[A...
public synchronized void sendResponse(BinaryResponse response) { if (pending == null) { pending = new LinkedList<ByteBuffer>(); } pending.add(response.getBuffer()); }
class class_name[name] begin[{] method[sendResponse, return_type[void], modifier[synchronized public], parameter[response]] begin[{] if[binary_operation[member[.pending], ==, literal[null]]] begin[{] assign[member[.pending], ClassCreator(arguments=[], body=None, construc...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[sendResponse] operator[SEP] identifier[BinaryResponse] identifier[response] operator[SEP] { Keyword[if] operator[SEP] identifier[pending] operator[==] Other[null] operator[SEP] { identifier[pending] operator[=] Keyword[new] identifier[Link...
public Content getQualifiedClassLink(LinkInfoImpl.Kind context, ClassDoc cd) { return getLink(new LinkInfoImpl(configuration, context, cd) .label(configuration.getClassName(cd))); }
class class_name[name] begin[{] method[getQualifiedClassLink, return_type[type[Content]], modifier[public], parameter[context, cd]] begin[{] return[call[.getLink, parameter[ClassCreator(arguments=[MemberReference(member=configuration, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])...
Keyword[public] identifier[Content] identifier[getQualifiedClassLink] operator[SEP] identifier[LinkInfoImpl] operator[SEP] identifier[Kind] identifier[context] , identifier[ClassDoc] identifier[cd] operator[SEP] { Keyword[return] identifier[getLink] operator[SEP] Keyword[new] identifier[LinkInfoImpl] operator[S...
@Override public boolean checkCondition(IValue test) throws FilterException { Iterator iter = values.iterator(); while (iter.hasNext()) { IValue value = (IValue) iter.next(); if (value.containedBy(test)) { return true; } } return fa...
class class_name[name] begin[{] method[checkCondition, return_type[type[boolean]], modifier[public], parameter[test]] begin[{] local_variable[type[Iterator], iter] while[call[iter.hasNext, parameter[]]] begin[{] local_variable[type[IValue], value] if[...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[checkCondition] operator[SEP] identifier[IValue] identifier[test] operator[SEP] Keyword[throws] identifier[FilterException] { identifier[Iterator] identifier[iter] operator[=] identifier[values] operator[SEP] identifier[iterator] oper...
@NotNull public Candidate setDateOfBirth(@Nullable final Date dateOfBirth) { if (dateOfBirth == null) { this.dateOfBirth = null; return this; } this.dateOfBirth = new Date(dateOfBirth.getTime()); return this; }
class class_name[name] begin[{] method[setDateOfBirth, return_type[type[Candidate]], modifier[public], parameter[dateOfBirth]] begin[{] if[binary_operation[member[.dateOfBirth], ==, literal[null]]] begin[{] assign[THIS[member[None.dateOfBirth]], literal[null]] ...
annotation[@] identifier[NotNull] Keyword[public] identifier[Candidate] identifier[setDateOfBirth] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[Date] identifier[dateOfBirth] operator[SEP] { Keyword[if] operator[SEP] identifier[dateOfBirth] operator[==] Other[null] operator[SEP] { ...
public int handleGetRawRecordData(Rec record) { int iErrorCode = Constant.NORMAL_RETURN; iErrorCode = super.handleGetRawRecordData(record); if (iErrorCode == Constant.NORMAL_RETURN) { if (m_messageDataDescChildren != null) { ...
class class_name[name] begin[{] method[handleGetRawRecordData, return_type[type[int]], modifier[public], parameter[record]] begin[{] local_variable[type[int], iErrorCode] assign[member[.iErrorCode], SuperMethodInvocation(arguments=[MemberReference(member=record, postfix_operators=[], pr...
Keyword[public] Keyword[int] identifier[handleGetRawRecordData] operator[SEP] identifier[Rec] identifier[record] operator[SEP] { Keyword[int] identifier[iErrorCode] operator[=] identifier[Constant] operator[SEP] identifier[NORMAL_RETURN] operator[SEP] identifier[iErrorCode] operator[=] Keyword[super] operator[SE...
public void shutdownInvocations() { logger.finest("Shutting down invocations"); invocationRegistry.shutdown(); invocationMonitor.shutdown(); inboundResponseHandlerSupplier.shutdown(); try { invocationMonitor.awaitTermination(TERMINATION_TIMEOUT_MILLIS); } ca...
class class_name[name] begin[{] method[shutdownInvocations, return_type[void], modifier[public], parameter[]] begin[{] call[logger.finest, parameter[literal["Shutting down invocations"]]] call[invocationRegistry.shutdown, parameter[]] call[invocationMonitor.shutd...
Keyword[public] Keyword[void] identifier[shutdownInvocations] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] identifier[finest] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[invocationRegistry] operator[SEP] identifier[shutdown] operator[SEP] operator[SEP] operator[SEP] ide...
protected CompletableFuture<List<String>> remoteWebSocketAddresses(@RpcTargetAddress InetSocketAddress targetAddress, Serializable userid) { if (remoteNode == null) return CompletableFuture.completedFuture(null); try { return remoteNode.getWebSocketAddresses(targetAddress, userid); ...
class class_name[name] begin[{] method[remoteWebSocketAddresses, return_type[type[CompletableFuture]], modifier[protected], parameter[targetAddress, userid]] begin[{] if[binary_operation[member[.remoteNode], ==, literal[null]]] begin[{] return[call[CompletableFuture.completedFuture, parameter[l...
Keyword[protected] identifier[CompletableFuture] operator[<] identifier[List] operator[<] identifier[String] operator[>] operator[>] identifier[remoteWebSocketAddresses] operator[SEP] annotation[@] identifier[RpcTargetAddress] identifier[InetSocketAddress] identifier[targetAddress] , identifier[Serializable] identifie...
@Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.GCHST__XPOS: setXPOS(XPOS_EDEFAULT); return; case AfplibPackage.GCHST__YPOS: setYPOS(YPOS_EDEFAULT); return; case AfplibPackage.GCHST__CP: setCP(CP_EDEFAULT); return; } super.eUnset(featureID); ...
class class_name[name] begin[{] method[eUnset, return_type[void], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=GCHST__XPOS, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[Stateme...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eUnset] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[GCHST__XPOS] operato...
public static Type parameterizedInnerClass(Type owner, Class<?> clazz, Type... arguments) { // never allow an owner on a class that doesn't have one if (clazz.getDeclaringClass() == null && owner != null) { throw new IllegalArgumentException("Cannot specify an owner type for a top level class"); } Type re...
class class_name[name] begin[{] method[parameterizedInnerClass, return_type[type[Type]], modifier[public static], parameter[owner, clazz, arguments]] begin[{] if[binary_operation[binary_operation[call[clazz.getDeclaringClass, parameter[]], ==, literal[null]], &&, binary_operation[member[.owner]...
Keyword[public] Keyword[static] identifier[Type] identifier[parameterizedInnerClass] operator[SEP] identifier[Type] identifier[owner] , identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[Type] operator[...] identifier[arguments] operator[SEP] { Keyword[if] operator[SEP] identi...
public static <K, V> InternalCacheEntry<K, V> immutableInternalCacheEntry(InternalCacheEntry<K, V> entry) { return new ImmutableInternalCacheEntry<K, V>(entry); }
class class_name[name] begin[{] method[immutableInternalCacheEntry, return_type[type[InternalCacheEntry]], modifier[public static], parameter[entry]] begin[{] return[ClassCreator(arguments=[MemberReference(member=entry, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, c...
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[InternalCacheEntry] operator[<] identifier[K] , identifier[V] operator[>] identifier[immutableInternalCacheEntry] operator[SEP] identifier[InternalCacheEntry] operator[<] identifier[K] , identifier[V] operator[>] identif...
@Implementation protected int getConnectionState(BluetoothDevice device) { return connectedDevices.contains(device) ? BluetoothProfile.STATE_CONNECTED : BluetoothProfile.STATE_DISCONNECTED; }
class class_name[name] begin[{] method[getConnectionState, return_type[type[int]], modifier[protected], parameter[device]] begin[{] return[TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=device, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member...
annotation[@] identifier[Implementation] Keyword[protected] Keyword[int] identifier[getConnectionState] operator[SEP] identifier[BluetoothDevice] identifier[device] operator[SEP] { Keyword[return] identifier[connectedDevices] operator[SEP] identifier[contains] operator[SEP] identifier[device] operator[SEP] opera...
@SuppressWarnings("fallthrough") public static int log2(double x, RoundingMode mode) { N.checkArgument(x > 0.0 && isFinite(x), "x must be positive and finite"); int exponent = getExponent(x); if (!isNormal(x)) { return log2(x * IMPLICIT_BIT, mode) - SIGNIFICAND_BITS; ...
class class_name[name] begin[{] method[log2, return_type[type[int]], modifier[public static], parameter[x, mode]] begin[{] call[N.checkArgument, parameter[binary_operation[binary_operation[member[.x], >, literal[0.0]], &&, call[.isFinite, parameter[member[.x]]]], literal["x must be positive and...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[int] identifier[log2] operator[SEP] Keyword[double] identifier[x] , identifier[RoundingMode] identifier[mode] operator[SEP] { identifier[N] operator[SEP] identifier[checkArgument] opera...
@Override public String concat(final String parent, final String name) { return parent != null ? FileNameUtil.concat(FileNameUtil.getPath(parent), name) : name; }
class class_name[name] begin[{] method[concat, return_type[type[String]], modifier[public], parameter[parent, name]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=parent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[concat] operator[SEP] Keyword[final] identifier[String] identifier[parent] , Keyword[final] identifier[String] identifier[name] operator[SEP] { Keyword[return] identifier[parent] operator[!=] Other[null] operator[?] identifier[File...
@Scheduled(cron = "${deployer.main.targets.scan.scheduling.cron}") public void scanTargets() { try { targetService.resolveTargets(); } catch (DeployerException e) { logger.error("Scheduled target scan failed", e); } }
class class_name[name] begin[{] method[scanTargets, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=resolveTargets, postfix_operators=[], prefix_operators=[], qualifier=targetService, selectors=[], type_...
annotation[@] identifier[Scheduled] operator[SEP] identifier[cron] operator[=] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[scanTargets] operator[SEP] operator[SEP] { Keyword[try] { identifier[targetService] operator[SEP] identifier[resolveTargets] operator[SEP] operator[SEP]...
public static AuthData getAuthData(String authDataAlias) throws LoginException { readLock.lock(); try { AuthData authDataConfig = authDataMap.getService(authDataAlias); validateAuthDataConfig(authDataAlias, authDataConfig); return authDataConfig; } finally { ...
class class_name[name] begin[{] method[getAuthData, return_type[type[AuthData]], modifier[public static], parameter[authDataAlias]] begin[{] call[readLock.lock, parameter[]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initi...
Keyword[public] Keyword[static] identifier[AuthData] identifier[getAuthData] operator[SEP] identifier[String] identifier[authDataAlias] operator[SEP] Keyword[throws] identifier[LoginException] { identifier[readLock] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { ...
public void returnSerializationObject(SerializationObject object) { synchronized (ivListOfObjects) { if (ivListOfObjects.size() < MAXIMUM_NUM_OF_OBJECTS) { ivListOfObjects.add(object); } } }
class class_name[name] begin[{] method[returnSerializationObject, return_type[void], modifier[public], parameter[object]] begin[{] SYNCHRONIZED[member[.ivListOfObjects]] BEGIN[{] if[binary_operation[call[ivListOfObjects.size, parameter[]], <, member[.MAXIMUM_NUM_OF_OBJEC...
Keyword[public] Keyword[void] identifier[returnSerializationObject] operator[SEP] identifier[SerializationObject] identifier[object] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[ivListOfObjects] operator[SEP] { Keyword[if] operator[SEP] identifier[ivListOfObjects] operator[SEP] ident...
@Override public void remove(byte []tableKey, byte []rowKey, long version, Result<Boolean> result) { _tableManager.getKelpBacking().remove(tableKey, rowKey, version, result); }
class class_name[name] begin[{] method[remove, return_type[void], modifier[public], parameter[tableKey, rowKey, version, result]] begin[{] call[_tableManager.getKelpBacking, parameter[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[remove] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[tableKey] , Keyword[byte] operator[SEP] operator[SEP] identifier[rowKey] , Keyword[long] identifier[version] , identifier[Result] operator[<] identifier[Boolean] oper...
public DescribeStorediSCSIVolumesResult withStorediSCSIVolumes(StorediSCSIVolume... storediSCSIVolumes) { if (this.storediSCSIVolumes == null) { setStorediSCSIVolumes(new com.amazonaws.internal.SdkInternalList<StorediSCSIVolume>(storediSCSIVolumes.length)); } for (StorediSCSIVolume e...
class class_name[name] begin[{] method[withStorediSCSIVolumes, return_type[type[DescribeStorediSCSIVolumesResult]], modifier[public], parameter[storediSCSIVolumes]] begin[{] if[binary_operation[THIS[member[None.storediSCSIVolumes]], ==, literal[null]]] begin[{] call[.set...
Keyword[public] identifier[DescribeStorediSCSIVolumesResult] identifier[withStorediSCSIVolumes] operator[SEP] identifier[StorediSCSIVolume] operator[...] identifier[storediSCSIVolumes] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[storediSCSIVolumes] operator[==] Other[null] op...
@Override public GetCampaignActivitiesResult getCampaignActivities(GetCampaignActivitiesRequest request) { request = beforeClientExecution(request); return executeGetCampaignActivities(request); }
class class_name[name] begin[{] method[getCampaignActivities, return_type[type[GetCampaignActivitiesResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetCampaignActivities, par...
annotation[@] identifier[Override] Keyword[public] identifier[GetCampaignActivitiesResult] identifier[getCampaignActivities] operator[SEP] identifier[GetCampaignActivitiesRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[reques...
public static CommerceWishListItem findByCW_CPI_First( long commerceWishListId, String CPInstanceUuid, OrderByComparator<CommerceWishListItem> orderByComparator) throws com.liferay.commerce.wish.list.exception.NoSuchWishListItemException { return getPersistence() .findByCW_CPI_First(commerceWishListId, C...
class class_name[name] begin[{] method[findByCW_CPI_First, return_type[type[CommerceWishListItem]], modifier[public static], parameter[commerceWishListId, CPInstanceUuid, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceWishListItem] identifier[findByCW_CPI_First] operator[SEP] Keyword[long] identifier[commerceWishListId] , identifier[String] identifier[CPInstanceUuid] , identifier[OrderByComparator] operator[<] identifier[CommerceWishListItem] operator[>] identifier[orderByComparat...
protected static TableServiceException generateTableServiceException(RequestResult res, TableOperation op, InputStream inStream, TablePayloadFormat format) { return new TableServiceException(res.getStatusCode(), res.getStatusMessage(), op, new InputStreamReader(inStream), format); ...
class class_name[name] begin[{] method[generateTableServiceException, return_type[type[TableServiceException]], modifier[static protected], parameter[res, op, inStream, format]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getStatusCode, postfix_operators=[], prefix_ope...
Keyword[protected] Keyword[static] identifier[TableServiceException] identifier[generateTableServiceException] operator[SEP] identifier[RequestResult] identifier[res] , identifier[TableOperation] identifier[op] , identifier[InputStream] identifier[inStream] , identifier[TablePayloadFormat] identifier[format] operato...
public static void booter(String[] elasticsearchServerNames,GetProperties configContext,boolean forceBoot){ booter( elasticsearchServerNames, configContext, forceBoot,false); }
class class_name[name] begin[{] method[booter, return_type[void], modifier[public static], parameter[elasticsearchServerNames, configContext, forceBoot]] begin[{] call[.booter, parameter[member[.elasticsearchServerNames], member[.configContext], member[.forceBoot], literal[false]]] end[}] E...
Keyword[public] Keyword[static] Keyword[void] identifier[booter] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[elasticsearchServerNames] , identifier[GetProperties] identifier[configContext] , Keyword[boolean] identifier[forceBoot] operator[SEP] { identifier[booter] operator[SEP] iden...
public void marshall(PutEventsRequest putEventsRequest, ProtocolMarshaller protocolMarshaller) { if (putEventsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(putEventsRequest.getApplication...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[putEventsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.putEventsRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postf...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[PutEventsRequest] identifier[putEventsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[putEventsRequest] operator[==] Other[null] operator[SEP] { Ke...
List<Measurement> getMeasurements() { return stream() .filter(m -> !m.hasExpired()) .flatMap(m -> StreamSupport.stream(m.measure().spliterator(), false)) .collect(Collectors.toList()); }
class class_name[name] begin[{] method[getMeasurements, return_type[type[List]], modifier[default], parameter[]] begin[{] return[call[.stream, parameter[]]] end[}] END[}]
identifier[List] operator[<] identifier[Measurement] operator[>] identifier[getMeasurements] operator[SEP] operator[SEP] { Keyword[return] identifier[stream] operator[SEP] operator[SEP] operator[SEP] identifier[filter] operator[SEP] identifier[m] operator[->] operator[!] identifier[m] operator[SEP] identifier[ha...
public static Bootstrap removeSslSupport(Bootstrap b) { BootstrapHandlers.removeConfiguration(b, NettyPipeline.SslHandler); return b; }
class class_name[name] begin[{] method[removeSslSupport, return_type[type[Bootstrap]], modifier[public static], parameter[b]] begin[{] call[BootstrapHandlers.removeConfiguration, parameter[member[.b], member[NettyPipeline.SslHandler]]] return[member[.b]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Bootstrap] identifier[removeSslSupport] operator[SEP] identifier[Bootstrap] identifier[b] operator[SEP] { identifier[BootstrapHandlers] operator[SEP] identifier[removeConfiguration] operator[SEP] identifier[b] , identifier[NettyPipeline] operator[SEP] identifier[SslHan...
public JComponent[] addBinding(Binding binding, JComponent wrappedComponent, String attributes, String labelAttributes) { Assert.notNull(binding, "binding is null"); Assert.isTrue(getFormModel() == binding.getFormModel(), "Binding's form model must match FormBuilder's form mo...
class class_name[name] begin[{] method[addBinding, return_type[type[JComponent]], modifier[public], parameter[binding, wrappedComponent, attributes, labelAttributes]] begin[{] call[Assert.notNull, parameter[member[.binding], literal["binding is null"]]] call[Assert.isTrue, param...
Keyword[public] identifier[JComponent] operator[SEP] operator[SEP] identifier[addBinding] operator[SEP] identifier[Binding] identifier[binding] , identifier[JComponent] identifier[wrappedComponent] , identifier[String] identifier[attributes] , identifier[String] identifier[labelAttributes] operator[SEP] { ide...
private Future<M> sync() { logger.debug("Synchronization of Remote[" + this + "] triggered..."); try { validateInitialization(); try { SyncTaskCallable syncCallable = new SyncTaskCallable(); final Future<M> currentSyncTask = GlobalCachedExecutorSe...
class class_name[name] begin[{] method[sync, return_type[type[Future]], modifier[private], parameter[]] begin[{] call[logger.debug, parameter[binary_operation[binary_operation[literal["Synchronization of Remote["], +, THIS[]], +, literal["] triggered..."]]]] TryStatement(block=[Statemen...
Keyword[private] identifier[Future] operator[<] identifier[M] operator[>] identifier[sync] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] Keyword[this] operator[+] literal[String] operator[SEP] operator[SEP] Keyword[try] { ide...
public static RequestBinding attribute(final String property) { return new RequestAttributeBinding(property) { @Override public String toString() { return "RequestBinding.attribute(\"" + property + "\")"; } }; }
class class_name[name] begin[{] method[attribute, return_type[type[RequestBinding]], modifier[public static], parameter[property]] begin[{] return[ClassCreator(arguments=[MemberReference(member=property, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=[MethodDeclaration(anno...
Keyword[public] Keyword[static] identifier[RequestBinding] identifier[attribute] operator[SEP] Keyword[final] identifier[String] identifier[property] operator[SEP] { Keyword[return] Keyword[new] identifier[RequestAttributeBinding] operator[SEP] identifier[property] operator[SEP] { annotation[@] identi...