signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class EnglishTreebankParserParams { /** * This method does language - specific tree transformations such
* as annotating particular nodes with language - relevant features .
* Such parameterizations should be inside the specific
* TreebankLangParserParams class . This method is recursively
* applied to e... | if ( t == null || t . isLeaf ( ) ) { return t ; } Tree parent ; String parentStr ; String grandParentStr ; if ( root == null || t . equals ( root ) ) { parent = null ; parentStr = "" ; } else { parent = t . parent ( root ) ; parentStr = parent . label ( ) . value ( ) ; } if ( parent == null || parent . equals ( root ) ... |
public class KeyVaultClientBaseImpl { /** * Lists deleted storage accounts for the specified vault .
* The Get Deleted Storage Accounts operation returns the storage accounts that have been deleted for a vault enabled for soft - delete . This operation requires the storage / list permission .
* @ param nextPageLink... | return AzureServiceFuture . fromPageResponse ( getDeletedStorageAccountsNextSinglePageAsync ( nextPageLink ) , new Func1 < String , Observable < ServiceResponse < Page < DeletedStorageAccountItem > > > > ( ) { @ Override public Observable < ServiceResponse < Page < DeletedStorageAccountItem > > > call ( String nextPage... |
public class CmsObject { /** * Writes a list of access control entries as new access control entries of a given resource . < p >
* Already existing access control entries of this resource are removed before . < p >
* @ param resource the resource to attach the control entries to
* @ param acEntries a list of < co... | m_securityManager . importAccessControlEntries ( m_context , resource , acEntries ) ; |
public class CnvTfsDouble { /** * < p > Convert from string . < / p >
* @ param pAddParam additional params , e . g . IRequestData
* to fill owner itsVersion .
* @ param pStrVal string representation
* @ return Double value
* @ throws Exception - an exception */
@ Override public final Double fromString ( fin... | if ( pStrVal == null || "" . equals ( pStrVal ) ) { return null ; } if ( pAddParam != null ) { String dsep = ( String ) pAddParam . get ( "decSepv" ) ; if ( dsep != null ) { String dgsep = ( String ) pAddParam . get ( "decGrSepv" ) ; String strVal = pStrVal . replace ( dgsep , "" ) . replace ( dsep , "." ) ; return Dou... |
public class SearchHelper { /** * Set up an exists filter for attribute name . Consider the following example .
* < table border = " 1 " > < caption > Example Values < / caption >
* < tr > < td > < b > Value < / b > < / td > < / tr >
* < tr > < td > givenName < / td > < / tr >
* < / table >
* < p > < i > Resu... | final StringBuilder sb = new StringBuilder ( ) ; sb . append ( "(" ) ; sb . append ( new FilterSequence ( attributeName , "*" , FilterSequence . MatchingRuleEnum . EQUALS ) ) ; sb . append ( ")" ) ; this . filter = sb . toString ( ) ; |
public class BoxRequestItemCopy { /** * Returns the name currently set for the item copy .
* @ return name for the item copy , or null if not set */
public String getName ( ) { } } | return mBodyMap . containsKey ( BoxItem . FIELD_NAME ) ? ( String ) mBodyMap . get ( BoxItem . FIELD_NAME ) : null ; |
public class WTabRenderer { /** * Paints the given WTab .
* @ param component the WTab to paint .
* @ param renderContext the RenderContext to paint to . */
@ Override public void doRender ( final WComponent component , final WebXmlRenderContext renderContext ) { } } | WTab tab = ( WTab ) component ; XmlStringBuilder xml = renderContext . getWriter ( ) ; xml . appendTagOpen ( "ui:tab" ) ; xml . appendAttribute ( "id" , component . getId ( ) ) ; xml . appendOptionalAttribute ( "class" , component . getHtmlClass ( ) ) ; xml . appendOptionalAttribute ( "track" , component . isTracking (... |
public class ClientService { /** * Removes a client from the database
* Also clears all additional override information for the clientId
* @ param profileId profile ID of client to remove
* @ param clientUUID client UUID of client to remove
* @ throws Exception exception */
public void remove ( int profileId , ... | PreparedStatement statement = null ; ResultSet results = null ; try ( Connection sqlConnection = sqlService . getConnection ( ) ) { // first try selecting the row we want to deal with
statement = sqlConnection . prepareStatement ( "SELECT * FROM " + Constants . DB_TABLE_CLIENT + " WHERE " + Constants . GENERIC_CLIENT_U... |
public class StringHtmlEncoder { /** * Encodes complete component by calling { @ link UIComponent # encodeAll ( FacesContext ) } .
* @ param component component
* @ param context { @ link FacesContext }
* @ return the rendered string .
* @ throws IOException thrown by writer */
public static String encodeCompon... | final FacesContextStringResolverWrapper resolver = new FacesContextStringResolverWrapper ( context ) ; component . encodeAll ( resolver ) ; return resolver . getStringWriter ( ) . toString ( ) . replace ( "\n" , "" ) . trim ( ) ; |
public class Utility { /** * Calculate the magnitudo of the several drainage area .
* It begin from the first state , where the magnitudo is setted to 1 , and
* then it follow the path of the water until the outlet .
* During this process the magnitudo of each through areas is incremented of
* 1 units . This op... | int count = 0 ; /* whereDrain Contiene gli indici degli stati riceventi . */
/* magnitude Contiene la magnitude dei vari stati . */
int length = magnitude . length ; /* Per ogni stato */
for ( int i = 0 ; i < length ; i ++ ) { count = 0 ; /* la magnitude viene posta pari a 1 */
magnitude [ i ] ++ ; int k = i ; /* * Si ... |
public class TcasesOpenApi { /** * Returns a { @ link SystemInputDef system input definition } for the API responses defined by the given
* OpenAPI specification . Returns null if the given spec defines no API responses to model . */
public static SystemInputDef getResponseInputModel ( OpenAPI api , ModelOptions opti... | ResponseInputModeller inputModeller = new ResponseInputModeller ( options ) ; return inputModeller . getResponseInputModel ( api ) ; |
public class AsyncActivityImpl { /** * ( non - Javadoc )
* @ see
* AsyncActivity # get ( java . net . URI ,
* Header [ ] ,
* Credentials ) */
public void get ( URI uri , Header [ ] additionalRequestHeaders , Credentials credentials ) { } } | ra . getExecutorService ( ) . execute ( new AsyncGetHandler ( ra , handle , uri , additionalRequestHeaders , credentials ) ) ; |
public class DocletInvoker { /** * Utility method for converting a search path string to an array of directory and JAR file
* URLs .
* Note that this method is called by the DocletInvoker .
* @ param path the search path string
* @ return the resulting array of directory and JAR file URLs */
private static URL ... | java . util . List < URL > urls = new ArrayList < > ( ) ; for ( String s : path . split ( Pattern . quote ( File . pathSeparator ) ) ) { if ( ! s . isEmpty ( ) ) { URL url = fileToURL ( Paths . get ( s ) ) ; if ( url != null ) { urls . add ( url ) ; } } } return urls . toArray ( new URL [ urls . size ( ) ] ) ; |
public class Debug { /** * Create the debug log at the specified location if possible . If this call
* fails , { @ link # isOpen } returns false and diagnostic information will be
* printed to System . err . */
static void open ( File dir , String fileName ) { } } | if ( dir . mkdirs ( ) || dir . isDirectory ( ) ) { File file = new File ( dir , fileName ) ; try { out = new PrintStream ( TextFileOutputStreamFactory . createOutputStream ( file ) , true , "UTF-8" ) ; openedFile = file ; } catch ( IOException ex ) { ex . printStackTrace ( ) ; } } |
public class AvatarZooKeeperClient { /** * Get the information stored in the node of zookeeper . If retry is set
* to true it will keep retrying until the data in that node is available
* ( failover case ) . If the retry is set to false it will return the first
* value that it gets from the zookeeper .
* @ para... | int failures = 0 ; byte [ ] data = null ; while ( data == null ) { initZK ( ) ; try { if ( sync ) { SyncUtil su = new SyncUtil ( ) ; su . sync ( zk , node ) ; } data = zk . getData ( node , watch , stat ) ; if ( data == null && retry ) { // Failover is in progress
// reset the failures
failures = 0 ; DistributedAvatarF... |
public class VulnerabilitiesLoader { /** * Returns a { @ code List } of resources files with { @ code fileName } and { @ code fileExtension } contained in the
* { @ code directory } .
* @ return the list of resources files contained in the { @ code directory }
* @ see LocaleUtils # createResourceFilesPattern ( St... | if ( ! Files . exists ( directory ) ) { logger . debug ( "Skipping read of vulnerabilities, the directory does not exist: " + directory . toAbsolutePath ( ) ) ; return Collections . emptyList ( ) ; } final Pattern filePattern = LocaleUtils . createResourceFilesPattern ( fileName , fileExtension ) ; final List < String ... |
public class PseudoClassSpecifierChecker { /** * Add { @ code : last - of - type } elements .
* @ see < a href = " http : / / www . w3 . org / TR / css3 - selectors / # last - of - type - pseudo " > < code > : last - of - type < / code > pseudo - class < / a > */
private void addLastOfType ( ) { } } | for ( Node node : nodes ) { Node n = DOMHelper . getNextSiblingElement ( node ) ; while ( n != null ) { if ( DOMHelper . getNodeName ( n ) . equals ( DOMHelper . getNodeName ( node ) ) ) { break ; } n = DOMHelper . getNextSiblingElement ( n ) ; } if ( n == null ) { result . add ( node ) ; } } |
public class JsonUtil { /** * Write all properties of an node accepted by the filter into an JSON array .
* @ param writer the JSON writer object ( with the JSON state )
* @ param filter the property name filter
* @ param values the Sling ValueMap to write
* @ throws javax . jcr . RepositoryException error on a... | if ( values != null ) { TreeMap < String , Object > sortedProperties = new TreeMap < > ( ) ; Iterator < Map . Entry < String , Object > > iterator = values . entrySet ( ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { Map . Entry < String , Object > entry = iterator . next ( ) ; String key = entry . getKey ( ) ; i... |
public class ContentExposingResource { /** * Get the binary content of a datastream
* @ param rangeValue the range value
* @ param resource the fedora resource
* @ return Binary blob
* @ throws IOException if io exception occurred */
private Response getBinaryContent ( final String rangeValue , final FedoraReso... | final FedoraBinary binary = ( FedoraBinary ) resource ; final CacheControl cc = new CacheControl ( ) ; cc . setMaxAge ( 0 ) ; cc . setMustRevalidate ( true ) ; final Response . ResponseBuilder builder ; if ( rangeValue != null && rangeValue . startsWith ( "bytes" ) ) { final Range range = Range . convert ( rangeValue )... |
public class BitChromosome { /** * Return the indexes of the < i > ones < / i > of this bit - chromosome as stream .
* @ since 3.0
* @ return the indexes of the < i > ones < / i > of this bit - chromosome */
public IntStream ones ( ) { } } | return IntStream . range ( 0 , length ( ) ) . filter ( index -> bit . get ( _genes , index ) ) ; |
public class IcuSyntaxUtils { /** * Gets the opening ( left ) string for a plural statement .
* @ param varName The plural var name .
* @ param offset The offset .
* @ return the ICU syntax string for the plural opening string . */
private static String getPluralOpenString ( String varName , int offset ) { } } | StringBuilder openingPartSb = new StringBuilder ( ) ; openingPartSb . append ( '{' ) . append ( varName ) . append ( ",plural," ) ; if ( offset != 0 ) { openingPartSb . append ( "offset:" ) . append ( offset ) . append ( ' ' ) ; } return openingPartSb . toString ( ) ; |
public class Instance { /** * The elastic inference accelerator associated with the instance .
* @ param elasticInferenceAcceleratorAssociations
* The elastic inference accelerator associated with the instance . */
public void setElasticInferenceAcceleratorAssociations ( java . util . Collection < ElasticInferenceA... | if ( elasticInferenceAcceleratorAssociations == null ) { this . elasticInferenceAcceleratorAssociations = null ; return ; } this . elasticInferenceAcceleratorAssociations = new com . amazonaws . internal . SdkInternalList < ElasticInferenceAcceleratorAssociation > ( elasticInferenceAcceleratorAssociations ) ; |
public class ProfileServiceClient { /** * Deletes the specified profile . Prerequisite : The profile has no associated applications or
* assignments associated .
* < p > Sample code :
* < pre > < code >
* try ( ProfileServiceClient profileServiceClient = ProfileServiceClient . create ( ) ) {
* ProfileName nam... | DeleteProfileRequest request = DeleteProfileRequest . newBuilder ( ) . setName ( name == null ? null : name . toString ( ) ) . build ( ) ; deleteProfile ( request ) ; |
public class CPDefinitionInventoryPersistenceImpl { /** * Caches the cp definition inventories in the entity cache if it is enabled .
* @ param cpDefinitionInventories the cp definition inventories */
@ Override public void cacheResult ( List < CPDefinitionInventory > cpDefinitionInventories ) { } } | for ( CPDefinitionInventory cpDefinitionInventory : cpDefinitionInventories ) { if ( entityCache . getResult ( CPDefinitionInventoryModelImpl . ENTITY_CACHE_ENABLED , CPDefinitionInventoryImpl . class , cpDefinitionInventory . getPrimaryKey ( ) ) == null ) { cacheResult ( cpDefinitionInventory ) ; } else { cpDefinition... |
public class ProductReservationUrl { /** * Get Resource Url for DeleteProductReservation
* @ param productReservationId Unique identifier of the product reservation .
* @ return String Resource Url */
public static MozuUrl deleteProductReservationUrl ( Integer productReservationId ) { } } | UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/productreservations/{productReservationId}" ) ; formatter . formatUrl ( "productReservationId" , productReservationId ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ; |
public class CommerceUserSegmentEntryUtil { /** * Removes the commerce user segment entry with the primary key from the database . Also notifies the appropriate model listeners .
* @ param commerceUserSegmentEntryId the primary key of the commerce user segment entry
* @ return the commerce user segment entry that w... | return getPersistence ( ) . remove ( commerceUserSegmentEntryId ) ; |
public class Encryption { /** * This is a sugar method that calls decrypt method and catch the exceptions returning
* { @ code null } when it occurs and logging the error
* @ param data the String to be decrypted
* @ return the decrypted String or { @ code null } if you send the data as { @ code null } */
public ... | try { return decrypt ( data ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; return null ; } |
public class CpeParser { /** * Parses a CPE String into an object with the option of parsing CPE 2.2 URI
* strings in lenient mode - allowing for CPE values that do not adhere to
* the specification .
* @ param cpeString the CPE string to parse
* @ param lenient when < code > true < / code > the CPE 2.2 parser ... | if ( cpeString == null ) { throw new CpeParsingException ( "CPE String is null and cannot be parsed" ) ; } else if ( cpeString . regionMatches ( 0 , "cpe:/" , 0 , 5 ) ) { return parse22 ( cpeString , lenient ) ; } else if ( cpeString . regionMatches ( 0 , "cpe:2.3:" , 0 , 8 ) ) { return parse23 ( cpeString , lenient ) ... |
public class DomUtils { /** * Removes all the given tags from the document .
* @ param dom the document object .
* @ param tagName the tag name , examples : script , style , meta
* @ return the changed dom . */
public static Document removeTags ( Document dom , String tagName ) { } } | NodeList list ; try { list = XPathHelper . evaluateXpathExpression ( dom , "//" + tagName . toUpperCase ( ) ) ; while ( list . getLength ( ) > 0 ) { Node sc = list . item ( 0 ) ; if ( sc != null ) { sc . getParentNode ( ) . removeChild ( sc ) ; } list = XPathHelper . evaluateXpathExpression ( dom , "//" + tagName . toU... |
public class EditText { /** * @ return the color of the shadow layer
* @ see # setShadowLayer ( float , float , float , int )
* @ attr ref android . R . styleable # TextView _ shadowColor */
@ TargetApi ( Build . VERSION_CODES . JELLY_BEAN ) public int getShadowColor ( ) { } } | if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . JELLY_BEAN ) return mInputView . getShadowColor ( ) ; return 0 ; |
public class OAuth2Credentials { /** * Gets the authorization URL to retrieve the authorization code . */
@ Nullable public String getAuthorizationUrl ( ) throws UnsupportedEncodingException { } } | String authorizationCodeRequestUrl = authorizationCodeFlow . newAuthorizationUrl ( ) . setScopes ( scopes ) . build ( ) ; if ( redirectUri != null ) { authorizationCodeRequestUrl += "&redirect_uri=" + URLEncoder . encode ( redirectUri , "UTF-8" ) ; } return authorizationCodeRequestUrl ; |
public class CoreRemoteMongoCollectionImpl { /** * Finds a document in the collection and replaces it with the given document
* @ param filter the query filter
* @ param replacement the document to replace the matched document with
* @ return the resulting document */
public DocumentT findOneAndReplace ( final Bs... | return operations . findOneAndModify ( "findOneAndReplace" , filter , replacement , new RemoteFindOneAndModifyOptions ( ) , documentClass ) . execute ( service ) ; |
public class X3Dobject { /** * Called after parsing < / Shape > */
private void ShapePostParsing ( ) { } } | if ( ! gvrRenderingDataUSEd ) { // SHAPE node not being USEd ( shared ) elsewhere
// Shape containts Text
if ( gvrTextViewSceneObject != null ) { gvrTextViewSceneObject . setTextColor ( ( ( ( 0xFF << 8 ) + ( int ) ( shaderSettings . diffuseColor [ 0 ] * 255 ) << 8 ) + ( int ) ( shaderSettings . diffuseColor [ 1 ] * 255... |
public class DebugServer { /** * Shuts down the server . Active connections are not affected . */
public void shutdown ( ) { } } | debugConnection = null ; shuttingDown = true ; try { if ( serverSocket != null ) { serverSocket . close ( ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } |
public class IncidentUtil { /** * Produce a one line description of the throwable , suitable for error message
* and log printing .
* @ param thrown thrown object
* @ return description of the thrown object */
public static String oneLiner ( Throwable thrown ) { } } | StackTraceElement [ ] stack = thrown . getStackTrace ( ) ; String topOfStack = null ; if ( stack . length > 0 ) { topOfStack = " at " + stack [ 0 ] ; } return thrown . toString ( ) + topOfStack ; |
public class KeyManager { /** * PRIVATE HELPER METHODS */
private boolean validateEncryptionKeyData ( KeyData data ) { } } | if ( data . getIv ( ) . length != ENCRYPTIONKEYCHAINMANAGER_AES_IV_SIZE ) { LOGGER . warning ( "IV does not have the expected size: " + ENCRYPTIONKEYCHAINMANAGER_AES_IV_SIZE + " bytes" ) ; return false ; } return true ; |
public class WBeanComponent { /** * Indicates whether this component ' s data has changed from the default value .
* TODO : This needs to be added to the databound interface after the bulk of the components have been converted .
* @ return true if this component ' s current value differs from the default value for ... | Object currentValue = getData ( ) ; Object sharedValue = ( ( BeanAndProviderBoundComponentModel ) getDefaultModel ( ) ) . getData ( ) ; if ( getBeanProperty ( ) != null ) { sharedValue = getBeanValue ( ) ; } return ! Util . equals ( currentValue , sharedValue ) ; |
public class QueryPlanner { /** * Fast track the parsing for the pseudo - statement generated by the
* { @ literal @ } SwapTables system stored procedure .
* If this functionality turns out to fall within the behavior of a
* more general SWAP TABLE statement supported in a ( future ) SQL
* parser , the system s... | // reset any error message
m_recentErrorMsg = null ; // Reset plan node ids to start at 1 for this plan
AbstractPlanNode . resetPlanNodeIds ( ) ; assert ( m_sql . startsWith ( "@SwapTables " ) ) ; String [ ] swapTableArgs = m_sql . split ( " " ) ; m_xmlSQL = forgeVoltXMLForSwapTables ( swapTableArgs [ 1 ] , swapTableAr... |
public class DefaultSpeciesNewStrategy { /** * Creates a new instance of a collection based on the class type of collection and specified initial capacity ,
* not on the type of objects the collections contains .
* e . g . CollectionFactory . < Integer > speciesNew ( hashSetOfString , 20 ) returns a new HashSet < I... | if ( size < 0 ) { throw new IllegalArgumentException ( "size may not be < 0 but was " + size ) ; } if ( collection instanceof Proxy || collection instanceof PriorityQueue || collection instanceof PriorityBlockingQueue || collection instanceof SortedSet ) { return DefaultSpeciesNewStrategy . createNewInstanceForCollecti... |
public class BitUtil { /** * Generate a string that is the hex representation of a given byte array .
* @ param buffer to convert to a hex representation .
* @ param offset the offset into the buffer .
* @ param length the number of bytes to convert .
* @ return new String holding the hex representation ( in Bi... | return new String ( toHexByteArray ( buffer , offset , length ) , UTF_8 ) ; |
public class ZipUtilities { /** * Unzips a Zip File in byte array format to a specified directory .
* @ param zipFile The zip file .
* @ param directory The directory to unzip the file to .
* @ return true if the file was successfully unzipped otherwise false . */
public static boolean unzipFileIntoDirectory ( fi... | final Map < ZipEntry , byte [ ] > zipEntries = new HashMap < ZipEntry , byte [ ] > ( ) ; ZipInputStream zis ; try { zis = new ZipInputStream ( new FileInputStream ( zipFile ) ) ; } catch ( FileNotFoundException ex ) { LOG . error ( "Unable to find specified file" , ex ) ; return false ; } ZipEntry entry = null ; byte [... |
public class InternalPureXbaseLexer { /** * $ ANTLR start " T _ _ 39" */
public final void mT__39 ( ) throws RecognitionException { } } | try { int _type = T__39 ; int _channel = DEFAULT_TOKEN_CHANNEL ; // InternalPureXbase . g : 37:7 : ( ' / ' )
// InternalPureXbase . g : 37:9 : ' / '
{ match ( '/' ) ; } state . type = _type ; state . channel = _channel ; } finally { } |
public class StringValueConverterImpl { /** * This method gets the singleton instance of this { @ link StringValueConverterImpl } . < br >
* < b > ATTENTION : < / b > < br >
* Please prefer dependency - injection instead of using this method .
* @ return the singleton instance . */
public static StringValueConver... | if ( instance == null ) { synchronized ( StringValueConverterImpl . class ) { if ( instance == null ) { StringValueConverterImpl converter = new StringValueConverterImpl ( ) ; converter . initialize ( ) ; instance = converter ; } } } return instance ; |
public class ReportDistributor { /** * Send report via all senders .
* @ param reportFile Report to send .
* @ return if distributing was successful */
public boolean distribute ( @ NonNull File reportFile ) { } } | ACRA . log . i ( LOG_TAG , "Sending report " + reportFile ) ; try { final CrashReportPersister persister = new CrashReportPersister ( ) ; final CrashReportData previousCrashReport = persister . load ( reportFile ) ; sendCrashReport ( previousCrashReport ) ; IOUtils . deleteFile ( reportFile ) ; return true ; } catch ( ... |
public class JMString { /** * Is word boolean .
* @ param wordString the word string
* @ return the boolean */
public static boolean isWord ( String wordString ) { } } | return Optional . ofNullable ( wordPattern ) . orElseGet ( ( ) -> wordPattern = Pattern . compile ( WordPattern ) ) . matcher ( wordString ) . matches ( ) ; |
public class Island { /** * Two islands are competitors if there is a horizontal or
* vertical line which goes through both islands */
public boolean isCompetitor ( Island isl ) { } } | for ( Coordinate c : isl ) { for ( Coordinate d : islandCoordinates ) { if ( c . sameColumn ( d ) || c . sameRow ( d ) ) return true ; } } return false ; |
public class MessageDrivenBeanO { /** * Return enterprise bean associate with this < code > BeanO < / code > . < p >
* MessageDrivenBeans do not implement this method since they
* are created on demand by the container , not by the client . < p > */
@ Override public final EnterpriseBean getEnterpriseBean ( ) throw... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "getEnterpriseBean" ) ; throw new UnsupportedOperationException ( ) ; |
public class CmsPublishProject { /** * Performs the publish action , will be called by the JSP page . < p >
* @ throws JspException if problems including sub - elements occur */
public void actionPublish ( ) throws JspException { } } | try { boolean isFolder = false ; if ( ! isMultiOperation ( ) ) { if ( isDirectPublish ( ) ) { isFolder = getCms ( ) . readResource ( getParamResource ( ) , CmsResourceFilter . ALL ) . isFolder ( ) ; } } if ( performDialogOperation ( ) ) { // if no exception is caused and " true " is returned publish operation was succe... |
public class BloomFilter { /** * Adds an object to the Bloom filter . The output from the object ' s
* toString ( ) method is used as input to the hash functions .
* @ param element is an element to register in the Bloom filter . */
public void add ( E element ) { } } | long hash ; String valString = element . toString ( ) ; for ( int x = 0 ; x < k ; x ++ ) { hash = createHash ( valString + Integer . toString ( x ) ) ; hash = hash % ( long ) bitSetSize ; bitset . set ( Math . abs ( ( int ) hash ) , true ) ; } numberOfAddedElements ++ ; |
public class SiftsXMLParser { /** * < entity type = " protein " entityId = " A " > */
private SiftsEntity getSiftsEntity ( Element empEl ) { } } | // for each < employee > element get text or int values of
// name , id , age and name
String type = empEl . getAttribute ( "type" ) ; String entityId = empEl . getAttribute ( "entityId" ) ; // Create a new Employee with the value read from the xml nodes
SiftsEntity entity = new SiftsEntity ( type , entityId ) ; // get... |
public class LogPackageImpl { /** * Laods the package and any sub - packages from their serialized form .
* < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void loadPackage ( ) { } } | if ( isLoaded ) return ; isLoaded = true ; URL url = getClass ( ) . getResource ( packageFilename ) ; if ( url == null ) { throw new RuntimeException ( "Missing serialized package: " + packageFilename ) ; } URI uri = URI . createURI ( url . toString ( ) ) ; Resource resource = new EcoreResourceFactoryImpl ( ) . createR... |
public class Descriptors { /** * Creates a { @ link ResultDescriptor } for a { @ link AnalyzerResult } class
* @ param resultClass
* @ return */
public static ResultDescriptor ofResult ( final Class < ? extends AnalyzerResult > resultClass ) { } } | ResultDescriptor resultDescriptor = _resultDescriptors . get ( resultClass ) ; if ( resultDescriptor == null ) { resultDescriptor = new ResultDescriptorImpl ( resultClass ) ; _resultDescriptors . put ( resultClass , resultDescriptor ) ; } return resultDescriptor ; |
public class IntentUtils { /** * Call standard camera application for capturing an image
* @ param file Full path to captured file */
public static Intent photoCapture ( String file ) { } } | Uri uri = Uri . fromFile ( new File ( file ) ) ; Intent intent = new Intent ( MediaStore . ACTION_IMAGE_CAPTURE ) ; intent . putExtra ( MediaStore . EXTRA_OUTPUT , uri ) ; return intent ; |
public class ApacheHttpClient { /** * connectionRequestTimeout 从连接池中取出连接的超时时间 connectTimeout 和服务器建立连接的超时时间
* socketTimeout 从服务器读取数据的超时时间 */
private static RequestConfig getRequestConfig ( Integer readTimeoutInMillis ) { } } | return RequestConfig . custom ( ) . setConnectionRequestTimeout ( 600 ) . setConnectTimeout ( XianConfig . getIntValue ( "apache.httpclient.connectTimeout" , 600 ) ) . setSocketTimeout ( readTimeoutInMillis ) . build ( ) ; |
public class RequestExpirationScheduler { /** * Schedules a request for completion
* @ param requestId , the unique identifier if the request
* @ param request , the request
* @ param time , time expressed in long
* @ param unit , { @ link TimeUnit } */
public void scheduleForCompletion ( String requestId , Com... | if ( request . isDone ( ) ) { if ( trace ) { log . tracef ( "Request[%s] is not scheduled because is already done" , requestId ) ; } return ; } if ( scheduledRequests . containsKey ( requestId ) ) { String message = String . format ( "Request[%s] is not scheduled because it is already scheduled" , requestId ) ; log . e... |
public class NtlmPasswordAuthenticator { /** * Returns the effective user session key .
* @ param tc
* @ param chlng
* The server challenge .
* @ return A < code > byte [ ] < / code > containing the effective user session key ,
* used in SMB MAC signing and NTLMSSP signing and sealing . */
public byte [ ] get... | byte [ ] key = new byte [ 16 ] ; try { getUserSessionKey ( tc , chlng , key , 0 ) ; } catch ( Exception ex ) { log . error ( "Failed to get session key" , ex ) ; } return key ; |
public class SubjectUtils { /** * Returns the name of the single type of all given items or { @ link Optional # absent ( ) } if no such
* type exists . */
private static Optional < String > getHomogeneousTypeName ( Iterable < ? > items ) { } } | Optional < String > homogeneousTypeName = Optional . absent ( ) ; for ( Object item : items ) { if ( item == null ) { /* * TODO ( cpovirk ) : Why ? We could have multiple nulls , which would be homogeneous . More
* likely , we could have exactly one null , which is still homogeneous . Arguably it ' s weird
* to cal... |
public class JedisSortedSet { /** * Return the score of the specified element of the sorted set at key .
* @ param member
* @ return The score value or < code > null < / code > if the element does not exist in the set . */
public Double score ( final String member ) { } } | return doWithJedis ( new JedisCallable < Double > ( ) { @ Override public Double call ( Jedis jedis ) { return jedis . zscore ( getKey ( ) , member ) ; } } ) ; |
public class SasUtils { /** * Creates a reader from the given file . Support GZIP compressed files .
* @ param file file to read
* @ return reader */
public static BufferedReader createReader ( File file ) throws IOException { } } | InputStream is = new FileInputStream ( file ) ; if ( file . getName ( ) . toLowerCase ( ) . endsWith ( ".gz" ) ) is = new GZIPInputStream ( is ) ; return new BufferedReader ( new InputStreamReader ( is , StandardCharsets . UTF_8 ) ) ; |
public class NodeHealthCheckerService { /** * Method used to start the Node health monitoring . */
void start ( ) { } } | // if health script path is not configured don ' t start the thread .
if ( ! shouldRun ( conf ) ) { LOG . info ( "Not starting node health monitor" ) ; return ; } nodeHealthScriptScheduler = new Timer ( "NodeHealthMonitor-Timer" , true ) ; // Start the timer task immediately and
// then periodically at interval time .
... |
public class SipServletMessageImpl { /** * ( non - Javadoc )
* @ see javax . servlet . sip . SipServletMessage # getContentType ( ) */
public String getContentType ( ) { } } | ContentTypeHeader cth = ( ContentTypeHeader ) this . message . getHeader ( getCorrectHeaderName ( ContentTypeHeader . NAME ) ) ; if ( cth != null ) { // Fix For Issue http : / / code . google . com / p / mobicents / issues / detail ? id = 2659
// getContentType doesn ' t return the full header value
// String contentTy... |
public class Latkes { /** * Loads the latke . props . */
private static void loadLatkeProps ( ) { } } | if ( null == latkeProps ) { latkeProps = new Properties ( ) ; } try { InputStream resourceAsStream ; final String latkePropsEnv = System . getenv ( "LATKE_PROPS" ) ; if ( StringUtils . isNotBlank ( latkePropsEnv ) ) { LOGGER . debug ( "Loading latke.properties from env var [$LATKE_PROPS=" + latkePropsEnv + "]" ) ; reso... |
public class Util { /** * Configure outbound HTTP pipeline for SSL configuration .
* @ param socketChannel Socket channel of outbound connection
* @ param sslConfig { @ link SSLConfig }
* @ param host host of the connection
* @ param port port of the connection
* @ throws SSLException if any error occurs in t... | LOG . debug ( "adding ssl handler" ) ; SSLEngine sslEngine = null ; SslHandler sslHandler ; ChannelPipeline pipeline = socketChannel . pipeline ( ) ; SSLHandlerFactory sslHandlerFactory = new SSLHandlerFactory ( sslConfig ) ; if ( sslConfig . isOcspStaplingEnabled ( ) ) { sslHandlerFactory . createSSLContextFromKeystor... |
public class Sets { /** * Returns true if there is at least element that is in both s1 and s2 . Faster
* than calling intersection ( Set , Set ) if you don ' t need the contents of the
* intersection . */
public static < E > boolean intersects ( Set < E > s1 , Set < E > s2 ) { } } | // loop over whichever set is smaller
if ( s1 . size ( ) < s2 . size ( ) ) { for ( E element1 : s1 ) { if ( s2 . contains ( element1 ) ) { return true ; } } } else { for ( E element2 : s2 ) { if ( s1 . contains ( element2 ) ) { return true ; } } } return false ; |
public class DefaultGroovyMethods { /** * Support the subscript operator with an IntRange for a long array
* @ param array a long array
* @ param range an IntRange indicating the indices for the items to retrieve
* @ return list of the retrieved longs
* @ since 1.0 */
@ SuppressWarnings ( "unchecked" ) public s... | RangeInfo info = subListBorders ( array . length , range ) ; List < Long > answer = primitiveArrayGet ( array , new IntRange ( true , info . from , info . to - 1 ) ) ; return info . reverse ? reverse ( answer ) : answer ; |
public class ModelsImpl { /** * Adds a list to an existing closed list .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param clEntityId The closed list entity extractor ID .
* @ param wordListCreateObject Words list .
* @ throws IllegalArgumentException thrown if parameters fai... | if ( this . client . endpoint ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.endpoint() is required and cannot be null." ) ; } if ( appId == null ) { throw new IllegalArgumentException ( "Parameter appId is required and cannot be null." ) ; } if ( versionId == null ) { throw new IllegalArgu... |
public class AlbumFilterActivity { /** * Select picture , from album . */
private void selectAlbum ( ) { } } | Album . album ( this ) . multipleChoice ( ) . filterMimeType ( new Filter < String > ( ) { // MimeType of File .
@ Override public boolean filter ( String attributes ) { // MimeType : image / jpeg , image / png , video / mp4 , video / 3gp . . .
return attributes . contains ( "jpeg" ) ; } } ) // . filterSize ( ) / / Fil... |
public class BitVector { /** * comparable methods */
@ Override public int compareNumericallyTo ( BitStore that ) { } } | if ( that instanceof BitVector ) { if ( this == that ) return 0 ; // cheap check
BitVector v = ( BitVector ) that ; return this . size ( ) < that . size ( ) ? compareNumeric ( this , v ) : - compareNumeric ( v , this ) ; } return BitStore . super . compareNumericallyTo ( that ) ; |
public class RepositoryConnectionList { /** * This will return any ESAs that match the supplied < code > identifier < / code > .
* The matching is done on any of the symbolic name , short name or lower case short name
* of the resource .
* @ param attribute The attribute to match against
* @ param identifier Th... | Collection < SampleResource > resources = cycleThroughRepositories ( new RepositoryInvoker < SampleResource > ( ) { @ Override public Collection < SampleResource > performActionOnRepository ( RepositoryConnection connection ) throws RepositoryBackendException { return connection . getMatchingSamples ( attribute , ident... |
public class RGBColor { /** * RGB color as r , g , b triple . */
public static RGBColor rgb ( int r , int g , int b ) { } } | return new RGBColor ( makeRgb ( r , g , b ) ) ; |
public class RecurlyClient { /** * Lookup the first coupon redemption on an account .
* @ param accountCode recurly account id
* @ return the coupon redemption for this account on success , null otherwise */
public Redemption getCouponRedemptionByAccount ( final String accountCode ) { } } | return doGET ( Accounts . ACCOUNTS_RESOURCE + "/" + accountCode + Redemption . REDEMPTION_RESOURCE , Redemption . class ) ; |
public class ShufflingIterable { /** * Returns a new iterator that iterates over a new random ordering of the data . */
@ Override public Iterator < T > iterator ( ) { } } | final List < T > shuffledList = Lists . newArrayList ( data ) ; Collections . shuffle ( shuffledList , rng ) ; return Collections . unmodifiableList ( shuffledList ) . iterator ( ) ; |
public class PrettyTime { /** * / * [ deutsch ]
* < p > Formatiert die gesamte angegebene Dauer . < / p >
* < p > Eine lokalisierte Ausgabe ist nur f & uuml ; r die Zeiteinheiten
* { @ link CalendarUnit # YEARS } , { @ link CalendarUnit # MONTHS } ,
* { @ link CalendarUnit # WEEKS } , { @ link CalendarUnit # DA... | TextWidth width = ( this . shortStyle ? TextWidth . ABBREVIATED : TextWidth . WIDE ) ; return this . print ( duration , width , false , Integer . MAX_VALUE ) ; |
public class LengthValidator { /** * Verifziert die Laenge des uebergebenen Wertes . Im Gegensatz zur
* { @ link # validate ( String , int , int ) } - Methode wird herbei eine
* { @ link IllegalArgumentException } geworfen .
* @ param value zu pruefender Wert
* @ param min geforderte Minimal - Laenge
* @ para... | try { return validate ( value , min , max ) ; } catch ( IllegalArgumentException ex ) { throw new LocalizedIllegalArgumentException ( ex ) ; } |
public class Person { /** * Adds an interaction between this person and another .
* @ param destination the Person being interacted with
* @ param description a description of the interaction
* @ return the resulting Relatioship */
public Relationship interactsWith ( Person destination , String description ) { } ... | return interactsWith ( destination , description , null ) ; |
public class SibRaConsumerSession { /** * ( non - Javadoc )
* @ see com . ibm . wsspi . sib . core . AbstractConsumerSession # unlockSet ( com . ibm . wsspi . sib . core . SIMessageHandle [ ] ) */
public void unlockSet ( SIMessageHandle [ ] msgHandles ) throws SISessionUnavailableException , SISessionDroppedException... | throw new SibRaNotSupportedException ( NLS . getString ( "ASYNCHRONOUS_METHOD_CWSIV0250" ) ) ; |
public class RScriptExecutor { /** * Execute R script and parse response : - write the response to outputPathname if outputPathname
* is not null - else return the response
* @ param script R script to execute
* @ param outputPathname optional output pathname for output file
* @ return response value or null in... | // Workaround : script contains the absolute output pathname in case outputPathname is not null
// Replace the absolute output pathname with a relative filename such that OpenCPU can handle
// the script .
String scriptOutputFilename ; if ( outputPathname != null ) { scriptOutputFilename = generateRandomString ( ) ; sc... |
public class ExternalResource { /** * Creates a statement that will execute { @ code beforeClass ) and { @ code afterClass )
* @ param base
* the base statement to be executed
* @ return
* the statement for invoking beforeClass and afterClass */
private Statement classStatement ( final Statement base ) { } } | return new Statement ( ) { @ Override public void evaluate ( ) throws Throwable { beforeClass ( ) ; doStateTransition ( State . BEFORE_EXECUTED ) ; try { base . evaluate ( ) ; } finally { afterClass ( ) ; doStateTransition ( State . AFTER_EXECUTED ) ; } } } ; |
public class LongValueData { /** * { @ inheritDoc } */
protected boolean internalEquals ( ValueData another ) { } } | if ( another instanceof LongValueData ) { return ( ( LongValueData ) another ) . value == value ; } return false ; |
public class FileUtils { /** * Creates an empty file and its intermediate directories if necessary .
* @ param filePath pathname string of the file to create */
public static void createFile ( String filePath ) throws IOException { } } | Path storagePath = Paths . get ( filePath ) ; Files . createDirectories ( storagePath . getParent ( ) ) ; Files . createFile ( storagePath ) ; |
public class FhirTerser { /** * Returns a list containing all child elements ( including the resource itself ) which are < b > non - empty < / b > and are either of the exact type specified , or are a subclass of that type .
* For example , specifying a type of { @ link StringDt } would return all non - empty string ... | final ArrayList < T > retVal = new ArrayList < T > ( ) ; BaseRuntimeElementCompositeDefinition < ? > def = myContext . getResourceDefinition ( theResource ) ; visit ( new IdentityHashMap < Object , Object > ( ) , theResource , theResource , null , null , def , new IModelVisitor ( ) { @ SuppressWarnings ( "unchecked" ) ... |
public class AssertExcludes { /** * Asserts that the element ' s value does not contain the provided expected
* value . If the element isn ' t present or an input , this will constitute a
* failure , same as a mismatch . This information will be logged and
* recorded , with a screenshot for traceability and added... | String value = checkValue ( expectedValue , 0 , 0 ) ; String reason = NO_ELEMENT_FOUND ; if ( value == null && getElement ( ) . is ( ) . present ( ) ) { reason = "Element not input" ; } assertNotNull ( reason , value ) ; assertFalse ( "Value found: element value of '" + value + CONTAINS + expectedValue + "'" , value . ... |
public class Native { /** * The current time in microseconds , as returned by libc . gettimeofday ( ) ; can only be used if
* { @ link # isCurrentTimeMicrosAvailable ( ) } is true . */
public static long currentTimeMicros ( ) { } } | if ( ! isCurrentTimeMicrosAvailable ( ) ) { throw new IllegalStateException ( "Native call not available. " + "Check isCurrentTimeMicrosAvailable() before calling this method." ) ; } LibCLoader . Timeval tv = new LibCLoader . Timeval ( LibCLoader . LIB_C_RUNTIME ) ; int res = LibCLoader . LIB_C . gettimeofday ( tv , nu... |
public class CmsSchedulerThreadPool { /** * Dequeue the next pending < code > Runnable < / code > . < p >
* @ return the next pending < code > Runnable < / code >
* @ throws InterruptedException if something goes wrong */
protected Runnable getNextRunnable ( ) throws InterruptedException { } } | Runnable toRun = null ; // Wait for new Runnable ( see runInThread ( ) ) and notify runInThread ( )
// in case the next Runnable is already waiting .
synchronized ( m_nextRunnableLock ) { if ( m_nextRunnable == null ) { m_nextRunnableLock . wait ( 1000 ) ; } if ( m_nextRunnable != null ) { toRun = m_nextRunnable ; m_ne... |
public class ConversationTable { /** * Returns an iterator which iterates over the tables
* contents . The values returned by this iterator are
* objects of type Conversation .
* @ return Iterator */
public synchronized Iterator iterator ( ) { } } | if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "iterator" ) ; Iterator returnValue = idToConvTable . values ( ) . iterator ( ) ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "iterator" , returnValue ) ; return returnValue ; |
public class EnhancedAnnotationImpl { /** * Returns the annotated members with a given annotation type
* If the annotated members are null , they are initialized first .
* @ param annotationType The annotation type to match
* @ return The set of abstracted members with the given annotation type
* present . An e... | return Collections . unmodifiableSet ( annotatedMembers . get ( annotationType ) ) ; |
public class ReaderGroupStateManager { /** * Add this reader to the reader group so that it is able to acquire segments */
void initializeReader ( long initialAllocationDelay ) { } } | boolean alreadyAdded = sync . updateState ( ( state , updates ) -> { if ( state . getSegments ( readerId ) == null ) { log . debug ( "Adding reader {} to reader grop. CurrentState is: {}" , readerId , state ) ; updates . add ( new AddReader ( readerId ) ) ; return false ; } else { return true ; } } ) ; if ( alreadyAdde... |
public class SessionContext { /** * Adds a list of Session Attribute Listeners
* For shared session context or global sesions , we call
* this method to add each app ' s listeners . */
public void addHttpSessionAttributeListener ( ArrayList al , String j2eeName ) { } } | if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && LoggingUtil . SESSION_LOGGER_CORE . isLoggable ( Level . FINE ) ) { LoggingUtil . SESSION_LOGGER_CORE . entering ( methodClassName , methodNames [ ADD_HTTP_SESSION_ATTRIBUTE_LISTENER ] , "addHttpSessionAttributeListener:" + al ) ; } if ( j2eeName ... |
public class ElementParametersImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setControlParameters ( ControlParameters newControlParameters ) { } } | if ( newControlParameters != controlParameters ) { NotificationChain msgs = null ; if ( controlParameters != null ) msgs = ( ( InternalEObject ) controlParameters ) . eInverseRemove ( this , EOPPOSITE_FEATURE_BASE - BpsimPackage . ELEMENT_PARAMETERS__CONTROL_PARAMETERS , null , msgs ) ; if ( newControlParameters != nul... |
public class WebservicesBndComponentImpl { /** * ( non - Javadoc )
* @ see com . ibm . ws . javaee . ddmodel . wsbnd . WebservicesBnd # getWebserviceDescriptions ( ) */
@ Override public List < WebserviceDescription > getWebserviceDescriptions ( ) { } } | List < WebserviceDescription > webserviceDescriptionList = delegate == null ? new ArrayList < WebserviceDescription > ( ) : new ArrayList < WebserviceDescription > ( delegate . getWebserviceDescriptions ( ) ) ; webserviceDescriptionList . addAll ( webserviceDescriptionTypeMap . values ( ) ) ; return webserviceDescripti... |
public class JmxCollector { /** * Convenience function to run standalone . */
public static void main ( String [ ] args ) throws Exception { } } | String hostPort = "" ; if ( args . length > 0 ) { hostPort = args [ 0 ] ; } JmxCollector jc = new JmxCollector ( ( "{" + "`hostPort`: `" + hostPort + "`," + "}" ) . replace ( '`' , '"' ) ) ; for ( MetricFamilySamples mfs : jc . collect ( ) ) { System . out . println ( mfs ) ; } |
public class CmsHistoryClearDialog { /** * Returns a list with the possible versions to choose from . < p >
* @ return a list with the possible versions to choose from */
private List getVersions ( ) { } } | ArrayList ret = new ArrayList ( ) ; int defaultHistoryVersions = OpenCms . getSystemInfo ( ) . getHistoryVersions ( ) ; int historyVersions = 0 ; // Add the option for disabled version history
ret . add ( new CmsSelectWidgetOption ( "-1" , true , Messages . get ( ) . getBundle ( ) . key ( Messages . GUI_HISTORY_CLEAR_V... |
public class GosuParser { private boolean areParametersEquivalent_Enhancement ( DynamicFunctionSymbol dfs1 , DynamicFunctionSymbol dfs2 ) { } } | return ! dfs1 . isStatic ( ) && dfs2 . isStatic ( ) && dfs1 . getDeclaringTypeInfo ( ) . getOwnersType ( ) instanceof IGosuEnhancement && areParametersEquivalent ( dfs1 , dfs2 , ( ( IGosuEnhancement ) dfs1 . getDeclaringTypeInfo ( ) . getOwnersType ( ) ) . getEnhancedType ( ) ) ; |
public class NettyNetworkService { /** * Decrement the use count of the workerGroup and request a graceful
* shutdown once it is no longer being used by anyone . */
private static synchronized void decrementUseCount ( ) { } } | final String methodName = "decrementUseCount" ; logger . entry ( methodName ) ; -- useCount ; if ( useCount <= 0 ) { if ( bootstrap != null ) { bootstrap . group ( ) . shutdownGracefully ( 0 , 500 , TimeUnit . MILLISECONDS ) ; } bootstrap = null ; useCount = 0 ; } logger . exit ( methodName ) ; |
public class SharedObject { /** * { @ inheritDoc } */
@ Override public boolean setAttribute ( String name , Object value ) { } } | log . debug ( "setAttribute - name: {} value: {}" , name , value ) ; boolean result = true ; if ( ownerMessage . addEvent ( Type . CLIENT_UPDATE_ATTRIBUTE , name , null ) ) { if ( value == null && super . removeAttribute ( name ) ) { // Setting a null value removes the attribute
modified . set ( true ) ; syncEvents . a... |
public class Either { /** * Applies either the left or the right function as appropriate . */
public final < T > T fold ( Function < ? super L , ? extends T > left , Function < ? super R , ? extends T > right ) { } } | if ( isLeft ( ) ) { return left . apply ( getLeft ( ) ) ; } else { return right . apply ( getRight ( ) ) ; } |
public class CoreDictionary { /** * 获取词频
* @ param term
* @ return */
public static int getTermFrequency ( String term ) { } } | Attribute attribute = get ( term ) ; if ( attribute == null ) return 0 ; return attribute . totalFrequency ; |
public class DiameterEventChargingSipServlet { /** * Method for doing the Charging , either it ' s a debit or a refund .
* @ param sessionId the Session - Id for the Diameter Message
* @ param userId the User - Id of the client in the Diameter Server
* @ param cost the Cost ( or Refund value ) of the service
* ... | try { logger . info ( "Creating Diameter Charging " + ( refund ? "Refund" : "Debit" ) + " Request UserId[" + userId + "], Cost[" + cost + "]..." ) ; Request req = ( Request ) diameterBaseClient . createAccountingRequest ( sessionId , userId , cost , refund ) ; logger . info ( "Sending Diameter Charging " + ( refund ? "... |
public class SimpleTimeZone { /** * Sets the daylight savings starting year .
* @ param year The daylight savings starting year . */
public void setStartYear ( int year ) { } } | if ( isFrozen ( ) ) { throw new UnsupportedOperationException ( "Attempt to modify a frozen SimpleTimeZone instance." ) ; } getSTZInfo ( ) . sy = year ; this . startYear = year ; transitionRulesInitialized = false ; |
public class StreamMetadataResourceImpl { /** * Implementation of updateStream REST API .
* @ param scopeName The scope name of stream .
* @ param streamName The name of stream .
* @ param updateStreamRequest The object conforming to updateStreamConfig request json .
* @ param securityContext The security for A... | long traceId = LoggerHelpers . traceEnter ( log , "updateStream" ) ; try { restAuthHelper . authenticateAuthorize ( getAuthorizationHeader ( ) , AuthResourceRepresentation . ofStreamInScope ( scopeName , streamName ) , READ_UPDATE ) ; } catch ( AuthException e ) { log . warn ( "Update stream for {} failed due to authen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.