signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ThriftService { /** * - - - - - Public DBService methods : Updates */
@ Override public void commit ( DBTransaction dbTran ) { } } | assert dbTran . getTenant ( ) . getName ( ) . equals ( this . getTenant ( ) . getName ( ) ) ; DBConn dbConn = getDBConnection ( ) ; try { dbConn . commit ( dbTran ) ; } finally { returnDBConnection ( dbConn ) ; } |
public class PGXAConnection { /** * < p > Preconditions : < / p >
* < ol >
* < li > xid is known to the RM or it ' s in prepared state < / li >
* < / ol >
* < p > Implementation deficiency preconditions : < / p >
* < ol >
* < li > xid must be associated with this connection if it ' s not in prepared state .... | if ( LOGGER . isLoggable ( Level . FINEST ) ) { debug ( "rolling back xid = " + xid ) ; } // We don ' t explicitly check precondition 1.
try { if ( currentXid != null && currentXid . equals ( xid ) ) { state = State . IDLE ; currentXid = null ; conn . rollback ( ) ; conn . setAutoCommit ( localAutoCommitMode ) ; } else... |
public class SubjectRegistry { /** * Remove an observer for a registered observer
* @ param < T > the class type
* @ param subjectName the subject name to remove
* @ param subjectObserver the subject observer */
@ SuppressWarnings ( { } } | "unchecked" , "rawtypes" } ) public < T > void removeRegistraion ( String subjectName , SubjectObserver < T > subjectObserver ) { Subject subject = ( Subject ) this . registry . get ( subjectName ) ; if ( subject == null ) return ; subject . remove ( subjectObserver ) ; |
public class Record { /** * Accessor method to retrieve a Boolean instance .
* @ param field the index number of the field to be retrieved
* @ param falseText locale specific text representing false
* @ return the value of the required field */
public Boolean getBoolean ( int field , String falseText ) { } } | Boolean result ; if ( ( field < m_fields . length ) && ( m_fields [ field ] . length ( ) != 0 ) ) { result = ( ( m_fields [ field ] . equalsIgnoreCase ( falseText ) == true ) ? Boolean . FALSE : Boolean . TRUE ) ; } else { result = null ; } return ( result ) ; |
public class CredentialsServiceImpl { /** * { @ inheritDoc } */
@ Override public boolean isSubjectValid ( Subject subject ) { } } | boolean isValid = true ; // Step through the list of registered providers
Iterator < CredentialProvider > itr = credentialProviders . getServices ( ) ; while ( itr . hasNext ( ) ) { CredentialProvider provider = itr . next ( ) ; isValid = isValid && provider . isSubjectValid ( subject ) ; // TODO - JwtSSOToken fallback... |
public class DomainControllerData { /** * Write the domain controller ' s data to an output stream .
* @ param outstream the output stream
* @ throws Exception */
public void writeTo ( DataOutput outstream ) throws Exception { } } | S3Util . writeString ( host , outstream ) ; outstream . writeInt ( port ) ; S3Util . writeString ( protocol , outstream ) ; |
public class SparqlIndexedLogicConceptMatcher { /** * An ontology has been deleted from the KB and we should thus update the indexes . By the time we want to process
* this event we won ' t know any longer which concepts need to be removed unless we keep this somewhere .
* @ param event the ontology deletion event ... | log . info ( "Processing Ontology Deleted Event - {}" , event . getOntologyUri ( ) ) ; // Obtain all concepts in the KB
Set < URI > conceptUris = this . manager . getKnowledgeBaseManager ( ) . listConcepts ( null ) ; // Cross reference them with those for which we have entries . The ones unmatched were defined in the p... |
public class SocketJoiner { /** * Read a length prefixed JSON message */
private JSONObject readJSONObjFromWire ( MessagingChannel messagingChannel ) throws IOException , JSONException { } } | ByteBuffer messageBytes = messagingChannel . readMessage ( ) ; JSONObject jsObj = new JSONObject ( new String ( messageBytes . array ( ) , StandardCharsets . UTF_8 ) ) ; return jsObj ; |
public class CPOptionCategoryUtil { /** * Returns the first cp option category in the ordered set where uuid = & # 63 ; .
* @ param uuid the uuid
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ return the first matching cp option category , or < code > nu... | return getPersistence ( ) . fetchByUuid_First ( uuid , orderByComparator ) ; |
public class DialogPreference { /** * Sets the background color of the header of the preference ' s dialog .
* @ param color
* The color , which should be set , as an { @ link Integer } value or - 1 , if no custom color
* should be set */
public final void setDialogHeaderBackgroundColor ( @ ColorInt final int col... | this . dialogHeaderBackground = new ColorDrawable ( color ) ; this . dialogHeaderBackgroundBitmap = null ; this . dialogHeaderBackgroundId = - 1 ; this . dialogHeaderBackgroundColor = color ; |
public class StartBuildRequest { /** * A set of environment variables that overrides , for this build only , the latest ones already defined in the build
* project .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setEnvironmentVariablesOverride ( java . ut... | if ( this . environmentVariablesOverride == null ) { setEnvironmentVariablesOverride ( new java . util . ArrayList < EnvironmentVariable > ( environmentVariablesOverride . length ) ) ; } for ( EnvironmentVariable ele : environmentVariablesOverride ) { this . environmentVariablesOverride . add ( ele ) ; } return this ; |
public class StreamExecutionEnvironment { /** * Creates a data stream from the given non - empty collection .
* < p > Note that this operation will result in a non - parallel data stream source ,
* i . e . , a data stream source with parallelism one .
* @ param data
* The collection of elements to create the da... | Preconditions . checkNotNull ( data , "Collection must not be null" ) ; // must not have null elements and mixed elements
FromElementsFunction . checkCollection ( data , typeInfo . getTypeClass ( ) ) ; SourceFunction < OUT > function ; try { function = new FromElementsFunction < > ( typeInfo . createSerializer ( getCon... |
public class HtmlForm { /** * < p > Return the value of the < code > onreset < / code > property . < / p >
* < p > Contents : Javascript code executed when this form is reset . */
public java . lang . String getOnreset ( ) { } } | return ( java . lang . String ) getStateHelper ( ) . eval ( PropertyKeys . onreset ) ; |
public class UpdateSite { /** * This is the endpoint that receives the update center data file from the browser . */
@ RequirePOST public FormValidation doPostBack ( StaplerRequest req ) throws IOException , GeneralSecurityException { } } | DownloadSettings . checkPostBackAccess ( ) ; return updateData ( IOUtils . toString ( req . getInputStream ( ) , "UTF-8" ) , true ) ; |
public class StaticListExclusionFilter { /** * / * ( non - Javadoc )
* @ see org . archive . wayback . resourceindex . SearchResultFilter # filterSearchResult ( org . archive . wayback . core . SearchResult ) */
@ Override public int filterObject ( CaptureSearchResult r ) { } } | if ( ! notifiedSeen ) { if ( filterGroup != null ) { filterGroup . setSawAdministrative ( ) ; } notifiedSeen = true ; } String surt ; try { String url = canonicalizer . urlStringToKey ( r . getOriginalUrl ( ) ) ; surt = SURT . fromPlain ( url ) ; // surt = SURTTokenizer . prefixKey ( url ) ;
} catch ( URIException e ) ... |
public class ProfileAuthorizer { /** * If all profiles are authorized .
* @ param context the web context
* @ param profiles the user profiles
* @ return whether all profiles are authorized */
public boolean isAllAuthorized ( final WebContext context , final List < U > profiles ) { } } | for ( final U profile : profiles ) { if ( ! isProfileAuthorized ( context , profile ) ) { return handleError ( context ) ; } } return true ; |
public class PackageScanner { /** * Scans the classloader as configured .
* @ return A list of discovered packages and their guessed version */
public Set < String > scan ( ) { } } | // Initialize the pattern factories
initPatterns ( ) ; // Determine which packages to start from
List < String > roots = packagePatterns . getRoots ( ) ; InternalScanner scanner = new InternalScanner ( getClassLoader ( ) ) ; // Kick off the scanning
Set < String > exports = scanner . findInPackages ( new PatternTest ( ... |
public class AbstractCachedGenerator { /** * Creates the temporary resource
* @ param context
* the context
* @ param cacheMode
* the cache mode
* @ param rd
* the reader of the compiled resource
* @ return the reader */
protected Reader createTempResource ( GeneratorContext context , CacheMode cacheMode ... | String filePath = getTempFilePath ( context , cacheMode ) ; Writer wr = null ; FileOutputStream fos = null ; try { File f = new File ( filePath ) ; if ( ! f . getParentFile ( ) . exists ( ) ) { f . getParentFile ( ) . mkdirs ( ) ; } String content = IOUtils . toString ( rd ) ; fos = new FileOutputStream ( f ) ; FileCha... |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EEnum getImageEncodingCOMPRID ( ) { } } | if ( imageEncodingCOMPRIDEEnum == null ) { imageEncodingCOMPRIDEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 116 ) ; } return imageEncodingCOMPRIDEEnum ; |
public class CollectionHelper { /** * Filters a collection using the given predicate .
* @ param items source items
* @ param predicate predicate function
* @ param < T > type of elements in the source collection
* @ return a new filtered list */
public static < T > List < T > filter ( Collection < T > items , ... | List < T > result = new ArrayList < > ( ) ; if ( ! isEmpty ( items ) ) { for ( T item : items ) { if ( predicate . apply ( item ) ) { result . add ( item ) ; } } } return result ; |
public class TasksImpl { /** * Lists all of the tasks that are associated with the specified job .
* For multi - instance tasks , information such as affinityId , executionInfo and nodeInfo refer to the primary task . Use the list subtasks API to retrieve information about subtasks .
* @ param jobId The ID of the j... | return AzureServiceFuture . fromHeaderPageResponse ( listSinglePageAsync ( jobId ) , new Func1 < String , Observable < ServiceResponseWithHeaders < Page < CloudTask > , TaskListHeaders > > > ( ) { @ Override public Observable < ServiceResponseWithHeaders < Page < CloudTask > , TaskListHeaders > > call ( String nextPage... |
public class HexCoder { /** * encodes a byte array to a String
* @ param bytes
* @ return encoed String */
public static String encode ( byte [ ] bytes ) { } } | String retorno = "" ; if ( bytes == null || bytes . length == 0 ) { return retorno ; } for ( int i = 0 ; i < bytes . length ; i ++ ) { byte valor = bytes [ i ] ; int d1 = valor & 0xF ; d1 += ( d1 < 10 ) ? 48 : 55 ; int d2 = ( valor & 0xF0 ) >> 4 ; d2 += ( d2 < 10 ) ? 48 : 55 ; retorno = retorno + ( char ) d2 + ( char )... |
public class BatchGetLinkAttributes { /** * A list of attribute names whose values will be retrieved .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setAttributeNames ( java . util . Collection ) } or { @ link # withAttributeNames ( java . util . Collection... | if ( this . attributeNames == null ) { setAttributeNames ( new java . util . ArrayList < String > ( attributeNames . length ) ) ; } for ( String ele : attributeNames ) { this . attributeNames . add ( ele ) ; } return this ; |
public class CredentialsUtils { /** * Serializes a private key to an output stream following the pkcs1 encoding .
* This method just delegates to canl , but provides a much more understandable
* signature .
* @ param os
* @ param key
* @ throws IllegalArgumentException
* @ throws IOException */
private stat... | CertificateUtils . savePrivateKey ( os , key , Encoding . PEM , null , new char [ 0 ] , true ) ; |
public class SearchProfilesRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( SearchProfilesRequest searchProfilesRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( searchProfilesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( searchProfilesRequest . getNextToken ( ) , NEXTTOKEN_BINDING ) ; protocolMarshaller . marshall ( searchProfilesRequest . getMaxResults ( ) , MAXRESULTS_BINDING ) ;... |
public class ThriftService { /** * configured keyspace is not available , a RuntimeException is thrown . */
void connectDBConn ( DBConn dbConn ) throws DBNotAvailableException , RuntimeException { } } | // If we ' re using failover hosts , see if it ' s time to try primary hosts again .
if ( m_bUseSecondaryHosts && ( System . currentTimeMillis ( ) - m_lastPrimaryHostCheckTimeMillis ) > getParamInt ( "primary_host_recheck_millis" , 60000 ) ) { m_bUseSecondaryHosts = false ; } // Try all primary hosts first if possible ... |
public class IndexedPermissions { /** * Returns true if the qualified permission exists .
* @ param permissionName the permission name
* @ param orgQualifier the org qualifier
* @ return true if has qualified permission */
public boolean hasQualifiedPermission ( PermissionType permissionName , String orgQualifier... | String key = createQualifiedPermissionKey ( permissionName , orgQualifier ) ; return qualifiedPermissions . contains ( key ) ; |
public class XMLFactory { /** * Create a new document with a document type using a custom document builder .
* @ param aDocBuilder
* the document builder to be used . May not be < code > null < / code > .
* @ param eVersion
* The XML version to use . If < code > null < / code > is passed ,
* { @ link EXMLVers... | ValueEnforcer . notNull ( aDocBuilder , "DocBuilder" ) ; final DOMImplementation aDomImpl = aDocBuilder . getDOMImplementation ( ) ; final DocumentType aDocType = aDomImpl . createDocumentType ( sQualifiedName , sPublicId , sSystemId ) ; final Document aDoc = aDomImpl . createDocument ( sSystemId , sQualifiedName , aDo... |
public class FTPClient { /** * Sets remote server active , telling it to connect to the client .
* setLocalPassive ( ) must be called beforehand . */
public void setActive ( ) throws IOException , ServerException , ClientException { } } | Session local = localServer . getSession ( ) ; if ( local . serverAddress == null ) { throw new ClientException ( ClientException . CALL_PASSIVE_FIRST ) ; } setActive ( local . serverAddress ) ; |
public class WebUtils { /** * Takes a query string and returns the results as a map where the values are either a single entry or a list of values
* @ param queryString The query String
* @ return A map */
@ SuppressWarnings ( { } } | "unchecked" , "rawtypes" } ) public static Map < String , Object > fromQueryString ( String queryString ) { Map < String , Object > result = new LinkedHashMap < String , Object > ( ) ; if ( queryString . startsWith ( "?" ) ) queryString = queryString . substring ( 1 ) ; String [ ] pairs = queryString . split ( "&" ) ; ... |
public class Graph { /** * Add { @ link Component } to the graph .
* @ param component The root { @ link Component } of this graph . */
public void setRootComponent ( Component component ) throws IllegalRootComponentException { } } | if ( component != null && component . getParent ( ) != null ) { throw new IllegalRootComponentException ( "A component with parent cannot be set as a graph's root component. Make sure the component doesn't parent." ) ; } this . rootComponent = component ; |
public class UriEscape { /** * Perform am URI fragment identifier < strong > unescape < / strong > operation
* on a < tt > String < / tt > input , writing results to a < tt > Writer < / tt > .
* This method will unescape every percent - encoded ( < tt > % HH < / tt > ) sequences present in input ,
* even for thos... | if ( writer == null ) { throw new IllegalArgumentException ( "Argument 'writer' cannot be null" ) ; } if ( encoding == null ) { throw new IllegalArgumentException ( "Argument 'encoding' cannot be null" ) ; } UriEscapeUtil . unescape ( new InternalStringReader ( text ) , writer , UriEscapeUtil . UriEscapeType . FRAGMENT... |
public class EventSerializer { public static ByteBuffer toSerializedEvent ( AbstractEvent event ) throws IOException { } } | final Class < ? > eventClass = event . getClass ( ) ; if ( eventClass == EndOfPartitionEvent . class ) { return ByteBuffer . wrap ( new byte [ ] { 0 , 0 , 0 , END_OF_PARTITION_EVENT } ) ; } else if ( eventClass == CheckpointBarrier . class ) { return serializeCheckpointBarrier ( ( CheckpointBarrier ) event ) ; } else i... |
public class EJSHome { /** * PK20648 */
private BeanO allocateBeanO ( ContainerTx tx ) throws RemoteException { } } | BeanO result = null ; long wait_time = beanMetaData . ivMaxCreationTimeout ; // default is 5 minutes
boolean beanAvailable = false ; final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; // d532639.2
if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "allocateBeanO: Obtaining HomeId lock for B... |
public class AWSOpsWorksClient { /** * Deregisters a specified Elastic IP address . The address can then be registered by another stack . For more
* information , see < a href = " http : / / docs . aws . amazon . com / opsworks / latest / userguide / resources . html " > Resource
* Management < / a > .
* < b > Re... | request = beforeClientExecution ( request ) ; return executeDeregisterElasticIp ( request ) ; |
public class hafiles { /** * Use this API to sync hafiles . */
public static base_response sync ( nitro_service client , hafiles resource ) throws Exception { } } | hafiles syncresource = new hafiles ( ) ; syncresource . mode = resource . mode ; return syncresource . perform_operation ( client , "sync" ) ; |
public class AmazonS3ExceptionBuilder { /** * Adds an entry to the additional information map . */
public void addAdditionalDetail ( String key , String detail ) { } } | if ( detail == null || detail . trim ( ) . isEmpty ( ) ) return ; if ( this . additionalDetails == null ) { this . additionalDetails = new HashMap < String , String > ( ) ; } String additionalContent = this . additionalDetails . get ( key ) ; if ( additionalContent != null && ! additionalContent . trim ( ) . isEmpty ( ... |
public class MessageUtil { /** * Separates messages on different lines for error messages .
* @ param messages
* a list of messages to be formatted
* @ return a String containing a each message on a seperate line */
public String list ( List < String > messages ) { } } | List < String > sortedComponents = new ArrayList < String > ( messages ) ; Collections . sort ( sortedComponents ) ; String output = "" ; for ( String component : sortedComponents ) { output += "\n" + component ; } return output ; |
public class StandardFieldsDialog { /** * Add a table field .
* @ param fieldLabel If null then the table will be full width
* @ param field the table field
* @ param buttons if not null then the buttons will be added to the right of the table */
public void addTableField ( String fieldLabel , JTable field , List... | validateNotTabbed ( ) ; JScrollPane scrollPane = new JScrollPane ( ) ; scrollPane . setVerticalScrollBarPolicy ( JScrollPane . VERTICAL_SCROLLBAR_AS_NEEDED ) ; scrollPane . setViewportView ( field ) ; field . setFillsViewportHeight ( true ) ; // Tables are a special case - they don ' t have labels and are accessed via ... |
public class ModuleXmlReader { /** * ModuleIdentifier from XML element .
* @ param root The root element
* @ return ModuleIdentifier The name / version of the module */
protected static ModuleIdentifier getModuleIdentifier ( final Element root ) { } } | return new ModuleIdentifier ( root . getAttribute ( "name" ) , root . getAttribute ( "slot" ) , Boolean . parseBoolean ( root . getAttribute ( "optional" ) ) , Boolean . parseBoolean ( root . getAttribute ( "export" ) ) ) ; |
public class Grep { /** * Find all line matches ( mapped per file path ) . */
public Map < Path , List < LineMatches > > find ( String search ) throws IOException { } } | count = 0 ; Pattern pattern = Pattern . compile ( search ) ; Map < Path , List < LineMatches > > fileMatches = new LinkedHashMap < > ( ) ; Files . walkFileTree ( root , EnumSet . of ( FileVisitOption . FOLLOW_LINKS ) , Integer . MAX_VALUE , new SimpleFileVisitor < Path > ( ) { public FileVisitResult visitFile ( Path pa... |
public class AsyncCacheRequest { /** * < code > optional . alluxio . proto . dataserver . OpenUfsBlockOptions open _ ufs _ block _ options = 4 ; < / code > */
public alluxio . proto . dataserver . Protocol . OpenUfsBlockOptions getOpenUfsBlockOptions ( ) { } } | return openUfsBlockOptions_ == null ? alluxio . proto . dataserver . Protocol . OpenUfsBlockOptions . getDefaultInstance ( ) : openUfsBlockOptions_ ; |
public class GexfIO { /** * Writes the { @ link WeightedGraph } to file in { @ code gexf } format . */
public void write ( WeightedGraph < ? extends WeightedEdge > g , File gexfFile , Indexer < String > vertexLabels ) throws IOException { } } | DocumentBuilderFactory dbfac = DocumentBuilderFactory . newInstance ( ) ; DocumentBuilder docBuilder = null ; try { docBuilder = dbfac . newDocumentBuilder ( ) ; } catch ( ParserConfigurationException pce ) { throw new IOError ( new IOException ( pce ) ) ; } Document doc = docBuilder . newDocument ( ) ; Element root = ... |
public class JsonObject { /** * Returns the value mapped by { @ code name } if it exists and is a boolean
* or { @ code fallback } otherwise . */
public Boolean optBoolean ( String name , Boolean fallback ) { } } | return optBoolean ( name , fallback , true ) ; |
public class AbstractDao { /** * Reads the content from a resource into a string .
* @ param resource
* @ return */
private String readSqlFromResource ( Resource resource ) { } } | try ( BufferedReader reader = new BufferedReader ( new InputStreamReader ( new FileInputStream ( resource . getFile ( ) ) , "UTF-8" ) ) ; ) { StringBuilder sqlBuf = new StringBuilder ( ) ; for ( String line = reader . readLine ( ) ; line != null ; line = reader . readLine ( ) ) { sqlBuf . append ( line ) . append ( "\n... |
public class CompactionManager { /** * Performs a readonly " compaction " of all sstables in order to validate complete rows ,
* but without writing the merge result */
private void doValidationCompaction ( ColumnFamilyStore cfs , Validator validator ) throws IOException { } } | // this isn ' t meant to be race - proof , because it ' s not - - it won ' t cause bugs for a CFS to be dropped
// mid - validation , or to attempt to validate a droped CFS . this is just a best effort to avoid useless work ,
// particularly in the scenario where a validation is submitted before the drop , and there ar... |
public class MPXReader { /** * Populate a file creation record .
* @ param record MPX record
* @ param properties project properties */
static void populateFileCreationRecord ( Record record , ProjectProperties properties ) { } } | properties . setMpxProgramName ( record . getString ( 0 ) ) ; properties . setMpxFileVersion ( FileVersion . getInstance ( record . getString ( 1 ) ) ) ; properties . setMpxCodePage ( record . getCodePage ( 2 ) ) ; |
public class MultiFeatureListGrid { /** * FIXME : move to a service ? */
public static void showFeatureDetailWindow ( final MapWidget mapWidget , final Feature feature ) { } } | Window window = FeatureDetailWidgetFactory . createFeatureDetailWindow ( feature , false ) ; window . setPageTop ( mapWidget . getAbsoluteTop ( ) + 10 ) ; window . setPageLeft ( mapWidget . getAbsoluteLeft ( ) + 10 ) ; window . draw ( ) ; |
public class OperationWorker { /** * Reply .
* @ param error the error
* @ param errorMessage the error message
* @ param stackTrace the stack trace
* @ param statusCode the status code
* @ param statusCodeInt the status code int
* @ param receiveTime the receive time
* @ param responseHeaders the respons... | if ( ! sentReply ) { sentReply = true ; // make sure not trigger timeout anymore
cancelCancellable ( ) ; final long operationTimeMillis = System . currentTimeMillis ( ) - startTimeMillis ; if ( sender != null && ! sender . equals ( getContext ( ) . system ( ) . deadLetters ( ) ) ) { response . setReceiveTimeInManager (... |
public class UpdateDescription { /** * Converts this update description to its document representation as it would appear in a
* MongoDB Change Event .
* @ return the update description document as it would appear in a change event */
public BsonDocument toBsonDocument ( ) { } } | final BsonDocument updateDescDoc = new BsonDocument ( ) ; updateDescDoc . put ( Fields . UPDATED_FIELDS_FIELD , this . getUpdatedFields ( ) ) ; final BsonArray removedFields = new BsonArray ( ) ; for ( final String field : this . getRemovedFields ( ) ) { removedFields . add ( new BsonString ( field ) ) ; } updateDescDo... |
public class RenderableJson { /** * Renders the JSON object as a byte array . Be aware that this method does not use the { @ link org . wisdom . api
* . content . Json } service .
* @ throws RenderableException if the node cannot be rendered */
private void render ( ) throws RenderableException { } } | try { rendered = OBJECT_WRITER . writeValueAsBytes ( node ) ; } catch ( JsonProcessingException e ) { throw new RenderableException ( "cannot write the JSON form of " + node , e ) ; } |
public class SingleCron { /** * Provides means to compare if two cron expressions are equivalent .
* @ param cronMapper - maps ' cron ' parameter to this instance definition ;
* @ param cron - any cron instance , never null
* @ return boolean - true if equivalent ; false otherwise . */
public boolean equivalent (... | return asString ( ) . equals ( cronMapper . map ( cron ) . asString ( ) ) ; |
public class LOiToCharFuncMemento { /** * < editor - fold desc = " object " > */
public static boolean argEquals ( LOiToCharFuncMemento the , Object that ) { } } | return Null . < LOiToCharFuncMemento > equals ( the , that , ( one , two ) -> { if ( one . getClass ( ) != two . getClass ( ) ) { return false ; } LOiToCharFuncMemento other = ( LOiToCharFuncMemento ) two ; return LObjCharPair . argEquals ( one . function , one . lastValue ( ) , other . function , other . lastValue ( )... |
public class AbstractEncoderChannel { /** * Encode an arbitrary precision integer using a sign bit followed by a
* sequence of octets . The most significant bit of the last octet is set to
* zero to indicate sequence termination . Only seven bits per octet are used
* to store the integer ' s value . */
public voi... | // signalize sign
if ( n < 0 ) { encodeBoolean ( true ) ; // For negative values , the Unsigned Integer holds the
// magnitude of the value minus 1
encodeUnsignedInteger ( ( - n ) - 1 ) ; } else { encodeBoolean ( false ) ; encodeUnsignedInteger ( n ) ; } |
public class Conversation { /** * Checks the internal consistency of the conversation object ( temporary solution ) */
void checkInternalConsistency ( ) throws IllegalStateException { } } | if ( encryptionKey == null ) { throw new IllegalStateException ( "Missing encryption key" ) ; } switch ( state ) { case LOGGED_IN : if ( StringUtils . isNullOrEmpty ( userId ) ) { throw new IllegalStateException ( "Missing user id" ) ; } break ; case LOGGED_OUT : throw new IllegalStateException ( "Invalid conversation ... |
public class Hawk { /** * Gets the saved data , if it is null , default value will be returned
* @ param key is used to get the saved data
* @ param defaultValue will be return if the response is null
* @ return the saved object */
public static < T > T get ( String key , T defaultValue ) { } } | return hawkFacade . get ( key , defaultValue ) ; |
public class UserVerificationService { /** * Verifies the identity of the given user using TOTP . If a authentication
* code from the user ' s TOTP device has not already been provided , a code is
* requested in the form of additional expected credentials . Any provided
* code is cryptographically verified . If n... | // Ignore anonymous users
String username = authenticatedUser . getIdentifier ( ) ; if ( username . equals ( AuthenticatedUser . ANONYMOUS_IDENTIFIER ) ) return ; // Ignore users which do not have an associated key
UserTOTPKey key = getKey ( context , username ) ; if ( key == null ) return ; // Pull the original HTTP r... |
public class SqlMapper { /** * 更新数据
* @ param sql 执行的sql
* @ return 执行行数 */
public int update ( String sql ) { } } | String msId = msUtils . update ( sql ) ; return sqlSession . update ( msId ) ; |
public class AppContext { /** * This method is used to retrieve a bean by its name . Note that this may
* result in new bean creation if the scope is set to " prototype " in the
* bean configuration file .
* @ param beanName
* The name of the bean as configured in the spring configuration
* file .
* @ retur... | if ( null == beanName ) { return null ; } return applicationContext . getBean ( beanName ) ; |
public class RESTResponseHelper { /** * This method creates a new { @ link Document } instance for the surrounding
* XML element for the client response .
* @ return The created { @ link Document } instance .
* @ throws ParserConfigurationException
* The exception occurred . */
private static Document createSur... | final Document document = DocumentBuilderFactory . newInstance ( ) . newDocumentBuilder ( ) . newDocument ( ) ; return document ; |
public class RandomAccessReader { /** * or readFully ( from RandomAccessFile ) will throw EOFException but this should not */
public int read ( byte [ ] buff , int offset , int length ) { } } | if ( buffer == null ) throw new AssertionError ( "Attempted to read from closed RAR" ) ; if ( length == 0 ) return 0 ; if ( isEOF ( ) ) return - 1 ; if ( current >= bufferOffset + buffer . length || validBufferBytes == - 1 ) reBuffer ( ) ; assert current >= bufferOffset && current < bufferOffset + validBufferBytes : St... |
public class CopierImplementation { /** * Creates iterations copies of the equivalent java code
* < pre >
* unsafe . putByte ( dest , destOffset , unsafe . getByte ( src ) ) ;
* destOffset + = 1 ; src + = 1
* < / pre >
* @ param iterations
* @ throws NoSuchFieldException
* @ throws NoSuchMethodException *... | final Method getByteMethod = Unsafe . class . getMethod ( "getByte" , long . class ) ; final Method putByteMethod = Unsafe . class . getMethod ( "putByte" , Object . class , long . class , byte . class ) ; buildCopyStack ( stack , iterations , getByteMethod , putByteMethod , 1 ) ; |
public class SessionApi { /** * Authenticate user
* Initialize - provisioning operation will create a new sessionId and set default . yml : common . cookieName cookie ( PROVISIONING _ SESSIONID by default ) .
* @ param authenticationCode Authentication code received from the Auth service ( optional )
* @ param au... | ApiResponse < LoginSuccessResponse > resp = initializeProvisioningWithHttpInfo ( authenticationCode , authorization ) ; return resp . getData ( ) ; |
public class StudioModel { /** * Sets JDBC | driver | .
* @ param driver JDBC driver
* @ see # getDriver */
public void setDriver ( final Driver driver ) { } } | final Driver old = this . driver ; this . driver = driver ; this . connectionConfig = System . currentTimeMillis ( ) ; this . connectionValidated = false ; this . pcs . firePropertyChange ( "driver" , old , this . driver ) ; |
public class DemoPostCrawler { @ Override public void visit ( Page page , CrawlDatums next ) { } } | JsonObject jsonObject = page . jsonObject ( ) ; System . out . println ( "JSON信息:" + jsonObject ) ; |
public class DynamicTimer { /** * { @ inheritDoc } */
@ Override @ SuppressWarnings ( "unchecked" ) public List < Monitor < ? > > getMonitors ( ) { } } | List list = timers . values ( ) ; return ( List < Monitor < ? > > ) list ; |
public class UpdateCenter { /** * Returns latest Jenkins upgrade job .
* @ return HudsonUpgradeJob or null if not found */
public HudsonUpgradeJob getHudsonJob ( ) { } } | List < UpdateCenterJob > jobList = getJobs ( ) ; Collections . reverse ( jobList ) ; for ( UpdateCenterJob job : jobList ) if ( job instanceof HudsonUpgradeJob ) return ( HudsonUpgradeJob ) job ; return null ; |
public class MutableChar { /** * Construct a MutableChar that gets and sets an external value using the provided Supplier and Consumer
* e . g .
* < pre >
* { @ code
* MutableChar mutable = MutableChar . fromExternal ( ( ) - > ! this . value , val - > ! this . value ) ;
* < / pre >
* @ param s Supplier of a... | return new MutableChar ( ) { @ Override public char getAsChar ( ) { return s . get ( ) ; } @ Override public Character get ( ) { return getAsChar ( ) ; } @ Override public MutableChar set ( final char value ) { c . accept ( value ) ; return this ; } } ; |
public class FluoWait { /** * Wait until a range has no notifications .
* @ return true if notifications were ever seen while waiting */
private static boolean waitTillNoNotifications ( Environment env , TableRange range ) throws TableNotFoundException { } } | boolean sawNotifications = false ; long retryTime = MIN_SLEEP_MS ; log . debug ( "Scanning tablet {} for notifications" , range ) ; long start = System . currentTimeMillis ( ) ; while ( hasNotifications ( env , range ) ) { sawNotifications = true ; long sleepTime = Math . max ( System . currentTimeMillis ( ) - start , ... |
public class EntityREST { /** * Bulk API to create new entities or update existing entities in Atlas .
* Existing entity is matched using its unique guid if supplied or by its unique attributes eg : qualifiedName */
@ POST @ Path ( "/bulk" ) @ Consumes ( Servlets . JSON_MEDIA_TYPE ) @ Produces ( Servlets . JSON_MEDIA... | AtlasPerfTracer perf = null ; try { if ( AtlasPerfTracer . isPerfTraceEnabled ( PERF_LOG ) ) { perf = AtlasPerfTracer . getPerfTracer ( PERF_LOG , "EntityREST.createOrUpdate(entityCount=" + ( CollectionUtils . isEmpty ( entities . getEntities ( ) ) ? 0 : entities . getEntities ( ) . size ( ) ) + ")" ) ; } EntityStream ... |
public class MaterializeBuilder { /** * set the layout which will host the ScrimInsetsFrameLayout and its layoutParams
* @ param container
* @ param layoutParams
* @ return */
public MaterializeBuilder withContainer ( ViewGroup container , ViewGroup . LayoutParams layoutParams ) { } } | this . mContainer = container ; this . mContainerLayoutParams = layoutParams ; return this ; |
public class PolicyTaskFutureImpl { /** * If the task hasn ' t already been run or canceled , run it on the current thread and record the result / failure ,
* allowing for possible interruption by the cancel method . */
@ FFDCIgnore ( Throwable . class ) void run ( ) { } } | final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; if ( ! state . setRunning ( ) ) { if ( trace && tc . isDebugEnabled ( ) ) Tr . debug ( this , tc , "unable to run" , state . get ( ) ) ; nsRunEnd = System . nanoTime ( ) ; if ( callback != null ) callback . onEnd ( task , this , null , true , 0 , null ) ;... |
public class ValidHelper { /** * 验证大文本长度
* @ param pContent 文本
* @ param pLength 规则长度
* @ param pParamName 参数名称
* @ throws APPErrorException */
public static void validBigTextLength ( String pContent , int pLength , String pParamName ) throws APPErrorException { } } | if ( ! StringUtil . isNullOrEmpty ( pContent ) && pContent . length ( ) > pLength ) { throw new APPErrorException ( ( null == pParamName ? StringUtil . EMPTY_STRING : pParamName ) + "长度不能超过" + pLength + ",请调整;" ) ; } |
public class SharedFieldCache { /** * Returns a comparable for the given < code > value < / code > that is read from
* the index .
* @ param value the value as read from the index .
* @ param type the property type .
* @ return a comparable for the < code > value < / code > . */
private Comparable < ? > getValu... | switch ( type ) { case PropertyType . BOOLEAN : return ComparableBoolean . valueOf ( Boolean . valueOf ( value ) . booleanValue ( ) ) ; case PropertyType . DATE : return new Long ( DateField . stringToTime ( value ) ) ; case PropertyType . LONG : return new Long ( LongField . stringToLong ( value ) ) ; case PropertyTyp... |
public class ProfileLoader { /** * Computes all possible { @ code . wire } profile files for the { @ code . proto } at { @ code location }
* and adds them to { @ code result } . */
void pathsToAttempt ( Multimap < Path , String > sink , Location location ) { } } | Path base = fileSystem . getPath ( location . getBase ( ) ) ; String path = location . getPath ( ) ; while ( ! path . isEmpty ( ) ) { String parent = path . substring ( 0 , path . lastIndexOf ( '/' , path . length ( ) - 2 ) + 1 ) ; String profilePath = parent + name + ".wire" ; sink . put ( base , profilePath ) ; path ... |
public class URLCodec { /** * URL encodes a string using the default character set
* @ param decoded the string to encode
* @ return the encoded string */
public static String encode ( final String decoded ) { } } | try { return s_codec . encode ( decoded ) ; } catch ( EncoderException e ) { throw new IllegalStateException ( Bundle . getErrorString ( "URLCodec_encodeException" , new String [ ] { e . getMessage ( ) } ) , e ) ; } |
public class NotesApi { /** * Get a list of the issues ' s notes .
* < pre > < code > GitLab Endpoint : GET / projects / : id / issues / : issue _ iid / notes < / code > < / pre >
* @ param projectIdOrPath the project in the form of an Integer ( ID ) , String ( path ) , or Project instance
* @ param issueIid the ... | return ( getIssueNotes ( projectIdOrPath , issueIid ) ) ; |
public class ApiOvhDomain { /** * Regenerate the obfuscated email address
* REST : POST / domain / { serviceName } / email / obfuscated / refresh
* @ param contactType [ required ] Contact type
* @ param serviceName [ required ] The internal name of your domain
* @ deprecated */
public void serviceName_email_ob... | String qPath = "/domain/{serviceName}/email/obfuscated/refresh" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "contactType" , contactType ) ; exec ( qPath , "POST" , sb . toString ( ) , o ) ; |
public class ColumnJdbcTable { /** * DECIMAL _ DIGITS is the number of fractional digits */
private static Integer decimalDigits ( Type type ) { } } | if ( type instanceof DecimalType ) { return ( ( DecimalType ) type ) . getScale ( ) ; } return null ; |
public class ExpressionVisitorImpl { /** * expression : expression ( PLUS | MINUS ) expression */
@ Override public Object visitAdditionOrSubtractionExpression ( ExcellentParser . AdditionOrSubtractionExpressionContext ctx ) { } } | boolean add = ctx . PLUS ( ) != null ; Object arg1 = visit ( ctx . expression ( 0 ) ) ; Object arg2 = visit ( ctx . expression ( 1 ) ) ; // first try as decimals
try { BigDecimal _arg1 = Conversions . toDecimal ( arg1 , m_evalContext ) ; BigDecimal _arg2 = Conversions . toDecimal ( arg2 , m_evalContext ) ; return add ?... |
public class AbstractPutObjectRequest { /** * Sets the name of the bucket where this request will upload a new
* object to . Returns this object , enabling additional method calls to be
* chained together .
* In order to upload the object ,
* users must have { @ link Permission # Write } permission granted .
... | setBucketName ( bucketName ) ; @ SuppressWarnings ( "unchecked" ) T t = ( T ) this ; return t ; |
public class CollectUtils { /** * newHashMap .
* @ param m a { @ link java . util . Map } object .
* @ param < K > a K object .
* @ param < V > a V object .
* @ return a { @ link java . util . Map } object . */
public static < K , V > Map < K , V > newHashMap ( Map < ? extends K , ? extends V > m ) { } } | return new HashMap < K , V > ( m ) ; |
public class FileUtils { /** * Utility to remove duplicate files from an " output " directory if they already exist
* in an " origin " . Recursively scans the origin directory looking for files ( not
* directories ) that exist in both places and deleting the copy .
* @ param outputDirectory the output directory
... | if ( originDirectory . isDirectory ( ) ) { for ( String name : originDirectory . list ( ) ) { File targetFile = new File ( outputDirectory , name ) ; if ( targetFile . exists ( ) && targetFile . canWrite ( ) ) { if ( ! targetFile . isDirectory ( ) ) { targetFile . delete ( ) ; } else { FileUtils . removeDuplicatesFromO... |
public class CountingLock { /** * Decorates { @ link ReentrantLock # tryLock ( long , TimeUnit ) } .
* @ throws KeyLockManagerInterruptedException
* if the current thread becomes interrupted while waiting for
* the lock
* @ throws KeyLockManagerTimeoutException
* if the instance wide waiting time is exceeded ... | try { if ( ! delegate . tryLock ( lockTimeout , lockTimeoutUnit ) ) { throw new KeyLockManagerTimeoutException ( lockTimeout , lockTimeoutUnit ) ; } } catch ( final InterruptedException e ) { throw new KeyLockManagerInterruptedException ( ) ; } |
public class AbstractEXIBodyEncoder { /** * returns new length */
static int trimSpaces ( char [ ] chars , int len ) { } } | // leading and trailing # x20 ' s are removed
int newLen = len ; // leading
while ( newLen > 0 && chars [ 0 ] == ' ' ) { // eliminate one leading space
shiftLeft ( chars , 0 , newLen ) ; newLen -- ; } // trailing
int i = newLen - 1 ; while ( i >= 0 && chars [ i ] == ' ' ) { // eliminate one trailing space
newLen -- ; i... |
public class RecoverableMultiPartUploadImpl { /** * Adds a part to the uploads without any size limitations .
* < p > This method is non - blocking and does not wait for the part upload to complete .
* @ param file The file with the part data .
* @ throws IOException If this method throws an exception , the Recov... | // this is to guarantee that nobody is
// writing to the file we are uploading .
checkState ( file . isClosed ( ) ) ; final CompletableFuture < PartETag > future = new CompletableFuture < > ( ) ; uploadsInProgress . add ( future ) ; final long partLength = file . getPos ( ) ; currentUploadInfo . registerNewPart ( partL... |
public class XMLSerializer { /** * Adds the printable .
* @ param retval the retval
* @ param ch the ch */
private static void addPrintable ( StringBuffer retval , char ch ) { } } | switch ( ch ) { case '\b' : retval . append ( "\\b" ) ; break ; case '\t' : retval . append ( "\\t" ) ; break ; case '\n' : retval . append ( "\\n" ) ; break ; case '\f' : retval . append ( "\\f" ) ; break ; case '\r' : retval . append ( "\\r" ) ; break ; case '\"' : retval . append ( "\\\"" ) ; break ; case '\'' : ret... |
public class AmazonSageMakerClient { /** * Updates a notebook instance lifecycle configuration created with the < a > CreateNotebookInstanceLifecycleConfig < / a >
* API .
* @ param updateNotebookInstanceLifecycleConfigRequest
* @ return Result of the UpdateNotebookInstanceLifecycleConfig operation returned by th... | request = beforeClientExecution ( request ) ; return executeUpdateNotebookInstanceLifecycleConfig ( request ) ; |
public class CompositeListener { /** * { @ inheritDoc }
* @ since 3.0M2 */
@ Override public void endDocument ( MetaData metadata ) { } } | for ( Listener listener : this . listeners ) { listener . endDocument ( metadata ) ; } |
public class PrcPurchaseInvoiceServiceLineSave { /** * < p > Process entity request . < / p >
* @ param pReqVars additional param , e . g . return this line ' s
* document in " nextEntity " for farther process
* @ param pRequestData Request Data
* @ param pEntity Entity to process
* @ return Entity processed ... | if ( pEntity . getItsQuantity ( ) . doubleValue ( ) <= 0 ) { throw new ExceptionWithCode ( ExceptionWithCode . WRONG_PARAMETER , "quantity_less_or_equal_zero::" + pReqVars . get ( "user" ) ) ; } if ( ! ( pEntity . getItsCost ( ) . compareTo ( BigDecimal . ZERO ) > 0 || pEntity . getForeignPrice ( ) . compareTo ( BigDec... |
public class HttpMeta { /** * for none HTTP type : set some default for HTTP ( not used ) to avoid NPE . */
public void initValuesNa ( ) { } } | // just set some default as not used
setRequestPort ( "0" ) ; setHeaderMetadata ( new ParallecHeader ( ) ) ; setHttpMethod ( HttpMethod . NA ) ; setEntityBody ( PcConstants . COMMAND_VAR_DEFAULT_REQUEST_CONTENT ) ; setRequestUrlPostfix ( "" ) ; this . httpPollerProcessor = null ; this . isPollable = false ; this . asyn... |
public class CommerceOrderPaymentLocalServiceBaseImpl { /** * Deletes the commerce order payment from the database . Also notifies the appropriate model listeners .
* @ param commerceOrderPayment the commerce order payment
* @ return the commerce order payment that was removed */
@ Indexable ( type = IndexableType ... | return commerceOrderPaymentPersistence . remove ( commerceOrderPayment ) ; |
public class AccountsInner { /** * Lists the Data Lake Store firewall rules within the specified Data Lake Store account .
* @ param resourceGroupName The name of the Azure resource group that contains the Data Lake Store account .
* @ param accountName The name of the Data Lake Store account from which to get the ... | return listFirewallRulesWithServiceResponseAsync ( resourceGroupName , accountName ) . map ( new Func1 < ServiceResponse < Page < FirewallRuleInner > > , Page < FirewallRuleInner > > ( ) { @ Override public Page < FirewallRuleInner > call ( ServiceResponse < Page < FirewallRuleInner > > response ) { return response . b... |
public class FSImage { /** * For each storage directory , performs recovery of incomplete transitions
* ( eg . upgrade , rollback , checkpoint ) and inserts the directory ' s storage
* state into the dataDirStates map .
* @ param dataDirStates output of storage directory states
* @ return true if there is at le... | boolean isFormatted = false ; for ( Iterator < StorageDirectory > it = storage . dirIterator ( ) ; it . hasNext ( ) ; ) { StorageDirectory sd = it . next ( ) ; StorageState curState ; try { curState = sd . analyzeStorage ( startOpt ) ; isFormatted |= NNStorage . recoverDirectory ( sd , startOpt , curState , true ) ; } ... |
public class PubSubInputHandler { /** * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . impl . interfaces . DownstreamControl # sendValueMessages ( java . util . ArrayList , long , com . ibm . ws . sib . trm . topology . Cellule ) */
@ Override public List sendValueMessages ( List msgList , long complete... | // NOP , PubSubOutputHandlers are responsible for pushing value
// messages downstream .
return null ; |
public class BlasBufferUtil { /** * Get the dimension associated with
* the given ordering .
* When working with blas routines , they typically assume
* c ordering , instead you can invert the rows / columns
* which enable you to do no copy blas operations .
* @ param arr
* @ param defaultRows
* @ return ... | // FIXME : int cast
// ignore ordering for vectors
if ( arr . isVector ( ) ) { return defaultRows ? ( int ) arr . rows ( ) : ( int ) arr . columns ( ) ; } if ( arr . ordering ( ) == NDArrayFactory . C ) return defaultRows ? ( int ) arr . columns ( ) : ( int ) arr . rows ( ) ; return defaultRows ? ( int ) arr . rows ( )... |
public class SinkSnippets { /** * [ TARGET reloadAsync ( ) ] */
public Sink reloadAsync ( ) throws ExecutionException , InterruptedException { } } | // [ START reloadAsync ]
Future < Sink > future = sink . reloadAsync ( ) ; Sink latestSink = future . get ( ) ; if ( latestSink == null ) { // the sink was not found
} // [ END reloadAsync ]
return latestSink ; |
public class DateTimeExtensions { /** * Returns a generally equivalent instance of { @ link java . util . Calendar } .
* The time value of the returned calendar is truncated to milliseconds and the
* time zone is the current system default .
* @ param self a LocalDateTime
* @ return a java . util . Calendar
*... | Calendar cal = Calendar . getInstance ( ) ; cal . set ( Calendar . DATE , self . getDayOfMonth ( ) ) ; cal . set ( Calendar . MONTH , self . getMonthValue ( ) - 1 ) ; cal . set ( Calendar . YEAR , self . getYear ( ) ) ; cal . set ( Calendar . HOUR_OF_DAY , self . getHour ( ) ) ; cal . set ( Calendar . MINUTE , self . g... |
public class CommerceTaxFixedRatePersistenceImpl { /** * Returns the first commerce tax fixed rate in the ordered set where CPTaxCategoryId = & # 63 ; .
* @ param CPTaxCategoryId the cp tax category ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ retur... | CommerceTaxFixedRate commerceTaxFixedRate = fetchByCPTaxCategoryId_First ( CPTaxCategoryId , orderByComparator ) ; if ( commerceTaxFixedRate != null ) { return commerceTaxFixedRate ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "CPTaxCategoryId=" ) ; msg . a... |
public class PinpointDestinationMarshaller { /** * Marshall the given parameter object . */
public void marshall ( PinpointDestination pinpointDestination , ProtocolMarshaller protocolMarshaller ) { } } | if ( pinpointDestination == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( pinpointDestination . getApplicationArn ( ) , APPLICATIONARN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.