code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "_reference") public JAXBElement<ReferenceType> create_Reference(ReferenceType value) { return new JAXBElement<ReferenceType>(__Reference_QNAME, ReferenceType.class, null, value); }
class class_name[name] begin[{] method[create_Reference, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=__Reference_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_ope...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[ReferenceType] operator[>] identifier[create_Reference] operator[SEP] identifier[Reference...
public static IntSupplier leftOf(ISized owner, IPositioned other, int spacing) { checkNotNull(other); return () -> { return other.position().x() - owner.size().width() - spacing; }; }
class class_name[name] begin[{] method[leftOf, return_type[type[IntSupplier]], modifier[public static], parameter[owner, other, spacing]] begin[{] call[.checkNotNull, parameter[member[.other]]] return[LambdaExpression(body=[ReturnStatement(expression=BinaryOperation(operandl=BinaryOpera...
Keyword[public] Keyword[static] identifier[IntSupplier] identifier[leftOf] operator[SEP] identifier[ISized] identifier[owner] , identifier[IPositioned] identifier[other] , Keyword[int] identifier[spacing] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[other] operator[SEP] operator[SEP] Keywo...
@Trivial @FFDCIgnore(InterruptedException.class) void scheduledScan() { // Don't perform a scheduled scan if this monitor holder is paused if (isStopped) return; // 152229: Changed this code to get the monitor type locally. That is, now we save the monitor type in the const...
class class_name[name] begin[{] method[scheduledScan, return_type[void], modifier[default], parameter[]] begin[{] if[member[.isStopped]] begin[{] return[None] else begin[{] None end[}] if[call[FileMonitor.MONITOR_TYPE_EXTERNAL.equals, parameter[call[monitorRef.ge...
annotation[@] identifier[Trivial] annotation[@] identifier[FFDCIgnore] operator[SEP] identifier[InterruptedException] operator[SEP] Keyword[class] operator[SEP] Keyword[void] identifier[scheduledScan] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isStopped] operator[SEP] Keyword[return] oper...
@Override public AbstractHttpEntity harvest(long generation) { ByteBufferEntity enty; try { m_writers.get(generation).flush(); enty = new ByteBufferEntity(m_bbos.get(generation).toByteBuffer(), CSVContentType); } catch (IOException e) { throw new BulkExcep...
class class_name[name] begin[{] method[harvest, return_type[type[AbstractHttpEntity]], modifier[public], parameter[generation]] begin[{] local_variable[type[ByteBufferEntity], enty] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=generation,...
annotation[@] identifier[Override] Keyword[public] identifier[AbstractHttpEntity] identifier[harvest] operator[SEP] Keyword[long] identifier[generation] operator[SEP] { identifier[ByteBufferEntity] identifier[enty] operator[SEP] Keyword[try] { identifier[m_writers] operator[SEP] identifier[get] operat...
@Override public SIPDialog createDialog(SipProviderImpl sipProvider, SIPResponse sipResponse) { if (sipCache.inLocalMode()) { return super.createDialog(sipProvider, sipResponse); } else { return (SIPDialog) HASipDialogFactory.createHASipDialog(replicationStrategy, sipProvider, sipResponse); } }
class class_name[name] begin[{] method[createDialog, return_type[type[SIPDialog]], modifier[public], parameter[sipProvider, sipResponse]] begin[{] if[call[sipCache.inLocalMode, parameter[]]] begin[{] return[SuperMethodInvocation(arguments=[MemberReference(member=sipProvider, postfix...
annotation[@] identifier[Override] Keyword[public] identifier[SIPDialog] identifier[createDialog] operator[SEP] identifier[SipProviderImpl] identifier[sipProvider] , identifier[SIPResponse] identifier[sipResponse] operator[SEP] { Keyword[if] operator[SEP] identifier[sipCache] operator[SEP] identifier[inLocalMod...
private List<SequenceState<S, O, D>> retrieveMostLikelySequence() { // Otherwise an HMM break would have occurred and message would be null. assert !message.isEmpty(); final S lastState = mostLikelyState(); // Retrieve most likely state sequence in reverse order final List<Sequ...
class class_name[name] begin[{] method[retrieveMostLikelySequence, return_type[type[List]], modifier[private], parameter[]] begin[{] AssertStatement(condition=MethodInvocation(arguments=[], member=isEmpty, postfix_operators=[], prefix_operators=['!'], qualifier=message, selectors=[], type_arguments=Non...
Keyword[private] identifier[List] operator[<] identifier[SequenceState] operator[<] identifier[S] , identifier[O] , identifier[D] operator[>] operator[>] identifier[retrieveMostLikelySequence] operator[SEP] operator[SEP] { Keyword[assert] operator[!] identifier[message] operator[SEP] identifier[isEmpty] operat...
@Override public java.util.concurrent.Future<DescribeOptionGroupsResult> describeOptionGroupsAsync( com.amazonaws.handlers.AsyncHandler<DescribeOptionGroupsRequest, DescribeOptionGroupsResult> asyncHandler) { return describeOptionGroupsAsync(new DescribeOptionGroupsRequest(), asyncHandler); ...
class class_name[name] begin[{] method[describeOptionGroupsAsync, return_type[type[java]], modifier[public], parameter[asyncHandler]] begin[{] return[call[.describeOptionGroupsAsync, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=...
annotation[@] identifier[Override] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[concurrent] operator[SEP] identifier[Future] operator[<] identifier[DescribeOptionGroupsResult] operator[>] identifier[describeOptionGroupsAsync] operator[SEP] identifier[com] operator[SEP] identi...
public static void printDecimal(Appendable out, BigDecimal decimal) throws IOException { _Private_IonTextAppender appender = _Private_IonTextAppender.forAppendable(out); appender.printDecimal(STANDARD, decimal); }
class class_name[name] begin[{] method[printDecimal, return_type[void], modifier[public static], parameter[out, decimal]] begin[{] local_variable[type[_Private_IonTextAppender], appender] call[appender.printDecimal, parameter[member[.STANDARD], member[.decimal]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[printDecimal] operator[SEP] identifier[Appendable] identifier[out] , identifier[BigDecimal] identifier[decimal] operator[SEP] Keyword[throws] identifier[IOException] { identifier[_Private_IonTextAppender] identifier[appender] operator[=] identifier[_Priva...
Rule VoiceSubname() { return SequenceS( FirstOfS(IgnoreCase("subname="), IgnoreCase("sname="), IgnoreCase("snm=")), String("\""), ZeroOrMore(NonQuote()).label(VoiceSubname).suppressSubnodes(), String("\"")); }
class class_name[name] begin[{] method[VoiceSubname, return_type[type[Rule]], modifier[default], parameter[]] begin[{] return[call[.SequenceS, parameter[call[.FirstOfS, parameter[call[.IgnoreCase, parameter[literal["subname="]]], call[.IgnoreCase, parameter[literal["sname="]]], call[.IgnoreCase, parame...
identifier[Rule] identifier[VoiceSubname] operator[SEP] operator[SEP] { Keyword[return] identifier[SequenceS] operator[SEP] identifier[FirstOfS] operator[SEP] identifier[IgnoreCase] operator[SEP] literal[String] operator[SEP] , identifier[IgnoreCase] operator[SEP] literal[String] operator[SEP] , identifier[Ign...
private ClassName getProxyClassName(TypeMirror param) { Element element = getBindingManager().getElement(param.toString()); return ClassName.get(getPackage(element).getQualifiedName().toString(), element.getSimpleName() + ClassBuilder.PROXY_SUFFIX); }
class class_name[name] begin[{] method[getProxyClassName, return_type[type[ClassName]], modifier[private], parameter[param]] begin[{] local_variable[type[Element], element] return[call[ClassName.get, parameter[call[.getPackage, parameter[member[.element]]], binary_operation[call[element.getSimp...
Keyword[private] identifier[ClassName] identifier[getProxyClassName] operator[SEP] identifier[TypeMirror] identifier[param] operator[SEP] { identifier[Element] identifier[element] operator[=] identifier[getBindingManager] operator[SEP] operator[SEP] operator[SEP] identifier[getElement] operator[SEP] identifier[p...
@SuppressWarnings("unchecked") protected <T> T set(DBIDRef id, int index, T value) { Object[] d = data.get(DBIDUtil.deref(id)); if(d == null) { d = new Object[rlen]; data.put(DBIDUtil.deref(id), d); } T ret = (T) d[index]; d[index] = value; return ret; }
class class_name[name] begin[{] method[set, return_type[type[T]], modifier[protected], parameter[id, index, value]] begin[{] local_variable[type[Object], d] if[binary_operation[member[.d], ==, literal[null]]] begin[{] assign[member[.d], ArrayCreator(dimensions=[M...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] operator[<] identifier[T] operator[>] identifier[T] identifier[set] operator[SEP] identifier[DBIDRef] identifier[id] , Keyword[int] identifier[index] , identifier[T] identifier[value] operator[SEP] { ident...
public alluxio.grpc.UnmountPOptions getOptions() { return options_ == null ? alluxio.grpc.UnmountPOptions.getDefaultInstance() : options_; }
class class_name[name] begin[{] method[getOptions, return_type[type[alluxio]], modifier[public], parameter[]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=options_, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(post...
Keyword[public] identifier[alluxio] operator[SEP] identifier[grpc] operator[SEP] identifier[UnmountPOptions] identifier[getOptions] operator[SEP] operator[SEP] { Keyword[return] identifier[options_] operator[==] Other[null] operator[?] identifier[alluxio] operator[SEP] identifier[grpc] operator[SEP] identifier[U...
private List<GeneratorTask> createWaiterOpFunctionClassTasks() throws IOException { List<GeneratorTask> generatorTasks = new ArrayList<>(); List<String> generatedOperations = new ArrayList<>(); for (Map.Entry<String, WaiterDefinitionModel> entry : model.getWaiters().entrySet()) { fi...
class class_name[name] begin[{] method[createWaiterOpFunctionClassTasks, return_type[type[List]], modifier[private], parameter[]] begin[{] local_variable[type[List], generatorTasks] local_variable[type[List], generatedOperations] ForStatement(body=BlockStatement(label=None, statements=[...
Keyword[private] identifier[List] operator[<] identifier[GeneratorTask] operator[>] identifier[createWaiterOpFunctionClassTasks] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[List] operator[<] identifier[GeneratorTask] operator[>] identifier[generatorTasks] operator[=] Keyword[...
public static <E> Function<Object, E> constant(@Nullable E value) { return input -> value; }
class class_name[name] begin[{] method[constant, return_type[type[Function]], modifier[public static], parameter[value]] begin[{] return[LambdaExpression(body=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), parameters=[MemberReference(member=input, po...
Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[Function] operator[<] identifier[Object] , identifier[E] operator[>] identifier[constant] operator[SEP] annotation[@] identifier[Nullable] identifier[E] identifier[value] operator[SEP] { Keyword[return] identifier[input] operator[-...
public void activateTooltip(boolean show) { if (show) { ToolTipManager.sharedInstance().registerComponent(this); } else { ToolTipManager.sharedInstance().unregisterComponent(this); } ToolTipManager.sharedInstance().setEnabled(show); ...
class class_name[name] begin[{] method[activateTooltip, return_type[void], modifier[public], parameter[show]] begin[{] if[member[.show]] begin[{] call[ToolTipManager.sharedInstance, parameter[]] else begin[{] call[ToolTipManager.sharedInst...
Keyword[public] Keyword[void] identifier[activateTooltip] operator[SEP] Keyword[boolean] identifier[show] operator[SEP] { Keyword[if] operator[SEP] identifier[show] operator[SEP] { identifier[ToolTipManager] operator[SEP] identifier[sharedInstance] operator[SEP] operator[SEP] operator[SEP] identifier[...
protected final void addValidator(String name, String validatorId) { _factories.put(name, new ValidatorHandlerFactory(validatorId)); }
class class_name[name] begin[{] method[addValidator, return_type[void], modifier[final protected], parameter[name, validatorId]] begin[{] call[_factories.put, parameter[member[.name], ClassCreator(arguments=[MemberReference(member=validatorId, postfix_operators=[], prefix_operators=[], qualifie...
Keyword[protected] Keyword[final] Keyword[void] identifier[addValidator] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[validatorId] operator[SEP] { identifier[_factories] operator[SEP] identifier[put] operator[SEP] identifier[name] , Keyword[new] identifier[ValidatorHandlerF...
@Override public void reportMetric(final IMetric<?> metric) throws MetricException { final String metricName = metric.getName(); if (!this.historyListMapping.containsKey(metricName)) { logger.info("First time capturing metric: " + metricName); this.historyListMapping.put(metricName, new LinkedBloc...
class class_name[name] begin[{] method[reportMetric, return_type[void], modifier[public], parameter[metric]] begin[{] local_variable[type[String], metricName] if[THIS[member[None.historyListMapping]call[None.containsKey, parameter[member[.metricName]]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[reportMetric] operator[SEP] Keyword[final] identifier[IMetric] operator[<] operator[?] operator[>] identifier[metric] operator[SEP] Keyword[throws] identifier[MetricException] { Keyword[final] identifier[String] identifier[metricName] op...
private HttpURLConnection openConnection(URL url, Request<?> request) throws IOException { HttpURLConnection connection = createConnection(url); int timeoutMs = request.getTimeoutMs(); connection.setConnectTimeout(timeoutMs); connection.setReadTimeout(timeoutMs); connection.setU...
class class_name[name] begin[{] method[openConnection, return_type[type[HttpURLConnection]], modifier[private], parameter[url, request]] begin[{] local_variable[type[HttpURLConnection], connection] local_variable[type[int], timeoutMs] call[connection.setConnectTimeout, parameter...
Keyword[private] identifier[HttpURLConnection] identifier[openConnection] operator[SEP] identifier[URL] identifier[url] , identifier[Request] operator[<] operator[?] operator[>] identifier[request] operator[SEP] Keyword[throws] identifier[IOException] { identifier[HttpURLConnection] identifier[connection] opera...
public static Vector<String> toVector( String[] array ) { if( array == null ) { return new Vector<String>( 0 ); } Vector<String> v = new Vector<String>( array.length ); v.copyInto( array ); return v; }
class class_name[name] begin[{] method[toVector, return_type[type[Vector]], modifier[public static], parameter[array]] begin[{] if[binary_operation[member[.array], ==, literal[null]]] begin[{] return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] Keyword[static] identifier[Vector] operator[<] identifier[String] operator[>] identifier[toVector] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[array] operator[SEP] { Keyword[if] operator[SEP] identifier[array] operator[==] Other[null] operator[SEP] { Keyword...
private boolean containsNullValue() { Entry<K,V>[] tab = getTable(); for (int i = tab.length; i-- > 0;) for (Entry<K,V> e = tab[i]; e != null; e = e.next) if (e.value==null) return true; return false; }
class class_name[name] begin[{] method[containsNullValue, return_type[type[boolean]], modifier[private], parameter[]] begin[{] local_variable[type[Entry], tab] ForStatement(body=ForStatement(body=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], ...
Keyword[private] Keyword[boolean] identifier[containsNullValue] operator[SEP] operator[SEP] { identifier[Entry] operator[<] identifier[K] , identifier[V] operator[>] operator[SEP] operator[SEP] identifier[tab] operator[=] identifier[getTable] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] ...
public void reinitialize () { m_aRWLock.writeLocked ( () -> { m_aProtocols.clear (); // Add all default protocols for (final EURLProtocol aProtocol : EURLProtocol.values ()) m_aProtocols.put (aProtocol.getProtocol (), aProtocol); }); // Load all SPI implementations for (fin...
class class_name[name] begin[{] method[reinitialize, return_type[void], modifier[public], parameter[]] begin[{] call[m_aRWLock.writeLocked, parameter[LambdaExpression(body=[StatementExpression(expression=MethodInvocation(arguments=[], member=clear, postfix_operators=[], prefix_operators=[], qua...
Keyword[public] Keyword[void] identifier[reinitialize] operator[SEP] operator[SEP] { identifier[m_aRWLock] operator[SEP] identifier[writeLocked] operator[SEP] operator[SEP] operator[SEP] operator[->] { identifier[m_aProtocols] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] K...
public static AnnotationValue getAnnotationValue( AnnotationMirror annotationMirror, String elementName) { return getAnnotationElementAndValue(annotationMirror, elementName).getValue(); }
class class_name[name] begin[{] method[getAnnotationValue, return_type[type[AnnotationValue]], modifier[public static], parameter[annotationMirror, elementName]] begin[{] return[call[.getAnnotationElementAndValue, parameter[member[.annotationMirror], member[.elementName]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[AnnotationValue] identifier[getAnnotationValue] operator[SEP] identifier[AnnotationMirror] identifier[annotationMirror] , identifier[String] identifier[elementName] operator[SEP] { Keyword[return] identifier[getAnnotationElementAndValue] operator[SEP] identifier[annota...
public static DbAccessException createDbAccessException(HttpResponse hr) { JsonNode responseBody; try { InputStream content = hr.getContent(); if (content != null) { responseBody = responseBodyAsNode(IOUtils.toString(content)); } else { responseBod...
class class_name[name] begin[{] method[createDbAccessException, return_type[type[DbAccessException]], modifier[public static], parameter[hr]] begin[{] local_variable[type[JsonNode], responseBody] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimens...
Keyword[public] Keyword[static] identifier[DbAccessException] identifier[createDbAccessException] operator[SEP] identifier[HttpResponse] identifier[hr] operator[SEP] { identifier[JsonNode] identifier[responseBody] operator[SEP] Keyword[try] { identifier[InputStream] identifier[content] operator[=] ide...
public java.util.List<String> getNameServers() { if (nameServers == null) { nameServers = new com.amazonaws.internal.SdkInternalList<String>(); } return nameServers; }
class class_name[name] begin[{] method[getNameServers, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.nameServers], ==, literal[null]]] begin[{] assign[member[.nameServers], ClassCreator(arguments=[], body=None, constructor_t...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[getNameServers] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[nameServers] operator[==] Other[null] operator[SEP] { identifier[nameS...
public CollectionValuedMap<K, V> deltaClone() { CollectionValuedMap<K, V> result = new CollectionValuedMap<K, V>(null, cf, true); result.map = new DeltaMap<K, Collection<V>>(this.map); return result; }
class class_name[name] begin[{] method[deltaClone, return_type[type[CollectionValuedMap]], modifier[public], parameter[]] begin[{] local_variable[type[CollectionValuedMap], result] assign[member[result.map], ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifi...
Keyword[public] identifier[CollectionValuedMap] operator[<] identifier[K] , identifier[V] operator[>] identifier[deltaClone] operator[SEP] operator[SEP] { identifier[CollectionValuedMap] operator[<] identifier[K] , identifier[V] operator[>] identifier[result] operator[=] Keyword[new] identifier[CollectionValue...
@Override public StringBuilder sqlBuilder() { StringBuilder builder = this.sqlStringBuilder.get(); builder.delete(0, builder.length()); return builder; }
class class_name[name] begin[{] method[sqlBuilder, return_type[type[StringBuilder]], modifier[public], parameter[]] begin[{] local_variable[type[StringBuilder], builder] call[builder.delete, parameter[literal[0], call[builder.length, parameter[]]]] return[member[.builder]] e...
annotation[@] identifier[Override] Keyword[public] identifier[StringBuilder] identifier[sqlBuilder] operator[SEP] operator[SEP] { identifier[StringBuilder] identifier[builder] operator[=] Keyword[this] operator[SEP] identifier[sqlStringBuilder] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[S...
private void addConstructorByKey() { context.constructorByKey = MethodSpec.constructorBuilder().addParameter(keySpec); context.constructorByKey.addParameter(keyRefQueueSpec); addCommonParameters(context.constructorByKey); if (isBaseClass()) { callSiblingConstructor(); } else { callParent...
class class_name[name] begin[{] method[addConstructorByKey, return_type[void], modifier[private], parameter[]] begin[{] assign[member[context.constructorByKey], call[MethodSpec.constructorBuilder, parameter[]]] call[context.constructorByKey.addParameter, parameter[member[.keyRef...
Keyword[private] Keyword[void] identifier[addConstructorByKey] operator[SEP] operator[SEP] { identifier[context] operator[SEP] identifier[constructorByKey] operator[=] identifier[MethodSpec] operator[SEP] identifier[constructorBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[addParameter] operator[S...
public AutoRollbackConfiguration withEvents(String... events) { if (this.events == null) { setEvents(new com.amazonaws.internal.SdkInternalList<String>(events.length)); } for (String ele : events) { this.events.add(ele); } return this; }
class class_name[name] begin[{] method[withEvents, return_type[type[AutoRollbackConfiguration]], modifier[public], parameter[events]] begin[{] if[binary_operation[THIS[member[None.events]], ==, literal[null]]] begin[{] call[.setEvents, parameter[ClassCreator(arguments=[M...
Keyword[public] identifier[AutoRollbackConfiguration] identifier[withEvents] operator[SEP] identifier[String] operator[...] identifier[events] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[events] operator[==] Other[null] operator[SEP] { identifier[setEvents] operato...
@Override public EEnum getTristate() { if (tristateEEnum == null) { tristateEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(0); } return tristateEEnum; }
class class_name[name] begin[{] method[getTristate, return_type[type[EEnum]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.tristateEEnum], ==, literal[null]]] begin[{] assign[member[.tristateEEnum], Cast(expression=MethodInvocation(arguments=[Membe...
annotation[@] identifier[Override] Keyword[public] identifier[EEnum] identifier[getTristate] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[tristateEEnum] operator[==] Other[null] operator[SEP] { identifier[tristateEEnum] operator[=] operator[SEP] identifier[EEnum] operator[SEP] id...
public static Stock get(String symbol, Calendar from) throws IOException { return YahooFinance.get(symbol, from, HistQuotesRequest.DEFAULT_TO, HistQuotesRequest.DEFAULT_INTERVAL); }
class class_name[name] begin[{] method[get, return_type[type[Stock]], modifier[public static], parameter[symbol, from]] begin[{] return[call[YahooFinance.get, parameter[member[.symbol], member[.from], member[HistQuotesRequest.DEFAULT_TO], member[HistQuotesRequest.DEFAULT_INTERVAL]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Stock] identifier[get] operator[SEP] identifier[String] identifier[symbol] , identifier[Calendar] identifier[from] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] identifier[YahooFinance] operator[SEP] identifier[get] operator[SEP] identifier[sy...
public Observable<ServiceResponse<RunInner>> scheduleRunWithServiceResponseAsync(String resourceGroupName, String registryName, RunRequest runRequest) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be nu...
class class_name[name] begin[{] method[scheduleRunWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, registryName, runRequest]] begin[{] if[binary_operation[THIS[member[None.client]call[None.subscriptionId, parameter[]]], ==, literal[null]]] ...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[RunInner] operator[>] operator[>] identifier[scheduleRunWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[registryName] , identifier[RunRequest] ...
void initialCapacity(String key, @Nullable String value) { requireArgument(initialCapacity == UNSET_INT, "initial capacity was already set to %,d", initialCapacity); initialCapacity = parseInt(key, value); }
class class_name[name] begin[{] method[initialCapacity, return_type[void], modifier[default], parameter[key, value]] begin[{] call[.requireArgument, parameter[binary_operation[member[.initialCapacity], ==, member[.UNSET_INT]], literal["initial capacity was already set to %,d"], member[.initialC...
Keyword[void] identifier[initialCapacity] operator[SEP] identifier[String] identifier[key] , annotation[@] identifier[Nullable] identifier[String] identifier[value] operator[SEP] { identifier[requireArgument] operator[SEP] identifier[initialCapacity] operator[==] identifier[UNSET_INT] , literal[String] , iden...
public void addComparator(Comparator<T> comparator, boolean reverse) { checkLocked(); comparatorChain.add(comparator); if (reverse == true) { orderingBits.set(comparatorChain.size() - 1); } }
class class_name[name] begin[{] method[addComparator, return_type[void], modifier[public], parameter[comparator, reverse]] begin[{] call[.checkLocked, parameter[]] call[comparatorChain.add, parameter[member[.comparator]]] if[binary_operation[member[.reverse], ==,...
Keyword[public] Keyword[void] identifier[addComparator] operator[SEP] identifier[Comparator] operator[<] identifier[T] operator[>] identifier[comparator] , Keyword[boolean] identifier[reverse] operator[SEP] { identifier[checkLocked] operator[SEP] operator[SEP] operator[SEP] identifier[comparatorChain] operator[...
public static <T, U> U convertBean(T source, Class<U> targetClass) { return convertBean(source, targetClass, null); }
class class_name[name] begin[{] method[convertBean, return_type[type[U]], modifier[public static], parameter[source, targetClass]] begin[{] return[call[.convertBean, parameter[member[.source], member[.targetClass], literal[null]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[U] operator[>] identifier[U] identifier[convertBean] operator[SEP] identifier[T] identifier[source] , identifier[Class] operator[<] identifier[U] operator[>] identifier[targetClass] operator[SEP] { Keyword[return] identifier[convertBean] op...
@Override public final Iterable<HeadDocument> findAll( final RootDocument rootDocument) { final Iterable<HeadDocument> headDocuments = findAll(rootDocument.getFilename()); if (headDocuments == null) { return null; } for (final HeadDocument head...
class class_name[name] begin[{] method[findAll, return_type[type[Iterable]], modifier[final public], parameter[rootDocument]] begin[{] local_variable[type[Iterable], headDocuments] if[binary_operation[member[.headDocuments], ==, literal[null]]] begin[{] return[literal[null]]...
annotation[@] identifier[Override] Keyword[public] Keyword[final] identifier[Iterable] operator[<] identifier[HeadDocument] operator[>] identifier[findAll] operator[SEP] Keyword[final] identifier[RootDocument] identifier[rootDocument] operator[SEP] { Keyword[final] identifier[Iterable] operator[<] identifier[Hea...
public I collapse() { if (this.start.isInfinite()) { throw new IllegalStateException( "An interval with infinite past cannot be collapsed."); } T t = this.getClosedFiniteStart(); Boundary<T> s = Boundary.ofClosed(t); Boundary<T> e = Boundary.ofOpen(t...
class class_name[name] begin[{] method[collapse, return_type[type[I]], modifier[public], parameter[]] begin[{] if[THIS[member[None.start]call[None.isInfinite, parameter[]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[],...
Keyword[public] identifier[I] identifier[collapse] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[start] operator[SEP] identifier[isInfinite] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operat...
@Override public EClass getIfcSolarDevice() { if (ifcSolarDeviceEClass == null) { ifcSolarDeviceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(607); } return ifcSolarDeviceEClass; }
class class_name[name] begin[{] method[getIfcSolarDevice, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcSolarDeviceEClass], ==, literal[null]]] begin[{] assign[member[.ifcSolarDeviceEClass], Cast(expression=MethodInvoca...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcSolarDevice] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcSolarDeviceEClass] operator[==] Other[null] operator[SEP] { identifier[ifcSolarDeviceEClass] operator[=] operator[SEP] identifier[EC...
private List<ResourceRef> findRoseResources() { final List<ResourceRef> resources; try { resources = RoseScanner.getInstance().getJarOrClassesFolderResources(); } catch (IOException e) { throw new ApplicationContextException( "error on getJarReso...
class class_name[name] begin[{] method[findRoseResources, return_type[type[List]], modifier[private], parameter[]] begin[{] local_variable[type[List], resources] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=resources, postfix_operators=[], pre...
Keyword[private] identifier[List] operator[<] identifier[ResourceRef] operator[>] identifier[findRoseResources] operator[SEP] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[ResourceRef] operator[>] identifier[resources] operator[SEP] Keyword[try] { identifier[resources] operato...
private HttpRequestRetryHandler getRetryHandler() { final HttpRequestRetryHandler myRetryHandler = new HttpRequestRetryHandler() { public boolean retryRequest(IOException exception, int executionCount, HttpContext context) { if (executionCount >= connectionConfiguration.getExecutionCount()) { ...
class class_name[name] begin[{] method[getRetryHandler, return_type[type[HttpRequestRetryHandler]], modifier[private], parameter[]] begin[{] local_variable[type[HttpRequestRetryHandler], myRetryHandler] return[member[.myRetryHandler]] end[}] END[}]
Keyword[private] identifier[HttpRequestRetryHandler] identifier[getRetryHandler] operator[SEP] operator[SEP] { Keyword[final] identifier[HttpRequestRetryHandler] identifier[myRetryHandler] operator[=] Keyword[new] identifier[HttpRequestRetryHandler] operator[SEP] operator[SEP] { Keyword[public] Keywor...
@Override @LogarithmicTime(amortized = true) public Handle<K, V> insert(K key) { return insert(key, null); }
class class_name[name] begin[{] method[insert, return_type[type[Handle]], modifier[public], parameter[key]] begin[{] return[call[.insert, parameter[member[.key], literal[null]]]] end[}] END[}]
annotation[@] identifier[Override] annotation[@] identifier[LogarithmicTime] operator[SEP] identifier[amortized] operator[=] literal[boolean] operator[SEP] Keyword[public] identifier[Handle] operator[<] identifier[K] , identifier[V] operator[>] identifier[insert] operator[SEP] identifier[K] identifier[key] operator[SE...
public static SortedSet<ClassLabel> getClassLabels(Relation<? extends ClassLabel> database) { SortedSet<ClassLabel> labels = new TreeSet<>(); for(DBIDIter it = database.iterDBIDs(); it.valid(); it.advance()) { labels.add(database.get(it)); } return labels; }
class class_name[name] begin[{] method[getClassLabels, return_type[type[SortedSet]], modifier[public static], parameter[database]] begin[{] local_variable[type[SortedSet], labels] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=...
Keyword[public] Keyword[static] identifier[SortedSet] operator[<] identifier[ClassLabel] operator[>] identifier[getClassLabels] operator[SEP] identifier[Relation] operator[<] operator[?] Keyword[extends] identifier[ClassLabel] operator[>] identifier[database] operator[SEP] { identifier[SortedSet] operator[<] ide...
public java.lang.String getCreatedBy() { java.lang.Object ref = createdBy_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crea...
class class_name[name] begin[{] method[getCreatedBy, return_type[type[java]], modifier[public], parameter[]] begin[{] local_variable[type[java], ref] if[binary_operation[member[.ref], instanceof, type[java]]] begin[{] return[Cast(expression=MemberReference(member=ref, postfi...
Keyword[public] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] identifier[getCreatedBy] operator[SEP] operator[SEP] { identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[Object] identifier[ref] operator[=] identifier[createdBy_] operator[SEP] Keyword[if] ope...
@Override public EClass getIfcBlobTexture() { if (ifcBlobTextureEClass == null) { ifcBlobTextureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(41); } return ifcBlobTextureEClass; }
class class_name[name] begin[{] method[getIfcBlobTexture, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcBlobTextureEClass], ==, literal[null]]] begin[{] assign[member[.ifcBlobTextureEClass], Cast(expression=MethodInvoca...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcBlobTexture] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcBlobTextureEClass] operator[==] Other[null] operator[SEP] { identifier[ifcBlobTextureEClass] operator[=] operator[SEP] identifier[EC...
public String getSiteHelpMessage(String label) { CommandInfo info = siteCommands.get(label); return info != null ? info.help : null; }
class class_name[name] begin[{] method[getSiteHelpMessage, return_type[type[String]], modifier[public], parameter[label]] begin[{] local_variable[type[CommandInfo], info] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=info, postfix_operators=[], prefix_operat...
Keyword[public] identifier[String] identifier[getSiteHelpMessage] operator[SEP] identifier[String] identifier[label] operator[SEP] { identifier[CommandInfo] identifier[info] operator[=] identifier[siteCommands] operator[SEP] identifier[get] operator[SEP] identifier[label] operator[SEP] operator[SEP] Keyword[retu...
private boolean moveContents(ContextNode oldNode, ContextNode newNode) throws InvalidNameException, NameAlreadyBoundException, NameNotFoundException, NotContextException { boolean emptied = true; Iterator<Entry<String, Object>> entries = oldNode.children.entrySet().iterator(); while (entries.has...
class class_name[name] begin[{] method[moveContents, return_type[type[boolean]], modifier[private], parameter[oldNode, newNode]] begin[{] local_variable[type[boolean], emptied] local_variable[type[Iterator], entries] while[call[entries.hasNext, parameter[]]] begin[{] ...
Keyword[private] Keyword[boolean] identifier[moveContents] operator[SEP] identifier[ContextNode] identifier[oldNode] , identifier[ContextNode] identifier[newNode] operator[SEP] Keyword[throws] identifier[InvalidNameException] , identifier[NameAlreadyBoundException] , identifier[NameNotFoundException] , identifier[N...
public static BeanDeployerEnvironment newConcurrentEnvironment(BeanManagerImpl manager) { return new BeanDeployerEnvironment(Collections.newSetFromMap(new ConcurrentHashMap<SlimAnnotatedTypeContext<?>, Boolean>()), Collections.newSetFromMap(new ConcurrentHashMap<Class<?>, Boolean>()), SetMultima...
class class_name[name] begin[{] method[newConcurrentEnvironment, return_type[type[BeanDeployerEnvironment]], modifier[public static], parameter[manager]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_op...
Keyword[public] Keyword[static] identifier[BeanDeployerEnvironment] identifier[newConcurrentEnvironment] operator[SEP] identifier[BeanManagerImpl] identifier[manager] operator[SEP] { Keyword[return] Keyword[new] identifier[BeanDeployerEnvironment] operator[SEP] identifier[Collections] operator[SEP] identifier[ne...
void moveToDone(final JobID id, boolean sync, final JobID renameJobId) { // If restarting is disabled use original implementation if (conf.getInt(CoronaJobTracker.MAX_JT_FAILURES_CONF, CoronaJobTracker.MAX_JT_FAILURES_DEFAULT) == 0) { moveToDone(id, sync); return; } // Otherwise use ...
class class_name[name] begin[{] method[moveToDone, return_type[void], modifier[default], parameter[id, sync, renameJobId]] begin[{] if[binary_operation[call[conf.getInt, parameter[member[CoronaJobTracker.MAX_JT_FAILURES_CONF], member[CoronaJobTracker.MAX_JT_FAILURES_DEFAULT]]], ==, literal[0]]]...
Keyword[void] identifier[moveToDone] operator[SEP] Keyword[final] identifier[JobID] identifier[id] , Keyword[boolean] identifier[sync] , Keyword[final] identifier[JobID] identifier[renameJobId] operator[SEP] { Keyword[if] operator[SEP] identifier[conf] operator[SEP] identifier[getInt] operator[SEP] identifier[...
public static Token findTokenByEndPosition(JCas jCas, int end) { for (Token token : JCasUtil.select(getInitialView(jCas), Token.class)) { if (token.getEnd() == end) { return token; } } return null; }
class class_name[name] begin[{] method[findTokenByEndPosition, return_type[type[Token]], modifier[public static], parameter[jCas, end]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getEnd, postfix_...
Keyword[public] Keyword[static] identifier[Token] identifier[findTokenByEndPosition] operator[SEP] identifier[JCas] identifier[jCas] , Keyword[int] identifier[end] operator[SEP] { Keyword[for] operator[SEP] identifier[Token] identifier[token] operator[:] identifier[JCasUtil] operator[SEP] identifier[select] op...
@Nonnull public static char [] replaceMultiple (@Nullable final char [] aInput, @Nonnull final char [] aSearchChars, @Nonnull final char [] [] aReplacementStrings) { ValueEnforcer.notNull (aSearchChars, "SearchChars"); ValueEn...
class class_name[name] begin[{] method[replaceMultiple, return_type[type[char]], modifier[public static], parameter[aInput, aSearchChars, aReplacementStrings]] begin[{] call[ValueEnforcer.notNull, parameter[member[.aSearchChars], literal["SearchChars"]]] call[ValueEnforcer.notNu...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] Keyword[char] operator[SEP] operator[SEP] identifier[replaceMultiple] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] Keyword[char] operator[SEP] operator[SEP] identifier[aInput] , annotation[@] identifier[Nonnull] Keyword[final] Keyword...
@Override public Score calculateScore() { variableListenerSupport.assertNotificationQueuesAreEmpty(); Score score = easyScoreCalculator.calculateScore(workingSolution); if (score == null) { throw new IllegalStateException("The easyScoreCalculator (" + easyScoreCalculator.getClass...
class class_name[name] begin[{] method[calculateScore, return_type[type[Score]], modifier[public], parameter[]] begin[{] call[variableListenerSupport.assertNotificationQueuesAreEmpty, parameter[]] local_variable[type[Score], score] if[binary_operation[member[.score], ==,...
annotation[@] identifier[Override] Keyword[public] identifier[Score] identifier[calculateScore] operator[SEP] operator[SEP] { identifier[variableListenerSupport] operator[SEP] identifier[assertNotificationQueuesAreEmpty] operator[SEP] operator[SEP] operator[SEP] identifier[Score] identifier[score] operator[=] id...
public org.grails.datastore.mapping.query.api.Criteria in(String propertyName, Object[] values) { if (!validateSimpleExpression()) { throwRuntimeException(new IllegalArgumentException("Call to [in] with propertyName [" + propertyName + "] and values [" + values + "] not allowed h...
class class_name[name] begin[{] method[in, return_type[type[org]], modifier[public], parameter[propertyName, values]] begin[{] if[call[.validateSimpleExpression, parameter[]]] begin[{] call[.throwRuntimeException, parameter[ClassCreator(arguments=[BinaryOperation(operand...
Keyword[public] identifier[org] operator[SEP] identifier[grails] operator[SEP] identifier[datastore] operator[SEP] identifier[mapping] operator[SEP] identifier[query] operator[SEP] identifier[api] operator[SEP] identifier[Criteria] identifier[in] operator[SEP] identifier[String] identifier[propertyName] , identifier[O...
public static vpnvserver_vpnsessionpolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_vpnsessionpolicy_binding obj = new vpnvserver_vpnsessionpolicy_binding(); obj.set_name(name); vpnvserver_vpnsessionpolicy_binding response[] = (vpnvserver_vpnsessionpolicy_binding[]) obj.get_re...
class class_name[name] begin[{] method[get, return_type[type[vpnvserver_vpnsessionpolicy_binding]], modifier[public static], parameter[service, name]] begin[{] local_variable[type[vpnvserver_vpnsessionpolicy_binding], obj] call[obj.set_name, parameter[member[.name]]] local_varia...
Keyword[public] Keyword[static] identifier[vpnvserver_vpnsessionpolicy_binding] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] { identifier[vpnvserver_vpnsessionpoli...
@Override public ListPrincipalsForPortfolioResult listPrincipalsForPortfolio(ListPrincipalsForPortfolioRequest request) { request = beforeClientExecution(request); return executeListPrincipalsForPortfolio(request); }
class class_name[name] begin[{] method[listPrincipalsForPortfolio, return_type[type[ListPrincipalsForPortfolioResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeListPrincipalsFo...
annotation[@] identifier[Override] Keyword[public] identifier[ListPrincipalsForPortfolioResult] identifier[listPrincipalsForPortfolio] operator[SEP] identifier[ListPrincipalsForPortfolioRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] id...
protected void executeSassScript(String sassScript) throws MojoExecutionException, MojoFailureException { final Log log = this.getLog(); System.setProperty("org.jruby.embed.localcontext.scope", "threadsafe"); log.debug("Execute SASS Ruby Script:\n" + sassScript); final ScriptEngineMana...
class class_name[name] begin[{] method[executeSassScript, return_type[void], modifier[protected], parameter[sassScript]] begin[{] local_variable[type[Log], log] call[System.setProperty, parameter[literal["org.jruby.embed.localcontext.scope"], literal["threadsafe"]]] call...
Keyword[protected] Keyword[void] identifier[executeSassScript] operator[SEP] identifier[String] identifier[sassScript] operator[SEP] Keyword[throws] identifier[MojoExecutionException] , identifier[MojoFailureException] { Keyword[final] identifier[Log] identifier[log] operator[=] Keyword[this] operator[SEP] iden...
public static void run(boolean parallel, int N, IndexRunnable ir, ExecutorService threadPool) { if(!parallel) { for(int i = 0; i < N; i++) ir.run(i); return; } final CountDownLatch latch = new CountDownLatch(N); IntStream.rang...
class class_name[name] begin[{] method[run, return_type[void], modifier[public static], parameter[parallel, N, ir, threadPool]] begin[{] if[member[.parallel]] begin[{] ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=i, postfix_oper...
Keyword[public] Keyword[static] Keyword[void] identifier[run] operator[SEP] Keyword[boolean] identifier[parallel] , Keyword[int] identifier[N] , identifier[IndexRunnable] identifier[ir] , identifier[ExecutorService] identifier[threadPool] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[parall...
public NetworkSecurityGroupInner createOrUpdate(String resourceGroupName, String networkSecurityGroupName, NetworkSecurityGroupInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, networkSecurityGroupName, parameters).toBlocking().last().body(); }
class class_name[name] begin[{] method[createOrUpdate, return_type[type[NetworkSecurityGroupInner]], modifier[public], parameter[resourceGroupName, networkSecurityGroupName, parameters]] begin[{] return[call[.createOrUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.networkS...
Keyword[public] identifier[NetworkSecurityGroupInner] identifier[createOrUpdate] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[networkSecurityGroupName] , identifier[NetworkSecurityGroupInner] identifier[parameters] operator[SEP] { Keyword[return] identifier[cre...
protected void update(CmsPublishJobInfoBean publishJob) { if (OpenCms.getMemoryMonitor().requiresPersistency()) { CmsDbContext dbc = m_publishEngine.getDbContext(null); try { m_publishEngine.getDriverManager().writePublishJob(dbc, publishJob); } catch (CmsExc...
class class_name[name] begin[{] method[update, return_type[void], modifier[protected], parameter[publishJob]] begin[{] if[call[OpenCms.getMemoryMonitor, parameter[]]] begin[{] local_variable[type[CmsDbContext], dbc] TryStatement(block=[StatementExpression(expression=Meth...
Keyword[protected] Keyword[void] identifier[update] operator[SEP] identifier[CmsPublishJobInfoBean] identifier[publishJob] operator[SEP] { Keyword[if] operator[SEP] identifier[OpenCms] operator[SEP] identifier[getMemoryMonitor] operator[SEP] operator[SEP] operator[SEP] identifier[requiresPersistency] operator[SE...
public void setHost(String p_host) throws MalformedURIException { if (p_host == null || p_host.trim().length() == 0) { m_host = p_host; m_userinfo = null; m_port = -1; } else if (!isWellFormedAddress(p_host)) { throw new MalformedURIException(Utils.messages.createMessage(M...
class class_name[name] begin[{] method[setHost, return_type[void], modifier[public], parameter[p_host]] begin[{] if[binary_operation[binary_operation[member[.p_host], ==, literal[null]], ||, binary_operation[call[p_host.trim, parameter[]], ==, literal[0]]]] begin[{] assi...
Keyword[public] Keyword[void] identifier[setHost] operator[SEP] identifier[String] identifier[p_host] operator[SEP] Keyword[throws] identifier[MalformedURIException] { Keyword[if] operator[SEP] identifier[p_host] operator[==] Other[null] operator[||] identifier[p_host] operator[SEP] identifier[trim] operator[SEP...
@Override public Response toResponse(JsonIOException exception) { Throwable throwable = exception; if (exception.getCause() instanceof JsonProcessingException) { throwable = exception.getCause(); } return mappers.get().findMapping(throwable).toResponse(throwable); }
class class_name[name] begin[{] method[toResponse, return_type[type[Response]], modifier[public], parameter[exception]] begin[{] local_variable[type[Throwable], throwable] if[binary_operation[call[exception.getCause, parameter[]], instanceof, type[JsonProcessingException]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[Response] identifier[toResponse] operator[SEP] identifier[JsonIOException] identifier[exception] operator[SEP] { identifier[Throwable] identifier[throwable] operator[=] identifier[exception] operator[SEP] Keyword[if] operator[SEP] identifier[exception...
public static String stripSessionId(final String url) { StringBuilder u = new StringBuilder(url); int sessionStart; while ((sessionStart = u.toString().indexOf(";jsessionid=")) != -1) { int sessionEnd = u.toString().indexOf(';', sessionStart + 1); if (sessionEnd == -1) { sessionEnd = u.toString().indexO...
class class_name[name] begin[{] method[stripSessionId, return_type[type[String]], modifier[public static], parameter[url]] begin[{] local_variable[type[StringBuilder], u] local_variable[type[int], sessionStart] while[binary_operation[assign[member[.sessionStart], call[u.toString...
Keyword[public] Keyword[static] identifier[String] identifier[stripSessionId] operator[SEP] Keyword[final] identifier[String] identifier[url] operator[SEP] { identifier[StringBuilder] identifier[u] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] identifier[url] operator[SEP] operator[SEP] Keywor...
public StrBuilder replaceAll(final char search, final char replace) { if (search != replace) { for (int i = 0; i < size; i++) { if (buffer[i] == search) { buffer[i] = replace; } } } return this; }
class class_name[name] begin[{] method[replaceAll, return_type[type[StrBuilder]], modifier[public], parameter[search, replace]] begin[{] if[binary_operation[member[.search], !=, member[.replace]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(conditio...
Keyword[public] identifier[StrBuilder] identifier[replaceAll] operator[SEP] Keyword[final] Keyword[char] identifier[search] , Keyword[final] Keyword[char] identifier[replace] operator[SEP] { Keyword[if] operator[SEP] identifier[search] operator[!=] identifier[replace] operator[SEP] { Keyword[for] ope...
public SampleCount getSampleCount(Timecode from) { final SampleCount me = this.getSampleCount(); final SampleCount them = from.getSampleCount(); return me.subtract(them); }
class class_name[name] begin[{] method[getSampleCount, return_type[type[SampleCount]], modifier[public], parameter[from]] begin[{] local_variable[type[SampleCount], me] local_variable[type[SampleCount], them] return[call[me.subtract, parameter[member[.them]]]] end[}] END[}]
Keyword[public] identifier[SampleCount] identifier[getSampleCount] operator[SEP] identifier[Timecode] identifier[from] operator[SEP] { Keyword[final] identifier[SampleCount] identifier[me] operator[=] Keyword[this] operator[SEP] identifier[getSampleCount] operator[SEP] operator[SEP] operator[SEP] Keyword[final] ...
public void setSchemaSet(ConnectionSchemaSet schemaSet) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setSchemaSet", schemaSet); getConversation().setSchemaSet(schemaSet); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, ...
class class_name[name] begin[{] method[setSchemaSet, return_type[void], modifier[public], parameter[schemaSet]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[THIS[],...
Keyword[public] Keyword[void] identifier[setSchemaSet] operator[SEP] identifier[ConnectionSchemaSet] identifier[schemaSet] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] ident...
public void setRequestCompletionFilter(ITraceFilterExt val) { RequestWriter requestWriter = (RequestWriter) m_connection.getTraceWriter(); requestWriter.getRequestSeparator().setRequestCompletionFilter(val); }
class class_name[name] begin[{] method[setRequestCompletionFilter, return_type[void], modifier[public], parameter[val]] begin[{] local_variable[type[RequestWriter], requestWriter] call[requestWriter.getRequestSeparator, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setRequestCompletionFilter] operator[SEP] identifier[ITraceFilterExt] identifier[val] operator[SEP] { identifier[RequestWriter] identifier[requestWriter] operator[=] operator[SEP] identifier[RequestWriter] operator[SEP] identifier[m_connection] operator[SEP] identifier[ge...
public static NonCachingImage getNonCachingImage(final String wicketId, final String contentType, final Byte[] data) { final byte[] byteArrayData = ArrayUtils.toPrimitive(data); return getNonCachingImage(wicketId, contentType, byteArrayData); }
class class_name[name] begin[{] method[getNonCachingImage, return_type[type[NonCachingImage]], modifier[public static], parameter[wicketId, contentType, data]] begin[{] local_variable[type[byte], byteArrayData] return[call[.getNonCachingImage, parameter[member[.wicketId], member[.contentType], ...
Keyword[public] Keyword[static] identifier[NonCachingImage] identifier[getNonCachingImage] operator[SEP] Keyword[final] identifier[String] identifier[wicketId] , Keyword[final] identifier[String] identifier[contentType] , Keyword[final] identifier[Byte] operator[SEP] operator[SEP] identifier[data] operator[SEP] { ...
@Subscribe @AllowConcurrentEvents public synchronized void handleOntologyDeleted(OntologyDeletedEvent event) { log.info("Processing Ontology Deleted Event - {}", event.getOntologyUri()); // Obtain all concepts in the KB Set<URI> conceptUris = this.manager.getKnowledgeBaseManager().list...
class class_name[name] begin[{] method[handleOntologyDeleted, return_type[void], modifier[synchronized public], parameter[event]] begin[{] call[log.info, parameter[literal["Processing Ontology Deleted Event - {}"], call[event.getOntologyUri, parameter[]]]] local_variable[type[Set], conc...
annotation[@] identifier[Subscribe] annotation[@] identifier[AllowConcurrentEvents] Keyword[public] Keyword[synchronized] Keyword[void] identifier[handleOntologyDeleted] operator[SEP] identifier[OntologyDeletedEvent] identifier[event] operator[SEP] { identifier[log] operator[SEP] identifier[info] operator[SEP] l...
public ApiResponse<ApiSuccessResponse> deleteUserWithHttpInfo(String dbid, Boolean keepPlaces) throws ApiException { com.squareup.okhttp.Call call = deleteUserValidateBeforeCall(dbid, keepPlaces, null, null); Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType(); return apiCl...
class class_name[name] begin[{] method[deleteUserWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[dbid, keepPlaces]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] return[call[apiClient.execute, parameter[member[.call], m...
Keyword[public] identifier[ApiResponse] operator[<] identifier[ApiSuccessResponse] operator[>] identifier[deleteUserWithHttpInfo] operator[SEP] identifier[String] identifier[dbid] , identifier[Boolean] identifier[keepPlaces] operator[SEP] Keyword[throws] identifier[ApiException] { identifier[com] operator[SEP] ...
public Observable<String> beginGetVpnProfilePackageUrlAsync(String resourceGroupName, String virtualNetworkGatewayName) { return beginGetVpnProfilePackageUrlWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName).map(new Func1<ServiceResponse<String>, String>() { @Override ...
class class_name[name] begin[{] method[beginGetVpnProfilePackageUrlAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, virtualNetworkGatewayName]] begin[{] return[call[.beginGetVpnProfilePackageUrlWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.v...
Keyword[public] identifier[Observable] operator[<] identifier[String] operator[>] identifier[beginGetVpnProfilePackageUrlAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[virtualNetworkGatewayName] operator[SEP] { Keyword[return] identifier[beginGetVpnProfileP...
public String value() { if (!element.is().present() || !element.is().input()) { return null; } WebElement webElement = element.getWebElement(); return webElement.getAttribute(VALUE); }
class class_name[name] begin[{] method[value, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[call[element.is, parameter[]], ||, call[element.is, parameter[]]]] begin[{] return[literal[null]] else begin[{] None end[}] lo...
Keyword[public] identifier[String] identifier[value] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[element] operator[SEP] identifier[is] operator[SEP] operator[SEP] operator[SEP] identifier[present] operator[SEP] operator[SEP] operator[||] operator[!] identifier[element] operator...
@Override public CommerceAddressRestriction findByC_C_C(long classNameId, long classPK, long commerceCountryId) throws NoSuchAddressRestrictionException { CommerceAddressRestriction commerceAddressRestriction = fetchByC_C_C(classNameId, classPK, commerceCountryId); if (commerceAddressRestriction == null) ...
class class_name[name] begin[{] method[findByC_C_C, return_type[type[CommerceAddressRestriction]], modifier[public], parameter[classNameId, classPK, commerceCountryId]] begin[{] local_variable[type[CommerceAddressRestriction], commerceAddressRestriction] if[binary_operation[member[.comm...
annotation[@] identifier[Override] Keyword[public] identifier[CommerceAddressRestriction] identifier[findByC_C_C] operator[SEP] Keyword[long] identifier[classNameId] , Keyword[long] identifier[classPK] , Keyword[long] identifier[commerceCountryId] operator[SEP] Keyword[throws] identifier[NoSuchAddressRestrictionExcep...
@TargetApi(Build.VERSION_CODES.O) public static void setDefaultChannelId(Context context, String channelId) { DefaultChannelId = channelId; if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.N_MR1) { // do nothing for Android versions before Ore return; } try { NotificationManager not...
class class_name[name] begin[{] method[setDefaultChannelId, return_type[void], modifier[public static], parameter[context, channelId]] begin[{] assign[member[.DefaultChannelId], member[.channelId]] if[binary_operation[member[Build.VERSION.SDK_INT], <=, member[Build.VERSION_CODES...
annotation[@] identifier[TargetApi] operator[SEP] identifier[Build] operator[SEP] identifier[VERSION_CODES] operator[SEP] identifier[O] operator[SEP] Keyword[public] Keyword[static] Keyword[void] identifier[setDefaultChannelId] operator[SEP] identifier[Context] identifier[context] , identifier[String] identifier[chann...
@Pure @Override public boolean contains(double x, double y, double z) { return containsSpherePoint(getX(), getY(), getZ(), getRadius(), x, y, z); }
class class_name[name] begin[{] method[contains, return_type[type[boolean]], modifier[public], parameter[x, y, z]] begin[{] return[call[.containsSpherePoint, parameter[call[.getX, parameter[]], call[.getY, parameter[]], call[.getZ, parameter[]], call[.getRadius, parameter[]], member[.x], member[.y], me...
annotation[@] identifier[Pure] annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[contains] operator[SEP] Keyword[double] identifier[x] , Keyword[double] identifier[y] , Keyword[double] identifier[z] operator[SEP] { Keyword[return] identifier[containsSpherePoint] operator[SEP] ident...
public Set visibleGrantees() { HashSet grantees = new HashSet(); GranteeManager gm = granteeManager; if (isAdmin()) { grantees.addAll(gm.getGrantees()); } else { grantees.add(this); Iterator it = getAllRoles().iterator(); w...
class class_name[name] begin[{] method[visibleGrantees, return_type[type[Set]], modifier[public], parameter[]] begin[{] local_variable[type[HashSet], grantees] local_variable[type[GranteeManager], gm] if[call[.isAdmin, parameter[]]] begin[{] call[grantees...
Keyword[public] identifier[Set] identifier[visibleGrantees] operator[SEP] operator[SEP] { identifier[HashSet] identifier[grantees] operator[=] Keyword[new] identifier[HashSet] operator[SEP] operator[SEP] operator[SEP] identifier[GranteeManager] identifier[gm] operator[=] identifier[granteeManager] operator[SEP] ...
void generateMbeanXml(Definition def, String outputDir) { String mbeanName = def.getDefaultValue().toLowerCase(Locale.US); if (def.getRaPackage() != null && !def.getRaPackage().equals("")) { if (def.getRaPackage().indexOf('.') >= 0) { mbeanName = def.getRaPackage().sub...
class class_name[name] begin[{] method[generateMbeanXml, return_type[void], modifier[default], parameter[def, outputDir]] begin[{] local_variable[type[String], mbeanName] if[binary_operation[binary_operation[call[def.getRaPackage, parameter[]], !=, literal[null]], &&, call[def.getRaPack...
Keyword[void] identifier[generateMbeanXml] operator[SEP] identifier[Definition] identifier[def] , identifier[String] identifier[outputDir] operator[SEP] { identifier[String] identifier[mbeanName] operator[=] identifier[def] operator[SEP] identifier[getDefaultValue] operator[SEP] operator[SEP] operator[SEP] iden...
public Authentication doAuthenticate(final DmfTenantSecurityToken securityToken) { resolveTenant(securityToken); PreAuthenticatedAuthenticationToken authentication = new PreAuthenticatedAuthenticationToken(null, null); for (final PreAuthenticationFilter filter : filterChain) { final ...
class class_name[name] begin[{] method[doAuthenticate, return_type[type[Authentication]], modifier[public], parameter[securityToken]] begin[{] call[.resolveTenant, parameter[member[.securityToken]]] local_variable[type[PreAuthenticatedAuthenticationToken], authentication] ForSta...
Keyword[public] identifier[Authentication] identifier[doAuthenticate] operator[SEP] Keyword[final] identifier[DmfTenantSecurityToken] identifier[securityToken] operator[SEP] { identifier[resolveTenant] operator[SEP] identifier[securityToken] operator[SEP] operator[SEP] identifier[PreAuthenticatedAuthenticationTo...
public static <T extends Throwable, L> Either<L, Unit> trying(CheckedRunnable<T> runnable, Function<? super T, ? extends L> leftFn) { return Try.trying(runnable).toEither(leftFn); }
class class_name[name] begin[{] method[trying, return_type[type[Either]], modifier[public static], parameter[runnable, leftFn]] begin[{] return[call[Try.trying, parameter[member[.runnable]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Throwable] , identifier[L] operator[>] identifier[Either] operator[<] identifier[L] , identifier[Unit] operator[>] identifier[trying] operator[SEP] identifier[CheckedRunnable] operator[<] identifier[T] operator[>] identifier[runnabl...
public static boolean isXMLNameStart(int codepoint) { if (codepoint >= Character.codePointAt("A", 0) && codepoint <= Character.codePointAt("Z", 0)) { return true; } else if (codepoint == Character.codePointAt("_", 0)) { return true; } else if (codepoint >= Character.codePointAt("a", 0) && codepoint...
class class_name[name] begin[{] method[isXMLNameStart, return_type[type[boolean]], modifier[public static], parameter[codepoint]] begin[{] if[binary_operation[binary_operation[member[.codepoint], >=, call[Character.codePointAt, parameter[literal["A"], literal[0]]]], &&, binary_operation[member[...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isXMLNameStart] operator[SEP] Keyword[int] identifier[codepoint] operator[SEP] { Keyword[if] operator[SEP] identifier[codepoint] operator[>=] identifier[Character] operator[SEP] identifier[codePointAt] operator[SEP] literal[String] , Other[0] operator[...
public void setColor(String newColor) { String oldColor = color; color = newColor; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ColorPackage.DOCUMENT_ROOT__COLOR, oldColor, color)); }
class class_name[name] begin[{] method[setColor, return_type[void], modifier[public], parameter[newColor]] begin[{] local_variable[type[String], oldColor] assign[member[.color], member[.newColor]] if[call[.eNotificationRequired, parameter[]]] begin[{] call[.e...
Keyword[public] Keyword[void] identifier[setColor] operator[SEP] identifier[String] identifier[newColor] operator[SEP] { identifier[String] identifier[oldColor] operator[=] identifier[color] operator[SEP] identifier[color] operator[=] identifier[newColor] operator[SEP] Keyword[if] operator[SEP] identifier[eNotif...
@Override public void setTransactionTimeout(int seconds) throws TransactionManagementException { logger.entering(CLASSNAME, "setTransactionTimeout", seconds); logger.fine("do nothing"); logger.exiting(CLASSNAME, "setTransactionTimeout"); }
class class_name[name] begin[{] method[setTransactionTimeout, return_type[void], modifier[public], parameter[seconds]] begin[{] call[logger.entering, parameter[member[.CLASSNAME], literal["setTransactionTimeout"], member[.seconds]]] call[logger.fine, parameter[literal["do nothin...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setTransactionTimeout] operator[SEP] Keyword[int] identifier[seconds] operator[SEP] Keyword[throws] identifier[TransactionManagementException] { identifier[logger] operator[SEP] identifier[entering] operator[SEP] identifier[CLASSNAME] , ...
public <S extends Model, R> AnimaQuery<T> set(TypeFunction<S, R> function, Object value) { return this.set(AnimaUtils.getLambdaColumnName(function), value); }
class class_name[name] begin[{] method[set, return_type[type[AnimaQuery]], modifier[public], parameter[function, value]] begin[{] return[THIS[call[None.set, parameter[call[AnimaUtils.getLambdaColumnName, parameter[member[.function]]], member[.value]]]]] end[}] END[}]
Keyword[public] operator[<] identifier[S] Keyword[extends] identifier[Model] , identifier[R] operator[>] identifier[AnimaQuery] operator[<] identifier[T] operator[>] identifier[set] operator[SEP] identifier[TypeFunction] operator[<] identifier[S] , identifier[R] operator[>] identifier[function] , identifier[Object] ...
public double[][] solve(double[][] B) { if (B.length != m) { throw new IllegalArgumentException("Matrix row dimensions must agree."); } if (!this.isNonsingular()) { throw new RuntimeException("Matrix is singular."); } // Copy right hand side with pivoting...
class class_name[name] begin[{] method[solve, return_type[type[double]], modifier[public], parameter[B]] begin[{] if[binary_operation[member[B.length], !=, member[.m]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qual...
Keyword[public] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[solve] operator[SEP] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[B] operator[SEP] { Keyword[if] operator[SEP] identifier[B] operator[SEP] identifier[length] operator[!=] ident...
public AbsoluteOrderingType<WebAppType<T>> getOrCreateAbsoluteOrdering() { List<Node> nodeList = childNode.get("absolute-ordering"); if (nodeList != null && nodeList.size() > 0) { return new AbsoluteOrderingTypeImpl<WebAppType<T>>(this, "absolute-ordering", childNode, nodeList.get(0)); ...
class class_name[name] begin[{] method[getOrCreateAbsoluteOrdering, return_type[type[AbsoluteOrderingType]], modifier[public], parameter[]] begin[{] local_variable[type[List], nodeList] if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operation[call...
Keyword[public] identifier[AbsoluteOrderingType] operator[<] identifier[WebAppType] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateAbsoluteOrdering] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList] operator[=] identifier[childNo...
public void marshall(ReportTaskRunnerHeartbeatRequest reportTaskRunnerHeartbeatRequest, ProtocolMarshaller protocolMarshaller) { if (reportTaskRunnerHeartbeatRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[reportTaskRunnerHeartbeatRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.reportTaskRunnerHeartbeatRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=Class...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ReportTaskRunnerHeartbeatRequest] identifier[reportTaskRunnerHeartbeatRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[reportTaskRunnerHeartbeatRequest] operat...
public static TcpClient<ByteBuf, ByteBuf> newClient(SocketAddress serverAddress, EventLoopGroup eventLoopGroup, Class<? extends Channel> channelClass) { return TcpClientImpl.create(serverAddress, eventLoopGroup, channelClass); }
class class_name[name] begin[{] method[newClient, return_type[type[TcpClient]], modifier[public static], parameter[serverAddress, eventLoopGroup, channelClass]] begin[{] return[call[TcpClientImpl.create, parameter[member[.serverAddress], member[.eventLoopGroup], member[.channelClass]]]] end[}] END[...
Keyword[public] Keyword[static] identifier[TcpClient] operator[<] identifier[ByteBuf] , identifier[ByteBuf] operator[>] identifier[newClient] operator[SEP] identifier[SocketAddress] identifier[serverAddress] , identifier[EventLoopGroup] identifier[eventLoopGroup] , identifier[Class] operator[<] operator[?] Keyword[e...
public static String stripHtmlOverhead(String strText) { strText = MenuParser.stripTopLevelTag(strText, "html"); strText = MenuParser.stripTopLevelTag(strText, "body"); return strText; }
class class_name[name] begin[{] method[stripHtmlOverhead, return_type[type[String]], modifier[public static], parameter[strText]] begin[{] assign[member[.strText], call[MenuParser.stripTopLevelTag, parameter[member[.strText], literal["html"]]]] assign[member[.strText], call[Menu...
Keyword[public] Keyword[static] identifier[String] identifier[stripHtmlOverhead] operator[SEP] identifier[String] identifier[strText] operator[SEP] { identifier[strText] operator[=] identifier[MenuParser] operator[SEP] identifier[stripTopLevelTag] operator[SEP] identifier[strText] , literal[String] operator[SEP...
public ServiceFuture<VirtualNetworkTapInner> updateTagsAsync(String resourceGroupName, String tapName, final ServiceCallback<VirtualNetworkTapInner> serviceCallback) { return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, tapName), serviceCallback); }
class class_name[name] begin[{] method[updateTagsAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, tapName, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.updateTagsWithServiceResponseAsync, parameter[member[.resourceGroupName], ...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[VirtualNetworkTapInner] operator[>] identifier[updateTagsAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[tapName] , Keyword[final] identifier[ServiceCallback] operator[<] identifier[VirtualNetworkTap...
public InvoiceData getInvoice(Date date, String pricingAccountAlias) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); return getInvoice(calendar, pricingAccountAlias); }
class class_name[name] begin[{] method[getInvoice, return_type[type[InvoiceData]], modifier[public], parameter[date, pricingAccountAlias]] begin[{] local_variable[type[Calendar], calendar] call[calendar.setTime, parameter[member[.date]]] return[call[.getInvoice, parameter[member...
Keyword[public] identifier[InvoiceData] identifier[getInvoice] operator[SEP] identifier[Date] identifier[date] , identifier[String] identifier[pricingAccountAlias] operator[SEP] { identifier[Calendar] identifier[calendar] operator[=] identifier[Calendar] operator[SEP] identifier[getInstance] operator[SEP] opera...
public static void setDebugConfigs(OneProperties debugConfigsObj, String debugConfigAbsoluteClassPath) { if (debugConfigsObj != null) { Configs.debugConfigs = debugConfigsObj; } if (debugConfigAbsoluteClassPath != null) { Configs.debugConfigAbsoluteClassPath = debugC...
class class_name[name] begin[{] method[setDebugConfigs, return_type[void], modifier[public static], parameter[debugConfigsObj, debugConfigAbsoluteClassPath]] begin[{] if[binary_operation[member[.debugConfigsObj], !=, literal[null]]] begin[{] assign[member[Configs.debugCo...
Keyword[public] Keyword[static] Keyword[void] identifier[setDebugConfigs] operator[SEP] identifier[OneProperties] identifier[debugConfigsObj] , identifier[String] identifier[debugConfigAbsoluteClassPath] operator[SEP] { Keyword[if] operator[SEP] identifier[debugConfigsObj] operator[!=] Other[null] operator[SEP]...
protected static float parseFloatParameter (String value, String invalidDataMessage) throws DataValidationException { try { return Float.parseFloat(value); } catch (NumberFormatException nfe) { throw new DataValidationException(invalidDataMessage); } }
class class_name[name] begin[{] method[parseFloatParameter, return_type[type[float]], modifier[static protected], parameter[value, invalidDataMessage]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=value, postfix_operators=[], prefix_operator...
Keyword[protected] Keyword[static] Keyword[float] identifier[parseFloatParameter] operator[SEP] identifier[String] identifier[value] , identifier[String] identifier[invalidDataMessage] operator[SEP] Keyword[throws] identifier[DataValidationException] { Keyword[try] { Keyword[return] identifier[Float]...
public WyalFile.Stmt.Block buildVerificationCondition(WyilFile.Decl declaration, GlobalEnvironment environment, VerificationCondition vc) { WyalFile.Stmt antecedent = flatten(vc.antecedent); Expr consequent = vc.consequent; HashSet<WyalFile.VariableDeclaration> freeVariables = new HashSet<>(); freeVariables(...
class class_name[name] begin[{] method[buildVerificationCondition, return_type[type[WyalFile]], modifier[public], parameter[declaration, environment, vc]] begin[{] local_variable[type[WyalFile], antecedent] local_variable[type[Expr], consequent] local_variable[type[HashSet], freeVariabl...
Keyword[public] identifier[WyalFile] operator[SEP] identifier[Stmt] operator[SEP] identifier[Block] identifier[buildVerificationCondition] operator[SEP] identifier[WyilFile] operator[SEP] identifier[Decl] identifier[declaration] , identifier[GlobalEnvironment] identifier[environment] , identifier[VerificationConditio...
public void setHTTPPort() throws InstallationFailedException { // Note this very significant assumption: this xpath will select exactly one connector Element httpConnector = (Element) getDocument() .selectSingleNode(HTTP_CONNECTOR_XPATH); if (httpConnecto...
class class_name[name] begin[{] method[setHTTPPort, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Element], httpConnector] if[binary_operation[member[.httpConnector], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argumen...
Keyword[public] Keyword[void] identifier[setHTTPPort] operator[SEP] operator[SEP] Keyword[throws] identifier[InstallationFailedException] { identifier[Element] identifier[httpConnector] operator[=] operator[SEP] identifier[Element] operator[SEP] identifier[getDocument] operator[SEP] operator[SEP] operator[SEP] i...
private static Field getLabelStatusField() { if (labelStatusField == null) { labelStatusField = getLabelField("a"); if (labelStatusField == null) { labelStatusField = getLabelField("status"); } } return labelStatusField; }
class class_name[name] begin[{] method[getLabelStatusField, return_type[type[Field]], modifier[private static], parameter[]] begin[{] if[binary_operation[member[.labelStatusField], ==, literal[null]]] begin[{] assign[member[.labelStatusField], call[.getLabelField, parame...
Keyword[private] Keyword[static] identifier[Field] identifier[getLabelStatusField] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[labelStatusField] operator[==] Other[null] operator[SEP] { identifier[labelStatusField] operator[=] identifier[getLabelField] operator[SEP] literal[Stri...
@Override public synchronized void shutdown() throws JournalException { try { if (open) { reader.close(); open = false; } } catch (XMLStreamException e) { throw new JournalException(e); } }
class class_name[name] begin[{] method[shutdown, return_type[void], modifier[synchronized public], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=MemberReference(member=open, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=None, label=None, then_sta...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[void] identifier[shutdown] operator[SEP] operator[SEP] Keyword[throws] identifier[JournalException] { Keyword[try] { Keyword[if] operator[SEP] identifier[open] operator[SEP] { identifier[reader] operator[SE...
public static synchronized CmsWorkplaceSettings initWorkplaceSettings( CmsObject cms, CmsWorkplaceSettings settings, boolean update) { // init the workplace user settings settings = initUserSettings(cms, settings, update); // save current project settings.setPro...
class class_name[name] begin[{] method[initWorkplaceSettings, return_type[type[CmsWorkplaceSettings]], modifier[synchronized public static], parameter[cms, settings, update]] begin[{] assign[member[.settings], call[.initUserSettings, parameter[member[.cms], member[.settings], member[.update]]]]...
Keyword[public] Keyword[static] Keyword[synchronized] identifier[CmsWorkplaceSettings] identifier[initWorkplaceSettings] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[CmsWorkplaceSettings] identifier[settings] , Keyword[boolean] identifier[update] operator[SEP] { identifier[settings] operato...
public static void copy(String str, char[] buffer, int offset) { str.getChars(0, str.length(), buffer, offset); }
class class_name[name] begin[{] method[copy, return_type[void], modifier[public static], parameter[str, buffer, offset]] begin[{] call[str.getChars, parameter[literal[0], call[str.length, parameter[]], member[.buffer], member[.offset]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[copy] operator[SEP] identifier[String] identifier[str] , Keyword[char] operator[SEP] operator[SEP] identifier[buffer] , Keyword[int] identifier[offset] operator[SEP] { identifier[str] operator[SEP] identifier[getChars] operator[SEP] Other[0] , identifie...
public void registerBlueprint(String className) throws RegisterBlueprintException { try { registerBlueprint(Class.forName(className)); } catch (ClassNotFoundException e) { throw new RegisterBlueprintException(e); } }
class class_name[name] begin[{] method[registerBlueprint, return_type[void], modifier[public], parameter[className]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=className, postfix_operators=[], prefix_operato...
Keyword[public] Keyword[void] identifier[registerBlueprint] operator[SEP] identifier[String] identifier[className] operator[SEP] Keyword[throws] identifier[RegisterBlueprintException] { Keyword[try] { identifier[registerBlueprint] operator[SEP] identifier[Class] operator[SEP] identifier[forName] opera...
public DescribeServicesResult withServices(Service... services) { if (this.services == null) { setServices(new java.util.ArrayList<Service>(services.length)); } for (Service ele : services) { this.services.add(ele); } return this; }
class class_name[name] begin[{] method[withServices, return_type[type[DescribeServicesResult]], modifier[public], parameter[services]] begin[{] if[binary_operation[THIS[member[None.services]], ==, literal[null]]] begin[{] call[.setServices, parameter[ClassCreator(argumen...
Keyword[public] identifier[DescribeServicesResult] identifier[withServices] operator[SEP] identifier[Service] operator[...] identifier[services] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[services] operator[==] Other[null] operator[SEP] { identifier[setServices] o...
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { try { if (com.google.api.ads.adwords.axis.v201809.cm.AdCustomizerFeedServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) { com.google.api.ads.adwords.axis.v201809.cm....
class class_name[name] begin[{] method[getPort, return_type[type[java]], modifier[public], parameter[serviceEndpointInterface]] begin[{] TryStatement(block=[IfStatement(condition=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=com.google.api.ads.adwords.axis.v201809.cm, selectors=[M...
Keyword[public] identifier[java] operator[SEP] identifier[rmi] operator[SEP] identifier[Remote] identifier[getPort] operator[SEP] identifier[Class] identifier[serviceEndpointInterface] operator[SEP] Keyword[throws] identifier[javax] operator[SEP] identifier[xml] operator[SEP] identifier[rpc] operator[SEP] identifier[Se...
public int removeShapesNotWithinMap(GoogleMap map) { int count = 0; BoundingBox boundingBox = MapUtils.getBoundingBox(map); for (String database : databases.keySet()) { count += removeShapesNotWithinMap(boundingBox, database); } return count; }
class class_name[name] begin[{] method[removeShapesNotWithinMap, return_type[type[int]], modifier[public], parameter[map]] begin[{] local_variable[type[int], count] local_variable[type[BoundingBox], boundingBox] ForStatement(body=BlockStatement(label=None, statements=[StatementExpressio...
Keyword[public] Keyword[int] identifier[removeShapesNotWithinMap] operator[SEP] identifier[GoogleMap] identifier[map] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] identifier[BoundingBox] identifier[boundingBox] operator[=] identifier[MapUtils] operator[SEP] identifier[getBoun...
public <RowT> UnaryCallable<Query, RowT> createReadRowCallable(RowAdapter<RowT> rowAdapter) { return createReadRowsCallable( ServerStreamingCallSettings.<Query, Row>newBuilder() .setRetryableCodes(settings.readRowSettings().getRetryableCodes()) .setRetrySettings(settings....
class class_name[name] begin[{] method[createReadRowCallable, return_type[type[UnaryCallable]], modifier[public], parameter[rowAdapter]] begin[{] return[call[.createReadRowsCallable, parameter[call[.ServerStreamingCallSettings, parameter[]], member[.rowAdapter]]]] end[}] END[}]
Keyword[public] operator[<] identifier[RowT] operator[>] identifier[UnaryCallable] operator[<] identifier[Query] , identifier[RowT] operator[>] identifier[createReadRowCallable] operator[SEP] identifier[RowAdapter] operator[<] identifier[RowT] operator[>] identifier[rowAdapter] operator[SEP] { Keyword[return] i...