signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class SelectorThread { /** * ( non - Javadoc )
* @ see java . lang . Runnable # run ( ) */
@ Override public void run ( ) { } } | if ( logger . isInfoEnabled ( ) ) { logger . info ( String . format ( "SelectorThread for Management=%s started." , this . management . getName ( ) ) ) ; } while ( this . started ) { try { FastList < ChangeRequest > pendingChanges = this . management . getPendingChanges ( ) ; // Process any pending changes
synchronized... |
public class ReceivedMessageRequestInfo { /** * Return the completion time for this request .
* - 1 means infinite */
public long getCompletionTime ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getCompletionTime" ) ; long completionTime = - 1 ; // only calculate if the timeout is not infinite
long timeOut = getTimeout ( ) ; if ( timeOut != SIMPConstants . INFINITE_TIMEOUT ) { completionTime = getIssueTime ( ) + ti... |
public class ElementImpl { /** * { @ inheritDoc } */
@ Override public boolean isDefaultNamespace ( String namespaceURI ) { } } | String namespace = this . getNamespaceURI ( ) ; String prefix = this . getPrefix ( ) ; if ( prefix == null || prefix . length ( ) == 0 ) { if ( namespaceURI == null ) { return ( namespace == namespaceURI ) ; } return namespaceURI . equals ( namespace ) ; } if ( this . hasAttributes ( ) ) { Attr attr = this . getAttribu... |
public class EventCheckActivity { /** * Method that executes the logic based on the work */
public void execute ( ) throws ActivityException { } } | EventWaitInstance received = registerWaitEvents ( false , true ) ; if ( received != null ) { setReturnCodeAndExitStatus ( received . getCompletionCode ( ) ) ; processMessage ( getExternalEventInstanceDetails ( received . getMessageDocumentId ( ) ) ) ; boolean toFinish = handleCompletionCode ( ) ; if ( toFinish && exitS... |
public class PathManagerService { /** * Removes any { @ code Service < String > } for the given path .
* @ param operationContext the operation context associated with the management operation making this request . Cannot be { @ code null }
* @ param pathName the name of the relevant path . Cannot be { @ code null ... | final ServiceController < ? > serviceController = operationContext . getServiceRegistry ( true ) . getService ( AbstractPathService . pathNameOf ( pathName ) ) ; if ( serviceController != null ) { operationContext . removeService ( serviceController ) ; } |
public class SerializerFactory { /** * Returns the serializer for a class .
* @ param cl the class of the object that needs to be serialized .
* @ return a serializer object for the serialization . */
public Serializer getSerializer ( Class cl ) throws HessianProtocolException { } } | Serializer serializer ; serializer = ( Serializer ) _cachedSerializerMap . get ( cl ) ; if ( serializer != null ) { return serializer ; } serializer = loadSerializer ( cl ) ; _cachedSerializerMap . put ( cl , serializer ) ; return serializer ; |
public class Levenshtein { /** * Searches the given collection of strings and returns a collection of at
* most < code > n < / code > strings that have the lowest Levenshtein distance
* to a given string < code > t < / code > . The returned collection will be
* sorted according to the distance with the string wit... | LinkedList < Item < T > > result = new LinkedList < > ( ) ; for ( T s : ss ) { int d = StringUtils . getLevenshteinDistance ( s , t ) ; if ( d < threshold ) { result . offer ( new Item < > ( s , d ) ) ; if ( result . size ( ) > n + 10 ) { // resort , but not too often
Collections . sort ( result ) ; while ( result . si... |
public class TransitionFactory { /** * Add a builder for a VM .
* Every builder that supports the same transition will be replaced .
* @ param b the builder to add */
public void add ( VMTransitionBuilder b ) { } } | Map < VMState , VMTransitionBuilder > m = vmAMB2 . get ( b . getDestinationState ( ) ) ; for ( VMState src : b . getSourceStates ( ) ) { m . put ( src , b ) ; } |
public class NanoHTTPD { /** * Start the server .
* @ throws IOException
* if the socket is in use . */
public void start ( ) throws IOException { } } | myServerSocket = new ServerSocket ( ) ; myServerSocket . bind ( ( hostname != null ) ? new InetSocketAddress ( hostname , myPort ) : new InetSocketAddress ( myPort ) ) ; myThread = new Thread ( new Runnable ( ) { @ Override public void run ( ) { do { try { final Socket finalAccept = myServerSocket . accept ( ) ; regist... |
public class KeyBundle { /** * The key identifier .
* @ return identifier for the key */
public KeyIdentifier keyIdentifier ( ) { } } | if ( key ( ) == null || key ( ) . kid ( ) == null || key ( ) . kid ( ) . length ( ) == 0 ) { return null ; } return new KeyIdentifier ( key ( ) . kid ( ) ) ; |
public class CharArrayList { /** * Unwraps an iterator into an array starting at a given offset for a given number of elements .
* < br > This method iterates over the given type - specific iterator and stores the elements returned , up to a maximum of < code > length < / code > , in the given array starting at < cod... | int j = array . length , offset = 0 ; while ( j -- != 0 && i . hasNext ( ) ) array [ offset ++ ] = i . next ( ) ; return array . length - j - 1 ; |
public class PartialResponseWriter { /** * { @ inheritDoc } */
@ Override public void endDocument ( ) throws IOException { } } | if ( hasChanges ) { // Close the < insert > element , if any .
// error close the last op if any
endInsert ( ) ; _wrapped . endElement ( "changes" ) ; hasChanges = false ; } _wrapped . endElement ( "partial-response" ) ; |
public class HelloWorldClient { /** * Say hello to server . */
public void greet ( String name ) { } } | logger . info ( "Will try to greet " + name + " ..." ) ; HelloRequest request = HelloRequest . newBuilder ( ) . setName ( name ) . build ( ) ; HelloReply response ; try { response = blockingStub . sayHello ( request ) ; } catch ( StatusRuntimeException e ) { logger . log ( Level . WARNING , "RPC failed: {0}" , e . getS... |
public class MultiLevelIterator { /** * Advance the iterator stack to the next item or return false if there are
* none left .
* If this function returns true , then there are { @ code depth } iterators in
* the iterator stack and { @ code hasNext ( ) } is true for the last iterator .
* If this function returns... | // done when there are depth iterators and the last iterator has an item
while ( iterators . size ( ) < depth || ! iterators . getLast ( ) . hasNext ( ) ) { // each iteration : add an iterator for the next level from the current
// last iterator , or remove the last iterator because it is empty
if ( iterators . getLast... |
public class EqualsRule { /** * { @ inheritDoc } */
public boolean evaluate ( final LoggingEvent event , Map matches ) { } } | Object p2 = RESOLVER . getValue ( field , event ) ; boolean result = ( p2 != null ) && p2 . toString ( ) . equals ( value ) ; if ( result && matches != null ) { Set entries = ( Set ) matches . get ( field . toUpperCase ( ) ) ; if ( entries == null ) { entries = new HashSet ( ) ; matches . put ( field . toUpperCase ( ) ... |
public class TimePickerSettings { /** * generatePotentialMenuTimes , This will generate a list of menu times for populating the combo
* box menu , using a TimePickerSettings . TimeIncrement value . The menu times will always start at
* Midnight , and increase according to the increment until the last time before 11... | // If either bounding time does does not already exist , then set it to the maximum range .
LocalTime startTime = ( optionalStartTime == null ) ? LocalTime . MIN : optionalStartTime ; LocalTime endTime = ( optionalEndTime == null ) ? LocalTime . MAX : optionalEndTime ; // Initialize our needed variables .
potentialMenu... |
public class ARCReader { /** * Skip over any trailing new lines at end of the record so we ' re lined up
* ready to read the next .
* @ param record
* @ throws IOException */
protected void gotoEOR ( ArchiveRecord record ) throws IOException { } } | if ( getIn ( ) . available ( ) <= 0 ) { return ; } // Remove any trailing LINE _ SEPARATOR
int c = - 1 ; while ( getIn ( ) . available ( ) > 0 ) { if ( getIn ( ) . markSupported ( ) ) { getIn ( ) . mark ( 1 ) ; } c = getIn ( ) . read ( ) ; if ( c != - 1 ) { if ( c == LINE_SEPARATOR ) { continue ; } if ( getIn ( ) . mar... |
public class PolicyTypeDescription { /** * The description of the policy attributes associated with the policies defined by Elastic Load Balancing .
* @ return The description of the policy attributes associated with the policies defined by Elastic Load Balancing . */
public java . util . List < PolicyAttributeTypeDe... | if ( policyAttributeTypeDescriptions == null ) { policyAttributeTypeDescriptions = new com . amazonaws . internal . SdkInternalList < PolicyAttributeTypeDescription > ( ) ; } return policyAttributeTypeDescriptions ; |
public class CreateDiskRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreateDiskRequest createDiskRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( createDiskRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createDiskRequest . getDiskName ( ) , DISKNAME_BINDING ) ; protocolMarshaller . marshall ( createDiskRequest . getAvailabilityZone ( ) , AVAILABILITYZONE_BINDING ) ; p... |
public class A_CmsToolbarListMenuButton { /** * Updates the dialog size according to the current tab content . < p > */
public void updateSize ( ) { } } | int width = CmsToolbarPopup . getAvailableWidth ( ) ; getPopup ( ) . setWidth ( width ) ; CmsListTab tab = m_tabs . getWidget ( m_tabs . getSelectedIndex ( ) ) ; tab . truncate ( TM_LITST_MENU , width ) ; int availableHeight = CmsToolbarPopup . getAvailableHeight ( ) ; int requiredHeight = tab . getRequiredHeight ( ) +... |
public class Form { /** * Write a hidden field for a paramter
* @ param paramName The name of the parameter
* @ param paramValue The value of the paramter
* @ param results The InternalStringBuilder to append the result to
* @ param req THe servlet request */
private void writeHiddenParam ( String paramName , S... | // put each hidden on a new line
if ( newLine ) results . append ( "\n" ) ; // create the state
_hiddenState . clear ( ) ; _hiddenState . name = paramName ; _hiddenState . value = paramValue ; TagRenderingBase hiddenTag = TagRenderingBase . Factory . getRendering ( TagRenderingBase . INPUT_HIDDEN_TAG , req ) ; hiddenTa... |
public class WhileyFileParser { /** * Determine whether or not the given type can be parsed as an expression .
* In many cases , a type can ( e . g . < code > { x } < / code > is both a valid type and
* expression ) . However , some types are not also expressions ( e . g .
* < code > int < / code > , < code > { i... | if ( type instanceof Type . Primitive ) { // All primitive types must be parsed as types , since their
// identifiers are keywords .
return true ; } else if ( type instanceof Type . Record ) { // Record types must be parsed as types , since e . g . { int f } is not a
// valid expression .
return true ; } else if ( type... |
public class AudioFactory { /** * Add a supported audio format .
* @ param format The supported format ( must not be < code > null < / code > ) .
* @ throws LionEngineException If invalid argument or format already exists . */
public static synchronized void addFormat ( AudioFormat format ) { } } | Check . notNull ( format ) ; for ( final String current : format . getFormats ( ) ) { if ( FACTORIES . put ( current , format ) != null ) { throw new LionEngineException ( ERROR_EXISTS + current ) ; } } |
public class DescribeFileSystemsResult { /** * An array of file system descriptions .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setFileSystems ( java . util . Collection ) } or { @ link # withFileSystems ( java . util . Collection ) } if you want to
*... | if ( this . fileSystems == null ) { setFileSystems ( new java . util . ArrayList < FileSystem > ( fileSystems . length ) ) ; } for ( FileSystem ele : fileSystems ) { this . fileSystems . add ( ele ) ; } return this ; |
public class FragmentManager { /** * This method clears the trace fragment builder for the
* current thread of execution . */
public void clear ( ) { } } | int currentCount = threadCounter . decrementAndGet ( ) ; if ( log . isLoggable ( Level . FINEST ) ) { log . finest ( "Clear: Disassociate Thread from FragmentBuilder(1): current thread count=" + currentCount ) ; synchronized ( threadNames ) { threadNames . remove ( Thread . currentThread ( ) . getName ( ) ) ; } } Fragm... |
public class GeneralVarTagBinding { /** * 按照标签申明的变量名字来绑定 , 建议使用binds方法 , 因为此方法是按照顺序绑定
* @ param name
* @ param value */
@ Deprecated public void bind ( String name , Object value ) { } } | if ( name2Index == null ) { throw new RuntimeException ( "申明的绑定和代码里实际绑定不一致" ) ; } Integer index = name2Index . get ( name ) ; if ( index == null ) { throw new RuntimeException ( "申明的绑定和代码里实际绑定不一致:试图绑定未申明的变量" + name ) ; } ctx . vars [ index ] = value ; |
public class SheetOfPaperRaw { /** * ( non - Javadoc )
* @ see com . sporniket . libre . ui . swing . paper . SheetOfPaper # setHeight ( int ) */
public void setHeight ( int height ) { } } | if ( 1 > height ) { String _message = "The specified height ({0}) is incorrect, it must be greater or equal than 1." ; Object [ ] _parameters = { new Integer ( height ) } ; throw new IllegalArgumentException ( MessageFormat . format ( _message , _parameters ) ) ; } myHeight = height ; |
public class CacheSetUtil { /** * retrial the cached set
* @ param key key
* @ return the value set */
public static Single < Set < String > > values ( String key ) { } } | return values ( CacheService . CACHE_CONFIG_BEAN , key ) ; |
public class Node { /** * Update the configuration with the contents of the new { @ link Form } .
* @ param submitForm
* @ throws XMPPErrorException
* @ throws NoResponseException
* @ throws NotConnectedException
* @ throws InterruptedException */
public void sendConfigurationForm ( Form submitForm ) throws N... | PubSub packet = createPubsubPacket ( Type . set , new FormNode ( FormNodeType . CONFIGURE_OWNER , getId ( ) , submitForm ) ) ; pubSubManager . getConnection ( ) . createStanzaCollectorAndSend ( packet ) . nextResultOrThrow ( ) ; |
public class LdapServices { /** * Get a { @ link Map } of { @ link ILdapServer } instances from the spring configuration .
* @ return A { @ link Map } of { @ link ILdapServer } instances . */
@ SuppressWarnings ( "unchecked" ) public static Map < String , ILdapServer > getLdapServerMap ( ) { } } | final ApplicationContext applicationContext = PortalApplicationContextLocator . getApplicationContext ( ) ; final Map < String , ILdapServer > ldapServers = applicationContext . getBeansOfType ( ILdapServer . class ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Found Map of ILdapServers=" + ldapServers + "'" ) ; ... |
public class WebFragmentTypeImpl { /** * Returns all < code > ejb - local - ref < / code > elements
* @ return list of < code > ejb - local - ref < / code > */
public List < EjbLocalRefType < WebFragmentType < T > > > getAllEjbLocalRef ( ) { } } | List < EjbLocalRefType < WebFragmentType < T > > > list = new ArrayList < EjbLocalRefType < WebFragmentType < T > > > ( ) ; List < Node > nodeList = childNode . get ( "ejb-local-ref" ) ; for ( Node node : nodeList ) { EjbLocalRefType < WebFragmentType < T > > type = new EjbLocalRefTypeImpl < WebFragmentType < T > > ( t... |
public class ObjectWritable { /** * Read a { @ link Writable } , { @ link String } , primitive type , or an array of
* the preceding . */
@ SuppressWarnings ( "unchecked" ) public static Object readObject ( DataInput in , ObjectWritable objectWritable , Configuration conf ) throws IOException { } } | String className = UTF8 . readString ( in ) ; // fast processing of ShortVoid
if ( FastWritableRegister . isVoidType ( className ) ) { setObjectWritable ( objectWritable , ShortVoid . class , ShortVoid . instance ) ; return ShortVoid . instance ; } // handle fast writable objects first
FastWritable fwInstance = FastWri... |
public class DisruptorForCommandFactory { /** * one event one EventDisruptor
* @ param topic
* @ return */
public Disruptor createDisruptor ( String topic ) { } } | Disruptor disruptor = createDisruptorWithEventHandler ( topic ) ; if ( disruptor != null ) disruptor . start ( ) ; return disruptor ; |
public class DescribeComputeEnvironmentsResult { /** * The list of compute environments .
* @ param computeEnvironments
* The list of compute environments . */
public void setComputeEnvironments ( java . util . Collection < ComputeEnvironmentDetail > computeEnvironments ) { } } | if ( computeEnvironments == null ) { this . computeEnvironments = null ; return ; } this . computeEnvironments = new java . util . ArrayList < ComputeEnvironmentDetail > ( computeEnvironments ) ; |
public class Cooccurrence { /** * getter for confidence - gets To which degree we are confident about this being a true co - occurrence
* @ generated
* @ return value of the feature */
public float getConfidence ( ) { } } | if ( Cooccurrence_Type . featOkTst && ( ( Cooccurrence_Type ) jcasType ) . casFeat_confidence == null ) jcasType . jcas . throwFeatMissing ( "confidence" , "ch.epfl.bbp.uima.types.Cooccurrence" ) ; return jcasType . ll_cas . ll_getFloatValue ( addr , ( ( Cooccurrence_Type ) jcasType ) . casFeatCode_confidence ) ; |
public class InputStreamReaderSource { /** * Returns a new Reader on the underlying source object . */
public Reader getReader ( ) throws IOException { } } | if ( stream != null ) { Reader reader = new InputStreamReader ( stream , configuration . getSourceEncoding ( ) ) ; stream = null ; return reader ; } return null ; |
public class AOStream { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . gd . Stream # getStateStream ( ) */
public StateStream getStateStream ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getStateStream" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getStateStream" , stream ) ; return stream ; |
public class StringSupport { /** * tells whether all characters in a String are letters or digits or part of a given String
* @ param inString to evaluate
* @ param chars characters which are allowed in the given String */
public static boolean isAlphaNumericOrContainsOnlyCharacters ( String in , String chars ) { }... | char c = 0 ; for ( int i = 0 ; i < in . length ( ) ; i ++ ) { c = in . charAt ( i ) ; if ( Character . isLetterOrDigit ( c ) == ( chars . indexOf ( c ) != - 1 ) ) { return false ; } } return true ; |
public class JavadocFixTool { /** * Main procedure - proceed with the searching and / or fixing depending on
* the command line parameters
* @ param name Path to the document root */
public void proceed ( String name ) { } } | try { File folder = new File ( name ) ; if ( folder . exists ( ) && folder . isDirectory ( ) && folder . canRead ( ) ) { searchAndPatch ( folder ) ; } else { System . err . println ( "Invalid folder in parameter \"" + name + "\"" ) ; printUsage ( System . err ) ; } } catch ( Exception ignored ) { } // Die silently |
public class PiwikRequest { /** * Get the url encoded query string represented by this object .
* @ return the url encoded query string represented by this object */
public String getUrlEncodedQueryString ( ) { } } | StringBuilder sb = new StringBuilder ( ) ; for ( Entry < String , Object > parameter : parameters . entrySet ( ) ) { if ( sb . length ( ) > 0 ) { sb . append ( "&" ) ; } try { StringBuilder sb2 = new StringBuilder ( ) ; sb2 . append ( parameter . getKey ( ) ) ; sb2 . append ( "=" ) ; sb2 . append ( URLEncoder . encode ... |
public class TrivialSwap { /** * Swap all the elements of two lists at the same position . The run time of this method
* depends on the implementation of the lists since elements are removed and added in the
* lists .
* @ param < E > the type of elements in this list .
* @ param list1 one of the lists that will... | TrivialSwap . swap ( list1 , index , list2 , index ) ; |
public class CommerceTaxFixedRatePersistenceImpl { /** * Returns the commerce tax fixed rate with the primary key or throws a { @ link com . liferay . portal . kernel . exception . NoSuchModelException } if it could not be found .
* @ param primaryKey the primary key of the commerce tax fixed rate
* @ return the co... | CommerceTaxFixedRate commerceTaxFixedRate = fetchByPrimaryKey ( primaryKey ) ; if ( commerceTaxFixedRate == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchTaxFixedRateException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return co... |
public class AbstractPendingLinkingCandidate { /** * Returns the mapping of type parameters to their bound arguments .
* @ see # initializeTypeParameterMapping ( ) */
@ Override protected Map < JvmTypeParameter , LightweightMergedBoundTypeArgument > getTypeParameterMapping ( ) { } } | if ( typeParameterMapping == null ) { typeParameterMapping = initializeTypeParameterMapping ( ) ; } return typeParameterMapping ; |
public class FunctionList { /** * / * internal */
FunctionList filter ( Filter f ) { } } | List < Function > r = new ArrayList < Function > ( ) ; for ( Function m : functions ) if ( f . keep ( m ) ) r . add ( m ) ; return new FunctionList ( r . toArray ( new Function [ 0 ] ) ) ; |
public class RserverConf { /** * used for windows multi - session emulation . Incremented at each new Rscript instance . */
public static boolean isPortAvailable ( int p ) { } } | try { ServerSocket test = new ServerSocket ( p ) ; test . close ( ) ; } catch ( BindException e ) { return false ; } catch ( IOException e ) { return false ; } return true ; |
public class Matrix4f { /** * Apply an arcball view transformation to this matrix with the given < code > radius < / code > and center < code > ( centerX , centerY , centerZ ) < / code >
* position of the arcball and the specified X and Y rotation angles .
* This method is equivalent to calling : < code > translate... | return arcball ( radius , centerX , centerY , centerZ , angleX , angleY , thisOrNew ( ) ) ; |
public class BlockType { /** * Make this object an exact duplicate of given object .
* @ param other
* the other BlockType object */
public void copyFrom ( BlockType other ) { } } | this . isValid = other . isValid ; this . isTop = other . isTop ; if ( isValid ) { this . depth = other . depth ; this . clear ( ) ; this . or ( other ) ; } |
public class UtlReflection { /** * < p > Retrieve setter from given class by field name . < / p >
* @ param pClazz - class
* @ param pFieldName - field name
* @ return Method setter .
* @ throws Exception if method not exist */
@ Override public final Method retrieveSetterForField ( final Class < ? > pClazz , f... | String setterName = "set" + pFieldName . substring ( 0 , 1 ) . toUpperCase ( ) + pFieldName . substring ( 1 ) ; return retrieveMethod ( pClazz , setterName ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcTimeSeriesSchedule ( ) { } } | if ( ifcTimeSeriesScheduleEClass == null ) { ifcTimeSeriesScheduleEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 615 ) ; } return ifcTimeSeriesScheduleEClass ; |
public class Ghprb { /** * Checks for skip pattern in the passed string
* @ param patterns The map of Patter to String values
* @ param string The string we ' re looking for the phrase in
* @ return the skip value or null if we don ' t find it */
private String checkSkipBuildInString ( Map < Pattern , String > pa... | // check for skip build phrase in the passed string
if ( ! patterns . isEmpty ( ) && StringUtils . isNotBlank ( string ) ) { for ( Map . Entry < Pattern , String > e : patterns . entrySet ( ) ) { if ( e . getKey ( ) . matcher ( string ) . matches ( ) ) { return e . getValue ( ) ; } } } return null ; |
public class DatabaseInformationMain { /** * Retrieves the system table corresponding to the specified
* tableIndex value . < p >
* @ param tableIndex int value identifying the system table to generate
* @ return the system table corresponding to the specified tableIndex value */
protected Table generateTable ( i... | Table t = sysTables [ tableIndex ] ; // Please note that this class produces non - null tables for
// just those absolutely essential to the JDBC 1 spec and the
// HSQLDB core . Also , all table producing methods except
// SYSTEM _ PROCEDURES ( ) and SYSTEM _ PROCEDURECOLUMNS ( ) are declared final ;
// this class prod... |
public class JobsImpl { /** * Lists the jobs that have been created under the specified job schedule .
* @ param jobScheduleId The ID of the job schedule from which you want to get a list of jobs .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ throws BatchErrorException thrown i... | ServiceResponseWithHeaders < Page < CloudJob > , JobListFromJobScheduleHeaders > response = listFromJobScheduleSinglePageAsync ( jobScheduleId ) . toBlocking ( ) . single ( ) ; return new PagedList < CloudJob > ( response . body ( ) ) { @ Override public Page < CloudJob > nextPage ( String nextPageLink ) { return listF... |
public class RESTRequest { /** * Convenience method that gets the { @ link TableDefinition } of the table defined by
* the decoded " { table } " variable in the current request from the given application
* definition . If the given table is not found , an IllegalArgumentException is thrown
* so the REST API can t... | assert appDef != null ; String table = getVariableDecoded ( "table" ) ; if ( Utils . isEmpty ( table ) ) { throw new RuntimeException ( "Missing {table} variable" ) ; } TableDefinition tableDef = m_appDef . getTableDef ( table ) ; if ( tableDef == null ) { throw new IllegalArgumentException ( "Unknown table for applica... |
public class MultipartParser { /** * Read the next part arriving in the stream . Will be either a
* < code > FilePart < / code > or a < code > ParamPart < / code > , or < code > null < / code >
* to indicate there are no more parts to read . The order of arrival
* corresponds to the order of the form elements in ... | // Make sure the last file was entirely read from the input
if ( lastFilePart != null ) { lastFilePart . getInputStream ( ) . close ( ) ; lastFilePart = null ; } // Read the headers ; they look like this ( not all may be present ) :
// Content - Disposition : form - data ; name = " field1 " ; filename = " file1 . txt "... |
public class WebhooksInner { /** * Triggers a ping event to be sent to the webhook .
* @ param resourceGroupName The name of the resource group to which the container registry belongs .
* @ param registryName The name of the container registry .
* @ param webhookName The name of the webhook .
* @ throws Illegal... | if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( registr... |
public class AnnotatedMethodFilter { /** * { @ inheritDoc } */
public boolean match ( MetadataReader metadataReader , MetadataReaderFactory metadataReaderFactory ) throws IOException { } } | AnnotationMetadata annotationMetadata = metadataReader . getAnnotationMetadata ( ) ; Set < MethodMetadata > annotatedMethods = annotationMetadata . getAnnotatedMethods ( annotatedClass . getCanonicalName ( ) ) ; return ! annotatedMethods . isEmpty ( ) ; |
public class Execution { /** * Adds the deferred publisher if its needed at the end of the query . This is also a good time for the deferred code to start running */
private CompletableFuture < ExecutionResult > deferSupport ( ExecutionContext executionContext , CompletableFuture < ExecutionResult > result ) { } } | return result . thenApply ( er -> { DeferSupport deferSupport = executionContext . getDeferSupport ( ) ; if ( deferSupport . isDeferDetected ( ) ) { // we start the rest of the query now to maximize throughput . We have the initial important results
// and now we can start the rest of the calls as early as possible ( e... |
public class DescribeEventDetailsResult { /** * Error messages for any events that could not be retrieved .
* @ param failedSet
* Error messages for any events that could not be retrieved . */
public void setFailedSet ( java . util . Collection < EventDetailsErrorItem > failedSet ) { } } | if ( failedSet == null ) { this . failedSet = null ; return ; } this . failedSet = new java . util . ArrayList < EventDetailsErrorItem > ( failedSet ) ; |
public class Typeahead { /** * Triggered when the query is autocompleted . Autocompleted means the query was changed to the hint .
* @ param event the event
* @ param suggestion the suggestion object */
private void onAutoCompleted ( final Event event , final Suggestion < T > suggestion ) { } } | TypeaheadAutoCompletedEvent . fire ( this , suggestion , event ) ; |
public class Light4jHttpClientProvider { /** * Create instances of " io . undertow . client . http . HttpClientConnection " using reflections */
private ClientConnection createHttpClientConnection ( final StreamConnection connection , final OptionMap options , final ByteBufferPool bufferPool ) { } } | try { Class < ? > cls = Class . forName ( "io.undertow.client.http.HttpClientConnection" ) ; Constructor < ? > o = cls . getDeclaredConstructor ( StreamConnection . class , OptionMap . class , ByteBufferPool . class ) ; o . setAccessible ( true ) ; return ( ClientConnection ) o . newInstance ( connection , options , bu... |
public class FNDImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setMaxHSize ( Integer newMaxHSize ) { } } | Integer oldMaxHSize = maxHSize ; maxHSize = newMaxHSize ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . FND__MAX_HSIZE , oldMaxHSize , maxHSize ) ) ; |
public class ManualDescriptor { /** * getter for geneSymbolList - gets GeneSymbolList in PubMed
* @ generated
* @ return value of the feature */
public StringArray getGeneSymbolList ( ) { } } | if ( ManualDescriptor_Type . featOkTst && ( ( ManualDescriptor_Type ) jcasType ) . casFeat_geneSymbolList == null ) jcasType . jcas . throwFeatMissing ( "geneSymbolList" , "de.julielab.jules.types.pubmed.ManualDescriptor" ) ; return ( StringArray ) ( jcasType . ll_cas . ll_getFSForRef ( jcasType . ll_cas . ll_getRefVal... |
public class SharedTreeSubgraph { /** * Make the left child of a node .
* @ param parent Parent node
* @ return The new child node */
public SharedTreeNode makeLeftChildNode ( SharedTreeNode parent ) { } } | SharedTreeNode child = new SharedTreeNode ( nodesArray . size ( ) , parent , subgraphNumber , parent . getDepth ( ) + 1 ) ; nodesArray . add ( child ) ; makeLeftEdge ( parent , child ) ; return child ; |
public class CmsResourceBuilder { /** * Builds the resource .
* @ return the cms resource */
public CmsResource buildResource ( ) { } } | return new CmsResource ( m_structureId , m_resourceId , m_rootPath , m_type , m_flags , m_projectLastModified , m_state , m_dateCreated , m_userCreated , m_dateLastModified , m_userLastModified , m_dateReleased , m_dateExpired , m_length , m_flags , m_dateContent , m_version ) ; |
public class cachecontentgroup { /** * Use this API to fetch cachecontentgroup resource of given name . */
public static cachecontentgroup get ( nitro_service service , String name ) throws Exception { } } | cachecontentgroup obj = new cachecontentgroup ( ) ; obj . set_name ( name ) ; cachecontentgroup response = ( cachecontentgroup ) obj . get_resource ( service ) ; return response ; |
public class OptionGroup { /** * Indicates what options are available in the option group .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setOptions ( java . util . Collection ) } or { @ link # withOptions ( java . util . Collection ) } if you want to overr... | if ( this . options == null ) { setOptions ( new com . amazonaws . internal . SdkInternalList < Option > ( options . length ) ) ; } for ( Option ele : options ) { this . options . add ( ele ) ; } return this ; |
public class CoverageDataPng { /** * Get the coverage data value
* @ param griddedTile
* gridded tile
* @ param raster
* image raster
* @ param x
* x coordinate
* @ param y
* y coordinate
* @ return coverage data value */
public Double getValue ( GriddedTile griddedTile , WritableRaster raster , int x... | short pixelValue = getPixelValue ( raster , x , y ) ; Double value = getValue ( griddedTile , pixelValue ) ; return value ; |
public class Organizer { /** * Copy data from object to object
* @ param aFrom
* the object to copy from
* @ param aTo
* the object to copy to */
@ SuppressWarnings ( { } } | "unchecked" , "rawtypes" } ) public static void makeCopies ( Collection < Copier > aFrom , Collection < Copier > aTo ) { if ( aFrom == null || aTo == null ) return ; List < Copier > fromList = new ArrayList < Copier > ( aFrom ) ; List < Copier > toList = new ArrayList < Copier > ( aTo ) ; Collections . sort ( ( List ) ... |
public class AssertKripton { /** * Assert true or invalid method sign exception .
* @ param expression
* the expression
* @ param method
* the method
* @ param messageFormat
* the message format
* @ param args
* the args */
public static void assertTrueOrInvalidMethodSignException ( boolean expression ,... | if ( ! expression ) throw ( new InvalidMethodSignException ( method , String . format ( messageFormat , args ) ) ) ; |
public class CacheEntry { protected void returnToPool ( ) { } } | CacheEntryPool cep = cacheEntryPool ; // An assertion failure here means this CE is being
// returned to the pool while in use and this
// should never be the case ;
assert refCount . get ( ) == 0 ; if ( lruHead != null ) lruHead . remove ( this ) ; reset ( ) ; cep . add ( this ) ; |
public class ConvergedServletContextImpl { /** * Executes the method of the specified < code > ApplicationContext < / code >
* @ param method The method object to be invoked .
* @ param context The AppliationContext object on which the method will be invoked
* @ param params The arguments passed to the called met... | if ( SecurityUtil . isPackageProtectionEnabled ( ) ) { return AccessController . doPrivileged ( new PrivilegedExceptionAction < Object > ( ) { public Object run ( ) throws IllegalAccessException , InvocationTargetException { return method . invoke ( context , params ) ; } } ) ; } else { return method . invoke ( context... |
public class MDAG { /** * Adds a string to the MDAG .
* @ param str the String to be added to the MDAG */
public void addString ( String str ) { } } | if ( sourceNode != null ) { addStringInternal ( str ) ; replaceOrRegister ( sourceNode , str ) ; } else { unSimplify ( ) ; addString ( str ) ; } |
public class BeanMetaData { /** * LI3408 */
private String getCacheReloadIntervalString ( ) { } } | String reload ; switch ( ivCacheReloadType ) { case CACHE_RELOAD_NONE : reload = "N/A" ; break ; case CACHE_RELOAD_INTERVAL : reload = "INTERVAL (" + ivCacheReloadInterval + ")" ; break ; case CACHE_RELOAD_DAILY : reload = "DAILY (" + ivCacheReloadInterval + ")" ; break ; case CACHE_RELOAD_WEEKLY : reload = "WEEKLY (" ... |
public class GeocodingApi { /** * Requests the street address of a { @ code location } .
* @ param context The { @ link GeoApiContext } to make requests through .
* @ param location The location to reverse geocode .
* @ return Returns the request , ready to run . */
public static GeocodingApiRequest reverseGeocod... | GeocodingApiRequest request = new GeocodingApiRequest ( context ) ; request . latlng ( location ) ; return request ; |
public class TerminalTextUtils { /** * Given a string and a character index inside that string , find out what the column index of that character would
* be if printed in a terminal . If the string only contains non - CJK characters then the returned value will be same
* as { @ code stringCharacterIndex } , but if ... | int index = 0 ; for ( int i = 0 ; i < stringCharacterIndex ; i ++ ) { if ( s . charAt ( i ) == '\t' ) { index += tabBehaviour . getTabReplacement ( firstCharacterColumnPosition ) . length ( ) ; } else { if ( isCharCJK ( s . charAt ( i ) ) ) { index ++ ; } index ++ ; } } return index ; |
public class AbstractDateCalculator { /** * move the current date by a given tenor , this means that if a date is
* either a ' weekend ' or holiday , it will be skipped acording to the holiday
* handler and not count towards the number of days to move .
* @ param tenor the tenor .
* @ param spotLag
* number o... | if ( tenor == null ) { throw new IllegalArgumentException ( "Tenor cannot be null" ) ; } TenorCode tenorCode = tenor . getCode ( ) ; if ( tenorCode != TenorCode . OVERNIGHT && tenorCode != TenorCode . TOM_NEXT /* & & spotLag ! = 0 */
) { // get to the Spot date first :
moveToSpotDate ( spotLag ) ; } int unit = tenor . ... |
public class BoundedBuffer { /** * Increases the expedited buffer ' s capacity by the given amount .
* @ param additionalCapacity
* The amount by which the expedited buffer ' s capacity should be increased . */
@ SuppressWarnings ( "unchecked" ) public synchronized void expandExpedited ( int additionalCapacity ) { ... | if ( additionalCapacity <= 0 ) { throw new IllegalArgumentException ( ) ; } int capacityBefore = expeditedBuffer . length ; synchronized ( lock ) { // D312598
int capacityAfter = expeditedBuffer . length ; // Check that no one was expanding while we waited on this lock
if ( capacityAfter == capacityBefore ) { final Obj... |
public class ManagedInstancesInner { /** * Creates or updates a managed instance .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param managedInstanceName The name of the managed instance .
... | return beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , managedInstanceName , parameters ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class AbstractSARLLaunchConfigurationDelegate { /** * Copied from JDT ' s super class , and patched for invoking
* { @ link # getOrComputeUnresolvedSARLRuntimeClasspath ( ILaunchConfiguration ) } .
* { @ inheritDoc } */
@ Override public String [ ] getBootpath ( ILaunchConfiguration configuration ) throws Co... | final String [ ] [ ] paths = getBootpathExt ( configuration ) ; final String [ ] pre = paths [ 0 ] ; final String [ ] main = paths [ 1 ] ; final String [ ] app = paths [ 2 ] ; if ( pre == null && main == null && app == null ) { // default
return null ; } IRuntimeClasspathEntry [ ] entries = getOrComputeUnresolvedSARLRu... |
public class CmsSearchField { /** * To allow sorting on a field the field must be added to the map given to { @ link org . apache . solr . uninverting . UninvertingReader # wrap ( org . apache . lucene . index . DirectoryReader , Map ) } .
* The method adds all default fields .
* @ param uninvertingMap the map to w... | uninvertingMap . put ( FIELD_CATEGORY , Type . SORTED ) ; uninvertingMap . put ( FIELD_CONTENT , Type . SORTED ) ; uninvertingMap . put ( FIELD_CONTENT_BLOB , Type . SORTED ) ; uninvertingMap . put ( FIELD_CONTENT_LOCALES , Type . SORTED ) ; uninvertingMap . put ( FIELD_DATE_CONTENT , Type . SORTED ) ; uninvertingMap .... |
public class HtmlDocument { /** * Returns the title of the page or null . */
@ Override public String getTitle ( ) { } } | HtmlElement title = htmlElements ( ) . find ( "title" ) ; return title != null ? title . getText ( ) : null ; |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcBoxedHalfSpace ( ) { } } | if ( ifcBoxedHalfSpaceEClass == null ) { ifcBoxedHalfSpaceEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 56 ) ; } return ifcBoxedHalfSpaceEClass ; |
public class Utils { /** * Replies a singleton list with the given element , or the empty list if
* the element is < code > null < / code > .
* @ param < T > the type of the element in the list .
* @ param element the element .
* @ return the list with the element , or the empty list . */
public static < T > Li... | if ( element == null ) { return Collections . emptyList ( ) ; } return Collections . singletonList ( element ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcElectricalBaseProperties ( ) { } } | if ( ifcElectricalBasePropertiesEClass == null ) { ifcElectricalBasePropertiesEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 193 ) ; } return ifcElectricalBasePropertiesEClass ; |
public class KerasCropping1D { /** * Get layer output type .
* @ param inputType Array of InputTypes
* @ return output type as InputType
* @ throws InvalidKerasConfigurationException Invalid Keras config */
@ Override public InputType getOutputType ( InputType ... inputType ) throws InvalidKerasConfigurationExcep... | if ( inputType . length > 1 ) throw new InvalidKerasConfigurationException ( "Keras Cropping layer accepts only one input (received " + inputType . length + ")" ) ; return this . getCropping1DLayer ( ) . getOutputType ( - 1 , inputType [ 0 ] ) ; |
public class SQLMultiScopeRecoveryLog { /** * Acquires ownership of the special row used in the HA locking
* scheme . There is sometimes a lag in peer recovery where an old
* server is closing down while a new server is opening the same
* log for peer recovery .
* @ exception SQLException thrown if a SQLExcepti... | if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "updateHADBLock" , new java . lang . Object [ ] { conn , lockingStmt , lockingRS , this } ) ; if ( lockingRS . next ( ) ) { // We found the HA Lock row
if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Acquired lock on HA Lock row" ) ; String storedServerName = lockingRS... |
public class Branch { /** * < p > This method should be called if you know that a different person is about to use the app . For example ,
* if you allow users to log out and let their friend use the app , you should call this to notify Branch
* to create a new user for this device . This will clear the first and l... | ServerRequest req = new ServerRequestLogout ( context_ , callback ) ; if ( ! req . constructError_ && ! req . handleErrors ( context_ ) ) { handleNewRequest ( req ) ; } |
public class CmsSchedulerConfiguration { /** * Adds a new job description for the scheduler . < p >
* @ param jobInfo the job description to add */
public void addJobFromConfiguration ( CmsScheduledJobInfo jobInfo ) { } } | m_configuredJobs . add ( jobInfo ) ; if ( CmsLog . INIT . isInfoEnabled ( ) ) { CmsLog . INIT . info ( Messages . get ( ) . getBundle ( ) . key ( Messages . INIT_SCHEDULER_CONFIG_JOB_3 , jobInfo . getJobName ( ) , jobInfo . getClassName ( ) , jobInfo . getContextInfo ( ) . getUserName ( ) ) ) ; } |
public class DomUtils { /** * HELPER METHOD TO PRINT A DOM TO STDOUT */
static public void displayNode ( Node node ) { } } | try { TransformerFactory TF = TransformerFactory . newInstance ( ) ; // Fortify Mod : disable external entity injection
TF . setFeature ( XMLConstants . FEATURE_SECURE_PROCESSING , true ) ; Transformer identity = TF . newTransformer ( ) ; // End Fortify Mod
identity . transform ( new DOMSource ( node ) , new StreamResu... |
public class PresenceNotifySender { /** * This method sends the given request to the subscriber . Knowledge of JAIN - SIP API headers is
* required . The request will be resent if challenged . Use this method only if you have previously
* called processSubscribe ( ) . Use this method if you don ' t care about check... | setErrorMessage ( "" ) ; synchronized ( dialogLock ) { if ( dialog == null ) { setErrorMessage ( "Can't send notify, haven't received a request" ) ; return false ; } try { phone . addAuthorizations ( ( ( CallIdHeader ) req . getHeader ( CallIdHeader . NAME ) ) . getCallId ( ) , req ) ; SipTransaction transaction = phon... |
public class TaxinvoiceServiceImp { /** * / * ( non - Javadoc )
* @ see com . popbill . api . TaxinvoiceService # registIssue ( java . lang . String , com . popbill . api . Taxinvoice , String , Boolean ) */
@ Override public IssueResponse registIssue ( String CorpNum , Taxinvoice taxinvoice , String Memo , Boolean F... | return registIssue ( CorpNum , taxinvoice , false , Memo , ForceIssue , null , null , null ) ; |
public class Files { /** * Copy the source { @ link File } to the target { @ link File } . */
public static void copy ( File source , File target ) throws IOException { } } | if ( ! source . exists ( ) ) { throw new FileNotFoundException ( "Source file not found:" + source . getAbsolutePath ( ) ) ; } if ( ! target . exists ( ) && ! target . getParentFile ( ) . exists ( ) && ! target . getParentFile ( ) . mkdirs ( ) ) { throw new IOException ( "Can't create target directory:" + target . getP... |
public class HtmlTool { /** * Finds a set of elements through a CSS selector and unwraps them .
* This allows removing elements without losing their contents .
* @ param root
* root element for the selection
* @ param selector
* CSS selector for the elements to unwrap */
public final void unwrap ( final Eleme... | final Iterable < Element > elements ; // Elements to unwrap
checkNotNull ( root , "Received a null pointer as root element" ) ; checkNotNull ( selector , "Received a null pointer as selector" ) ; // Selects and iterates over the elements
elements = root . select ( selector ) ; for ( final Element element : elements ) {... |
public class UniqueKeyGeneratorImpl { /** * Returns a unique value that is unique only to the current instance of the
* < code > UniqueKeyGenerator < / code >
* @ return A value which is unique to the current instance of the unique
* key generator */
public long getPerInstanceUniqueValue ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getPerInstanceUniqueValue" ) ; long retval ; synchronized ( _instanceUniqueLock ) { retval = _instanceUnique -- ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getPerInsta... |
public class EssentialNister5 { /** * Once z is known then x and y can be solved for using the B matrix */
private void solveForXandY ( double z ) { } } | this . z = z ; // solve for x and y using the first two rows of B
tmpA . data [ 0 ] = ( ( helper . K00 * z + helper . K01 ) * z + helper . K02 ) * z + helper . K03 ; tmpA . data [ 1 ] = ( ( helper . K04 * z + helper . K05 ) * z + helper . K06 ) * z + helper . K07 ; tmpY . data [ 0 ] = ( ( ( helper . K08 * z + helper . ... |
public class OsiamConnector { /** * Retrieve a list of the of all { @ link Group } resources saved in the OSIAM service . If you need to have all Group
* but the number is very large , this method can be slow . In this case you can also use Query . Builder with no filter
* to split the number of Groups returned
*... | return getGroupService ( ) . getAllGroups ( accessToken ) ; |
public class AbstractDescribableScriptPlugin { /** * Loads the plugin configuration values stored in project or framework properties , also
* @ param context execution context
* @ param localDataContext current context data
* @ param description plugin description
* @ param instanceData instance data
* @ para... | final PropertyResolver resolver = PropertyResolverFactory . createPluginRuntimeResolver ( context , instanceData , serviceName , getProvider ( ) . getName ( ) ) ; final Map < String , Object > config = PluginAdapterUtility . mapDescribedProperties ( resolver , description , PropertyScope . Instance ) ; // expand proper... |
public class DestinationDescriptionMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DestinationDescription destinationDescription , ProtocolMarshaller protocolMarshaller ) { } } | if ( destinationDescription == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( destinationDescription . getDestinationId ( ) , DESTINATIONID_BINDING ) ; protocolMarshaller . marshall ( destinationDescription . getS3DestinationDescription ( )... |
public class DescribeServicesRequest { /** * A list of services to describe . You may specify up to 10 services to describe in a single operation .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setServices ( java . util . Collection ) } or { @ link # withSe... | if ( this . services == null ) { setServices ( new com . amazonaws . internal . SdkInternalList < String > ( services . length ) ) ; } for ( String ele : services ) { this . services . add ( ele ) ; } return this ; |
public class LogSemiring { /** * ( non - Javadoc )
* @ see
* edu . cmu . sphinx . fst . weight . Semiring # plus ( edu . cmu . sphinx . fst . weight . float ,
* edu . cmu . sphinx . fst . weight . float ) */
@ Override public double plus ( double w1 , double w2 ) { } } | if ( ! isMember ( w1 ) || ! isMember ( w2 ) ) { return Double . NEGATIVE_INFINITY ; } if ( w1 == Double . POSITIVE_INFINITY ) { return w2 ; } else if ( w2 == Double . POSITIVE_INFINITY ) { return w1 ; } return ( double ) - Math . log ( Math . exp ( - w1 ) + Math . exp ( - w2 ) ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.