signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Log { /** * What a Terrible Failure : Report a condition that should never happen . The
* error will always be logged at level Constants . ASSERT despite the logging is
* disabled . Depending on system configuration , and on Android 2.2 + , a
* report may be added to the DropBoxManager and / or the p... | if ( object != null ) { return wtf ( object . getClass ( ) . getName ( ) , msg , tr ) ; } return 0 ; |
public class StorageReadManager { /** * Queues the given request . The Request will be checked against existing pending Requests . If necessary , this request
* will be adjusted to take advantage of an existing request ( i . e . , if it overlaps with an existing request , no actual
* Storage read will happen for th... | log . debug ( "{}: StorageRead.Execute {}" , this . traceObjectId , request ) ; synchronized ( this . lock ) { Exceptions . checkNotClosed ( this . closed , this ) ; Request existingRequest = findOverlappingRequest ( request ) ; if ( existingRequest != null ) { // We found an overlapping request . Adjust the current re... |
public class LoggerFactory { /** * Create a compatible logging tag for Android based on the logger name . */
static final String createTag ( final String name ) { } } | if ( name . length ( ) <= MAX_TAG_LEN ) { return name ; } final char [ ] tag = name . toCharArray ( ) ; final int arrayLen = tag . length ; int len = 0 ; int mark = 0 ; for ( int i = 0 ; i < arrayLen ; i ++ , len ++ ) { if ( tag [ i ] == '.' ) { len = mark ; if ( tag [ len ] != '.' ) { len ++ ; } mark = len ; if ( i + ... |
public class SequenceQuality { /** * Creates a phred sequence quality containing only given values of quality .
* @ param qualityValue value to fill the quality values with
* @ param length size of quality string */
public static SequenceQuality getUniformQuality ( byte qualityValue , int length ) { } } | byte [ ] data = new byte [ length ] ; Arrays . fill ( data , qualityValue ) ; return new SequenceQuality ( data , true ) ; |
public class ELKIServiceLoader { /** * Parse a single line from a service registry file .
* @ param parent Parent class
* @ param line Line to read */
private static void parseLine ( Class < ? > parent , char [ ] line , int begin , int end ) { } } | while ( begin < end && line [ begin ] == ' ' ) { begin ++ ; } if ( begin >= end || line [ begin ] == '#' ) { return ; // Empty / comment lines are okay , continue
} // Find end of class name :
int cend = begin + 1 ; while ( cend < end && line [ cend ] != ' ' ) { cend ++ ; } // Class name :
String cname = new String ( l... |
public class JavaCompilerFactory { /** * Tries to guess the class name by convention . So for compilers
* following the naming convention
* org . apache . commons . jci . compilers . SomeJavaCompiler
* you can use the short - hands " some " / " Some " / " SOME " . Otherwise
* you have to provide the full class ... | final String className ; if ( pHint . indexOf ( '.' ) < 0 ) { className = "org.drools.compiler.commons.jci.compilers." + ClassUtils . toJavaCasing ( pHint ) + "JavaCompiler" ; } else { className = pHint ; } Class clazz = ( Class ) classCache . get ( className ) ; if ( clazz == null ) { try { clazz = Class . forName ( c... |
public class AbstractValueConverterToContainer { /** * This method performs the { @ link # convert ( Object , Object , GenericType ) conversion } for { @ link String }
* values .
* @ param < T > is the generic type of { @ code targetType } .
* @ param stringValue is the { @ link String } value to convert .
* @ ... | List < String > stringList = new ArrayList < > ( ) ; int start = 0 ; int length = stringValue . length ( ) ; while ( start < length ) { int end ; int offset = 1 ; if ( stringValue . startsWith ( ELEMENT_ESCAPE_START , start ) ) { int newStart = start + ELEMENT_ESCAPE_START . length ( ) ; end = stringValue . indexOf ( E... |
public class HexInputStream { /** * Fills the buffer with next bytes from the stream .
* @ param buffer buffer to be filled
* @ return the size of the buffer */
public int readPacket ( @ NonNull byte [ ] buffer ) throws IOException { } } | int i = 0 ; while ( i < buffer . length ) { if ( localPos < size ) { buffer [ i ++ ] = localBuf [ localPos ++ ] ; continue ; } bytesRead += size = readLine ( ) ; if ( size == 0 ) break ; // end of file reached
} return i ; |
public class InMemoryResponseStore { /** * { @ inheritDoc } */
@ Override public void addResponse ( Response response ) { } } | logger . warn ( "Security response " + response . getAction ( ) + " triggered for user: " + response . getUser ( ) . getUsername ( ) ) ; responses . add ( response ) ; super . notifyListeners ( response ) ; |
public class URLUtils { /** * Adds a ' / ' prefix to the beginning of a path if one isn ' t present
* and removes trailing slashes if any are present .
* @ param path the path to normalize
* @ return a normalized ( with respect to slashes ) result */
public static String normalizeSlashes ( final String path ) { }... | // prepare
final StringBuilder builder = new StringBuilder ( path ) ; boolean modified = false ; // remove all trailing ' / ' s except the first one
while ( builder . length ( ) > 0 && builder . length ( ) != 1 && PATH_SEPARATOR == builder . charAt ( builder . length ( ) - 1 ) ) { builder . deleteCharAt ( builder . len... |
public class SimpleElement { /** * This default implementation uses the { @ link # newChildrenInstance ( ) } to initialize the children set and wraps
* it in a private set implementation that automagically changes the parent of the elements based on the
* membership .
* @ return children of this element */
@ Nonn... | if ( children == null ) { children = new ParentPreservingSet ( newChildrenInstance ( ) ) ; } return children ; |
public class LoggingConfiguration { /** * Shuts down blitz4j cleanly by flushing out all the async related
* messages . */
public void stop ( ) { } } | MessageBatcher batcher = null ; for ( String originalAppenderName : originalAsyncAppenderNameMap . keySet ( ) ) { String batcherName = AsyncAppender . class . getName ( ) + "." + originalAppenderName ; batcher = BatcherFactory . getBatcher ( batcherName ) ; if ( batcher == null ) { continue ; } batcher . stop ( ) ; } f... |
public class NYTCorpusDocumentParser { /** * Parse a file containing an XML document , into a DOM object .
* @ param filename
* A path to a valid file .
* @ param validating
* True iff validating should be turned on .
* @ return A DOM Object containing a parsed XML document or a null value if
* there is an ... | // Create a builder factory
DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; if ( ! validating ) { factory . setValidating ( validating ) ; factory . setSchema ( null ) ; factory . setNamespaceAware ( false ) ; } DocumentBuilder builder = factory . newDocumentBuilder ( ) ; // Create the build... |
public class DefaultDataEditorWidget { /** * { @ inheritDoc } */
@ Override public void onAboutToShow ( ) { } } | log . debug ( getId ( ) + ": onAboutToShow with refreshPolicy: " + dataProvider . getRefreshPolicy ( ) ) ; super . onAboutToShow ( ) ; dataProvider . addDataProviderListener ( this ) ; registerListeners ( ) ; if ( detailForm instanceof Widget ) { ( ( Widget ) detailForm ) . onAboutToShow ( ) ; } getTableWidget ( ) . on... |
public class Widgets { /** * Creates a label that triggers an action using the supplied text and handler . */
public static Label newActionLabel ( String text , ClickHandler onClick ) { } } | return newActionLabel ( text , null , onClick ) ; |
public class NonBlockingHashMapLong { /** * copies in progress . */
private void help_copy ( ) { } } | // Read the top - level CHM only once . We ' ll try to help this copy along ,
// even if it gets promoted out from under us ( i . e . , the copy completes
// and another KVS becomes the top - level copy ) .
CHM topchm = _chm ; if ( topchm . _newchm == null ) return ; // No copy in - progress
topchm . help_copy_impl ( f... |
public class CmsJSONSearchConfigurationParser { /** * Helper for reading a mandatory String value list - throwing an Exception if parsing fails .
* @ param json The JSON object where the list should be read from .
* @ param key The key of the value to read .
* @ return The value from the JSON .
* @ throws JSONE... | List < String > list = null ; JSONArray array = json . getJSONArray ( key ) ; list = new ArrayList < String > ( array . length ( ) ) ; for ( int i = 0 ; i < array . length ( ) ; i ++ ) { try { String entry = array . getString ( i ) ; list . add ( entry ) ; } catch ( JSONException e ) { LOG . info ( Messages . get ( ) .... |
public class EhcacheStats { /** * Creates new { @ link net . anotheria . moskito . core . stats . StatValue } that holds the long value with given name
* and default intervals .
* @ param valueName name of the stat value .
* @ return { @ link net . anotheria . moskito . core . stats . StatValue } . */
private Sta... | StatValue sv = StatValueFactory . createStatValue ( 0L , valueName , Constants . getDefaultIntervals ( ) ) ; addStatValues ( sv ) ; return sv ; |
public class PdfSignatureAppearance { /** * Gets a new signature fied name that doesn ' t clash with any existing name .
* @ return a new signature fied name */
public String getNewSigName ( ) { } } | AcroFields af = writer . getAcroFields ( ) ; String name = "Signature" ; int step = 0 ; boolean found = false ; while ( ! found ) { ++ step ; String n1 = name + step ; if ( af . getFieldItem ( n1 ) != null ) { continue ; } n1 += "." ; found = true ; for ( Iterator it = af . getFields ( ) . keySet ( ) . iterator ( ) ; i... |
public class RuntimeCapability { /** * Creates a fully named capability from a { @ link # isDynamicallyNamed ( ) dynamically named } base
* capability . Capability providers should use this method to generate fully named capabilities in logic
* that handles dynamically named resources .
* @ param dynamicElement t... | assert isDynamicallyNamed ( ) ; assert dynamicElement != null ; assert dynamicElement . length > 0 ; return new RuntimeCapability < T > ( getName ( ) , serviceValueType , getServiceName ( ) , runtimeAPI , getRequirements ( ) , allowMultipleRegistrations , dynamicNameMapper , additionalPackages , dynamicElement ) ; |
public class CommonsMetadataEngine { /** * This method creates a table .
* @ param targetCluster the target cluster where the table will be created .
* @ param tableMetadata the table metadata .
* @ throws UnsupportedException if an operation is not supported .
* @ throws ExecutionException if an error happens ... | try { connectionHandler . startJob ( targetCluster . getName ( ) ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Creating table [" + tableMetadata . getName ( ) . getName ( ) + "] in cluster [" + targetCluster . getName ( ) + "]" ) ; } createTable ( tableMetadata , connectionHandler . getConnection ( targetC... |
public class GetCorsPolicyResult { /** * The CORS policy assigned to the container .
* @ param corsPolicy
* The CORS policy assigned to the container . */
public void setCorsPolicy ( java . util . Collection < CorsRule > corsPolicy ) { } } | if ( corsPolicy == null ) { this . corsPolicy = null ; return ; } this . corsPolicy = new java . util . ArrayList < CorsRule > ( corsPolicy ) ; |
public class Vector4d { /** * Rotate this vector the specified radians around the given rotation axis .
* @ param angle
* the angle in radians
* @ param x
* the x component of the rotation axis
* @ param y
* the y component of the rotation axis
* @ param z
* the z component of the rotation axis
* @ re... | return rotateAxis ( angle , x , y , z , thisOrNew ( ) ) ; |
public class SVGUtil { /** * Add a CSS class to an Element .
* @ param e Element
* @ param cssclass class to add . */
public static void addCSSClass ( Element e , String cssclass ) { } } | String oldval = e . getAttribute ( SVGConstants . SVG_CLASS_ATTRIBUTE ) ; if ( oldval == null || oldval . length ( ) == 0 ) { setAtt ( e , SVGConstants . SVG_CLASS_ATTRIBUTE , cssclass ) ; return ; } String [ ] classes = oldval . split ( " " ) ; for ( String c : classes ) { if ( c . equals ( cssclass ) ) { return ; } }... |
public class CacheLoader { /** * Load data from the given iterator .
* @ param < T > type of data being loaded
* @ param i the iterator of data to load */
public < T > Future < ? > loadData ( Iterator < Map . Entry < String , T > > i ) { } } | Future < Boolean > mostRecent = null ; while ( i . hasNext ( ) ) { Map . Entry < String , T > e = i . next ( ) ; mostRecent = push ( e . getKey ( ) , e . getValue ( ) ) ; watch ( e . getKey ( ) , mostRecent ) ; } return mostRecent == null ? new ImmediateFuture ( true ) : mostRecent ; |
public class U { /** * Documented , # uniq */
public static < E > List < E > uniq ( final List < E > list ) { } } | return newArrayList ( newLinkedHashSet ( list ) ) ; |
public class DefaultEntityHandler { /** * { @ inheritDoc }
* @ see jp . co . future . uroborosql . mapping . EntityHandler # doSelect ( jp . co . future . uroborosql . SqlAgent , jp . co . future . uroborosql . context . SqlContext , java . lang . Class ) */
@ Override public < E > Stream < E > doSelect ( final SqlAg... | return agent . query ( context , new EntityResultSetConverter < > ( entityType , new PropertyMapperManager ( propertyMapperManager ) ) ) ; |
public class XBooleanLiteralImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eSet ( int featureID , Object newValue ) { } } | switch ( featureID ) { case XbasePackage . XBOOLEAN_LITERAL__IS_TRUE : setIsTrue ( ( Boolean ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ; |
public class CmsContainerPageCopier { /** * Produces the replacement for a container page element to use in a copy of an existing container page . < p >
* @ param targetPage the target container page
* @ param originalElement the original element
* @ return the replacement element for the copied page
* @ throws... | // if ( m _ elementReplacements . containsKey ( originalElement . getId ( )
CmsObject targetCms = OpenCms . initCmsObject ( m_cms ) ; CmsSite site = OpenCms . getSiteManager ( ) . getSiteForRootPath ( m_targetFolder . getRootPath ( ) ) ; if ( site != null ) { targetCms . getRequestContext ( ) . setSiteRoot ( site . get... |
public class CmsSiteManager { /** * Method to check if a folder under given path contains a bundle for macro resolving . < p >
* @ param cms CmsObject
* @ param folderPathRoot root path of folder
* @ return true if macros bundle found */
public static boolean isFolderWithMacros ( CmsObject cms , String folderPath... | if ( ! CmsResource . isFolder ( folderPathRoot ) ) { folderPathRoot = folderPathRoot . concat ( "/" ) ; } try { cms . readResource ( folderPathRoot + MACRO_FOLDER ) ; cms . readResource ( folderPathRoot + MACRO_FOLDER + "/" + BUNDLE_NAME + "_desc" ) ; } catch ( CmsException e ) { return false ; } return true ; |
public class BuilderFactory { /** * Return an instance of the annotation type member builder for the given
* class .
* @ return an instance of the annotation type member builder for the given
* annotation type . */
public AbstractBuilder getAnnotationTypeRequiredMemberBuilder ( AnnotationTypeWriter annotationType... | return AnnotationTypeRequiredMemberBuilder . getInstance ( context , annotationTypeWriter . getAnnotationTypeElement ( ) , writerFactory . getAnnotationTypeRequiredMemberWriter ( annotationTypeWriter ) ) ; |
public class KnowledgeExchangeHandler { /** * Gets a primitive boolean context property .
* @ param exchange the exchange
* @ param message the message
* @ param name the name
* @ return the property */
protected boolean isBoolean ( Exchange exchange , Message message , String name ) { } } | Boolean b = getBoolean ( exchange , message , name ) ; return b != null && b . booleanValue ( ) ; |
public class SegmentStatsRecorderImpl { /** * Method called with txn stats whenever a txn is committed .
* @ param streamSegmentName parent segment name
* @ param dataLength length of data written in txn
* @ param numOfEvents number of events written in txn
* @ param txnCreationTime time when txn was created */... | getDynamicLogger ( ) . incCounterValue ( SEGMENT_WRITE_BYTES , dataLength , segmentTags ( streamSegmentName ) ) ; getDynamicLogger ( ) . incCounterValue ( SEGMENT_WRITE_EVENTS , numOfEvents , segmentTags ( streamSegmentName ) ) ; SegmentAggregates aggregates = getSegmentAggregate ( streamSegmentName ) ; if ( aggregates... |
public class LinkFieldUpdater { /** * Delete the inverse reference to the given target object ID . */
private void deleteLinkInverseValue ( String targetObjID ) { } } | int shardNo = m_tableDef . getShardNumber ( m_dbObj ) ; if ( shardNo > 0 && m_invLinkDef . isSharded ( ) ) { m_dbTran . deleteShardedLinkValue ( targetObjID , m_invLinkDef , m_dbObj . getObjectID ( ) , shardNo ) ; } else { m_dbTran . deleteLinkValue ( targetObjID , m_invLinkDef , m_dbObj . getObjectID ( ) ) ; } |
public class BundleStringJsonifier { /** * Creates a javascript object literal representing a set of message
* resources .
* @ return StringBuffer the object literal . */
public StringBuffer serializeBundles ( ) { } } | StringBuffer sb = new StringBuffer ( "{" ) ; // Iterates over the
for ( Iterator < String > it = keyMap . keySet ( ) . iterator ( ) ; it . hasNext ( ) ; ) { String currentKey = it . next ( ) ; handleKey ( sb , keyMap , currentKey , currentKey , ! it . hasNext ( ) ) ; } return sb . append ( "}" ) ; |
public class BOGImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setOEGName ( String newOEGName ) { } } | String oldOEGName = oegName ; oegName = newOEGName ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . BOG__OEG_NAME , oldOEGName , oegName ) ) ; |
public class KeyVaultClientBaseImpl { /** * Gets the specified deleted storage account .
* The Get Deleted Storage Account operation returns the specified deleted storage account along with its attributes . This operation requires the storage / get permission .
* @ param vaultBaseUrl The vault name , for example ht... | return ServiceFuture . fromResponse ( getDeletedStorageAccountWithServiceResponseAsync ( vaultBaseUrl , storageAccountName ) , serviceCallback ) ; |
public class Instants { /** * Creates an Instant , input format is " yyyy - MM - dd ' T ' HH : mm : ss [ . SSS ] ' Z ' " , timezone is UTC . */
public static Instant instantUtc ( String text ) { } } | Instant result = null ; try { ZonedDateTime zdt = ZonedDateTime . parse ( text , getFormater ( DATE_FORMAT_UTC , "UTC" ) ) ; // LocalDateTime ldt = LocalDateTime . parse ( text , getFormater ( DATE _ FORMAT _ UTC , " UTC " ) ) ;
result = zdt . toInstant ( ) ; } catch ( DateTimeParseException ex ) { Say . warn ( "Instan... |
public class BeanUtils { /** * Return the value of the specified property of the specified bean , no matter which property
* reference format is used , as a String .
* For more details see < code > BeanUtilsBean < / code > .
* @ param pbean Bean whose property is to be extracted
* @ param pname Possibly indexed... | return Objects . toString ( PropertyUtils . getProperty ( pbean , pname ) , null ) ; |
public class CharsetUtils { /** * Get the actual string value declared as the charset in a content - type
* string , regardless of its validity .
* NOTE : this is different from getCharset , which will always return a
* default value .
* @ param contentType
* the content - type string
* @ return the verbati... | if ( contentType == null ) { return null ; } Matcher matcher = CHARSET_PATT . matcher ( contentType ) ; if ( matcher . find ( ) ) { String encstr = matcher . group ( 1 ) ; return encstr ; } else { return null ; } |
public class GoogleCloudStorageMergeOutput { /** * Returns a writer that writes the data the same way that the sort does , splitting the output
* every time the key goes backwards in sequence . This way the output is a collection of files
* that are individually fully sorted . This works in conjunction with
* { @... | ImmutableList . Builder < OutputWriter < KeyValue < ByteBuffer , List < ByteBuffer > > > > result = new ImmutableList . Builder < > ( ) ; for ( int i = 0 ; i < shards ; i ++ ) { result . add ( new OrderSlicingOutputWriter ( bucket , String . format ( MapReduceConstants . MERGE_OUTPUT_DIR_FORMAT , mrJobId , tier , i ) )... |
public class IndexDocumentsResult { /** * The names of the fields that are currently being indexed .
* @ param fieldNames
* The names of the fields that are currently being indexed . */
public void setFieldNames ( java . util . Collection < String > fieldNames ) { } } | if ( fieldNames == null ) { this . fieldNames = null ; return ; } this . fieldNames = new com . amazonaws . internal . SdkInternalList < String > ( fieldNames ) ; |
public class NtlmPasswordAuthenticator { /** * Calculates the effective user session key .
* @ param tc
* context to use
* @ param chlng
* The server challenge .
* @ param dest
* The destination array in which the user session key will be
* placed .
* @ param offset
* The offset in the destination arr... | try { MessageDigest md4 = Crypto . getMD4 ( ) ; md4 . update ( Strings . getUNIBytes ( this . password ) ) ; switch ( tc . getConfig ( ) . getLanManCompatibility ( ) ) { case 0 : case 1 : case 2 : md4 . update ( md4 . digest ( ) ) ; md4 . digest ( dest , offset , 16 ) ; break ; case 3 : case 4 : case 5 : synchronized (... |
public class NodeObject { /** * Requests that the < code > locks < / code > field be set to the
* specified value . Generally one only adds , updates and removes
* entries of a distributed set , but certain situations call for a
* complete replacement of the set value . The local value will be
* updated immedia... | "com.threerings.presents.tools.GenDObjectTask" } ) public void setLocks ( DSet < NodeObject . Lock > value ) { requestAttributeChange ( LOCKS , value , this . locks ) ; DSet < NodeObject . Lock > clone = ( value == null ) ? null : value . clone ( ) ; this . locks = clone ; |
public class WindowsFaxClientSpiHelper { /** * This function returns the fax job ID ( if valid ) .
* If fax job ID is not valid , an error will be thrown .
* @ param faxJob
* The fax job object
* @ return The fax job ID */
public static int getFaxJobID ( FaxJob faxJob ) { } } | if ( faxJob == null ) { throw new FaxException ( "Fax job not provided." ) ; } // get fax job ID
String faxJobID = faxJob . getID ( ) ; WindowsFaxClientSpiHelper . validateFaxJobID ( faxJobID ) ; int faxJobIDInt = Integer . parseInt ( faxJobID ) ; return faxJobIDInt ; |
public class DOMUtils { /** * Create an Element for a given QName .
* This uses the document builder associated with the current thread . */
public static Element createElement ( QName qname ) { } } | return createElement ( qname . getLocalPart ( ) , qname . getPrefix ( ) , qname . getNamespaceURI ( ) ) ; |
public class Annotation { /** * Returns the title of this < CODE > Annotation < / CODE > .
* @ return a name */
public String title ( ) { } } | String s = ( String ) annotationAttributes . get ( TITLE ) ; if ( s == null ) s = "" ; return s ; |
public class GetQueueRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetQueueRequest getQueueRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getQueueRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getQueueRequest . getName ( ) , NAME_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e... |
public class ClusterJoinManager { /** * Validate that the configuration received from the remote node in { @ code joinMessage } is compatible with the
* configuration of this node .
* @ param joinMessage the { @ link JoinMessage } received from another node .
* @ return { @ code true } if packet version of join m... | if ( joinMessage . getPacketVersion ( ) != Packet . VERSION ) { return false ; } try { ConfigCheck newMemberConfigCheck = joinMessage . getConfigCheck ( ) ; ConfigCheck clusterConfigCheck = node . createConfigCheck ( ) ; return clusterConfigCheck . isCompatible ( newMemberConfigCheck ) ; } catch ( Exception e ) { logge... |
public class Collections2 { /** * An implementation of { @ link Collection # toString ( ) } . */
static String toStringImpl ( final Collection < ? > collection ) { } } | StringBuilder sb = newStringBuilderForCollection ( collection . size ( ) ) . append ( '[' ) ; STANDARD_JOINER . appendTo ( sb , Iterables . transform ( collection , new Function < Object , Object > ( ) { @ Override public Object apply ( Object input ) { return input == collection ? "(this Collection)" : input ; } } ) )... |
public class Base64Encoder { /** * Translates the specified Base64 string into a byte array .
* @ param data the Base64 string ( not null )
* @ return the byte array ( not null )
* @ throws CoderException */
public static byte [ ] decode ( String data ) { } } | // TODO : when we move to Java 8 change to
// https : / / docs . oracle . com / javase / 8 / docs / api / java / util / Base64 . Decoder . html
return org . apache . commons . codec . binary . Base64 . decodeBase64 ( data ) ; |
public class LottieDrawable { /** * Plays the animation from the beginning . If speed is < 0 , it will start at the end
* and play towards the beginning */
@ MainThread public void playAnimation ( ) { } } | if ( compositionLayer == null ) { lazyCompositionTasks . add ( new LazyCompositionTask ( ) { @ Override public void run ( LottieComposition composition ) { playAnimation ( ) ; } } ) ; return ; } if ( systemAnimationsEnabled || getRepeatCount ( ) == 0 ) { animator . playAnimation ( ) ; } if ( ! systemAnimationsEnabled )... |
public class AbstractInterfaceConfig { /** * 接口属性和方法属性加载配置到缓存
* @ param rebuild 是否重建
* @ return Map < String Object > unmodifiableMap */
public synchronized Map < String , Object > getConfigValueCache ( boolean rebuild ) { } } | if ( configValueCache != null && ! rebuild ) { return configValueCache ; } Map < String , Object > context = new HashMap < String , Object > ( 32 ) ; Map < String , String > providerParams = getParameters ( ) ; if ( providerParams != null ) { context . putAll ( providerParams ) ; // 复制接口的自定义参数
} Map < String , MethodCo... |
public class BoxApiMetadata { /** * Gets a request that adds metadata to a folder
* @ param id id of the folder to add metadata to
* @ param values mapping of the template keys to their values
* @ param scope currently only global and enterprise scopes are supported
* @ param template metadata template to use
... | BoxRequestsMetadata . AddItemMetadata request = new BoxRequestsMetadata . AddItemMetadata ( values , getFolderMetadataUrl ( id , scope , template ) , mSession ) ; return request ; |
public class MutableInterval { /** * Sets the end of this time interval as an Instant .
* @ param end the end of the time interval , null means now
* @ throws IllegalArgumentException if the end is before the start */
public void setEnd ( ReadableInstant end ) { } } | long endMillis = DateTimeUtils . getInstantMillis ( end ) ; super . setInterval ( getStartMillis ( ) , endMillis , getChronology ( ) ) ; |
public class SimpleRasterizer { /** * Call before starting the edges .
* For example to render two polygons that consist of a single ring :
* startAddingEdges ( ) ;
* addRing ( . . . ) ;
* renderEdges ( Rasterizer . EVEN _ ODD ) ;
* addRing ( . . . ) ;
* renderEdges ( Rasterizer . EVEN _ ODD ) ;
* For exa... | if ( numEdges_ > 0 ) { for ( int i = 0 ; i < height_ ; i ++ ) { for ( Edge e = ySortedEdges_ [ i ] ; e != null ; ) { Edge p = e ; e = e . next ; p . next = null ; } ySortedEdges_ [ i ] = null ; } activeEdgesTable_ = null ; } minY_ = height_ ; maxY_ = - 1 ; numEdges_ = 0 ; |
public class Validate { /** * < p > Validates that the index is within the bounds of the argument
* character sequence ; otherwise throwing an exception . < / p >
* < pre > Validate . validIndex ( myStr , 2 ) ; < / pre >
* < p > If the character sequence is { @ code null } , then the message
* of the exception ... | return validIndex ( chars , index , DEFAULT_VALID_INDEX_CHAR_SEQUENCE_EX_MESSAGE , Integer . valueOf ( index ) ) ; |
public class ServerBuilder { /** * Sets the { @ link Executor } dedicated to the execution of blocking tasks or invocations .
* If not set , { @ linkplain CommonPools # blockingTaskExecutor ( ) the common pool } is used .
* @ param shutdownOnStop whether to shut down the { @ link Executor } when the { @ link Server... | this . blockingTaskExecutor = requireNonNull ( blockingTaskExecutor , "blockingTaskExecutor" ) ; shutdownBlockingTaskExecutorOnStop = shutdownOnStop ; return this ; |
public class JarWithFile { /** * Returns the last - modified time of the entry in the jar file .
* @ param path full path to the jar entry
* @ return the length of the entry */
public long getLastModified ( String path ) { } } | try { // this entry time can cause problems . . .
ZipEntry entry = getZipEntry ( path ) ; return entry != null ? entry . getTime ( ) : - 1 ; } catch ( IOException e ) { log . log ( Level . FINE , e . toString ( ) , e ) ; } return - 1 ; |
public class SpecializedOps_DDRM { /** * Sums up the square of each element in the matrix . This is equivalent to the
* Frobenius norm squared .
* @ param m Matrix .
* @ return Sum of elements squared . */
public static double elementSumSq ( DMatrixD1 m ) { } } | // minimize round off error
double maxAbs = CommonOps_DDRM . elementMaxAbs ( m ) ; if ( maxAbs == 0 ) return 0 ; double total = 0 ; int N = m . getNumElements ( ) ; for ( int i = 0 ; i < N ; i ++ ) { double d = m . data [ i ] / maxAbs ; total += d * d ; } return maxAbs * total * maxAbs ; |
public class JsonUtil { /** * Returns a field in a Json object as a double .
* @ param object the Json Object
* @ param field the field in the Json object to return
* @ param defaultValue a default value for the field if the field value is null
* @ return the Json field value as a double */
public static double... | final JsonValue value = object . get ( field ) ; if ( value == null || value . isNull ( ) ) { return defaultValue ; } else { return value . asDouble ( ) ; } |
public class LinearSearch { /** * Search for the value in the array and return the index of the first occurrence from the
* beginning of the array .
* @ param < E > the type of elements in this array .
* @ param array array that we are searching in .
* @ param value value that is being searched in the array .
... | return LinearSearch . search ( array , value , 1 ) ; |
public class AbstractMemberPropertyAccessor { /** * Return any accessor , be it read or write , for the given property .
* @ param propertyName name of the property .
* @ return an accessor for the property or < code > null < / code > */
protected Member getPropertyAccessor ( String propertyName ) { } } | if ( readAccessors . containsKey ( propertyName ) ) { return ( Member ) readAccessors . get ( propertyName ) ; } else { return ( Member ) writeAccessors . get ( propertyName ) ; } |
public class TextAnalysis { /** * Combine string .
* @ param left the left
* @ param right the right
* @ param minOverlap the min overlap
* @ return the string */
public static String combine ( String left , String right , int minOverlap ) { } } | if ( left . length ( ) < minOverlap ) return null ; if ( right . length ( ) < minOverlap ) return null ; int bestOffset = Integer . MAX_VALUE ; for ( int offset = minOverlap - left . length ( ) ; offset < right . length ( ) - minOverlap ; offset ++ ) { boolean match = true ; for ( int posLeft = Math . max ( 0 , - offse... |
public class LoggingClientInterceptor { /** * Builds response content string from response object .
* @ param response
* @ return
* @ throws IOException */
private String getResponseContent ( CachingClientHttpResponseWrapper response ) throws IOException { } } | if ( response != null ) { StringBuilder builder = new StringBuilder ( ) ; builder . append ( "HTTP/1.1 " ) ; // TODO get Http version from message
builder . append ( response . getStatusCode ( ) ) ; builder . append ( " " ) ; builder . append ( response . getStatusText ( ) ) ; builder . append ( NEWLINE ) ; appendHeade... |
public class PAbstractObject { /** * Get a property as a array or default .
* @ param key the property name
* @ param defaultValue default */
@ Override public final PArray optArray ( final String key , final PArray defaultValue ) { } } | PArray result = optArray ( key ) ; return result == null ? defaultValue : result ; |
public class ComputeNodesImpl { /** * Gets the settings required for remote login to a compute node .
* Before you can remotely login to a node using the remote login settings , you must create a user account on the node . This API can be invoked only on pools created with the virtual machine configuration property .... | return getRemoteLoginSettingsWithServiceResponseAsync ( poolId , nodeId ) . map ( new Func1 < ServiceResponseWithHeaders < ComputeNodeGetRemoteLoginSettingsResult , ComputeNodeGetRemoteLoginSettingsHeaders > , ComputeNodeGetRemoteLoginSettingsResult > ( ) { @ Override public ComputeNodeGetRemoteLoginSettingsResult call... |
public class fannkuch { /** * next _ perm ( ' 1234 ' , 2 ) - > ' 2314' */
private static final void next_perm ( final int [ ] permutation , int position ) { } } | int perm0 = permutation [ 0 ] ; for ( int i = 0 ; i < position ; ++ i ) permutation [ i ] = permutation [ i + 1 ] ; permutation [ position ] = perm0 ; |
public class GherkinExtensionRegistry { /** * ( non - Javadoc )
* @ see
* org . asciidoctor . extension . spi . ExtensionRegistry # register ( org . asciidoctor
* . Asciidoctor ) */
@ Override public void register ( Asciidoctor asciidoctor ) { } } | RubyExtensionRegistry rubyExtensionRegistry = asciidoctor . rubyExtensionRegistry ( ) ; rubyExtensionRegistry . loadClass ( this . getClass ( ) . getResourceAsStream ( "gherkinblockmacro.rb" ) ) . blockMacro ( "gherkin" , "GherkinBlockMacroProcessor" ) ; |
public class CreativeServiceLocator { /** * For the given interface , get the stub implementation .
* If this service has no port for the given interface ,
* then ServiceException is thrown . */
public java . rmi . Remote getPort ( Class serviceEndpointInterface ) throws javax . xml . rpc . ServiceException { } } | try { if ( com . google . api . ads . admanager . axis . v201811 . CreativeServiceInterface . class . isAssignableFrom ( serviceEndpointInterface ) ) { com . google . api . ads . admanager . axis . v201811 . CreativeServiceSoapBindingStub _stub = new com . google . api . ads . admanager . axis . v201811 . CreativeServi... |
public class hqlLexer { /** * $ ANTLR start " NUM _ INT " */
public final void mNUM_INT ( ) throws RecognitionException { } } | try { int _type = NUM_INT ; int _channel = DEFAULT_TOKEN_CHANNEL ; CommonToken f1 = null ; CommonToken f2 = null ; CommonToken f3 = null ; CommonToken f4 = null ; boolean isDecimal = false ; Token t = null ; // hql . g : 804:2 : ( ' . ' ( ( ' 0 ' . . ' 9 ' ) + ( EXPONENT ) ? ( f1 = FLOAT _ SUFFIX ) ? ) ? | ( ' 0 ' ( ( ... |
public class CookieUtils { /** * Append the input value string to the given buffer , wrapping it with
* quotes if need be .
* @ param buff
* @ param value */
private static void maybeQuote ( StringBuilder buff , String value ) { } } | // PK48169 - handle a null value as well as an empty one
if ( null == value || 0 == value . length ( ) ) { buff . append ( "\"\"" ) ; } else if ( needsQuote ( value ) ) { buff . append ( '"' ) ; buff . append ( value ) ; buff . append ( '"' ) ; } else { buff . append ( value ) ; } |
public class InternalSARLParser { /** * InternalSARL . g : 2739:1 : entryRuleAOPMember returns [ EObject current = null ] : iv _ ruleAOPMember = ruleAOPMember EOF ; */
public final EObject entryRuleAOPMember ( ) throws RecognitionException { } } | EObject current = null ; EObject iv_ruleAOPMember = null ; try { // InternalSARL . g : 2739:50 : ( iv _ ruleAOPMember = ruleAOPMember EOF )
// InternalSARL . g : 2740:2 : iv _ ruleAOPMember = ruleAOPMember EOF
{ if ( state . backtracking == 0 ) { newCompositeNode ( grammarAccess . getAOPMemberRule ( ) ) ; } pushFollow ... |
public class SecurityUtilities { /** * Look up the top - most element in the current stack representing a
* script and return its protection domain . This relies on the system - wide
* SecurityManager being an instance of { @ link RhinoSecurityManager } ,
* otherwise it returns < code > null < / code > .
* @ re... | final SecurityManager securityManager = System . getSecurityManager ( ) ; if ( securityManager instanceof RhinoSecurityManager ) { return AccessController . doPrivileged ( new PrivilegedAction < ProtectionDomain > ( ) { @ Override public ProtectionDomain run ( ) { Class < ? > c = ( ( RhinoSecurityManager ) securityMana... |
public class SqlExecutor { /** * 执行非查询语句 < br >
* 语句包括 插入 、 更新 、 删除 < br >
* 此方法不会关闭Connection
* @ param conn 数据库连接对象
* @ param sql SQL
* @ param params 参数
* @ return 影响的行数
* @ throws SQLException SQL执行异常 */
public static int execute ( Connection conn , String sql , Object ... params ) throws SQLException... | PreparedStatement ps = null ; try { ps = StatementUtil . prepareStatement ( conn , sql , params ) ; return ps . executeUpdate ( ) ; } finally { DbUtil . close ( ps ) ; } |
public class ConnectionImpl { /** * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . MPCoreConnection # deleteSystemDestination ( com . ibm . ws . sib . mfp . JsDestinationAddress ) */
@ Override public void deleteSystemDestination ( String prefix ) throws SINotPossibleInCurrentConfigurationException , SI... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "deleteSystemDestination" , prefix ) ; // See if this connection has been closed
checkNotClosed ( ) ; _destinationManager . deleteSystemDestination ( SIMPUtils . createJsSystemDestinationAddress ( prefix , _messageProcessor ... |
public class ContextHelper { /** * Whether it is a DELETE request .
* @ param context the web context
* @ return whether it is a DELETE request */
public static boolean isDelete ( final WebContext context ) { } } | return HttpConstants . HTTP_METHOD . DELETE . name ( ) . equalsIgnoreCase ( context . getRequestMethod ( ) ) ; |
public class WorkbenchPanel { /** * Unpins all visible panels .
* @ since 2.5.0
* @ see # pinVisiblePanels ( )
* @ see AbstractPanel # setPinned ( boolean ) */
public void unpinVisiblePanels ( ) { } } | if ( layout == Layout . FULL ) { getTabbedFull ( ) . unpinTabs ( ) ; } else { getTabbedSelect ( ) . unpinTabs ( ) ; getTabbedWork ( ) . unpinTabs ( ) ; getTabbedStatus ( ) . unpinTabs ( ) ; } |
public class ReportQuery { /** * Sets the columns value for this ReportQuery .
* @ param columns * The list of trafficking statistics and revenue information
* being requested
* in the report . The generated report will contain the
* columns in the same
* order as requested . This field is required . */
publi... | this . columns = columns ; |
public class TextAnalyticsImpl { /** * The API returns a list of strings denoting the key talking points in the input text .
* See the & lt ; a href = " https : / / docs . microsoft . com / en - us / azure / cognitive - services / text - analytics / overview # supported - languages " & gt ; Text Analytics Documentati... | return keyPhrasesWithServiceResponseAsync ( keyPhrasesOptionalParameter ) . map ( new Func1 < ServiceResponse < KeyPhraseBatchResult > , KeyPhraseBatchResult > ( ) { @ Override public KeyPhraseBatchResult call ( ServiceResponse < KeyPhraseBatchResult > response ) { return response . body ( ) ; } } ) ; |
public class TransactionManager { /** * Called by TransactionScope . */
boolean setLocalScope ( TransactionScope < Txn > scope , boolean detached ) { } } | TransactionScope < Txn > existing = mLocalScope . get ( ) ; if ( ( ( existing == null || existing . isInactive ( ) ) && detached ) || existing == scope ) { attachNotification ( scope . getActiveTxn ( ) ) ; mLocalScope . set ( scope ) ; return true ; } return false ; |
public class EnglishGrammaticalStructure { /** * This rewrites the " conj " relation to " conj _ word " and deletes cases of the
* " cc " relation providing this rewrite has occurred ( but not if there is only
* something like a clause - initial and ) . For instance , cc ( elected - 5 , and - 9)
* conj ( elected ... | List < TreeGraphNode > govs = new ArrayList < TreeGraphNode > ( ) ; // find typed deps of form cc ( gov , dep )
for ( TypedDependency td : list ) { if ( td . reln ( ) == COORDINATION ) { // i . e . " cc "
TreeGraphNode gov = td . gov ( ) ; GrammaticalRelation conj = conjValue ( td . dep ( ) . value ( ) ) ; if ( DEBUG )... |
public class Cron4jNow { protected Cron4jJob createCron4jJob ( LaJobKey jobKey , JobSubIdentityAttr subIdentityAttr , List < LaJobKey > triggeringJobKeyList , OptionalThing < String > cron4jId , Cron4jTask cron4jTask ) { } } | final Cron4jJob job = newCron4jJob ( jobKey , subIdentityAttr . getJobNote ( ) , subIdentityAttr . getJobUnique ( ) , cron4jId . map ( id -> Cron4jId . of ( id ) ) , cron4jTask , this ) ; triggeringJobKeyList . forEach ( triggeringJobKey -> { findJobByKey ( triggeringJobKey ) . alwaysPresent ( triggeringJob -> { trigge... |
public class Collections { /** * Create an ARRAY comprehension with a first WITHIN range .
* The ARRAY operator lets you map and filter the elements or attributes of a collection , object , or objects .
* It evaluates to an array of the operand expression , that satisfies the WHEN clause , if provided .
* For ele... | return new WhenBuilder ( x ( "ARRAY " + arrayExpression . toString ( ) + " FOR" ) , variable , expression , false ) ; |
public class StatisticalTagger { /** * Get morphological analysis from a tokenized sentence .
* @ param tokens
* the tokenized sentence
* @ return a list of { @ code Morpheme } objects containing morphological info */
public final List < Morpheme > getMorphemes ( final String [ ] tokens ) { } } | final List < String > origPosTags = posAnnotate ( tokens ) ; final List < Morpheme > morphemes = getMorphemesFromStrings ( origPosTags , tokens ) ; return morphemes ; |
public class JBossASClient { /** * Convienence method that allows you to obtain a single attribute ' s string value from
* a resource .
* @ param attributeName the attribute whose value is to be returned
* @ param address identifies the resource
* @ return the attribute value
* @ throws Exception if failed to... | return getStringAttribute ( false , attributeName , address ) ; |
public class ComparatorResultBuilder { /** * Performs the comparison between 2 { @ link Comparable } objects .
* @ param obj1 { @ link Comparable } object in the comparison operation .
* @ param obj2 { @ link Comparable } object in the comparison operation .
* @ return this { @ link ComparatorResultBuilder } .
... | this . result = ( this . result != 0 ? this . result : compare ( obj1 , obj2 ) ) ; return this ; |
public class KamStoreServiceImpl { /** * { @ inheritDoc } */
@ Override public List < KamNode > getKamNodes ( KamHandle kamHandle , final List < Node > nodes ) throws KamStoreServiceException { } } | final String handle = kamHandle . getHandle ( ) ; try { final org . openbel . framework . api . Kam kam = kamCacheService . getKam ( handle ) ; if ( kam == null ) { throw new KamStoreServiceException ( format ( KAM_REQUEST_NO_KAM_FOR_HANDLE , handle ) ) ; } final List < KamNode > resolvedKamNodes = sizedArrayList ( nod... |
public class FlyWeightFlatXmlProducer { /** * Wraps a { @ link SAXException } into a { @ link DataSetException }
* @ param cause The cause to be wrapped into a { @ link DataSetException }
* @ return A { @ link DataSetException } that wraps the given { @ link SAXException } */
protected final static DataSetException... | int lineNumber = - 1 ; if ( cause instanceof SAXParseException ) { lineNumber = ( ( SAXParseException ) cause ) . getLineNumber ( ) ; } Exception exception = cause . getException ( ) == null ? cause : cause . getException ( ) ; String message ; if ( lineNumber >= 0 ) { message = "Line " + lineNumber + ": " + exception ... |
public class ZoomControl { /** * Initialize handlers for mobile devices . */
private void initializeForTouchDevice ( ) { } } | logger . log ( Level . FINE , "ZoomControl -> initializeForTouchDevice()" ) ; // Add touch handlers to the zoom in button :
zoomInElement . addDomHandler ( new TouchStartHandler ( ) { @ Override public void onTouchStart ( TouchStartEvent event ) { event . stopPropagation ( ) ; event . preventDefault ( ) ; logger . log ... |
public class NodeTypeImpl { /** * Returns true if satisfy type and constrains . Otherwise returns false .
* @ param requiredType - type .
* @ param value - value .
* @ param constraints - constraints .
* @ return a boolean . */
private boolean canSetPropertyForType ( int requiredType , Value value , String [ ] ... | if ( requiredType == value . getType ( ) ) { return checkValueConstraints ( requiredType , constraints , value ) ; } else if ( requiredType == PropertyType . BINARY && ( value . getType ( ) == PropertyType . STRING || value . getType ( ) == PropertyType . DATE || value . getType ( ) == PropertyType . LONG || value . ge... |
public class AsyncConnection { /** * { @ inheritDoc } .
* Closing the { @ link AsyncConnection } will attempt a graceful shutdown of the { @ link # executorService } with a
* timeout of { @ link # shutdownTimeout } , allowing the current events to be submitted while new events will
* be rejected . < br >
* If t... | if ( gracefulShutdown ) { Util . safelyRemoveShutdownHook ( shutDownHook ) ; shutDownHook . enabled = false ; } doClose ( ) ; |
public class IOUtil { /** * Creates a copy of a file .
* Shorthand for < code > copyFile ( from , to , false ) < / code > , < code > false < / code >
* meaning don ' t overwrite existing file .
* @ param from
* - source File
* @ param to
* - destination File
* @ throws RuntimeIOException */
public static ... | copyFile ( from , to , false ) ; |
public class AbstractBaseSource { /** * Create a reader for the specified resource .
* @ param resource resource to create reader for
* @ return reader for the specified resource */
protected Reader createResourceReader ( Resource resource ) { } } | try { return new InputStreamReader ( resource . getInputStream ( ) ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } |
public class RedisClusterClient { /** * Create a connection to a redis socket address .
* @ param codec Use this codec to encode / decode keys and values , must not be { @ literal null }
* @ param nodeId the nodeId
* @ param clusterWriter global cluster writer
* @ param socketAddressSupplier supplier for the so... | return getConnection ( connectToNodeAsync ( codec , nodeId , clusterWriter , socketAddressSupplier ) ) ; |
public class HotdeployUtil { public static Object deserializeInternal ( final byte [ ] bytes ) throws Exception { } } | if ( bytes == null ) { return null ; } final ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; final Class < ? > rebuilderClass = LdiClassLoaderUtil . loadClass ( loader , REBUILDER_CLASS_NAME ) ; final Rebuilder rebuilder = ( Rebuilder ) LdiClassUtil . newInstance ( rebuilderClass ) ; retur... |
public class FileRecyclerViewAdapter { /** * Encodes a bitmap to a byte array .
* @ param bitmap the bitmap to compress
* @ param format the compression format for the Bitmap
* @ return { @ code byte [ ] } object */
public static byte [ ] encodeBitmapToArray ( Bitmap bitmap , Bitmap . CompressFormat format ) { } ... | ByteArrayOutputStream outputStream = new ByteArrayOutputStream ( ) ; bitmap . compress ( format , 0 , outputStream ) ; return outputStream . toByteArray ( ) ; |
public class BatchDetectSyntaxItemResult { /** * The syntax tokens for the words in the document , one token for each word .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setSyntaxTokens ( java . util . Collection ) } or { @ link # withSyntaxTokens ( java .... | if ( this . syntaxTokens == null ) { setSyntaxTokens ( new java . util . ArrayList < SyntaxToken > ( syntaxTokens . length ) ) ; } for ( SyntaxToken ele : syntaxTokens ) { this . syntaxTokens . add ( ele ) ; } return this ; |
public class BBR { /** * Gets the tentative update & delta ; < sub > vj < / sub >
* @ param columnMajor the column major vector array . May be null if using
* the implicit bias term
* @ param j the column to work on
* @ param w _ j the value of the coefficient , used only under Gaussian prior
* @ param y the ... | double numer = 0 , denom = 0 ; if ( columnMajor != null ) { Vec col_j = columnMajor [ j ] ; if ( col_j . nnz ( ) == 0 ) return 0 ; for ( IndexValue iv : col_j ) { final double x_ij = iv . getValue ( ) ; final int i = iv . getIndex ( ) ; numer += x_ij * y [ i ] / ( 1 + exp ( r [ i ] ) ) ; denom += x_ij * x_ij * F ( r [ ... |
public class AbstractWebApplicationServiceResponseBuilder { /** * Build redirect .
* @ param service the service
* @ param parameters the parameters
* @ return the response */
protected Response buildRedirect ( final WebApplicationService service , final Map < String , String > parameters ) { } } | return DefaultResponse . getRedirectResponse ( service . getOriginalUrl ( ) , parameters ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.