signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class Input { /** * Creates an InputReader * @ param input * @ param size Ringbuffer size * @ return * @ throws IOException */ protected static InputReader getInput ( InputSource input , int size , Charset cs , Set < ParserFeature > fea ) throws IOException { } }
EnumSet < ParserFeature > features = EnumSet . of ( UseInclude , UsePushback , UseModifiableCharset ) ; InputReader inputReader = null ; Reader reader = input . getCharacterStream ( ) ; if ( reader != null ) { inputReader = new ReadableInput ( getFeaturedReader ( reader , size , features ) , size , features ) ; } else ...
public class TimeBoundedStreamJoin { /** * Calculate the expiration time with the given operator time and relative window size . * @ param operatorTime the operator time * @ param relativeSize the relative window size * @ return the expiration time for cached rows */ private long calExpirationTime ( long operator...
if ( operatorTime < Long . MAX_VALUE ) { return operatorTime - relativeSize - allowedLateness - 1 ; } else { // When operatorTime = Long . MaxValue , it means the stream has reached the end . return Long . MAX_VALUE ; }
public class EmbeddedApacheDS { /** * Initialize some WIM specific attributes in the LDAP schema . * @ throws LdapException If there was a failure initialize the attributes . */ private void initWimAttributes ( ) throws LdapException { } }
Log . info ( c , "initWimAttributes" , "entry" ) ; /* * Initialize some branches to hold the attributes . */ Entry entry = newEntry ( "cn=ibm, ou=schema" ) ; entry . add ( "objectclass" , "metaSchema" ) ; entry . add ( "objectclass" , "top" ) ; entry . add ( "cn" , "ibm" ) ; add ( entry ) ; entry = newEntry ( "ou=attri...
public class CertificateExtensions { /** * helper routine */ private void init ( DerInputStream in ) throws IOException { } }
DerValue [ ] exts = in . getSequence ( 5 ) ; for ( int i = 0 ; i < exts . length ; i ++ ) { Extension ext = new Extension ( exts [ i ] ) ; parseExtension ( ext ) ; }
public class FullBackupJob { /** * { @ inheritDoc } */ public void init ( ManageableRepository repository , String workspaceName , BackupConfig config , Calendar timeStamp ) { } }
this . repository = repository ; this . workspaceName = workspaceName ; this . config = config ; this . timeStamp = timeStamp ; try { url = createStorage ( ) ; } catch ( FileNotFoundException e ) { LOG . error ( "Full backup initialization failed " , e ) ; notifyError ( "Full backup initialization failed " , e ) ; } ca...
public class BMPSet { /** * Span the initial substring for which each character c has spanCondition = = contains ( c ) . It must be * spanCondition = = 0 or 1. * @ param start The start index * @ param outCount If not null : Receives the number of code points in the span . * @ return the limit ( exclusive end )...
char c , c2 ; int i = start ; int limit = s . length ( ) ; int numSupplementary = 0 ; if ( SpanCondition . NOT_CONTAINED != spanCondition ) { // span while ( i < limit ) { c = s . charAt ( i ) ; if ( c <= 0xff ) { if ( ! latin1Contains [ c ] ) { break ; } } else if ( c <= 0x7ff ) { if ( ( table7FF [ c & 0x3f ] & ( 1 <<...
public class JMPath { /** * Gets child directory path stream . * @ param path the path * @ param filter the filter * @ return the child directory path stream */ public static Stream < Path > getChildDirectoryPathStream ( Path path , Predicate < Path > filter ) { } }
return getChildrenPathStream ( path ) . filter ( DirectoryAndNotSymbolicLinkFilter . and ( filter ) ) ;
public class JsApiHdrsImpl { /** * Get the Report PassCorrelId field from the message header . * Javadoc description supplied by the SIBusMessage interface . */ @ Override public final Boolean getReportPassCorrelId ( ) { } }
Boolean value = ( Boolean ) getApi ( ) . getField ( JsApiAccess . REPORTPASSCORRELID_VALUE ) ; return ( value == null ) ? Boolean . FALSE : value ;
public class TransportApiClient { /** * Gets a journey previously requested through the POST journey call . * @ param journeyId The id of the journey you want to get . Previously made in a POST journey call . * @ param exclude Entities to exclude from the call to reduce the payload . See https : / / developer . whe...
if ( Extensions . isNullOrWhiteSpace ( journeyId ) ) { throw new IllegalArgumentException ( "JourneyId is required." ) ; } return TransportApiClientCalls . getJourney ( tokenComponent , settings , journeyId , exclude ) ;
public class EventLoggerFactory { /** * open up for testing without a live MuleContext */ protected Object getCustomEventLoggerFromRegistry ( MuleContext muleContext ) { } }
Object obj = muleContext . getRegistry ( ) . lookupObject ( CUSTOM_EVENT_LOGGER_BEAN_NAME ) ; return obj ;
public class Queue { /** * Gets the next item from the queue blocking for no longer than * < code > maxwait < / code > milliseconds waiting for an item to be added * to the queue if it is empty at the time of invocation . */ public synchronized T get ( long maxwait ) { } }
if ( _count == 0 ) { try { wait ( maxwait ) ; } catch ( InterruptedException e ) { } // if count ' s still null when we pull out , we waited ourmaxwait time . if ( _count == 0 ) { return null ; } } return get ( ) ;
public class ListFiltersRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( ListFiltersRequest listFiltersRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( listFiltersRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listFiltersRequest . getDetectorId ( ) , DETECTORID_BINDING ) ; protocolMarshaller . marshall ( listFiltersRequest . getMaxResults ( ) , MAXRESULTS_BINDING ) ; protoc...
public class ServerManager { /** * Add a class to the server . * @ param tangoClass * The class name as defined in the tango database * @ param deviceClass * The class that define a device with { @ link Device } */ public void addClass ( final String tangoClass , final Class < ? > deviceClass ) { } }
lastClass = tangoClass ; tangoClasses . put ( tangoClass , deviceClass ) ;
public class ConfigProvider { /** * Returns a Provider for a configuration bean . This method should be used in Modules * that require access to configuration . * @ param < TYPE > The type of the Configuration bean . * @ param prefix The Config bean prefix , as referenced below ( may be null ) * @ param clazz T...
return new ConfigProvider < TYPE > ( prefix , clazz , null ) ;
public class CreateLoadBalancerTlsCertificateRequest { /** * An array of strings listing alternative domains and subdomains for your SSL / TLS certificate . Lightsail will * de - dupe the names for you . You can have a maximum of 9 alternative names ( in addition to the 1 primary domain ) . * We do not support wild...
if ( this . certificateAlternativeNames == null ) { setCertificateAlternativeNames ( new java . util . ArrayList < String > ( certificateAlternativeNames . length ) ) ; } for ( String ele : certificateAlternativeNames ) { this . certificateAlternativeNames . add ( ele ) ; } return this ;
public class BaseFFDCService { /** * This wrapper method for creating streams should be called while * synchronized on the targetFile . . * @ param targetFile * @ return * @ throws IOException */ private OutputStream createSummaryStream ( File targetFile ) throws IOException { } }
if ( targetFile == null ) return null ; TextFileOutputStreamFactory factory = FFDCConfigurator . getFileOutputStreamFactory ( ) ; OutputStream newStream = null ; // Creation and rolling of files should be done as the server Object token = ThreadIdentityManager . runAsServer ( ) ; try { newStream = factory . createOutpu...
public class ClustreamKernel { /** * See interface < code > Cluster < / code > * @ param point * @ return */ @ Override public double getInclusionProbability ( Instance instance ) { } }
// trivial cluster if ( N == 1 ) { double distance = 0.0 ; for ( int i = 0 ; i < LS . length ; i ++ ) { double d = LS [ i ] - instance . value ( i ) ; distance += d * d ; } distance = Math . sqrt ( distance ) ; if ( distance < EPSILON ) return 1.0 ; return 0.0 ; } else { double dist = calcNormalizedDistance ( instance ...
public class JBBPOut { /** * Output data externally . * @ param processor a processor which will get the stream to write data , must * not be null * @ param args optional arguments to be provided to the processor * @ return the DSL context * @ throws IOException it will be thrown for transport errors * @ th...
assertNotEnded ( ) ; JBBPUtils . assertNotNull ( processor , "Var processor must not be null" ) ; if ( this . processCommands ) { this . processCommands = processor . processVarOut ( this , this . outStream , args ) ; } return this ;
public class ExtendedListeningPoint { /** * Create a Contact Header based on the host , port and transport of this listening point * @ param usePublicAddress if true , the host will be the global ip address found by STUN otherwise * it will be the local network interface ipaddress * @ param displayName the displa...
try { // FIXME : the SIP URI can be cached to improve performance String host = null ; if ( outboundInterface != null ) { javax . sip . address . SipURI outboundInterfaceURI = ( javax . sip . address . SipURI ) SipFactoryImpl . addressFactory . createURI ( outboundInterface ) ; host = outboundInterfaceURI . getHost ( )...
public class TopicAdminClientSnippets { /** * Example of listing subscriptions for a topic . */ public ListTopicSubscriptionsPagedResponse listTopicSubscriptions ( String topicId ) throws Exception { } }
// [ START pubsub _ list _ topic _ subscriptions ] try ( TopicAdminClient topicAdminClient = TopicAdminClient . create ( ) ) { ProjectTopicName topicName = ProjectTopicName . of ( projectId , topicId ) ; ListTopicSubscriptionsRequest request = ListTopicSubscriptionsRequest . newBuilder ( ) . setTopic ( topicName . toSt...
public class AmazonEC2Client { /** * Describes the events for the specified EC2 Fleet during the specified time . * @ param describeFleetHistoryRequest * @ return Result of the DescribeFleetHistory operation returned by the service . * @ sample AmazonEC2 . DescribeFleetHistory * @ see < a href = " http : / / do...
request = beforeClientExecution ( request ) ; return executeDescribeFleetHistory ( request ) ;
public class Translation { /** * Translates Acid House entity to Google App Engine Datastore entities with * the specified { @ code Key } of parent . * @ param parent The { @ code Key } of parent . * @ param entity Acid House entity . * @ return Google App Engine Datastore entities translated from Acid House ...
List < Entity > entities = new ArrayList < Entity > ( ) ; Class < ? > clazz = entity . getClass ( ) ; if ( ! clazz . isAnnotationPresent ( org . eiichiro . acidhouse . Entity . class ) ) { throw new IllegalArgumentException ( "Entity [" + clazz + "] must be annotated with @org.eiichiro.acidhouse.Entity" ) ; } Entity e ...
public class DdlUtils { /** * ! ! ! Only supports MySQL */ public static List < String > findSchemas ( JdbcTemplate jdbcTemplate , final String schemaPattern , final DdlSchemaFilter ddlSchemaFilter ) { } }
List < String > schemas = findSchemas ( jdbcTemplate , schemaPattern ) ; if ( ddlSchemaFilter == null ) { return schemas ; } List < String > filterSchemas = new ArrayList < String > ( ) ; for ( String schema : schemas ) { if ( ddlSchemaFilter . accept ( schema ) ) { filterSchemas . add ( schema ) ; } } return filterSch...
public class RegistryUtils { /** * Init or add list . * @ param < K > * the key parameter * @ param < V > * the value parameter * @ param orginMap * the orgin map * @ param key * the key * @ param needAdd * the need add */ public static < K , V > void initOrAddList ( Map < K , List < V > > orginMap ...
List < V > listeners = orginMap . get ( key ) ; if ( listeners == null ) { listeners = new CopyOnWriteArrayList < V > ( ) ; listeners . add ( needAdd ) ; orginMap . put ( key , listeners ) ; } else { listeners . add ( needAdd ) ; }
public class DefaultHistoryManager { /** * ( non - Javadoc ) * @ see org . activiti . engine . impl . history . HistoryManagerInterface # recordTaskDueDateChange ( java . lang . String , java . util . Date ) */ @ Override public void recordTaskDueDateChange ( String taskId , Date dueDate ) { } }
if ( isHistoryLevelAtLeast ( HistoryLevel . AUDIT ) ) { HistoricTaskInstanceEntity historicTaskInstance = getHistoricTaskInstanceEntityManager ( ) . findById ( taskId ) ; if ( historicTaskInstance != null ) { historicTaskInstance . setDueDate ( dueDate ) ; } }
public class SimplePropertyAccessor { /** * Returns the value of the < em > bean < / em > using the default { @ link # getMethod } . * If the value is unknown returns null or an empty set depending on the cardinality . * @ param bean the object whose property is requested * @ return an object as the value */ @ Ov...
Object value = null ; try { if ( this . getDomain ( ) . isInstance ( bean ) ) value = this . getMethod . invoke ( bean ) ; } catch ( IllegalAccessException e ) { throw new IllegalBioPAXArgumentException ( "Could not invoke get method " + getMethod . getName ( ) + " for " + bean , e ) ; } catch ( IllegalArgumentExceptio...
public class SubCommandSet { /** * Print the option usage list for the command . * @ param out The output stream . * @ param name The sub - command to print help for . * @ param showHidden If hidden sub - commands should be shown . */ public void printUsage ( OutputStream out , String name , boolean showHidden ) ...
printUsage ( new PrintWriter ( new OutputStreamWriter ( out , UTF_8 ) ) , name , showHidden ) ;
public class CPOptionCategoryPersistenceImpl { /** * Removes the cp option category where uuid = & # 63 ; and groupId = & # 63 ; from the database . * @ param uuid the uuid * @ param groupId the group ID * @ return the cp option category that was removed */ @ Override public CPOptionCategory removeByUUID_G ( Stri...
CPOptionCategory cpOptionCategory = findByUUID_G ( uuid , groupId ) ; return remove ( cpOptionCategory ) ;
public class JdbcCpoAdapter { /** * DOCUMENT ME ! * @ param connection DOCUMENT ME ! */ protected void commitLocalConnection ( Connection connection ) { } }
try { if ( connection != null ) { connection . commit ( ) ; } } catch ( SQLException e ) { if ( logger . isTraceEnabled ( ) ) { logger . trace ( e . getMessage ( ) ) ; } }
public class HpackStaticTable { /** * create a map CharSequenceMap header name to index value to allow quick lookup */ private static CharSequenceMap < Integer > createMap ( ) { } }
int length = STATIC_TABLE . size ( ) ; @ SuppressWarnings ( "unchecked" ) CharSequenceMap < Integer > ret = new CharSequenceMap < Integer > ( true , UnsupportedValueConverter . < Integer > instance ( ) , length ) ; // Iterate through the static table in reverse order to // save the smallest index for a given name in th...
public class URLRespectsRobots { /** * Parses the argument as if it were the content of a < code > robots . txt < / code > file , * and returns a sorted array of prefixes of URLs that the agent should not follow . * @ param content the content of the < code > robots . txt < / code > file . * @ param userAgent the...
/* The set of disallowed paths specifically aimed at userAgent . */ Set < String > set = new ObjectOpenHashSet < > ( ) ; /* The set of disallowed paths specifically aimed at * . */ Set < String > setStar = new ObjectOpenHashSet < > ( ) ; /* True if the currently examined record is targetted to us . */ boolean doesMatte...
public class OnDiskSnapshotsStore { /** * Initialize this component . * This method must be called before any other methods in this component . * Once successful , subsequent calls to this method will throw an { @ link IllegalStateException } . * This method is < strong > not < / strong > thread - safe . It canno...
checkState ( ! initialized , "store already initialized" ) ; try { dbi . withHandle ( new HandleCallback < Void > ( ) { @ Override public Void withHandle ( Handle handle ) throws Exception { SnapshotsDAO dao = handle . attach ( SnapshotsDAO . class ) ; dao . createSnapshotsTableWithIndex ( ) ; return null ; } } ) ; ini...
public class FieldSet { /** * Checks if the given set of fields is a valid subset of this set of fields . For unordered * sets , this is the case if all of the given set ' s fields are also part of this field . * Subclasses that describe field sets where the field order matters must override this method * to impl...
if ( set . size ( ) > size ( ) ) { return false ; } for ( Integer i : set ) { if ( ! contains ( i ) ) { return false ; } } return true ;
public class SaneSession { /** * Closes the connection to the SANE server . This is done immediately by closing the socket . * @ throws IOException if an error occurred while closing the connection */ @ Override public void close ( ) throws IOException { } }
try { outputStream . write ( SaneRpcCode . SANE_NET_EXIT ) ; outputStream . close ( ) ; } finally { socket . close ( ) ; }
public class DescribeTransitGatewaysResult { /** * Information about the transit gateways . * @ return Information about the transit gateways . */ public java . util . List < TransitGateway > getTransitGateways ( ) { } }
if ( transitGateways == null ) { transitGateways = new com . amazonaws . internal . SdkInternalList < TransitGateway > ( ) ; } return transitGateways ;
public class NodeModelUtils { /** * / * @ Nullable */ public static ILeafNode findLeafNodeAtOffset ( /* @ NonNull */ INode node , int leafNodeOffset ) { } }
INode localNode = node ; while ( ! ( localNode instanceof AbstractNode ) ) { localNode = localNode . getParent ( ) ; } int offset = localNode . getTotalOffset ( ) ; int length = localNode . getTotalLength ( ) ; BidiTreeIterator < AbstractNode > iterator = ( ( AbstractNode ) localNode ) . basicIterator ( ) ; if ( leafNo...
public class AddTagsToResourceRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( AddTagsToResourceRequest addTagsToResourceRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( addTagsToResourceRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( addTagsToResourceRequest . getResourceArn ( ) , RESOURCEARN_BINDING ) ; protocolMarshaller . marshall ( addTagsToResourceRequest . getTagList ( ) , TAGLIST_BIND...
public class KeyUpInteraction { /** * ( non - Javadoc ) * @ see com . vilt . minium . actions . DefaultInteraction # doPerform ( ) */ @ Override protected void doPerform ( ) { } }
org . openqa . selenium . Keys seleniumKeys = org . openqa . selenium . Keys . getKeyFromUnicode ( keys . getKeyCode ( ) ) ; if ( isSourceDocumentRoot ( ) ) { keyboard ( ) . releaseKey ( seleniumKeys ) ; } else { getActions ( ) . keyUp ( getFirstElement ( ) , seleniumKeys ) . perform ( ) ; }
public class QueryStringEncoder { /** * Adds a parameter with the specified name and value to this encoder . */ public void addParam ( String name , String value ) { } }
ObjectUtil . checkNotNull ( name , "name" ) ; if ( hasParams ) { uriBuilder . append ( '&' ) ; } else { uriBuilder . append ( '?' ) ; hasParams = true ; } appendComponent ( name , charsetName , uriBuilder ) ; if ( value != null ) { uriBuilder . append ( '=' ) ; appendComponent ( value , charsetName , uriBuilder ) ; }
public class ModelsImpl { /** * Get one entity role for a given entity . * @ param appId The application ID . * @ param versionId The version ID . * @ param entityId entity ID . * @ param roleId entity role ID . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the obse...
return getClosedListEntityRoleWithServiceResponseAsync ( appId , versionId , entityId , roleId ) . map ( new Func1 < ServiceResponse < EntityRole > , EntityRole > ( ) { @ Override public EntityRole call ( ServiceResponse < EntityRole > response ) { return response . body ( ) ; } } ) ;
public class ReteooBuilder { /** * Path ' s must be removed starting from the outer most path , iterating towards the inner most path . * Each time it reaches a subnetwork beta node , the current path evaluation ends , and instead the subnetwork * path continues . */ private void removePath ( Collection < InternalW...
LeftTupleNode [ ] nodes = endNode . getPathNodes ( ) ; for ( int i = endNode . getPositionInPath ( ) ; i >= 0 ; i -- ) { BaseNode node = ( BaseNode ) nodes [ i ] ; boolean removed = false ; if ( NodeTypeEnums . isLeftTupleNode ( node ) ) { removed = removeLeftTupleNode ( wms , context , stillInUse , node ) ; } if ( rem...
public class DosUtils { /** * Encode a java date / time into a 16 - bit encoded DOS date * @ param javaDateTime * @ return long */ public static int encodeDate ( long javaDateTime ) { } }
Calendar cal = Calendar . getInstance ( ) ; cal . setTimeInMillis ( javaDateTime ) ; return 512 * ( cal . get ( Calendar . YEAR ) - 1980 ) + 32 * ( cal . get ( Calendar . MONTH ) + 1 ) + cal . get ( Calendar . DATE ) ;
public class WCOutputStream31 { /** * / * ( non - Javadoc ) * @ see javax . servlet . ServletOutputStream # setWriteListener ( javax . servlet . WriteListener ) */ @ Override public void setWriteListener ( WriteListener appWLObject ) { } }
if ( appWLObject == null ) { Tr . error ( tc , "writelistener.is.null" ) ; throw new NullPointerException ( Tr . formatMessage ( tc , "writelistener.is.null" ) ) ; } if ( this . isOutputStreamNBClosed ( ) ) { Tr . error ( tc , "stream.is.closed.no.read.write" ) ; throw new IllegalStateException ( Tr . formatMessage ( t...
public class FactoryFinder { /** * Finds the implementation Class object in the specified order . Main entry point . * @ return Class object of factory , never null * @ param factoryId Name of the factory to find , same as a property name * @ param fallbackClassName Implementation class name , if nothing else is ...
// Figure out which ClassLoader to use for loading the provider // class . If there is a Context ClassLoader then use it . ClassLoader classLoader = ss . getContextClassLoader ( ) ; if ( classLoader == null ) { // if we have no Context ClassLoader // so use the current ClassLoader classLoader = FactoryFinder . class . ...
public class Choice7 { /** * { @ inheritDoc } */ @ Override public < H > Choice7 < A , B , C , D , E , F , H > fmap ( Function < ? super G , ? extends H > fn ) { } }
return Monad . super . < H > fmap ( fn ) . coerce ( ) ;
public class Timeouts { /** * Remote a cache entry . * @ param hashEntryAdr address of the cache entry * @ param expireAt absolute expiration timestamp */ void remove ( long hashEntryAdr , long expireAt ) { } }
int slot = slot ( expireAt ) ; slots [ slot ] . remove ( hashEntryAdr ) ;
public class Ifc2x3tc1FactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public String convertIfcReinforcingBarSurfaceEnumToString ( EDataType eDataType , Object instanceValue ) { } }
return instanceValue == null ? null : instanceValue . toString ( ) ;
public class JBBPCompiler { /** * Compile a text script into its byte code representation / * @ param script a text script to be compiled , must not be null . * @ param customTypeFieldProcessor processor to process custom type fields , * can be null * @ return a compiled block for the script . * @ throws IOEx...
JBBPUtils . assertNotNull ( script , "Script must not be null" ) ; final JBBPCompiledBlock . Builder builder = JBBPCompiledBlock . prepare ( ) . setSource ( script ) ; final List < JBBPNamedFieldInfo > namedFields = new ArrayList < > ( ) ; final List < JBBPFieldTypeParameterContainer > customTypeFields = new ArrayList ...
public class AbstractProject { /** * Serves the workspace files . */ public DirectoryBrowserSupport doWs ( StaplerRequest req , StaplerResponse rsp ) throws IOException , ServletException , InterruptedException { } }
checkPermission ( Item . WORKSPACE ) ; FilePath ws = getSomeWorkspace ( ) ; if ( ( ws == null ) || ( ! ws . exists ( ) ) ) { // if there ' s no workspace , report a nice error message // Would be good if when asked for * plain * , do something else ! // ( E . g . return 404 , or send empty doc . ) // Not critical ; cli...
public class SelectionPageGenerator { /** * Creates an HTML button string for the provided { @ code SocialLoginConfig } object . Uses the { @ code displayName } attribute in * the configuration as the display text for the button . */ String createButtonHtml ( SocialLoginConfig config ) { } }
if ( config == null ) { return "" ; } String uniqueId = config . getUniqueId ( ) ; String displayName = config . getDisplayName ( ) ; String buttonValue = WebUtils . htmlEncode ( getObscuredConfigId ( uniqueId ) ) ; StringBuilder buttonHtml = new StringBuilder ( ) ; buttonHtml . append ( "<button type=\"submit\" " ) ; ...
public class MtasBasicParser { /** * Compute filtered prefixed value . * @ param type the type * @ param value the value * @ param filter the filter * @ param prefix the prefix * @ return the string * @ throws MtasConfigException the mtas config exception */ private String computeFilteredPrefixedValue ( Str...
String localValue = value ; // do magic with filter if ( filter != null ) { String [ ] filters = filter . split ( "," ) ; for ( String item : filters ) { if ( item . trim ( ) . equals ( MAPPING_FILTER_UPPERCASE ) ) { localValue = localValue == null ? null : localValue . toUpperCase ( ) ; } else if ( item . trim ( ) . e...
public class ValueEnforcer { /** * Check that the passed value is < code > false < / code > . * @ param bValue * The value to check . * @ param aMsg * The message to be emitted in case the value is < code > true < / code > * @ throws IllegalArgumentException * if the passed value is not < code > null < / co...
if ( isEnabled ( ) ) if ( bValue ) throw new IllegalArgumentException ( "The expression must be false but it is not: " + aMsg . get ( ) ) ;
public class Curve25519 { /** * Verification of signature * @ param publicKey public key of signature * @ param message message * @ param signature signature of a message * @ return true if signature correct */ public static boolean verifySignature ( byte [ ] publicKey , byte [ ] message , byte [ ] signature ) ...
return curve_sigs . curve25519_verify ( SHA512Provider , signature , publicKey , message , message . length ) == 0 ;
public class DomainCommandBuilder { /** * Sets the system property { @ code jboss . domain . master . port } . In a default slave host configuration this is used * to configure the port of the master host controller . Ignores { @ code null } values or values less than 0. * < b > Note : < / b > This option only work...
if ( port != null ) { setMasterPortHint ( Integer . parseInt ( port ) ) ; } return this ;
public class vpntrafficpolicy { /** * Use this API to fetch vpntrafficpolicy resource of given name . */ public static vpntrafficpolicy get ( nitro_service service , String name ) throws Exception { } }
vpntrafficpolicy obj = new vpntrafficpolicy ( ) ; obj . set_name ( name ) ; vpntrafficpolicy response = ( vpntrafficpolicy ) obj . get_resource ( service ) ; return response ;
public class EventDimensionsMarshaller { /** * Marshall the given parameter object . */ public void marshall ( EventDimensions eventDimensions , ProtocolMarshaller protocolMarshaller ) { } }
if ( eventDimensions == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( eventDimensions . getAttributes ( ) , ATTRIBUTES_BINDING ) ; protocolMarshaller . marshall ( eventDimensions . getEventType ( ) , EVENTTYPE_BINDING ) ; protocolMarshalle...
public class MutateMembersReturnValue { /** * Gets the userLists value for this MutateMembersReturnValue . * @ return userLists * The user lists associated in mutate members operations . */ public com . google . api . ads . adwords . axis . v201809 . rm . UserList [ ] getUserLists ( ) { } }
return userLists ;
public class ToHTMLStream { /** * Receive notification of a processing instruction . * @ param target The processing instruction target . * @ param data The processing instruction data , or null if * none was supplied . * @ throws org . xml . sax . SAXException Any SAX exception , possibly * wrapping another ...
// Process any pending starDocument and startElement first . flushPending ( ) ; // Use a fairly nasty hack to tell if the next node is supposed to be // unescaped text . if ( target . equals ( Result . PI_DISABLE_OUTPUT_ESCAPING ) ) { startNonEscaping ( ) ; } else if ( target . equals ( Result . PI_ENABLE_OUTPUT_ESCAPI...
public class ExistsFunction { /** * Creates new { @ link ExistsFunction } representing { @ code exists ( fieldname ) } * @ param fieldName * @ return */ public static ExistsFunction exists ( String fieldName ) { } }
Assert . hasText ( fieldName , "fieldName cannot be 'empty' for exists operation." ) ; return exists ( new SimpleField ( fieldName ) ) ;
public class D6DateUtil { /** * Get java . sql . Timestamp from java . util . Date * @ param date * @ return */ public static java . sql . Timestamp getSqlTimeStamp ( java . util . Date date ) { } }
Calendar cal = Calendar . getInstance ( ) ; cal . setTime ( date ) ; return new java . sql . Timestamp ( cal . getTimeInMillis ( ) ) ;
public class JingleNegotiator { /** * Get a copy of the listeners * @ return a copy of the listeners */ protected List < JingleListener > getListenersList ( ) { } }
ArrayList < JingleListener > result ; synchronized ( listeners ) { result = new ArrayList < > ( listeners ) ; } return result ;
public class LocationHelper { /** * Returns a location object which unlike the location constructors * allows you to input reverse coordinates and will convert * these into the right location on the positive strand . */ public static Location location ( int start , int end , Strand strand , int length ) { } }
int min = Math . min ( start , end ) ; // if this is true then we have a coord on the + ve strand even though Strand could be negative boolean isReverse = ( min != start ) ; if ( isReverse ) { return new SimpleLocation ( new SimplePoint ( start ) . reverse ( length ) , new SimplePoint ( end ) . reverse ( length ) , str...
public class HdfsPreProcessor { /** * 前処理対象ファイル一覧をログ出力する 。 * @ param targetTmpFiles 前処理対象ファイル一覧 */ private static void printTargetPathList ( FileStatus [ ] targetTmpFiles ) { } }
StringBuilder builder = new StringBuilder ( ) ; builder . append ( "Preprocess target files:" ) ; String lineSeparator = System . getProperty ( "line.separator" ) ; for ( FileStatus targetFile : targetTmpFiles ) { builder . append ( targetFile . getPath ( ) + lineSeparator ) ; } logger . info ( builder . toString ( ) )...
public class CliSystemCommandFactory { /** * Create a directory containing all system commands . It is convenient to store all system commands in a directory . * Most system commands require an already built { @ link CliCommandHierarchy } , but system commands are also a part * of the CliCommandHierarchy , creating...
final Identifier identifier = new Identifier ( "system" , "System commands" ) ; final CliSystemCommandFactory factory = new CliSystemCommandFactory ( hierarchy ) ; return CliDirectory . from ( identifier , factory . createChangeDirectoryCommand ( ) , factory . createListDirectoryCommand ( ) , factory . createDescribeCo...
public class EJBContainer { /** * Create and initialize an embeddable EJB container with an * set of configuration properties and names of modules to be initialized . * @ param properties One or more spec - defined or vendor - specific properties . * The spec reserves the prefix " javax . ejb . " for spec - defin...
for ( EJBContainerProvider factory : factories ) { EJBContainer container = factory . createEJBContainer ( properties ) ; if ( container != null ) return container ; } throw new EJBException ( "Unable to instantiate container with factories " + factories ) ;
public class ServiceExtensionLoader { /** * Finds a constructor with a one - argument list ' s element which implements { @ link Archive } . * @ param < T > * @ param extensionImplClass * - Implementation of { @ link Assignable } with a one - argument list ' s element which implements * { @ link Archive } . *...
Constructor < ? > [ ] constructors = SecurityActions . getConstructors ( extensionImplClass ) ; for ( Constructor < ? > constructor : constructors ) { Class < ? > [ ] parameters = constructor . getParameterTypes ( ) ; if ( parameters . length != 1 ) { continue ; } Class < ? > parameter = parameters [ 0 ] ; if ( Archive...
public class Obs { /** * Returns a cached { @ link Observable } like { @ link Observable # cache ( ) } * except that the cache can be reset by calling * { @ link CachedObservable # reset ( ) } and the cache will be automatically * reset an interval after first subscription ( or first subscription after * reset ...
final AtomicReference < CachedObservable < T > > cacheRef = new AtomicReference < CachedObservable < T > > ( ) ; CachedObservable < T > cache = new CachedObservable < T > ( source ) ; cacheRef . set ( cache ) ; return cache . doOnSubscribe ( new Action0 ( ) { @ Override public void call ( ) { Action0 action = new Actio...
public class TFGraphMapper { /** * Init a function ' s attributes * @ param mappedTfName the tensorflow name to pick ( sometimes ops have multiple names * @ param on the function to map * @ param attributesForNode the attributes for the node * @ param node * @ param graph */ public void initFunctionFromProper...
val properties = on . mappingsForFunction ( ) ; val tfProperties = properties . get ( mappedTfName ) ; val fields = DifferentialFunctionClassHolder . getInstance ( ) . getFieldsForFunction ( on ) ; val attributeAdapters = on . attributeAdaptersForFunction ( ) ; // if there ' s no properties announced for this function ...
public class AmazonRedshiftClient { /** * Creates a new snapshot schedule . * @ param createSnapshotScheduleRequest * @ return Result of the CreateSnapshotSchedule operation returned by the service . * @ throws SnapshotScheduleAlreadyExistsException * The specified snapshot schedule already exists . * @ throw...
request = beforeClientExecution ( request ) ; return executeCreateSnapshotSchedule ( request ) ;
public class OAbstractRecordCache { /** * All operations running at cache initialization stage */ public void startup ( ) { } }
underlying . startup ( ) ; OProfiler . getInstance ( ) . registerHookValue ( profilerPrefix + "enabled" , new OProfilerHookValue ( ) { public Object getValue ( ) { return isEnabled ( ) ; } } ) ; OProfiler . getInstance ( ) . registerHookValue ( profilerPrefix + "current" , new OProfilerHookValue ( ) { public Object get...
public class ResourceModelSourceService { /** * Given input configuration , produce a function to convert from a factory to model source * @ param configuration * @ return */ public static Function < ResourceModelSourceFactory , ResourceModelSource > factoryConverter ( final Properties configuration ) { } }
// nb : not using lambda due to inability to mock this class within grails tests , some conflict with cglib and // j8 lambdas return new Function < ResourceModelSourceFactory , ResourceModelSource > ( ) { @ Override public ResourceModelSource apply ( final ResourceModelSourceFactory resourceModelSourceFactory ) { try {...
public class AppServiceCertificateOrdersInner { /** * Validate information for a certificate order . * Validate information for a certificate order . * @ param appServiceCertificateOrder Information for a certificate order . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return...
if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( appServiceCertificateOrder == null ) { throw new IllegalArgumentException ( "Parameter appServiceCertificateOrder is required and cannot be null." ...
public class BaseGradleReleaseAction { /** * Initialize the version properties map from the gradle . properties file , and the additional properties from the * gradle . properties file . */ @ Override protected void initBuilderSpecific ( ) throws Exception { } }
reset ( ) ; FilePath workspace = getModuleRoot ( EnvVars . masterEnvVars ) ; FilePath gradlePropertiesPath = new FilePath ( workspace , "gradle.properties" ) ; if ( releaseProps == null ) { releaseProps = PropertyUtils . getModulesPropertiesFromPropFile ( gradlePropertiesPath , getReleaseProperties ( ) ) ; } if ( nextI...
public class SMTPSettings { /** * Set the socket timeout in milliseconds . Values & le ; 0 are interpreted as * indefinite timeout which is not recommended ! * @ param nMilliSecs * The milliseconds timeout * @ return { @ link EChange } */ @ Nonnull public EChange setTimeoutMilliSecs ( final long nMilliSecs ) { ...
if ( m_nTimeoutMilliSecs == nMilliSecs ) return EChange . UNCHANGED ; m_nTimeoutMilliSecs = nMilliSecs ; return EChange . CHANGED ;
public class DbPreparedStatement { /** * Sets all bean properties to named parameters . * @ param db database to use . This method call relies on binders registered in this database instance . * @ param bean bean to map to named SQL parameters . * @ param allowCustomFields if false and SQL contains keys not resol...
List < BindInfo > binders = ( ( DbImpl ) db ) . getBeanBinders ( bean . getClass ( ) ) ; for ( String key : parametersMapping . keySet ( ) ) { BindInfo info = binders . stream ( ) . filter ( i -> i . mappedName . equals ( key ) ) . findFirst ( ) . orElse ( null ) ; if ( info == null ) { if ( allowCustomFields ) { conti...
public class CPDefinitionOptionRelUtil { /** * Returns the first cp definition option rel in the ordered set where groupId = & # 63 ; . * @ param groupId the group ID * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) * @ return the first matching cp definition ...
return getPersistence ( ) . fetchByGroupId_First ( groupId , orderByComparator ) ;
public class SlaProxy { /** * Creates proxied HTTP GET request to SeaClouds SLA core which retrieves the Agreement Term Violations * @ param agreement which contains the guaranteeTerm to fetch * @ param guaranteeTerm to check violations * @ return the list of Violations for this < Agreement , GuaranteeTerm > pair...
String json = getJerseyClient ( ) . target ( getEndpoint ( ) + "/violations?agreementId=" + agreement . getAgreementId ( ) + "&guaranteeTerm=" + guaranteeTerm . getName ( ) ) . request ( ) . header ( "Accept" , MediaType . APPLICATION_JSON ) . header ( "Content-Type" , MediaType . APPLICATION_JSON ) . buildGet ( ) . in...
public class CmsDocumentMsOfficeOLE2 { /** * Returns the raw text content of a given vfs resource containing MS Word data . < p > * @ see org . opencms . search . documents . I _ CmsSearchExtractor # extractContent ( CmsObject , CmsResource , I _ CmsSearchIndex ) */ public I_CmsExtractionResult extractContent ( CmsOb...
logContentExtraction ( resource , index ) ; CmsFile file = readFile ( cms , resource ) ; try { return CmsExtractorMsOfficeOLE2 . getExtractor ( ) . extractText ( file . getContents ( ) ) ; } catch ( Throwable e ) { throw new CmsIndexException ( Messages . get ( ) . container ( Messages . ERR_TEXT_EXTRACTION_1 , resourc...
public class BorlandLibrarian { /** * Encloses problematic file names within quotes . * @ param buf * string buffer * @ param filename * source file name * @ return filename potentially enclosed in quotes . */ @ Override protected String quoteFilename ( final StringBuffer buf , final String filename ) { } }
buf . setLength ( 0 ) ; BorlandProcessor . quoteFile ( buf , filename ) ; return buf . toString ( ) ;
public class UtilValidate { /** * Email address must be of form a @ b . c - - in other words : * - there must be at least one character before the @ * - there must be at least one character before and after the . * - the characters @ and . are both required */ public static boolean isEmail ( String s ) { } }
if ( isEmpty ( s ) ) return defaultEmptyOK ; // is s whitespace ? if ( isWhitespace ( s ) ) return false ; // there must be > = 1 character before @ , so we // start looking at character position 1 // ( i . e . second character ) int i = 1 ; int sLength = s . length ( ) ; // look for @ while ( ( i < sLength ) && ( s . ...
public class Duration { /** * Obtains an instance of { @ code Duration } representing the duration between two instants . * Obtains a { @ code Duration } representing the duration between two instants . * This calculates the duration between two temporal objects of the same type . * The difference in seconds is c...
long secs = startInclusive . until ( endExclusive , SECONDS ) ; long nanos = 0 ; if ( startInclusive . isSupported ( NANO_OF_SECOND ) && endExclusive . isSupported ( NANO_OF_SECOND ) ) { try { long startNos = startInclusive . getLong ( NANO_OF_SECOND ) ; nanos = endExclusive . getLong ( NANO_OF_SECOND ) - startNos ; if...
public class WorkbookUtil { /** * 根据文件类型创建新的工作簿 , 文件路径 * @ param isXlsx 是否为xlsx格式的Excel * @ return { @ link Workbook } * @ since 4.1.0 */ public static Workbook createBook ( boolean isXlsx ) { } }
Workbook workbook ; if ( isXlsx ) { workbook = new XSSFWorkbook ( ) ; } else { workbook = new org . apache . poi . hssf . usermodel . HSSFWorkbook ( ) ; } return workbook ;
public class CmsResourceTypeApp { /** * Adds the buttons to the toolbar . < p > */ private void addToolbarButtons ( ) { } }
Button add = CmsToolBar . createButton ( FontOpenCms . WAND , CmsVaadinUtils . getMessageText ( Messages . GUI_RESOURCETYPE_CREATE_NEW_TYPE_0 ) ) ; add . addClickListener ( new ClickListener ( ) { private static final long serialVersionUID = 1L ; public void buttonClick ( ClickEvent event ) { Window window = CmsBasicDi...
public class ParseUtils { /** * read encoding len . * see StringPool . cpp ENCODE _ LENGTH */ private static int readLen ( ByteBuffer buffer ) { } }
int len = 0 ; int i = Buffers . readUByte ( buffer ) ; if ( ( i & 0x80 ) != 0 ) { // read one more byte . len |= ( i & 0x7f ) << 8 ; len += Buffers . readUByte ( buffer ) ; } else { len = i ; } return len ;
public class GoogleCloudStorageFileSystem { /** * For objects whose name looks like a path ( foo / bar / zoo ) , returns intermediate sub - paths . * < p > For example : * < ul > * < li > foo / bar / zoo = > returns : ( foo / , foo / bar / ) * < li > foo = > returns : ( ) * < / ul > * @ param objectName Nam...
List < String > subdirs = new ArrayList < > ( ) ; if ( ! Strings . isNullOrEmpty ( objectName ) ) { int currentIndex = 0 ; while ( currentIndex < objectName . length ( ) ) { int index = objectName . indexOf ( PATH_DELIMITER , currentIndex ) ; if ( index < 0 ) { break ; } subdirs . add ( objectName . substring ( 0 , ind...
public class QNMinimizer { /** * lineSearchBacktrack is the original linesearch used for the first version * of QNMinimizer . it only satisfies sufficient descent not the Wolfe * conditions . */ private double [ ] lineSearchBacktrack ( Function func , double [ ] dir , double [ ] x , double [ ] newX , double [ ] gra...
double normGradInDir = ArrayMath . innerProduct ( dir , grad ) ; say ( "(" + nf . format ( normGradInDir ) + ")" ) ; if ( normGradInDir > 0 ) { say ( "{WARNING--- direction of positive gradient chosen!}" ) ; } // c1 can be anything between 0 and 1 , exclusive ( usu . 1/10 - 1/2) double step , c1 ; // for first few step...
public class Codecs { /** * Return a scala { @ code Codec } with the given allele { @ link Supplier } , * allele { @ code validator } and { @ code Chromosome } length . The * { @ code supplier } is responsible for creating new random alleles , and the * { @ code validator } can verify it . * The following examp...
requireNonNull ( supplier ) ; requireNonNull ( alleleSeqValidator ) ; requireNonNull ( alleleSeqValidator ) ; require . positive ( length ) ; return Codec . of ( Genotype . of ( AnyChromosome . of ( supplier , alleleValidator , alleleSeqValidator , length ) ) , gt -> gt . getChromosome ( ) . stream ( ) . map ( Gene :: ...
public class KunderaMetadataManager { /** * Gets the entity metadata . * @ param persistenceUnit * the persistence unit * @ param entityClass * the entity class * @ return the entity metadata */ public static EntityMetadata getEntityMetadata ( final KunderaMetadata kunderaMetadata , String persistenceUnit , C...
return getMetamodel ( kunderaMetadata , persistenceUnit ) . getEntityMetadata ( entityClass ) ;
public class StringUtil { /** * a static method to replace the full - width char to the half - width char in a given string * ( 65281-65374 for full - width char ) * @ param str * @ return String the new String after the replace . */ public static String fwsTohws ( String str ) { } }
char [ ] chars = str . toCharArray ( ) ; for ( int j = 0 ; j < chars . length ; j ++ ) { if ( chars [ j ] == '\u3000' ) { chars [ j ] = '\u0020' ; } else if ( chars [ j ] > '\uFF00' && chars [ j ] < '\uFF5F' ) { chars [ j ] = ( char ) ( chars [ j ] - 65248 ) ; } } return new String ( chars ) ;
public class ArtifactManagingServiceImpl { /** * ( non - Javadoc ) * @ see org . exoplatform . services . jcr . ext . maven . ArtifactManagingService # addArtifact * ( org . exoplatform . services . jcr . ext . common . SessionProvider , * org . exoplatform . services . jcr . ext . maven . ArtifactDescriptor , ja...
Session session = currentSession ( sp ) ; Node rootNode = ( Node ) session . getItem ( rootNodePath ) ; Node groupId_tail = createGroupIdLayout ( rootNode , artifact ) ; Node artifactId_node = createArtifactIdLayout ( groupId_tail , artifact ) ; Node version_node = createVersionLayout ( artifactId_node , artifact ) ; i...
public class Check { /** * Ensures that a given argument is { @ code null } . * Normally , the usage of { @ code null } arguments is disregarded by the authors of quality - check . Still , there are * certain circumstances where null is required , e . g . the primary key of an entity before it is written to the *...
if ( reference != null ) { throw new IllegalNotNullArgumentException ( reference ) ; }
public class GoogleHadoopFSInputStream { /** * Reads up to length bytes from the underlying store and stores them starting at the specified * offset in the given buffer . Less than length bytes may be returned . * @ param buf The buffer into which data is returned . * @ param offset The offset at which data is wr...
long startTime = System . nanoTime ( ) ; Preconditions . checkNotNull ( buf , "buf must not be null" ) ; if ( offset < 0 || length < 0 || length > buf . length - offset ) { throw new IndexOutOfBoundsException ( ) ; } int numRead = channel . read ( ByteBuffer . wrap ( buf , offset , length ) ) ; if ( numRead > 0 ) { // ...
public class Controller { /** * Registers this Controller to handle onActivityResult responses . Calling this method is NOT * necessary when calling { @ link # startActivityForResult ( Intent , int ) } * @ param requestCode The request code being registered for . */ public final void registerForActivityResult ( fin...
executeWithRouter ( new RouterRequiringFunc ( ) { @ Override public void execute ( ) { router . registerForActivityResult ( instanceId , requestCode ) ; } } ) ;
public class ExtensionsInner { /** * Enables the Operations Management Suite ( OMS ) on the HDInsight cluster . * @ param resourceGroupName The name of the resource group . * @ param clusterName The name of the cluster . * @ param parameters The Operations Management Suite ( OMS ) workspace parameters . * @ par...
return ServiceFuture . fromResponse ( enableMonitoringWithServiceResponseAsync ( resourceGroupName , clusterName , parameters ) , serviceCallback ) ;
public class AbstractConsoleEditor { /** * Repaints the whole screen . */ void repaintScreen ( ) { } }
int repaintLine = 1 ; console . out ( ) . print ( ansi ( ) . eraseScreen ( Erase . ALL ) ) ; console . out ( ) . print ( ansi ( ) . cursor ( 1 , 1 ) ) ; console . out ( ) . print ( "\33[" + ( getHeaderSize ( ) + 1 ) + ";" + ( terminal . getHeight ( ) - getFooterSize ( ) ) + ";r" ) ; redrawHeader ( ) ; redrawFooter ( ) ...
public class CassandraDataHandlerBase { /** * Builds the thrift super column . * @ param tableName * the table name * @ param superColumnName * the super column name * @ param timestamp * the timestamp * @ param superColumn * the super column * @ param superColumnObject * the super column object *...
Map < String , Object > tableToSuperColumns = new HashMap < String , Object > ( ) ; List < Column > thriftColumns = new ArrayList < Column > ( ) ; Iterator < Attribute > iter = superColumn . getAttributes ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { AbstractAttribute column = ( AbstractAttribute ) iter . next ( ...
public class SecurityFilter { /** * We return Access - * headers only in case allowedOrigin is present and equals to the ' Origin ' header . */ @ Override public ContainerRequest filter ( ContainerRequest cr ) { } }
final DaoManager storage = ( DaoManager ) servletRequest . getServletContext ( ) . getAttribute ( DaoManager . class . getName ( ) ) ; AccountsDao accountsDao = storage . getAccountsDao ( ) ; UserIdentityContext userIdentityContext = new UserIdentityContext ( servletRequest , accountsDao ) ; // exclude recording file h...
public class MtasDataDoubleOperations { /** * ( non - Javadoc ) * @ see * mtas . codec . util . DataCollector . MtasDataOperations # min11 ( java . lang . Number , * java . lang . Number ) */ @ Override public Double min11 ( Double arg1 , Double arg2 ) { } }
if ( arg1 == null || arg2 == null ) { return Double . NaN ; } else { return Math . min ( arg1 , arg2 ) ; }
public class IOUtils { /** * Lists the contents of a zip file . * Only looks in the supplied path within the zip file . * @ since 1.0 * @ param zipFile the zip file to use * @ param path the path inside the jar file * @ return the contents of the zip file * @ throws IOException if an I / O error has occurre...
List < String > names = new ArrayList < > ( ) ; if ( zipFile . isFile ( ) ) { ZipFile zip = null ; try { zip = new ZipFile ( zipFile ) ; Enumeration < ? extends ZipEntry > entries = zip . entries ( ) ; while ( entries . hasMoreElements ( ) ) { ZipEntry entry = entries . nextElement ( ) ; String name = entry . getName (...
public class AlignmentPredictionModel { /** * * * Candidates Extraction * * * */ public List < Acronym > extractCandidatePairs ( String text ) { } }
ArrayList < Acronym > extractedPairs = new ArrayList < Acronym > ( ) ; extractedPairs . addAll ( extractSingleAcronyms ( text ) ) ; extractedPairs . addAll ( extractPatternAcronyms ( text ) ) ; return extractedPairs ;