signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class RESTRequest { /** * Get the URI - decoded value of the variable with the given name . Null is returned if
* there is no variable with the given name . This method calls
* { @ link # getVariable ( String ) } and passes the result through
* { @ link Utils # urlDecode ( String ) } .
* @ param variable... | String value = m_variableMap . get ( variableName ) ; if ( value == null ) { return null ; } return Utils . urlDecode ( value ) ; |
public class InstallUtil { /** * Returns a list of any plugins that are persisted in the installing list */
@ SuppressWarnings ( "unchecked" ) public static synchronized @ CheckForNull Map < String , String > getPersistedInstallStatus ( ) { } } | File installingPluginsFile = getInstallingPluginsFile ( ) ; if ( installingPluginsFile == null || ! installingPluginsFile . exists ( ) ) { return null ; } return ( Map < String , String > ) new XStream ( ) . fromXML ( installingPluginsFile ) ; |
public class HtmlUtil { /** * 清除指定HTML标签和被标签包围的内容 < br >
* 不区分大小写
* @ param content 文本
* @ param tagNames 要清除的标签
* @ return 去除标签后的文本 */
public static String removeHtmlTag ( String content , String ... tagNames ) { } } | return removeHtmlTag ( content , true , tagNames ) ; |
public class Murmur3_x86_32 { /** * Finalization mix - force all bits of a hash block to avalanche */
private static int fmix ( int h1 , int length ) { } } | h1 ^= length ; h1 ^= h1 >>> 16 ; h1 *= 0x85ebca6b ; h1 ^= h1 >>> 13 ; h1 *= 0xc2b2ae35 ; h1 ^= h1 >>> 16 ; return h1 ; |
public class Params { /** * Test if numeric parameter is greater than or equal to given threshold value .
* @ param parameter invocation numeric parameter ,
* @ param value threshold value ,
* @ param name the name of invocation parameter .
* @ throws IllegalArgumentException if < code > parameter < / code > is... | if ( parameter < value ) { throw new IllegalArgumentException ( String . format ( "%s is not greater than or equal %d." , name , value ) ) ; } |
public class VSimpleCanvas { /** * Called whenever an update is received from the server */
@ Override public void updateFromUIDL ( UIDL uidl , ApplicationConnection client ) { } } | // This call should be made first .
// It handles sizes , captions , tooltips , etc . automatically .
if ( client . updateComponent ( this , uidl , true ) ) { // If client . updateComponent returns true there has been no changes and we
// do not need to update anything .
return ; } // Save reference to server connectio... |
public class JSPExtensionFactory { /** * DS method for setting ( providing ) a global tag lib config */
@ Reference ( cardinality = ReferenceCardinality . MULTIPLE , policy = ReferencePolicy . DYNAMIC ) protected void setGlobalTagLibConfig ( GlobalTagLibConfig globalTagLibConfig ) { } } | getGlobalTagLibraryCache ( ) . addGlobalTagLibConfig ( globalTagLibConfig ) ; |
public class QrHelperFunctions_ZDRM { /** * Performs a rank - 1 update operation on the submatrix specified by w with the multiply on the left . < br >
* < br >
* A = A ( I - & gamma ; * u * u < sup > H < / sup > ) < br >
* The order that matrix multiplies are performed has been carefully selected
* to minimize... | for ( int i = colA0 ; i < A . numRows ; i ++ ) { int startIndex = ( i * A . numCols + w0 ) * 2 ; double realSum = 0 , imagSum = 0 ; int rowIndex = startIndex ; int indexU = ( offsetU + w0 ) * 2 ; for ( int j = w0 ; j < w1 ; j ++ ) { double realA = A . data [ rowIndex ++ ] ; double imajA = A . data [ rowIndex ++ ] ; dou... |
public class Route { /** * Search the provided class ( and all its superclasses ) for the requested method .
* @ param handler _ class Class to be searched
* @ param handler _ method Name of the method to look for . The method must have signature ( int , Schema ) .
* @ return The callable Method object . */
priva... | for ( Method method : handler_class . getMethods ( ) ) if ( method . getName ( ) . equals ( handler_method ) ) { Class [ ] pt = method . getParameterTypes ( ) ; if ( pt != null && pt . length == 2 && pt [ 0 ] == Integer . TYPE && Schema . class . isAssignableFrom ( pt [ 1 ] ) ) return method ; } throw H2O . fail ( "Fai... |
public class LionEngineException { /** * Get formatted message with media .
* @ param media The media reference ( must not be < code > null < / code > ) .
* @ param message The message to concatenate ( must not be < code > null < / code > ) .
* @ return The formatted message .
* @ throws LionEngineException If ... | Check . notNull ( message ) ; return new StringBuilder ( getMessage ( media ) ) . append ( message ) . toString ( ) ; |
public class RoleDefinitionsInner { /** * Gets a role definition by ID .
* @ param roleDefinitionId The fully qualified role definition ID . Use the format , / subscriptions / { guid } / providers / Microsoft . Authorization / roleDefinitions / { roleDefinitionId } for subscription level role definitions , or / provi... | return ServiceFuture . fromResponse ( getByIdWithServiceResponseAsync ( roleDefinitionId ) , serviceCallback ) ; |
public class Cache { /** * Registers creator of item and returns item from cache or creator */
@ SuppressWarnings ( "unchecked" ) public static < T > T that ( Object key , Supplier < T > what ) { } } | if ( CACHE . get ( key ) != null ) { try { return ( T ) CACHE . get ( key ) ; } catch ( ClassCastException e ) { System . out . print ( "E/Cache: Can't use cached object: wrong type" ) ; } } T value = what . get ( ) ; CACHE . put ( key , value ) ; return value ; |
public class NGramModel { /** * 加载模型数据文件
* @ param modelFile
* @ throws IOException
* @ throws ClassNotFoundException */
public void load ( String modelFile ) throws IOException , ClassNotFoundException { } } | System . out . println ( "加载N-Gram模型:" + modelFile ) ; System . out . println ( "load ..." ) ; System . out . println ( modelFile ) ; ObjectInputStream in = new ObjectInputStream ( new BufferedInputStream ( new GZIPInputStream ( new FileInputStream ( modelFile ) ) ) ) ; n = ( Integer ) in . readObject ( ) ; System . ou... |
public class OnRoute { /** * / * PLAIN */
public void plain ( String response ) { } } | HttpHandlers . registerPredefined ( setup , verb , path , plainOpts ( ) , response ) ; |
public class DoubleIntIndex { /** * Adds a pair into the table .
* @ param key the key
* @ param value the value
* @ return true or false depending on success */
public synchronized boolean addUnsorted ( int key , int value ) { } } | if ( count == capacity ) { if ( fixedSize ) { return false ; } else { doubleCapacity ( ) ; } } if ( sorted && count != 0 ) { if ( sortOnValues ) { if ( value < values [ count - 1 ] ) { sorted = false ; } } else { if ( value < keys [ count - 1 ] ) { sorted = false ; } } } hasChanged = true ; keys [ count ] = key ; value... |
public class UpdateTagSupport { /** * < p > Execute the SQL statement , set either through the < code > sql < / code >
* attribute or as the body , and save the result as a variable
* named by the < code > var < / code > attribute in the scope specified
* by the < code > scope < / code > attribute , as an object ... | /* * Use the SQL statement specified by the sql attribute , if any ,
* otherwise use the body as the statement . */
String sqlStatement = null ; if ( sql != null ) { sqlStatement = sql ; } else if ( bodyContent != null ) { sqlStatement = bodyContent . getString ( ) ; } if ( sqlStatement == null || sqlStatement . trim... |
public class EntryFactory { /** * Returns an { @ link Entry } whose { @ link Dn } is baseDn followed by name as Rdn . The attribute type of the Rdn is
* ' common name ' . */
public static Entry namedObject ( String name , Dn baseDn ) { } } | Dn dn = Utils . concatDn ( SchemaConstants . CN_ATTRIBUTE , name , baseDn ) ; return namedObject ( dn ) ; |
public class RequiresCondition { /** * This method will run conditions that require all beans to be loaded . These conditions included " beans " , " missingBeans " and custom conditions . */
private void processPostStartRequirements ( ConditionContext context , AnnotationValue < Requires > requirements ) { } } | processPreStartRequirements ( context , requirements ) ; if ( context . isFailing ( ) ) { return ; } if ( ! matchesPresenceOfBeans ( context , requirements ) ) { return ; } if ( ! matchesAbsenceOfBeans ( context , requirements ) ) { return ; } matchesCustomConditions ( context , requirements ) ; |
public class HBCIUtils { /** * Ermittelt zu einer gegebenen Bankleitzahl den Namen des Institutes .
* @ param blz die Bankleitzahl
* @ return den Namen des dazugehörigen Kreditinstitutes . Falls die Bankleitzahl unbekannt ist ,
* so wird ein leerer String zurückgegeben */
public static String getNameForBLZ ( St... | BankInfo info = getBankInfo ( blz ) ; if ( info == null ) return "" ; return info . getName ( ) != null ? info . getName ( ) : "" ; |
public class RegistriesInner { /** * Schedules a new run based on the request parameters and add it to the run queue .
* @ param resourceGroupName The name of the resource group to which the container registry belongs .
* @ param registryName The name of the container registry .
* @ param runRequest The parameter... | if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( registr... |
public class DRL5Expressions { /** * src / main / resources / org / drools / compiler / lang / DRL5Expressions . g : 137:1 : typeMatch : ( ( primitiveType ) = > ( primitiveType ( ( LEFT _ SQUARE RIGHT _ SQUARE ) = > LEFT _ SQUARE RIGHT _ SQUARE ) * ) | ( ID ( ( typeArguments ) = > typeArguments ) ? ( DOT ID ( ( typeArg... | try { // src / main / resources / org / drools / compiler / lang / DRL5Expressions . g : 138:5 : ( ( primitiveType ) = > ( primitiveType ( ( LEFT _ SQUARE RIGHT _ SQUARE ) = > LEFT _ SQUARE RIGHT _ SQUARE ) * ) | ( ID ( ( typeArguments ) = > typeArguments ) ? ( DOT ID ( ( typeArguments ) = > typeArguments ) ? ) * ( ( L... |
public class SftpClient { /** * When connected to servers running SFTP version 3 ( or less ) the remote EOL
* type needs to be explicitly set because there is no reliable way for the
* client to determine the type of EOL for text files . In versions 4 + a
* mechanism is provided and this setting is overridden .
... | this . eolMode = eolMode ; if ( Log . isDebugEnabled ( ) ) { Log . debug ( this , "Remote EOL set to " + ( eolMode == EOL_CRLF ? "CRLF" : ( eolMode == EOL_CR ? "CR" : "LF" ) ) ) ; } |
public class CndImporter { /** * Import the CND content from the supplied stream , placing the content into the importer ' s destination .
* @ param file the file containing the CND content
* @ param problems where any problems encountered during import should be reported
* @ throws IOException if there is a prob... | importFrom ( IoUtil . read ( file ) , problems , file . getCanonicalPath ( ) ) ; |
public class PointSerializer { /** * Required to handle the special case where the altitude might be a Double . NaN , which isn ' t a
* valid double value as per JSON specification .
* @ param src A { @ link Point } defined by a longitude , latitude , and optionally , an
* altitude .
* @ param typeOfSrc Common ... | JsonArray rawCoordinates = new JsonArray ( ) ; // Unshift coordinates
List < Double > unshiftedCoordinates = CoordinateShifterManager . getCoordinateShifter ( ) . unshiftPoint ( src ) ; rawCoordinates . add ( new JsonPrimitive ( GeoJsonUtils . trim ( unshiftedCoordinates . get ( 0 ) ) ) ) ; rawCoordinates . add ( new J... |
public class Application { /** * Disply available use cases . */
public void displayUseCases ( ) { } } | System . out . println ( ) ; for ( int i = 0 ; i < useCases . size ( ) ; i ++ ) { System . out . println ( "[" + i + "] " + ( ( UseCase ) useCases . get ( i ) ) . getDescription ( ) ) ; } |
public class TemporaryZipFile { /** * Adds a resource respectively it ' s content to the filesystem at the position specified by the pathToFile
* @ param pathToFile
* the path to the file or folder to which the resource ' s content should be written
* @ param resource
* the resource providing the content for th... | if ( resource == null ) { addFolder ( pathToFile ) ; } else { addEntry ( pathToFile , resource ) ; } |
public class FormatUtil { /** * CFML Supported LS Formats
* @ param locale
* @ param tz
* @ param lenient
* @ return */
public static DateFormat [ ] getCFMLFormats ( TimeZone tz , boolean lenient ) { } } | String id = "cfml-" + Locale . ENGLISH . toString ( ) + "-" + tz . getID ( ) + "-" + lenient ; DateFormat [ ] df = formats . get ( id ) ; if ( df == null ) { df = new SimpleDateFormat [ ] { new SimpleDateFormat ( "EEE MMM dd HH:mm:ss z yyyy" , Locale . ENGLISH ) , new SimpleDateFormat ( "MMMM dd, yyyy HH:mm:ss a zzz" ,... |
public class GerritRestClient { /** * Handles LDAP auth ( but not LDAP _ HTTP ) which uses a HTML form . */
private Optional < String > tryGerritHttpFormAuth ( HttpClientBuilder client , HttpContext httpContext ) throws IOException , HttpStatusException { } } | if ( ! authData . isLoginAndPasswordAvailable ( ) ) { return Optional . absent ( ) ; } String loginUrl = authData . getHost ( ) + "/login/" ; HttpPost method = new HttpPost ( loginUrl ) ; List < BasicNameValuePair > parameters = Lists . newArrayList ( new BasicNameValuePair ( "username" , authData . getLogin ( ) ) , ne... |
public class LocaleFacet { /** * { @ inheritDoc }
* < p > Restores the original locale following the plugin ' s execution . < / p > */
@ Override public void restore ( ) { } } | if ( log . isInfoEnabled ( ) ) { log . info ( "Restoring default locale to [" + originalLocale + "]" ) ; } try { Locale . setDefault ( originalLocale ) ; } catch ( Exception e ) { log . error ( "Could not restore locale to [" + originalLocale + "]. Continuing with [" + Locale . getDefault ( ) + "]" , e ) ; } |
public class Utils { /** * It obtains all ascendants of a role through the ARoleInheritance
* relationship .
* @ param ge
* @ return */
public static Collection < ? extends GraphEntity > getAscendantsOfRole ( GraphEntity ge ) { } } | Vector < GraphEntity > allAscendants = new Vector < GraphEntity > ( ) ; try { Vector < GraphEntity > ascendants = Utils . getRelatedElementsVector ( ge , "ARoleInheritance" , "ARoleInheritancetarget" ) ; while ( ! ascendants . isEmpty ( ) ) { allAscendants . addAll ( ascendants ) ; ascendants . clear ( ) ; for ( GraphE... |
public class HttpServletResponseWrapperImpl { /** * @ see javax . servlet . http . HttpServletResponseWrapper # addCookie ( javax . servlet . http . Cookie ) */
@ Override public void addCookie ( Cookie cookie ) { } } | super . addCookie ( cookie ) ; if ( this . cookies == null ) { this . cookies = new HashSet < Cookie > ( ) ; } this . cookies . add ( cookie ) ; |
public class BugAnnotationUtil { /** * Write a BugAnnotation as XML .
* @ param xmlOutput
* the XMLOutput
* @ param elementName
* name of element for BugAnnotation
* @ param annotation
* the BugAnnotation
* @ param attributeList
* the XML attribute list
* @ param addMessages
* true if descriptive me... | SourceLineAnnotation src = null ; if ( annotation instanceof BugAnnotationWithSourceLines ) { src = ( ( BugAnnotationWithSourceLines ) annotation ) . getSourceLines ( ) ; } if ( addMessages || src != null ) { xmlOutput . openTag ( elementName , attributeList ) ; if ( src != null ) { src . writeXML ( xmlOutput , addMess... |
public class ListSSHPublicKeysResult { /** * A list of the SSH public keys assigned to IAM user .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setSSHPublicKeys ( java . util . Collection ) } or { @ link # withSSHPublicKeys ( java . util . Collection ) } if... | if ( this . sSHPublicKeys == null ) { setSSHPublicKeys ( new com . amazonaws . internal . SdkInternalList < SSHPublicKeyMetadata > ( sSHPublicKeys . length ) ) ; } for ( SSHPublicKeyMetadata ele : sSHPublicKeys ) { this . sSHPublicKeys . add ( ele ) ; } return this ; |
public class Vector3d { /** * Convert the given tuple to a real Vector3d .
* < p > If the given tuple is already a Vector3d , it is replied .
* @ param tuple the tuple .
* @ return the Vector3d .
* @ since 14.0 */
public static Vector3d convert ( Tuple3D < ? > tuple ) { } } | if ( tuple instanceof Vector3d ) { return ( Vector3d ) tuple ; } return new Vector3d ( tuple . getX ( ) , tuple . getY ( ) , tuple . getZ ( ) ) ; |
public class SimpleCamera2Activity { /** * Start the camera preview . */
private void startPreview ( ) { } } | // Sanity check . Parts of this code assume it ' s on this thread . If it has been put into a handle
// that ' s fine just be careful nothing assumes it ' s on the main looper
if ( Looper . getMainLooper ( ) . getThread ( ) != Thread . currentThread ( ) ) { throw new RuntimeException ( "Not on main looper! Modify code ... |
public class SoundManager { /** * unmutes all */
void unmute ( ) { } } | nonPermanent . entrySet ( ) . stream ( ) . flatMap ( entry -> entry . getValue ( ) . stream ( ) ) . map ( Reference :: get ) . filter ( Objects :: nonNull ) . forEach ( izouSoundLineBaseClass -> izouSoundLineBaseClass . setMutedFromSystem ( false ) ) ; if ( permanentLines != null ) permanentLines . stream ( ) . map ( R... |
public class transformaction { /** * Use this API to fetch filtered set of transformaction resources .
* filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */
public static transformaction [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } } | transformaction obj = new transformaction ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; transformaction [ ] response = ( transformaction [ ] ) obj . getfiltered ( service , option ) ; return response ; |
public class Matrix { /** * Sets all elements of the specified column of this matrix to given { @ code value } .
* @ param j the column index
* @ param value the element ' s new value */
public void setColumn ( int j , double value ) { } } | VectorIterator it = iteratorOfColumn ( j ) ; while ( it . hasNext ( ) ) { it . next ( ) ; it . set ( value ) ; } |
public class PermissionHandler { /** * Checks if the given Android Manifest Permissions have been granted by the user to this application before .
* @ param activity the caller activity
* @ param permissions to check availability for
* @ return true if all the Android Manifest Permissions are currently granted , ... | for ( String p : permissions ) { if ( ! isPermissionGranted ( activity , p ) ) { return false ; } } return true ; |
public class DDPStateSingleton { /** * Calls a Meteor method
* @ param method name of corresponding Meteor method
* @ param params arguments to be passed to the Meteor method
* @ param resultListener DDP command listener for this method call
* @ return command ID */
public int call ( String method , Object [ ] ... | return getDDP ( ) . call ( method , params , resultListener ) ; |
public class Iterators { /** * Drains all elements from the given iterator into a set
* @ param < T > The element type
* @ param iterator The iterator
* @ return The set */
public static < T > Set < T > toSet ( Iterator < T > iterator ) { } } | Objects . requireNonNull ( iterator , "The iterator is null" ) ; return Iterators . toCollection ( iterator , new LinkedHashSet < T > ( ) ) ; |
public class AbsDiff { /** * Check for an update of a node .
* @ param paramNewRtx
* first { @ link IReadTransaction } instance
* @ param paramOldRtx
* second { @ link IReadTransaction } instance
* @ return kind of diff
* @ throws TTIOException */
boolean checkUpdate ( final INodeReadTrx paramNewRtx , final... | assert paramNewRtx != null ; assert paramOldRtx != null ; boolean updated = false ; final long newKey = paramNewRtx . getNode ( ) . getDataKey ( ) ; boolean movedNewRtx = paramNewRtx . moveTo ( ( ( ITreeStructData ) paramNewRtx . getNode ( ) ) . getRightSiblingKey ( ) ) ; final long oldKey = paramOldRtx . getNode ( ) .... |
public class DestinationNamePattern { /** * If a pattern is wildcarded we csn parse it up front .
* @ throws SIDiscriminatorSyntaxException */
public void prepare ( ) throws SIDiscriminatorSyntaxException { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "prepare" ) ; // The user has specified a pattern to match against , check whether it is
// wildcarded
patternIsWildcarded = mpm . isWildCarded ( destinationNamePatternString ) ; // If the pattern is wildcarded then we can d... |
public class WTabSet { /** * Override handleRequest in order to perform processing specific to this component .
* @ param request the request being responded to . */
@ Override public void handleRequest ( final Request request ) { } } | if ( isDisabled ( ) ) { // Protect against client - side tampering of disabled / read - only fields .
return ; } // Remember which client side tab we were on .
String [ ] indicesStr = request . getParameterValues ( getId ( ) ) ; if ( indicesStr != null && indicesStr . length > 0 ) { List < Integer > oldIndices = getAct... |
public class JobsInner { /** * Gets information about the jobs associated with the subscription .
* @ param nextPageLink The NextLink from the previous successful call to List operation .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the PagedList & lt ;... | return listNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < JobInner > > , Page < JobInner > > ( ) { @ Override public Page < JobInner > call ( ServiceResponse < Page < JobInner > > response ) { return response . body ( ) ; } } ) ; |
public class EntityListenerDescFactory { /** * エンティティ記述を作成します 。
* @ param entityDesc エンティティ記述
* @ return エンティティリスナー記述 */
public EntityListenerDesc createEntityListenerDesc ( EntityDesc entityDesc ) { } } | EntityListenerDesc entityListenerDesc = new EntityListenerDesc ( ) ; entityListenerDesc . setEntityDesc ( entityDesc ) ; entityListenerDesc . setPackageName ( entityDesc . getPackageName ( ) ) ; String entityPrefix = StringUtil . defaultString ( entityDesc . getEntityPrefix ( ) , "" ) ; String entitySuffix = StringUtil... |
public class SectionLoader { /** * Loads all bytes and information of the delay - load section .
* The file on disk is read to fetch the information .
* @ return { @ link DelayLoadSection } of the given file , absent if file doesn ' t
* have this section
* @ throws IOException
* if unable to read the file */
... | return ( Optional < DelayLoadSection > ) maybeLoadSpecialSection ( DataDirectoryKey . DELAY_IMPORT_DESCRIPTOR ) ; |
public class CSSErrorStrategy { /** * throws RecognitionException to handle in parser ' s catch block */
public Token recoverInline ( Parser recognizer ) throws RecognitionException { } } | throw new RecognitionException ( recognizer , recognizer . getInputStream ( ) , recognizer . getContext ( ) ) ; |
public class SipApplicationSessionImpl { /** * Remove a servlet timer from this application session
* @ param servletTimer the servlet timer to remove */
public void removeServletTimer ( ServletTimer servletTimer , boolean updateAppSessionReadyToInvalidateState ) { } } | if ( servletTimers != null ) { servletTimers . remove ( servletTimer . getId ( ) ) ; } if ( updateAppSessionReadyToInvalidateState ) { updateReadyToInvalidateState ( ) ; } |
public class Matrix4x3d { /** * / * ( non - Javadoc )
* @ see org . joml . Matrix4x3dc # mul ( org . joml . Matrix4x3dc , org . joml . Matrix4x3d ) */
public Matrix4x3d mul ( Matrix4x3dc right , Matrix4x3d dest ) { } } | if ( ( properties & PROPERTY_IDENTITY ) != 0 ) return dest . set ( right ) ; else if ( ( right . properties ( ) & PROPERTY_IDENTITY ) != 0 ) return dest . set ( this ) ; else if ( ( properties & PROPERTY_TRANSLATION ) != 0 ) return mulTranslation ( right , dest ) ; return mulGeneric ( right , dest ) ; |
public class Feature { /** * Str id2 idx .
* @ param fmap the fmap
* @ return the int */
public int strId2Idx ( Map fmap ) { } } | Integer idxInt = ( Integer ) fmap . get ( strId ) ; if ( idxInt != null ) { this . idx = idxInt . intValue ( ) ; } return this . idx ; |
public class MobileSafariLocator { /** * TODO freynaud - if xcode change , the safari copy should be wiped out . */
private static APPIOSApplication copyOfSafari ( File xcodeInstall , String sdk ) { } } | File copy = new File ( IOSServer . getTmpIOSFolder ( ) . getAbsolutePath ( ) , "safariCopies/safari-" + sdk + ".app" ) ; if ( ! copy . exists ( ) ) { File safariFolder = APPIOSApplication . findSafariLocation ( xcodeInstall , sdk ) ; copy . mkdirs ( ) ; try { FileUtils . copyDirectory ( safariFolder , copy ) ; } catch ... |
public class SnapshotClient { /** * Deletes the specified Snapshot resource . Keep in mind that deleting a single snapshot might not
* necessarily delete all the data on that snapshot . If any data on the snapshot that is marked
* for deletion is needed for subsequent snapshots , the data will be moved to the next ... | DeleteSnapshotHttpRequest request = DeleteSnapshotHttpRequest . newBuilder ( ) . setSnapshot ( snapshot ) . build ( ) ; return deleteSnapshot ( request ) ; |
public class Schema { /** * Creates a { @ link Type # RECORD RECORD } { @ link Schema } with the given name and { @ link Field Fields } .
* The ordering of the fields inside the record would be the same as the one being passed in .
* @ param name Name of the record
* @ param fields All the fields that the record ... | return recordOf ( name , ImmutableList . copyOf ( fields ) ) ; |
public class appfwpolicy_stats { /** * Use this API to fetch statistics of appfwpolicy _ stats resource of given name . */
public static appfwpolicy_stats get ( nitro_service service , String name ) throws Exception { } } | appfwpolicy_stats obj = new appfwpolicy_stats ( ) ; obj . set_name ( name ) ; appfwpolicy_stats response = ( appfwpolicy_stats ) obj . stat_resource ( service ) ; return response ; |
public class ApplicationServiceClient { /** * Updates specified application .
* < p > Sample code :
* < pre > < code >
* try ( ApplicationServiceClient applicationServiceClient = ApplicationServiceClient . create ( ) ) {
* Application application = Application . newBuilder ( ) . build ( ) ;
* Application resp... | UpdateApplicationRequest request = UpdateApplicationRequest . newBuilder ( ) . setApplication ( application ) . build ( ) ; return updateApplication ( request ) ; |
public class NaviProxyFactoryBean { /** * 从local cache中获取最新的服务地址列表
* 如果启用了zookeeper , local cache由异步守护线程作为zookeeper客户端实时更新 , 否则直接从配置中取
* @ return 服务地址列表 */
protected List < String > getServerList ( ) { } } | if ( StringUtil . isNotEmpty ( zkNodePath ) ) { String key = ZkPathUtil . buildPath ( NaviCommonConstant . ZOOKEEPER_BASE_PATH , zkNodePath , serviceInterface . getSimpleName ( ) ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Try to get server list from local cache for " + key ) ; } List < String > serverList = S... |
public class AbstractExtendedSet { /** * { @ inheritDoc } */
@ Override public void fill ( T from , T to ) { } } | ExtendedSet < T > toAdd = empty ( ) ; toAdd . add ( to ) ; toAdd . complement ( ) ; toAdd . add ( to ) ; ExtendedSet < T > toRemove = empty ( ) ; toRemove . add ( from ) ; toRemove . complement ( ) ; toAdd . removeAll ( toRemove ) ; this . addAll ( toAdd ) ; |
public class OutputQuartzHelper { /** * Gets the job detail .
* @ param outputInvoker the output invoker
* @ return the job detail */
public JobDetail getJobDetail ( OutputInvoker outputInvoker ) { } } | JobBuilder jobBuilder = JobBuilder . newJob ( OutputJob . class ) ; JobDetail jobDetail = jobBuilder . build ( ) ; jobDetail . getJobDataMap ( ) . put ( OUTPUT_JOB_NAME , outputInvoker ) ; return jobDetail ; |
public class CompositeDialogPage { /** * Decorates the page title of the given < code > DialogPage < / code > .
* Can be overridden to provide additional decorations .
* The default implementation returns a html with an indication whether the
* page is complete or incomplete
* @ param page the page
* @ param ... | return LabelUtils . htmlBlock ( "<center>" + title + "<sup><font size=-3 color=red>" + ( page . isPageComplete ( ) ? "" : "*" ) ) ; |
public class DetectChessboardSquarePoints { /** * The polygon detected from the contour is too small because the binary image was eroded . This expand the size
* of the polygon so that it fits the image edge better */
public void adjustBeforeOptimize ( Polygon2D_F64 polygon , GrowQueue_B touchesBorder , boolean clock... | int N = polygon . size ( ) ; work . vertexes . resize ( N ) ; for ( int i = 0 ; i < N ; i ++ ) { work . get ( i ) . set ( 0 , 0 ) ; } for ( int i = N - 1 , j = 0 ; j < N ; i = j , j ++ ) { int ii , jj , kk , mm ; if ( clockwise ) { mm = CircularIndex . addOffset ( - 1 , i , N ) ; ii = i ; jj = j ; kk = CircularIndex . ... |
public class TurfMeasurement { /** * Takes two { @ link Point } s and returns a point midway between them . The midpoint is calculated
* geodesically , meaning the curvature of the earth is taken into account .
* @ param from first point used for calculating the midpoint
* @ param to second point used for calcula... | double dist = distance ( from , to , TurfConstants . UNIT_MILES ) ; double heading = bearing ( from , to ) ; return destination ( from , dist / 2 , heading , TurfConstants . UNIT_MILES ) ; |
public class AuthUtils { /** * Get all the Nimbus Auto cred plugins .
* @ param conf nimbus configuration to use .
* @ return nimbus auto credential plugins . */
public static Collection < INimbusCredentialPlugin > getNimbusAutoCredPlugins ( Map conf ) { } } | try { Set < INimbusCredentialPlugin > ret = new HashSet < INimbusCredentialPlugin > ( ) ; Collection < String > clazzes = ( Collection < String > ) conf . get ( Config . NIMBUS_AUTO_CRED_PLUGINS ) ; if ( clazzes != null ) { for ( String clazz : clazzes ) { INimbusCredentialPlugin inst = ( INimbusCredentialPlugin ) Clas... |
public class ListCuratedEnvironmentImagesRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ListCuratedEnvironmentImagesRequest listCuratedEnvironmentImagesRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( listCuratedEnvironmentImagesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; } |
public class JMRandom { /** * Foreach random int .
* @ param streamSize the stream size
* @ param randomIntSupplier the random int supplier
* @ param eachRandomIntConsumer the each random int consumer */
public static void foreachRandomInt ( int streamSize , IntSupplier randomIntSupplier , IntConsumer eachRandomI... | buildRandomIntStream ( streamSize , randomIntSupplier ) . forEach ( eachRandomIntConsumer ) ; |
public class Choice6 { /** * { @ inheritDoc }
* @ param lazyAppFn */
@ Override public < G > Lazy < Choice6 < A , B , C , D , E , G > > lazyZip ( Lazy < ? extends Applicative < Function < ? super F , ? extends G > , Choice6 < A , B , C , D , E , ? > > > lazyAppFn ) { } } | return match ( a -> lazy ( a ( a ) ) , b -> lazy ( b ( b ) ) , c -> lazy ( c ( c ) ) , d -> lazy ( d ( d ) ) , e -> lazy ( e ( e ) ) , f -> lazyAppFn . fmap ( choiceFn -> choiceFn . < G > fmap ( fn -> fn . apply ( f ) ) . coerce ( ) ) ) ; |
public class CoverageCostMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CoverageCost coverageCost , ProtocolMarshaller protocolMarshaller ) { } } | if ( coverageCost == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( coverageCost . getOnDemandCost ( ) , ONDEMANDCOST_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessa... |
public class CDIArchiveImpl { /** * { @ inheritDoc } */
@ Override public Resource getResource ( String path ) { } } | Entry entry = getContainer ( ) . getEntry ( path ) ; Resource resource = entry == null ? null : new ResourceImpl ( entry ) ; return resource ; |
public class Channels { /** * Launches a new JVM with the given classpath , establish a communication channel ,
* and return a { @ link Channel } to it .
* @ param displayName
* Human readable name of what this JVM represents . For example " Selenium grid " or " Hadoop " .
* This token is used for messages to {... | ServerSocket serverSocket = new ServerSocket ( ) ; serverSocket . bind ( new InetSocketAddress ( "localhost" , 0 ) ) ; serverSocket . setSoTimeout ( ( int ) TimeUnit . SECONDS . toMillis ( 10 ) ) ; // use - cp + FQCN instead of - jar since remoting . jar can be rebundled ( like in the case of the swarm plugin . )
vmb .... |
public class DefaultPluginRegistry { /** * Downloads the plugin via its maven GAV information . This will first look in the local
* . m2 directory . If the plugin is not found there , then it will try to download the
* plugin from one of the configured remote maven repositories . */
protected void downloadPlugin ( ... | if ( pluginRepositories . isEmpty ( ) ) { // Didn ' t find it - no repositories configured !
handler . handle ( AsyncResultImpl . create ( ( File ) null ) ) ; return ; } final Iterator < URI > iterator = pluginRepositories . iterator ( ) ; URI repoUrl = iterator . next ( ) ; final IAsyncResultHandler < File > handler2 ... |
public class JodaBeanSer { /** * Returns a copy of this serializer with the specified pretty print new line .
* @ param newLine the new line , not null
* @ return a copy of this object with the new line changed , not null */
public JodaBeanSer withNewLine ( String newLine ) { } } | JodaBeanUtils . notNull ( newLine , "newLine" ) ; return new JodaBeanSer ( indent , newLine , converter , iteratorFactory , shortTypes , deserializers , includeDerived ) ; |
public class Pac4jHTTPPostSimpleSignEncoder { /** * Check component attributes . Copy / Paste parents initialization ( no super . doInitialize ) except for
* AbstractHttpServletResponseMessageEncoder since HttpServletResponse is always null .
* @ throws ComponentInitializationException if initialization fails */
@ ... | log . debug ( "Initialized {}" , this . getClass ( ) . getSimpleName ( ) ) ; if ( getMessageContext ( ) == null ) { throw new ComponentInitializationException ( "Message context cannot be null" ) ; } if ( getVelocityEngine ( ) == null ) { throw new ComponentInitializationException ( "VelocityEngine must be supplied" ) ... |
public class CmsResourceTableProperty { /** * Gets a map of default columns by name . < p >
* @ return the default columns with their names as keys */
public static Map < String , CmsResourceTableProperty > getDefaultColumnsByName ( ) { } } | if ( m_columnsByName == null ) { m_columnsByName = Maps . newHashMap ( ) ; for ( CmsResourceTableProperty column : defaultProperties ( ) ) { m_columnsByName . put ( column . getId ( ) , column ) ; } } return Collections . unmodifiableMap ( m_columnsByName ) ; |
public class AssociatedPair3D { /** * Assigns this object to be equal to the passed in values . */
public void set ( double x1 , double y1 , double z1 , double x2 , double y2 , double z2 ) { } } | this . p1 . set ( x1 , y1 , z1 ) ; this . p2 . set ( x2 , y2 , z2 ) ; |
public class TrainingsImpl { /** * Export a trained iteration .
* @ param projectId The project id
* @ param iterationId The iteration id
* @ param platform The target platform ( coreml or tensorflow ) . Possible values include : ' CoreML ' , ' TensorFlow ' , ' DockerFile ' , ' ONNX '
* @ param exportIterationO... | return ServiceFuture . fromResponse ( exportIterationWithServiceResponseAsync ( projectId , iterationId , platform , exportIterationOptionalParameter ) , serviceCallback ) ; |
public class TitanObjectFactory { /** * Converts a Multiplicity to a Cardinality .
* @ param multiplicity
* @ return */
public static Cardinality createCardinality ( AtlasCardinality cardinality ) { } } | switch ( cardinality ) { case SINGLE : return Cardinality . SINGLE ; case LIST : return Cardinality . LIST ; case SET : return Cardinality . SET ; default : throw new IllegalStateException ( "Unrecognized cardinality: " + cardinality ) ; } |
public class DefaultConfidentialStore { /** * Reverse operation of { @ link # store ( ConfidentialKey , byte [ ] ) }
* @ return
* null the data has not been previously persisted . */
@ Override protected byte [ ] load ( ConfidentialKey key ) throws IOException { } } | try { File f = getFileFor ( key ) ; if ( ! f . exists ( ) ) return null ; Cipher sym = Secret . getCipher ( "AES" ) ; sym . init ( Cipher . DECRYPT_MODE , masterKey ) ; try ( InputStream fis = Files . newInputStream ( f . toPath ( ) ) ; CipherInputStream cis = new CipherInputStream ( fis , sym ) ) { byte [ ] bytes = IO... |
public class SocketBindingJBossASClient { /** * Sets the interface name for the named socket binding found in the named socket binding group .
* If sysPropName is null , this simply sets the interface name explicitly to the given name .
* If sysPropName is not null , this sets the interface name to the expression "... | // / socket - binding - group = standard - sockets / socket - binding = messaging /
// : write - attribute ( name = interface , value = unsecure )
String interfaceNameValue ; if ( sysPropName != null ) { interfaceNameValue = "${" + sysPropName + ":" + interfaceName + "}" ; } else { interfaceNameValue = String . valueOf... |
public class LocalDateTime { /** * Returns a copy of this date - time with the specified amount added .
* This returns a { @ code LocalDateTime } , based on this one , with the specified amount added .
* The amount is typically { @ link Period } or { @ link Duration } but may be
* any other type implementing the ... | if ( amountToAdd instanceof Period ) { Period periodToAdd = ( Period ) amountToAdd ; return with ( date . plus ( periodToAdd ) , time ) ; } Objects . requireNonNull ( amountToAdd , "amountToAdd" ) ; return ( LocalDateTime ) amountToAdd . addTo ( this ) ; |
public class AdminResource { /** * Fetches the version for this application .
* @ return json representing the version . */
@ GET @ Path ( "version" ) @ Produces ( Servlets . JSON_MEDIA_TYPE ) public Response getVersion ( ) { } } | if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "==> AdminResource.getVersion()" ) ; } if ( version == null ) { try { PropertiesConfiguration configProperties = new PropertiesConfiguration ( "atlas-buildinfo.properties" ) ; JSONObject response = new JSONObject ( ) ; response . put ( "Version" , configProperties . getSt... |
public class CompiledFEELSemanticMappings { /** * FEEL spec Table 38
* Delegates to { @ link InfixOpNode } except evaluationcontext */
public static Boolean and ( Object left , Object right ) { } } | return ( Boolean ) InfixOpNode . and ( left , right , null ) ; |
public class Bpmn2JsonUnmarshaller { /** * Start unmarshalling using the parser .
* @ param parser
* @ param preProcessingData
* @ return the root element of a bpmn2 document .
* @ throws java . io . IOException */
private Bpmn2Resource unmarshall ( JsonParser parser , String preProcessingData ) throws IOExcept... | try { parser . nextToken ( ) ; // open the object
ResourceSet rSet = new ResourceSetImpl ( ) ; rSet . getResourceFactoryRegistry ( ) . getExtensionToFactoryMap ( ) . put ( "bpmn2" , new JBPMBpmn2ResourceFactoryImpl ( ) ) ; Bpmn2Resource bpmn2 = ( Bpmn2Resource ) rSet . createResource ( URI . createURI ( "virtual.bpmn2"... |
public class CommerceNotificationTemplateWrapper { /** * Sets the localized bodies of this commerce notification template from the map of locales and localized bodies .
* @ param bodyMap the locales and localized bodies of this commerce notification template */
@ Override public void setBodyMap ( Map < java . util . ... | _commerceNotificationTemplate . setBodyMap ( bodyMap ) ; |
public class X509CertPath { /** * Reads the entire contents of an InputStream into a byte array .
* @ param is the InputStream to read from
* @ return the bytes read from the InputStream */
private static byte [ ] readAllBytes ( InputStream is ) throws IOException { } } | byte [ ] buffer = new byte [ 8192 ] ; ByteArrayOutputStream baos = new ByteArrayOutputStream ( 2048 ) ; int n ; while ( ( n = is . read ( buffer ) ) != - 1 ) { baos . write ( buffer , 0 , n ) ; } return baos . toByteArray ( ) ; |
public class Pipes { /** * Asynchronously publish data to the Adapter specified by the provided Key
* < pre >
* { @ code
* Pipes < String , Integer > pipes = Pipes . of ( ) ;
* Queue < Integer > queue = new Queue ( ) ;
* pipes . register ( " hello " , queue ) ;
* pipes . publishToAsync ( " hello " , Reactiv... | SequentialElasticPools . simpleReact . react ( er -> er . of ( publisher ) . peek ( p -> publishTo ( key , p ) ) ) ; |
public class Includer { /** * Sends an error . When not in an included page , calls sendError directly .
* When inside of an include will set request attribute so outermost include can call sendError . */
public static void sendError ( HttpServletRequest request , HttpServletResponse response , int status , String me... | if ( request . getAttribute ( IS_INCLUDED_REQUEST_ATTRIBUTE_NAME ) == null ) { // Not included , sendError directly
if ( message == null ) { response . sendError ( status ) ; } else { response . sendError ( status , message ) ; } } else { // Is included , set attributes so top level tag can perform actual sendError cal... |
public class ServletContextResource { /** * This implementation creates a ServletContextResource , applying the given path
* relative to the path of the underlying file of this resource descriptor . */
@ Override public Resource createRelative ( String relativePath ) { } } | String pathToUse = StringUtils . applyRelativePath ( this . path , relativePath ) ; return new ServletContextResource ( this . servletContext , pathToUse ) ; |
public class OutlookRecipient { /** * Bean setter for { @ link # address } . */
public void setAddress ( final String address ) { } } | if ( this . address == null && address != null && address . contains ( "@" ) ) { this . address = address ; } |
public class XLogger { /** * Log method exit
* @ param result
* The result of the method being exited */
public < T > T exit ( T result ) { } } | if ( instanceofLAL && logger . isTraceEnabled ( ENTRY_MARKER ) ) { FormattingTuple tp = MessageFormatter . format ( EXIT_MESSAGE_1 , result ) ; ( ( LocationAwareLogger ) logger ) . log ( EXIT_MARKER , FQCN , LocationAwareLogger . TRACE_INT , tp . getMessage ( ) , new Object [ ] { result } , tp . getThrowable ( ) ) ; } ... |
public class ComposableInvocationHandler { /** * Factory method to compose the { @ link Iterable } of { @ link InvocationHandler InvocationHandlers }
* into a Composite object .
* @ param invocationHandlers { @ link Iterable } of { @ link InvocationHandler InvocationHandlers } to compose .
* @ return a new instan... | return new ComposableInvocationHandler ( asArray ( ( Iterable ) invocationHandlers , InvocationHandler . class ) ) ; |
public class WaveformFinder { /** * < p > Start finding waveforms for all active players . Starts the { @ link MetadataFinder } if it is not already
* running , because we need it to send us metadata updates to notice when new tracks are loaded . This in turn
* starts the { @ link DeviceFinder } , so we can keep tr... | if ( ! isRunning ( ) ) { ConnectionManager . getInstance ( ) . addLifecycleListener ( lifecycleListener ) ; ConnectionManager . getInstance ( ) . start ( ) ; DeviceFinder . getInstance ( ) . addDeviceAnnouncementListener ( announcementListener ) ; MetadataFinder . getInstance ( ) . addLifecycleListener ( lifecycleListe... |
public class GosucUtil { /** * Get all JARs from the lib directory of the System ' s java . home property
* @ return List of absolute paths to all JRE libraries */
public static List < String > getJreJars ( ) { } } | String javaHome = System . getProperty ( "java.home" ) ; Path libsDir = FileSystems . getDefault ( ) . getPath ( javaHome , "/lib" ) ; List < String > retval = GosucUtil . getIbmClasspath ( ) ; try { retval . addAll ( Files . walk ( libsDir ) . filter ( path -> path . toFile ( ) . isFile ( ) ) . filter ( path -> path .... |
public class Collectors { /** * Returns a { @ code Collector } that fills new unmodifiable { @ code List } with input elements .
* The returned { @ code Collector } disallows { @ code null } s
* and throws { @ code NullPointerException } if it is presented with a null value .
* @ param < T > the type of the input... | return Collectors . collectingAndThen ( Collectors . < T > toList ( ) , new UnaryOperator < List < T > > ( ) { @ NotNull @ Override public List < T > apply ( @ NotNull List < T > list ) { Objects . requireNonNullElements ( list ) ; return Collections . unmodifiableList ( list ) ; } } ) ; |
public class AssignVolumeRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( AssignVolumeRequest assignVolumeRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( assignVolumeRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( assignVolumeRequest . getVolumeId ( ) , VOLUMEID_BINDING ) ; protocolMarshaller . marshall ( assignVolumeRequest . getInstanceId ( ) , INSTANCEID_BINDING ) ; } catch... |
public class SimpleULogger { /** * { @ inheritDoc } */
public void info ( final String parameterizedMsg , final Object param1 , final Object param2 ) { } } | parameterizedLog ( INFO_STR , parameterizedMsg , param1 , param2 ) ; |
public class DoubleChromosome { /** * Create a new { @ code DoubleChromosome } with the given genes .
* @ param genes the genes of the chromosome .
* @ return a new chromosome with the given genes .
* @ throws IllegalArgumentException if the length of the genes array is
* empty or the given { @ code genes } doe... | checkGeneRange ( Stream . of ( genes ) . map ( DoubleGene :: range ) ) ; return new DoubleChromosome ( ISeq . of ( genes ) , IntRange . of ( genes . length ) ) ; |
public class Gauge { /** * Removes the given Section from the list of ticklabel sections .
* @ param SECTION */
public void removeTickLabelSection ( final Section SECTION ) { } } | if ( null == SECTION ) return ; tickLabelSections . remove ( SECTION ) ; Collections . sort ( tickLabelSections , new SectionComparator ( ) ) ; fireUpdateEvent ( REDRAW_EVENT ) ; |
public class BaseDependencyCheckMojo { /** * Generates a warning message listing a summary of dependencies and their
* associated CPE and CVE entries .
* @ param mp the Maven project for which the summary is shown
* @ param dependencies a list of dependency objects */
protected void showSummary ( MavenProject mp ... | if ( showSummary ) { DependencyCheckScanAgent . showSummary ( mp . getName ( ) , dependencies ) ; } |
public class PagingTableModel { /** * Schedule the loading of the neighborhood around offset ( if not already
* scheduled ) .
* @ param offset the offset row */
private void schedule ( int offset ) { } } | if ( isPending ( offset ) ) { return ; } int startOffset = Math . max ( 0 , offset - maxPageSize / 2 ) ; int length = offset + maxPageSize / 2 - startOffset ; load ( startOffset , length ) ; |
public class SourceStreamManager { /** * Set the StreamSet to be the given one , which will probably have
* been restored from the the message store
* @ param newStreamSet
* @ throws SIStoreException */
public void reconstituteStreamSet ( StreamSet newStreamSet ) throws SIRollbackException , SIConnectionLostExcep... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "reconstituteStreamSet" , streamSet ) ; // remove the old one
if ( streamSet != null ) streamSet . remove ( ) ; // replace it with a new one
streamSet = newStreamSet ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . is... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.