code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public void setOutgoingCertificates(java.util.Collection<OutgoingCertificate> outgoingCertificates) { if (outgoingCertificates == null) { this.outgoingCertificates = null; return; } this.outgoingCertificates = new java.util.ArrayList<OutgoingCertificate>(outgoingCertific...
class class_name[name] begin[{] method[setOutgoingCertificates, return_type[void], modifier[public], parameter[outgoingCertificates]] begin[{] if[binary_operation[member[.outgoingCertificates], ==, literal[null]]] begin[{] assign[THIS[member[None.outgoingCertificates]], ...
Keyword[public] Keyword[void] identifier[setOutgoingCertificates] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[OutgoingCertificate] operator[>] identifier[outgoingCertificates] operator[SEP] { Keyword[if] operator[SEP] identifier[outgoi...
private void genGoogMsgCodeForChildren( ImmutableList<SoyMsgPart> parts, MsgNode msgNode, GoogMsgPlaceholderCodeGenInfo codeGenInfo) { for (SoyMsgPart child : parts) { if (child instanceof SoyMsgRawTextPart || child instanceof SoyMsgPluralRemainderPart) { // raw text doesn't have placeholders a...
class class_name[name] begin[{] method[genGoogMsgCodeForChildren, return_type[void], modifier[private], parameter[parts, msgNode, codeGenInfo]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(membe...
Keyword[private] Keyword[void] identifier[genGoogMsgCodeForChildren] operator[SEP] identifier[ImmutableList] operator[<] identifier[SoyMsgPart] operator[>] identifier[parts] , identifier[MsgNode] identifier[msgNode] , identifier[GoogMsgPlaceholderCodeGenInfo] identifier[codeGenInfo] operator[SEP] { Keyword[for...
private ArrayList <TextView> createAndReturnTextViewsFromWebElements(boolean javaScriptWasExecuted){ ArrayList<TextView> webElementsAsTextViews = new ArrayList<TextView>(); if(javaScriptWasExecuted){ for(WebElement webElement : webElementCreator.getWebElementsFromWebViews()){ if(isWebElementSufficientlyShow...
class class_name[name] begin[{] method[createAndReturnTextViewsFromWebElements, return_type[type[ArrayList]], modifier[private], parameter[javaScriptWasExecuted]] begin[{] local_variable[type[ArrayList], webElementsAsTextViews] if[member[.javaScriptWasExecuted]] begin[{] For...
Keyword[private] identifier[ArrayList] operator[<] identifier[TextView] operator[>] identifier[createAndReturnTextViewsFromWebElements] operator[SEP] Keyword[boolean] identifier[javaScriptWasExecuted] operator[SEP] { identifier[ArrayList] operator[<] identifier[TextView] operator[>] identifier[webElementsAsTextV...
public final EObject entryRuleEnumRule() throws RecognitionException { EObject current = null; EObject iv_ruleEnumRule = null; try { // InternalXtext.g:3526:49: (iv_ruleEnumRule= ruleEnumRule EOF ) // InternalXtext.g:3527:2: iv_ruleEnumRule= ruleEnumRule EOF ...
class class_name[name] begin[{] method[entryRuleEnumRule, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[EObject], iv_ruleEnumRule] TryStatement(block=[BlockStatement(label=None, statements=[StatementE...
Keyword[public] Keyword[final] identifier[EObject] identifier[entryRuleEnumRule] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[EObject] identifier[iv_ruleEnumRule] operator[=] Other[null] ope...
public void sendRequest(String username, String servicename, String methodname, byte[] requestdata) throws SshException { ByteArrayWriter msg = new ByteArrayWriter(); try { msg.write(SSH_MSG_USERAUTH_REQUEST); msg.writeString(username); msg.writeString(servicename); msg.writeString(methodname); ...
class class_name[name] begin[{] method[sendRequest, return_type[void], modifier[public], parameter[username, servicename, methodname, requestdata]] begin[{] local_variable[type[ByteArrayWriter], msg] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(...
Keyword[public] Keyword[void] identifier[sendRequest] operator[SEP] identifier[String] identifier[username] , identifier[String] identifier[servicename] , identifier[String] identifier[methodname] , Keyword[byte] operator[SEP] operator[SEP] identifier[requestdata] operator[SEP] Keyword[throws] identifier[SshExceptio...
public Matrix4x3d rotate(double ang, double x, double y, double z) { return rotate(ang, x, y, z, this); }
class class_name[name] begin[{] method[rotate, return_type[type[Matrix4x3d]], modifier[public], parameter[ang, x, y, z]] begin[{] return[call[.rotate, parameter[member[.ang], member[.x], member[.y], member[.z], THIS[]]]] end[}] END[}]
Keyword[public] identifier[Matrix4x3d] identifier[rotate] operator[SEP] Keyword[double] identifier[ang] , Keyword[double] identifier[x] , Keyword[double] identifier[y] , Keyword[double] identifier[z] operator[SEP] { Keyword[return] identifier[rotate] operator[SEP] identifier[ang] , identifier[x] , identifie...
@Override public void to(final NodeDescriptor descriptor, final OutputStream output) throws DescriptorExportException, IllegalArgumentException { // Precondition checks if (descriptor == null) { throw new IllegalArgumentException("descriptor must be specified"); } ...
class class_name[name] begin[{] method[to, return_type[void], modifier[public], parameter[descriptor, output]] begin[{] if[binary_operation[member[.descriptor], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operat...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[to] operator[SEP] Keyword[final] identifier[NodeDescriptor] identifier[descriptor] , Keyword[final] identifier[OutputStream] identifier[output] operator[SEP] Keyword[throws] identifier[DescriptorExportException] , identifier[IllegalArgumentEx...
public void println(char[] x) { if (ivSuppress == true) return; LogRecord sse = null; // Add data to cache, then forward on to logging subsystem. Must not // hold the object synchronizer on the dispatch. { sse = getTraceData(x); dispatchEvent(...
class class_name[name] begin[{] method[println, return_type[void], modifier[public], parameter[x]] begin[{] if[binary_operation[member[.ivSuppress], ==, literal[true]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[LogRecord], sse] ...
Keyword[public] Keyword[void] identifier[println] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[x] operator[SEP] { Keyword[if] operator[SEP] identifier[ivSuppress] operator[==] literal[boolean] operator[SEP] Keyword[return] operator[SEP] identifier[LogRecord] identifier[sse] operator[=] Othe...
String getFormattedDate(CmsDateFormatOption formatOption) { if (null == formatOption) { return getFormattedDate(DateFormat.SHORT); } String result; if (isWholeDay()) { result = formatOption.formatDate(getStart()); if (getLastDay().after(getStart())) {...
class class_name[name] begin[{] method[getFormattedDate, return_type[type[String]], modifier[default], parameter[formatOption]] begin[{] if[binary_operation[literal[null], ==, member[.formatOption]]] begin[{] return[call[.getFormattedDate, parameter[member[DateFormat.SHORT]]]] ...
identifier[String] identifier[getFormattedDate] operator[SEP] identifier[CmsDateFormatOption] identifier[formatOption] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[formatOption] operator[SEP] { Keyword[return] identifier[getFormattedDate] operator[SEP] identifier[DateF...
public Futures subRef( Vec vec, Futures fs ) { assert fs != null : "Future should not be null!"; if ( vec.masterVec() != null ) subRef(vec.masterVec(), fs); int cnt = _refcnt.get(vec)._val-1; if ( cnt > 0 ) { _refcnt.put(vec,new IcedInt(cnt)); } else { UKV.remove(vec._key,fs); _ref...
class class_name[name] begin[{] method[subRef, return_type[type[Futures]], modifier[public], parameter[vec, fs]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=fs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operator...
Keyword[public] identifier[Futures] identifier[subRef] operator[SEP] identifier[Vec] identifier[vec] , identifier[Futures] identifier[fs] operator[SEP] { Keyword[assert] identifier[fs] operator[!=] Other[null] operator[:] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[vec] operator[SEP] ide...
static void adjustPositionSet( List<NodeInfo> order, Element positionSet, IntegrationResult result) { Node nodeToMatch = positionSet.getFirstChild(); Element nodeToInsertBefore = positionSet.getOwnerDocument().createElement("INSERT_POINT"); positionSet.insertBefore(nodeToInsertBefore...
class class_name[name] begin[{] method[adjustPositionSet, return_type[void], modifier[static], parameter[order, positionSet, result]] begin[{] local_variable[type[Node], nodeToMatch] local_variable[type[Element], nodeToInsertBefore] call[positionSet.insertBefore, parameter[membe...
Keyword[static] Keyword[void] identifier[adjustPositionSet] operator[SEP] identifier[List] operator[<] identifier[NodeInfo] operator[>] identifier[order] , identifier[Element] identifier[positionSet] , identifier[IntegrationResult] identifier[result] operator[SEP] { identifier[Node] identifier[nodeToMatch] ope...
public void marshall(DeleteTagsRequest deleteTagsRequest, ProtocolMarshaller protocolMarshaller) { if (deleteTagsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteTagsRequest.getResourc...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[deleteTagsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.deleteTagsRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(pos...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeleteTagsRequest] identifier[deleteTagsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deleteTagsRequest] operator[==] Other[null] operator[SEP] { ...
private Request buildEmptyRequest(Request request) { RequestBody body = RequestBody.create(MediaType.parse("application/json"), "{}"); if (request.method().equalsIgnoreCase("get")) { return request; } else { return request.newBuilder().method(request.method(), body).build...
class class_name[name] begin[{] method[buildEmptyRequest, return_type[type[Request]], modifier[private], parameter[request]] begin[{] local_variable[type[RequestBody], body] if[call[request.method, parameter[]]] begin[{] return[member[.request]] else begin[{] ...
Keyword[private] identifier[Request] identifier[buildEmptyRequest] operator[SEP] identifier[Request] identifier[request] operator[SEP] { identifier[RequestBody] identifier[body] operator[=] identifier[RequestBody] operator[SEP] identifier[create] operator[SEP] identifier[MediaType] operator[SEP] identifier[parse...
public void marshall(Operation operation, ProtocolMarshaller protocolMarshaller) { if (operation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(operation.getId(), ID_BINDING); protocol...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[operation, protocolMarshaller]] begin[{] if[binary_operation[member[.operation], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[Operation] identifier[operation] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[operation] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[...
public static byte[] getBytes(long val, long size) { byte[] res = new byte[(int) size]; long bv = val; for (int i = (int) size - 1; i >= 0; --i) { res[i] = (byte) (bv & 0xFF); bv >>= BIT_IN_BYTE; } return res; }
class class_name[name] begin[{] method[getBytes, return_type[type[byte]], modifier[public static], parameter[val, size]] begin[{] local_variable[type[byte], res] local_variable[type[long], bv] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assign...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[getBytes] operator[SEP] Keyword[long] identifier[val] , Keyword[long] identifier[size] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[res] operator[=] Keyword[new] Keyword[byte] operator[SEP] operator[SEP]...
public static String reverseDomain(String user) { StringBuilder sb = null; String[] split = Split.split('.',user); int at; for(int i=split.length-1;i>=0;--i) { if(sb == null) { sb = new StringBuilder(); } else { sb.append('.'); } if((at = split[i].indexOf('@'))>0) { sb.append(split[i].s...
class class_name[name] begin[{] method[reverseDomain, return_type[type[String]], modifier[public static], parameter[user]] begin[{] local_variable[type[StringBuilder], sb] local_variable[type[String], split] local_variable[type[int], at] ForStatement(body=BlockStatement(label=No...
Keyword[public] Keyword[static] identifier[String] identifier[reverseDomain] operator[SEP] identifier[String] identifier[user] operator[SEP] { identifier[StringBuilder] identifier[sb] operator[=] Other[null] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[split] operator[=] identifier[Spl...
public void unsetResult() { ResultType oldResult = result; boolean oldResultESet = resultESet; result = RESULT_EDEFAULT; resultESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, BpsimPackage.PARAMETER_VALUE__RESULT, oldResult, RESULT_EDEFAULT, oldResultESet))...
class class_name[name] begin[{] method[unsetResult, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[ResultType], oldResult] local_variable[type[boolean], oldResultESet] assign[member[.result], member[.RESULT_EDEFAULT]] assign[member...
Keyword[public] Keyword[void] identifier[unsetResult] operator[SEP] operator[SEP] { identifier[ResultType] identifier[oldResult] operator[=] identifier[result] operator[SEP] Keyword[boolean] identifier[oldResultESet] operator[=] identifier[resultESet] operator[SEP] identifier[result] operator[=] identifier[RESUL...
public int yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; i...
class class_name[name] begin[{] method[yylex, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], zzInput] local_variable[type[int], zzAction] local_variable[type[int], zzCurrentPosL] local_variable[type[int], zzMarkedPosL] local_var...
Keyword[public] Keyword[int] identifier[yylex] operator[SEP] operator[SEP] Keyword[throws] identifier[java] operator[SEP] identifier[io] operator[SEP] identifier[IOException] { Keyword[int] identifier[zzInput] operator[SEP] Keyword[int] identifier[zzAction] operator[SEP] Keyword[int] identifier[zzCurrentPosL] op...
public com.google.protobuf.FloatValue getAlpha() { return alpha_ == null ? com.google.protobuf.FloatValue.getDefaultInstance() : alpha_; }
class class_name[name] begin[{] method[getAlpha, return_type[type[com]], modifier[public], parameter[]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=alpha_, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_oper...
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[protobuf] operator[SEP] identifier[FloatValue] identifier[getAlpha] operator[SEP] operator[SEP] { Keyword[return] identifier[alpha_] operator[==] Other[null] operator[?] identifier[com] operator[SEP] identifier[google] oper...
public Receiver registerReceiver(Receiver receiver) { synchronized (receivers) { if (!closed && (maxNrofReceivers == 0 || receivers.size() < maxNrofReceivers)) { receivers.add(receiver); } else { return null; } return receiver; } }
class class_name[name] begin[{] method[registerReceiver, return_type[type[Receiver]], modifier[public], parameter[receiver]] begin[{] SYNCHRONIZED[member[.receivers]] BEGIN[{] if[binary_operation[member[.closed], &&, binary_operation[binary_operation[member[.maxNrofRecei...
Keyword[public] identifier[Receiver] identifier[registerReceiver] operator[SEP] identifier[Receiver] identifier[receiver] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[receivers] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[closed] operator[&&] operator[SEP] identi...
private void integrate() throws Exception { writePlugins(); // Collect information for each feature id and generate a feature table. final FileGenerator fileGen = new FileGenerator(featureTable, pluginTable); fileGen.setLogger(logger); for (final String currentPlugin : orderPlug...
class class_name[name] begin[{] method[integrate, return_type[void], modifier[private], parameter[]] begin[{] call[.writePlugins, parameter[]] local_variable[type[FileGenerator], fileGen] call[fileGen.setLogger, parameter[member[.logger]]] ForStatement(body=Block...
Keyword[private] Keyword[void] identifier[integrate] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[writePlugins] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[FileGenerator] identifier[fileGen] operator[=] Keyword[new] identifier[FileGenerator] operator[SEP]...
@Override public void acceptMastership(int partitionId) { synchronized(m_dataSourcesByPartition) { Map<String, ExportDataSource> partitionDataSourceMap = m_dataSourcesByPartition.get(partitionId); // this case happens when there are no export tables if (partitionDataSour...
class class_name[name] begin[{] method[acceptMastership, return_type[void], modifier[public], parameter[partitionId]] begin[{] SYNCHRONIZED[member[.m_dataSourcesByPartition]] BEGIN[{] local_variable[type[Map], partitionDataSourceMap] if[binary_operation[membe...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[acceptMastership] operator[SEP] Keyword[int] identifier[partitionId] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[m_dataSourcesByPartition] operator[SEP] { identifier[Map] operator[<] identifier[String] , id...
private List<BlockingState> addBlockingStatesNotOnDisk(final List<BlockingState> blockingStatesOnDisk, final Catalog catalog, final InternalTenantContext context) { final Collection<BlockingStat...
class class_name[name] begin[{] method[addBlockingStatesNotOnDisk, return_type[type[List]], modifier[private], parameter[blockingStatesOnDisk, catalog, context]] begin[{] local_variable[type[Collection], blockingStatesOnDiskCopy] local_variable[type[Iterable], baseSubscriptionsToConsider] ...
Keyword[private] identifier[List] operator[<] identifier[BlockingState] operator[>] identifier[addBlockingStatesNotOnDisk] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[BlockingState] operator[>] identifier[blockingStatesOnDisk] , Keyword[final] identifier[Catalog] identifier[catalog] , Keyword...
private String encodeHTML(FacesContext fc, ResponseWriter rw, DateTimePicker dtp) throws IOException { String clientId = dtp.getClientId(); boolean clientIdHasBeenRendered=false; String mode = dtp.getMode(); String styleClass = dtp.getStyleClass(); if(styleClass == null) styleClass = ""; styleClass = style...
class class_name[name] begin[{] method[encodeHTML, return_type[type[String]], modifier[private], parameter[fc, rw, dtp]] begin[{] local_variable[type[String], clientId] local_variable[type[boolean], clientIdHasBeenRendered] local_variable[type[String], mode] local_variable[type[...
Keyword[private] identifier[String] identifier[encodeHTML] operator[SEP] identifier[FacesContext] identifier[fc] , identifier[ResponseWriter] identifier[rw] , identifier[DateTimePicker] identifier[dtp] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[clientId] operator[=] i...
private void trainNN(DataSet dataSet) { //batchSize List<List<Vec>> activations = new ArrayList<List<Vec>>(batchSize); List<List<Vec>> derivatives = new ArrayList<List<Vec>>(batchSize); List<List<Vec>> deltas = new ArrayList<List<Vec>>(batchSize); List<Matri...
class class_name[name] begin[{] method[trainNN, return_type[void], modifier[private], parameter[dataSet]] begin[{] local_variable[type[List], activations] local_variable[type[List], derivatives] local_variable[type[List], deltas] local_variable[type[List], updates] local...
Keyword[private] Keyword[void] identifier[trainNN] operator[SEP] identifier[DataSet] identifier[dataSet] operator[SEP] { identifier[List] operator[<] identifier[List] operator[<] identifier[Vec] operator[>] operator[>] identifier[activations] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[...
public synchronized E remove(int index) { modCount++; if (index >= elementCount) throw new ArrayIndexOutOfBoundsException(index); E oldValue = elementData(index); int numMoved = elementCount - index - 1; if (numMoved > 0) System.arraycopy(elementData, ind...
class class_name[name] begin[{] method[remove, return_type[type[E]], modifier[synchronized public], parameter[index]] begin[{] member[.modCount] if[binary_operation[member[.index], >=, member[.elementCount]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberRefer...
Keyword[public] Keyword[synchronized] identifier[E] identifier[remove] operator[SEP] Keyword[int] identifier[index] operator[SEP] { identifier[modCount] operator[++] operator[SEP] Keyword[if] operator[SEP] identifier[index] operator[>=] identifier[elementCount] operator[SEP] Keyword[throw] Keyword[new] identifie...
@Override public LightweightTypeReference getReturnType(XExpression expression) { IResolvedTypes delegate = getDelegate(expression); return delegate.getReturnType(expression); }
class class_name[name] begin[{] method[getReturnType, return_type[type[LightweightTypeReference]], modifier[public], parameter[expression]] begin[{] local_variable[type[IResolvedTypes], delegate] return[call[delegate.getReturnType, parameter[member[.expression]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[LightweightTypeReference] identifier[getReturnType] operator[SEP] identifier[XExpression] identifier[expression] operator[SEP] { identifier[IResolvedTypes] identifier[delegate] operator[=] identifier[getDelegate] operator[SEP] identifier[expression] o...
public void marshall(AdminListUserAuthEventsRequest adminListUserAuthEventsRequest, ProtocolMarshaller protocolMarshaller) { if (adminListUserAuthEventsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[adminListUserAuthEventsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.adminListUserAuthEventsRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCrea...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[AdminListUserAuthEventsRequest] identifier[adminListUserAuthEventsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[adminListUserAuthEventsRequest] operator[==]...
public SC registerServletContextListener(Class<? extends ServletContextListener> servletContextListener) { __throwIfInitialized(); if (servletContextListener == null) throw new IllegalArgumentException("Event listener cannot be null"); servletContextListenerSet.add(servletContextLi...
class class_name[name] begin[{] method[registerServletContextListener, return_type[type[SC]], modifier[public], parameter[servletContextListener]] begin[{] call[.__throwIfInitialized, parameter[]] if[binary_operation[member[.servletContextListener], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[SC] identifier[registerServletContextListener] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[ServletContextListener] operator[>] identifier[servletContextListener] operator[SEP] { identifier[__throwIfInitialized] operator[SEP] operator[SEP] operato...
private void execute(Closure spec) { notifier.fireTestFound(current.path().toTestId(), current.name()); TestNotifier tn = notifier.fireTestStarted(current.path().toTestId()); executeSafely(spec, tn); for (Closure deferBlock : current.deferred()) { executeSafely(deferBlock, t...
class class_name[name] begin[{] method[execute, return_type[void], modifier[private], parameter[spec]] begin[{] call[notifier.fireTestFound, parameter[call[current.path, parameter[]], call[current.name, parameter[]]]] local_variable[type[TestNotifier], tn] call[.executeS...
Keyword[private] Keyword[void] identifier[execute] operator[SEP] identifier[Closure] identifier[spec] operator[SEP] { identifier[notifier] operator[SEP] identifier[fireTestFound] operator[SEP] identifier[current] operator[SEP] identifier[path] operator[SEP] operator[SEP] operator[SEP] identifier[toTestId] operat...
@DoesServiceRequest public void create(QueueRequestOptions options, OperationContext opContext) throws StorageException { if (opContext == null) { opContext = new OperationContext(); } opContext.initialize(); options = QueueRequestOptions.populateAndApplyDefaults(options...
class class_name[name] begin[{] method[create, return_type[void], modifier[public], parameter[options, opContext]] begin[{] if[binary_operation[member[.opContext], ==, literal[null]]] begin[{] assign[member[.opContext], ClassCreator(arguments=[], body=None, constructor_t...
annotation[@] identifier[DoesServiceRequest] Keyword[public] Keyword[void] identifier[create] operator[SEP] identifier[QueueRequestOptions] identifier[options] , identifier[OperationContext] identifier[opContext] operator[SEP] Keyword[throws] identifier[StorageException] { Keyword[if] operator[SEP] identifier[o...
public static boolean isKindOf(Type t, Type... typesToMatch) throws IllegalArgumentException { Params.notNullOrEmpty(typesToMatch, "Types to match"); for(Type typeToMatch : typesToMatch) { if(isKindOf(t, typeToMatch)) { return true; } } return false; }
class class_name[name] begin[{] method[isKindOf, return_type[type[boolean]], modifier[public static], parameter[t, typesToMatch]] begin[{] call[Params.notNullOrEmpty, parameter[member[.typesToMatch], literal["Types to match"]]] ForStatement(body=BlockStatement(label=None, statements=[If...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isKindOf] operator[SEP] identifier[Type] identifier[t] , identifier[Type] operator[...] identifier[typesToMatch] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { identifier[Params] operator[SEP] identifier[notNullOrEmpty] operator[S...
private void fixupMinWithComparator(int k) { K key = array[k]; int gp = k / 4; while (gp > 0 && comparator.compare(array[gp], key) > 0) { array[k] = array[gp]; k = gp; gp = k / 4; } array[k] = key; }
class class_name[name] begin[{] method[fixupMinWithComparator, return_type[void], modifier[private], parameter[k]] begin[{] local_variable[type[K], key] local_variable[type[int], gp] while[binary_operation[binary_operation[member[.gp], >, literal[0]], &&, binary_operation[call[c...
Keyword[private] Keyword[void] identifier[fixupMinWithComparator] operator[SEP] Keyword[int] identifier[k] operator[SEP] { identifier[K] identifier[key] operator[=] identifier[array] operator[SEP] identifier[k] operator[SEP] operator[SEP] Keyword[int] identifier[gp] operator[=] identifier[k] operator[/] Other[4]...
public Map<String,String> parse(final String str, char separator) { if (str == null) { return new HashMap<String,String>(); } return parse(str.toCharArray(), separator); }
class class_name[name] begin[{] method[parse, return_type[type[Map]], modifier[public], parameter[str, separator]] begin[{] if[binary_operation[member[.str], ==, literal[null]]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[parse] operator[SEP] Keyword[final] identifier[String] identifier[str] , Keyword[char] identifier[separator] operator[SEP] { Keyword[if] operator[SEP] identifier[str] operator[==] Other[null] operator[SEP...
@Pure public N getChildAt(QuadTreeZone zone) { switch (zone) { case NORTH_WEST: return this.nNorthWest; case NORTH_EAST: return this.nNorthEast; case SOUTH_WEST: return this.nSouthWest; case SOUTH_EAST: return this.nSouthEast; default: } return null; }
class class_name[name] begin[{] method[getChildAt, return_type[type[N]], modifier[public], parameter[zone]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['NORTH_WEST'], statements=[ReturnStatement(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberRe...
annotation[@] identifier[Pure] Keyword[public] identifier[N] identifier[getChildAt] operator[SEP] identifier[QuadTreeZone] identifier[zone] operator[SEP] { Keyword[switch] operator[SEP] identifier[zone] operator[SEP] { Keyword[case] identifier[NORTH_WEST] operator[:] Keyword[return] Keyword[this] ope...
protected final void addJspServlet(WebAppContext context) { Assert.notNull(context, "Context must not be null"); ServletHolder holder = new ServletHolder(); holder.setName("jsp"); holder.setClassName(getJsp().getClassName()); holder.setInitParameter("fork", "false"); holder.setInitParameters(getJsp().getIni...
class class_name[name] begin[{] method[addJspServlet, return_type[void], modifier[final protected], parameter[context]] begin[{] call[Assert.notNull, parameter[member[.context], literal["Context must not be null"]]] local_variable[type[ServletHolder], holder] call[holder...
Keyword[protected] Keyword[final] Keyword[void] identifier[addJspServlet] operator[SEP] identifier[WebAppContext] identifier[context] operator[SEP] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[context] , literal[String] operator[SEP] operator[SEP] identifier[ServletHolder] ide...
public ElemTemplateElement appendChildElem(ElemTemplateElement newChild) { int type = ((ElemTemplateElement) newChild).getXSLToken(); switch (type) { case Constants.ELEMNAME_ATTRIBUTE : break; default : error(XSLTErrorResources.ER_CANNOT_ADD, new Object[]{ newChild.getNod...
class class_name[name] begin[{] method[appendChildElem, return_type[type[ElemTemplateElement]], modifier[public], parameter[newChild]] begin[{] local_variable[type[int], type] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=ELEMNAME_ATTRIBUTE, postfix_operators=[], prefi...
Keyword[public] identifier[ElemTemplateElement] identifier[appendChildElem] operator[SEP] identifier[ElemTemplateElement] identifier[newChild] operator[SEP] { Keyword[int] identifier[type] operator[=] operator[SEP] operator[SEP] identifier[ElemTemplateElement] operator[SEP] identifier[newChild] operator[SEP] ope...
@Override public void unregisterInjectionMetaDataListener(InjectionMetaDataListener metaDataListener) { if (metaDataListener == null) { throw new IllegalArgumentException("A null InjectionMetaDataListener cannot be unregistered " + "from the inj...
class class_name[name] begin[{] method[unregisterInjectionMetaDataListener, return_type[void], modifier[public], parameter[metaDataListener]] begin[{] if[binary_operation[member[.metaDataListener], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Binary...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[unregisterInjectionMetaDataListener] operator[SEP] identifier[InjectionMetaDataListener] identifier[metaDataListener] operator[SEP] { Keyword[if] operator[SEP] identifier[metaDataListener] operator[==] Other[null] operator[SEP] { ...
protected static String[] parseMACs (String text) { if (text == null) { return new String[0]; } Matcher m = MACRegex.matcher(text); ArrayList<String> list = new ArrayList<String>(); while (m.find()) { String mac = m.group(1).toUpperCase(); ...
class class_name[name] begin[{] method[parseMACs, return_type[type[String]], modifier[static protected], parameter[text]] begin[{] if[binary_operation[member[.text], ==, literal[null]]] begin[{] return[ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_operators=[], quali...
Keyword[protected] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[parseMACs] operator[SEP] identifier[String] identifier[text] operator[SEP] { Keyword[if] operator[SEP] identifier[text] operator[==] Other[null] operator[SEP] { Keyword[return] Keyword[new] identifier[String] ...
public Converter getDefaultConverter() { if (getPm().getDefaultConverter() == null) { Converter c = new GenericConverter(); Properties properties = new Properties(); properties.put("filename", "converters/show.tostring.converter"); c.setProperties(properties); ...
class class_name[name] begin[{] method[getDefaultConverter, return_type[type[Converter]], modifier[public], parameter[]] begin[{] if[binary_operation[call[.getPm, parameter[]], ==, literal[null]]] begin[{] local_variable[type[Converter], c] local_variable[type[Properties...
Keyword[public] identifier[Converter] identifier[getDefaultConverter] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[getPm] operator[SEP] operator[SEP] operator[SEP] identifier[getDefaultConverter] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { identifier[Conv...
public <T> T map(Object jsonObject, MapFunction mapFunction, Configuration configuration) { notNull(jsonObject, "json can not be null"); notNull(configuration, "configuration can not be null"); notNull(mapFunction, "mapFunction can not be null"); EvaluationContext evaluationContext = pat...
class class_name[name] begin[{] method[map, return_type[type[T]], modifier[public], parameter[jsonObject, mapFunction, configuration]] begin[{] call[.notNull, parameter[member[.jsonObject], literal["json can not be null"]]] call[.notNull, parameter[member[.configuration], litera...
Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[map] operator[SEP] identifier[Object] identifier[jsonObject] , identifier[MapFunction] identifier[mapFunction] , identifier[Configuration] identifier[configuration] operator[SEP] { identifier[notNull] operator[SEP] identifier[jsonOb...
public void insertNewRow() { // reset all fields for (int i = 0; i < komponente.length; i++) { komponente[i].clearContent(); } // end of for (int i=0; i<komponente.length; i++) // reset the field for the primary keys for (int i = 0; i < primaryKeys.length; i++) {...
class class_name[name] begin[{] method[insertNewRow, return_type[void], modifier[public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MemberReference(member=komponente, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[Ar...
Keyword[public] Keyword[void] identifier[insertNewRow] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[komponente] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] {...
@Implementation protected int getProfileConnectionState(int profile) { Integer state = profileConnectionStateData.get(profile); if (state == null) { return BluetoothProfile.STATE_DISCONNECTED; } return state; }
class class_name[name] begin[{] method[getProfileConnectionState, return_type[type[int]], modifier[protected], parameter[profile]] begin[{] local_variable[type[Integer], state] if[binary_operation[member[.state], ==, literal[null]]] begin[{] return[member[BluetoothProfile.ST...
annotation[@] identifier[Implementation] Keyword[protected] Keyword[int] identifier[getProfileConnectionState] operator[SEP] Keyword[int] identifier[profile] operator[SEP] { identifier[Integer] identifier[state] operator[=] identifier[profileConnectionStateData] operator[SEP] identifier[get] operator[SEP] identi...
private AtomicLongArray emptyKeyArray(int size) { AtomicLongArray arr = new AtomicLongArray(size); // Volatile store not required, could use plain store // See VarHandles for JDK >= 9 for (int i = 0; i < arr.length(); i++) { arr.lazySet(i, EMPTY_BUCKET_VALUE); } ...
class class_name[name] begin[{] method[emptyKeyArray, return_type[type[AtomicLongArray]], modifier[private], parameter[size]] begin[{] local_variable[type[AtomicLongArray], arr] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[M...
Keyword[private] identifier[AtomicLongArray] identifier[emptyKeyArray] operator[SEP] Keyword[int] identifier[size] operator[SEP] { identifier[AtomicLongArray] identifier[arr] operator[=] Keyword[new] identifier[AtomicLongArray] operator[SEP] identifier[size] operator[SEP] operator[SEP] Keyword[for] operator[SEP]...
public void add(PoolAddParameter pool, PoolAddOptions poolAddOptions) { addWithServiceResponseAsync(pool, poolAddOptions).toBlocking().single().body(); }
class class_name[name] begin[{] method[add, return_type[void], modifier[public], parameter[pool, poolAddOptions]] begin[{] call[.addWithServiceResponseAsync, parameter[member[.pool], member[.poolAddOptions]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[add] operator[SEP] identifier[PoolAddParameter] identifier[pool] , identifier[PoolAddOptions] identifier[poolAddOptions] operator[SEP] { identifier[addWithServiceResponseAsync] operator[SEP] identifier[pool] , identifier[poolAddOptions] operator[SEP] operator[SEP] ident...
public Object getCMPField(String cmpFieldName) { if (log.isDebugEnabled()) { log.debug("Sbb entity "+getSbbEntityId()+" getting cmp field "+cmpFieldName); } sleeContainer.getTransactionManager().mandateTransaction(); return cacheData.getCmpField(cmpFieldName); }
class class_name[name] begin[{] method[getCMPField, return_type[type[Object]], modifier[public], parameter[cmpFieldName]] begin[{] if[call[log.isDebugEnabled, parameter[]]] begin[{] call[log.debug, parameter[binary_operation[binary_operation[binary_operation[literal["Sbb...
Keyword[public] identifier[Object] identifier[getCMPField] operator[SEP] identifier[String] identifier[cmpFieldName] operator[SEP] { Keyword[if] operator[SEP] identifier[log] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[log] operator[SEP] identifier[d...
protected void prepareMouseEvents(StringBuffer handlers) { prepareAttribute(handlers, "onclick", getAttribute("onclick")); prepareAttribute(handlers, "ondblclick", getAttribute("ondblclick")); prepareAttribute(handlers, "onmouseover", getAttribute("onmouseover")); prepareAttribute(handlers, "onmouseout", getAtt...
class class_name[name] begin[{] method[prepareMouseEvents, return_type[void], modifier[protected], parameter[handlers]] begin[{] call[.prepareAttribute, parameter[member[.handlers], literal["onclick"], call[.getAttribute, parameter[literal["onclick"]]]]] call[.prepareAttribute, ...
Keyword[protected] Keyword[void] identifier[prepareMouseEvents] operator[SEP] identifier[StringBuffer] identifier[handlers] operator[SEP] { identifier[prepareAttribute] operator[SEP] identifier[handlers] , literal[String] , identifier[getAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] oper...
@Override public boolean reachedEnd() { try { if (resultSet.isLast()) { resultSet.close(); statement.close(); dbConn.close(); return true; } else { return false; } } catch (SQLException e) { throw new IllegalArgumentException("Couldn't evaluate reachedEnd():\t" + e.getMessage()); ...
class class_name[name] begin[{] method[reachedEnd, return_type[type[boolean]], modifier[public], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=isLast, postfix_operators=[], prefix_operators=[], qualifier=resultSet, selectors=[], type_arguments=Non...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[reachedEnd] operator[SEP] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[resultSet] operator[SEP] identifier[isLast] operator[SEP] operator[SEP] operator[SEP] { identifier[resultSet] oper...
public boolean revisionContainsTemplateName(int revId, String templateName) throws WikiApiException{ return revisionContainsTemplateNames(revId, Arrays.asList(new String[]{templateName})); }
class class_name[name] begin[{] method[revisionContainsTemplateName, return_type[type[boolean]], modifier[public], parameter[revId, templateName]] begin[{] return[call[.revisionContainsTemplateNames, parameter[member[.revId], call[Arrays.asList, parameter[ArrayCreator(dimensions=[None], initializer=Arr...
Keyword[public] Keyword[boolean] identifier[revisionContainsTemplateName] operator[SEP] Keyword[int] identifier[revId] , identifier[String] identifier[templateName] operator[SEP] Keyword[throws] identifier[WikiApiException] { Keyword[return] identifier[revisionContainsTemplateNames] operator[SEP] identifier[rev...
@Override public DescribeRobotApplicationResult describeRobotApplication(DescribeRobotApplicationRequest request) { request = beforeClientExecution(request); return executeDescribeRobotApplication(request); }
class class_name[name] begin[{] method[describeRobotApplication, return_type[type[DescribeRobotApplicationResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDescribeRobotApplica...
annotation[@] identifier[Override] Keyword[public] identifier[DescribeRobotApplicationResult] identifier[describeRobotApplication] operator[SEP] identifier[DescribeRobotApplicationRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifi...
public static final SerIterable sortedMap(final Class<?> keyType, final Class<?> valueType, final List<Class<?>> valueTypeTypes) { final SortedMap<Object, Object> map = new TreeMap<>(); return map(keyType, valueType, valueTypeTypes, map); }
class class_name[name] begin[{] method[sortedMap, return_type[type[SerIterable]], modifier[final public static], parameter[keyType, valueType, valueTypeTypes]] begin[{] local_variable[type[SortedMap], map] return[call[.map, parameter[member[.keyType], member[.valueType], member[.valueTypeTypes]...
Keyword[public] Keyword[static] Keyword[final] identifier[SerIterable] identifier[sortedMap] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[keyType] , Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[valueType] , Keyword[final] identifier[L...
public static CommerceNotificationTemplate fetchByGroupId_Last( long groupId, OrderByComparator<CommerceNotificationTemplate> orderByComparator) { return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); }
class class_name[name] begin[{] method[fetchByGroupId_Last, return_type[type[CommerceNotificationTemplate]], modifier[public static], parameter[groupId, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceNotificationTemplate] identifier[fetchByGroupId_Last] operator[SEP] Keyword[long] identifier[groupId] , identifier[OrderByComparator] operator[<] identifier[CommerceNotificationTemplate] operator[>] identifier[orderByComparator] operator[SEP] { Keyword[return] ...
private void populateAvailableRulesTable(IProject project) { List<DetectorFactory> allAvailableList = new ArrayList<>(); factoriesToBugAbbrev = new HashMap<>(); Iterator<DetectorFactory> iterator = DetectorFactoryCollection.instance().factoryIterator(); while (iterator.hasNext()) { ...
class class_name[name] begin[{] method[populateAvailableRulesTable, return_type[void], modifier[private], parameter[project]] begin[{] local_variable[type[List], allAvailableList] assign[member[.factoriesToBugAbbrev], ClassCreator(arguments=[], body=None, constructor_type_arguments=None...
Keyword[private] Keyword[void] identifier[populateAvailableRulesTable] operator[SEP] identifier[IProject] identifier[project] operator[SEP] { identifier[List] operator[<] identifier[DetectorFactory] operator[>] identifier[allAvailableList] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] op...
public static String queryString(Map<String, Object> values) { StringBuilder sbuf = new StringBuilder(); String separator = ""; for (Map.Entry<String, Object> entry : values.entrySet()) { Object entryValue = entry.getValue(); if (entryValue instanceof Object[]) { ...
class class_name[name] begin[{] method[queryString, return_type[type[String]], modifier[public static], parameter[values]] begin[{] local_variable[type[StringBuilder], sbuf] local_variable[type[String], separator] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDec...
Keyword[public] Keyword[static] identifier[String] identifier[queryString] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[values] operator[SEP] { identifier[StringBuilder] identifier[sbuf] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] ...
@Override public AbortMultipartUploadResult abortMultipartUpload(AbortMultipartUploadRequest request) { request = beforeClientExecution(request); return executeAbortMultipartUpload(request); }
class class_name[name] begin[{] method[abortMultipartUpload, return_type[type[AbortMultipartUploadResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeAbortMultipartUpload, parame...
annotation[@] identifier[Override] Keyword[public] identifier[AbortMultipartUploadResult] identifier[abortMultipartUpload] operator[SEP] identifier[AbortMultipartUploadRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ...
public SQLUnit toSQL() { StringBuilder result = new StringBuilder(); List<Object> insertParameters = new LinkedList<>(); for (Object each : segments) { if (!(each instanceof ShardingPlaceholder)) { result.append(each); continue; } ...
class class_name[name] begin[{] method[toSQL, return_type[type[SQLUnit]], modifier[public], parameter[]] begin[{] local_variable[type[StringBuilder], result] local_variable[type[List], insertParameters] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=Binar...
Keyword[public] identifier[SQLUnit] identifier[toSQL] operator[SEP] operator[SEP] { identifier[StringBuilder] identifier[result] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[Object] operator[>] identifier[insertParameters] op...
public static Annotation[] readAnnotations(ValueExpression p_expression, UIComponent p_component) { FacesContext context = FacesContext.getCurrentInstance(); ELContext elContext = context.getELContext(); try { ValueReference valueReference = p_expression.getValueReference(elContext); Object base; if (nul...
class class_name[name] begin[{] method[readAnnotations, return_type[type[Annotation]], modifier[public static], parameter[p_expression, p_component]] begin[{] local_variable[type[FacesContext], context] local_variable[type[ELContext], elContext] TryStatement(block=[LocalVariableDeclarat...
Keyword[public] Keyword[static] identifier[Annotation] operator[SEP] operator[SEP] identifier[readAnnotations] operator[SEP] identifier[ValueExpression] identifier[p_expression] , identifier[UIComponent] identifier[p_component] operator[SEP] { identifier[FacesContext] identifier[context] operator[=] identifier[...
@SuppressWarnings("unchecked") protected Map<String, BeanData> getSessionMap(final HttpSession session) { SessionBeans sessionBeans = (SessionBeans) session.getAttribute(SESSION_BEANS_NAME); if (sessionBeans == null) { return null; } return sessionBeans.getBeanMap(); }
class class_name[name] begin[{] method[getSessionMap, return_type[type[Map]], modifier[protected], parameter[session]] begin[{] local_variable[type[SessionBeans], sessionBeans] if[binary_operation[member[.sessionBeans], ==, literal[null]]] begin[{] return[literal[null]] ...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] identifier[Map] operator[<] identifier[String] , identifier[BeanData] operator[>] identifier[getSessionMap] operator[SEP] Keyword[final] identifier[HttpSession] identifier[session] operator[SEP] { identifie...
private static UserGroupInformation createSecurityEnabledProxyUser(String userToProxy, String fileLocation, Logger log ) throws IOException { if (!new File(fileLocation).exists()) { throw new RuntimeException("hadoop token file doesn't exist."); } log.info("Found token file. Setting " + Had...
class class_name[name] begin[{] method[createSecurityEnabledProxyUser, return_type[type[UserGroupInformation]], modifier[private static], parameter[userToProxy, fileLocation, log]] begin[{] if[ClassCreator(arguments=[MemberReference(member=fileLocation, postfix_operators=[], prefix_operators=[]...
Keyword[private] Keyword[static] identifier[UserGroupInformation] identifier[createSecurityEnabledProxyUser] operator[SEP] identifier[String] identifier[userToProxy] , identifier[String] identifier[fileLocation] , identifier[Logger] identifier[log] operator[SEP] Keyword[throws] identifier[IOException] { Keywor...
public String getDataSourcesNodeFullPath(final String schemaDataSourceName) { return Joiner.on("/").join("", name, ROOT, DATA_SOURCES_NODE_PATH, schemaDataSourceName); }
class class_name[name] begin[{] method[getDataSourcesNodeFullPath, return_type[type[String]], modifier[public], parameter[schemaDataSourceName]] begin[{] return[call[Joiner.on, parameter[literal["/"]]]] end[}] END[}]
Keyword[public] identifier[String] identifier[getDataSourcesNodeFullPath] operator[SEP] Keyword[final] identifier[String] identifier[schemaDataSourceName] operator[SEP] { Keyword[return] identifier[Joiner] operator[SEP] identifier[on] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[join] ope...
private static Money getBid(BiddableAdGroupCriterion biddableCriterion) { BiddingStrategyConfiguration biddingConfig = biddableCriterion.getBiddingStrategyConfiguration(); Money cpcBidAmount = null; if (biddingConfig.getBids() != null) { for (Bids bid : biddingConfig.getBids()) { if (b...
class class_name[name] begin[{] method[getBid, return_type[type[Money]], modifier[private static], parameter[biddableCriterion]] begin[{] local_variable[type[BiddingStrategyConfiguration], biddingConfig] local_variable[type[Money], cpcBidAmount] if[binary_operation[call[biddingC...
Keyword[private] Keyword[static] identifier[Money] identifier[getBid] operator[SEP] identifier[BiddableAdGroupCriterion] identifier[biddableCriterion] operator[SEP] { identifier[BiddingStrategyConfiguration] identifier[biddingConfig] operator[=] identifier[biddableCriterion] operator[SEP] identifier[getBiddingSt...
private void buildIndex(String startfolder) throws Exception { File folder = new File(startfolder); // get all subresources File[] subresources = folder.listFiles(); // now loop through all subresources and add them to the index list for (int i = 0; i < subresources.length; i++...
class class_name[name] begin[{] method[buildIndex, return_type[void], modifier[private], parameter[startfolder]] begin[{] local_variable[type[File], folder] local_variable[type[File], subresources] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[LocalVariabl...
Keyword[private] Keyword[void] identifier[buildIndex] operator[SEP] identifier[String] identifier[startfolder] operator[SEP] Keyword[throws] identifier[Exception] { identifier[File] identifier[folder] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[startfolder] operator[SEP] operator[SEP] iden...
public static <V extends Vertex<V, E>, E extends Edge<V, E>> boolean hasDisconnectedSubgraph( Graph<V, E> graph, V startVertex) { requireNonNull(graph, "The given graph is null"); requireNonNull(startVertex, "The given start vertex is null"); if (!graph.getVertices().contains(startVertex)) { throw new Illeg...
class class_name[name] begin[{] method[hasDisconnectedSubgraph, return_type[type[boolean]], modifier[public static], parameter[graph, startVertex]] begin[{] call[.requireNonNull, parameter[member[.graph], literal["The given graph is null"]]] call[.requireNonNull, parameter[membe...
Keyword[public] Keyword[static] operator[<] identifier[V] Keyword[extends] identifier[Vertex] operator[<] identifier[V] , identifier[E] operator[>] , identifier[E] Keyword[extends] identifier[Edge] operator[<] identifier[V] , identifier[E] operator[>] operator[>] Keyword[boolean] identifier[hasDisconnectedSubgraph] ...
private TableMetadata createTableMetadata(Cursor cursor) { TableMetadata metadata = new TableMetadata(); metadata.setGeoPackageId(cursor.getLong(0)); metadata.setTableName(cursor.getString(1)); if (!cursor.isNull(2)) { metadata.setLastIndexed(cursor.getLong(2)); } ...
class class_name[name] begin[{] method[createTableMetadata, return_type[type[TableMetadata]], modifier[private], parameter[cursor]] begin[{] local_variable[type[TableMetadata], metadata] call[metadata.setGeoPackageId, parameter[call[cursor.getLong, parameter[literal[0]]]]] ...
Keyword[private] identifier[TableMetadata] identifier[createTableMetadata] operator[SEP] identifier[Cursor] identifier[cursor] operator[SEP] { identifier[TableMetadata] identifier[metadata] operator[=] Keyword[new] identifier[TableMetadata] operator[SEP] operator[SEP] operator[SEP] identifier[metadata] operator[...
public int read(byte[] b, int off, int len) throws IOException { if (currentOffset >= dataLength) { return -1; } return doRead(b,off,len); }
class class_name[name] begin[{] method[read, return_type[type[int]], modifier[public], parameter[b, off, len]] begin[{] if[binary_operation[member[.currentOffset], >=, member[.dataLength]]] begin[{] return[literal[1]] else begin[{] None end[}] return[call[.do...
Keyword[public] Keyword[int] identifier[read] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[b] , Keyword[int] identifier[off] , Keyword[int] identifier[len] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[currentOffset] operator[>=] identifier[d...
private JPanel getPaneWork() { if (paneWork == null) { paneWork = new JPanel(); paneWork.setLayout(new BorderLayout(0,0)); paneWork.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); paneWork.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); paneWork.add(getTabbedWork()); } return paneWork...
class class_name[name] begin[{] method[getPaneWork, return_type[type[JPanel]], modifier[private], parameter[]] begin[{] if[binary_operation[member[.paneWork], ==, literal[null]]] begin[{] assign[member[.paneWork], ClassCreator(arguments=[], body=None, constructor_type_ar...
Keyword[private] identifier[JPanel] identifier[getPaneWork] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[paneWork] operator[==] Other[null] operator[SEP] { identifier[paneWork] operator[=] Keyword[new] identifier[JPanel] operator[SEP] operator[SEP] operator[SEP] identifier[paneWo...
public static HttpTunnelPayload get(HttpInputMessage message) throws IOException { long length = message.getHeaders().getContentLength(); if (length <= 0) { return null; } String seqHeader = message.getHeaders().getFirst(SEQ_HEADER); Assert.state(StringUtils.hasLength(seqHeader), "Missing sequence header")...
class class_name[name] begin[{] method[get, return_type[type[HttpTunnelPayload]], modifier[public static], parameter[message]] begin[{] local_variable[type[long], length] if[binary_operation[member[.length], <=, literal[0]]] begin[{] return[literal[null]] else begin[...
Keyword[public] Keyword[static] identifier[HttpTunnelPayload] identifier[get] operator[SEP] identifier[HttpInputMessage] identifier[message] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[long] identifier[length] operator[=] identifier[message] operator[SEP] identifier[getHeaders] operator[SEP] ...
public static RestFBLogger getLoggerInstance(String logCategory) { Object obj; Class[] ctrTypes = new Class[] { String.class }; Object[] ctrArgs = new Object[] { logCategory }; try { Constructor loggerClassConstructor = usedLoggerClass.getConstructor(ctrTypes); obj = loggerClassConstructor.n...
class class_name[name] begin[{] method[getLoggerInstance, return_type[type[RestFBLogger]], modifier[public static], parameter[logCategory]] begin[{] local_variable[type[Object], obj] local_variable[type[Class], ctrTypes] local_variable[type[Object], ctrArgs] TryStatement(block=[...
Keyword[public] Keyword[static] identifier[RestFBLogger] identifier[getLoggerInstance] operator[SEP] identifier[String] identifier[logCategory] operator[SEP] { identifier[Object] identifier[obj] operator[SEP] identifier[Class] operator[SEP] operator[SEP] identifier[ctrTypes] operator[=] Keyword[new] identifier[C...
public void comment(char[] ch, int start, int length) throws SAXException { if (m_firstTagNotEmitted) { flush(); } m_handler.comment(ch, start, length); }
class class_name[name] begin[{] method[comment, return_type[void], modifier[public], parameter[ch, start, length]] begin[{] if[member[.m_firstTagNotEmitted]] begin[{] call[.flush, parameter[]] else begin[{] None end[}] call[m_handler.comme...
Keyword[public] Keyword[void] identifier[comment] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[ch] , Keyword[int] identifier[start] , Keyword[int] identifier[length] operator[SEP] Keyword[throws] identifier[SAXException] { Keyword[if] operator[SEP] identifier[m_firstTagNotEmitted] operato...
protected AutoCompleteTextField<T> newAutoCompleteTextField(final String id, final IModel<TwoDropDownChoicesBean<T>> model) { final IModel<T> selectedChildOptionModel = new PropertyModel<>(model, "selectedChildOption"); final DefaultCssAutoCompleteTextField<T> autoCompleteTextField = new DefaultCssAutoComplete...
class class_name[name] begin[{] method[newAutoCompleteTextField, return_type[type[AutoCompleteTextField]], modifier[protected], parameter[id, model]] begin[{] local_variable[type[IModel], selectedChildOptionModel] local_variable[type[DefaultCssAutoCompleteTextField], autoCompleteTextField] ...
Keyword[protected] identifier[AutoCompleteTextField] operator[<] identifier[T] operator[>] identifier[newAutoCompleteTextField] operator[SEP] Keyword[final] identifier[String] identifier[id] , Keyword[final] identifier[IModel] operator[<] identifier[TwoDropDownChoicesBean] operator[<] identifier[T] operator[>] operato...
public <V3, M4, C, N, Q> V3 getWrappedTangent(int vertex, AiWrapperProvider<V3, M4, C, N, Q> wrapperProvider) { if (!hasTangentsAndBitangents()) { throw new IllegalStateException("mesh has no tangents"); } checkVertexIndexBounds(vertex); ...
class class_name[name] begin[{] method[getWrappedTangent, return_type[type[V3]], modifier[public], parameter[vertex, wrapperProvider]] begin[{] if[call[.hasTangentsAndBitangents, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], p...
Keyword[public] operator[<] identifier[V3] , identifier[M4] , identifier[C] , identifier[N] , identifier[Q] operator[>] identifier[V3] identifier[getWrappedTangent] operator[SEP] Keyword[int] identifier[vertex] , identifier[AiWrapperProvider] operator[<] identifier[V3] , identifier[M4] , identifier[C] , identif...
public static <T> T createInstance(Class<T> type) { String errorMessage = "Unable to create an instance of " + type + ". Please make sure that if it's a nested class, is marked 'static'. " + "It should have a no-argument constructor."; try { Constructor<T> defaultConstructor = typ...
class class_name[name] begin[{] method[createInstance, return_type[type[T]], modifier[public static], parameter[type]] begin[{] local_variable[type[String], errorMessage] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Meth...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[createInstance] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] operator[SEP] { identifier[String] identifier[errorMessage] operator[=] literal[String] operator[+] identifier[type...
private void processSchema(CommsByteBuffer buffer, Conversation conversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "processSchema", new Object[] { ...
class class_name[name] begin[{] method[processSchema, return_type[void], modifier[private], parameter[buffer, conversation]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, para...
Keyword[private] Keyword[void] identifier[processSchema] operator[SEP] identifier[CommsByteBuffer] identifier[buffer] , identifier[Conversation] identifier[conversation] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP]...
public static EdgeScores insideOutsideO2AllGraMultiRoot(DependencyScorer scorer, Algebra s) { return insideOutside02AllGra(scorer, s, false); }
class class_name[name] begin[{] method[insideOutsideO2AllGraMultiRoot, return_type[type[EdgeScores]], modifier[public static], parameter[scorer, s]] begin[{] return[call[.insideOutside02AllGra, parameter[member[.scorer], member[.s], literal[false]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[EdgeScores] identifier[insideOutsideO2AllGraMultiRoot] operator[SEP] identifier[DependencyScorer] identifier[scorer] , identifier[Algebra] identifier[s] operator[SEP] { Keyword[return] identifier[insideOutside02AllGra] operator[SEP] identifier[scorer] , identifier[s] ...
public void combine(SpdLoad other) { if (other == null) return; if (stat.isEnabled() && other.isEnabled()) //stat.combine((BoundedRangeStatisticImpl)other.getStatistic()); stat.combine(other.getStatistic()); }
class class_name[name] begin[{] method[combine, return_type[void], modifier[public], parameter[other]] begin[{] if[binary_operation[member[.other], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] if[binary_operation[call[stat.isEnabled, parame...
Keyword[public] Keyword[void] identifier[combine] operator[SEP] identifier[SpdLoad] identifier[other] operator[SEP] { Keyword[if] operator[SEP] identifier[other] operator[==] Other[null] operator[SEP] Keyword[return] operator[SEP] Keyword[if] operator[SEP] identifier[stat] operator[SEP] identifier[isEnabled] ope...
public void setProvider(String provider) { if (provider != null && provider.endsWith(".class")) { this.provider = provider.substring(0, provider.length() - 6); } this.provider = provider; }
class class_name[name] begin[{] method[setProvider, return_type[void], modifier[public], parameter[provider]] begin[{] if[binary_operation[binary_operation[member[.provider], !=, literal[null]], &&, call[provider.endsWith, parameter[literal[".class"]]]]] begin[{] assign[...
Keyword[public] Keyword[void] identifier[setProvider] operator[SEP] identifier[String] identifier[provider] operator[SEP] { Keyword[if] operator[SEP] identifier[provider] operator[!=] Other[null] operator[&&] identifier[provider] operator[SEP] identifier[endsWith] operator[SEP] literal[String] operator[SEP] oper...
private void processINode(DataInputStream in, ImageVisitor v, boolean skipBlocks, String parentName) throws IOException { checkInterruption(); v.visitEnclosingElement(ImageElement.INODE); String pathName = FSImageSerialization.readString(in); if (parentName != null) { // local name pathNam...
class class_name[name] begin[{] method[processINode, return_type[void], modifier[private], parameter[in, v, skipBlocks, parentName]] begin[{] call[.checkInterruption, parameter[]] call[v.visitEnclosingElement, parameter[member[ImageElement.INODE]]] local_variable[type[St...
Keyword[private] Keyword[void] identifier[processINode] operator[SEP] identifier[DataInputStream] identifier[in] , identifier[ImageVisitor] identifier[v] , Keyword[boolean] identifier[skipBlocks] , identifier[String] identifier[parentName] operator[SEP] Keyword[throws] identifier[IOException] { identifier[che...
public static ContentViewer getViewer(String type, InputStream data) throws IOException { ContentViewer viewer = (ContentViewer) s_viewers.get(type); if (viewer == null && type.endsWith("+xml")) { viewer = (ContentViewer) s_viewers.get("text/xml"); } return viewer...
class class_name[name] begin[{] method[getViewer, return_type[type[ContentViewer]], modifier[public static], parameter[type, data]] begin[{] local_variable[type[ContentViewer], viewer] if[binary_operation[binary_operation[member[.viewer], ==, literal[null]], &&, call[type.endsWith, para...
Keyword[public] Keyword[static] identifier[ContentViewer] identifier[getViewer] operator[SEP] identifier[String] identifier[type] , identifier[InputStream] identifier[data] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ContentViewer] identifier[viewer] operator[=] operator[SEP] identifier[C...
public static ArrayDBIDs[] randomSplit(DBIDs oids, int p, Random random) { // Fast, and we're single-threaded here anyway. random = random != null ? random : new FastNonThreadsafeRandom(); ArrayModifiableDBIDs ids = newArray(oids); final int size = ids.size(); ArrayDBIDs[] split = new ArrayDBIDs[p];...
class class_name[name] begin[{] method[randomSplit, return_type[type[ArrayDBIDs]], modifier[public static], parameter[oids, p, random]] begin[{] assign[member[.random], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=random, postfix_operators=[], prefix_operators=[],...
Keyword[public] Keyword[static] identifier[ArrayDBIDs] operator[SEP] operator[SEP] identifier[randomSplit] operator[SEP] identifier[DBIDs] identifier[oids] , Keyword[int] identifier[p] , identifier[Random] identifier[random] operator[SEP] { identifier[random] operator[=] identifier[random] operator[!=] Other[n...
private String getTransitiveGroup(Circuit initialCircuit, Tile tile) { final Set<Circuit> circuitSet = circuits.keySet(); final Collection<String> groups = new HashSet<>(circuitSet.size()); final String groupIn = mapGroup.getGroup(tile); for (final Circuit circuit : circuitSet) ...
class class_name[name] begin[{] method[getTransitiveGroup, return_type[type[String]], modifier[private], parameter[initialCircuit, tile]] begin[{] local_variable[type[Set], circuitSet] local_variable[type[Collection], groups] local_variable[type[String], groupIn] ForStatement(bo...
Keyword[private] identifier[String] identifier[getTransitiveGroup] operator[SEP] identifier[Circuit] identifier[initialCircuit] , identifier[Tile] identifier[tile] operator[SEP] { Keyword[final] identifier[Set] operator[<] identifier[Circuit] operator[>] identifier[circuitSet] operator[=] identifier[circuits] o...
private static final String human (long n) { if (n >= 1000000) return String.format(Locale.getDefault(), "%.1fM", n/1000000.0); if (n >= 1000) return String.format(Locale.getDefault(), "%.1fk", n/1000.0); else return String.format(Locale.getDefault(), "%d", n); }
class class_name[name] begin[{] method[human, return_type[type[String]], modifier[final private static], parameter[n]] begin[{] if[binary_operation[member[.n], >=, literal[1000000]]] begin[{] return[call[String.format, parameter[call[Locale.getDefault, parameter[]], literal["%.1fM"], binary_ope...
Keyword[private] Keyword[static] Keyword[final] identifier[String] identifier[human] operator[SEP] Keyword[long] identifier[n] operator[SEP] { Keyword[if] operator[SEP] identifier[n] operator[>=] Other[1000000] operator[SEP] Keyword[return] identifier[String] operator[SEP] identifier[format] operator[SEP] identi...
synchronized static public File requireExecutable(String name, Options options) throws IOException { return requireExecutable(name, null, options); }
class class_name[name] begin[{] method[requireExecutable, return_type[type[File]], modifier[synchronized public static], parameter[name, options]] begin[{] return[call[.requireExecutable, parameter[member[.name], literal[null], member[.options]]]] end[}] END[}]
Keyword[synchronized] Keyword[static] Keyword[public] identifier[File] identifier[requireExecutable] operator[SEP] identifier[String] identifier[name] , identifier[Options] identifier[options] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] identifier[requireExecutable] operator[SEP] ide...
private void crossSecond1withNValues(T2 val1, T1 firstValN, Iterator<T1> valsN, GenericJoiner<T1, T2, O> matchFunction, Collector<O> collector) throws Exception { this.copy2 = this.serializer2.copy(val1, this.copy2); matchFunction.join(firstValN, this.copy2, collector); // set copy and match first element...
class class_name[name] begin[{] method[crossSecond1withNValues, return_type[void], modifier[private], parameter[val1, firstValN, valsN, matchFunction, collector]] begin[{] assign[THIS[member[None.copy2]], THIS[member[None.serializer2]call[None.copy, parameter[member[.val1], THIS[member[None.cop...
Keyword[private] Keyword[void] identifier[crossSecond1withNValues] operator[SEP] identifier[T2] identifier[val1] , identifier[T1] identifier[firstValN] , identifier[Iterator] operator[<] identifier[T1] operator[>] identifier[valsN] , identifier[GenericJoiner] operator[<] identifier[T1] , identifier[T2] , identifie...
public static String resolveValidationMessage(final HttpServletRequest request, final Violation violation) { ValidationConstraint vc = violation.getConstraint(); String key = vc != null ? vc.getClass().getName() : violation.getName(); String msg = LocalizationUtil.findMessage(request, key); if (msg != null) { ...
class class_name[name] begin[{] method[resolveValidationMessage, return_type[type[String]], modifier[public static], parameter[request, violation]] begin[{] local_variable[type[ValidationConstraint], vc] local_variable[type[String], key] local_variable[type[String], msg] ...
Keyword[public] Keyword[static] identifier[String] identifier[resolveValidationMessage] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[request] , Keyword[final] identifier[Violation] identifier[violation] operator[SEP] { identifier[ValidationConstraint] identifier[vc] operator[=] identif...
private String generateMavenWrapperScriptContent(@Nonnull FilePath mvnExec, @Nonnull String mavenConfig) throws AbortException { boolean isUnix = Boolean.TRUE.equals(getComputer().isUnix()); StringBuilder script = new StringBuilder(); if (isUnix) { // Linux, Unix, MacOSX St...
class class_name[name] begin[{] method[generateMavenWrapperScriptContent, return_type[type[String]], modifier[private], parameter[mvnExec, mavenConfig]] begin[{] local_variable[type[boolean], isUnix] local_variable[type[StringBuilder], script] if[member[.isUnix]] begin[{] ...
Keyword[private] identifier[String] identifier[generateMavenWrapperScriptContent] operator[SEP] annotation[@] identifier[Nonnull] identifier[FilePath] identifier[mvnExec] , annotation[@] identifier[Nonnull] identifier[String] identifier[mavenConfig] operator[SEP] Keyword[throws] identifier[AbortException] { Key...
private <A extends Annotation> void processMemberAnnotations(int processorIndex, InjectionProcessorProvider<A, ?> provider, Member[] members, ...
class class_name[name] begin[{] method[processMemberAnnotations, return_type[void], modifier[private], parameter[processorIndex, provider, members, annotatedMembers]] begin[{] local_variable[type[Class], annClass] if[binary_operation[member[.annClass], !=, literal[null]]] begin[{] ...
Keyword[private] operator[<] identifier[A] Keyword[extends] identifier[Annotation] operator[>] Keyword[void] identifier[processMemberAnnotations] operator[SEP] Keyword[int] identifier[processorIndex] , identifier[InjectionProcessorProvider] operator[<] identifier[A] , operator[?] operator[>] identifier[provider] , i...
public Long getNextStreamPosition() { String longValue = getPropertyAsString(FIELD_NEXT_STREAM_POSITION); return Long.parseLong(longValue.replace("\"", "")); }
class class_name[name] begin[{] method[getNextStreamPosition, return_type[type[Long]], modifier[public], parameter[]] begin[{] local_variable[type[String], longValue] return[call[Long.parseLong, parameter[call[longValue.replace, parameter[literal["\""], literal[""]]]]]] end[}] END[}]
Keyword[public] identifier[Long] identifier[getNextStreamPosition] operator[SEP] operator[SEP] { identifier[String] identifier[longValue] operator[=] identifier[getPropertyAsString] operator[SEP] identifier[FIELD_NEXT_STREAM_POSITION] operator[SEP] operator[SEP] Keyword[return] identifier[Long] operator[SEP] ide...
String getElementKeyString(Element element) { JsonKey key = element.getAnnotation(JsonKey.class); JsonModel model = element.getEnclosingElement().getAnnotation(JsonModel.class); if (!"".equals(key.value())) { return key.value(); } else if ("".equals(key.value()) && key.decamelize()) { return decamelize(el...
class class_name[name] begin[{] method[getElementKeyString, return_type[type[String]], modifier[default], parameter[element]] begin[{] local_variable[type[JsonKey], key] local_variable[type[JsonModel], model] if[literal[""]] begin[{] return[call[key.value, parameter[...
identifier[String] identifier[getElementKeyString] operator[SEP] identifier[Element] identifier[element] operator[SEP] { identifier[JsonKey] identifier[key] operator[=] identifier[element] operator[SEP] identifier[getAnnotation] operator[SEP] identifier[JsonKey] operator[SEP] Keyword[class] operator[SEP] operato...
protected String getRelativePath(final HttpServletRequest request) { // IMPORTANT: DefaultServlet can be mapped to '/' or '/path/*' but // always // serves resources from the web app root with context rooted paths. // i.e. it can not be used to mount the web app root under a sub-path // This method must const...
class class_name[name] begin[{] method[getRelativePath, return_type[type[String]], modifier[protected], parameter[request]] begin[{] if[binary_operation[call[request.getAttribute, parameter[member[RequestDispatcher.INCLUDE_REQUEST_URI]]], !=, literal[null]]] begin[{] local_variable[...
Keyword[protected] identifier[String] identifier[getRelativePath] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[request] operator[SEP] { Keyword[if] operator[SEP] identifier[request] operator[SEP] identifier[getAttribute] operator[SEP] identifier[RequestDispatcher] operator[SEP] identifi...
public RemoveUsersSavedTracksRequest.Builder removeUsersSavedTracks(String... ids) { return new RemoveUsersSavedTracksRequest.Builder(accessToken) .setDefaults(httpManager, scheme, host, port) .ids(concat(ids, ',')); }
class class_name[name] begin[{] method[removeUsersSavedTracks, return_type[type[RemoveUsersSavedTracksRequest]], modifier[public], parameter[ids]] begin[{] return[ClassCreator(arguments=[MemberReference(member=accessToken, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None...
Keyword[public] identifier[RemoveUsersSavedTracksRequest] operator[SEP] identifier[Builder] identifier[removeUsersSavedTracks] operator[SEP] identifier[String] operator[...] identifier[ids] operator[SEP] { Keyword[return] Keyword[new] identifier[RemoveUsersSavedTracksRequest] operator[SEP] identifier[Builder] op...
@PublicEvolving public double getDouble(ConfigOption<Double> configOption, double overrideDefault) { Object o = getRawValueFromOption(configOption); if (o == null) { return overrideDefault; } return convertToDouble(o, configOption.defaultValue()); }
class class_name[name] begin[{] method[getDouble, return_type[type[double]], modifier[public], parameter[configOption, overrideDefault]] begin[{] local_variable[type[Object], o] if[binary_operation[member[.o], ==, literal[null]]] begin[{] return[member[.overrideDefault]] ...
annotation[@] identifier[PublicEvolving] Keyword[public] Keyword[double] identifier[getDouble] operator[SEP] identifier[ConfigOption] operator[<] identifier[Double] operator[>] identifier[configOption] , Keyword[double] identifier[overrideDefault] operator[SEP] { identifier[Object] identifier[o] operator[=] ide...
public static BitmapText attachAName(Node node, String name) { checkInit(); BitmapFont guiFont = assetManager.loadFont("Interface/Fonts/Default.fnt"); BitmapText ch = new BitmapText(guiFont, false); ch.setName("BitmapText"); ch.setSize(guiFont.getCharSet().getRenderedSize() * 0....
class class_name[name] begin[{] method[attachAName, return_type[type[BitmapText]], modifier[public static], parameter[node, name]] begin[{] call[.checkInit, parameter[]] local_variable[type[BitmapFont], guiFont] local_variable[type[BitmapText], ch] call[ch.setNam...
Keyword[public] Keyword[static] identifier[BitmapText] identifier[attachAName] operator[SEP] identifier[Node] identifier[node] , identifier[String] identifier[name] operator[SEP] { identifier[checkInit] operator[SEP] operator[SEP] operator[SEP] identifier[BitmapFont] identifier[guiFont] operator[=] identifier[a...
@Override public void coreUpdateCatalog(long timestamp, boolean isStreamUpdate, final String catalogDiffs) throws EEException { LOG.trace("Loading Application Catalog..."); int errorCode = 0; errorCode = nativeUpdateCatalog(pointer, timestamp, isStreamUpdate, getStringBytes(catalogDiffs)); ...
class class_name[name] begin[{] method[coreUpdateCatalog, return_type[void], modifier[public], parameter[timestamp, isStreamUpdate, catalogDiffs]] begin[{] call[LOG.trace, parameter[literal["Loading Application Catalog..."]]] local_variable[type[int], errorCode] assign[m...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[coreUpdateCatalog] operator[SEP] Keyword[long] identifier[timestamp] , Keyword[boolean] identifier[isStreamUpdate] , Keyword[final] identifier[String] identifier[catalogDiffs] operator[SEP] Keyword[throws] identifier[EEException] { ide...
protected int getMaxTries() throws ActivityException { try { String v = getAttributeValueSmart(PROP_MAX_TRIES); int ret = StringHelper.getInteger(v, 1); return ret<1?1:ret; } catch (PropertyException ex) { throw new ActivityException(ex.getMessage(...
class class_name[name] begin[{] method[getMaxTries, return_type[type[int]], modifier[protected], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=PROP_MAX_TRIE...
Keyword[protected] Keyword[int] identifier[getMaxTries] operator[SEP] operator[SEP] Keyword[throws] identifier[ActivityException] { Keyword[try] { identifier[String] identifier[v] operator[=] identifier[getAttributeValueSmart] operator[SEP] identifier[PROP_MAX_TRIES] operator[SEP] operator[SEP] Keywor...
@Override public int getIconWidth(SynthContext context) { if (context == null) { return width; } JComponent c = context.getComponent(); if (c instanceof JToolBar && ((JToolBar) c).getOrientation() == JToolBar.VERTICAL) { // we only do the -1 hack for UIReso...
class class_name[name] begin[{] method[getIconWidth, return_type[type[int]], modifier[public], parameter[context]] begin[{] if[binary_operation[member[.context], ==, literal[null]]] begin[{] return[member[.width]] else begin[{] None end[}] local_variable[type...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[getIconWidth] operator[SEP] identifier[SynthContext] identifier[context] operator[SEP] { Keyword[if] operator[SEP] identifier[context] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[width] operator[SEP] ...
private ShowQueryBuilder parseShow(ShowQueryBuilder query) { Token token = scanToken(); if (token == Token.TABLE) { } else if (token == Token.IDENTIFIER && _lexeme.equalsIgnoreCase("tableinfo")) { query.method("tableinfo"); } else { throw error("Expected TABLE at {0}"...
class class_name[name] begin[{] method[parseShow, return_type[type[ShowQueryBuilder]], modifier[private], parameter[query]] begin[{] local_variable[type[Token], token] if[binary_operation[member[.token], ==, member[Token.TABLE]]] begin[{] else begin[{] if[binary_ope...
Keyword[private] identifier[ShowQueryBuilder] identifier[parseShow] operator[SEP] identifier[ShowQueryBuilder] identifier[query] operator[SEP] { identifier[Token] identifier[token] operator[=] identifier[scanToken] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[token] operator[==]...
public long pause(int msgs) throws InterruptedException { if (msgs == 1) { return 0; } // TODO: this is purely instantaneous rate; maybe we // should also offer decayed recent history one? final long targetNS = lastNS = lastNS + ((long) (msgs * nsPerMsg)); fi...
class class_name[name] begin[{] method[pause, return_type[type[long]], modifier[public], parameter[msgs]] begin[{] if[binary_operation[member[.msgs], ==, literal[1]]] begin[{] return[literal[0]] else begin[{] None end[}] local_variable[type[long], targetNS] ...
Keyword[public] Keyword[long] identifier[pause] operator[SEP] Keyword[int] identifier[msgs] operator[SEP] Keyword[throws] identifier[InterruptedException] { Keyword[if] operator[SEP] identifier[msgs] operator[==] Other[1] operator[SEP] { Keyword[return] Other[0] operator[SEP] } Keyword[f...
public static <T extends TypeDescription> ElementMatcher.Junction<T> hasAnnotation(ElementMatcher<? super AnnotationDescription> matcher) { return new InheritedAnnotationMatcher<T>(new CollectionItemMatcher<AnnotationDescription>(matcher)); }
class class_name[name] begin[{] method[hasAnnotation, return_type[type[ElementMatcher]], modifier[public static], parameter[matcher]] begin[{] return[ClassCreator(arguments=[ClassCreator(arguments=[MemberReference(member=matcher, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], bo...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[TypeDescription] operator[>] identifier[ElementMatcher] operator[SEP] identifier[Junction] operator[<] identifier[T] operator[>] identifier[hasAnnotation] operator[SEP] identifier[ElementMatcher] operator[<] operator[?] Keyword[super]...
@Override public DeleteCodeRepositoryResult deleteCodeRepository(DeleteCodeRepositoryRequest request) { request = beforeClientExecution(request); return executeDeleteCodeRepository(request); }
class class_name[name] begin[{] method[deleteCodeRepository, return_type[type[DeleteCodeRepositoryResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDeleteCodeRepository, parame...
annotation[@] identifier[Override] Keyword[public] identifier[DeleteCodeRepositoryResult] identifier[deleteCodeRepository] operator[SEP] identifier[DeleteCodeRepositoryRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ...
@Override public GetTagValuesResult getTagValues(GetTagValuesRequest request) { request = beforeClientExecution(request); return executeGetTagValues(request); }
class class_name[name] begin[{] method[getTagValues, return_type[type[GetTagValuesResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetTagValues, parameter[member[.request]]]] ...
annotation[@] identifier[Override] Keyword[public] identifier[GetTagValuesResult] identifier[getTagValues] operator[SEP] identifier[GetTagValuesRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[S...