code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static Table read(ResultSet resultSet) throws SQLException { ResultSetMetaData metaData = resultSet.getMetaData(); Table table = Table.create(); // Setup the columns and add to the table for (int i = 1; i <= metaData.getColumnCount(); i++) { String name = metaData.ge...
class class_name[name] begin[{] method[read, return_type[type[Table]], modifier[public static], parameter[resultSet]] begin[{] local_variable[type[ResultSetMetaData], metaData] local_variable[type[Table], table] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDecla...
Keyword[public] Keyword[static] identifier[Table] identifier[read] operator[SEP] identifier[ResultSet] identifier[resultSet] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[ResultSetMetaData] identifier[metaData] operator[=] identifier[resultSet] operator[SEP] identifier[getMetaData] operator...
public HttpRequest withHeader(String name, String... values) { this.headers.withEntry(header(name, values)); return this; }
class class_name[name] begin[{] method[withHeader, return_type[type[HttpRequest]], modifier[public], parameter[name, values]] begin[{] THIS[member[None.headers]call[None.withEntry, parameter[call[.header, parameter[member[.name], member[.values]]]]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[HttpRequest] identifier[withHeader] operator[SEP] identifier[String] identifier[name] , identifier[String] operator[...] identifier[values] operator[SEP] { Keyword[this] operator[SEP] identifier[headers] operator[SEP] identifier[withEntry] operator[SEP] identifier[header] operator[SEP...
public static String qtPlayerTimecodeFromMovie(MovieBox movie, TimecodeMP4DemuxerTrack timecodeTrack, int mediaFrameNo) throws IOException { TrakBox videoTrack = movie.getVideoTrack(); long editedTv = mediaToEdited(videoTrack, frameToTimevalue(videoTrack, mediaFrameNo), movie.getTimescale())...
class class_name[name] begin[{] method[qtPlayerTimecodeFromMovie, return_type[type[String]], modifier[public static], parameter[movie, timecodeTrack, mediaFrameNo]] begin[{] local_variable[type[TrakBox], videoTrack] local_variable[type[long], editedTv] local_variable[type[TrakBox], tt] ...
Keyword[public] Keyword[static] identifier[String] identifier[qtPlayerTimecodeFromMovie] operator[SEP] identifier[MovieBox] identifier[movie] , identifier[TimecodeMP4DemuxerTrack] identifier[timecodeTrack] , Keyword[int] identifier[mediaFrameNo] operator[SEP] Keyword[throws] identifier[IOException] { identifie...
public RestAssuredMockMvcConfig sessionConfig(SessionConfig sessionConfig) { notNull(sessionConfig, "Session config"); return new RestAssuredMockMvcConfig(logConfig, encoderConfig, decoderConfig, sessionConfig, objectMapperConfig, jsonConfig, xmlConfig, headerConfig, asyncConfig, multiPartConfig, mockMv...
class class_name[name] begin[{] method[sessionConfig, return_type[type[RestAssuredMockMvcConfig]], modifier[public], parameter[sessionConfig]] begin[{] call[.notNull, parameter[member[.sessionConfig], literal["Session config"]]] return[ClassCreator(arguments=[MemberReference(member=logC...
Keyword[public] identifier[RestAssuredMockMvcConfig] identifier[sessionConfig] operator[SEP] identifier[SessionConfig] identifier[sessionConfig] operator[SEP] { identifier[notNull] operator[SEP] identifier[sessionConfig] , literal[String] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[RestA...
public Deferred<Boolean> syncToStorage(final TSDB tsdb, final boolean overwrite) { if (tree_id < 1 || tree_id > 65535) { throw new IllegalArgumentException("Invalid Tree ID"); } // if there aren't any changes, save time and bandwidth by not writing to // storage boolean has_changes...
class class_name[name] begin[{] method[syncToStorage, return_type[type[Deferred]], modifier[public], parameter[tsdb, overwrite]] begin[{] if[binary_operation[binary_operation[member[.tree_id], <, literal[1]], ||, binary_operation[member[.tree_id], >, literal[65535]]]] begin[{] Throw...
Keyword[public] identifier[Deferred] operator[<] identifier[Boolean] operator[>] identifier[syncToStorage] operator[SEP] Keyword[final] identifier[TSDB] identifier[tsdb] , Keyword[final] Keyword[boolean] identifier[overwrite] operator[SEP] { Keyword[if] operator[SEP] identifier[tree_id] operator[<] Other[1] ope...
@Override public UpdateFleetMetadataResult updateFleetMetadata(UpdateFleetMetadataRequest request) { request = beforeClientExecution(request); return executeUpdateFleetMetadata(request); }
class class_name[name] begin[{] method[updateFleetMetadata, return_type[type[UpdateFleetMetadataResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeUpdateFleetMetadata, parameter...
annotation[@] identifier[Override] Keyword[public] identifier[UpdateFleetMetadataResult] identifier[updateFleetMetadata] operator[SEP] identifier[UpdateFleetMetadataRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ope...
public IdType addConditionElement() {//2 IdType t = new IdType(); if (this.condition == null) this.condition = new ArrayList<IdType>(); this.condition.add(t); return t; }
class class_name[name] begin[{] method[addConditionElement, return_type[type[IdType]], modifier[public], parameter[]] begin[{] local_variable[type[IdType], t] if[binary_operation[THIS[member[None.condition]], ==, literal[null]]] begin[{] assign[THIS[member[None.condition]], ...
Keyword[public] identifier[IdType] identifier[addConditionElement] operator[SEP] operator[SEP] { identifier[IdType] identifier[t] operator[=] Keyword[new] identifier[IdType] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[condition] operator[==] Other[nu...
public void setConnectivityInfo(java.util.Collection<ConnectivityInfo> connectivityInfo) { if (connectivityInfo == null) { this.connectivityInfo = null; return; } this.connectivityInfo = new java.util.ArrayList<ConnectivityInfo>(connectivityInfo); }
class class_name[name] begin[{] method[setConnectivityInfo, return_type[void], modifier[public], parameter[connectivityInfo]] begin[{] if[binary_operation[member[.connectivityInfo], ==, literal[null]]] begin[{] assign[THIS[member[None.connectivityInfo]], literal[null]] ...
Keyword[public] Keyword[void] identifier[setConnectivityInfo] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[ConnectivityInfo] operator[>] identifier[connectivityInfo] operator[SEP] { Keyword[if] operator[SEP] identifier[connectivityInfo]...
public List<User> getUsers(HashMap<String, String> queryParameters, int maxResults) throws OAuthSystemException, OAuthProblemException, URISyntaxException { ExtractionContext context = getResource(queryParameters, Constants.GET_USERS_URL); OneloginOAuthJSONResourceResponse oAuthResponse = null; String afterCurso...
class class_name[name] begin[{] method[getUsers, return_type[type[List]], modifier[public], parameter[queryParameters, maxResults]] begin[{] local_variable[type[ExtractionContext], context] local_variable[type[OneloginOAuthJSONResourceResponse], oAuthResponse] local_variable[type[String...
Keyword[public] identifier[List] operator[<] identifier[User] operator[>] identifier[getUsers] operator[SEP] identifier[HashMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[queryParameters] , Keyword[int] identifier[maxResults] operator[SEP] Keyword[throws] identifier[OAuthSystemExcepti...
public static Map.Entry<String, Mapping<?>> field(String name, Mapping<?> mapping) { return FrameworkUtils.entry(name, mapping); }
class class_name[name] begin[{] method[field, return_type[type[Map]], modifier[public static], parameter[name, mapping]] begin[{] return[call[FrameworkUtils.entry, parameter[member[.name], member[.mapping]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[Mapping] operator[<] operator[?] operator[>] operator[>] identifier[field] operator[SEP] identifier[String] identifier[name] , identifier[Mapping] operator[<] operator[?] operator[>] identifier[...
public final Instance getInstance(InstanceName name) { GetInstanceRequest request = GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); return getInstance(request); }
class class_name[name] begin[{] method[getInstance, return_type[type[Instance]], modifier[final public], parameter[name]] begin[{] local_variable[type[GetInstanceRequest], request] return[call[.getInstance, parameter[member[.request]]]] end[}] END[}]
Keyword[public] Keyword[final] identifier[Instance] identifier[getInstance] operator[SEP] identifier[InstanceName] identifier[name] operator[SEP] { identifier[GetInstanceRequest] identifier[request] operator[=] identifier[GetInstanceRequest] operator[SEP] identifier[newBuilder] operator[SEP] operator[SEP] operat...
public void marshall(DisassociateFleetRequest disassociateFleetRequest, ProtocolMarshaller protocolMarshaller) { if (disassociateFleetRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(disasso...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[disassociateFleetRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.disassociateFleetRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argument...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DisassociateFleetRequest] identifier[disassociateFleetRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[disassociateFleetRequest] operator[==] Other[null] opera...
private void loadPreset() { String presetName = getJobProps().get(GobblinConstants.GOBBLIN_PRESET_KEY); if (presetName == null) { return; } GobblinPresets preset = GobblinPresets.fromName(presetName); Properties presetProperties = gobblinPresets.get(preset); if (presetProperties == null) ...
class class_name[name] begin[{] method[loadPreset, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[String], presetName] if[binary_operation[member[.presetName], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}...
Keyword[private] Keyword[void] identifier[loadPreset] operator[SEP] operator[SEP] { identifier[String] identifier[presetName] operator[=] identifier[getJobProps] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[GobblinConstants] operator[SEP] identifier[GOBBLIN_PRESET_KEY] opera...
private boolean put( ImmutableTable.Builder<Granularity, RollupType, TimeValue> ttlMapBuilder, Configuration config, Granularity gran, RollupType rollupType, TtlConfig configKey) { int value; try { value = config.getIntegerProperty(configKey); ...
class class_name[name] begin[{] method[put, return_type[type[boolean]], modifier[private], parameter[ttlMapBuilder, config, gran, rollupType, configKey]] begin[{] local_variable[type[int], value] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=va...
Keyword[private] Keyword[boolean] identifier[put] operator[SEP] identifier[ImmutableTable] operator[SEP] identifier[Builder] operator[<] identifier[Granularity] , identifier[RollupType] , identifier[TimeValue] operator[>] identifier[ttlMapBuilder] , identifier[Configuration] identifier[config] , identifier[Granular...
public @Nonnull Result combine(@Nonnull Result that) { if(this.ordinal < that.ordinal) return that; else return this; }
class class_name[name] begin[{] method[combine, return_type[type[Result]], modifier[public], parameter[that]] begin[{] if[binary_operation[THIS[member[None.ordinal]], <, member[that.ordinal]]] begin[{] return[member[.that]] else begin[{] return[THIS[]] end[}] end[}] END[}]
Keyword[public] annotation[@] identifier[Nonnull] identifier[Result] identifier[combine] operator[SEP] annotation[@] identifier[Nonnull] identifier[Result] identifier[that] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[ordinal] operator[<] identifier[that] operator[SEP] identif...
private Drawable tileifyIndeterminate(Drawable drawable) { if (drawable instanceof AnimationDrawable) { AnimationDrawable background = (AnimationDrawable) drawable; final int N = background.getNumberOfFrames(); AnimationDrawable newBg = new AnimationDrawable(); ne...
class class_name[name] begin[{] method[tileifyIndeterminate, return_type[type[Drawable]], modifier[private], parameter[drawable]] begin[{] if[binary_operation[member[.drawable], instanceof, type[AnimationDrawable]]] begin[{] local_variable[type[AnimationDrawable], background] ...
Keyword[private] identifier[Drawable] identifier[tileifyIndeterminate] operator[SEP] identifier[Drawable] identifier[drawable] operator[SEP] { Keyword[if] operator[SEP] identifier[drawable] Keyword[instanceof] identifier[AnimationDrawable] operator[SEP] { identifier[AnimationDrawable] identifier[backg...
@Path("/{dsID}") @DELETE @Produces(MediaType.APPLICATION_JSON) public Response deleteDatastream(@PathParam(RestParam.PID) String pid, @PathParam(RestParam.DSID) String dsID, @QueryParam(RestParam.START_DT) String startDT, ...
class class_name[name] begin[{] method[deleteDatastream, return_type[type[Response]], modifier[public], parameter[pid, dsID, startDT, endDT, logMessage, flash]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocat...
annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[DELETE] annotation[@] identifier[Produces] operator[SEP] identifier[MediaType] operator[SEP] identifier[APPLICATION_JSON] operator[SEP] Keyword[public] identifier[Response] identifier[deleteDatastream] operator[SEP] anno...
public boolean isNonsingular () { for (int j = 0; j < n; j++) { if (LU[j][j] == 0) return false; } return true; }
class class_name[name] begin[{] method[isNonsingular, return_type[type[boolean]], modifier[public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=LU, postfix_operators=[], prefix_operators=[], qualifi...
Keyword[public] Keyword[boolean] identifier[isNonsingular] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[n] operator[SEP] identifier[j] operator[++] operator[SEP] { Keyword[if] operator[SEP] i...
public void retrievePin( @NonNull String cardId, @NonNull String verificationId, @NonNull String userOneTimeCode, @NonNull IssuingCardPinRetrievalListener listener ) { Map<String, Object> arguments = new HashMap<>(); arguments.put(ARGUMENT_CARD_ID, ca...
class class_name[name] begin[{] method[retrievePin, return_type[void], modifier[public], parameter[cardId, verificationId, userOneTimeCode, listener]] begin[{] local_variable[type[Map], arguments] call[arguments.put, parameter[member[.ARGUMENT_CARD_ID], member[.cardId]]] ...
Keyword[public] Keyword[void] identifier[retrievePin] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[cardId] , annotation[@] identifier[NonNull] identifier[String] identifier[verificationId] , annotation[@] identifier[NonNull] identifier[String] identifier[userOneTimeCode] , annotation...
public static JsonArray from(Object... items) { JsonArray array = new JsonArray(items.length); for (Object item : items) { if (checkType(item)) { array.add(item); } else { throw new IllegalArgumentException("Unsupported type for JsonArray: " + item...
class class_name[name] begin[{] method[from, return_type[type[JsonArray]], modifier[public static], parameter[items]] begin[{] local_variable[type[JsonArray], array] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member...
Keyword[public] Keyword[static] identifier[JsonArray] identifier[from] operator[SEP] identifier[Object] operator[...] identifier[items] operator[SEP] { identifier[JsonArray] identifier[array] operator[=] Keyword[new] identifier[JsonArray] operator[SEP] identifier[items] operator[SEP] identifier[length] operator[...
private boolean checkForDBExistence() throws ClientProtocolException, IOException, URISyntaxException { URI uri = new URI(CouchDBConstants.PROTOCOL, null, httpHost.getHostName(), httpHost.getPort(), CouchDBConstants.URL_SEPARATOR + databaseName.toLowerCase(), null, null); HttpGet ge...
class class_name[name] begin[{] method[checkForDBExistence, return_type[type[boolean]], modifier[private], parameter[]] begin[{] local_variable[type[URI], uri] local_variable[type[HttpGet], get] local_variable[type[HttpResponse], getRes] TryStatement(block=[StatementExpression(e...
Keyword[private] Keyword[boolean] identifier[checkForDBExistence] operator[SEP] operator[SEP] Keyword[throws] identifier[ClientProtocolException] , identifier[IOException] , identifier[URISyntaxException] { identifier[URI] identifier[uri] operator[=] Keyword[new] identifier[URI] operator[SEP] identifier[CouchD...
public AuthorizationInterceptor setFlags(Collection<AuthorizationFlagsEnum> theFlags) { Validate.notNull(theFlags, "theFlags must not be null"); myFlags = new HashSet<>(theFlags); return this; }
class class_name[name] begin[{] method[setFlags, return_type[type[AuthorizationInterceptor]], modifier[public], parameter[theFlags]] begin[{] call[Validate.notNull, parameter[member[.theFlags], literal["theFlags must not be null"]]] assign[member[.myFlags], ClassCreator(argument...
Keyword[public] identifier[AuthorizationInterceptor] identifier[setFlags] operator[SEP] identifier[Collection] operator[<] identifier[AuthorizationFlagsEnum] operator[>] identifier[theFlags] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[theFlags] , literal[Strin...
public static double xbarVariance(FlatDataCollection flatDataCollection) { double n = flatDataCollection.size(); if(n<=1) { throw new IllegalArgumentException("The provided collection must have more than 1 elements."); } //As explained at http://www.fao.org/docrep/0...
class class_name[name] begin[{] method[xbarVariance, return_type[type[double]], modifier[public static], parameter[flatDataCollection]] begin[{] local_variable[type[double], n] if[binary_operation[member[.n], <=, literal[1]]] begin[{] ThrowStatement(expression=ClassCreator(a...
Keyword[public] Keyword[static] Keyword[double] identifier[xbarVariance] operator[SEP] identifier[FlatDataCollection] identifier[flatDataCollection] operator[SEP] { Keyword[double] identifier[n] operator[=] identifier[flatDataCollection] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Ke...
public void localClearDistributedStatistics(Address logicalAddress) { if (trace) log.tracef("LOCAL_CLEAR_DISTRIBUTED_STATISTICS(%s)", logicalAddress); DistributedWorkManager dwm = workManagerCoordinator.resolveDistributedWorkManager(logicalAddress); if (dwm != null && dwm.isDistributedSt...
class class_name[name] begin[{] method[localClearDistributedStatistics, return_type[void], modifier[public], parameter[logicalAddress]] begin[{] if[member[.trace]] begin[{] call[log.tracef, parameter[literal["LOCAL_CLEAR_DISTRIBUTED_STATISTICS(%s)"], member[.logicalAddress]]] ...
Keyword[public] Keyword[void] identifier[localClearDistributedStatistics] operator[SEP] identifier[Address] identifier[logicalAddress] operator[SEP] { Keyword[if] operator[SEP] identifier[trace] operator[SEP] identifier[log] operator[SEP] identifier[tracef] operator[SEP] literal[String] , identifier[logicalAddr...
@Override public void close() { // Close filesystem try { if (allocationTableRandomAccessFile != null) allocationTableRandomAccessFile.close(); } catch (IOException e) { log.error("["+descriptor.getName()+"] Could not close alloca...
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=allocationTableRandomAccessFile, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), opera...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[allocationTableRandomAccessFile] operator[!=] Other[null] operator[SEP] identifier[allocationTableRandomAccessFile] operator[SEP] identif...
@Override protected final void checkIntegrity () throws InternetSCSIException { String exceptionMessage; do { Utils.isReserved(logicalUnitNumber); if (reasonCode == LogoutReasonCode.CLOSE_SESSION && connectionID != 0) { exceptionMessage = "The CID field must...
class class_name[name] begin[{] method[checkIntegrity, return_type[void], modifier[final protected], parameter[]] begin[{] local_variable[type[String], exceptionMessage] do[literal[false]] begin[{] call[Utils.isReserved, parameter[member[.logicalUnitNumber]]] ...
annotation[@] identifier[Override] Keyword[protected] Keyword[final] Keyword[void] identifier[checkIntegrity] operator[SEP] operator[SEP] Keyword[throws] identifier[InternetSCSIException] { identifier[String] identifier[exceptionMessage] operator[SEP] Keyword[do] { identifier[Utils] operator[SEP] iden...
public void validateConfiguration(String configuration) { try { JSONObject json = new JSONObject(configuration); String className = json.optString(CmsDataViewConstants.CONFIG_VIEW_CLASS); Class<?> cls = Class.forName(className, false, getClass().getClassLoader()); ...
class class_name[name] begin[{] method[validateConfiguration, return_type[void], modifier[public], parameter[configuration]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=co...
Keyword[public] Keyword[void] identifier[validateConfiguration] operator[SEP] identifier[String] identifier[configuration] operator[SEP] { Keyword[try] { identifier[JSONObject] identifier[json] operator[=] Keyword[new] identifier[JSONObject] operator[SEP] identifier[configuration] operator[SEP] operat...
@Override public int encode ( byte[] dst, int dstIndex ) { int start = this.headerStart = dstIndex; dstIndex += writeHeaderWireFormat(dst, dstIndex); dstIndex += writeAndXWireFormat(dst, dstIndex); this.length = dstIndex - start; if ( this.digest != null ) { thi...
class class_name[name] begin[{] method[encode, return_type[type[int]], modifier[public], parameter[dst, dstIndex]] begin[{] local_variable[type[int], start] assign[member[.dstIndex], call[.writeHeaderWireFormat, parameter[member[.dst], member[.dstIndex]]]] assign[member[...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[encode] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[dst] , Keyword[int] identifier[dstIndex] operator[SEP] { Keyword[int] identifier[start] operator[=] Keyword[this] operator[SEP] identifier[headerStart] operator[=...
public RequestRoute respondeWith(String method) { Objects.requireNonNull(method, Required.CONTROLLER_METHOD.toString()); this.controllerMethod = method; return this; }
class class_name[name] begin[{] method[respondeWith, return_type[type[RequestRoute]], modifier[public], parameter[method]] begin[{] call[Objects.requireNonNull, parameter[member[.method], call[Required.CONTROLLER_METHOD.toString, parameter[]]]] assign[THIS[member[None.controller...
Keyword[public] identifier[RequestRoute] identifier[respondeWith] operator[SEP] identifier[String] identifier[method] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[method] , identifier[Required] operator[SEP] identifier[CONTROLLER_METHOD] operator[SEP] ide...
protected void printInstanceVariables() { Iterable<VariableDeclarationFragment> fields = getInstanceFields(); if (Iterables.isEmpty(fields)) { newline(); return; } // Need direct access to fields possibly from inner classes that are // promoted to top level classes, so must make all visi...
class class_name[name] begin[{] method[printInstanceVariables, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[Iterable], fields] if[call[Iterables.isEmpty, parameter[member[.fields]]]] begin[{] call[.newline, parameter[]] ...
Keyword[protected] Keyword[void] identifier[printInstanceVariables] operator[SEP] operator[SEP] { identifier[Iterable] operator[<] identifier[VariableDeclarationFragment] operator[>] identifier[fields] operator[=] identifier[getInstanceFields] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] i...
private static Factor computeMarginal(CliqueTree cliqueTree, int factorNum, boolean useSumProduct) { Set<Integer> factorNumsToCombine = Sets.newHashSet(cliqueTree.getNeighboringFactors(factorNum)); factorNumsToCombine.removeAll(cliqueTree.getFactorsInMarginal(factorNum)); List<Factor> factorsToCombine = Li...
class class_name[name] begin[{] method[computeMarginal, return_type[type[Factor]], modifier[private static], parameter[cliqueTree, factorNum, useSumProduct]] begin[{] local_variable[type[Set], factorNumsToCombine] call[factorNumsToCombine.removeAll, parameter[call[cliqueTree.getFactorsI...
Keyword[private] Keyword[static] identifier[Factor] identifier[computeMarginal] operator[SEP] identifier[CliqueTree] identifier[cliqueTree] , Keyword[int] identifier[factorNum] , Keyword[boolean] identifier[useSumProduct] operator[SEP] { identifier[Set] operator[<] identifier[Integer] operator[>] identifier[fa...
public static File find(OperaProduct product) { File binary = findBinaryBasedOnEnvironmentVariable(); if (binary != null) { return binary; } return findBinaryBasedOnPlatform(product); }
class class_name[name] begin[{] method[find, return_type[type[File]], modifier[public static], parameter[product]] begin[{] local_variable[type[File], binary] if[binary_operation[member[.binary], !=, literal[null]]] begin[{] return[member[.binary]] else begin[{] None...
Keyword[public] Keyword[static] identifier[File] identifier[find] operator[SEP] identifier[OperaProduct] identifier[product] operator[SEP] { identifier[File] identifier[binary] operator[=] identifier[findBinaryBasedOnEnvironmentVariable] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identif...
@Override public com.liferay.commerce.price.list.model.CommerceTierPriceEntry createCommerceTierPriceEntry( long commerceTierPriceEntryId) { return _commerceTierPriceEntryLocalService.createCommerceTierPriceEntry(commerceTierPriceEntryId); }
class class_name[name] begin[{] method[createCommerceTierPriceEntry, return_type[type[com]], modifier[public], parameter[commerceTierPriceEntryId]] begin[{] return[call[_commerceTierPriceEntryLocalService.createCommerceTierPriceEntry, parameter[member[.commerceTierPriceEntryId]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[price] operator[SEP] identifier[list] operator[SEP] identifier[model] operator[SEP] identifier[CommerceTierPriceEntry] identifier[createCommerceTierPriceEntry]...
public void finished() { final ScheduledFuture<?> scheduled = nextCall.getAndSet(null); if (scheduled != null) { scheduled.cancel(true); } }
class class_name[name] begin[{] method[finished, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[ScheduledFuture], scheduled] if[binary_operation[member[.scheduled], !=, literal[null]]] begin[{] call[scheduled.cancel, parameter[lite...
Keyword[public] Keyword[void] identifier[finished] operator[SEP] operator[SEP] { Keyword[final] identifier[ScheduledFuture] operator[<] operator[?] operator[>] identifier[scheduled] operator[=] identifier[nextCall] operator[SEP] identifier[getAndSet] operator[SEP] Other[null] operator[SEP] operator[SEP] Keyword[...
public void setChunking() throws IllegalStateException { if (_realIn.getByteLimit()>=0) throw new IllegalStateException("Has Content-Length"); if (_deChunker==null) _deChunker=new ChunkingInputStream(_realIn); in=_deChunker; _chunking=true; ...
class class_name[name] begin[{] method[setChunking, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[_realIn.getByteLimit, parameter[]], >=, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=...
Keyword[public] Keyword[void] identifier[setChunking] operator[SEP] operator[SEP] Keyword[throws] identifier[IllegalStateException] { Keyword[if] operator[SEP] identifier[_realIn] operator[SEP] identifier[getByteLimit] operator[SEP] operator[SEP] operator[>=] Other[0] operator[SEP] Keyword[throw] Keyword[new] id...
public boolean allocate(JobID newJobId, AllocationID newAllocationId) { if (TaskSlotState.FREE == state) { // sanity checks Preconditions.checkState(allocationId == null); Preconditions.checkState(jobId == null); this.jobId = Preconditions.checkNotNull(newJobId); this.allocationId = Preconditions.chec...
class class_name[name] begin[{] method[allocate, return_type[type[boolean]], modifier[public], parameter[newJobId, newAllocationId]] begin[{] if[binary_operation[member[TaskSlotState.FREE], ==, member[.state]]] begin[{] call[Preconditions.checkState, parameter[binary_ope...
Keyword[public] Keyword[boolean] identifier[allocate] operator[SEP] identifier[JobID] identifier[newJobId] , identifier[AllocationID] identifier[newAllocationId] operator[SEP] { Keyword[if] operator[SEP] identifier[TaskSlotState] operator[SEP] identifier[FREE] operator[==] identifier[state] operator[SEP] { ...
private int initializePatternCETable() { int[] cetable = new int[INITIAL_ARRAY_SIZE_]; int cetablesize = cetable.length; int patternlength = pattern_.text_.length(); CollationElementIterator coleiter = utilIter_; if (coleiter == null) { coleiter = new CollationElemen...
class class_name[name] begin[{] method[initializePatternCETable, return_type[type[int]], modifier[private], parameter[]] begin[{] local_variable[type[int], cetable] local_variable[type[int], cetablesize] local_variable[type[int], patternlength] local_variable[type[CollationEleme...
Keyword[private] Keyword[int] identifier[initializePatternCETable] operator[SEP] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[cetable] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[INITIAL_ARRAY_SIZE_] operator[SEP] operator[SEP] Keyword[int] identifier[cetablesize] operat...
@Override public Object addToEnvironment(String propName, Object propVal) { return env.put(propName, propVal); }
class class_name[name] begin[{] method[addToEnvironment, return_type[type[Object]], modifier[public], parameter[propName, propVal]] begin[{] return[call[env.put, parameter[member[.propName], member[.propVal]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[addToEnvironment] operator[SEP] identifier[String] identifier[propName] , identifier[Object] identifier[propVal] operator[SEP] { Keyword[return] identifier[env] operator[SEP] identifier[put] operator[SEP] identifier[propName] , id...
public void marshall(PipelineDescription pipelineDescription, ProtocolMarshaller protocolMarshaller) { if (pipelineDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(pipelineDescription.ge...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[pipelineDescription, protocolMarshaller]] begin[{] if[binary_operation[member[.pipelineDescription], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[PipelineDescription] identifier[pipelineDescription] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[pipelineDescription] operator[==] Other[null] operator[SEP] { ...
public static <K, V> Map<K, V> updateMap(final Map<K, V> original, MapDifference<K, V> diff) throws MergeException { Map<K, V> result = new HashMap<K, V>(original); if (diff.areEqual()) { return result; } for (Entry<K, V> entry : diff.entriesOnlyOnLeft().entrySet()) { ...
class class_name[name] begin[{] method[updateMap, return_type[type[Map]], modifier[public static], parameter[original, diff]] begin[{] local_variable[type[Map], result] if[call[diff.areEqual, parameter[]]] begin[{] return[member[.result]] else begin[{] None e...
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[updateMap] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[original] , identifier[MapDi...
protected static void removeChildInsidePanel( JComponent root , JComponent target ) { int N = root.getComponentCount(); for (int i = 0; i < N; i++) { try { JPanel p = (JPanel)root.getComponent(i); Component[] children = p.getComponents(); for (int j = 0; j < children.length; j++) { if( children...
class class_name[name] begin[{] method[removeChildInsidePanel, return_type[void], modifier[static protected], parameter[root, target]] begin[{] local_variable[type[int], N] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[LocalVariableDeclaration(annotations=[], decl...
Keyword[protected] Keyword[static] Keyword[void] identifier[removeChildInsidePanel] operator[SEP] identifier[JComponent] identifier[root] , identifier[JComponent] identifier[target] operator[SEP] { Keyword[int] identifier[N] operator[=] identifier[root] operator[SEP] identifier[getComponentCount] operator[SEP] ...
@Override public void renderBullet( PositionedText target, double x, double y ) { target.add( x, y, "o" ); }
class class_name[name] begin[{] method[renderBullet, return_type[void], modifier[public], parameter[target, x, y]] begin[{] call[target.add, parameter[member[.x], member[.y], literal["o"]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[renderBullet] operator[SEP] identifier[PositionedText] identifier[target] , Keyword[double] identifier[x] , Keyword[double] identifier[y] operator[SEP] { identifier[target] operator[SEP] identifier[add] operator[SEP] identifier[x] , i...
protected Resource loadAndWatchResource(final ResourceRelocationChange change) { try { Resource _switchResult = null; final ResourceRelocationContext.ChangeType changeType = this.changeType; if (changeType != null) { switch (changeType) { case MOVE: case RENAME: ...
class class_name[name] begin[{] method[loadAndWatchResource, return_type[type[Resource]], modifier[protected], parameter[change]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operato...
Keyword[protected] identifier[Resource] identifier[loadAndWatchResource] operator[SEP] Keyword[final] identifier[ResourceRelocationChange] identifier[change] operator[SEP] { Keyword[try] { identifier[Resource] identifier[_switchResult] operator[=] Other[null] operator[SEP] Keyword[final] identifier[Re...
public static Function<Client<HttpRequest, HttpResponse>, HttpDecodingClient> newDecorator() { return newDecorator( ImmutableList.of(new GzipStreamDecoderFactory(), new DeflateStreamDecoderFactory())); }
class class_name[name] begin[{] method[newDecorator, return_type[type[Function]], modifier[public static], parameter[]] begin[{] return[call[.newDecorator, parameter[call[ImmutableList.of, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_oper...
Keyword[public] Keyword[static] identifier[Function] operator[<] identifier[Client] operator[<] identifier[HttpRequest] , identifier[HttpResponse] operator[>] , identifier[HttpDecodingClient] operator[>] identifier[newDecorator] operator[SEP] operator[SEP] { Keyword[return] identifier[newDecorator] operator[SE...
public static void writeVector( String path, SimpleFeatureCollection featureCollection ) throws IOException { OmsVectorWriter writer = new OmsVectorWriter(); writer.file = path; writer.inVector = featureCollection; writer.process(); }
class class_name[name] begin[{] method[writeVector, return_type[void], modifier[public static], parameter[path, featureCollection]] begin[{] local_variable[type[OmsVectorWriter], writer] assign[member[writer.file], member[.path]] assign[member[writer.inVector], member[.f...
Keyword[public] Keyword[static] Keyword[void] identifier[writeVector] operator[SEP] identifier[String] identifier[path] , identifier[SimpleFeatureCollection] identifier[featureCollection] operator[SEP] Keyword[throws] identifier[IOException] { identifier[OmsVectorWriter] identifier[writer] operator[=] Keyword[n...
public final static void writeExtendedMediumInt(ByteBuffer out, int value) { value = ((value & 0xff000000) >> 24) | (value << 8); out.putInt(value); }
class class_name[name] begin[{] method[writeExtendedMediumInt, return_type[void], modifier[final public static], parameter[out, value]] begin[{] assign[member[.value], binary_operation[binary_operation[binary_operation[member[.value], &, literal[0xff000000]], >>, literal[24]], |, binary_operati...
Keyword[public] Keyword[final] Keyword[static] Keyword[void] identifier[writeExtendedMediumInt] operator[SEP] identifier[ByteBuffer] identifier[out] , Keyword[int] identifier[value] operator[SEP] { identifier[value] operator[=] operator[SEP] operator[SEP] identifier[value] operator[&] literal[Integer] operator[...
public SyncGroupInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, String syncGroupName, SyncGroupInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, syncGroupName, parameters).toBlocking().last().body(); }
class class_name[name] begin[{] method[createOrUpdate, return_type[type[SyncGroupInner]], modifier[public], parameter[resourceGroupName, serverName, databaseName, syncGroupName, parameters]] begin[{] return[call[.createOrUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.serv...
Keyword[public] identifier[SyncGroupInner] identifier[createOrUpdate] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[serverName] , identifier[String] identifier[databaseName] , identifier[String] identifier[syncGroupName] , identifier[SyncGroupInner] identifier[parame...
@Override protected String buildCountSql(String sql) { sql = removeToFrom(sql); sql = removeLastOrderBy(sql); return "select count(*) " + sql; }
class class_name[name] begin[{] method[buildCountSql, return_type[type[String]], modifier[protected], parameter[sql]] begin[{] assign[member[.sql], call[.removeToFrom, parameter[member[.sql]]]] assign[member[.sql], call[.removeLastOrderBy, parameter[member[.sql]]]] retur...
annotation[@] identifier[Override] Keyword[protected] identifier[String] identifier[buildCountSql] operator[SEP] identifier[String] identifier[sql] operator[SEP] { identifier[sql] operator[=] identifier[removeToFrom] operator[SEP] identifier[sql] operator[SEP] operator[SEP] identifier[sql] operator[=] identifier...
protected static <P extends AbstractDecoderProxy<T>, T> Object newInstance( final Class<P> proxyType, final Class<T> decoderType, final T decoder) { if (proxyType == null) { throw new NullPointerException("proxyType"); } if (!StringDecoderProxy.class.isAssignableFrom(proxyT...
class class_name[name] begin[{] method[newInstance, return_type[type[Object]], modifier[static protected], parameter[proxyType, decoderType, decoder]] begin[{] if[binary_operation[member[.proxyType], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Lite...
Keyword[protected] Keyword[static] operator[<] identifier[P] Keyword[extends] identifier[AbstractDecoderProxy] operator[<] identifier[T] operator[>] , identifier[T] operator[>] identifier[Object] identifier[newInstance] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[P] operator[>] identifier[pro...
public void drawThreadSwapOut(GenericTabItem tab, TraceCPU cpu, TraceThread currentThread, TraceThread swappedThread) { TraceObject obj = swappedThread.getCurrentObject(); updateObject(tab, obj); Long x1 = obj.getX(); Long x2 = x1; Long y1 = tab.getYMax(); Long y2 = y1 + ELEMENT_SIZE; drawMarker(tab,...
class class_name[name] begin[{] method[drawThreadSwapOut, return_type[void], modifier[public], parameter[tab, cpu, currentThread, swappedThread]] begin[{] local_variable[type[TraceObject], obj] call[.updateObject, parameter[member[.tab], member[.obj]]] local_variable[type[Long],...
Keyword[public] Keyword[void] identifier[drawThreadSwapOut] operator[SEP] identifier[GenericTabItem] identifier[tab] , identifier[TraceCPU] identifier[cpu] , identifier[TraceThread] identifier[currentThread] , identifier[TraceThread] identifier[swappedThread] operator[SEP] { identifier[TraceObject] identifier...
public void setConnectionHookClassName(String connectionHookClassName) { this.connectionHookClassName = checkNotNull(connectionHookClassName); Object hookClass; try { hookClass = loadClass(connectionHookClassName).newInstance(); this.connectionHook = (ConnectionHook) hookClass; } catch (Exception e) ...
class class_name[name] begin[{] method[setConnectionHookClassName, return_type[void], modifier[public], parameter[connectionHookClassName]] begin[{] assign[THIS[member[None.connectionHookClassName]], call[.checkNotNull, parameter[member[.connectionHookClassName]]]] local_variable[type[O...
Keyword[public] Keyword[void] identifier[setConnectionHookClassName] operator[SEP] identifier[String] identifier[connectionHookClassName] operator[SEP] { Keyword[this] operator[SEP] identifier[connectionHookClassName] operator[=] identifier[checkNotNull] operator[SEP] identifier[connectionHookClassName] operator...
public void setOnColor(final ColorDef ON_COLOR) { onColor = ON_COLOR; init(getInnerBounds().width, getInnerBounds().height); repaint(getInnerBounds()); }
class class_name[name] begin[{] method[setOnColor, return_type[void], modifier[public], parameter[ON_COLOR]] begin[{] assign[member[.onColor], member[.ON_COLOR]] call[.init, parameter[call[.getInnerBounds, parameter[]], call[.getInnerBounds, parameter[]]]] call[....
Keyword[public] Keyword[void] identifier[setOnColor] operator[SEP] Keyword[final] identifier[ColorDef] identifier[ON_COLOR] operator[SEP] { identifier[onColor] operator[=] identifier[ON_COLOR] operator[SEP] identifier[init] operator[SEP] identifier[getInnerBounds] operator[SEP] operator[SEP] operator[SEP] identi...
public void store() { // TODO : Should we keep reference to Objects rather than recreating // everytime? try { XMLObjectWriter writer = XMLObjectWriter.newInstance(new FileOutputStream(persistFile.toString())); writer.setBinding(binding); // Enables cross-ref...
class class_name[name] begin[{] method[store, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[ClassCreator(arguments=[MethodInvocation(arguments...
Keyword[public] Keyword[void] identifier[store] operator[SEP] operator[SEP] { Keyword[try] { identifier[XMLObjectWriter] identifier[writer] operator[=] identifier[XMLObjectWriter] operator[SEP] identifier[newInstance] operator[SEP] Keyword[new] identifier[FileOutputStream] operator[SEP] identifier[per...
public void setErrorOldPassword(UserError error, String style) { m_oldPasswordField.setComponentError(error); m_oldPasswordStyle.setStyle(style); }
class class_name[name] begin[{] method[setErrorOldPassword, return_type[void], modifier[public], parameter[error, style]] begin[{] call[m_oldPasswordField.setComponentError, parameter[member[.error]]] call[m_oldPasswordStyle.setStyle, parameter[member[.style]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setErrorOldPassword] operator[SEP] identifier[UserError] identifier[error] , identifier[String] identifier[style] operator[SEP] { identifier[m_oldPasswordField] operator[SEP] identifier[setComponentError] operator[SEP] identifier[error] operator[SEP] operator[SEP] identi...
public Map<String, ContentUriPlaceHolder> extractAsMap(String input) { HashMap<String, ContentUriPlaceHolder> result = new HashMap<>(); ArrayList<ContentUriPlaceHolder> list = extractPlaceHoldersFromURI(input, new ArrayList<ContentUriPlaceHolder>()); for (ContentUriPlaceHolder item : list) { result.put(item.v...
class class_name[name] begin[{] method[extractAsMap, return_type[type[Map]], modifier[public], parameter[input]] begin[{] local_variable[type[HashMap], result] local_variable[type[ArrayList], list] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=M...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[ContentUriPlaceHolder] operator[>] identifier[extractAsMap] operator[SEP] identifier[String] identifier[input] operator[SEP] { identifier[HashMap] operator[<] identifier[String] , identifier[ContentUriPlaceHolder] operator[>] identifie...
public void processCompleteFrame() throws Http2Exception { Frame currentFrame = getCurrentFrame(); boolean frameSizeError = false; try { currentFrame.processPayload(this); } catch (Http2Exception e) { // If we get an error here, it should be safe to assume that t...
class class_name[name] begin[{] method[processCompleteFrame, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Frame], currentFrame] local_variable[type[boolean], frameSizeError] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[...
Keyword[public] Keyword[void] identifier[processCompleteFrame] operator[SEP] operator[SEP] Keyword[throws] identifier[Http2Exception] { identifier[Frame] identifier[currentFrame] operator[=] identifier[getCurrentFrame] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[frameSizeError] operator...
@SuppressWarnings("Duplicates") public static void main(String[] args) { // init logging PropertyConfigurator.configure( DaftIeWritingExample.class.getResource(PACKAGE + "/log4j.properties")); // create a Daft object with some example data // this object corresponds ...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] call[PropertyConfigurator.configure, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[BinaryOperation(operandl...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { identifier[PropertyConfigurator] operator[SEP] identifier[configure] ...
static Vector2d getNearestVector(Vector2d reference, IAtom fromAtom, List<IBond> bonds) { final List<IAtom> toAtoms = new ArrayList<IAtom>(); for (IBond bond : bonds) { toAtoms.add(bond.getOther(fromAtom)); } return getNearestVector(reference, newUnitVectors(fromAtom, toAto...
class class_name[name] begin[{] method[getNearestVector, return_type[type[Vector2d]], modifier[static], parameter[reference, fromAtom, bonds]] begin[{] local_variable[type[List], toAtoms] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(ar...
Keyword[static] identifier[Vector2d] identifier[getNearestVector] operator[SEP] identifier[Vector2d] identifier[reference] , identifier[IAtom] identifier[fromAtom] , identifier[List] operator[<] identifier[IBond] operator[>] identifier[bonds] operator[SEP] { Keyword[final] identifier[List] operator[<] identifi...
public void setCodePage(DBaseCodePage code) { if (this.columns != null) { throw new IllegalStateException(); } if (code != null) { this.language = code; } }
class class_name[name] begin[{] method[setCodePage, return_type[void], modifier[public], parameter[code]] begin[{] if[binary_operation[THIS[member[None.columns]], !=, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=...
Keyword[public] Keyword[void] identifier[setCodePage] operator[SEP] identifier[DBaseCodePage] identifier[code] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[columns] operator[!=] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException...
public Predict<int[]> getBest(Instance instance, int nbest) { int[][] data; /** * 节点矩阵 */ Node[][] lattice; data = (int[][]) instance.getData(); // target = (int[]) instance.getTarget(); lattice = new Node[data.length][getTemplets().numStates]; for (int ip = 0; ip < data.length; ip++) ...
class class_name[name] begin[{] method[getBest, return_type[type[Predict]], modifier[public], parameter[instance, nbest]] begin[{] local_variable[type[int], data] local_variable[type[Node], lattice] assign[member[.data], Cast(expression=MethodInvocation(arguments=[], member=getD...
Keyword[public] identifier[Predict] operator[<] Keyword[int] operator[SEP] operator[SEP] operator[>] identifier[getBest] operator[SEP] identifier[Instance] identifier[instance] , Keyword[int] identifier[nbest] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[data] ...
@Override public T save(T entity) { // On retourne l'entite enregistree return save(entity, validateIntegrityConstraintOnSave, preValidateReferentialConstraintOnSave, postValidateReferentialConstraintOnSave); }
class class_name[name] begin[{] method[save, return_type[type[T]], modifier[public], parameter[entity]] begin[{] return[call[.save, parameter[member[.entity], member[.validateIntegrityConstraintOnSave], member[.preValidateReferentialConstraintOnSave], member[.postValidateReferentialConstraintOnSave]]]]...
annotation[@] identifier[Override] Keyword[public] identifier[T] identifier[save] operator[SEP] identifier[T] identifier[entity] operator[SEP] { Keyword[return] identifier[save] operator[SEP] identifier[entity] , identifier[validateIntegrityConstraintOnSave] , identifier[preValidateReferentialConstraintOnSave]...
public final <T extends IInvoice, L extends IInvoiceLine<T>> void mkLnFinal( final L pLine, final BigDecimal pTotTxs, final BigDecimal pTotTxsFc, final Boolean pIsTxByUser) { if (pIsTxByUser) { if (pLine.getItsOwner().getForeignCurrency() == null) { if (pLine.getTotalTaxes().compareTo(pTotTx...
class class_name[name] begin[{] method[mkLnFinal, return_type[void], modifier[final public], parameter[pLine, pTotTxs, pTotTxsFc, pIsTxByUser]] begin[{] if[member[.pIsTxByUser]] begin[{] if[binary_operation[call[pLine.getItsOwner, parameter[]], ==, literal[null]]] begin[...
Keyword[public] Keyword[final] operator[<] identifier[T] Keyword[extends] identifier[IInvoice] , identifier[L] Keyword[extends] identifier[IInvoiceLine] operator[<] identifier[T] operator[>] operator[>] Keyword[void] identifier[mkLnFinal] operator[SEP] Keyword[final] identifier[L] identifier[pLine] , Keyword[final] i...
@Override public InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationException { if (inputType.length > 1) throw new InvalidKerasConfigurationException( "Keras Dropout layer accepts only one input (received " + inputType.length + ")"); ...
class class_name[name] begin[{] method[getOutputType, return_type[type[InputType]], modifier[public], parameter[inputType]] begin[{] if[binary_operation[member[inputType.length], >, literal[1]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(...
annotation[@] identifier[Override] Keyword[public] identifier[InputType] identifier[getOutputType] operator[SEP] identifier[InputType] operator[...] identifier[inputType] operator[SEP] Keyword[throws] identifier[InvalidKerasConfigurationException] { Keyword[if] operator[SEP] identifier[inputType] operator[SEP] i...
public static String join(final String[] strings, final String separator) throws IllegalArgumentException { if (strings == null) { throw new IllegalArgumentException("Input array 'strings' can't be null"); } if (separator == null) { throw new IllegalArgumentException("sep...
class class_name[name] begin[{] method[join, return_type[type[String]], modifier[public static], parameter[strings, separator]] begin[{] if[binary_operation[member[.strings], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[],...
Keyword[public] Keyword[static] identifier[String] identifier[join] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[strings] , Keyword[final] identifier[String] identifier[separator] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { Keyword[if] operator[...
@Override public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) { logger.trace("Handle Message Sensor Binary Request"); logger.debug(String.format("Received Sensor Binary Request for Node ID = %d", this.getNode().getNodeId())); int command = serialMessage.getM...
class class_name[name] begin[{] method[handleApplicationCommandRequest, return_type[void], modifier[public], parameter[serialMessage, offset, endpoint]] begin[{] call[logger.trace, parameter[literal["Handle Message Sensor Binary Request"]]] call[logger.debug, parameter[call[Stri...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[handleApplicationCommandRequest] operator[SEP] identifier[SerialMessage] identifier[serialMessage] , Keyword[int] identifier[offset] , Keyword[int] identifier[endpoint] operator[SEP] { identifier[logger] operator[SEP] identifier[trace]...
public Graph<Edge> readUndirectedFromWeighted( File f, Indexer<String> vertexLabels, double minWeight) throws IOException { throw new UnsupportedOperationException(); }
class class_name[name] begin[{] method[readUndirectedFromWeighted, return_type[type[Graph]], modifier[public], parameter[f, vertexLabels, minWeight]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qual...
Keyword[public] identifier[Graph] operator[<] identifier[Edge] operator[>] identifier[readUndirectedFromWeighted] operator[SEP] identifier[File] identifier[f] , identifier[Indexer] operator[<] identifier[String] operator[>] identifier[vertexLabels] , Keyword[double] identifier[minWeight] operator[SEP] Keyword[throws]...
public double getAnalogValue(Pin pin) { double value = getValue(pin); switch (configuration & 0x0C) { case 0x00: { // 1mV break; } case 0x04: { // 250.0 uV value = value * 0.25; break; } case 0x08: { // 62.5 uV value = value * 0.0625; break; ...
class class_name[name] begin[{] method[getAnalogValue, return_type[type[double]], modifier[public], parameter[pin]] begin[{] local_variable[type[double], value] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], valu...
Keyword[public] Keyword[double] identifier[getAnalogValue] operator[SEP] identifier[Pin] identifier[pin] operator[SEP] { Keyword[double] identifier[value] operator[=] identifier[getValue] operator[SEP] identifier[pin] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[configuration] operator[&]...
public MulticastConfig setTrustedInterfaces(Set<String> interfaces) { isNotNull(interfaces, "interfaces"); trustedInterfaces.clear(); trustedInterfaces.addAll(interfaces); return this; }
class class_name[name] begin[{] method[setTrustedInterfaces, return_type[type[MulticastConfig]], modifier[public], parameter[interfaces]] begin[{] call[.isNotNull, parameter[member[.interfaces], literal["interfaces"]]] call[trustedInterfaces.clear, parameter[]] c...
Keyword[public] identifier[MulticastConfig] identifier[setTrustedInterfaces] operator[SEP] identifier[Set] operator[<] identifier[String] operator[>] identifier[interfaces] operator[SEP] { identifier[isNotNull] operator[SEP] identifier[interfaces] , literal[String] operator[SEP] operator[SEP] identifier[trusted...
private String readAttType() throws Exception { if (tryRead('(')) { parseEnumeration(false); return "ENUMERATION"; } else { String typeString = readNmtoken(true); if (handler.stringInterning) { if ("NOTATION" == typeString) { ...
class class_name[name] begin[{] method[readAttType, return_type[type[String]], modifier[private], parameter[]] begin[{] if[call[.tryRead, parameter[literal['(']]]] begin[{] call[.parseEnumeration, parameter[literal[false]]] return[literal["ENUMERATION"]] ...
Keyword[private] identifier[String] identifier[readAttType] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] identifier[tryRead] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[parseEnumeration] operator[SEP] literal[boolean] operator...
public Calendar getStartOfDay(long time) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); int year = cal.get(Calendar.YEAR); int month = cal.get(Calendar.MONTH); int day = cal.get(Calendar.DAY_OF_MONTH); Calendar result = Calendar.getInstance(); ...
class class_name[name] begin[{] method[getStartOfDay, return_type[type[Calendar]], modifier[public], parameter[time]] begin[{] local_variable[type[Calendar], cal] call[cal.setTimeInMillis, parameter[member[.time]]] local_variable[type[int], year] local_variable[type[int]...
Keyword[public] identifier[Calendar] identifier[getStartOfDay] operator[SEP] Keyword[long] identifier[time] operator[SEP] { identifier[Calendar] identifier[cal] operator[=] identifier[Calendar] operator[SEP] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[cal] operator[SEP] identifie...
static public boolean hasDriveLetter(String path) { boolean hasdr = false; if(path != null && path.length() >= 2) { hasdr = (DRIVELETTERS.indexOf(path.charAt(0)) >= 0 && path.charAt(1) == ':'); } return hasdr; }
class class_name[name] begin[{] method[hasDriveLetter, return_type[type[boolean]], modifier[public static], parameter[path]] begin[{] local_variable[type[boolean], hasdr] if[binary_operation[binary_operation[member[.path], !=, literal[null]], &&, binary_operation[call[path.length, param...
Keyword[static] Keyword[public] Keyword[boolean] identifier[hasDriveLetter] operator[SEP] identifier[String] identifier[path] operator[SEP] { Keyword[boolean] identifier[hasdr] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[path] operator[!=] Other[null] operator[&&] identifier[p...
DatanodeCommand[] handleHeartbeat(DatanodeRegistration nodeReg, long capacity, long dfsUsed, long remaining, long namespaceUsed, int xceiverCount, int xmitsInProgress) throws IOException { DatanodeCommand cmd = null; synchronized (heart...
class class_name[name] begin[{] method[handleHeartbeat, return_type[type[DatanodeCommand]], modifier[default], parameter[nodeReg, capacity, dfsUsed, remaining, namespaceUsed, xceiverCount, xmitsInProgress]] begin[{] local_variable[type[DatanodeCommand], cmd] SYNCHRONIZED[member[.heartbe...
identifier[DatanodeCommand] operator[SEP] operator[SEP] identifier[handleHeartbeat] operator[SEP] identifier[DatanodeRegistration] identifier[nodeReg] , Keyword[long] identifier[capacity] , Keyword[long] identifier[dfsUsed] , Keyword[long] identifier[remaining] , Keyword[long] identifier[namespaceUsed] , Keyword[i...
public void jjtAddChild (final Node aNode, final int nIndex) { if (m_aChildren == null) m_aChildren = new CSSNode [nIndex + 1]; else if (nIndex >= m_aChildren.length) { // Does not really occur here final CSSNode [] aTmpArray = new CSSNode [nIndex + 1]; System.arrayco...
class class_name[name] begin[{] method[jjtAddChild, return_type[void], modifier[public], parameter[aNode, nIndex]] begin[{] if[binary_operation[member[.m_aChildren], ==, literal[null]]] begin[{] assign[member[.m_aChildren], ArrayCreator(dimensions=[BinaryOperation(operandl=MemberRef...
Keyword[public] Keyword[void] identifier[jjtAddChild] operator[SEP] Keyword[final] identifier[Node] identifier[aNode] , Keyword[final] Keyword[int] identifier[nIndex] operator[SEP] { Keyword[if] operator[SEP] identifier[m_aChildren] operator[==] Other[null] operator[SEP] identifier[m_aChildren] operator[=] Keyw...
private Node<K,V> nextSmaller(final Node<K,V> node, final int index) { Node<K,V> lval; if (node == null) { lval = null; } else if (node.getLeft(index) != null) { // everything to the node's left is smaller. The most of // the right node's descendan...
class class_name[name] begin[{] method[nextSmaller, return_type[type[Node]], modifier[private], parameter[node, index]] begin[{] local_variable[type[Node], lval] if[binary_operation[member[.node], ==, literal[null]]] begin[{] assign[member[.lval], literal[null]] ...
Keyword[private] identifier[Node] operator[<] identifier[K] , identifier[V] operator[>] identifier[nextSmaller] operator[SEP] Keyword[final] identifier[Node] operator[<] identifier[K] , identifier[V] operator[>] identifier[node] , Keyword[final] Keyword[int] identifier[index] operator[SEP] { identifier[Node] ...
@Override public void reconfigurePropertyImpl(String property, String newVal) throws ReconfigurationException { if (property.equals("dfs.data.dir")) { try { LOG.info("Reconfigure " + property + " to " + newVal); this.refreshVolumes(newVal); } catch (Exception e) { throw ne...
class class_name[name] begin[{] method[reconfigurePropertyImpl, return_type[void], modifier[public], parameter[property, newVal]] begin[{] if[call[property.equals, parameter[literal["dfs.data.dir"]]]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(argum...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[reconfigurePropertyImpl] operator[SEP] identifier[String] identifier[property] , identifier[String] identifier[newVal] operator[SEP] Keyword[throws] identifier[ReconfigurationException] { Keyword[if] operator[SEP] identifier[property] o...
public void processTimeout(TimeoutEvent timeout) { ClientTransaction trans = timeout.getClientTransaction(); if (trans == null) { return; } SipTransaction sip_trans = null; synchronized (respTransactions) { sip_trans = (SipTransaction) respTransactions.get(trans); } if (sip_tra...
class class_name[name] begin[{] method[processTimeout, return_type[void], modifier[public], parameter[timeout]] begin[{] local_variable[type[ClientTransaction], trans] if[binary_operation[member[.trans], ==, literal[null]]] begin[{] return[None] else begin[{] None ...
Keyword[public] Keyword[void] identifier[processTimeout] operator[SEP] identifier[TimeoutEvent] identifier[timeout] operator[SEP] { identifier[ClientTransaction] identifier[trans] operator[=] identifier[timeout] operator[SEP] identifier[getClientTransaction] operator[SEP] operator[SEP] operator[SEP] Keyword[if] ...
public final BELScriptParser.record_return record() throws RecognitionException { BELScriptParser.record_return retval = new BELScriptParser.record_return(); retval.start = input.LT(1); Object root_0 = null; BELScriptParser.define_namespace_return define_namespace5 = null; BEL...
class class_name[name] begin[{] method[record, return_type[type[BELScriptParser]], modifier[final public], parameter[]] begin[{] local_variable[type[BELScriptParser], retval] assign[member[retval.start], call[input.LT, parameter[literal[1]]]] local_variable[type[Object], root_0]...
Keyword[public] Keyword[final] identifier[BELScriptParser] operator[SEP] identifier[record_return] identifier[record] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[BELScriptParser] operator[SEP] identifier[record_return] identifier[retval] operator[=] Keyword[new] iden...
public void marshall(StartSchemaExtensionRequest startSchemaExtensionRequest, ProtocolMarshaller protocolMarshaller) { if (startSchemaExtensionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[startSchemaExtensionRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.startSchemaExtensionRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(ar...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[StartSchemaExtensionRequest] identifier[startSchemaExtensionRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[startSchemaExtensionRequest] operator[==] Other[nu...
@SuppressWarnings("rawtypes") public DefaultResilienceStrategyProviderConfiguration addResilienceStrategyFor(String alias, Class<? extends ResilienceStrategy> clazz, Object... arguments) { getDefaults().put(alias, new DefaultResilienceStrategyConfiguration(clazz, arguments)); return this; }
class class_name[name] begin[{] method[addResilienceStrategyFor, return_type[type[DefaultResilienceStrategyProviderConfiguration]], modifier[public], parameter[alias, clazz, arguments]] begin[{] call[.getDefaults, parameter[]] return[THIS[]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[DefaultResilienceStrategyProviderConfiguration] identifier[addResilienceStrategyFor] operator[SEP] identifier[String] identifier[alias] , identifier[Class] operator[<] operator[?] Keyword[extends] identifi...
public URI getStandardUri() { try { Catalog cat = dataset.getParentCatalog(); if (cat == null) return new URI(getUnresolvedUrlName()); return cat.resolveUri(getUnresolvedUrlName()); } catch (java.net.URISyntaxException e) { throw new RuntimeException("Error parsing URL= " + getU...
class class_name[name] begin[{] method[getStandardUri, return_type[type[URI]], modifier[public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getParentCatalog, postfix_...
Keyword[public] identifier[URI] identifier[getStandardUri] operator[SEP] operator[SEP] { Keyword[try] { identifier[Catalog] identifier[cat] operator[=] identifier[dataset] operator[SEP] identifier[getParentCatalog] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[cat] ope...
public static <K, V extends Comparable> Map<K, V> sortByValue(Map<K, V> map, final boolean reverse) { return sortByValueInternal(map, reverse ? Ordering.from(new ComparableEntryValueComparator<K, V>()).reverse() : new ComparableEntryValueComparator<K, V>()); }
class class_name[name] begin[{] method[sortByValue, return_type[type[Map]], modifier[public static], parameter[map, reverse]] begin[{] return[call[.sortByValueInternal, parameter[member[.map], TernaryExpression(condition=MemberReference(member=reverse, postfix_operators=[], prefix_operators=[], qualifi...
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] Keyword[extends] identifier[Comparable] operator[>] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[sortByValue] operator[SEP] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[ma...
public ZooJdoProperties setOptimistic(boolean flag) { DBTracer.logCall(this, flag); put(Constants.PROPERTY_OPTIMISTIC, Boolean.toString(flag)); if (flag) { throw new UnsupportedOperationException(); } return this; }
class class_name[name] begin[{] method[setOptimistic, return_type[type[ZooJdoProperties]], modifier[public], parameter[flag]] begin[{] call[DBTracer.logCall, parameter[THIS[], member[.flag]]] call[.put, parameter[member[Constants.PROPERTY_OPTIMISTIC], call[Boolean.toString, para...
Keyword[public] identifier[ZooJdoProperties] identifier[setOptimistic] operator[SEP] Keyword[boolean] identifier[flag] operator[SEP] { identifier[DBTracer] operator[SEP] identifier[logCall] operator[SEP] Keyword[this] , identifier[flag] operator[SEP] operator[SEP] identifier[put] operator[SEP] identifier[Consta...
public EncryptionMaterials addDescription(String name, String value) { desc.put(name, value); return this; }
class class_name[name] begin[{] method[addDescription, return_type[type[EncryptionMaterials]], modifier[public], parameter[name, value]] begin[{] call[desc.put, parameter[member[.name], member[.value]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[EncryptionMaterials] identifier[addDescription] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[value] operator[SEP] { identifier[desc] operator[SEP] identifier[put] operator[SEP] identifier[name] , identifier[value] operator[SEP] operator[SEP] Keywo...
public static String getByName(String name) { String val = multipoints.get(name); if (val != null) return val; int codepoint = extended.codepointForName(name); if (codepoint != empty) return new String(new int[]{codepoint}, 0, 1); return emptyName; }
class class_name[name] begin[{] method[getByName, return_type[type[String]], modifier[public static], parameter[name]] begin[{] local_variable[type[String], val] if[binary_operation[member[.val], !=, literal[null]]] begin[{] return[member[.val]] else begin[{] None end[}]...
Keyword[public] Keyword[static] identifier[String] identifier[getByName] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[String] identifier[val] operator[=] identifier[multipoints] operator[SEP] identifier[get] operator[SEP] identifier[name] operator[SEP] operator[SEP] Keyword[if] op...
public java.util.List<String> getAccess() { if (access == null) { access = new com.amazonaws.internal.SdkInternalList<String>(); } return access; }
class class_name[name] begin[{] method[getAccess, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.access], ==, literal[null]]] begin[{] assign[member[.access], ClassCreator(arguments=[], body=None, constructor_type_arguments=N...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[getAccess] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[access] operator[==] Other[null] operator[SEP] { identifier[access] operato...
public static Object getBean(String name, Class requiredType) throws BeansException { return applicationContext.getBean(name, requiredType); }
class class_name[name] begin[{] method[getBean, return_type[type[Object]], modifier[public static], parameter[name, requiredType]] begin[{] return[call[applicationContext.getBean, parameter[member[.name], member[.requiredType]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Object] identifier[getBean] operator[SEP] identifier[String] identifier[name] , identifier[Class] identifier[requiredType] operator[SEP] Keyword[throws] identifier[BeansException] { Keyword[return] identifier[applicationContext] operator[SEP] identifier[getBean] operat...
public void beforeSuite(String suiteName, String ... testGroups) { testSuiteListener.onStart(); if (!CollectionUtils.isEmpty(beforeSuite)) { for (SequenceBeforeSuite sequenceBeforeSuite : beforeSuite) { try { if (sequenceBeforeSuite.shouldExecute(suiteNam...
class class_name[name] begin[{] method[beforeSuite, return_type[void], modifier[public], parameter[suiteName, testGroups]] begin[{] call[testSuiteListener.onStart, parameter[]] if[call[CollectionUtils.isEmpty, parameter[member[.beforeSuite]]]] begin[{] ForStatement(b...
Keyword[public] Keyword[void] identifier[beforeSuite] operator[SEP] identifier[String] identifier[suiteName] , identifier[String] operator[...] identifier[testGroups] operator[SEP] { identifier[testSuiteListener] operator[SEP] identifier[onStart] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SE...
private PEData loadData() throws IOException { PESignature pesig = new PESignature(file); pesig.read(); checkState(pesig.exists(), "no valid pe file, signature not found"); // read all headers try (RandomAccessFile raf = new RandomAccessFile(file, "r")) { ...
class class_name[name] begin[{] method[loadData, return_type[type[PEData]], modifier[private], parameter[]] begin[{] local_variable[type[PESignature], pesig] call[pesig.read, parameter[]] call[.checkState, parameter[call[pesig.exists, parameter[]], literal["no valid pe f...
Keyword[private] identifier[PEData] identifier[loadData] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[PESignature] identifier[pesig] operator[=] Keyword[new] identifier[PESignature] operator[SEP] identifier[file] operator[SEP] operator[SEP] identifier[pesig] operator[SEP] iden...
public TransportApiResult<FareProduct> getFareProduct(String fareProductId) { if (Extensions.isNullOrWhiteSpace(fareProductId)) { throw new IllegalArgumentException("FareProductId is required."); } return TransportApiClientCalls.getFareProduct(tokenComponent, settings, farePro...
class class_name[name] begin[{] method[getFareProduct, return_type[type[TransportApiResult]], modifier[public], parameter[fareProductId]] begin[{] if[call[Extensions.isNullOrWhiteSpace, parameter[member[.fareProductId]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Li...
Keyword[public] identifier[TransportApiResult] operator[<] identifier[FareProduct] operator[>] identifier[getFareProduct] operator[SEP] identifier[String] identifier[fareProductId] operator[SEP] { Keyword[if] operator[SEP] identifier[Extensions] operator[SEP] identifier[isNullOrWhiteSpace] operator[SEP] identifi...
public FacesConfigProtectedViewsType<FacesConfigType<T>> getOrCreateProtectedViews() { List<Node> nodeList = childNode.get("protected-views"); if (nodeList != null && nodeList.size() > 0) { return new FacesConfigProtectedViewsTypeImpl<FacesConfigType<T>>(this, "protected-views", childNode...
class class_name[name] begin[{] method[getOrCreateProtectedViews, return_type[type[FacesConfigProtectedViewsType]], modifier[public], parameter[]] begin[{] local_variable[type[List], nodeList] if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operati...
Keyword[public] identifier[FacesConfigProtectedViewsType] operator[<] identifier[FacesConfigType] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateProtectedViews] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList] operator[=] identi...
private static boolean isRingSystemSproutedWithNonRingDoubleBonds(IAtomContainer fullContainer, IAtomContainer isolatedRingSystem) { Iterator<IAtom> atoms = isolatedRingSystem.atoms().iterator(); while (atoms.hasNext()) { IAtom atom = atoms.next(); Iterator<IBond> nei...
class class_name[name] begin[{] method[isRingSystemSproutedWithNonRingDoubleBonds, return_type[type[boolean]], modifier[private static], parameter[fullContainer, isolatedRingSystem]] begin[{] local_variable[type[Iterator], atoms] while[call[atoms.hasNext, parameter[]]] begin[{] ...
Keyword[private] Keyword[static] Keyword[boolean] identifier[isRingSystemSproutedWithNonRingDoubleBonds] operator[SEP] identifier[IAtomContainer] identifier[fullContainer] , identifier[IAtomContainer] identifier[isolatedRingSystem] operator[SEP] { identifier[Iterator] operator[<] identifier[IAtom] operator[>] i...
private static Map<String, Object> getActivity(Replication replicator) { // For schema, see http://wiki.apache.org/couchdb/HttpGetActiveTasks Map<String, Object> activity = new HashMap<String, Object>(); String source = replicator.getRemoteUrl().toExternalForm(); String target = replica...
class class_name[name] begin[{] method[getActivity, return_type[type[Map]], modifier[private static], parameter[replicator]] begin[{] local_variable[type[Map], activity] local_variable[type[String], source] local_variable[type[String], target] if[call[replicator.isPull, ...
Keyword[private] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[getActivity] operator[SEP] identifier[Replication] identifier[replicator] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[activi...
@Override @SuppressWarnings("unchecked") public <T> List<T> getResultList(JPAQuery<T> query, Expression<T> projection) { Query jpaQuery = query.createQuery(); if (jpaQuery instanceof QueryImpl) { QueryImpl casted = (QueryImpl) jpaQuery; if (casted.getDatabaseQuery() inst...
class class_name[name] begin[{] method[getResultList, return_type[type[List]], modifier[public], parameter[query, projection]] begin[{] local_variable[type[Query], jpaQuery] if[binary_operation[member[.jpaQuery], instanceof, type[QueryImpl]]] begin[{] local_variable[type[Que...
annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[getResultList] operator[SEP] identifier[JPAQuery] operator[<] identifier[T] op...
protected void irregular(String singular, String plural) { plural = lower(plural); singular = lower(singular); plural(newIrregularRule(singular, plural, locale)); singular(newIrregularRule(plural, singular, locale)); }
class class_name[name] begin[{] method[irregular, return_type[void], modifier[protected], parameter[singular, plural]] begin[{] assign[member[.plural], call[.lower, parameter[member[.plural]]]] assign[member[.singular], call[.lower, parameter[member[.singular]]]] ...
Keyword[protected] Keyword[void] identifier[irregular] operator[SEP] identifier[String] identifier[singular] , identifier[String] identifier[plural] operator[SEP] { identifier[plural] operator[=] identifier[lower] operator[SEP] identifier[plural] operator[SEP] operator[SEP] identifier[singular] operator[=] iden...
public double[][] latLonToProj(double[][] from, double[][] to, int latIndex, int lonIndex) { int cnt = from[0].length; double[] fromLatA = from[latIndex]; double[] fromLonA = from[lonIndex]; double[] resultXA = to[INDEX_X]; double[] resultYA = to[INDEX_Y]; ...
class class_name[name] begin[{] method[latLonToProj, return_type[type[double]], modifier[public], parameter[from, to, latIndex, lonIndex]] begin[{] local_variable[type[int], cnt] local_variable[type[double], fromLatA] local_variable[type[double], fromLonA] local_variable[type[do...
Keyword[public] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[latLonToProj] operator[SEP] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[from] , Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[to] , Keyword[int...
private void invalidateSync() { Log.d("AndroidClockSync", "Starting sync..."); new Thread() { @Override public void run() { SntpClient client = new SntpClient(); ExponentialBackoff exponentialBackoff = new ExponentialBackoff(); whil...
class class_name[name] begin[{] method[invalidateSync, return_type[void], modifier[private], parameter[]] begin[{] call[Log.d, parameter[literal["AndroidClockSync"], literal["Starting sync..."]]] ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=...
Keyword[private] Keyword[void] identifier[invalidateSync] operator[SEP] operator[SEP] { identifier[Log] operator[SEP] identifier[d] operator[SEP] literal[String] , literal[String] operator[SEP] operator[SEP] Keyword[new] identifier[Thread] operator[SEP] operator[SEP] { annotation[@] identifier[Overri...
public static boolean isCompositeComponent(UIComponent component) { if (component == null) { throw new NullPointerException(); } boolean result = false; if (null != component.isCompositeComponent) { result = component.isCompositeComponent.booleanValue(); ...
class class_name[name] begin[{] method[isCompositeComponent, return_type[type[boolean]], modifier[public static], parameter[component]] begin[{] if[binary_operation[member[.component], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, const...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isCompositeComponent] operator[SEP] identifier[UIComponent] identifier[component] operator[SEP] { Keyword[if] operator[SEP] identifier[component] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerExcep...
private Servlet makeUnavailable(UnavailableException e) throws UnavailableException { _unavailableEx=e; _unavailable=-1; if (e.isPermanent()) _unavailable=-1; else { if (_unavailableEx.getUnavailableSeconds()>0) _unavailable=System....
class class_name[name] begin[{] method[makeUnavailable, return_type[type[Servlet]], modifier[private], parameter[e]] begin[{] assign[member[._unavailableEx], member[.e]] assign[member[._unavailable], literal[1]] if[call[e.isPermanent, parameter[]]] begin[{] ...
Keyword[private] identifier[Servlet] identifier[makeUnavailable] operator[SEP] identifier[UnavailableException] identifier[e] operator[SEP] Keyword[throws] identifier[UnavailableException] { identifier[_unavailableEx] operator[=] identifier[e] operator[SEP] identifier[_unavailable] operator[=] operator[-] Other[...
public boolean isDirectory() { if (sftp.getVersion() > 3) { return type == SSH_FILEXFER_TYPE_DIRECTORY; } else if (permissions != null && (permissions.longValue() & SftpFileAttributes.S_IFDIR) == SftpFileAttributes.S_IFDIR) { return true; } else { return false; } }
class class_name[name] begin[{] method[isDirectory, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[binary_operation[call[sftp.getVersion, parameter[]], >, literal[3]]] begin[{] return[binary_operation[member[.type], ==, member[.SSH_FILEXFER_TYPE_DIRECTORY]]] ...
Keyword[public] Keyword[boolean] identifier[isDirectory] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[sftp] operator[SEP] identifier[getVersion] operator[SEP] operator[SEP] operator[>] Other[3] operator[SEP] { Keyword[return] identifier[type] operator[==] identifier[SSH_FILEXFER_...
public static ModuleFinder instance(Context context) { ModuleFinder instance = context.get(moduleFinderKey); if (instance == null) instance = new ModuleFinder(context); return instance; }
class class_name[name] begin[{] method[instance, return_type[type[ModuleFinder]], modifier[public static], parameter[context]] begin[{] local_variable[type[ModuleFinder], instance] if[binary_operation[member[.instance], ==, literal[null]]] begin[{] assign[member[.instance], ...
Keyword[public] Keyword[static] identifier[ModuleFinder] identifier[instance] operator[SEP] identifier[Context] identifier[context] operator[SEP] { identifier[ModuleFinder] identifier[instance] operator[=] identifier[context] operator[SEP] identifier[get] operator[SEP] identifier[moduleFinderKey] operator[SEP] o...