signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Component { /** * 构建配置参数
* @ param params 参数 */
protected void buildConfigParams ( final Map < String , String > params ) { } } | params . put ( WepayField . APP_ID , wepay . getAppId ( ) ) ; params . put ( WepayField . MCH_ID , wepay . getMchId ( ) ) ; |
public class ValueBox { /** * Creates a ValueBox widget that wraps an existing & lt ; input type = ' text ' & gt ; element .
* This element must already be attached to the document . If the element is removed from the
* document , you must call { @ link RootPanel # detachNow ( Widget ) } .
* @ param < T > the val... | // Assert that the element is attached .
assert Document . get ( ) . getBody ( ) . isOrHasChild ( element ) ; final ValueBox < T > valueBox = new ValueBox < > ( element , renderer , parser ) ; // Mark it attached and remember it for cleanup .
valueBox . onAttach ( ) ; RootPanel . detachOnWindowClose ( valueBox ) ; retu... |
public class DefaultEventStudio { /** * Adds a { @ link Listener } ( with the given priority and strength ) to the hidden station listening for the given event class , hiding the station abstraction .
* @ see EventStudio # add ( Listener , String , int , ReferenceStrength )
* @ see DefaultEventStudio # HIDDEN _ STA... | add ( eventClass , listener , HIDDEN_STATION , priority , strength ) ; |
public class AsyncLibrary { /** * @ see com . ibm . io . async . IAsyncProvider # dispose ( long ) */
@ Override public long dispose ( long channelIdentifier ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "dispose" , Long . valueOf ( channelIdentifier ) ) ; } long rc = 0L ; synchronized ( oneAtATime ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "have lock" ) ; } if ( aioInit... |
public class Cache2kBuilder { /** * Enables write through operation and sets a writer customization that gets
* called synchronously upon cache mutations . By default write through is not enabled . */
public final Cache2kBuilder < K , V > writer ( CacheWriter < K , V > w ) { } } | config ( ) . setWriter ( wrapCustomizationInstance ( w ) ) ; return this ; |
public class Property { /** * Writes one property of the given object to { @ link DataWriter } .
* @ param pruner
* Determines how to prune the object graph tree . */
@ SuppressWarnings ( "unchecked" ) public void writeTo ( Object object , TreePruner pruner , DataWriter writer ) throws IOException { } } | TreePruner child = pruner . accept ( object , this ) ; if ( child == null ) return ; Object d = writer . getExportConfig ( ) . getExportInterceptor ( ) . getValue ( this , object , writer . getExportConfig ( ) ) ; if ( ( d == null && skipNull ) || d == ExportInterceptor . SKIP ) { // don ' t write anything
return ; } i... |
public class PortableFinderEnumeration { /** * object . */
private void readObject ( java . io . ObjectInputStream in ) throws IOException , ClassNotFoundException { } } | in . defaultReadObject ( ) ; // read in the eyecatcher for this object ( WSFE in ascii )
byte [ ] ec = new byte [ Constants . EYE_CATCHER_LENGTH ] ; // d164415 start
int bytesRead = 0 ; for ( int offset = 0 ; offset < Constants . EYE_CATCHER_LENGTH ; offset += bytesRead ) { bytesRead = in . read ( ec , offset , Constan... |
public class SecureHash { /** * Get the hash of the supplied content , using the digest identified by the supplied name . Note that this method never closes
* the supplied stream .
* @ param digestName the name of the hashing function ( or { @ link MessageDigest message digest } ) that should be used
* @ param st... | CheckArg . isNotNull ( stream , "stream" ) ; MessageDigest digest = MessageDigest . getInstance ( digestName ) ; assert digest != null ; int bufSize = 1024 ; byte [ ] buffer = new byte [ bufSize ] ; int n = stream . read ( buffer , 0 , bufSize ) ; while ( n != - 1 ) { digest . update ( buffer , 0 , n ) ; n = stream . r... |
public class LocalQPConsumerKey { /** * Method notifyReceiveAllowed
* < p > Notify the consumerKeys consumerPoint about change of Receive Allowed state
* @ param isAllowed - New state of Receive Allowed for localization */
public void notifyReceiveAllowed ( boolean isAllowed , DestinationHandler destinationBeingMod... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "notifyReceiveAllowed" , Boolean . valueOf ( isAllowed ) ) ; if ( consumerPoint . destinationMatches ( destinationBeingModified , consumerDispatcher ) ) { consumerPoint . notifyReceiveAllowed ( isAllowed ) ; } if ( TraceComp... |
public class JwtTokenCipherSigningPublicKeyEndpoint { /** * Fetch public key .
* @ param service the service
* @ return the string
* @ throws Exception the exception */
@ ReadOperation ( produces = MediaType . TEXT_PLAIN_VALUE ) public String fetchPublicKey ( @ Nullable final String service ) throws Exception { }... | val factory = KeyFactory . getInstance ( "RSA" ) ; var signingKey = tokenCipherExecutor . getSigningKey ( ) ; if ( StringUtils . isNotBlank ( service ) ) { val registeredService = this . servicesManager . findServiceBy ( service ) ; RegisteredServiceAccessStrategyUtils . ensureServiceAccessIsAllowed ( registeredService... |
public class CodecCollector { /** * Collect intersection prefixes .
* @ param fi
* the fi
* @ return the sets the
* @ throws IOException
* Signals that an I / O exception has occurred . */
private static Set < String > collectIntersectionPrefixes ( FieldInfo fi ) throws IOException { } } | if ( fi != null ) { Set < String > result = new HashSet < > ( ) ; String intersectingPrefixes = fi . getAttribute ( MtasCodecPostingsFormat . MTAS_FIELDINFO_ATTRIBUTE_PREFIX_INTERSECTION ) ; if ( intersectingPrefixes != null ) { String [ ] prefixes = intersectingPrefixes . split ( Pattern . quote ( MtasToken . DELIMITE... |
public class TableForm { /** * Add a File Entry Field .
* @ param tag The form name of the element
* @ param label The label for the element in the table . */
public Input addFileField ( String tag , String label ) { } } | Input i = new Input ( Input . File , tag ) ; addField ( label , i ) ; return i ; |
public class Stripe { /** * Create a { @ link Source } using an { @ link AsyncTask } on the default { @ link Executor } with a
* publishable api key that has already been set on this { @ link Stripe } instance .
* @ param sourceParams the { @ link SourceParams } to be used
* @ param callback a { @ link SourceCall... | createSource ( sourceParams , callback , null , null ) ; |
public class UiLifecycleHelper { /** * Retrieves an instance of AppEventsLogger that can be used for the current Session , if any . Different
* instances may be returned if the current Session changes , so this value should not be cached for long
* periods of time - - always call getAppEventsLogger to get the right... | Session session = Session . getActiveSession ( ) ; if ( session == null ) { return null ; } if ( appEventsLogger == null || ! appEventsLogger . isValidForSession ( session ) ) { if ( appEventsLogger != null ) { // Pretend we got stopped so the old logger will persist its results now , in case we get stopped
// before e... |
public class SipApplicationDispatcherImpl { /** * set the outbound interfaces on all servlet context of applications deployed */
private void resetOutboundInterfaces ( ) { } } | List < SipURI > outboundInterfaces = sipNetworkInterfaceManager . getOutboundInterfaces ( ) ; for ( SipContext sipContext : applicationDeployed . values ( ) ) { sipContext . getServletContext ( ) . setAttribute ( javax . servlet . sip . SipServlet . OUTBOUND_INTERFACES , outboundInterfaces ) ; } |
public class ElementService { /** * The referenced view should not show the element identified by elementName
* @ param viewName
* @ param elementName
* @ throws IllegalAccessException
* @ throws InterruptedException */
public void viewShouldNotShowElement ( String viewName , String elementName ) throws Illegal... | boolean pass = false ; long startOfLookup = System . currentTimeMillis ( ) ; int timeoutInMillies = getSeleniumManager ( ) . getTimeout ( ) * 1000 ; while ( ! pass ) { WebElement found = getElementFromReferencedView ( viewName , elementName ) ; try { pass = ! found . isDisplayed ( ) ; } catch ( NoSuchElementException e... |
public class DeltaFIFO { /** * List keys list .
* @ return the list */
@ Override public List < String > listKeys ( ) { } } | lock . readLock ( ) . lock ( ) ; try { List < String > keyList = new ArrayList < > ( items . size ( ) ) ; for ( Map . Entry < String , Deque < MutablePair < DeltaType , Object > > > entry : items . entrySet ( ) ) { keyList . add ( entry . getKey ( ) ) ; } return keyList ; } finally { lock . readLock ( ) . unlock ( ) ; ... |
public class Endpoint { /** * Convenience factory method for Endpoint , returns a created Endpoint object from a name
* @ param domainId the domain id .
* @ param name the endpoint name .
* @ param password the endpoint password
* @ param enabled indicates if the endpoint is active or not
* @ return the creat... | return create ( domainId , name , password , null , enabled ) ; |
public class GregorianTimezoneRule { /** * / * [ deutsch ]
* < p > Konstruiert ein Muster f & uuml ; r einen festen Tag im angegebenen
* Monat . < / p >
* @ param month calendar month
* @ param dayOfMonth day of month ( 1 - 31)
* @ param timeOfDay clock time when time switch happens
* @ param indicator offs... | return ofFixedDay ( month , dayOfMonth , timeOfDay . getInt ( PlainTime . SECOND_OF_DAY ) , indicator , savings ) ; |
public class AddHeadersProcessor { /** * Create a MfClientHttpRequestFactory for adding the specified headers .
* @ param requestFactory the basic request factory . It should be unmodified and just wrapped with
* a proxy class .
* @ param matchers The matchers .
* @ param headers The headers .
* @ return */
p... | return new AbstractMfClientHttpRequestFactoryWrapper ( requestFactory , matchers , false ) { @ Override protected ClientHttpRequest createRequest ( final URI uri , final HttpMethod httpMethod , final MfClientHttpRequestFactory requestFactory ) throws IOException { final ClientHttpRequest request = requestFactory . crea... |
public class ProtocolConnectionUtils { /** * Connect .
* @ param configuration the connection configuration
* @ return the future connection
* @ throws IOException */
public static IoFuture < Connection > connect ( final ProtocolConnectionConfiguration configuration ) throws IOException { } } | return connect ( configuration . getCallbackHandler ( ) , configuration ) ; |
public class Elements { /** * Returns an iterator over the children of the given parent node . The iterator supports the { @ link
* Iterator # remove ( ) } operation which removes the current node from its parent . */
public static Iterator < Node > iterator ( Node parent ) { } } | return parent != null ? new JsArrayNodeIterator ( parent ) : emptyIterator ( ) ; |
public class BaseMessagingEngineImpl { /** * ( non - Javadoc )
* @ see com . ibm . ws . sib . admin . JsMessagingEngine # getMQLinkEngineComponent ( java . lang . String ) */
public JsEngineComponent getMQLinkEngineComponent ( String name ) { } } | String thisMethodName = "getMQLinkEngineComponent" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , name ) ; } // MQ link no longer an engine component
JsEngineComponent rc = null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled (... |
public class AWSDynamoDAO { @ Override public < P extends ParaObject > String create ( String appid , P so ) { } } | if ( so == null ) { return null ; } if ( StringUtils . isBlank ( so . getId ( ) ) ) { so . setId ( Utils . getNewId ( ) ) ; } if ( so . getTimestamp ( ) == null ) { so . setTimestamp ( Utils . timestamp ( ) ) ; } so . setAppid ( appid ) ; createRow ( so . getId ( ) , appid , toRow ( so , null ) ) ; logger . debug ( "DA... |
public class DockerExecuteAction { /** * Validate command results .
* @ param command
* @ param context */
private void validateCommandResult ( DockerCommand command , TestContext context ) { } } | if ( log . isDebugEnabled ( ) ) { log . debug ( "Starting Docker command result validation" ) ; } if ( StringUtils . hasText ( expectedCommandResult ) ) { if ( command . getCommandResult ( ) == null ) { throw new ValidationException ( "Missing Docker command result" ) ; } try { String commandResultJson = jsonMapper . w... |
public class ServiceLoaderUtil { /** * Finds the first implementation of the given service type using the given predicate to filter
* out found service types and creates its instance .
* @ param clazz service type
* @ param predicate service type predicate
* @ return the first implementation of the given servic... | ServiceLoader < T > load = ServiceLoader . load ( clazz ) ; Stream < T > stream = StreamSupport . stream ( load . spliterator ( ) , false ) ; return stream . filter ( predicate ) . findFirst ( ) ; |
public class ListSkillsStoreSkillsByCategoryResult { /** * The skill store skills .
* @ param skillsStoreSkills
* The skill store skills . */
public void setSkillsStoreSkills ( java . util . Collection < SkillsStoreSkill > skillsStoreSkills ) { } } | if ( skillsStoreSkills == null ) { this . skillsStoreSkills = null ; return ; } this . skillsStoreSkills = new java . util . ArrayList < SkillsStoreSkill > ( skillsStoreSkills ) ; |
public class BuffReaderFixedParser { /** * Reads in the next record on the file and return a row
* @ param ds
* @ return Row */
@ Override public Row buildRow ( final DefaultDataSet ds ) { } } | String line = null ; try { while ( ( line = br . readLine ( ) ) != null ) { lineCount ++ ; // empty line skip past it
if ( line . trim ( ) . length ( ) == 0 ) { continue ; } final String mdkey = FixedWidthParserUtils . getCMDKey ( getPzMetaData ( ) , line ) ; final Row row = new Row ( ) ; row . setRowNumber ( lineCount... |
public class DriverLauncher { /** * Kills the running job . */
@ Override public void close ( ) { } } | synchronized ( this ) { LOG . log ( Level . FINER , "Close launcher: job {0} with status {1}" , new Object [ ] { this . theJob , this . status } ) ; if ( this . status . isRunning ( ) ) { this . status = LauncherStatus . FORCE_CLOSED ; } if ( null != this . theJob ) { this . theJob . close ( ) ; } this . notify ( ) ; }... |
public class AbstractUndoableCommand { /** * Stores cursor coordinates . */
@ Override public final void execute ( ) { } } | beforeLine = editor . getLine ( ) ; beforeColumn = editor . getColumn ( ) ; doExecute ( ) ; afterLine = editor . getLine ( ) ; afterColumn = editor . getColumn ( ) ; |
public class DecimalFormat { /** * Does the real work of applying a pattern . */
private void applyPattern ( String pattern , boolean localized ) { } } | char zeroDigit = PATTERN_ZERO_DIGIT ; char groupingSeparator = PATTERN_GROUPING_SEPARATOR ; char decimalSeparator = PATTERN_DECIMAL_SEPARATOR ; char percent = PATTERN_PERCENT ; char perMill = PATTERN_PER_MILLE ; char digit = PATTERN_DIGIT ; char separator = PATTERN_SEPARATOR ; String exponent = PATTERN_EXPONENT ; char ... |
public class ParserUtils { /** * Converts a String to the given timezone .
* @ param date Date to format
* @ param zoneId Zone id to convert from sherdog ' s time
* @ return the converted zonedatetime */
static ZonedDateTime getDateFromStringToZoneId ( String date , ZoneId zoneId ) throws DateTimeParseException {... | ZonedDateTime usDate = ZonedDateTime . parse ( date ) . withZoneSameInstant ( ZoneId . of ( Constants . SHERDOG_TIME_ZONE ) ) ; return usDate . withZoneSameInstant ( zoneId ) ; |
public class ReisadviesRequest { /** * { @ inheritDoc }
* @ see nl . pvanassen . ns . ApiRequest # getRequestString ( ) */
@ Override String getRequestString ( ) { } } | StringBuilder requestString = new StringBuilder ( ) ; requestString . append ( "fromStation=" ) . append ( fromStation ) . append ( '&' ) ; requestString . append ( "toStation=" ) . append ( toStation ) . append ( '&' ) ; if ( viaStation != null && viaStation . trim ( ) . length ( ) != 0 ) { requestString . append ( "v... |
public class ConfigElementList { /** * Returns the first element in this list with a matching identifier
* @ param id the identifier to search for
* @ return the first element in this list with a matching identifier , or null of no such element is found */
public E getById ( String id ) { } } | if ( id == null ) { for ( E element : this ) { if ( element != null && element . getId ( ) == null ) { return element ; } } } else { for ( E element : this ) { if ( element != null && id . equals ( element . getId ( ) ) ) { return element ; } } } return null ; |
public class ExtraFieldUtils { /** * Split the array into ExtraFields and populate them with the
* given data as local file data , throwing an exception if the
* data cannot be parsed .
* @ param data an array of bytes as it appears in local file data
* @ return an array of ExtraFields
* @ throws ZipException... | List < ZipExtraField > v = new ArrayList < ZipExtraField > ( ) ; if ( data == null ) { return v ; } int start = 0 ; while ( start <= data . length - WORD ) { ZipShort headerId = new ZipShort ( data , start ) ; int length = ( new ZipShort ( data , start + 2 ) ) . getValue ( ) ; if ( start + WORD + length > data . length... |
public class Instant { /** * Adjusts the specified temporal object to have this instant .
* This returns a temporal object of the same observable type as the input
* with the instant changed to be the same as this .
* The adjustment is equivalent to using { @ link Temporal # with ( TemporalField , long ) }
* tw... | return temporal . with ( INSTANT_SECONDS , seconds ) . with ( NANO_OF_SECOND , nanos ) ; |
public class LogGroupFieldMarshaller { /** * Marshall the given parameter object . */
public void marshall ( LogGroupField logGroupField , ProtocolMarshaller protocolMarshaller ) { } } | if ( logGroupField == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( logGroupField . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( logGroupField . getPercent ( ) , PERCENT_BINDING ) ; } catch ( Exception e ) { throw new Sdk... |
public class AWSDeviceFarmClient { /** * Specifies and starts a remote access session .
* @ param createRemoteAccessSessionRequest
* Creates and submits a request to start a remote access session .
* @ return Result of the CreateRemoteAccessSession operation returned by the service .
* @ throws ArgumentExceptio... | request = beforeClientExecution ( request ) ; return executeCreateRemoteAccessSession ( request ) ; |
public class RequestParam { /** * Returns a request parameter as boolean .
* @ param request Request .
* @ param param Parameter name .
* @ return Parameter value or < code > false < / code > if it does not exist or cannot be interpreted as boolean . */
public static boolean getBoolean ( @ NotNull ServletRequest ... | return getBoolean ( request , param , false ) ; |
public class MOEADSTM { /** * Calculate the perpendicular distance between the solution and reference line */
public double calculateDistance ( DoubleSolution individual , double [ ] lambda ) { } } | double scale ; double distance ; double [ ] vecInd = new double [ problem . getNumberOfObjectives ( ) ] ; double [ ] vecProj = new double [ problem . getNumberOfObjectives ( ) ] ; // vecInd has been normalized to the range [ 0,1]
for ( int i = 0 ; i < problem . getNumberOfObjectives ( ) ; i ++ ) { vecInd [ i ] = ( indi... |
public class ClientService { /** * Set a friendly name for a client
* @ param profileId profileId of the client
* @ param clientUUID UUID of the client
* @ param friendlyName friendly name of the client
* @ return return Client object or null
* @ throws Exception exception */
public Client setFriendlyName ( i... | // first see if this friendlyName is already in use
Client client = this . findClientFromFriendlyName ( profileId , friendlyName ) ; if ( client != null && ! client . getUUID ( ) . equals ( clientUUID ) ) { throw new Exception ( "Friendly name already in use" ) ; } PreparedStatement statement = null ; int rowsAffected ... |
public class Bean { /** * Report a { @ code boolean } bound indexed property update to any registered listeners . < p >
* No event is fired if old and new values are equal and non - null . < p >
* This is merely a convenience wrapper around the more general fireIndexedPropertyChange method
* which takes Object va... | if ( oldValue == newValue ) { return ; } fireIndexedPropertyChange ( propertyName , index , Boolean . valueOf ( oldValue ) , Boolean . valueOf ( newValue ) ) ; |
public class ObjectInputStream { /** * Read a new array from the receiver . It is assumed the array has not been
* read yet ( not a cyclic reference ) . Return the array read .
* @ param unshared
* read the object unshared
* @ return the array read
* @ throws IOException
* If an IO exception happened when r... | ObjectStreamClass classDesc = readClassDesc ( ) ; if ( classDesc == null ) { throw missingClassDescriptor ( ) ; } int newHandle = nextHandle ( ) ; // Array size
int size = input . readInt ( ) ; Class < ? > arrayClass = classDesc . forClass ( ) ; Class < ? > componentType = arrayClass . getComponentType ( ) ; Object res... |
public class Artifact { /** * More lax version of { @ link # equals ( Object ) } that matches SNAPSHOTs with their corresponding timestamped versions .
* @ param artifact the artifact to compare with .
* @ return < code > true < / code > if this artifact is the same as the specified artifact ( where timestamps are ... | if ( this == artifact ) { return true ; } if ( ! groupId . equals ( artifact . groupId ) ) { return false ; } if ( ! artifactId . equals ( artifact . artifactId ) ) { return false ; } if ( ! version . equals ( artifact . version ) ) { return false ; } if ( ! type . equals ( artifact . type ) ) { return false ; } if ( c... |
public class ReflectionUtil { /** * Extract the full template type information from the given type ' s template parameter at the
* given position .
* @ param type type to extract the full template parameter information from
* @ param templatePosition describing at which position the template type parameter is
*... | if ( type instanceof ParameterizedType ) { return getFullTemplateType ( ( ( ParameterizedType ) type ) . getActualTypeArguments ( ) [ templatePosition ] ) ; } else { throw new IllegalArgumentException ( ) ; } |
public class Transition { /** * Sets the algorithm used to calculate two - dimensional interpolation .
* Transitions such as { @ link ChangeBounds } move Views , typically
* in a straight path between the start and end positions . Applications that desire to
* have these motions move in a curve can change how Vie... | if ( pathMotion == null ) { mPathMotion = PathMotion . STRAIGHT_PATH_MOTION ; } else { mPathMotion = pathMotion ; } return this ; |
public class Conversion { /** * Converts UUID into an array of byte using the default ( little endian , Lsb0 ) byte and bit
* ordering .
* @ param src the UUID to convert
* @ param dst the destination array
* @ param dstPos the position in { @ code dst } where to copy the result
* @ param nBytes the number of... | if ( 0 == nBytes ) { return dst ; } if ( nBytes > 16 ) { throw new IllegalArgumentException ( "nBytes is greater than 16" ) ; } longToByteArray ( src . getMostSignificantBits ( ) , 0 , dst , dstPos , nBytes > 8 ? 8 : nBytes ) ; if ( nBytes >= 8 ) { longToByteArray ( src . getLeastSignificantBits ( ) , 0 , dst , dstPos ... |
public class JdbcWriter { /** * Extracts the URL to database or data source from configuration .
* @ param properties
* Configuration for writer
* @ return Connection URL
* @ throws IllegalArgumentException
* URL is not defined in configuration */
private static String getUrl ( final Map < String , String > p... | String url = properties . get ( "url" ) ; if ( url == null ) { throw new IllegalArgumentException ( "URL is missing for JDBC writer" ) ; } else { return url ; } |
public class SystemUtil { /** * Load system properties from a given filename or url .
* File is first searched for in resources using the system { @ link ClassLoader } ,
* then file system , then URL . All are loaded if multiples found .
* @ param filenameOrUrl that holds properties */
public static void loadProp... | final Properties properties = new Properties ( System . getProperties ( ) ) ; System . getProperties ( ) . forEach ( properties :: put ) ; final URL resource = ClassLoader . getSystemClassLoader ( ) . getResource ( filenameOrUrl ) ; if ( null != resource ) { try ( InputStream in = resource . openStream ( ) ) { properti... |
public class Pack { /** * Pack the images provided
* @ param files The list of file objects pointing at the images to be packed
* @ param width The width of the sheet to be generated
* @ param height The height of the sheet to be generated
* @ param border The border between sprites
* @ param out The file to ... | ArrayList images = new ArrayList ( ) ; try { for ( int i = 0 ; i < files . size ( ) ; i ++ ) { File file = ( File ) files . get ( i ) ; Sprite sprite = new Sprite ( file . getName ( ) , ImageIO . read ( file ) ) ; images . add ( sprite ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; } return packImages ( imag... |
public class HtmlInjectorServletResponseWrapper { /** * { @ inheritDoc } */
@ Override public ServletOutputStream createOutputStream ( ) throws IOException { } } | if ( ! isContentTypeHtml ( ) ) { return getHttpServletResponse ( ) . getOutputStream ( ) ; } return new HtmlInjectorResponseStream ( getHttpServletResponse ( ) , htmlToInject ) ; |
public class Configuration { /** * @ return current environment as specified by environment variable < code > ACTIVE _ ENV < / code >
* of < code > active _ env < / code > system property . System property value overrides environment variable .
* Defaults to " development " if no environment variable provided . */
... | String env = "development" ; if ( ! blank ( System . getenv ( "ACTIVE_ENV" ) ) ) { env = System . getenv ( "ACTIVE_ENV" ) ; } if ( ! blank ( System . getProperty ( "active_env" ) ) ) { env = System . getProperty ( "active_env" ) ; } return env ; |
public class PaxParser { /** * { @ inheritDoc }
* @ throws PrivilegedActionException
* @ throws IOException
* @ throws ProductInfoParseException */
@ Override protected AssetInformation extractInformationFromAsset ( File archive , final ArtifactMetadata metadata ) throws PrivilegedActionException , ProductInfoPar... | // Create the asset information
AssetInformation assetInformtion = new AssetInformation ( ) ; ZipFile zipFile = null ; try { zipFile = AccessController . doPrivileged ( new PrivilegedExceptionAction < ZipFile > ( ) { @ Override public ZipFile run ( ) throws IOException { return new ZipFile ( metadata . getArchive ( ) )... |
public class Configuration { /** * Get the comma delimited values of the < code > name < / code > property as
* a collection of < code > String < / code > s , trimmed of the leading and trailing whitespace .
* If no such property is specified then empty < code > Collection < / code > is returned .
* @ param name ... | String valueString = get ( name ) ; if ( null == valueString ) { Collection < String > empty = new ArrayList < String > ( ) ; return empty ; } return StringUtils . getTrimmedStringCollection ( valueString ) ; |
public class XmlEmit { /** * Create the sequence < br >
* < tag > val < / tag > where val is represented by a Reader
* @ param tag
* @ param val
* @ throws IOException */
public void property ( final QName tag , final Reader val ) throws IOException { } } | blanks ( ) ; openTagSameLine ( tag ) ; writeContent ( val , wtr ) ; closeTagSameLine ( tag ) ; newline ( ) ; |
public class SimpleStatsResult { /** * ( non - Javadoc )
* @ see org . springframework . data . solr . core . query . result . StatsResult # getMinAsDouble ( ) */
@ Nullable @ Override public Double getMinAsDouble ( ) { } } | if ( min instanceof Number ) { return ( ( Number ) min ) . doubleValue ( ) ; } return null ; |
public class Monitor { /** * Wait until the cluster has fully started ( ie . all nodes have joined ) .
* @ param clusterName the ES cluster name
* @ param nodesCount the number of nodes in the cluster
* @ param timeout how many seconds to wait */
public void waitToStartCluster ( final String clusterName , int nod... | log . debug ( String . format ( "Waiting up to %ds for the Elasticsearch cluster to start ..." , timeout ) ) ; Awaitility . await ( ) . atMost ( timeout , TimeUnit . SECONDS ) . pollDelay ( 1 , TimeUnit . SECONDS ) . pollInterval ( 1 , TimeUnit . SECONDS ) . until ( new Callable < Boolean > ( ) { @ Override public Boo... |
public class MonthlyCalendar { /** * Redefine a certain day of the month to be excluded ( true ) or included
* ( false ) .
* @ param day
* The day of the month ( from 1 to 31 ) to set . */
public void setDayExcluded ( final int day , final boolean exclude ) { } } | if ( ( day < 1 ) || ( day > MAX_DAYS_IN_MONTH ) ) { throw new IllegalArgumentException ( "The day parameter must be in the range of 1 to " + MAX_DAYS_IN_MONTH ) ; } m_aExcludeDays [ day - 1 ] = exclude ; m_aExcludeAll = areAllDaysExcluded ( ) ; |
public class MatrixFactory { /** * Creates a new column vector with all elements initialized to 0.
* @ param dimension the dimension of the vector .
* @ return the new vector
* @ throws IllegalArgumentException if the argument is not positive */
public static Vector createVector ( int dimension ) { } } | if ( dimension <= 0 ) throw new IllegalArgumentException ( ) ; switch ( dimension ) { case 2 : return createVector2 ( ) ; case 3 : return createVector3 ( ) ; case 4 : return createVector4 ( ) ; default : return new VectorImpl ( dimension ) ; } |
public class ClusterNode { /** * Used to write the state of the ClusterNode instance to disk , when we are
* persisting the state of the NodeManager
* @ param jsonGenerator The JsonGenerator instance being used to write JSON
* to disk
* @ throws IOException */
public void write ( JsonGenerator jsonGenerator ) t... | jsonGenerator . writeStartObject ( ) ; // clusterNodeInfo begins
jsonGenerator . writeFieldName ( "clusterNodeInfo" ) ; jsonGenerator . writeStartObject ( ) ; jsonGenerator . writeStringField ( "name" , clusterNodeInfo . name ) ; jsonGenerator . writeObjectField ( "address" , clusterNodeInfo . address ) ; jsonGenerator... |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcClassificationNotation ( ) { } } | if ( ifcClassificationNotationEClass == null ) { ifcClassificationNotationEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 82 ) ; } return ifcClassificationNotationEClass ; |
public class CustomerSession { /** * Calls the Stripe API ( or a test proxy ) to fetch a customer . If the provided key is expired ,
* this method < b > does not < / b > update the key .
* Use { @ link # updateCustomer ( CustomerEphemeralKey , String ) } to validate the key
* before refreshing the customer .
* ... | return mApiHandler . retrieveCustomer ( key . getCustomerId ( ) , key . getSecret ( ) ) ; |
public class SectionLoader { /** * Returns the file offset for the given RVA .
* A warning is issued if the file offset is outside the file , but the file
* offset will be returned nevertheless .
* @ param rva
* the relative virtual address that shall be converted to a
* plain file offset
* @ return file of... | // standard value if rva doesn ' t point into a section
long fileOffset = rva ; Optional < Long > maybeOffset = maybeGetFileOffset ( rva ) ; // file offset is not within file - - > warning
if ( ! maybeOffset . isPresent ( ) ) { logger . warn ( "invalid file offset: 0x" + Long . toHexString ( fileOffset ) + " for file: ... |
public class CmsTemplateFinder { /** * Returns the available templates . < p >
* @ return the available templates
* @ throws CmsException if something goes wrong */
public Map < String , CmsClientTemplateBean > getTemplates ( ) throws CmsException { } } | Map < String , CmsClientTemplateBean > result = new HashMap < String , CmsClientTemplateBean > ( ) ; CmsObject cms = getCmsObject ( ) ; // find current site templates
int templateId = OpenCms . getResourceManager ( ) . getResourceType ( CmsResourceTypeJsp . getContainerPageTemplateTypeName ( ) ) . getTypeId ( ) ; List ... |
public class TableRowEditingAjaxExample { /** * Setup the action buttons and ajax controls in the action column . */
private void setUpActionButtons ( ) { } } | // Buttons Panel
WPanel buttonPanel = new WPanel ( ) ; actionContainer . add ( buttonPanel ) ; // Edit Button
final WButton editButton = new WButton ( "Edit" ) { @ Override public boolean isVisible ( ) { Object key = TableUtil . getCurrentRowKey ( ) ; return ! isEditRow ( key ) ; } } ; editButton . setImage ( "/image/p... |
public class DateUtils { /** * 在日期上加指定的年数
* @ param
* @ param
* @ return */
public static Date addYear ( Date date1 , int addYear ) { } } | Date resultDate = null ; Calendar c = Calendar . getInstance ( ) ; c . setTime ( date1 ) ; // 设置当前日期
c . add ( Calendar . YEAR , addYear ) ; // 日期加1
resultDate = c . getTime ( ) ; // 结果
return resultDate ; |
public class NoxView { /** * Configures the nox item default size used in NoxConfig , Shape and NoxItemCatalog to draw nox
* item instances during the onDraw execution . */
private void initializeNoxItemSize ( TypedArray attributes ) { } } | float noxItemSizeDefaultValue = getResources ( ) . getDimension ( R . dimen . default_nox_item_size ) ; float noxItemSize = attributes . getDimension ( R . styleable . nox_item_size , noxItemSizeDefaultValue ) ; noxConfig . setNoxItemSize ( noxItemSize ) ; |
public class MyScpClient { /** * Copy a local file to a remote directory , uses mode 0600 when creating
* the file on the remote side .
* @ param localFile Path and name of local file .
* @ param remoteTargetDirectory Remote target directory .
* @ throws IOException */
public void put ( String localFile , Strin... | put ( new String [ ] { localFile } , remoteTargetDirectory , "0600" ) ; |
public class ns_vm_template { /** * < pre >
* Converts API response of bulk operation into object and returns the object array in case of get request .
* < / pre > */
protected base_resource [ ] get_nitro_bulk_response ( nitro_service service , String response ) throws Exception { } } | ns_vm_template_responses result = ( ns_vm_template_responses ) service . get_payload_formatter ( ) . string_to_resource ( ns_vm_template_responses . class , response ) ; if ( result . errorcode != 0 ) { if ( result . errorcode == SESSION_NOT_EXISTS ) service . clear_session ( ) ; throw new nitro_exception ( result . me... |
public class AbstractMockEc2Instance { /** * Stop this ec2 instance .
* @ return true for successfully turned into ' stopping ' and false for nothing changed */
public final boolean stop ( ) { } } | if ( booting || running ) { stopping = true ; booting = false ; onStopping ( ) ; return true ; } else { return false ; } |
public class AbstractEndpointComponent { /** * Removes non config parameters from list of endpoint parameters according to given endpoint configuration type . All
* parameters that do not reside to a endpoint configuration setting are removed so the result is a qualified list
* of endpoint configuration parameters ... | Map < String , String > params = new HashMap < String , String > ( ) ; for ( Map . Entry < String , String > parameterEntry : parameters . entrySet ( ) ) { Field field = ReflectionUtils . findField ( endpointConfigurationType , parameterEntry . getKey ( ) ) ; if ( field != null ) { params . put ( parameterEntry . getKe... |
public class ParallelIterate { /** * Same effect as { @ link Iterate # collectIf ( Iterable , Predicate , Function ) } ,
* but executed in parallel batches , and writing output into the specified collection .
* @ param target Where to write the output .
* @ param allowReorderedResult If the result can be in a dif... | return ParallelIterate . collectIf ( iterable , predicate , function , target , ParallelIterate . DEFAULT_MIN_FORK_SIZE , ParallelIterate . EXECUTOR_SERVICE , allowReorderedResult ) ; |
public class ClientService { /** * Returns a client model from a ResultSet
* @ param result resultset containing client information
* @ return Client or null
* @ throws Exception exception */
private Client getClientFromResultSet ( ResultSet result ) throws Exception { } } | Client client = new Client ( ) ; client . setId ( result . getInt ( Constants . GENERIC_ID ) ) ; client . setUUID ( result . getString ( Constants . CLIENT_CLIENT_UUID ) ) ; client . setFriendlyName ( result . getString ( Constants . CLIENT_FRIENDLY_NAME ) ) ; client . setProfile ( ProfileService . getInstance ( ) . fi... |
public class LineSegment { /** * Calculate which point on the LineSegment is nearest to the given coordinate . Will be perpendicular or one of the
* end - points .
* @ param c
* The coordinate to check .
* @ return The point on the LineSegment nearest to the given coordinate . */
public Coordinate nearest ( Coo... | double len = this . getLength ( ) ; double u = ( c . getX ( ) - this . c1 . getX ( ) ) * ( this . c2 . getX ( ) - this . c1 . getX ( ) ) + ( c . getY ( ) - this . c1 . getY ( ) ) * ( this . c2 . getY ( ) - this . c1 . getY ( ) ) ; u = u / ( len * len ) ; if ( u < 0.00001 || u > 1 ) { // Shortest point not within LineSe... |
public class JournalRecovery { public static AbstractJournalOperation readJournalOperation ( DataInputStream in ) { } } | try { int operationType = in . read ( ) ; if ( operationType == - 1 ) return null ; // EOF
switch ( operationType ) { case 0 : // Padding
return null ; case AbstractJournalOperation . TYPE_META_DATA_WRITE : return readMetaDataWriteOperation ( in ) ; case AbstractJournalOperation . TYPE_META_DATA_BLOCK_WRITE : return re... |
public class OkRequest { /** * Write part of a multipart request to the request body
* @ param name
* @ param filename
* @ param contentType value of the Content - Type part header
* @ param part
* @ return this request */
public OkRequest < T > part ( final String name , final String filename , final String ... | startPart ( ) ; writePartHeader ( name , filename , contentType ) ; mOutput . write ( part ) ; return this ; |
public class vpnvserver_vpnurl_binding { /** * Use this API to fetch vpnvserver _ vpnurl _ binding resources of given name . */
public static vpnvserver_vpnurl_binding [ ] get ( nitro_service service , String name ) throws Exception { } } | vpnvserver_vpnurl_binding obj = new vpnvserver_vpnurl_binding ( ) ; obj . set_name ( name ) ; vpnvserver_vpnurl_binding response [ ] = ( vpnvserver_vpnurl_binding [ ] ) obj . get_resources ( service ) ; return response ; |
public class FlinkKinesisConsumer { /** * Set the assigner that will extract the timestamp from { @ link T } and calculate the
* watermark .
* @ param periodicWatermarkAssigner periodic watermark assigner */
public void setPeriodicWatermarkAssigner ( AssignerWithPeriodicWatermarks < T > periodicWatermarkAssigner ) ... | this . periodicWatermarkAssigner = periodicWatermarkAssigner ; ClosureCleaner . clean ( this . periodicWatermarkAssigner , true ) ; |
public class NS { /** * Returns an < code > AddAction < / code > for building expression that would
* append the specified values to this number set ; or if the attribute does
* not already exist , adding the new attribute and the value ( s ) to the item .
* In general , DynamoDB recommends using SET rather than ... | return new AddAction ( this , new LiteralOperand ( values ) ) ; |
public class Security { /** * If using { @ link Security # doAs ( Subject , PrivilegedAction ) } or
* { @ link Security # doAs ( Subject , PrivilegedExceptionAction ) } , returns the { @ link Subject } associated with the current thread
* otherwise it returns the { @ link Subject } associated with the current { @ l... | if ( SUBJECT . get ( ) != null ) { return SUBJECT . get ( ) . peek ( ) ; } else { AccessControlContext acc = AccessController . getContext ( ) ; if ( System . getSecurityManager ( ) == null ) { return Subject . getSubject ( acc ) ; } else { return AccessController . doPrivileged ( ( PrivilegedAction < Subject > ) ( ) -... |
public class RunReflectiveCall { /** * Interceptor for the { @ link org . junit . internal . runners . model . ReflectiveCallable # runReflectiveCall
* runReflectiveCall } method .
* @ param callable { @ code ReflectiveCallable } object being intercepted
* @ param proxy callable proxy for the intercepted method
... | Object runner = null ; Object target = null ; FrameworkMethod method = null ; Object [ ] params = null ; try { Object owner = getFieldValue ( callable , "this$0" ) ; if ( owner instanceof FrameworkMethod ) { method = ( FrameworkMethod ) owner ; target = getFieldValue ( callable , "val$target" ) ; params = getFieldValue... |
public class TangramEngine { /** * { @ inheritDoc } */
@ Override public void unbindView ( ) { } } | RecyclerView contentView = getContentView ( ) ; if ( contentView != null && mSwipeItemTouchListener != null ) { contentView . removeOnItemTouchListener ( mSwipeItemTouchListener ) ; mSwipeItemTouchListener = null ; contentView . removeCallbacks ( updateRunnable ) ; } super . unbindView ( ) ; |
public class BootLogger { public void info ( String msg ) { } } | if ( logger != null ) { logger . info ( msg ) ; } else { if ( loggingFile == null ) { // no logger settings
println ( msg ) ; // as default
} // no output before logger ready
} |
public class Authorization { /** * Checks if the User passed has access to the Topic to perform an action
* < ul >
* < li > When Messaging Security is disabled , it always returns true < / li >
* < li > When Messaging Security is enabled , it calls
* MessagingAuthorizationService to check for access < / li >
... | SibTr . entry ( tc , CLASS_NAME + "checkTopicAccess" , new Object [ ] { authenticatedSubject , topicSpace , topicName , operationType } ) ; boolean result = false ; if ( ! runtimeSecurityService . isMessagingSecure ( ) ) { result = true ; } else { if ( messagingAuthorizationService != null ) { result = messagingAuthori... |
public class RequestHttp2 { /** * Returns a char buffer containing the host . */
@ Override protected CharBuffer getHost ( ) { } } | if ( _host . length ( ) > 0 ) { return _host ; } _host . append ( _serverName ) ; _host . toLowerCase ( ) ; return _host ; |
public class AbstractSerializer { /** * public T fromByteBuffer ( ByteBuffer byteBuffer ) { return
* fromBytes ( byteBuffer . array ( ) ) ; }
* public T fromByteBuffer ( ByteBuffer byteBuffer , int offset , int length ) {
* return fromBytes ( Arrays . copyOfRange ( byteBuffer . array ( ) , offset , length ) ) ; }... | Set < ByteBuffer > bytesList = new HashSet < ByteBuffer > ( computeInitialHashSize ( list . size ( ) ) ) ; for ( T s : list ) { bytesList . add ( toByteBuffer ( s ) ) ; } return bytesList ; |
public class PriorityScheduler { /** * Adds the { @ code schedulable } to the list using the given { @ code frequency } and { @ code phase } with priority 1.
* @ param schedulable the task to schedule
* @ param frequency the frequency
* @ param phase the phase */
@ Override public void add ( Schedulable schedulab... | add ( schedulable , frequency , phase , 1f ) ; |
public class ServerSICoreConnectionListener { /** * This method will remove the SICoreConnection from our table that maps
* the connection to conversations . This is not essentially needed but the
* smaller the table , the faster it is to search .
* This would typically be called when the connection is closing . ... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeSICoreConnection" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { SibTr . debug ( tc , "Params: connection" , conn ) ; } conversationTable . remove ( conn ) ; if ( TraceComponent . isA... |
public class TargetStreamManager { /** * Determine if there are any unflushed target streams to the destination
* @ return boolean */
public boolean isEmpty ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( this , tc , "isEmpty" ) ; SibTr . exit ( tc , "isEmpty" , new Object [ ] { Boolean . valueOf ( streamSets . isEmpty ( ) ) , Boolean . valueOf ( flushedStreamSets . isEmpty ( ) ) , streamSets , this } ) ; } // Don ' t report emp... |
public class SerializerIntrinsics { /** * ! @ note One of dst or src must be st ( 0 ) . */
public final void fsub ( X87Register dst , X87Register src ) { } } | assert ( dst . index ( ) == 0 || src . index ( ) == 0 ) ; emitX86 ( INST_FSUB , dst , src ) ; |
public class FTPServerFacade { /** * Use this as an interface to the local manager thread .
* This submits the task to the thread queue .
* The thread will perform it when it ' s ready with other
* waiting tasks . */
private synchronized void runTask ( Task task ) { } } | if ( taskThread == null ) { taskThread = new TaskThread ( ) ; } taskThread . runTask ( task ) ; |
public class AVIMConversation { /** * 在聊天对话中间增加新的参与者
* @ param memberIds
* @ param callback
* @ since 3.0 */
public void addMembers ( final List < String > memberIds , final AVIMConversationCallback callback ) { } } | if ( null == memberIds || memberIds . size ( ) < 1 ) { if ( null != callback ) { callback . done ( new AVIMException ( new IllegalArgumentException ( "memberIds is null" ) ) ) ; } return ; } Map < String , Object > params = new HashMap < String , Object > ( ) ; params . put ( Conversation . PARAM_CONVERSATION_MEMBER , ... |
public class MemorySession { /** * To invalidate the session internally by sessionmanager */
public void internalInvalidate ( boolean timeoutOccurred ) { } } | if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_CORE . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_CORE . entering ( methodClassName , methodNames [ INTERNAL_INVALIDATE ] , appNameAndIdString ) ; } // if it ' s not valid , just return
if ( _isValid ... |
public class IBEA { /** * Calculate the fitness for the individual at position pos */
public void fitness ( List < S > solutionSet , int pos ) { } } | double fitness = 0.0 ; double kappa = 0.05 ; for ( int i = 0 ; i < solutionSet . size ( ) ; i ++ ) { if ( i != pos ) { fitness += Math . exp ( ( - 1 * indicatorValues . get ( i ) . get ( pos ) / maxIndicatorValue ) / kappa ) ; } } solutionFitness . setAttribute ( solutionSet . get ( pos ) , fitness ) ; |
public class Functions { /** * Fluent transform operation using primitive types
* e . g .
* < pre >
* { @ code
* import static cyclops . ReactiveSeq . mapInts ;
* ReactiveSeq . ofInts ( 1,2,3)
* . to ( mapInts ( i - > i * 2 ) ) ;
* / / [ 2,4,6]
* < / pre > */
public static Function < ? super ReactiveSeq... | return a -> a . ints ( i -> i , s -> s . map ( b ) ) ; |
public class CoordinatorConfig { /** * Sets the bootstrap URLs used by the different Fat clients inside the
* Coordinator
* @ param bootstrapUrls list of bootstrap URLs defining which cluster to
* connect to
* @ return modified CoordinatorConfig */
public CoordinatorConfig setBootstrapURLs ( List < String > boo... | this . bootstrapURLs = Utils . notNull ( bootstrapUrls ) ; if ( this . bootstrapURLs . size ( ) <= 0 ) throw new IllegalArgumentException ( "Must provide at least one bootstrap URL." ) ; return this ; |
public class FieldBuilder { /** * Construct a new FieldBuilder .
* @ param context the build context .
* @ param classDoc the class whoses members are being documented .
* @ param writer the doclet specific writer . */
public static FieldBuilder getInstance ( Context context , ClassDoc classDoc , FieldWriter writ... | return new FieldBuilder ( context , classDoc , writer ) ; |
public class ActivityResponseMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ActivityResponse activityResponse , ProtocolMarshaller protocolMarshaller ) { } } | if ( activityResponse == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( activityResponse . getApplicationId ( ) , APPLICATIONID_BINDING ) ; protocolMarshaller . marshall ( activityResponse . getCampaignId ( ) , CAMPAIGNID_BINDING ) ; protoc... |
public class IfcCurveStyleFontImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ SuppressWarnings ( "unchecked" ) @ Override public EList < IfcCurveStyleFontPattern > getPatternList ( ) { } } | return ( EList < IfcCurveStyleFontPattern > ) eGet ( Ifc4Package . Literals . IFC_CURVE_STYLE_FONT__PATTERN_LIST , true ) ; |
public class KlusterConf { /** * replace $ variables by mapping function result */
private String resolve ( String cdr , Function < String , String > map ) { } } | StringBuilder res = new StringBuilder ( cdr . length ( ) * 2 ) ; int state = 0 ; String var = "" ; for ( int i = 0 ; i < cdr . length ( ) ; i ++ ) { char c = cdr . charAt ( i ) ; if ( c == '$' ) { state = 1 ; } else { switch ( state ) { case 0 : res . append ( c ) ; break ; case 1 : { if ( Character . isLetterOrDigit (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.