signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class ServerJFapCommunicator { /** * Validates the conversation state by ensuring we have a local cache of it here in this class . */ private void validateConversationState ( ) { } }
if ( tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "validateConversationState" ) ; if ( sConState == null ) { sConState = ( ConversationState ) getConversation ( ) . getAttachment ( ) ; if ( tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Using Client Conversation State:" , sConState ) ; } if ( tc . isEn...
public class QueryExecutorImpl { /** * To prevent client / server protocol deadlocks , we try to manage the estimated recv buffer size * and force a sync + flush and process results if we think it might be getting too full . * See the comments above MAX _ BUFFERED _ RECV _ BYTES ' s declaration for details . */ pri...
// Assume all statements need at least this much reply buffer space , // plus params estimatedReceiveBufferBytes += NODATA_QUERY_RESPONSE_SIZE_BYTES ; SimpleQuery sq = ( SimpleQuery ) query ; if ( sq . isStatementDescribed ( ) ) { /* * Estimate the response size of the fields and add it to the expected response size . ...
public class UkaseController { /** * = = = = = private utilities = = = = = */ private ResponseEntity < Object > translateState ( boolean selectedTemplateUpdated ) { } }
if ( selectedTemplateUpdated ) { return new ResponseEntity < > ( "updated" , HttpStatus . OK ) ; } else { return new ResponseEntity < > ( HttpStatus . NOT_MODIFIED ) ; }
public class RemoteTopicSpaceControl { /** * / * ( non - Javadoc ) * @ see com . ibm . ws . sib . processor . runtime . AbstractControlAdapter # getUuid ( ) */ public String getUuid ( ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getUuid" ) ; String uuid = null ; if ( _outputHandler != null ) { uuid = _outputHandler . getTopicSpaceUuid ( ) . toString ( ) ; } else { uuid = _anycastInputHandler . getBaseDestinationHandler ( ) . getUuid ( ) . toString ...
public class HtmlRadioRendererBase { /** * Renders the input item * @ return the ' id ' value of the rendered element */ protected String renderRadio ( FacesContext facesContext , UIInput uiComponent , String value , boolean disabled , boolean checked , boolean renderId , Integer itemNum ) throws IOException { } }
String clientId = uiComponent . getClientId ( facesContext ) ; String itemId = ( itemNum == null ) ? null : clientId + facesContext . getNamingContainerSeparatorChar ( ) + itemNum ; ResponseWriter writer = facesContext . getResponseWriter ( ) ; writer . startElement ( HTML . INPUT_ELEM , uiComponent ) ; if ( itemId != ...
public class AmazonNeptuneClient { /** * Returns a list of orderable DB instance options for the specified engine . * @ param describeOrderableDBInstanceOptionsRequest * @ return Result of the DescribeOrderableDBInstanceOptions operation returned by the service . * @ sample AmazonNeptune . DescribeOrderableDBInst...
request = beforeClientExecution ( request ) ; return executeDescribeOrderableDBInstanceOptions ( request ) ;
public class JAXBData { /** * Respond with the Object of type { @ literal < T > } if it exists , or unmarshal from String * and pass the result back . < p > * Explicitly use a specific Env for logging purposes * @ param env * @ return T * @ throws APIException */ public T asObject ( EnvJAXB env ) throws APIEx...
if ( dataAsObject != null ) { return dataAsObject ; } else { // Some Java compilers need two statements here dataAsObject = objectifier . objectify ( env , dataAsString ) ; return dataAsObject ; }
public class CommonUtils { /** * - - - LOCAL HOST NAME - - - */ public static final String getHostName ( ) { } }
if ( cachedHostName != null ) { return cachedHostName ; } // User - defined public hostname String name = System . getProperty ( "hostname" ) ; if ( name == null || name . isEmpty ( ) ) { try { name = InetAddress . getLocalHost ( ) . getHostName ( ) ; } catch ( Exception ignored ) { name = null ; } } if ( name == null ...
public class AgreementsInner { /** * Gets an integration account agreement . * @ param resourceGroupName The resource group name . * @ param integrationAccountName The integration account name . * @ param agreementName The integration account agreement name . * @ param serviceCallback the async ServiceCallback ...
return ServiceFuture . fromResponse ( getWithServiceResponseAsync ( resourceGroupName , integrationAccountName , agreementName ) , serviceCallback ) ;
public class JettyServiceBuilder { /** * Sets the factory that creates a new instance of { @ link SessionIdManager } for the Jetty { @ link Server } . * @ see Server # setSessionIdManager ( SessionIdManager ) */ public JettyServiceBuilder sessionIdManagerFactory ( Function < ? super Server , ? extends SessionIdManage...
requireNonNull ( sessionIdManagerFactory , "sessionIdManagerFactory" ) ; this . sessionIdManagerFactory = sessionIdManagerFactory ; return this ;
public class ArrayUtils { /** * 裁剪数组 。 Returns a new array if array is not empty and start greater or equals * 0 and less than end and end less than array length ; array self otherwise ; * @ param array 源数组 。 array to be handed . * @ param start 裁剪的起始位置的索引 。 start index number . * @ param end 裁剪的结束位置的索引 。 end i...
if ( isEmpty ( array ) || start < 0 || start > end || end >= array . length ) { return array ; } @ SuppressWarnings ( "unchecked" ) Class < T > componentClass = ( Class < T > ) ClassUtils . getComponentClass ( array ) ; int newArraySize = end - start + 1 ; T [ ] newArray = buildArray ( componentClass , newArraySize , n...
public class NodeUtil { /** * Gets the value of a node as a String , or null if it cannot be converted . * When it returns a non - null String , this method effectively emulates the * < code > String ( ) < / code > JavaScript cast function . */ public static String getStringValue ( Node n ) { } }
// TODO ( user ) : regex literals as well . switch ( n . getToken ( ) ) { case STRING : case STRING_KEY : return n . getString ( ) ; case TEMPLATELIT : // Only convert a template literal if all its expressions can be converted . String string = "" ; for ( Node child = n . getFirstChild ( ) ; child != null ; child = chi...
public class SECImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setCOLSIZE2 ( Integer newCOLSIZE2 ) { } }
Integer oldCOLSIZE2 = colsize2 ; colsize2 = newCOLSIZE2 ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . SEC__COLSIZE2 , oldCOLSIZE2 , colsize2 ) ) ;
public class PageFilterAdapter { /** * { @ inheritDoc } */ @ Override public FilterSupportStatus isFilterSupported ( FilterAdapterContext context , PageFilter filter ) { } }
Optional < FilterList > currentList = context . getCurrentFilterList ( ) ; if ( ( currentList . isPresent ( ) && ! isFilterListSupported ( currentList . get ( ) , filter ) ) || context . getFilterListDepth ( ) > 1 ) { return TOP_LEVEL_ONLY ; } return FilterSupportStatus . SUPPORTED ;
public class AbstractStandardTransformationOperation { /** * Get the parameter with the given parameter name from the parameter map . If the parameters does not contain such a * parameter , take the default value instead . */ protected String getParameterOrDefault ( Map < String , String > parameters , String paramNa...
return getParameter ( parameters , paramName , false , defaultValue ) ;
public class Expressive { /** * Report whether the condition is satisfied during a poll . */ public boolean the ( Condition condition , Ticker ticker ) { } }
try { poll ( ticker , condition ) ; return true ; } catch ( PollTimeoutException ignored ) { return false ; }
public class ConnectorDescriptorImpl { /** * Adds a new namespace * @ return the current instance of < code > ConnectorDescriptor < / code > */ public ConnectorDescriptor addNamespace ( String name , String value ) { } }
model . attribute ( name , value ) ; return this ;
public class AbstractHtmlLabelConverter { /** * Converts the model data to a string representation of the presentation * label that is used on client - side to style the label . * @ param status * model data * @ return string representation of label */ private String convert ( final T status ) { } }
if ( adapter == null ) { throw new IllegalStateException ( "Adapter must be set before usage! Convertion without adapter is not possible!" ) ; } final StatusFontIcon statusProps = adapter . adapt ( status ) ; // fail fast if ( statusProps == null ) { return "" ; } final String codePoint = getCodePoint ( statusProps ) ;...
public class ArrowConverter { /** * Convert a set of input strings to arrow columns * for a time series . * @ param bufferAllocator the buffer allocator to use * @ param schema the schema to use * @ param dataVecRecord the collection of input strings to process * @ return the created vectors */ public static ...
// time series length * number of columns int numRows = 0 ; for ( List < List < T > > timeStep : dataVecRecord ) { numRows += timeStep . get ( 0 ) . size ( ) * timeStep . size ( ) ; } numRows /= schema . numColumns ( ) ; List < FieldVector > ret = createFieldVectors ( bufferAllocator , schema , numRows ) ; Map < Intege...
public class MapFileHelper { /** * Attempts to delete all Minecraft Worlds with " TEMP _ " in front of the name * @ param currentWorld excludes this world from deletion , can be null */ public static void cleanupTemporaryWorlds ( String currentWorld ) { } }
List < WorldSummary > saveList ; ISaveFormat isaveformat = Minecraft . getMinecraft ( ) . getSaveLoader ( ) ; isaveformat . flushCache ( ) ; try { saveList = isaveformat . getSaveList ( ) ; } catch ( AnvilConverterException e ) { e . printStackTrace ( ) ; return ; } String searchString = tempMark + AddressHelper . getM...
public class AdminParserUtils { /** * Adds OPT _ D | OPT _ DIR option to OptionParser , with one argument . * @ param parser OptionParser to be modified * @ param required Tells if this option is required or optional */ public static void acceptsDir ( OptionParser parser ) { } }
parser . acceptsAll ( Arrays . asList ( OPT_D , OPT_DIR ) , "directory path for input/output" ) . withRequiredArg ( ) . describedAs ( "dir-path" ) . ofType ( String . class ) ;
public class AuthorizationApi { /** * Build query parameters * @ param clientId The ID of the application or service that is registered as the client . You & # 39 ; ll need to get this value from your PureEngage Cloud representative . * @ param redirectUri The URI that you want users to be redirected to after enter...
if ( clientId == null ) { throw new IllegalArgumentException ( "Missing the required parameter 'client_id'" ) ; } if ( redirectUri == null ) { throw new IllegalArgumentException ( "Missing the required parameter 'redirect_uri'" ) ; } if ( responseType == null ) { throw new IllegalArgumentException ( "Missing the requir...
public class AbstractZealotConfig { /** * 配置Zealot的普通配置信息 ( 默认配置方法 , 开发者可覆盖此方法来做一些自定义配置 ) . * @ param normalConfig 普通配置实例 */ public void configNormal ( NormalConfig normalConfig ) { } }
normalConfig . setDebug ( false ) . setPrintBanner ( true ) . setPrintSqlInfo ( true ) ;
public class ReviewsImpl { /** * Use this method to add frames for a video review . Timescale : This parameter is a factor which is used to convert the timestamp on a frame into milliseconds . Timescale is provided in the output of the Content Moderator video media processor on the Azure Media Services platform . Times...
if ( this . client . baseUrl ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.baseUrl() is required and cannot be null." ) ; } if ( teamName == null ) { throw new IllegalArgumentException ( "Parameter teamName is required and cannot be null." ) ; } if ( reviewId == null ) { throw new IllegalA...
public class OAuth2ConnectionFactory { /** * Create a OAuth2 - based { @ link Connection } from the { @ link AccessGrant } returned after { @ link # getOAuthOperations ( ) completing the OAuth2 flow } . * @ param accessGrant the access grant * @ return the new service provider connection * @ see OAuth2Operations ...
return new OAuth2Connection < S > ( getProviderId ( ) , extractProviderUserId ( accessGrant ) , accessGrant . getAccessToken ( ) , accessGrant . getRefreshToken ( ) , accessGrant . getExpireTime ( ) , getOAuth2ServiceProvider ( ) , getApiAdapter ( ) ) ;
public class DatabaseVulnerabilityAssessmentScansInner { /** * Lists the vulnerability assessment scans of a database . * @ 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 serverName The name ...
return listByDatabaseSinglePageAsync ( resourceGroupName , serverName , databaseName ) . concatMap ( new Func1 < ServiceResponse < Page < VulnerabilityAssessmentScanRecordInner > > , Observable < ServiceResponse < Page < VulnerabilityAssessmentScanRecordInner > > > > ( ) { @ Override public Observable < ServiceResponse...
public class SecurityModule { /** * Applies the new configuration to this module . */ public void reconfigure ( SecurityConfig config ) { } }
this . config = config ; LOGGER . debug ( "reconfiguring with {} rules" , config . getRules ( ) . size ( ) ) ; Map < String , Map < String , ResourcePermission > > newPermissions = new HashMap < > ( ) ; for ( SecurityRule rule : config . getRules ( ) ) { String resourceType = rule . getResourceType ( ) ; if ( resourceT...
public class AsciiTable { /** * Sets the left padding character for all cells in the table . * @ param paddingLeftChar new padding character , ignored if null * @ return this to allow chaining */ public AsciiTable setPaddingLeftChar ( Character paddingLeftChar ) { } }
for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setPaddingLeftChar ( paddingLeftChar ) ; } } return this ;
public class MarkupEngine { /** * Process the body of the file . * @ param context the parser context */ private void processDefaultBody ( ParserContext context ) { } }
StringBuilder body = new StringBuilder ( ) ; boolean inBody = false ; for ( String line : context . getFileLines ( ) ) { if ( inBody ) { body . append ( line ) . append ( "\n" ) ; } if ( line . equals ( configuration . getHeaderSeparator ( ) ) ) { inBody = true ; } } if ( body . length ( ) == 0 ) { for ( String line : ...
public class SignatureAlgorithmConverter { /** * Converts an OpenSSL algorithm name to a Java algorithm name and return it , * or return { @ code null } if the conversation failed because the format is not known . */ static String toJavaName ( String opensslName ) { } }
if ( opensslName == null ) { return null ; } Matcher matcher = PATTERN . matcher ( opensslName ) ; if ( matcher . matches ( ) ) { String group1 = matcher . group ( 1 ) ; if ( group1 != null ) { return group1 . toUpperCase ( Locale . ROOT ) + "with" + matcher . group ( 2 ) . toUpperCase ( Locale . ROOT ) ; } if ( matche...
public class CurrencyPair { /** * Given another CurrencyPair find the common Currency ( if any ) or the first if both are identical * @ param otherPair * @ return the common ccy or Empty optional */ public Optional < String > findCommonCcy ( final CurrencyPair otherPair ) { } }
if ( containsCcy ( otherPair . getCcy1 ( ) ) ) { return Optional . of ( otherPair . getCcy1 ( ) ) ; } return containsCcy ( otherPair . getCcy2 ( ) ) ? Optional . of ( otherPair . getCcy2 ( ) ) : Optional . empty ( ) ;
public class ListTaskDefinitionsResult { /** * The list of task definition Amazon Resource Name ( ARN ) entries for the < code > ListTaskDefinitions < / code > request . * @ return The list of task definition Amazon Resource Name ( ARN ) entries for the < code > ListTaskDefinitions < / code > * request . */ public ...
if ( taskDefinitionArns == null ) { taskDefinitionArns = new com . amazonaws . internal . SdkInternalList < String > ( ) ; } return taskDefinitionArns ;
public class Discrete { /** * Creates a list of scalars from a list of Pair given in the form * ` \ left ( \ { x _ 1 , y _ 1 \ } , . . . , \ { x _ n , y _ n \ } \ right ) ` * @ param xyValues is the list of Pair * @ return a vector of scalars as ` ( x _ 1 , y _ 1 , . . . , x _ n , y _ n ) ` */ public static List ...
List < Double > result = new ArrayList < Double > ( xyValues . size ( ) * 2 ) ; for ( Pair pair : xyValues ) { result . add ( pair . getX ( ) ) ; result . add ( pair . getY ( ) ) ; } return result ;
public class MPPReader { /** * This method validates all relationships for a task , removing * any which have been incorrectly read from the MPP file and * point to a parent task . * @ param task task under test */ private void validationRelations ( Task task ) { } }
List < Relation > predecessors = task . getPredecessors ( ) ; if ( ! predecessors . isEmpty ( ) ) { ArrayList < Relation > invalid = new ArrayList < Relation > ( ) ; for ( Relation relation : predecessors ) { Task sourceTask = relation . getSourceTask ( ) ; Task targetTask = relation . getTargetTask ( ) ; String source...
public class OverlapResolver { /** * Calculates a score based on the overlap of atoms and intersection of bonds . * The overlap is calculated by summing up the distances between all pairs of * atoms , if they are less than half the standard bondlength apart . * @ param ac The Atomcontainer to work on * @ param ...
double overlapScore = 0 ; overlapScore = getAtomOverlapScore ( ac , overlappingAtoms ) ; // overlapScore + = getBondOverlapScore ( ac , overlappingBonds ) ; return overlapScore ;
public class ConfigUtil { /** * Normalizes key - value properties from Yaml in the normalized format of the Table API . */ public static DescriptorProperties normalizeYaml ( Map < String , Object > yamlMap ) { } }
final Map < String , String > normalized = new HashMap < > ( ) ; yamlMap . forEach ( ( k , v ) -> normalizeYamlObject ( normalized , k , v ) ) ; final DescriptorProperties properties = new DescriptorProperties ( true ) ; properties . putProperties ( normalized ) ; return properties ;
public class FailoverGroupsInner { /** * Updates a failover group . * @ 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 serverName The name of the server containing the failover group . * @ ...
return beginUpdateWithServiceResponseAsync ( resourceGroupName , serverName , failoverGroupName , parameters ) . map ( new Func1 < ServiceResponse < FailoverGroupInner > , FailoverGroupInner > ( ) { @ Override public FailoverGroupInner call ( ServiceResponse < FailoverGroupInner > response ) { return response . body ( ...
public class OLAPSession { /** * Perform an aggregate query for the given table and query parameters . The table must * belong to this session ' s application . Query parameters are specific to the storage * service managing the application . Common parameters are : * < table > * < tr > < td > Name < / td > < t...
// Prerequisites : Utils . require ( ! Utils . isEmpty ( tableName ) , "tableName" ) ; Utils . require ( params != null && params . size ( ) > 0 , "params" ) ; TableDefinition tableDef = m_appDef . getTableDef ( tableName ) ; Utils . require ( tableDef != null , "Table is not defined for application '%s': %s" , m_appDe...
public class Verifies { /** * MD5验证通知参数签名是否合法 ( WEB , WAP , 退款服务器通知 ) * @ param notifyParams 通知参数 * @ return 合法返回true , 反之false */ public Boolean md5 ( Map < String , String > notifyParams ) { } }
Map < String , String > validParams = filterSigningParams ( notifyParams ) ; String signing = buildSignString ( validParams ) ; String signed = md5 ( signing ) ; return Objects . equals ( notifyParams . get ( AlipayField . SIGN . field ( ) ) , signed ) ;
public class SpaceGroup { /** * Given a transformation matrix containing a rotation returns the type of rotation : * 1 for identity , 2 for 2 - fold rotation , 3 for 3 - fold rotation , 4 for 4 - fold rotation , * 6 for 6 - fold rotation , * - 1 for inversions , - 2 for mirror planes , - 3 for 3 - fold improper r...
int axisType = 0 ; Matrix3d rot = new Matrix3d ( m . m00 , m . m01 , m . m02 , m . m10 , m . m11 , m . m12 , m . m20 , m . m21 , m . m22 ) ; double determinant = rot . determinant ( ) ; if ( ! deltaComp ( determinant , 1.0 , DELTA ) && ! deltaComp ( determinant , - 1.0 , DELTA ) ) { throw new IllegalArgumentException (...
public class QueryExecuter { /** * Adds equivalents and parent complexes of the given PhysicalEntity to the parameter set . This * method traverses homologies only to one direction ( either towards parents or to the * children ) . * @ param pe The PhysicalEntity to add its equivalents and complexes * @ param ou...
Set < PhysicalEntity > set = outer ? pe . getMemberPhysicalEntityOf ( ) : pe . getMemberPhysicalEntity ( ) ; for ( PhysicalEntity related : set ) { for ( Complex cmp : related . getComponentOf ( ) ) { getRelatedPhysicalEntities ( cmp , pes ) ; } addEquivalentsComplexes ( related , outer , pes ) ; }
public class AmqpProperties { /** * Sets the value of " correlationId " property . If a null value is passed * in , it indicates that the property is not set . * @ param correlationId value of " correlationId " property */ public void setCorrelationId ( String correlationId ) { } }
if ( correlationId == null ) { _properties . remove ( AMQP_PROP_CORRELATION_ID ) ; return ; } _properties . put ( AMQP_PROP_CORRELATION_ID , correlationId ) ;
public class SessionLogsToFileRepository { /** * This creates log file object which represents logs in file form . This opens ObjectOutputStream * which is used to write logRecords to log file and opens a ObjectInputStream which is used to * read logRecords from the file . * @ param sessionId session - id for the...
File rcLogFile ; // create logFile ; rcLogFile = File . createTempFile ( sessionId . toString ( ) , ".rclog" ) ; rcLogFile . deleteOnExit ( ) ; LogFile logFile = new LogFile ( rcLogFile . getAbsolutePath ( ) ) ; sessionToLogFileMap . put ( sessionId , logFile ) ;
public class EngineHeadless { /** * Start engine . Has to be called before anything and only one time , in the main . * @ param name The program name ( must not be < code > null < / code > ) . * @ param version The program version ( must not be < code > null < / code > ) . * @ throws LionEngineException If argume...
Engine . start ( new EngineHeadless ( name , version , Constant . EMPTY_STRING ) ) ;
public class LinearSearch { /** * Search for the value in the char array and return the index of the first occurrence from the * end of the array . * @ param charArray array that we are searching in . * @ param value value that is being searched in the array . * @ param occurrence number of times we have seen t...
if ( occurrence <= 0 || occurrence > charArray . length ) { throw new IllegalArgumentException ( "Occurrence must be greater or equal to 1 and less than " + "the array length: " + occurrence ) ; } int valuesSeen = 0 ; for ( int i = charArray . length - 1 ; i >= 0 ; i -- ) { if ( charArray [ i ] == value ) { valuesSeen ...
public class MultiMinMaxSerializerStrategy { /** * Serialize a MultiNormalizerMinMaxScaler to a output stream * @ param normalizer the normalizer * @ param stream the output stream to write to * @ throws IOException */ public void write ( @ NonNull MultiNormalizerMinMaxScaler normalizer , @ NonNull OutputStream s...
try ( DataOutputStream dos = new DataOutputStream ( stream ) ) { dos . writeBoolean ( normalizer . isFitLabel ( ) ) ; dos . writeInt ( normalizer . numInputs ( ) ) ; dos . writeInt ( normalizer . isFitLabel ( ) ? normalizer . numOutputs ( ) : - 1 ) ; dos . writeDouble ( normalizer . getTargetMin ( ) ) ; dos . writeDoub...
public class BaseLayoutHelper { /** * Helper methods to handle focus states for views * @ param result * @ param views */ protected void handleStateOnResult ( LayoutChunkResult result , View [ ] views ) { } }
if ( views == null ) return ; for ( int i = 0 ; i < views . length ; i ++ ) { View view = views [ i ] ; if ( view == null ) { continue ; } RecyclerView . LayoutParams params = ( RecyclerView . LayoutParams ) view . getLayoutParams ( ) ; // Consume the available space if the view is not removed OR changed if ( params . ...
public class FileSystemUtilities { /** * If the supplied path refers to a file or directory below the supplied basedir , the returned * path is identical to the part below the basedir . * @ param path The path to strip off basedir path from , and return . * @ param parentDir The maven project basedir . * @ para...
// Check sanity Validate . notNull ( path , "path" ) ; Validate . notNull ( parentDir , "parentDir" ) ; final String basedirPath = FileSystemUtilities . getCanonicalPath ( parentDir ) ; String toReturn = path ; // Compare case insensitive if ( path . toLowerCase ( ) . startsWith ( basedirPath . toLowerCase ( ) ) ) { to...
public class XmlReport { /** * { @ inheritDoc } */ public void generate ( com . greenpepper . document . Document document ) { } }
this . document = document ; createEmptyDocument ( ) ; Statistics compiler = document . getStatistics ( ) ; Element element = dom . createElement ( DOCUMENT ) ; root . appendChild ( element ) ; if ( ! StringUtil . isEmpty ( document . getName ( ) ) ) { addTextValue ( element , DOCUMENT_NAME , document . getName ( ) , t...
public class PrefsTransformer { /** * Get Java primitive wrapping type Transformable . * @ param type the type * @ return the language transform */ static PrefsTransform getLanguageTransform ( TypeName type ) { } }
String typeName = type . toString ( ) ; if ( Integer . class . getCanonicalName ( ) . equals ( typeName ) ) { return new IntegerPrefsTransform ( true ) ; } if ( Boolean . class . getCanonicalName ( ) . equals ( typeName ) ) { return new BooleanPrefsTransform ( true ) ; } if ( Long . class . getCanonicalName ( ) . equal...
public class AbstractGeneratorConfigurationBlock { /** * Replies the image descriptor . * @ param imagePath the image path . * @ return the image descriptor . */ @ SuppressWarnings ( "static-method" ) protected ImageDescriptor getImageDescriptor ( String imagePath ) { } }
final LangActivator activator = LangActivator . getInstance ( ) ; final ImageRegistry registry = activator . getImageRegistry ( ) ; ImageDescriptor descriptor = registry . getDescriptor ( imagePath ) ; if ( descriptor == null ) { descriptor = AbstractUIPlugin . imageDescriptorFromPlugin ( activator . getBundle ( ) . ge...
public class TokenList { /** * Checks whether both tokens have the same texts . * @ param token1 The first token to check . * @ param token2 The second token to check . * @ return { @ literal true } if the tokens do not have the same texts , and { @ literal false } otherwise . */ private boolean tokenTextsDoNotMa...
return ! token1 . getText ( ) . equals ( token2 . getText ( ) ) ;
public class DirectedGraph { /** * Returns the set of all children of the requested node , or null if the node does not exist in the graph . * @ param n the node to obtain the children of * @ return the set of parents , or null if the node is not in the graph */ public Set < N > getChildren ( N n ) { } }
Pair < HashSet < N > , HashSet < N > > p = nodes . get ( n ) ; if ( p == null ) return null ; return p . getOutgoing ( ) ;
public class WhileyFileParser { /** * Attempt to match a given token on the * same * line , whilst ignoring any * whitespace in between . Note that , in the case it fails to match , then the * index will be unchanged . This latter point is important , otherwise we * could accidentally gobble up some important ind...
int next = skipLineSpace ( index ) ; if ( next < tokens . size ( ) ) { Token t = tokens . get ( next ) ; if ( t . kind == kind ) { index = next + 1 ; return t ; } } return null ;
public class CommonDialogWindow { /** * saves the original values in a Map so we can use them for detecting * changes */ public final void setOrginaleValues ( ) { } }
for ( final AbstractField < ? > field : allComponents ) { Object value = field . getValue ( ) ; if ( field instanceof Table ) { value = ( ( Table ) field ) . getContainerDataSource ( ) . getItemIds ( ) ; } orginalValues . put ( field , value ) ; } saveButton . setEnabled ( isSaveButtonEnabledAfterValueChange ( null , n...
public class ContentStoreServiceImpl { /** * { @ inheritDoc } */ @ Override public boolean destroyContext ( Context context ) throws InvalidContextException , StoreException , AuthenticationException { } }
if ( contexts . containsKey ( context . getId ( ) ) ) { context . getStoreAdapter ( ) . destroyContext ( context ) ; cacheTemplate . getCacheService ( ) . removeScope ( context ) ; contexts . remove ( context . getId ( ) ) ; return true ; } else { return false ; }
public class DDPStateSingleton { /** * Logs in using access token - - this breaks the current convention , * but the method call is dependent on some of this class ' s variables * @ param serviceName service name i . e facebook , google * @ param accessToken short - lived one - time code received , or long - live...
sendOAuthHTTPRequest ( serviceName , accessToken , randomSecret ( ) , new Response . Listener < String > ( ) { @ Override public void onResponse ( String response ) { // json is stored inside an html object in the response Matcher matcher = Pattern . compile ( "<div id=\"config\" style=\"display:none;\">(.*?)</div>" ) ...
public class LazyObject { /** * Returns the double value stored in this object for the given key . * Returns 0.0 if there is no such key . * @ param key the name of the field on this object * @ return the requested double value or 0.0 if there was no such key */ public double optDouble ( String key ) { } }
LazyNode token = getOptionalFieldToken ( key ) ; if ( token == null ) return 0.0 ; if ( token . type == LazyNode . VALUE_NULL ) return 0.0 ; return token . getDoubleValue ( ) ;
public class StringSearch { /** * Checks for identical match * @ param start offset of possible match * @ param end offset of possible match * @ return TRUE if identical match is found */ private boolean checkIdentical ( int start , int end ) { } }
if ( strength_ != Collator . IDENTICAL ) { return true ; } // Note : We could use Normalizer : : compare ( ) or similar , but for short strings // which may not be in FCD it might be faster to just NFD them . String textstr = getString ( targetText , start , end - start ) ; if ( Normalizer . quickCheck ( textstr , Norm...
public class AggregatorUtil { /** * Only one of fieldName and fieldExpression should be non - null */ static BaseLongColumnValueSelector makeColumnValueSelectorWithLongDefault ( final ColumnSelectorFactory metricFactory , final ExprMacroTable macroTable , @ Nullable final String fieldName , @ Nullable final String fiel...
if ( ( fieldName == null ) == ( fieldExpression == null ) ) { throw new IllegalArgumentException ( "Only one of fieldName and fieldExpression should be non-null" ) ; } if ( fieldName != null ) { return metricFactory . makeColumnValueSelector ( fieldName ) ; } else { final Expr expr = Parser . parse ( fieldExpression , ...
public class TransactionSynchronizationFuture { /** * Verify that the transaction id of the data provider is greater or equal to the transaction id in * the given message . * @ param message the return value of the internal future * @ return true if the transaction id of the data provider is greater or equal than...
// get transaction id from message final long transactionId = ( long ) message . getField ( transactionIdField ) ; // to work with older versions where no transaction id has been accept empty ids and print a warning if ( ! message . hasField ( transactionIdField ) || transactionId == 0 ) { logger . warn ( "Received ret...
public class DbsUtilities { /** * Quick method to convert a query to a map with geometry values . * @ param db the db to use . * @ param sql the query to run . It has to have at least 2 parameters , of which the second has to be a geometry field . The first will be used as key , the second as value . * @ param op...
Map < String , Geometry > map = optionalType ; if ( map == null ) { map = new HashMap < > ( ) ; } IGeometryParser gp = db . getType ( ) . getGeometryParser ( ) ; Map < String , Geometry > _map = map ; return db . execOnConnection ( connection -> { try ( IHMStatement stmt = connection . createStatement ( ) ; IHMResultSe...
public class CachedResultSet { /** * Renames the columns of a CachedResultSet . * @ param names the new names of the columns , starting from the first column . If not enought new names are provided , * the rest columns keep their original name . * @ return this object */ public CachedResultSet rename ( String ......
for ( int i = 0 ; i < names . length ; ++ i ) { this . columns [ i ] = names [ i ] ; } return this ;
public class CircularQueue { /** * Adds a new element to the queue . If the queue isn ' t large enough to store this value then its internal data * array will grow * @ param value Value which is to be added */ public void add ( T value ) { } }
// see if it needs to grow the queue if ( size >= data . length ) { growInnerArray ( ) ; } data [ ( start + size ) % data . length ] = value ; size ++ ;
public class GetPolicyVersionRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( GetPolicyVersionRequest getPolicyVersionRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( getPolicyVersionRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getPolicyVersionRequest . getPolicyName ( ) , POLICYNAME_BINDING ) ; protocolMarshaller . marshall ( getPolicyVersionRequest . getPolicyVersionId ( ) , POLICYVER...
public class PluginManager { /** * Discover all the service provider implementations of the given class , * via { @ code META - INF / services } . * @ deprecated Use { @ link ServiceLoader } instead , or ( more commonly ) { @ link ExtensionList } . */ @ Deprecated public < T > Collection < Class < ? extends T > > d...
Set < Class < ? extends T > > result = new HashSet < > ( ) ; for ( PluginWrapper p : activePlugins ) { Service . load ( spi , p . classLoader , result ) ; } return result ;
public class ViewPropertyAnimatorPreHC { /** * Utility function , called by the various x ( ) , y ( ) , etc . methods . This stores the * constant name for the property along with the from / delta values that will be used to * calculate and set the property during the animation . This structure is added to the * ...
float fromValue = getValue ( constantName ) ; float deltaValue = toValue - fromValue ; animatePropertyBy ( constantName , fromValue , deltaValue ) ;
public class LocaleIDParser { /** * Advance index past script . * Index must be immediately after the language and IDSeparator . * If the item at this position is not a script ( is not four characters * long ) leave index . Otherwise index is left at a terminator or * id separator . */ private void skipScript (...
if ( ! atTerminator ( ) ) { int oldIndex = index ; ++ index ; char c ; while ( ! isTerminatorOrIDSeparator ( c = next ( ) ) && AsciiUtil . isAlpha ( c ) ) ; -- index ; if ( index - oldIndex != 5 ) { // + 1 to account for separator index = oldIndex ; } }
public class ConcatVectorNamespace { /** * This adds a dense feature to a vector , setting the appropriate component of the given vector to the passed in * value . * @ param vector the vector * @ param featureName the feature whose value to set * @ param value the value we want to set this vector to */ public v...
vector . setDenseComponent ( ensureFeature ( featureName ) , value ) ;
public class CylinderRenderer { /** * Draws a cylinder to represent one data item . * @ param g2 the graphics device . * @ param state the renderer state . * @ param dataArea the area for plotting the data . * @ param plot the plot . * @ param domainAxis the domain axis . * @ param rangeAxis the range axis ...
// check the value we are plotting . . . Number dataValue = dataset . getValue ( row , column ) ; if ( dataValue == null ) { return ; } double value = dataValue . doubleValue ( ) ; Rectangle2D adjusted = new Rectangle2D . Double ( dataArea . getX ( ) , dataArea . getY ( ) + getYOffset ( ) , dataArea . getWidth ( ) - ge...
public class XmlRuleSet { /** * Parses the file at the given location and creates a { @ link Document } instance to read the rules from . * @ param location location of the XML file * @ return { @ link Document } instance representing the XML file */ private Document buildDocument ( String location ) { } }
try { return documentBuilderFactory . newDocumentBuilder ( ) . parse ( ClassPathResource . asInputStream ( location ) ) ; } catch ( ParserConfigurationException | SAXException | IOException | RuntimeException e ) { throw new XmlRuleSetException ( "Could not parse RuleSet from given location '" + location + "'." , e ) ;...
public class ListAssessmentRunAgentsResult { /** * A list of ARNs that specifies the agents returned by the action . * @ param assessmentRunAgents * A list of ARNs that specifies the agents returned by the action . */ public void setAssessmentRunAgents ( java . util . Collection < AssessmentRunAgent > assessmentRun...
if ( assessmentRunAgents == null ) { this . assessmentRunAgents = null ; return ; } this . assessmentRunAgents = new java . util . ArrayList < AssessmentRunAgent > ( assessmentRunAgents ) ;
public class GeneralUtils { /** * Converts an expression into the String source . Only some specific expressions like closure expression * support this . * @ param readerSource a source * @ param expression an expression . Can ' t be null * @ return the source the closure was created from * @ throws java . la...
if ( expression == null ) throw new IllegalArgumentException ( "Null: expression" ) ; StringBuilder result = new StringBuilder ( ) ; for ( int x = expression . getLineNumber ( ) ; x <= expression . getLastLineNumber ( ) ; x ++ ) { String line = readerSource . getLine ( x , null ) ; if ( line == null ) { throw new Excep...
public class MessageManager { /** * Starts an AsyncTask to pre - fetch messages . This is to be called as part of Push notification action * when push is received on the device . */ public void startMessagePreFetchTask ( ) { } }
try { boolean updateMC = isMessageCenterInForeground ( ) ; fetchAndStoreMessages ( updateMC , false , null ) ; } catch ( final Exception e ) { ApptentiveLog . w ( MESSAGES , e , "Unhandled Exception thrown from fetching new message task" ) ; logException ( e ) ; }
public class Interpreter { /** * Evaluate zero or more conditional expressions , and check whether any is * false . If so , raise an exception indicating a runtime fault . * @ param frame * @ param context * @ param invariants */ public void checkInvariants ( CallStack frame , Expr ... invariants ) { } }
for ( int i = 0 ; i != invariants . length ; ++ i ) { RValue . Bool b = executeExpression ( BOOL_T , invariants [ i ] , frame ) ; if ( b == RValue . False ) { // FIXME : need to do more here throw new AssertionError ( ) ; } }
public class Analyser { /** * USE _ INFINITE _ REPEAT _ MONOMANIAC _ MEM _ STATUS _ CHECK */ private int quantifiersMemoryInfo ( Node node ) { } }
int info = 0 ; switch ( node . getType ( ) ) { case NodeType . LIST : case NodeType . ALT : ListNode can = ( ListNode ) node ; do { int v = quantifiersMemoryInfo ( can . value ) ; if ( v > info ) info = v ; } while ( ( can = can . tail ) != null ) ; break ; case NodeType . CALL : if ( Config . USE_SUBEXP_CALL ) { CallN...
public class SQLiteExecutor { /** * Returns values from all rows associated with the specified < code > targetClass < / code > if the specified < code > targetClass < / code > is an entity class , otherwise , only returns values from first column . * @ param targetClass entity class or specific column type . * @ pa...
if ( N . isEntity ( targetClass ) ) { final DataSet ds = extractData ( targetClass , cursor , offset , count ) ; if ( ds == null || ds . isEmpty ( ) ) { return new ArrayList < > ( ) ; } else { return ds . toList ( targetClass ) ; } } else { return toList ( targetClass , cursor , 0 , offset , count ) ; }
public class BinaryJedis { /** * Atomically renames the key oldkey to newkey . If the source and destination name are the same an * error is returned . If newkey already exists it is overwritten . * Time complexity : O ( 1) * @ param oldkey * @ param newkey * @ return Status code repy */ @ Override public Str...
checkIsInMultiOrPipeline ( ) ; client . rename ( oldkey , newkey ) ; return client . getStatusCodeReply ( ) ;
public class MGORGImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public boolean eIsSet ( int featureID ) { } }
switch ( featureID ) { case AfplibPackage . MGORG__RG_LENGTH : return RG_LENGTH_EDEFAULT == null ? rgLength != null : ! RG_LENGTH_EDEFAULT . equals ( rgLength ) ; case AfplibPackage . MGORG__TRIPLETS : return triplets != null && ! triplets . isEmpty ( ) ; } return super . eIsSet ( featureID ) ;
public class Version { /** * See ISO 18004:2006 6.5.1 Table 9 */ private static Version [ ] buildVersions ( ) { } }
return new Version [ ] { new Version ( 1 , new int [ ] { } , new ECBlocks ( 7 , new ECB ( 1 , 19 ) ) , new ECBlocks ( 10 , new ECB ( 1 , 16 ) ) , new ECBlocks ( 13 , new ECB ( 1 , 13 ) ) , new ECBlocks ( 17 , new ECB ( 1 , 9 ) ) ) , new Version ( 2 , new int [ ] { 6 , 18 } , new ECBlocks ( 10 , new ECB ( 1 , 34 ) ) , n...
public class SQLStore { /** * { @ inheritDoc } */ @ Override public void reset ( ) { } }
ensureOpen ( ) ; String sql = String . format ( "Delete from %s_property" , className ) ; database . execSQL ( sql ) ;
public class HurlStack { /** * Opens an { @ link HttpURLConnection } with parameters . * @ param url * @ return an open connection * @ throws IOException */ private HttpURLConnection openConnection ( URL url , Request < ? > request ) throws IOException { } }
HttpURLConnection connection = createConnection ( url ) ; int timeoutMs = request . getTimeoutMs ( ) ; connection . setConnectTimeout ( timeoutMs ) ; connection . setReadTimeout ( timeoutMs ) ; connection . setUseCaches ( false ) ; connection . setDoInput ( true ) ; // use caller - provided custom SslSocketFactory , if...
public class SQLTimeAccessor { /** * ( non - Javadoc ) * @ see * com . impetus . kundera . property . PropertyAccessor # fromString ( java . lang . String */ @ Override public Time fromString ( Class targetClass , String s ) { } }
if ( s == null ) { return null ; } if ( StringUtils . isNumeric ( s ) ) { return new Time ( Long . parseLong ( s ) ) ; } Time t = Time . valueOf ( s ) ; return t ;
public class LibraryUtils { /** * Convert an * < a href = " http : / / docs . oracle . com / javase / 7 / docs / api / java / io / InputStream . html " > InputSteam < / a > to a byte array . * @ param inputStream the < code > InputStream < / code > to convert . * @ return a byte array containing the data from the...
ByteArrayOutputStream buffer = new ByteArrayOutputStream ( ) ; int nRead ; byte [ ] bytes = new byte [ 1024 ] ; while ( ( nRead = inputStream . read ( bytes , 0 , 1024 ) ) != - 1 ) { buffer . write ( bytes , 0 , nRead ) ; } return buffer . toByteArray ( ) ;
public class CrateDigger { /** * Send a database announcement to all registered listeners . * @ param slot the media slot whose database availability has changed * @ param database the database whose relevance has changed * @ param available if { @ code } true , the database is newly available , otherwise it is n...
for ( final DatabaseListener listener : getDatabaseListeners ( ) ) { try { if ( available ) { listener . databaseMounted ( slot , database ) ; } else { listener . databaseUnmounted ( slot , database ) ; } } catch ( Throwable t ) { logger . warn ( "Problem delivering rekordbox database availability update to listener" ,...
public class BulkEmailDestination { /** * A list of tags , in the form of name / value pairs , to apply to an email that you send using * < code > SendBulkTemplatedEmail < / code > . Tags correspond to characteristics of the email that you define , so that you * can publish email sending events . * < b > NOTE : <...
if ( this . replacementTags == null ) { setReplacementTags ( new com . amazonaws . internal . SdkInternalList < MessageTag > ( replacementTags . length ) ) ; } for ( MessageTag ele : replacementTags ) { this . replacementTags . add ( ele ) ; } return this ;
public class FilePathProcessor { /** * Apply a function to the files under a given directory and * perhaps its subdirectories . If the path is a directory then only * files within the directory ( perhaps recursively ) that satisfy the * filter are processed . If the < code > path < / code > is a file , then * t...
if ( path . isDirectory ( ) ) { // if path is a directory , look into it File [ ] directoryListing = path . listFiles ( filter ) ; if ( directoryListing == null ) { throw new IllegalArgumentException ( "Directory access problem for: " + path ) ; } for ( File file : directoryListing ) { processPath ( file , filter , pro...
public class CmsSubscriptionDriver { /** * Build the whole WHERE SQL statement part for the given visit entry filter . < p > * @ param filter the filter * @ return a pair containing both the SQL and the parameters for it */ protected CmsPair < String , List < I_CmsPreparedStatementParameter > > prepareVisitConditio...
List < I_CmsPreparedStatementParameter > params = new ArrayList < I_CmsPreparedStatementParameter > ( ) ; StringBuffer conditions = new StringBuffer ( ) ; // user id filter if ( filter . getUserId ( ) != null ) { if ( conditions . length ( ) == 0 ) { conditions . append ( BEGIN_CONDITION ) ; } else { conditions . appen...
public class SoyTypeRegistry { /** * Factory function which creates a map type , given a key and value type . This folds map types * with identical key / value types together , so asking for the same key / value type twice will * return a pointer to the same type object . * @ param keyType The key type of the map...
return mapTypes . intern ( MapType . of ( keyType , valueType ) ) ;
public class KriptonContentValues { /** * Bind . * @ param statement the statement */ public void bind ( SQLiteStatement statement ) { } }
if ( this . compiledStatement != null ) { // already binded return ; } int index = 1 ; statement . clearBindings ( ) ; Object value ; for ( int j = 0 ; j < args . size ( ) ; j ++ ) { value = args . get ( j ) ; switch ( valueType . get ( index - 1 ) ) { case BOOLEAN : statement . bindLong ( index , ( long ) ( ( ( Boolea...
public class DirectCompactSketch { /** * restricted methods */ @ Override long [ ] getCache ( ) { } }
final int curCount = getRetainedEntries ( true ) ; if ( curCount > 0 ) { final long [ ] cache = new long [ curCount ] ; final int preLongs = getCurrentPreambleLongs ( true ) ; mem_ . getLongArray ( preLongs << 3 , cache , 0 , curCount ) ; return cache ; } return new long [ 0 ] ;
public class UniverseApi { /** * Get solar system information ( asynchronously ) Get information on a solar * system . - - - This route expires daily at 11:05 * @ param systemId * system _ id integer ( required ) * @ param acceptLanguage * Language to use in the response ( optional , default to en - us ) * ...
com . squareup . okhttp . Call call = getUniverseSystemsSystemIdValidateBeforeCall ( systemId , acceptLanguage , datasource , ifNoneMatch , language , callback ) ; Type localVarReturnType = new TypeToken < SystemResponse > ( ) { } . getType ( ) ; apiClient . executeAsync ( call , localVarReturnType , callback ) ; retur...
public class Start { /** * { @ inheritDoc } */ public void execute ( ) throws MojoExecutionException , MojoFailureException { } }
if ( getHome ( ) == null ) throw new MojoFailureException ( "Home isn't set" ) ; try { ProcessController pc = ProcessController . getInstance ( ) ; if ( ! pc . start ( getHome ( ) , options ) ) throw new MojoFailureException ( "IronJacamar instance couldn't be started from: " + getHome ( ) ) ; getLog ( ) . info ( "Star...
public class TitlePaneCloseButtonPainter { /** * Create the shape for the mark border . * @ param width the width . * @ param height the height . * @ return the shape of the mark border . */ private Shape decodeMarkBorder ( int width , int height ) { } }
int left = ( width - 3 ) / 2 - 5 ; int top = ( height - 2 ) / 2 - 5 ; path . reset ( ) ; path . moveTo ( left + 1 , top + 0 ) ; path . lineTo ( left + 3 , top + 0 ) ; path . pointAt ( left + 4 , top + 1 ) ; path . pointAt ( left + 5 , top + 2 ) ; path . pointAt ( left + 6 , top + 1 ) ; path . moveTo ( left + 7 , top + ...
public class PolicyEventsInner { /** * Queries policy events for the resources under the management group . * @ param managementGroupName Management group name . * @ param queryOptions Additional parameters for the operation * @ throws IllegalArgumentException thrown if parameters fail the validation * @ throws...
return listQueryResultsForManagementGroupWithServiceResponseAsync ( managementGroupName , queryOptions ) . toBlocking ( ) . single ( ) . body ( ) ;
public class CmsADEManager { /** * Processes a HTML redirect content . < p > * This needs to be in the ADE manager because the user for whom the HTML redirect is being loaded * does not necessarily have read permissions for the redirect target , so we read the redirect target * with admin privileges . < p > * @...
CmsObject cms = OpenCms . initCmsObject ( m_offlineCms ) ; CmsRequestContext userContext = userCms . getRequestContext ( ) ; CmsRequestContext currentContext = cms . getRequestContext ( ) ; currentContext . setCurrentProject ( userContext . getCurrentProject ( ) ) ; currentContext . setSiteRoot ( userContext . getSiteR...
public class AmazonAppStreamClient { /** * Starts the specified image builder . * @ param startImageBuilderRequest * @ return Result of the StartImageBuilder operation returned by the service . * @ throws ResourceNotAvailableException * The specified resource exists and is not in use , but isn ' t available . ...
request = beforeClientExecution ( request ) ; return executeStartImageBuilder ( request ) ;
public class SloppyMath { /** * Find a 2x2 chi - square value . * Note : could do this more neatly using simplified formula for 2x2 case . * @ param k The number of black balls drawn * @ param n The total number of balls * @ param r The number of black balls * @ param m The number of balls drawn * @ return ...
int [ ] [ ] cg = { { k , r - k } , { m - k , n - ( k + ( r - k ) + ( m - k ) ) } } ; int [ ] cgr = { r , n - r } ; int [ ] cgc = { m , n - m } ; double total = 0.0 ; for ( int i = 0 ; i < 2 ; i ++ ) { for ( int j = 0 ; j < 2 ; j ++ ) { double exp = ( double ) cgr [ i ] * cgc [ j ] / n ; total += ( cg [ i ] [ j ] - exp ...
public class DRL6Expressions { /** * src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 723:1 : expressionList returns [ java . util . List < String > exprs ] : f = expression ( COMMA s = expression ) * ; */ public final java . util . List < String > expressionList ( ) throws RecognitionExc...
java . util . List < String > exprs = null ; ParserRuleReturnScope f = null ; ParserRuleReturnScope s = null ; exprs = new java . util . ArrayList < String > ( ) ; try { // src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 725:3 : ( f = expression ( COMMA s = expression ) * ) // src / main...
public class auditsyslogpolicy_lbvserver_binding { /** * Use this API to fetch auditsyslogpolicy _ lbvserver _ binding resources of given name . */ public static auditsyslogpolicy_lbvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { } }
auditsyslogpolicy_lbvserver_binding obj = new auditsyslogpolicy_lbvserver_binding ( ) ; obj . set_name ( name ) ; auditsyslogpolicy_lbvserver_binding response [ ] = ( auditsyslogpolicy_lbvserver_binding [ ] ) obj . get_resources ( service ) ; return response ;