code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private boolean checkVarContextProvider(final TypeMirror typeMirror) { final TypeElement element = (TypeElement) types.asElement(typeMirror); if (varContextProviders.contains(typeMirror)) { // this VarContextProvider is already processed return true; } if (!element.getKind()...
class class_name[name] begin[{] method[checkVarContextProvider, return_type[type[boolean]], modifier[private], parameter[typeMirror]] begin[{] local_variable[type[TypeElement], element] if[call[varContextProviders.contains, parameter[member[.typeMirror]]]] begin[{] return[li...
Keyword[private] Keyword[boolean] identifier[checkVarContextProvider] operator[SEP] Keyword[final] identifier[TypeMirror] identifier[typeMirror] operator[SEP] { Keyword[final] identifier[TypeElement] identifier[element] operator[=] operator[SEP] identifier[TypeElement] operator[SEP] identifier[types] operator[SE...
public GroupReduceOperator<T, T> first(int n) { if (n < 1) { throw new InvalidProgramException("Parameter n of first(n) must be at least 1."); } return reduceGroup(new FirstReducer<T>(n)); }
class class_name[name] begin[{] method[first, return_type[type[GroupReduceOperator]], modifier[public], parameter[n]] begin[{] if[binary_operation[member[.n], <, literal[1]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[]...
Keyword[public] identifier[GroupReduceOperator] operator[<] identifier[T] , identifier[T] operator[>] identifier[first] operator[SEP] Keyword[int] identifier[n] operator[SEP] { Keyword[if] operator[SEP] identifier[n] operator[<] Other[1] operator[SEP] { Keyword[throw] Keyword[new] identifier[InvalidP...
@Override public <T> Flowable<Tx<T>> get(@Nonnull ResultSetMapper<? extends T> mapper) { Preconditions.checkNotNull(mapper, "mapper cannot be null"); return Flowable.defer(() -> { AtomicReference<Connection> connection = new AtomicReference<Connection>(); Flowable<T> o = Upda...
class class_name[name] begin[{] method[get, return_type[type[Flowable]], modifier[public], parameter[mapper]] begin[{] call[Preconditions.checkNotNull, parameter[member[.mapper], literal["mapper cannot be null"]]] return[call[Flowable.defer, parameter[LambdaExpression(body=[LocalVariabl...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] operator[>] identifier[Flowable] operator[<] identifier[Tx] operator[<] identifier[T] operator[>] operator[>] identifier[get] operator[SEP] annotation[@] identifier[Nonnull] identifier[ResultSetMapper] operator[<] operator[?] Keyword[extends] ...
@Override public void start(Xid xid, int flags) throws XAException { try { if (xid == null) { throw new XAException(XAException.XAER_INVAL); } // if resuming or joining an existing transaction if (flags == TMRESUME) { this.xaC...
class class_name[name] begin[{] method[start, return_type[void], modifier[public], parameter[xid, flags]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=xid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfi...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[start] operator[SEP] identifier[Xid] identifier[xid] , Keyword[int] identifier[flags] operator[SEP] Keyword[throws] identifier[XAException] { Keyword[try] { Keyword[if] operator[SEP] identifier[xid] operator[==] Other[null] o...
public static syslog_server[] modify(nitro_service client, syslog_server[] resources) throws Exception { if(resources == null) throw new Exception("Null resource array"); for(int i = 0; i < resources.length; i++) { resources[i].validate("modify"); } if(resources.length == 1) return ...
class class_name[name] begin[{] method[modify, return_type[type[syslog_server]], modifier[public static], parameter[client, resources]] begin[{] if[binary_operation[member[.resources], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], p...
Keyword[public] Keyword[static] identifier[syslog_server] operator[SEP] operator[SEP] identifier[modify] operator[SEP] identifier[nitro_service] identifier[client] , identifier[syslog_server] operator[SEP] operator[SEP] identifier[resources] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] oper...
public static Object getCellValue(Cell cell, CellType cellType, final boolean isTrimCellValue) { return getCellValue(cell, cellType, isTrimCellValue ? new TrimEditor() : null); }
class class_name[name] begin[{] method[getCellValue, return_type[type[Object]], modifier[public static], parameter[cell, cellType, isTrimCellValue]] begin[{] return[call[.getCellValue, parameter[member[.cell], member[.cellType], TernaryExpression(condition=MemberReference(member=isTrimCellValue, postfi...
Keyword[public] Keyword[static] identifier[Object] identifier[getCellValue] operator[SEP] identifier[Cell] identifier[cell] , identifier[CellType] identifier[cellType] , Keyword[final] Keyword[boolean] identifier[isTrimCellValue] operator[SEP] { Keyword[return] identifier[getCellValue] operator[SEP] identifier...
public long getLastLoggedZxid() { File[] files = getLogFiles(logDir.listFiles(), 0); long maxLog=files.length>0? Util.getZxidFromName(files[files.length-1].getName(),"log"):-1; // if a log file is more recent we must scan it to find // the highest zxid long zxid ...
class class_name[name] begin[{] method[getLastLoggedZxid, return_type[type[long]], modifier[public], parameter[]] begin[{] local_variable[type[File], files] local_variable[type[long], maxLog] local_variable[type[long], zxid] TryStatement(block=[LocalVariableDeclaration(annotatio...
Keyword[public] Keyword[long] identifier[getLastLoggedZxid] operator[SEP] operator[SEP] { identifier[File] operator[SEP] operator[SEP] identifier[files] operator[=] identifier[getLogFiles] operator[SEP] identifier[logDir] operator[SEP] identifier[listFiles] operator[SEP] operator[SEP] , Other[0] operator[SEP] o...
public LeapSecondEvent getNextEvent(long utc) { ExtendedLSE[] events = this.getEventsInDescendingOrder(); LeapSecondEvent result = null; for (int i = 0; i < events.length; i++) { ExtendedLSE lse = events[i]; if (utc >= lse.utc()) { break; } ...
class class_name[name] begin[{] method[getNextEvent, return_type[type[LeapSecondEvent]], modifier[public], parameter[utc]] begin[{] local_variable[type[ExtendedLSE], events] local_variable[type[LeapSecondEvent], result] ForStatement(body=BlockStatement(label=None, statements=[LocalVaria...
Keyword[public] identifier[LeapSecondEvent] identifier[getNextEvent] operator[SEP] Keyword[long] identifier[utc] operator[SEP] { identifier[ExtendedLSE] operator[SEP] operator[SEP] identifier[events] operator[=] Keyword[this] operator[SEP] identifier[getEventsInDescendingOrder] operator[SEP] operator[SEP] operat...
public ConstructorDoc[] constructors(boolean filter) { Names names = tsym.name.table.names; List<ConstructorDocImpl> constructors = List.nil(); for (Scope.Entry e = tsym.members().elems; e != null; e = e.sibling) { if (e.sym != null && e.sym.kind == Kinds.MTH && e.sym...
class class_name[name] begin[{] method[constructors, return_type[type[ConstructorDoc]], modifier[public], parameter[filter]] begin[{] local_variable[type[Names], names] local_variable[type[List], constructors] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(conditio...
Keyword[public] identifier[ConstructorDoc] operator[SEP] operator[SEP] identifier[constructors] operator[SEP] Keyword[boolean] identifier[filter] operator[SEP] { identifier[Names] identifier[names] operator[=] identifier[tsym] operator[SEP] identifier[name] operator[SEP] identifier[table] operator[SEP] identifie...
public boolean isStale( File mergeFile ) { // // We can write to the file if it doesn't exist yet. // if ( ! _strutsConfigFile.exists() ) { return true; } long lastWrite = _strutsConfigFile.lastModified(); if ( mergeFile !...
class class_name[name] begin[{] method[isStale, return_type[type[boolean]], modifier[public], parameter[mergeFile]] begin[{] if[call[_strutsConfigFile.exists, parameter[]]] begin[{] return[literal[true]] else begin[{] None end[}] local_variable[type[long], la...
Keyword[public] Keyword[boolean] identifier[isStale] operator[SEP] identifier[File] identifier[mergeFile] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[_strutsConfigFile] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] op...
public AlgorithmStatusDetails withValidationStatuses(AlgorithmStatusItem... validationStatuses) { if (this.validationStatuses == null) { setValidationStatuses(new java.util.ArrayList<AlgorithmStatusItem>(validationStatuses.length)); } for (AlgorithmStatusItem ele : validationStatuses...
class class_name[name] begin[{] method[withValidationStatuses, return_type[type[AlgorithmStatusDetails]], modifier[public], parameter[validationStatuses]] begin[{] if[binary_operation[THIS[member[None.validationStatuses]], ==, literal[null]]] begin[{] call[.setValidation...
Keyword[public] identifier[AlgorithmStatusDetails] identifier[withValidationStatuses] operator[SEP] identifier[AlgorithmStatusItem] operator[...] identifier[validationStatuses] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[validationStatuses] operator[==] Other[null] operator[S...
public void setTitle(String title) { put(PdfName.TITLE, new PdfString(title, PdfObject.TEXT_UNICODE)); }
class class_name[name] begin[{] method[setTitle, return_type[void], modifier[public], parameter[title]] begin[{] call[.put, parameter[member[PdfName.TITLE], ClassCreator(arguments=[MemberReference(member=title, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReferenc...
Keyword[public] Keyword[void] identifier[setTitle] operator[SEP] identifier[String] identifier[title] operator[SEP] { identifier[put] operator[SEP] identifier[PdfName] operator[SEP] identifier[TITLE] , Keyword[new] identifier[PdfString] operator[SEP] identifier[title] , identifier[PdfObject] operator[SEP] iden...
private boolean visitColumnsAndColumnFacets(VisitContext context, VisitCallback callback, boolean visitRows) { if (visitRows) { setRowIndex(-1); } if (getChildCount() > 0) { fo...
class class_name[name] begin[{] method[visitColumnsAndColumnFacets, return_type[type[boolean]], modifier[private], parameter[context, callback, visitRows]] begin[{] if[member[.visitRows]] begin[{] call[.setRowIndex, parameter[literal[1]]] else begin[{] None ...
Keyword[private] Keyword[boolean] identifier[visitColumnsAndColumnFacets] operator[SEP] identifier[VisitContext] identifier[context] , identifier[VisitCallback] identifier[callback] , Keyword[boolean] identifier[visitRows] operator[SEP] { Keyword[if] operator[SEP] identifier[visitRows] operator[SEP] { ...
public JTSGeometryExpression<Geometry> envelope() { if (envelope == null) { envelope = JTSGeometryExpressions.geometryOperation(SpatialOps.ENVELOPE, mixin); } return envelope; }
class class_name[name] begin[{] method[envelope, return_type[type[JTSGeometryExpression]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.envelope], ==, literal[null]]] begin[{] assign[member[.envelope], call[JTSGeometryExpressions.geometryOperation,...
Keyword[public] identifier[JTSGeometryExpression] operator[<] identifier[Geometry] operator[>] identifier[envelope] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[envelope] operator[==] Other[null] operator[SEP] { identifier[envelope] operator[=] identifier[JTSGeometryExpressions] ...
public static Method getPropertyGetterMethod(Class clazz, String property) { String methodName = "get" + property.substring(0, 1).toUpperCase() + property.substring(1); Method method; try { method = clazz.getMethod(methodName); } catch (NoSuchMethodException e) { ...
class class_name[name] begin[{] method[getPropertyGetterMethod, return_type[type[Method]], modifier[public static], parameter[clazz, property]] begin[{] local_variable[type[String], methodName] local_variable[type[Method], method] TryStatement(block=[StatementExpression(expression=Assig...
Keyword[public] Keyword[static] identifier[Method] identifier[getPropertyGetterMethod] operator[SEP] identifier[Class] identifier[clazz] , identifier[String] identifier[property] operator[SEP] { identifier[String] identifier[methodName] operator[=] literal[String] operator[+] identifier[property] operator[SEP] ...
public ServiceFuture<List<StorageAccountInner>> listAsync(final ServiceCallback<List<StorageAccountInner>> serviceCallback) { return ServiceFuture.fromResponse(listWithServiceResponseAsync(), serviceCallback); }
class class_name[name] begin[{] method[listAsync, return_type[type[ServiceFuture]], modifier[public], parameter[serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.listWithServiceResponseAsync, parameter[]], member[.serviceCallback]]]] end[}] END[}]
Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[StorageAccountInner] operator[>] operator[>] identifier[listAsync] operator[SEP] Keyword[final] identifier[ServiceCallback] operator[<] identifier[List] operator[<] identifier[StorageAccountInner] operator[>] operator[>] ident...
public TemplateInstanceExecution templateInstanceExecution(String sourceName, ExpressionEngine expressionEngine) { // Transforms each parameter in a name/value pair, using only the source name as input Map<String, String> sourceNameInput = Collections.singletonMap("sourceName", sourceName); Map<...
class class_name[name] begin[{] method[templateInstanceExecution, return_type[type[TemplateInstanceExecution]], modifier[public], parameter[sourceName, expressionEngine]] begin[{] local_variable[type[Map], sourceNameInput] local_variable[type[Map], parameterMap] local_variable[type[Map]...
Keyword[public] identifier[TemplateInstanceExecution] identifier[templateInstanceExecution] operator[SEP] identifier[String] identifier[sourceName] , identifier[ExpressionEngine] identifier[expressionEngine] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identif...
private void checkProperties(NodePropertiesInfo currentNodePropertiesInfo) throws RepositoryException { if (currentNodePropertiesInfo.getNode().getQPath().isDescendantOf(Constants.JCR_VERSION_STORAGE_PATH) && currentNodePropertiesInfo.getNode().getPrimaryTypeName().equals(Constants.NT_FROZENNODE)) ...
class class_name[name] begin[{] method[checkProperties, return_type[void], modifier[private], parameter[currentNodePropertiesInfo]] begin[{] if[binary_operation[call[currentNodePropertiesInfo.getNode, parameter[]], &&, call[currentNodePropertiesInfo.getNode, parameter[]]]] begin[{] ...
Keyword[private] Keyword[void] identifier[checkProperties] operator[SEP] identifier[NodePropertiesInfo] identifier[currentNodePropertiesInfo] operator[SEP] Keyword[throws] identifier[RepositoryException] { Keyword[if] operator[SEP] identifier[currentNodePropertiesInfo] operator[SEP] identifier[getNode] operator[...
void putInt(ByteBuffer buf, int adr, int x) { buf.elems[adr ] = (byte)((x >> 24) & 0xFF); buf.elems[adr+1] = (byte)((x >> 16) & 0xFF); buf.elems[adr+2] = (byte)((x >> 8) & 0xFF); buf.elems[adr+3] = (byte)((x ) & 0xFF); }
class class_name[name] begin[{] method[putInt, return_type[void], modifier[default], parameter[buf, adr, x]] begin[{] assign[member[buf.elems], Cast(expression=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, sele...
Keyword[void] identifier[putInt] operator[SEP] identifier[ByteBuffer] identifier[buf] , Keyword[int] identifier[adr] , Keyword[int] identifier[x] operator[SEP] { identifier[buf] operator[SEP] identifier[elems] operator[SEP] identifier[adr] operator[SEP] operator[=] operator[SEP] Keyword[byte] operator[SEP] ope...
public java.util.List<ImportInstanceVolumeDetailItem> getVolumes() { if (volumes == null) { volumes = new com.amazonaws.internal.SdkInternalList<ImportInstanceVolumeDetailItem>(); } return volumes; }
class class_name[name] begin[{] method[getVolumes, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.volumes], ==, literal[null]]] begin[{] assign[member[.volumes], ClassCreator(arguments=[], body=None, constructor_type_argument...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[ImportInstanceVolumeDetailItem] operator[>] identifier[getVolumes] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[volumes] operator[==] Other[null] operator[SEP] { ...
public synchronized void setupCustomCommandSerializerAndDeserializer(CommandSerializer commandSerializer, CommandDeserializer commandDeserializer) { checkState(!isInitialized()); this.commandSerializer = commandSerializer; this.commandDeserializer = commandDeserializer; }
class class_name[name] begin[{] method[setupCustomCommandSerializerAndDeserializer, return_type[void], modifier[synchronized public], parameter[commandSerializer, commandDeserializer]] begin[{] call[.checkState, parameter[call[.isInitialized, parameter[]]]] assign[THIS[member[No...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[setupCustomCommandSerializerAndDeserializer] operator[SEP] identifier[CommandSerializer] identifier[commandSerializer] , identifier[CommandDeserializer] identifier[commandDeserializer] operator[SEP] { identifier[checkState] operator[SEP] operator[!]...
protected Map<String, Object> parseResponseObject(Response response) throws IOException { return parseResponse(response).parseObject(); }
class class_name[name] begin[{] method[parseResponseObject, return_type[type[Map]], modifier[protected], parameter[response]] begin[{] return[call[.parseResponse, parameter[member[.response]]]] end[}] END[}]
Keyword[protected] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[parseResponseObject] operator[SEP] identifier[Response] identifier[response] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] identifier[parseResponse] operator[SEP] identifier[re...
@Override @SuppressWarnings("unchecked") public void initialize() { // grab a handle to the hash table from the iteration broker if (taskContext instanceof AbstractIterativePactTask) { AbstractIterativePactTask<?, ?> iterativeTaskContext = (AbstractIterativePactTask<?, ?>) taskContext; String identifier ...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.taskContext], instanceof, type[AbstractIterativePactTask]]] begin[{] local_variable[type[AbstractIterativePactTask], iterativeTaskContext] ...
annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[initialize] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[taskContext] Keyword[instanceof] identifier[AbstractIterativePactTask] ...
public static Number toNumber(String str, Number defaultValue) { try { // float if (str.indexOf('.') != -1) { return new BigDecimal(str); } // integer BigInteger bi = new BigInteger(str); int l = bi.bitLength(); if (l < 32) return new Integer(bi.intValue()); if (l < 64) return...
class class_name[name] begin[{] method[toNumber, return_type[type[Number]], modifier[public static], parameter[str, defaultValue]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, s...
Keyword[public] Keyword[static] identifier[Number] identifier[toNumber] operator[SEP] identifier[String] identifier[str] , identifier[Number] identifier[defaultValue] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[str] operator[SEP] identifier[indexOf] operator[SEP] literal[Strin...
public static <N extends Number> LongStream buildLongStream(Collection<N> numberCollection) { return numberCollection.stream().mapToLong(Number::longValue); }
class class_name[name] begin[{] method[buildLongStream, return_type[type[LongStream]], modifier[public static], parameter[numberCollection]] begin[{] return[call[numberCollection.stream, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[N] Keyword[extends] identifier[Number] operator[>] identifier[LongStream] identifier[buildLongStream] operator[SEP] identifier[Collection] operator[<] identifier[N] operator[>] identifier[numberCollection] operator[SEP] { Keyword[return] identifier[numberCol...
public static MessageSendResult messageMassSendall(String access_token, MassMessage massMessage) { String str = JsonUtil.toJSONString(massMessage); return messageMassSendall(access_token, str); }
class class_name[name] begin[{] method[messageMassSendall, return_type[type[MessageSendResult]], modifier[public static], parameter[access_token, massMessage]] begin[{] local_variable[type[String], str] return[call[.messageMassSendall, parameter[member[.access_token], member[.str]]]] end[}]...
Keyword[public] Keyword[static] identifier[MessageSendResult] identifier[messageMassSendall] operator[SEP] identifier[String] identifier[access_token] , identifier[MassMessage] identifier[massMessage] operator[SEP] { identifier[String] identifier[str] operator[=] identifier[JsonUtil] operator[SEP] identifier[to...
protected String determineSegmentValue(Properties params) { String segmentValue = params.getProperty( SEGMENT_VALUE_PARAM ); if ( StringHelper.isEmpty( segmentValue ) ) { segmentValue = determineDefaultSegmentValue( params ); } return segmentValue; }
class class_name[name] begin[{] method[determineSegmentValue, return_type[type[String]], modifier[protected], parameter[params]] begin[{] local_variable[type[String], segmentValue] if[call[StringHelper.isEmpty, parameter[member[.segmentValue]]]] begin[{] assign[m...
Keyword[protected] identifier[String] identifier[determineSegmentValue] operator[SEP] identifier[Properties] identifier[params] operator[SEP] { identifier[String] identifier[segmentValue] operator[=] identifier[params] operator[SEP] identifier[getProperty] operator[SEP] identifier[SEGMENT_VALUE_PARAM] operator[S...
private void updateShapeOffset() { int offsetX = scroller.getOffsetX(); int offsetY = scroller.getOffsetY(); shape.setOffset(offsetX, offsetY); }
class class_name[name] begin[{] method[updateShapeOffset, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[int], offsetX] local_variable[type[int], offsetY] call[shape.setOffset, parameter[member[.offsetX], member[.offsetY]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[updateShapeOffset] operator[SEP] operator[SEP] { Keyword[int] identifier[offsetX] operator[=] identifier[scroller] operator[SEP] identifier[getOffsetX] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[offsetY] operator[=] identifier[scroller] operator[SE...
public static Date addHours(Date d, int hours) { Calendar cal = Calendar.getInstance(); cal.setTime(d); cal.add(Calendar.HOUR_OF_DAY, hours); return cal.getTime(); }
class class_name[name] begin[{] method[addHours, return_type[type[Date]], modifier[public static], parameter[d, hours]] begin[{] local_variable[type[Calendar], cal] call[cal.setTime, parameter[member[.d]]] call[cal.add, parameter[member[Calendar.HOUR_OF_DAY], member[.hou...
Keyword[public] Keyword[static] identifier[Date] identifier[addHours] operator[SEP] identifier[Date] identifier[d] , Keyword[int] identifier[hours] operator[SEP] { identifier[Calendar] identifier[cal] operator[=] identifier[Calendar] operator[SEP] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP...
public void addReaction(Emoji emoji, boolean you) { Optional<Reaction> reaction = reactions.stream().filter(r -> emoji.equalsEmoji(r.getEmoji())).findAny(); reaction.ifPresent(r -> ((ReactionImpl) r).incrementCount(you)); if (!reaction.isPresent()) { reactions.add(new ReactionImpl(th...
class class_name[name] begin[{] method[addReaction, return_type[void], modifier[public], parameter[emoji, you]] begin[{] local_variable[type[Optional], reaction] call[reaction.ifPresent, parameter[LambdaExpression(body=Cast(expression=MemberReference(member=r, postfix_operators=[], pref...
Keyword[public] Keyword[void] identifier[addReaction] operator[SEP] identifier[Emoji] identifier[emoji] , Keyword[boolean] identifier[you] operator[SEP] { identifier[Optional] operator[<] identifier[Reaction] operator[>] identifier[reaction] operator[=] identifier[reactions] operator[SEP] identifier[stream] ope...
public DMatrixRMaj getQ(DMatrixRMaj Q ) { Q = UtilDecompositons_DDRM.checkIdentity(Q,N,N); for( int j = N-2; j >= 0; j-- ) { u[j+1] = 1; for( int i = j+2; i < N; i++ ) { u[i] = QH.get(i,j); } QrHelperFunctions_DDRM.rank1UpdateMultR(Q, u, g...
class class_name[name] begin[{] method[getQ, return_type[type[DMatrixRMaj]], modifier[public], parameter[Q]] begin[{] assign[member[.Q], call[UtilDecompositons_DDRM.checkIdentity, parameter[member[.Q], member[.N], member[.N]]]] ForStatement(body=BlockStatement(label=None, statements=[St...
Keyword[public] identifier[DMatrixRMaj] identifier[getQ] operator[SEP] identifier[DMatrixRMaj] identifier[Q] operator[SEP] { identifier[Q] operator[=] identifier[UtilDecompositons_DDRM] operator[SEP] identifier[checkIdentity] operator[SEP] identifier[Q] , identifier[N] , identifier[N] operator[SEP] operator[SE...
public FileEventOptions kind(final WatchEvent.Kind<Path> kind) { requireNonNull(kind, "WatchEvent.Kind required."); kinds.add(kind); return this; }
class class_name[name] begin[{] method[kind, return_type[type[FileEventOptions]], modifier[public], parameter[kind]] begin[{] call[.requireNonNull, parameter[member[.kind], literal["WatchEvent.Kind required."]]] call[kinds.add, parameter[member[.kind]]] return[THIS[]] ...
Keyword[public] identifier[FileEventOptions] identifier[kind] operator[SEP] Keyword[final] identifier[WatchEvent] operator[SEP] identifier[Kind] operator[<] identifier[Path] operator[>] identifier[kind] operator[SEP] { identifier[requireNonNull] operator[SEP] identifier[kind] , literal[String] operator[SEP] ope...
static public void configHttpFileSystemProxy(FileSystemOptions fsOptions, String webProxyHost, Integer webProxyPort, String webProxyUserName, String webProxyPassword){ if (webProxyHost != null && webProxyPort != null){ HttpFileSystemConfigBuilder.getInstance().setProxyHost(fsOptions, webProxyHost); Http...
class class_name[name] begin[{] method[configHttpFileSystemProxy, return_type[void], modifier[public static], parameter[fsOptions, webProxyHost, webProxyPort, webProxyUserName, webProxyPassword]] begin[{] if[binary_operation[binary_operation[member[.webProxyHost], !=, literal[null]], &&, binary...
Keyword[static] Keyword[public] Keyword[void] identifier[configHttpFileSystemProxy] operator[SEP] identifier[FileSystemOptions] identifier[fsOptions] , identifier[String] identifier[webProxyHost] , identifier[Integer] identifier[webProxyPort] , identifier[String] identifier[webProxyUserName] , identifier[String] id...
protected void handleEvents(final String EVENT_TYPE) { super.handleEvents(EVENT_TYPE); if ("FINISHED".equals(EVENT_TYPE)) { if ( gauge.isHighlightSections() ) { redraw(); } } else if ("ANGLE".equals(EVENT_TYPE)) { double currentValue = (needle...
class class_name[name] begin[{] method[handleEvents, return_type[void], modifier[protected], parameter[EVENT_TYPE]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=EVENT_TYPE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=handleEvents, postfix_op...
Keyword[protected] Keyword[void] identifier[handleEvents] operator[SEP] Keyword[final] identifier[String] identifier[EVENT_TYPE] operator[SEP] { Keyword[super] operator[SEP] identifier[handleEvents] operator[SEP] identifier[EVENT_TYPE] operator[SEP] operator[SEP] Keyword[if] operator[SEP] literal[String] operato...
public static Float getFloatProperty(String key, boolean required) { Float value = null; String stringValue = getProperty(key, required); if (stringValue != null) { value = Float.valueOf(stringValue); } return value; }
class class_name[name] begin[{] method[getFloatProperty, return_type[type[Float]], modifier[public static], parameter[key, required]] begin[{] local_variable[type[Float], value] local_variable[type[String], stringValue] if[binary_operation[member[.stringValue], !=, literal[null]...
Keyword[public] Keyword[static] identifier[Float] identifier[getFloatProperty] operator[SEP] identifier[String] identifier[key] , Keyword[boolean] identifier[required] operator[SEP] { identifier[Float] identifier[value] operator[=] Other[null] operator[SEP] identifier[String] identifier[stringValue] operator[=]...
private void doUnescape(StringBuilder sb, String str, int firstAmp) { sb.append(str, 0, firstAmp); int len = str.length(); for (int i = firstAmp; i < len; i++) { char c = str.charAt(i); if (c == '&') { int nextIdx = i + 1; int semiColonIdx ...
class class_name[name] begin[{] method[doUnescape, return_type[void], modifier[private], parameter[sb, str, firstAmp]] begin[{] call[sb.append, parameter[member[.str], literal[0], member[.firstAmp]]] local_variable[type[int], len] ForStatement(body=BlockStatement(label=None, sta...
Keyword[private] Keyword[void] identifier[doUnescape] operator[SEP] identifier[StringBuilder] identifier[sb] , identifier[String] identifier[str] , Keyword[int] identifier[firstAmp] operator[SEP] { identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[str] , Other[0] , identifier[firstAmp]...
public void removeMembershipEventListener(MembershipEventListener listener) { SecurityHelper.validateSecurityPermission(PermissionConstants.MANAGE_LISTENERS); listeners.remove(listener); }
class class_name[name] begin[{] method[removeMembershipEventListener, return_type[void], modifier[public], parameter[listener]] begin[{] call[SecurityHelper.validateSecurityPermission, parameter[member[PermissionConstants.MANAGE_LISTENERS]]] call[listeners.remove, parameter[memb...
Keyword[public] Keyword[void] identifier[removeMembershipEventListener] operator[SEP] identifier[MembershipEventListener] identifier[listener] operator[SEP] { identifier[SecurityHelper] operator[SEP] identifier[validateSecurityPermission] operator[SEP] identifier[PermissionConstants] operator[SEP] identifier[MAN...
public void select(SelectRequest request) { call( new PostRequest(path("select")) .setParam("gateId", request.getGateId()) .setParam("organization", request.getOrganization()) .setParam("projectId", request.getProjectId()) .setParam("projectKey", request.getProjectKey()) ...
class class_name[name] begin[{] method[select, return_type[void], modifier[public], parameter[request]] begin[{] call[.call, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="select")], member=pa...
Keyword[public] Keyword[void] identifier[select] operator[SEP] identifier[SelectRequest] identifier[request] operator[SEP] { identifier[call] operator[SEP] Keyword[new] identifier[PostRequest] operator[SEP] identifier[path] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[setPar...
private void add( final List<String> arguments, final String argument ) { if( argument != null && argument.trim().length() > 0 ) { arguments.add( argument ); } }
class class_name[name] begin[{] method[add, return_type[void], modifier[private], parameter[arguments, argument]] begin[{] if[binary_operation[binary_operation[member[.argument], !=, literal[null]], &&, binary_operation[call[argument.trim, parameter[]], >, literal[0]]]] begin[{] ...
Keyword[private] Keyword[void] identifier[add] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[arguments] , Keyword[final] identifier[String] identifier[argument] operator[SEP] { Keyword[if] operator[SEP] identifier[argument] operator[!=] Other[null] operator[...
@Override @Transactional(enabled = false) public CommerceAccount createCommerceAccount(long commerceAccountId) { return commerceAccountPersistence.create(commerceAccountId); }
class class_name[name] begin[{] method[createCommerceAccount, return_type[type[CommerceAccount]], modifier[public], parameter[commerceAccountId]] begin[{] return[call[commerceAccountPersistence.create, parameter[member[.commerceAccountId]]]] end[}] END[}]
annotation[@] identifier[Override] annotation[@] identifier[Transactional] operator[SEP] identifier[enabled] operator[=] literal[boolean] operator[SEP] Keyword[public] identifier[CommerceAccount] identifier[createCommerceAccount] operator[SEP] Keyword[long] identifier[commerceAccountId] operator[SEP] { Keyword[r...
@Override @SuppressWarnings("unchecked") public T create() { try { return (T) Thread.currentThread().getContextClassLoader().loadClass(className).newInstance(); } catch (Exception e) { throw new RuntimeException(e); } }
class class_name[name] begin[{] method[create, return_type[type[T]], modifier[public], parameter[]] begin[{] TryStatement(block=[ReturnStatement(expression=Cast(expression=MethodInvocation(arguments=[], member=currentThread, postfix_operators=[], prefix_operators=[], qualifier=Thread, selectors=[Method...
annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[T] identifier[create] operator[SEP] operator[SEP] { Keyword[try] { Keyword[return] operator[SEP] identifier[T] operator[SEP] identifier[Thread] operator[...
public static void setVisibleDuration(Duration duration) { BEHAVIOR.setVisibleDuration(duration == null ? Duration.millis(1500) : duration); }
class class_name[name] begin[{] method[setVisibleDuration, return_type[void], modifier[public static], parameter[duration]] begin[{] call[BEHAVIOR.setVisibleDuration, parameter[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=duration, postfix_operators=[], prefix_ope...
Keyword[public] Keyword[static] Keyword[void] identifier[setVisibleDuration] operator[SEP] identifier[Duration] identifier[duration] operator[SEP] { identifier[BEHAVIOR] operator[SEP] identifier[setVisibleDuration] operator[SEP] identifier[duration] operator[==] Other[null] operator[?] identifier[Duration] opera...
public AT_Context setFrameLeftRightMargin(int frameLeft, int frameRight){ if(frameRight>-1 && frameLeft>-1){ this.frameLeftMargin = frameLeft; this.frameRightMargin = frameRight; } return this; }
class class_name[name] begin[{] method[setFrameLeftRightMargin, return_type[type[AT_Context]], modifier[public], parameter[frameLeft, frameRight]] begin[{] if[binary_operation[binary_operation[member[.frameRight], >, literal[1]], &&, binary_operation[member[.frameLeft], >, literal[1]]]] begin[{...
Keyword[public] identifier[AT_Context] identifier[setFrameLeftRightMargin] operator[SEP] Keyword[int] identifier[frameLeft] , Keyword[int] identifier[frameRight] operator[SEP] { Keyword[if] operator[SEP] identifier[frameRight] operator[>] operator[-] Other[1] operator[&&] identifier[frameLeft] operator[>] opera...
@Override public String getText() { int car = FIRST_NAMES.length - 1; return FIRST_NAMES[RAND.nextInt(car) + 1]; }
class class_name[name] begin[{] method[getText, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[int], car] return[member[.FIRST_NAMES]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getText] operator[SEP] operator[SEP] { Keyword[int] identifier[car] operator[=] identifier[FIRST_NAMES] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] Keyword[return] identifier[FIRST_NAMES] operator[SEP] identi...
public static int getLoadVoltTablesMagicSeriazlizedSize(Table catTable, boolean isPartitioned) { // code below is used to compute the right value slowly /* StoredProcedureInvocation spi = new StoredProcedureInvocation(); spi.setProcName("@LoadVoltTableSP"); if (isPartitioned) { ...
class class_name[name] begin[{] method[getLoadVoltTablesMagicSeriazlizedSize, return_type[type[int]], modifier[public static], parameter[catTable, isPartitioned]] begin[{] local_variable[type[int], tableNameLengthInBytes] local_variable[type[int], metadataSize] if[member[.isPart...
Keyword[public] Keyword[static] Keyword[int] identifier[getLoadVoltTablesMagicSeriazlizedSize] operator[SEP] identifier[Table] identifier[catTable] , Keyword[boolean] identifier[isPartitioned] operator[SEP] { Keyword[int] identifier[tableNameLengthInBytes] operator[=] identifier[catTable] operator[SEP] identifi...
@Override public CompletableFuture<Acknowledge> deregisterApplication( final ApplicationStatus finalStatus, @Nullable final String diagnostics) { log.info("Shut down cluster because application is in {}, diagnostics {}.", finalStatus, diagnostics); try { internalDeregisterApplication(finalStatus, diagnos...
class class_name[name] begin[{] method[deregisterApplication, return_type[type[CompletableFuture]], modifier[public], parameter[finalStatus, diagnostics]] begin[{] call[log.info, parameter[literal["Shut down cluster because application is in {}, diagnostics {}."], member[.finalStatus], member[....
annotation[@] identifier[Override] Keyword[public] identifier[CompletableFuture] operator[<] identifier[Acknowledge] operator[>] identifier[deregisterApplication] operator[SEP] Keyword[final] identifier[ApplicationStatus] identifier[finalStatus] , annotation[@] identifier[Nullable] Keyword[final] identifier[String] id...
public static WxaEntrustwebData generatePapayWxaEntrustweb(PapayEntrustweb papayEntrustweb, String key) { Map<String, String> map = MapUtil.objectToMap(papayEntrustweb); String sign = SignatureUtil.generateSign(map, "HMAC-SHA256", key); papayEntrustweb.setSign(sign); WxaEntrustwebData wxaEntrustwebData = ne...
class class_name[name] begin[{] method[generatePapayWxaEntrustweb, return_type[type[WxaEntrustwebData]], modifier[public static], parameter[papayEntrustweb, key]] begin[{] local_variable[type[Map], map] local_variable[type[String], sign] call[papayEntrustweb.setSign, parameter[m...
Keyword[public] Keyword[static] identifier[WxaEntrustwebData] identifier[generatePapayWxaEntrustweb] operator[SEP] identifier[PapayEntrustweb] identifier[papayEntrustweb] , identifier[String] identifier[key] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identif...
@Deprecated public static JpaModule newServerModule(EntityManagerFactory emFactory, EntityManager em, TransactionRunner transactionRunner) { JpaModuleConfig config = new JpaModuleConfig(); config.exposeAllEntities(emFactory); return new JpaModule(c...
class class_name[name] begin[{] method[newServerModule, return_type[type[JpaModule]], modifier[public static], parameter[emFactory, em, transactionRunner]] begin[{] local_variable[type[JpaModuleConfig], config] call[config.exposeAllEntities, parameter[member[.emFactory]]] return...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] identifier[JpaModule] identifier[newServerModule] operator[SEP] identifier[EntityManagerFactory] identifier[emFactory] , identifier[EntityManager] identifier[em] , identifier[TransactionRunner] identifier[transactionRunner] operator[SEP] { id...
public LocalDateTime toLocalDateTime(String s) throws SQLException { if (s == null) { return null; } int slen = s.length(); // convert postgres's infinity values to internal infinity magic value if (slen == 8 && s.equals("infinity")) { return LocalDateTime.MAX; } if (slen == 9...
class class_name[name] begin[{] method[toLocalDateTime, return_type[type[LocalDateTime]], modifier[public], parameter[s]] begin[{] if[binary_operation[member[.s], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type...
Keyword[public] identifier[LocalDateTime] identifier[toLocalDateTime] operator[SEP] identifier[String] identifier[s] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[if] operator[SEP] identifier[s] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] ...
private void populateSettings() { settings = new Settings(); if (dataDirectory != null) { settings.setString(Settings.KEYS.DATA_DIRECTORY, dataDirectory); } else { final File jarPath = new File(DependencyCheckScanAgent.class.getProtectionDomain().getCodeSource().getLocati...
class class_name[name] begin[{] method[populateSettings, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.settings], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=Ref...
Keyword[private] Keyword[void] identifier[populateSettings] operator[SEP] operator[SEP] { identifier[settings] operator[=] Keyword[new] identifier[Settings] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[dataDirectory] operator[!=] Other[null] operator[SEP] { identifier...
@Override public List<com.enioka.jqm.api.Deliverable> getJobDeliverables(int idJob) { try { return target.path("ji/" + idJob + "/files").request().get(new GenericType<List<Deliverable>>() { }); } catch (BadRequestException e) { ...
class class_name[name] begin[{] method[getJobDeliverables, return_type[type[List]], modifier[public], parameter[idJob]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[]...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[com] operator[SEP] identifier[enioka] operator[SEP] identifier[jqm] operator[SEP] identifier[api] operator[SEP] identifier[Deliverable] operator[>] identifier[getJobDeliverables] operator[SEP] Keyword[int] identifier[idJob] opera...
public static String format (Object message, Object... args) { return new LogBuilder(message, args).toString(); }
class class_name[name] begin[{] method[format, return_type[type[String]], modifier[public static], parameter[message, args]] begin[{] return[ClassCreator(arguments=[MemberReference(member=message, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=args, postfix...
Keyword[public] Keyword[static] identifier[String] identifier[format] operator[SEP] identifier[Object] identifier[message] , identifier[Object] operator[...] identifier[args] operator[SEP] { Keyword[return] Keyword[new] identifier[LogBuilder] operator[SEP] identifier[message] , identifier[args] operator[SEP] o...
public synchronized static JMX reconnect() { try { ClientCache cache = null; cache = ClientCacheFactory.getAnyInstance(); if(cache != null && !cache.isClosed()) { cache.close(); } } catch (Exception e) { System.out.println("Cache was closed"); } if(jmx != null...
class class_name[name] begin[{] method[reconnect, return_type[type[JMX]], modifier[synchronized public static], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[]...
Keyword[public] Keyword[synchronized] Keyword[static] identifier[JMX] identifier[reconnect] operator[SEP] operator[SEP] { Keyword[try] { identifier[ClientCache] identifier[cache] operator[=] Other[null] operator[SEP] identifier[cache] operator[=] identifier[ClientCacheFactory] operator[SEP] identifier...
public void setCommerceNotificationQueueEntryLocalService( com.liferay.commerce.notification.service.CommerceNotificationQueueEntryLocalService commerceNotificationQueueEntryLocalService) { this.commerceNotificationQueueEntryLocalService = commerceNotificationQueueEntryLocalService; }
class class_name[name] begin[{] method[setCommerceNotificationQueueEntryLocalService, return_type[void], modifier[public], parameter[commerceNotificationQueueEntryLocalService]] begin[{] assign[THIS[member[None.commerceNotificationQueueEntryLocalService]], member[.commerceNotificationQueueEntry...
Keyword[public] Keyword[void] identifier[setCommerceNotificationQueueEntryLocalService] operator[SEP] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[notification] operator[SEP] identifier[service] operator[SEP] identifier[CommerceNotificationQueueEntryLocal...
public static void saveUserPreferences(IProject project, final UserPreferences userPrefs) throws CoreException { FileOutput userPrefsOutput = new FileOutput() { @Override public void writeFile(OutputStream os) throws IOException { userPrefs.write(os); } ...
class class_name[name] begin[{] method[saveUserPreferences, return_type[void], modifier[public static], parameter[project, userPrefs]] begin[{] local_variable[type[FileOutput], userPrefsOutput] if[binary_operation[member[.project], !=, literal[null]]] begin[{] ca...
Keyword[public] Keyword[static] Keyword[void] identifier[saveUserPreferences] operator[SEP] identifier[IProject] identifier[project] , Keyword[final] identifier[UserPreferences] identifier[userPrefs] operator[SEP] Keyword[throws] identifier[CoreException] { identifier[FileOutput] identifier[userPrefsOutput] ope...
public static <C extends Comparable> Ordering<Range<C>> orderingByUpperEndpoint() { return new Ordering<Range<C>>() { @Override public int compare(final Range<C> left, final Range<C> right) { return ComparisonChain.start() .compare(left.hasUpperBound()...
class class_name[name] begin[{] method[orderingByUpperEndpoint, return_type[type[Ordering]], modifier[public static], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(...
Keyword[public] Keyword[static] operator[<] identifier[C] Keyword[extends] identifier[Comparable] operator[>] identifier[Ordering] operator[<] identifier[Range] operator[<] identifier[C] operator[>] operator[>] identifier[orderingByUpperEndpoint] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identif...
static EntityManager createProxy(final HibernateEntityManagerFactory factory) { final EntityManagerInterceptor handler = new EntityManagerInterceptor(factory); final Enhancer e = new Enhancer(); // make sure we're Serializable and have a write replace method e.setInterfaces(new Class[]...
class class_name[name] begin[{] method[createProxy, return_type[type[EntityManager]], modifier[static], parameter[factory]] begin[{] local_variable[type[EntityManagerInterceptor], handler] local_variable[type[Enhancer], e] call[e.setInterfaces, parameter[ArrayCreator(dimensions=...
Keyword[static] identifier[EntityManager] identifier[createProxy] operator[SEP] Keyword[final] identifier[HibernateEntityManagerFactory] identifier[factory] operator[SEP] { Keyword[final] identifier[EntityManagerInterceptor] identifier[handler] operator[=] Keyword[new] identifier[EntityManagerInterceptor] operat...
@Nonnull public CSSSimpleValueWithUnit setValue (@Nonnull final BigDecimal aValue) { m_aValue = ValueEnforcer.notNull (aValue, "Value"); return this; }
class class_name[name] begin[{] method[setValue, return_type[type[CSSSimpleValueWithUnit]], modifier[public], parameter[aValue]] begin[{] assign[member[.m_aValue], call[ValueEnforcer.notNull, parameter[member[.aValue], literal["Value"]]]] return[THIS[]] end[}] END[}]
annotation[@] identifier[Nonnull] Keyword[public] identifier[CSSSimpleValueWithUnit] identifier[setValue] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[BigDecimal] identifier[aValue] operator[SEP] { identifier[m_aValue] operator[=] identifier[ValueEnforcer] operator[SEP] identifier[no...
public void beforeOverrideMethod(CtClass targetClass, String targetMethodName, String body) throws CannotCompileException, AfterBurnerImpossibleException, NotFoundException { InsertableMethod insertableMethod = new InsertableMethodBuilder(this, signatureExtractor).insertIntoClass(targetClass).beforeOverrideMeth...
class class_name[name] begin[{] method[beforeOverrideMethod, return_type[void], modifier[public], parameter[targetClass, targetMethodName, body]] begin[{] local_variable[type[InsertableMethod], insertableMethod] call[.addOrInsertMethod, parameter[member[.insertableMethod]]] end[}] E...
Keyword[public] Keyword[void] identifier[beforeOverrideMethod] operator[SEP] identifier[CtClass] identifier[targetClass] , identifier[String] identifier[targetMethodName] , identifier[String] identifier[body] operator[SEP] Keyword[throws] identifier[CannotCompileException] , identifier[AfterBurnerImpossibleException...
protected void awaitForPushToFinish(Future<?> future, long timeout, TimeUnit unit) { final boolean debugEnabled = log.isDebugEnabled(); try { if (debugEnabled) log.debug("wait for state push to cache loader to finish"); future.get(timeout, unit); } catch (TimeoutException e) { ...
class class_name[name] begin[{] method[awaitForPushToFinish, return_type[void], modifier[protected], parameter[future, timeout, unit]] begin[{] local_variable[type[boolean], debugEnabled] TryStatement(block=[IfStatement(condition=MemberReference(member=debugEnabled, postfix_operators=[], prefix...
Keyword[protected] Keyword[void] identifier[awaitForPushToFinish] operator[SEP] identifier[Future] operator[<] operator[?] operator[>] identifier[future] , Keyword[long] identifier[timeout] , identifier[TimeUnit] identifier[unit] operator[SEP] { Keyword[final] Keyword[boolean] identifier[debugEnabled] operator...
public ConstraintMatch addConstraintMatch(List<Object> justificationList, Score score) { this.score = this.score.add(score); ConstraintMatch constraintMatch = new ConstraintMatch(constraintPackage, constraintName, justificationList, score); boolean added = constraintMatchSet.add(...
class class_name[name] begin[{] method[addConstraintMatch, return_type[type[ConstraintMatch]], modifier[public], parameter[justificationList, score]] begin[{] assign[THIS[member[None.score]], THIS[member[None.score]call[None.add, parameter[member[.score]]]]] local_variable[type[Constrai...
Keyword[public] identifier[ConstraintMatch] identifier[addConstraintMatch] operator[SEP] identifier[List] operator[<] identifier[Object] operator[>] identifier[justificationList] , identifier[Score] identifier[score] operator[SEP] { Keyword[this] operator[SEP] identifier[score] operator[=] Keyword[this] operato...
private static String breakExtractor(String formula) { boolean finalBreak = false; int innerMostBracket = formula.lastIndexOf("("); if (innerMostBracket<0) return formula; String finalformula = formula.substring(0, innerMostBracket); String multipliedf...
class class_name[name] begin[{] method[breakExtractor, return_type[type[String]], modifier[private static], parameter[formula]] begin[{] local_variable[type[boolean], finalBreak] local_variable[type[int], innerMostBracket] if[binary_operation[member[.innerMostBracket], <, litera...
Keyword[private] Keyword[static] identifier[String] identifier[breakExtractor] operator[SEP] identifier[String] identifier[formula] operator[SEP] { Keyword[boolean] identifier[finalBreak] operator[=] literal[boolean] operator[SEP] Keyword[int] identifier[innerMostBracket] operator[=] identifier[formula] operator...
public StreamInfo readStreamInfo() throws IOException { readStreamSync(); Metadata metadata = readNextMetadata(); if (!(metadata instanceof StreamInfo)) throw new IOException("StreamInfo metadata block missing"); return (StreamInfo) metadata; }
class class_name[name] begin[{] method[readStreamInfo, return_type[type[StreamInfo]], modifier[public], parameter[]] begin[{] call[.readStreamSync, parameter[]] local_variable[type[Metadata], metadata] if[binary_operation[member[.metadata], instanceof, type[StreamInfo]]]...
Keyword[public] identifier[StreamInfo] identifier[readStreamInfo] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[readStreamSync] operator[SEP] operator[SEP] operator[SEP] identifier[Metadata] identifier[metadata] operator[=] identifier[readNextMetadata] operator[SEP] operator[SE...
protected Response buildAuthenticationResponse(final OpenIdService service, final Map<String, String> parameters, final boolean successFullAuthentication, final String...
class class_name[name] begin[{] method[buildAuthenticationResponse, return_type[type[Response]], modifier[protected], parameter[service, parameters, successFullAuthentication, id, parameterList]] begin[{] local_variable[type[val], response] call[parameters.putAll, parameter[call[respons...
Keyword[protected] identifier[Response] identifier[buildAuthenticationResponse] operator[SEP] Keyword[final] identifier[OpenIdService] identifier[service] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[parameters] , Keyword[final] Keyword[boolean] identifi...
@Override public boolean logout() throws LoginException { if (mSubject.isReadOnly()) { throw new LoginException("logout Failed: Subject is Readonly."); } if (mUser != null) { mSubject.getPrincipals().remove(mUser); } return true; }
class class_name[name] begin[{] method[logout, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[call[mSubject.isReadOnly, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None,...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[logout] operator[SEP] operator[SEP] Keyword[throws] identifier[LoginException] { Keyword[if] operator[SEP] identifier[mSubject] operator[SEP] identifier[isReadOnly] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw]...
public static base_response export(nitro_service client, sslfipskey resource) throws Exception { sslfipskey exportresource = new sslfipskey(); exportresource.fipskeyname = resource.fipskeyname; exportresource.key = resource.key; return exportresource.perform_operation(client,"export"); }
class class_name[name] begin[{] method[export, return_type[type[base_response]], modifier[public static], parameter[client, resource]] begin[{] local_variable[type[sslfipskey], exportresource] assign[member[exportresource.fipskeyname], member[resource.fipskeyname]] assig...
Keyword[public] Keyword[static] identifier[base_response] identifier[export] operator[SEP] identifier[nitro_service] identifier[client] , identifier[sslfipskey] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] { identifier[sslfipskey] identifier[exportresource] operator[=] Keyword[new] i...
public void setScheme( String scheme ) { _scheme = null; if ( scheme != null && scheme.length() > 0 ) { _scheme = scheme; } }
class class_name[name] begin[{] method[setScheme, return_type[void], modifier[public], parameter[scheme]] begin[{] assign[member[._scheme], literal[null]] if[binary_operation[binary_operation[member[.scheme], !=, literal[null]], &&, binary_operation[call[scheme.length, parameter...
Keyword[public] Keyword[void] identifier[setScheme] operator[SEP] identifier[String] identifier[scheme] operator[SEP] { identifier[_scheme] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[scheme] operator[!=] Other[null] operator[&&] identifier[scheme] operator[SEP] identifier[length] ...
public static long putFromByteArray(Cache cache, String resource, byte [] data) throws CacheException { if(cache == null) { logger.error("cache reference must not be null"); throw new CacheException("invalid cache"); } ByteArrayInputStream input = null; OutputStream output = null; try { output = cac...
class class_name[name] begin[{] method[putFromByteArray, return_type[type[long]], modifier[public static], parameter[cache, resource, data]] begin[{] if[binary_operation[member[.cache], ==, literal[null]]] begin[{] call[logger.error, parameter[literal["cache reference mu...
Keyword[public] Keyword[static] Keyword[long] identifier[putFromByteArray] operator[SEP] identifier[Cache] identifier[cache] , identifier[String] identifier[resource] , Keyword[byte] operator[SEP] operator[SEP] identifier[data] operator[SEP] Keyword[throws] identifier[CacheException] { Keyword[if] operator[SEP...
protected ValueSet readAndDeleteInvalidationFile() { final String methodName = "readAndDeleteInvalidationFile()"; final File f = new File(invalidationFileName); final CacheOnDisk cod = this; this.valueSet = new ValueSet(1); if (f.exists()) { AccessController.doPrivile...
class class_name[name] begin[{] method[readAndDeleteInvalidationFile, return_type[type[ValueSet]], modifier[protected], parameter[]] begin[{] local_variable[type[String], methodName] local_variable[type[File], f] local_variable[type[CacheOnDisk], cod] assign[THIS[member[...
Keyword[protected] identifier[ValueSet] identifier[readAndDeleteInvalidationFile] operator[SEP] operator[SEP] { Keyword[final] identifier[String] identifier[methodName] operator[=] literal[String] operator[SEP] Keyword[final] identifier[File] identifier[f] operator[=] Keyword[new] identifier[File] operator[SEP] ...
public static String execute(String fileName, boolean redirectOutput, String... arguments) throws PyException { Properties properties = new Properties(); properties.setProperty("python.home", StaticConfiguration.JYTHON_HOME); properties.setProperty("python.path", StaticConfiguration.FORMATTER_DI...
class class_name[name] begin[{] method[execute, return_type[type[String]], modifier[public static], parameter[fileName, redirectOutput, arguments]] begin[{] local_variable[type[Properties], properties] call[properties.setProperty, parameter[literal["python.home"], member[StaticConfigura...
Keyword[public] Keyword[static] identifier[String] identifier[execute] operator[SEP] identifier[String] identifier[fileName] , Keyword[boolean] identifier[redirectOutput] , identifier[String] operator[...] identifier[arguments] operator[SEP] Keyword[throws] identifier[PyException] { identifier[Properties] iden...
public void deleteObjectRow(TableDefinition tableDef, String objID) { deleteRow(SpiderService.objectsStoreName(tableDef), objID); }
class class_name[name] begin[{] method[deleteObjectRow, return_type[void], modifier[public], parameter[tableDef, objID]] begin[{] call[.deleteRow, parameter[call[SpiderService.objectsStoreName, parameter[member[.tableDef]]], member[.objID]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[deleteObjectRow] operator[SEP] identifier[TableDefinition] identifier[tableDef] , identifier[String] identifier[objID] operator[SEP] { identifier[deleteRow] operator[SEP] identifier[SpiderService] operator[SEP] identifier[objectsStoreName] operator[SEP] identifier[tableD...
private final Boolean getBoolean(NamedList<Object> response, String... args) { Object objectItem = response.findRecursive(args); Boolean result = null; if (objectItem != null && objectItem instanceof Boolean) { result = (Boolean) objectItem; } return result; }
class class_name[name] begin[{] method[getBoolean, return_type[type[Boolean]], modifier[final private], parameter[response, args]] begin[{] local_variable[type[Object], objectItem] local_variable[type[Boolean], result] if[binary_operation[binary_operation[member[.objectItem], !=...
Keyword[private] Keyword[final] identifier[Boolean] identifier[getBoolean] operator[SEP] identifier[NamedList] operator[<] identifier[Object] operator[>] identifier[response] , identifier[String] operator[...] identifier[args] operator[SEP] { identifier[Object] identifier[objectItem] operator[=] identifier[resp...
private Observable<Boolean> upsertTempMessage(ChatMessage message) { return persistenceController.updateStoreWithNewMessage(message, noConversationListener) .doOnError(t -> log.e("Error saving temp message " + t.getLocalizedMessage())) .onErrorReturn(t -> false); }
class class_name[name] begin[{] method[upsertTempMessage, return_type[type[Observable]], modifier[private], parameter[message]] begin[{] return[call[persistenceController.updateStoreWithNewMessage, parameter[member[.message], member[.noConversationListener]]]] end[}] END[}]
Keyword[private] identifier[Observable] operator[<] identifier[Boolean] operator[>] identifier[upsertTempMessage] operator[SEP] identifier[ChatMessage] identifier[message] operator[SEP] { Keyword[return] identifier[persistenceController] operator[SEP] identifier[updateStoreWithNewMessage] operator[SEP] identifie...
public static File writeUCI(TrainingCorpus corpus, Lexicon lexicon, boolean b, String vector_location, Map<Integer, Integer> attributeMapping) throws IOException { File vectorFile = new File(vector_location); PrintWriter out = null; out = new PrintWriter(new FileWriter(ve...
class class_name[name] begin[{] method[writeUCI, return_type[type[File]], modifier[public static], parameter[corpus, lexicon, b, vector_location, attributeMapping]] begin[{] local_variable[type[File], vectorFile] local_variable[type[PrintWriter], out] assign[member[.out], ClassC...
Keyword[public] Keyword[static] identifier[File] identifier[writeUCI] operator[SEP] identifier[TrainingCorpus] identifier[corpus] , identifier[Lexicon] identifier[lexicon] , Keyword[boolean] identifier[b] , identifier[String] identifier[vector_location] , identifier[Map] operator[<] identifier[Integer] , identifie...
public EvaluationContextImpl newEvaluationContext(ClassLoader cl, Collection<FEELEventListener> listeners, Map<String, Object> inputVariables) { FEELEventListenersManager eventsManager = getEventsManager(listeners); EvaluationContextImpl ctx = new EvaluationContextImpl(cl, eventsManager, inputVariables....
class class_name[name] begin[{] method[newEvaluationContext, return_type[type[EvaluationContextImpl]], modifier[public], parameter[cl, listeners, inputVariables]] begin[{] local_variable[type[FEELEventListenersManager], eventsManager] local_variable[type[EvaluationContextImpl], ctx] ...
Keyword[public] identifier[EvaluationContextImpl] identifier[newEvaluationContext] operator[SEP] identifier[ClassLoader] identifier[cl] , identifier[Collection] operator[<] identifier[FEELEventListener] operator[>] identifier[listeners] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>...
public static List<ExternalGraphic> externalGraphicsFromGraphic( Graphic graphic ) { List<ExternalGraphic> gList = new ArrayList<ExternalGraphic>(); for( GraphicalSymbol gs : graphic.graphicalSymbols() ) { if ((gs != null) && (gs instanceof ExternalGraphic)) { ExternalGraphic...
class class_name[name] begin[{] method[externalGraphicsFromGraphic, return_type[type[List]], modifier[public static], parameter[graphic]] begin[{] local_variable[type[List], gList] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOper...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[ExternalGraphic] operator[>] identifier[externalGraphicsFromGraphic] operator[SEP] identifier[Graphic] identifier[graphic] operator[SEP] { identifier[List] operator[<] identifier[ExternalGraphic] operator[>] identifier[gList] operator[=] Key...
public void validateInjectionPointForDeploymentProblems(InjectionPoint ij, Bean<?> bean, BeanManagerImpl beanManager) { if (ij.isDelegate()) { return; // do not validate delegate injection points as these are special } Set<Bean<?>> resolvedBeans = beanManager.getBeanResolver().resolv...
class class_name[name] begin[{] method[validateInjectionPointForDeploymentProblems, return_type[void], modifier[public], parameter[ij, bean, beanManager]] begin[{] if[call[ij.isDelegate, parameter[]]] begin[{] return[None] else begin[{] None end[}] local_vari...
Keyword[public] Keyword[void] identifier[validateInjectionPointForDeploymentProblems] operator[SEP] identifier[InjectionPoint] identifier[ij] , identifier[Bean] operator[<] operator[?] operator[>] identifier[bean] , identifier[BeanManagerImpl] identifier[beanManager] operator[SEP] { Keyword[if] operator[SEP] i...
@Override public Planar<T> createNew(int imgWidth, int imgHeight) { return new Planar<>(type, imgWidth, imgHeight, bands.length); }
class class_name[name] begin[{] method[createNew, return_type[type[Planar]], modifier[public], parameter[imgWidth, imgHeight]] begin[{] return[ClassCreator(arguments=[MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=imgWidth, post...
annotation[@] identifier[Override] Keyword[public] identifier[Planar] operator[<] identifier[T] operator[>] identifier[createNew] operator[SEP] Keyword[int] identifier[imgWidth] , Keyword[int] identifier[imgHeight] operator[SEP] { Keyword[return] Keyword[new] identifier[Planar] operator[<] operator[>] operator[...
@Override public FSDataOutputStream create(Path f, FsPermission permission, boolean overwrite, int bufferSize, short replication, long blockSize, Progressable progress) throws IOException { throw new IOException("Create not supported for EmoFileSystem: " + f); }
class class_name[name] begin[{] method[create, return_type[type[FSDataOutputStream]], modifier[public], parameter[f, permission, overwrite, bufferSize, replication, blockSize, progress]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], pr...
annotation[@] identifier[Override] Keyword[public] identifier[FSDataOutputStream] identifier[create] operator[SEP] identifier[Path] identifier[f] , identifier[FsPermission] identifier[permission] , Keyword[boolean] identifier[overwrite] , Keyword[int] identifier[bufferSize] , Keyword[short] identifier[replication] ...
public static <T extends Comparable<? super T>> void sort(T[] arr, int[] brr) { sort(arr, brr, arr.length); }
class class_name[name] begin[{] method[sort, return_type[void], modifier[public static], parameter[arr, brr]] begin[{] call[.sort, parameter[member[.arr], member[.brr], member[arr.length]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Comparable] operator[<] operator[?] Keyword[super] identifier[T] operator[>] operator[>] Keyword[void] identifier[sort] operator[SEP] identifier[T] operator[SEP] operator[SEP] identifier[arr] , Keyword[int] operator[SEP] operator[SEP...
public static double elementMaxMagnitude2( ZMatrixD1 a ) { final int size = a.getDataLength(); double max = 0; for( int i = 0; i < size; ) { double real = a.data[i++]; double imaginary = a.data[i++]; double m = real*real + imaginary*imaginary; i...
class class_name[name] begin[{] method[elementMaxMagnitude2, return_type[type[double]], modifier[public static], parameter[a]] begin[{] local_variable[type[int], size] local_variable[type[double], max] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(ann...
Keyword[public] Keyword[static] Keyword[double] identifier[elementMaxMagnitude2] operator[SEP] identifier[ZMatrixD1] identifier[a] operator[SEP] { Keyword[final] Keyword[int] identifier[size] operator[=] identifier[a] operator[SEP] identifier[getDataLength] operator[SEP] operator[SEP] operator[SEP] Keyword[doubl...
@Override public void enlist() throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, hexId() + ":enlist()"); } }
class class_name[name] begin[{] method[enlist, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[member[.tc], ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[enlist] operator[SEP] operator[SEP] Keyword[throws] identifier[ResourceException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc...
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case BpsimPackage.BINOMIAL_DISTRIBUTION_TYPE__PROBABILITY: return getProbability(); case BpsimPackage.BINOMIAL_DISTRIBUTION_TYPE__TRIALS: return getTrials(); } return super.eGet(featureID, resolve,...
class class_name[name] begin[{] method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=BINOMIAL_DISTRIBUTION_TYPE__PROBABILITY, postfix_operators=[], prefix_operators=[], qualifi...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { K...
public JavaWriter emitImports(Class<?>... types) throws IOException { List<String> classNames = new ArrayList<String>(types.length); for (Class<?> classToImport : types) { classNames.add(classToImport.getName()); } return emitImports(classNames); }
class class_name[name] begin[{] method[emitImports, return_type[type[JavaWriter]], modifier[public], parameter[types]] begin[{] local_variable[type[List], classNames] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvoca...
Keyword[public] identifier[JavaWriter] identifier[emitImports] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] operator[...] identifier[types] operator[SEP] Keyword[throws] identifier[IOException] { identifier[List] operator[<] identifier[String] operator[>] identifier[classNames] operator[=]...
public void marshall(HyperParameterTuningJobObjective hyperParameterTuningJobObjective, ProtocolMarshaller protocolMarshaller) { if (hyperParameterTuningJobObjective == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[hyperParameterTuningJobObjective, protocolMarshaller]] begin[{] if[binary_operation[member[.hyperParameterTuningJobObjective], ==, literal[null]]] begin[{] ThrowStatement(expression=Class...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[HyperParameterTuningJobObjective] identifier[hyperParameterTuningJobObjective] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[hyperParameterTuningJobObjective] operat...
public static Stream<MutableLongTuple> stream( Order order, LongTuple min, LongTuple max) { if (order == null) { return null; } Utils.checkForEqualSize(min, max); MutableLongTuple localMin = LongTuples.copy(min); MutableLongTuple localMax ...
class class_name[name] begin[{] method[stream, return_type[type[Stream]], modifier[public static], parameter[order, min, max]] begin[{] if[binary_operation[member[.order], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ca...
Keyword[public] Keyword[static] identifier[Stream] operator[<] identifier[MutableLongTuple] operator[>] identifier[stream] operator[SEP] identifier[Order] identifier[order] , identifier[LongTuple] identifier[min] , identifier[LongTuple] identifier[max] operator[SEP] { Keyword[if] operator[SEP] identifier[order...
@SuppressWarnings("serial") public void join(final Conference conference) { join(conference, Direction.DUPLEX); try { Thread.sleep(800); mg.getPlayer().play(URI.create(url), null, null); } catch (Exception e) { logger.error("Error", e); } }
class class_name[name] begin[{] method[join, return_type[void], modifier[public], parameter[conference]] begin[{] call[.join, parameter[member[.conference], member[Direction.DUPLEX]]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operator...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[join] operator[SEP] Keyword[final] identifier[Conference] identifier[conference] operator[SEP] { identifier[join] operator[SEP] identifier[conference] , identifier[Direction] operator[...
public ArrayList<OvhWhoisObfuscatorFieldsEnum> serviceName_owo_GET(String serviceName, OvhWhoisObfuscatorFieldsEnum field) throws IOException { String qPath = "/domain/{serviceName}/owo"; StringBuilder sb = path(qPath, serviceName); query(sb, "field", field); String resp = exec(qPath, "GET", sb.toString(), null...
class class_name[name] begin[{] method[serviceName_owo_GET, return_type[type[ArrayList]], modifier[public], parameter[serviceName, field]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] call[.query, parameter[member[.sb], literal["field"], m...
Keyword[public] identifier[ArrayList] operator[<] identifier[OvhWhoisObfuscatorFieldsEnum] operator[>] identifier[serviceName_owo_GET] operator[SEP] identifier[String] identifier[serviceName] , identifier[OvhWhoisObfuscatorFieldsEnum] identifier[field] operator[SEP] Keyword[throws] identifier[IOException] { ide...
public void marshall(DescribeDRTAccessRequest describeDRTAccessRequest, ProtocolMarshaller protocolMarshaller) { if (describeDRTAccessRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { } catch (Exception e) { thr...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[describeDRTAccessRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.describeDRTAccessRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argument...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeDRTAccessRequest] identifier[describeDRTAccessRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[describeDRTAccessRequest] operator[==] Other[null] opera...
public String describe(Session session) { StringBuffer sb; String temp; Index index; Index primaryIndex; int[] primaryKey; boolean hidden; boolean fullScan; sb = new StringBuffer(); index = ra...
class class_name[name] begin[{] method[describe, return_type[type[String]], modifier[public], parameter[session]] begin[{] local_variable[type[StringBuffer], sb] local_variable[type[String], temp] local_variable[type[Index], index] local_variable[type[Index], primaryIndex] ...
Keyword[public] identifier[String] identifier[describe] operator[SEP] identifier[Session] identifier[session] operator[SEP] { identifier[StringBuffer] identifier[sb] operator[SEP] identifier[String] identifier[temp] operator[SEP] identifier[Index] identifier[index] operator[SEP] identifier[Index] identifier[prim...
public static void getXMLCMCLockType(LockType[] lockType, Method[] ejbMethods, Session sessionBean) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "getXMLCMCLockType: " + sessionBean.getEjbClassName() ...
class class_name[name] begin[{] method[getXMLCMCLockType, return_type[void], modifier[public static], parameter[lockType, ejbMethods, sessionBean]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[...
Keyword[public] Keyword[static] Keyword[void] identifier[getXMLCMCLockType] operator[SEP] identifier[LockType] operator[SEP] operator[SEP] identifier[lockType] , identifier[Method] operator[SEP] operator[SEP] identifier[ejbMethods] , identifier[Session] identifier[sessionBean] operator[SEP] { Keyword[final] Ke...
public static boolean isRestSSLAuthenticationEnabled(Configuration sslConfig) { checkNotNull(sslConfig, "sslConfig"); return isRestSSLEnabled(sslConfig) && sslConfig.getBoolean(SecurityOptions.SSL_REST_AUTHENTICATION_ENABLED); }
class class_name[name] begin[{] method[isRestSSLAuthenticationEnabled, return_type[type[boolean]], modifier[public static], parameter[sslConfig]] begin[{] call[.checkNotNull, parameter[member[.sslConfig], literal["sslConfig"]]] return[binary_operation[call[.isRestSSLEnabled, parameter[m...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isRestSSLAuthenticationEnabled] operator[SEP] identifier[Configuration] identifier[sslConfig] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[sslConfig] , literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[isRestSS...
public ApiResponse<ApiSuccessResponse> setAgentStateReadyWithHttpInfo(ReadyData readyData) throws ApiException { com.squareup.okhttp.Call call = setAgentStateReadyValidateBeforeCall(readyData, null, null); Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType(); return apiClien...
class class_name[name] begin[{] method[setAgentStateReadyWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[readyData]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] return[call[apiClient.execute, parameter[member[.call], ...
Keyword[public] identifier[ApiResponse] operator[<] identifier[ApiSuccessResponse] operator[>] identifier[setAgentStateReadyWithHttpInfo] operator[SEP] identifier[ReadyData] identifier[readyData] operator[SEP] Keyword[throws] identifier[ApiException] { identifier[com] operator[SEP] identifier[squareup] operator[...
public static Slice wrappedLongArray(long[] array, int offset, int length) { if (length == 0) { return EMPTY_SLICE; } return new Slice(array, offset, length); }
class class_name[name] begin[{] method[wrappedLongArray, return_type[type[Slice]], modifier[public static], parameter[array, offset, length]] begin[{] if[binary_operation[member[.length], ==, literal[0]]] begin[{] return[member[.EMPTY_SLICE]] else begin[{] None end[}...
Keyword[public] Keyword[static] identifier[Slice] identifier[wrappedLongArray] operator[SEP] Keyword[long] operator[SEP] operator[SEP] identifier[array] , Keyword[int] identifier[offset] , Keyword[int] identifier[length] operator[SEP] { Keyword[if] operator[SEP] identifier[length] operator[==] Other[0] operato...
public int count(Pair<T> obj) { long index = getIndex(obj); int count = counts.get(index); count++; counts.put(index, count); sum++; return count; }
class class_name[name] begin[{] method[count, return_type[type[int]], modifier[public], parameter[obj]] begin[{] local_variable[type[long], index] local_variable[type[int], count] member[.count] call[counts.put, parameter[member[.index], member[.count]]] ...
Keyword[public] Keyword[int] identifier[count] operator[SEP] identifier[Pair] operator[<] identifier[T] operator[>] identifier[obj] operator[SEP] { Keyword[long] identifier[index] operator[=] identifier[getIndex] operator[SEP] identifier[obj] operator[SEP] operator[SEP] Keyword[int] identifier[count] operator[=]...
public void setTraceIds(java.util.Collection<String> traceIds) { if (traceIds == null) { this.traceIds = null; return; } this.traceIds = new java.util.ArrayList<String>(traceIds); }
class class_name[name] begin[{] method[setTraceIds, return_type[void], modifier[public], parameter[traceIds]] begin[{] if[binary_operation[member[.traceIds], ==, literal[null]]] begin[{] assign[THIS[member[None.traceIds]], literal[null]] return[None] ...
Keyword[public] Keyword[void] identifier[setTraceIds] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[traceIds] operator[SEP] { Keyword[if] operator[SEP] identifier[traceIds] operator[==] Other[null] operator...
public List<ImpersonationToken> getImpersonationTokens(Object userIdOrUsername, ImpersonationState state) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm() .withParam("state", state) .withParam(PER_PAGE_PARAM, getDefaultPerPage()); Response response...
class class_name[name] begin[{] method[getImpersonationTokens, return_type[type[List]], modifier[public], parameter[userIdOrUsername, state]] begin[{] local_variable[type[GitLabApiForm], formData] local_variable[type[Response], response] return[call[response.readEntity, parameter[ClassC...
Keyword[public] identifier[List] operator[<] identifier[ImpersonationToken] operator[>] identifier[getImpersonationTokens] operator[SEP] identifier[Object] identifier[userIdOrUsername] , identifier[ImpersonationState] identifier[state] operator[SEP] Keyword[throws] identifier[GitLabApiException] { identifier[Gi...
public UnspentTransactionOutput build(String txHash, int height, String scriptBytesHex, int index, long value) throws Exception { byte[] utxoScriptBytes = ByteUtil.fromHex(scriptBytesHex); ScriptOutput script = ScriptOutput.fromScriptBytes(utxoScriptBytes); OutPoint outPoint = OutPoint.fromStri...
class class_name[name] begin[{] method[build, return_type[type[UnspentTransactionOutput]], modifier[public], parameter[txHash, height, scriptBytesHex, index, value]] begin[{] local_variable[type[byte], utxoScriptBytes] local_variable[type[ScriptOutput], script] local_variable[type[OutPo...
Keyword[public] identifier[UnspentTransactionOutput] identifier[build] operator[SEP] identifier[String] identifier[txHash] , Keyword[int] identifier[height] , identifier[String] identifier[scriptBytesHex] , Keyword[int] identifier[index] , Keyword[long] identifier[value] operator[SEP] Keyword[throws] identifier[Exc...
public static void closeQuietly(Closeable closeable) { try { if (closeable != null) { closeable.close(); } } catch (IOException e) { LOGGER.log(Level.FINE, e.getMessage(), e); } }
class class_name[name] begin[{] method[closeQuietly, return_type[void], modifier[public static], parameter[closeable]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=closeable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), oper...
Keyword[public] Keyword[static] Keyword[void] identifier[closeQuietly] operator[SEP] identifier[Closeable] identifier[closeable] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[closeable] operator[!=] Other[null] operator[SEP] { identifier[closeable] operator[SEP] id...
private void updateInstructionList(InstructionModel model) { RouteProgress routeProgress = model.retrieveProgress(); boolean isListShowing = instructionListLayout.getVisibility() == VISIBLE; rvInstructions.stopScroll(); instructionListAdapter.updateBannerListWith(routeProgress, isListShowing); }
class class_name[name] begin[{] method[updateInstructionList, return_type[void], modifier[private], parameter[model]] begin[{] local_variable[type[RouteProgress], routeProgress] local_variable[type[boolean], isListShowing] call[rvInstructions.stopScroll, parameter[]] ...
Keyword[private] Keyword[void] identifier[updateInstructionList] operator[SEP] identifier[InstructionModel] identifier[model] operator[SEP] { identifier[RouteProgress] identifier[routeProgress] operator[=] identifier[model] operator[SEP] identifier[retrieveProgress] operator[SEP] operator[SEP] operator[SEP] Keyw...