signature
stringlengths 43
39.1k
| implementation
stringlengths 0
450k
|
|---|---|
public class TimeFinder { /** * Checks whether a CDJ status update seems to be close enough to a cue that if we just jumped there ( or just
* loaded the track ) it would be a reasonable assumption that we jumped to the cue .
* @ param update the status update to check for proximity to hot cues and memory points
* @ param beatGrid the beat grid of the track being played
* @ return a matching memory point if we had a cue list available and were within a beat of one , or { @ code null } */
private CueList . Entry findAdjacentCue ( CdjStatus update , BeatGrid beatGrid ) { } }
|
if ( ! MetadataFinder . getInstance ( ) . isRunning ( ) ) return null ; final TrackMetadata metadata = MetadataFinder . getInstance ( ) . getLatestMetadataFor ( update ) ; final int newBeat = update . getBeatNumber ( ) ; if ( metadata != null && metadata . getCueList ( ) != null ) { for ( CueList . Entry entry : metadata . getCueList ( ) . entries ) { final int entryBeat = beatGrid . findBeatAtTime ( entry . cueTime ) ; if ( Math . abs ( newBeat - entryBeat ) < 2 ) { return entry ; // We have found a cue we likely jumped to
} if ( entryBeat > newBeat ) { break ; // We have moved past our location , no point scanning further .
} } } return null ;
|
public class CommerceNotificationTemplateUserSegmentRelPersistenceImpl { /** * Clears the cache for all commerce notification template user segment rels .
* The { @ link EntityCache } and { @ link FinderCache } are both cleared by this method . */
@ Override public void clearCache ( ) { } }
|
entityCache . clearCache ( CommerceNotificationTemplateUserSegmentRelImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ;
|
public class RIWordsiMain { /** * { @ inheritDoc } */
protected ContextExtractor getExtractor ( ) { } }
|
// Create the new context generator .
ContextGenerator generator = new RandomIndexingContextGenerator ( indexMap , permFunction , indexVectorLength ) ; return contextExtractorFromGenerator ( generator ) ;
|
public class Quantifier { /** * Implement UnicodeMatcher API */
public String toPattern ( boolean escapeUnprintable ) { } }
|
StringBuilder result = new StringBuilder ( ) ; result . append ( matcher . toPattern ( escapeUnprintable ) ) ; if ( minCount == 0 ) { if ( maxCount == 1 ) { return result . append ( '?' ) . toString ( ) ; } else if ( maxCount == MAX ) { return result . append ( '*' ) . toString ( ) ; } // else fall through
} else if ( minCount == 1 && maxCount == MAX ) { return result . append ( '+' ) . toString ( ) ; } result . append ( '{' ) ; result . append ( Utility . hex ( minCount , 1 ) ) ; result . append ( ',' ) ; if ( maxCount != MAX ) { result . append ( Utility . hex ( maxCount , 1 ) ) ; } result . append ( '}' ) ; return result . toString ( ) ;
|
public class URLCodec { /** * Convenience method for { @ link # decode ( CharSequence , Charset , Appendable ) } . */
public static void decode ( CharSequence in , Appendable out ) throws IOException { } }
|
decode ( in , UTF_8 , out ) ;
|
public class GitHubClientCacheOps { /** * To accept for cleaning only not active cache dirs
* @ param caches set of active cache names , extracted with help of { @ link # cacheToName ( ) }
* @ return filter to accept only names not in set */
public static DirectoryStream . Filter < Path > notInCaches ( Set < String > caches ) { } }
|
checkNotNull ( caches , "set of active caches can't be null" ) ; return new NotInCachesFilter ( caches ) ;
|
public class FormFieldValidator { /** * Sends out a string error message that indicates an error ,
* by formatting it with { @ link String # format ( String , Object [ ] ) } */
public void error ( String format , Object ... args ) throws IOException , ServletException { } }
|
error ( String . format ( format , args ) ) ;
|
public class UpdateSecurityProfileResult { /** * Where the alerts are sent . ( Alerts are always sent to the console . )
* @ param alertTargets
* Where the alerts are sent . ( Alerts are always sent to the console . )
* @ return Returns a reference to this object so that method calls can be chained together . */
public UpdateSecurityProfileResult withAlertTargets ( java . util . Map < String , AlertTarget > alertTargets ) { } }
|
setAlertTargets ( alertTargets ) ; return this ;
|
public class CmsSetupBean { /** * Creates an string out of the given array to store back in the property file . < p >
* @ param values the array with the values to create a string from
* @ return a string with the values of the array which is ready to store in the property file */
private String createValueString ( String [ ] values ) { } }
|
StringBuffer buf = new StringBuffer ( ) ; for ( int i = 0 ; i < values . length ; i ++ ) { // escape commas and equals in value
values [ i ] = CmsStringUtil . substitute ( values [ i ] , "," , "\\," ) ; values [ i ] = CmsStringUtil . substitute ( values [ i ] , "=" , "\\=" ) ; buf . append ( "\t" + values [ i ] + ( ( i < ( values . length - 1 ) ) ? ",\\\n" : "" ) ) ; } return buf . toString ( ) ;
|
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcGridAxis ( ) { } }
|
if ( ifcGridAxisEClass == null ) { ifcGridAxisEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 308 ) ; } return ifcGridAxisEClass ;
|
public class AbstractMessage { /** * Get a hash code for given fields and values , using the given seed . */
@ SuppressWarnings ( "unchecked" ) protected int hashFields ( int hash , Map < FieldDescriptor , Object > map ) { } }
|
for ( Map . Entry < FieldDescriptor , Object > entry : map . entrySet ( ) ) { FieldDescriptor field = entry . getKey ( ) ; Object value = entry . getValue ( ) ; hash = ( 37 * hash ) + field . getNumber ( ) ; if ( field . getType ( ) != FieldDescriptor . Type . ENUM ) { hash = ( 53 * hash ) + value . hashCode ( ) ; } else if ( field . isRepeated ( ) ) { List < ? extends EnumLite > list = ( List < ? extends EnumLite > ) value ; hash = ( 53 * hash ) + hashEnumList ( list ) ; } else { hash = ( 53 * hash ) + hashEnum ( ( EnumLite ) value ) ; } } return hash ;
|
public class RawTextContextUpdater { /** * A transition to the given state . */
private static Transition makeTransitionToStateLiteral ( String literal , final HtmlContext state ) { } }
|
return new Transition ( literal ) { @ Override Context computeNextContext ( Context prior , Matcher matcher ) { return prior . transitionToState ( state ) ; } } ;
|
public class AbstractClassHierarchyMap { /** * This method determines if the given { @ code element } should be { @ link # get ( Class ) associated } with
* { @ code currentType } in preference to the element { @ code existing } that is already registered and will be replaced
* according to the result of this method .
* @ param element is the element to register .
* @ param elementType is the type for which the given { @ code element } is to be registered originally .
* @ param existing is the element that has already been registered before and is { @ link # get ( Class ) associated } with
* { @ code currentType } .
* @ param currentType is the registration type .
* @ return { @ code true } if the given { @ code element } is preferable and should replace { @ code existing } for
* { @ code currentType } , { @ code false } otherwise ( if { @ code existing } should remain { @ link # get ( Class )
* associated } with { @ code currentType } ) . */
protected boolean isPreferable ( E element , Class < ? > elementType , E existing , Class < ? > currentType ) { } }
|
return false ;
|
public class MarkdownNotebookOutput { /** * Code file string .
* @ param file the file
* @ return the string
* @ throws IOException the io exception */
public String codeFile ( @ javax . annotation . Nonnull File file ) throws IOException { } }
|
Path path = pathToCodeFile ( file ) ; if ( null != getAbsoluteUrl ( ) ) { try { return new URI ( getAbsoluteUrl ( ) ) . resolve ( path . normalize ( ) . toString ( ) . replaceAll ( "\\\\" , "/" ) ) . normalize ( ) . toString ( ) ; } catch ( URISyntaxException e ) { throw new RuntimeException ( e ) ; } } else { return path . normalize ( ) . toString ( ) . replaceAll ( "\\\\" , "/" ) ; }
|
public class CPFriendlyURLEntryLocalServiceBaseImpl { /** * Returns the number of rows matching the dynamic query .
* @ param dynamicQuery the dynamic query
* @ param projection the projection to apply to the query
* @ return the number of rows matching the dynamic query */
@ Override public long dynamicQueryCount ( DynamicQuery dynamicQuery , Projection projection ) { } }
|
return cpFriendlyURLEntryPersistence . countWithDynamicQuery ( dynamicQuery , projection ) ;
|
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EObject create ( EClass eClass ) { } }
|
switch ( eClass . getClassifierID ( ) ) { case AfplibPackage . LINE_DATA : return createLineData ( ) ; case AfplibPackage . BAG : return createBAG ( ) ; case AfplibPackage . BBC : return createBBC ( ) ; case AfplibPackage . BCA : return createBCA ( ) ; case AfplibPackage . BCF : return createBCF ( ) ; case AfplibPackage . BCP : return createBCP ( ) ; case AfplibPackage . BDA : return createBDA ( ) ; case AfplibPackage . BDD : return createBDD ( ) ; case AfplibPackage . BDG : return createBDG ( ) ; case AfplibPackage . BDI : return createBDI ( ) ; case AfplibPackage . BDM : return createBDM ( ) ; case AfplibPackage . BDT : return createBDT ( ) ; case AfplibPackage . BDX : return createBDX ( ) ; case AfplibPackage . BFG : return createBFG ( ) ; case AfplibPackage . BFM : return createBFM ( ) ; case AfplibPackage . BFN : return createBFN ( ) ; case AfplibPackage . BGR : return createBGR ( ) ; case AfplibPackage . BII : return createBII ( ) ; case AfplibPackage . BIM : return createBIM ( ) ; case AfplibPackage . BMM : return createBMM ( ) ; case AfplibPackage . BMO : return createBMO ( ) ; case AfplibPackage . BNG : return createBNG ( ) ; case AfplibPackage . BOC : return createBOC ( ) ; case AfplibPackage . BOG : return createBOG ( ) ; case AfplibPackage . BPF : return createBPF ( ) ; case AfplibPackage . BPG : return createBPG ( ) ; case AfplibPackage . BPM : return createBPM ( ) ; case AfplibPackage . BPS : return createBPS ( ) ; case AfplibPackage . BPT : return createBPT ( ) ; case AfplibPackage . BRG : return createBRG ( ) ; case AfplibPackage . BRS : return createBRS ( ) ; case AfplibPackage . BSG : return createBSG ( ) ; case AfplibPackage . CAT : return createCAT ( ) ; case AfplibPackage . CDD : return createCDD ( ) ; case AfplibPackage . CFC : return createCFC ( ) ; case AfplibPackage . CFI : return createCFI ( ) ; case AfplibPackage . CPC : return createCPC ( ) ; case AfplibPackage . CPD : return createCPD ( ) ; case AfplibPackage . CPI : return createCPI ( ) ; case AfplibPackage . CTC : return createCTC ( ) ; case AfplibPackage . DXD : return createDXD ( ) ; case AfplibPackage . EAG : return createEAG ( ) ; case AfplibPackage . EBC : return createEBC ( ) ; case AfplibPackage . ECA : return createECA ( ) ; case AfplibPackage . ECF : return createECF ( ) ; case AfplibPackage . ECP : return createECP ( ) ; case AfplibPackage . EDG : return createEDG ( ) ; case AfplibPackage . EDI : return createEDI ( ) ; case AfplibPackage . EDM : return createEDM ( ) ; case AfplibPackage . EDT : return createEDT ( ) ; case AfplibPackage . EDX : return createEDX ( ) ; case AfplibPackage . EFG : return createEFG ( ) ; case AfplibPackage . EFM : return createEFM ( ) ; case AfplibPackage . EFN : return createEFN ( ) ; case AfplibPackage . EGR : return createEGR ( ) ; case AfplibPackage . EII : return createEII ( ) ; case AfplibPackage . EIM : return createEIM ( ) ; case AfplibPackage . EMM : return createEMM ( ) ; case AfplibPackage . EMO : return createEMO ( ) ; case AfplibPackage . ENG : return createENG ( ) ; case AfplibPackage . EOC : return createEOC ( ) ; case AfplibPackage . EOG : return createEOG ( ) ; case AfplibPackage . EPF : return createEPF ( ) ; case AfplibPackage . EPG : return createEPG ( ) ; case AfplibPackage . EPM : return createEPM ( ) ; case AfplibPackage . EPS : return createEPS ( ) ; case AfplibPackage . EPT : return createEPT ( ) ; case AfplibPackage . ERG : return createERG ( ) ; case AfplibPackage . ERS : return createERS ( ) ; case AfplibPackage . ESG : return createESG ( ) ; case AfplibPackage . FNC : return createFNC ( ) ; case AfplibPackage . FND : return createFND ( ) ; case AfplibPackage . FNG : return createFNG ( ) ; case AfplibPackage . FNI : return createFNI ( ) ; case AfplibPackage . FNN : return createFNN ( ) ; case AfplibPackage . FNM : return createFNM ( ) ; case AfplibPackage . FNO : return createFNO ( ) ; case AfplibPackage . FNP : return createFNP ( ) ; case AfplibPackage . GAD : return createGAD ( ) ; case AfplibPackage . GDD : return createGDD ( ) ; case AfplibPackage . ICP : return createICP ( ) ; case AfplibPackage . IDD : return createIDD ( ) ; case AfplibPackage . IEL : return createIEL ( ) ; case AfplibPackage . IID : return createIID ( ) ; case AfplibPackage . IMM : return createIMM ( ) ; case AfplibPackage . IOB : return createIOB ( ) ; case AfplibPackage . IOC : return createIOC ( ) ; case AfplibPackage . IPD : return createIPD ( ) ; case AfplibPackage . IPG : return createIPG ( ) ; case AfplibPackage . IPO : return createIPO ( ) ; case AfplibPackage . IPS : return createIPS ( ) ; case AfplibPackage . IRD : return createIRD ( ) ; case AfplibPackage . LLE : return createLLE ( ) ; case AfplibPackage . LNC : return createLNC ( ) ; case AfplibPackage . LND : return createLND ( ) ; case AfplibPackage . MBC : return createMBC ( ) ; case AfplibPackage . MCA : return createMCA ( ) ; case AfplibPackage . MCC : return createMCC ( ) ; case AfplibPackage . MCD : return createMCD ( ) ; case AfplibPackage . MCF : return createMCF ( ) ; case AfplibPackage . MCF1 : return createMCF1 ( ) ; case AfplibPackage . MDD : return createMDD ( ) ; case AfplibPackage . MDR : return createMDR ( ) ; case AfplibPackage . MFC : return createMFC ( ) ; case AfplibPackage . MGO : return createMGO ( ) ; case AfplibPackage . MIO : return createMIO ( ) ; case AfplibPackage . MMC : return createMMC ( ) ; case AfplibPackage . MMD : return createMMD ( ) ; case AfplibPackage . MMO : return createMMO ( ) ; case AfplibPackage . MMT : return createMMT ( ) ; case AfplibPackage . MPG : return createMPG ( ) ; case AfplibPackage . MPO : return createMPO ( ) ; case AfplibPackage . MPS : return createMPS ( ) ; case AfplibPackage . MSU : return createMSU ( ) ; case AfplibPackage . NOP : return createNOP ( ) ; case AfplibPackage . OBD : return createOBD ( ) ; case AfplibPackage . OBP : return createOBP ( ) ; case AfplibPackage . OCD : return createOCD ( ) ; case AfplibPackage . PEC : return createPEC ( ) ; case AfplibPackage . PFC : return createPFC ( ) ; case AfplibPackage . PGD : return createPGD ( ) ; case AfplibPackage . PGP : return createPGP ( ) ; case AfplibPackage . PGP1 : return createPGP1 ( ) ; case AfplibPackage . PMC : return createPMC ( ) ; case AfplibPackage . PPO : return createPPO ( ) ; case AfplibPackage . PTD : return createPTD ( ) ; case AfplibPackage . PTD1 : return createPTD1 ( ) ; case AfplibPackage . PTX : return createPTX ( ) ; case AfplibPackage . TLE : return createTLE ( ) ; case AfplibPackage . FGD : return createFGD ( ) ; case AfplibPackage . AMB : return createAMB ( ) ; case AfplibPackage . AMI : return createAMI ( ) ; case AfplibPackage . BLN : return createBLN ( ) ; case AfplibPackage . BSU : return createBSU ( ) ; case AfplibPackage . DBR : return createDBR ( ) ; case AfplibPackage . DIR : return createDIR ( ) ; case AfplibPackage . ESU : return createESU ( ) ; case AfplibPackage . NOPCS : return createNOPCS ( ) ; case AfplibPackage . OVS : return createOVS ( ) ; case AfplibPackage . RMB : return createRMB ( ) ; case AfplibPackage . RMI : return createRMI ( ) ; case AfplibPackage . RPS : return createRPS ( ) ; case AfplibPackage . SBI : return createSBI ( ) ; case AfplibPackage . SCFL : return createSCFL ( ) ; case AfplibPackage . SEC : return createSEC ( ) ; case AfplibPackage . SIA : return createSIA ( ) ; case AfplibPackage . SIM : return createSIM ( ) ; case AfplibPackage . STC : return createSTC ( ) ; case AfplibPackage . STO : return createSTO ( ) ; case AfplibPackage . SVI : return createSVI ( ) ; case AfplibPackage . TBM : return createTBM ( ) ; case AfplibPackage . TRN : return createTRN ( ) ; case AfplibPackage . USC : return createUSC ( ) ; case AfplibPackage . ATTRIBUTE_QUALIFIER : return createAttributeQualifier ( ) ; case AfplibPackage . ATTRIBUTE_VALUE : return createAttributeValue ( ) ; case AfplibPackage . CGCSGID : return createCGCSGID ( ) ; case AfplibPackage . CRC_RESOURCE_MANAGEMENT : return createCRCResourceManagement ( ) ; case AfplibPackage . CHARACTER_ROTATION : return createCharacterRotation ( ) ; case AfplibPackage . COLOR_SPECIFICATION : return createColorSpecification ( ) ; case AfplibPackage . COMMENT : return createComment ( ) ; case AfplibPackage . DATA_OBJECT_FONT_DESCRIPTOR : return createDataObjectFontDescriptor ( ) ; case AfplibPackage . DESCRIPTOR_POSITION : return createDescriptorPosition ( ) ; case AfplibPackage . ENCODING_SCHEME_ID : return createEncodingSchemeID ( ) ; case AfplibPackage . FONT_RESOLUTION : return createFontResolution ( ) ; case AfplibPackage . FULLY_QUALIFIED_NAME : return createFullyQualifiedName ( ) ; case AfplibPackage . LOCAL_DATE_AND_TIME_STAMP : return createLocalDateAndTimeStamp ( ) ; case AfplibPackage . UNIVERSAL_DATE_AND_TIME_STAMP : return createUniversalDateAndTimeStamp ( ) ; case AfplibPackage . MAPPING_OPTION : return createMappingOption ( ) ; case AfplibPackage . MEDIA_EJECT_CONTROL : return createMediaEjectControl ( ) ; case AfplibPackage . MEDIUM_MAP_PAGE_NUMBER : return createMediumMapPageNumber ( ) ; case AfplibPackage . MEDIUM_ORIENTATION : return createMediumOrientation ( ) ; case AfplibPackage . MEASUREMENT_UNITS : return createMeasurementUnits ( ) ; case AfplibPackage . MODCA_INTERCHANGE_SET : return createMODCAInterchangeSet ( ) ; case AfplibPackage . OBJECT_AREA_SIZE : return createObjectAreaSize ( ) ; case AfplibPackage . OBJECT_CLASSIFICATION : return createObjectClassification ( ) ; case AfplibPackage . OBJECT_FUNCTION_SET_SPECIFICATION : return createObjectFunctionSetSpecification ( ) ; case AfplibPackage . OBJECT_OFFSET : return createObjectOffset ( ) ; case AfplibPackage . RESOURCE_OBJECT_TYPE : return createResourceObjectType ( ) ; case AfplibPackage . PAGE_POSITION_INFORMATION : return createPagePositionInformation ( ) ; case AfplibPackage . PRESENTATION_CONTROL : return createPresentationControl ( ) ; case AfplibPackage . PRESENTATION_SPACE_RESET_MIXING : return createPresentationSpaceResetMixing ( ) ; case AfplibPackage . PRESENTATION_SPACE_MIXING_RULES : return createPresentationSpaceMixingRules ( ) ; case AfplibPackage . RESOURCE_LOCAL_IDENTIFIER : return createResourceLocalIdentifier ( ) ; case AfplibPackage . RESOURCE_SECTION_NUMBER : return createResourceSectionNumber ( ) ; case AfplibPackage . TEXT_ORIENTATION : return createTextOrientation ( ) ; case AfplibPackage . FONT_HORIZONTAL_SCALE_FACTOR : return createFontHorizontalScaleFactor ( ) ; case AfplibPackage . FONT_DESCRIPTOR_SPECIFICATION : return createFontDescriptorSpecification ( ) ; case AfplibPackage . BEGIN_SEGMENT : return createBeginSegment ( ) ; case AfplibPackage . END_SEGMENT : return createEndSegment ( ) ; case AfplibPackage . BEGIN_TILE : return createBeginTile ( ) ; case AfplibPackage . END_TILE : return createEndTile ( ) ; case AfplibPackage . BEGIN_TRANSPARENCY_MASK : return createBeginTransparencyMask ( ) ; case AfplibPackage . END_TRANSPARENCY_MASK : return createEndTransparencyMask ( ) ; case AfplibPackage . BEGIN_IMAGE : return createBeginImage ( ) ; case AfplibPackage . END_IMAGE : return createEndImage ( ) ; case AfplibPackage . IMAGE_SIZE : return createImageSize ( ) ; case AfplibPackage . IMAGE_ENCODING : return createImageEncoding ( ) ; case AfplibPackage . IDE_SIZE : return createIDESize ( ) ; case AfplibPackage . IMAGE_LUTID : return createImageLUTID ( ) ; case AfplibPackage . BAND_IMAGE : return createBandImage ( ) ; case AfplibPackage . IDE_STRUCTURE : return createIDEStructure ( ) ; case AfplibPackage . EXTERNAL_ALGORITHM : return createExternalAlgorithm ( ) ; case AfplibPackage . TILE_POSITION : return createTilePosition ( ) ; case AfplibPackage . TILE_SIZE : return createTileSize ( ) ; case AfplibPackage . TILE_SET_COLOR : return createTileSetColor ( ) ; case AfplibPackage . SET_BI_LEVEL_IMAGE_COLOR : return createSetBiLevelImageColor ( ) ; case AfplibPackage . IOCA_FUNCTION_SET_IDENTIFICATION : return createIOCAFunctionSetIdentification ( ) ; case AfplibPackage . IMAGE_DATA : return createImageData ( ) ; case AfplibPackage . BAND_IMAGE_DATA : return createBandImageData ( ) ; case AfplibPackage . INCLUDE_TILE : return createIncludeTile ( ) ; case AfplibPackage . IMAGE_SUBSAMPLING : return createImageSubsampling ( ) ; case AfplibPackage . SAMPLING_RATIOS : return createSamplingRatios ( ) ; case AfplibPackage . TILE_TOC : return createTileTOC ( ) ; case AfplibPackage . CPIRG : return createCPIRG ( ) ; case AfplibPackage . CFIRG : return createCFIRG ( ) ; case AfplibPackage . FNIRG : return createFNIRG ( ) ; case AfplibPackage . FNMRG : return createFNMRG ( ) ; case AfplibPackage . LLERG : return createLLERG ( ) ; case AfplibPackage . MPSRG : return createMPSRG ( ) ; case AfplibPackage . MCFRG : return createMCFRG ( ) ; case AfplibPackage . MBCRG : return createMBCRG ( ) ; case AfplibPackage . MCARG : return createMCARG ( ) ; case AfplibPackage . MCDRG : return createMCDRG ( ) ; case AfplibPackage . MDRRG : return createMDRRG ( ) ; case AfplibPackage . MGORG : return createMGORG ( ) ; case AfplibPackage . MIORG : return createMIORG ( ) ; case AfplibPackage . MMDRG : return createMMDRG ( ) ; case AfplibPackage . MMTRG : return createMMTRG ( ) ; case AfplibPackage . MPGRG : return createMPGRG ( ) ; case AfplibPackage . MPORG : return createMPORG ( ) ; case AfplibPackage . PPORG : return createPPORG ( ) ; case AfplibPackage . PGPRG : return createPGPRG ( ) ; case AfplibPackage . MCCRG : return createMCCRG ( ) ; case AfplibPackage . MMORG : return createMMORG ( ) ; case AfplibPackage . BAND_IMAGE_RG : return createBandImageRG ( ) ; case AfplibPackage . MCF1RG : return createMCF1RG ( ) ; case AfplibPackage . MMCRG : return createMMCRG ( ) ; case AfplibPackage . FNORG : return createFNORG ( ) ; case AfplibPackage . FNPRG : return createFNPRG ( ) ; case AfplibPackage . TILE_TOCRG : return createTileTOCRG ( ) ; case AfplibPackage . SAMPLING_RATIOS_RG : return createSamplingRatiosRG ( ) ; case AfplibPackage . EXTERNAL_ALGORITHM_RG : return createExternalAlgorithmRG ( ) ; case AfplibPackage . FNNRG : return createFNNRG ( ) ; case AfplibPackage . FNNRG2 : return createFNNRG2 ( ) ; case AfplibPackage . BEGIN_SEGMENT_COMMAND : return createBeginSegmentCommand ( ) ; case AfplibPackage . END_SEGMENT_COMMAND : return createEndSegmentCommand ( ) ; case AfplibPackage . GBAR : return createGBAR ( ) ; case AfplibPackage . GBIMG : return createGBIMG ( ) ; case AfplibPackage . GCBIMG : return createGCBIMG ( ) ; case AfplibPackage . GBOX : return createGBOX ( ) ; case AfplibPackage . GCBOX : return createGCBOX ( ) ; case AfplibPackage . GCHST : return createGCHST ( ) ; case AfplibPackage . GCCHST : return createGCCHST ( ) ; case AfplibPackage . GCOMT : return createGCOMT ( ) ; case AfplibPackage . GEAR : return createGEAR ( ) ; case AfplibPackage . GEIMG : return createGEIMG ( ) ; case AfplibPackage . GEPROL : return createGEPROL ( ) ; case AfplibPackage . GFLT : return createGFLT ( ) ; case AfplibPackage . GCFLT : return createGCFLT ( ) ; case AfplibPackage . GFARC : return createGFARC ( ) ; case AfplibPackage . GCFARC : return createGCFARC ( ) ; case AfplibPackage . GIMD : return createGIMD ( ) ; case AfplibPackage . GLINE : return createGLINE ( ) ; case AfplibPackage . GCLINE : return createGCLINE ( ) ; case AfplibPackage . GMRK : return createGMRK ( ) ; case AfplibPackage . GCMRK : return createGCMRK ( ) ; case AfplibPackage . GNOP1 : return createGNOP1 ( ) ; case AfplibPackage . GPARC : return createGPARC ( ) ; case AfplibPackage . GCPARC : return createGCPARC ( ) ; case AfplibPackage . GRLINE : return createGRLINE ( ) ; case AfplibPackage . GCRLINE : return createGCRLINE ( ) ; case AfplibPackage . GSGCH : return createGSGCH ( ) ; case AfplibPackage . GSAP : return createGSAP ( ) ; case AfplibPackage . GSBMX : return createGSBMX ( ) ; case AfplibPackage . GSCA : return createGSCA ( ) ; case AfplibPackage . GSCC : return createGSCC ( ) ; case AfplibPackage . GSCD : return createGSCD ( ) ; case AfplibPackage . GSCR : return createGSCR ( ) ; case AfplibPackage . GSCS : return createGSCS ( ) ; case AfplibPackage . GSCH : return createGSCH ( ) ; case AfplibPackage . GSCOL : return createGSCOL ( ) ; case AfplibPackage . GSCP : return createGSCP ( ) ; case AfplibPackage . GSECOL : return createGSECOL ( ) ; case AfplibPackage . GSFLW : return createGSFLW ( ) ; case AfplibPackage . GSLT : return createGSLT ( ) ; case AfplibPackage . GSLW : return createGSLW ( ) ; case AfplibPackage . GSMC : return createGSMC ( ) ; case AfplibPackage . GSMP : return createGSMP ( ) ; case AfplibPackage . GSMS : return createGSMS ( ) ; case AfplibPackage . GSMT : return createGSMT ( ) ; case AfplibPackage . GSMX : return createGSMX ( ) ; case AfplibPackage . GSPS : return createGSPS ( ) ; case AfplibPackage . GSPT : return createGSPT ( ) ; case AfplibPackage . GSPCOL : return createGSPCOL ( ) ; case AfplibPackage . GSLE : return createGSLE ( ) ; case AfplibPackage . GSLJ : return createGSLJ ( ) ; case AfplibPackage . GCBEZ : return createGCBEZ ( ) ; case AfplibPackage . GCCBEZ : return createGCCBEZ ( ) ; case AfplibPackage . WINDOW_SPECIFICATION : return createWindowSpecification ( ) ; case AfplibPackage . DRAWING_ORDER_SUBSET : return createDrawingOrderSubset ( ) ; case AfplibPackage . GCBEZRG : return createGCBEZRG ( ) ; case AfplibPackage . GCCBEZRG : return createGCCBEZRG ( ) ; case AfplibPackage . GFLTRG : return createGFLTRG ( ) ; case AfplibPackage . GCFLTRG : return createGCFLTRG ( ) ; case AfplibPackage . GLINERG : return createGLINERG ( ) ; case AfplibPackage . GCLINERG : return createGCLINERG ( ) ; case AfplibPackage . GMRKRG : return createGMRKRG ( ) ; case AfplibPackage . GCMRKRG : return createGCMRKRG ( ) ; case AfplibPackage . GRLINERG : return createGRLINERG ( ) ; case AfplibPackage . GCRLINERG : return createGCRLINERG ( ) ; case AfplibPackage . TONER_SAVER : return createTonerSaver ( ) ; case AfplibPackage . COLOR_FIDELITY : return createColorFidelity ( ) ; case AfplibPackage . FONT_FIDELITY : return createFontFidelity ( ) ; case AfplibPackage . TEXT_FIDELITY : return createTextFidelity ( ) ; case AfplibPackage . MEDIA_FIDELITY : return createMediaFidelity ( ) ; case AfplibPackage . FINISHING_FIDELITY : return createFinishingFidelity ( ) ; case AfplibPackage . CMR_FIDELITY : return createCMRFidelity ( ) ; case AfplibPackage . OBJECT_BYTE_EXTENT : return createObjectByteExtent ( ) ; case AfplibPackage . OBJECT_BYTE_OFFSET : return createObjectByteOffset ( ) ; case AfplibPackage . OBJECT_STRUCTURED_FIELD_EXTENT : return createObjectStructuredFieldExtent ( ) ; case AfplibPackage . OBJECT_STRUCTURED_FIELD_OFFSET : return createObjectStructuredFieldOffset ( ) ; case AfplibPackage . OBJECT_COUNT : return createObjectCount ( ) ; case AfplibPackage . OBJECT_ORIGIN_IDENTIFIER : return createObjectOriginIdentifier ( ) ; case AfplibPackage . LINE_DATA_OBJECT_POSITION_MIGRATION : return createLineDataObjectPositionMigration ( ) ; case AfplibPackage . COLOR_MANAGEMENT_RESOURCE_DESCRIPTOR : return createColorManagementResourceDescriptor ( ) ; case AfplibPackage . MSURG : return createMSURG ( ) ; case AfplibPackage . IMAGE_RESOLUTION : return createImageResolution ( ) ; case AfplibPackage . OBJECT_CONTAINER_PRESENTATION_SPACE_SIZE : return createObjectContainerPresentationSpaceSize ( ) ; case AfplibPackage . EXTENDED_RESOURCE_LOCAL_IDENTIFIER : return createExtendedResourceLocalIdentifier ( ) ; case AfplibPackage . METRIC_ADJUSTMENT : return createMetricAdjustment ( ) ; case AfplibPackage . EXTENSION_FONT : return createExtensionFont ( ) ; case AfplibPackage . RENDERING_INTENT : return createRenderingIntent ( ) ; case AfplibPackage . FONT_CODED_GRAPHIC_CHARACTER_SET_GLOBAL_IDENTIFIER : return createFontCodedGraphicCharacterSetGlobalIdentifier ( ) ; case AfplibPackage . LOCALE_SELECTOR : return createLocaleSelector ( ) ; case AfplibPackage . FINISHING_OPERATION : return createFinishingOperation ( ) ; case AfplibPackage . UP_3I_FINISHING_OPERATION : return createUP3iFinishingOperation ( ) ; case AfplibPackage . DEVICE_APPEARANCE : return createDeviceAppearance ( ) ; case AfplibPackage . RESOURCE_OBJECT_INCLUDE : return createResourceObjectInclude ( ) ; case AfplibPackage . PAGE_OVERLAY_CONDITIONAL_PROCESSING : return createPageOverlayConditionalProcessing ( ) ; case AfplibPackage . RESOURCE_USAGE_ATTRIBUTE : return createResourceUsageAttribute ( ) ; default : throw new IllegalArgumentException ( "The class '" + eClass . getName ( ) + "' is not a valid classifier" ) ; }
|
public class require { /** * Check if the specified value is not negative .
* @ param value the value to check .
* @ param message the exception message .
* @ return the given value .
* @ throws IllegalArgumentException if { @ code value < 0 } . */
public static double nonNegative ( final double value , final String message ) { } }
|
if ( value < 0 ) { throw new IllegalArgumentException ( format ( "%s must not be negative: %f." , message , value ) ) ; } return value ;
|
public class AssertEqualsArgumentOrderChecker { /** * This function looks explicitly for parameters named expected and actual . All other pairs with
* parameters other than these are given a distance of 0 if they are in their original position
* and Inf otherwise ( i . e . they will not be considered for moving ) . For expected and actual , if
* the actual parameter name starts with expected or actual respectively then we consider it a
* perfect match otherwise we return a distance of 1. */
private static Function < ParameterPair , Double > buildDistanceFunction ( ) { } }
|
return new Function < ParameterPair , Double > ( ) { @ Override public Double apply ( ParameterPair parameterPair ) { Parameter formal = parameterPair . formal ( ) ; Parameter actual = parameterPair . actual ( ) ; String formalName = formal . name ( ) ; String actualName = actual . name ( ) ; if ( formalName . equals ( "expected" ) ) { if ( actual . constant ( ) || isEnumIdentifier ( actual ) ) { return 0.0 ; } if ( actualName . startsWith ( "expected" ) ) { return 0.0 ; } return 1.0 ; } if ( formalName . equals ( "actual" ) ) { if ( actual . constant ( ) || isEnumIdentifier ( actual ) ) { return 1.0 ; } if ( actualName . startsWith ( "actual" ) ) { return 0.0 ; } return 1.0 ; } return formal . index ( ) == actual . index ( ) ? 0.0 : Double . POSITIVE_INFINITY ; } } ;
|
public class ArrayPropertiesSummaryMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ArrayPropertiesSummary arrayPropertiesSummary , ProtocolMarshaller protocolMarshaller ) { } }
|
if ( arrayPropertiesSummary == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( arrayPropertiesSummary . getSize ( ) , SIZE_BINDING ) ; protocolMarshaller . marshall ( arrayPropertiesSummary . getIndex ( ) , INDEX_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; }
|
public class AWSGlueClient { /** * Retrieves a connection definition from the Data Catalog .
* @ param getConnectionRequest
* @ return Result of the GetConnection operation returned by the service .
* @ throws EntityNotFoundException
* A specified entity does not exist
* @ throws OperationTimeoutException
* The operation timed out .
* @ throws InvalidInputException
* The input provided was not valid .
* @ throws GlueEncryptionException
* An encryption operation failed .
* @ sample AWSGlue . GetConnection
* @ see < a href = " http : / / docs . aws . amazon . com / goto / WebAPI / glue - 2017-03-31 / GetConnection " target = " _ top " > AWS API
* Documentation < / a > */
@ Override public GetConnectionResult getConnection ( GetConnectionRequest request ) { } }
|
request = beforeClientExecution ( request ) ; return executeGetConnection ( request ) ;
|
public class VirtualMachineScaleSetsInner { /** * Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set .
* @ param resourceGroupName The name of the resource group .
* @ param vmScaleSetName The name of the VM scale set .
* @ param platformUpdateDomain The platform update domain for which a manual recovery walk is requested
* @ param serviceCallback the async ServiceCallback to handle successful and failed responses .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the { @ link ServiceFuture } object */
public ServiceFuture < RecoveryWalkResponseInner > forceRecoveryServiceFabricPlatformUpdateDomainWalkAsync ( String resourceGroupName , String vmScaleSetName , int platformUpdateDomain , final ServiceCallback < RecoveryWalkResponseInner > serviceCallback ) { } }
|
return ServiceFuture . fromResponse ( forceRecoveryServiceFabricPlatformUpdateDomainWalkWithServiceResponseAsync ( resourceGroupName , vmScaleSetName , platformUpdateDomain ) , serviceCallback ) ;
|
public class SetupWizard { /** * Gets the suggested plugin list from the update sites , falling back to a local version
* @ return JSON array with the categorized plugin list */
@ CheckForNull /* package */
JSONArray getPlatformPluginList ( ) { } }
|
Jenkins . get ( ) . checkPermission ( Jenkins . ADMINISTER ) ; JSONArray initialPluginList = null ; updateSiteList : for ( UpdateSite updateSite : Jenkins . get ( ) . getUpdateCenter ( ) . getSiteList ( ) ) { String updateCenterJsonUrl = updateSite . getUrl ( ) ; String suggestedPluginUrl = updateCenterJsonUrl . replace ( "/update-center.json" , "/platform-plugins.json" ) ; try { URLConnection connection = ProxyConfiguration . open ( new URL ( suggestedPluginUrl ) ) ; try { if ( connection instanceof HttpURLConnection ) { int responseCode = ( ( HttpURLConnection ) connection ) . getResponseCode ( ) ; if ( HttpURLConnection . HTTP_OK != responseCode ) { throw new HttpRetryException ( "Invalid response code (" + responseCode + ") from URL: " + suggestedPluginUrl , responseCode ) ; } } String initialPluginJson = IOUtils . toString ( connection . getInputStream ( ) , "utf-8" ) ; initialPluginList = JSONArray . fromObject ( initialPluginJson ) ; break updateSiteList ; } catch ( Exception e ) { // not found or otherwise unavailable
LOGGER . log ( Level . FINE , e . getMessage ( ) , e ) ; continue updateSiteList ; } } catch ( Exception e ) { LOGGER . log ( Level . FINE , e . getMessage ( ) , e ) ; } } if ( initialPluginList == null ) { // fall back to local file
try { ClassLoader cl = getClass ( ) . getClassLoader ( ) ; URL localPluginData = cl . getResource ( "jenkins/install/platform-plugins.json" ) ; String initialPluginJson = IOUtils . toString ( localPluginData . openStream ( ) , "utf-8" ) ; initialPluginList = JSONArray . fromObject ( initialPluginJson ) ; } catch ( Exception e ) { LOGGER . log ( Level . SEVERE , e . getMessage ( ) , e ) ; } } return initialPluginList ;
|
public class DescribeVpcEndpointConnectionNotificationsResult { /** * One or more notifications .
* @ param connectionNotificationSet
* One or more notifications . */
public void setConnectionNotificationSet ( java . util . Collection < ConnectionNotification > connectionNotificationSet ) { } }
|
if ( connectionNotificationSet == null ) { this . connectionNotificationSet = null ; return ; } this . connectionNotificationSet = new com . amazonaws . internal . SdkInternalList < ConnectionNotification > ( connectionNotificationSet ) ;
|
public class CreateRemoteAccessSessionConfigurationMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreateRemoteAccessSessionConfiguration createRemoteAccessSessionConfiguration , ProtocolMarshaller protocolMarshaller ) { } }
|
if ( createRemoteAccessSessionConfiguration == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createRemoteAccessSessionConfiguration . getBillingMethod ( ) , BILLINGMETHOD_BINDING ) ; protocolMarshaller . marshall ( createRemoteAccessSessionConfiguration . getVpceConfigurationArns ( ) , VPCECONFIGURATIONARNS_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; }
|
public class EditText { /** * Retrieves the value set in { @ link # setCustomSelectionActionModeCallback } . Default is null .
* @ return The current custom selection callback . */
@ TargetApi ( Build . VERSION_CODES . HONEYCOMB ) public ActionMode . Callback getCustomSelectionActionModeCallback ( ) { } }
|
if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB ) return mInputView . getCustomSelectionActionModeCallback ( ) ; return null ;
|
public class KernelDistance { /** * Returns the square of the distance function expanded as kernel methods .
* < br >
* d < sup > 2 < / sup > ( x , y ) = K ( x , x ) - 2 * K ( x , y ) + K ( y , y )
* < br > < br >
* Special Notes : < br >
* The use of { @ link RBFKernel } or { @ link PolynomialKernel } of degree 1
* in the { @ link NearestNeighbour } classifier will degenerate into the
* normal nearest neighbor algorithm .
* @ param a the first vector
* @ param b the second vector
* @ return the distance metric based on a kernel function */
@ Override public double dist ( Vec a , Vec b ) { } }
|
return kf . eval ( a , a ) - 2 * kf . eval ( a , b ) + kf . eval ( b , b ) ;
|
public class DefaultPlatformManager { /** * Loads configuration information for a module from mod . json . */
private ModuleInfo loadModuleInfo ( ModuleIdentifier modID , File modJsonFile ) { } }
|
return new ModuleInfo ( modID , new ModuleFields ( loadModuleConfig ( modID , modJsonFile ) ) ) ;
|
public class InternalSARLLexer { /** * $ ANTLR start " RULE _ WS " */
public final void mRULE_WS ( ) throws RecognitionException { } }
|
try { int _type = RULE_WS ; int _channel = DEFAULT_TOKEN_CHANNEL ; // InternalSARL . g : 16936:9 : ( ( ' ' | ' \ \ t ' | ' \ \ r ' | ' \ \ n ' ) + )
// InternalSARL . g : 16936:11 : ( ' ' | ' \ \ t ' | ' \ \ r ' | ' \ \ n ' ) +
{ // InternalSARL . g : 16936:11 : ( ' ' | ' \ \ t ' | ' \ \ r ' | ' \ \ n ' ) +
int cnt53 = 0 ; loop53 : do { int alt53 = 2 ; int LA53_0 = input . LA ( 1 ) ; if ( ( ( LA53_0 >= '\t' && LA53_0 <= '\n' ) || LA53_0 == '\r' || LA53_0 == ' ' ) ) { alt53 = 1 ; } switch ( alt53 ) { case 1 : // InternalSARL . g :
{ if ( ( input . LA ( 1 ) >= '\t' && input . LA ( 1 ) <= '\n' ) || input . LA ( 1 ) == '\r' || input . LA ( 1 ) == ' ' ) { input . consume ( ) ; } else { MismatchedSetException mse = new MismatchedSetException ( null , input ) ; recover ( mse ) ; throw mse ; } } break ; default : if ( cnt53 >= 1 ) break loop53 ; EarlyExitException eee = new EarlyExitException ( 53 , input ) ; throw eee ; } cnt53 ++ ; } while ( true ) ; } state . type = _type ; state . channel = _channel ; } finally { }
|
public class GSLWImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eSet ( int featureID , Object newValue ) { } }
|
switch ( featureID ) { case AfplibPackage . GSLW__MH : setMH ( ( Integer ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ;
|
public class MagicMimeEntry { /** * Match string .
* @ param bbuf the bbuf
* @ return true , if successful
* @ throws IOException Signals that an I / O exception has occurred . */
private boolean matchString ( final ByteBuffer bbuf ) throws IOException { } }
|
if ( this . isBetween ) { final String buffer = new String ( bbuf . array ( ) ) ; if ( buffer . contains ( getContent ( ) ) ) { return true ; } return false ; } final int read = getContent ( ) . length ( ) ; for ( int j = 0 ; j < read ; j ++ ) { if ( ( bbuf . get ( j ) & 0xFF ) != getContent ( ) . charAt ( j ) ) { return false ; } } return true ;
|
public class ParsedScheduleExpression { /** * Returns the next day of the month after < tt > day < / tt > that satisfies
* the lastDaysOfWeekInMonth constraint .
* @ param day the current 0 - based day of the month
* @ param lastDay the current 0 - based last day of the month
* @ param dayOfWeek the current 0 - based day of the week
* @ return a value greater than or equal to < tt > day < / tt > */
private int getNextLastDayOfWeekInMonth ( int day , int lastDay , int dayOfWeek ) { } }
|
for ( ; ; ) { if ( lastDay - day < 7 && contains ( lastDaysOfWeekInMonth , dayOfWeek ) ) { return day ; } day ++ ; if ( day > lastDay ) { return ADVANCE_TO_NEXT_MONTH ; } dayOfWeek = ( dayOfWeek + 1 ) % 7 ; }
|
public class ImplicitNamingStrategyShogunCore { /** * Transforms a singular form to the plural form , based on these rules :
* http : / / www . edufind . com / english - grammar / plural - nouns / Only some irregular nouns are
* respected in this implementation .
* @ param singular
* @ return */
private String transformToPluralForm ( String singular ) { } }
|
String lowercaseSingular = singular . toLowerCase ( ) ; if ( IRREGULAR_NOUNS . containsKey ( lowercaseSingular ) ) { // e . g . " Woman " - > " Women " , " Ox " - > " Oxen " . . .
String plural = IRREGULAR_NOUNS . get ( lowercaseSingular ) ; if ( Character . isUpperCase ( singular . charAt ( 0 ) ) && plural . length ( ) >= 2 ) { plural = String . valueOf ( plural . charAt ( 0 ) ) . toUpperCase ( ) + plural . substring ( 1 ) ; } return plural ; } StringBuilder plural = new StringBuilder ( ) ; // start with singular form
plural . append ( singular ) ; if ( singular . endsWith ( String . valueOf ( LAST_CHAR_Y ) ) ) { // e . g . " City " - > " Cities "
// replace last char with suffix form
int length = plural . length ( ) ; plural . replace ( length - 1 , length , PLURAL_SUFFIX_IES ) ; } else if ( singular . endsWith ( String . valueOf ( LAST_CHAR_S ) ) || singular . endsWith ( String . valueOf ( LAST_CHAR_X ) ) || singular . endsWith ( String . valueOf ( LAST_CHAR_Z ) ) || singular . endsWith ( LAST_CHARS_CH ) || singular . endsWith ( LAST_CHARS_SH ) ) { // e . g . " Bus " - > " Buses "
// e . g . " Box " - > " Boxes "
// e . g . " Buzz " - > " Buzzes "
// e . g . " Wish " - > " Wishes "
// e . g . " Pitch " - > " Pitches "
plural . append ( PLURAL_SUFFIX_ES ) ; } else { // e . g . " Boat " - > " Boats "
// default
plural . append ( PLURAL_SUFFIX_S ) ; } return plural . toString ( ) ;
|
public class FastMathCalc { /** * Add two numbers in split form .
* @ param a first term of addition
* @ param b second term of addition
* @ param ans placeholder where to put the result */
private static void splitAdd ( final double a [ ] , final double b [ ] , final double ans [ ] ) { } }
|
ans [ 0 ] = a [ 0 ] + b [ 0 ] ; ans [ 1 ] = a [ 1 ] + b [ 1 ] ; resplit ( ans ) ;
|
public class ProxyDataSourceBuilder { /** * Register { @ link SLF4JSlowQueryListener } .
* @ param thresholdTime slow query threshold time
* @ param timeUnit slow query threshold time unit
* @ return builder
* @ since 1.4.1 */
public ProxyDataSourceBuilder logSlowQueryBySlf4j ( long thresholdTime , TimeUnit timeUnit ) { } }
|
return logSlowQueryBySlf4j ( thresholdTime , timeUnit , null , null ) ;
|
public class MessageFilterLexer { /** * $ ANTLR start " GE " */
public final void mGE ( ) throws RecognitionException { } }
|
try { int _type = GE ; int _channel = DEFAULT_TOKEN_CHANNEL ; // MessageFilter . g : 38:4 : ( ' > = ' )
// MessageFilter . g : 38:6 : ' > = '
{ match ( ">=" ) ; } state . type = _type ; state . channel = _channel ; } finally { // do for sure before leaving
}
|
public class LinearSolverChol_DDRM { /** * Sets the matrix to the inverse using a lower triangular matrix . */
public void setToInverseL ( double a [ ] ) { } }
|
// TODO reorder these operations to avoid cache misses
// inverts the lower triangular system and saves the result
// in the upper triangle to minimize cache misses
for ( int i = 0 ; i < n ; i ++ ) { double el_ii = t [ i * n + i ] ; for ( int j = 0 ; j <= i ; j ++ ) { double sum = ( i == j ) ? 1.0 : 0 ; for ( int k = i - 1 ; k >= j ; k -- ) { sum -= t [ i * n + k ] * a [ j * n + k ] ; } a [ j * n + i ] = sum / el_ii ; } } // solve the system and handle the previous solution being in the upper triangle
// takes advantage of symmetry
for ( int i = n - 1 ; i >= 0 ; i -- ) { double el_ii = t [ i * n + i ] ; for ( int j = 0 ; j <= i ; j ++ ) { double sum = ( i < j ) ? 0 : a [ j * n + i ] ; for ( int k = i + 1 ; k < n ; k ++ ) { sum -= t [ k * n + i ] * a [ j * n + k ] ; } a [ i * n + j ] = a [ j * n + i ] = sum / el_ii ; } }
|
public class GetConnectionsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetConnectionsRequest getConnectionsRequest , ProtocolMarshaller protocolMarshaller ) { } }
|
if ( getConnectionsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getConnectionsRequest . getCatalogId ( ) , CATALOGID_BINDING ) ; protocolMarshaller . marshall ( getConnectionsRequest . getFilter ( ) , FILTER_BINDING ) ; protocolMarshaller . marshall ( getConnectionsRequest . getHidePassword ( ) , HIDEPASSWORD_BINDING ) ; protocolMarshaller . marshall ( getConnectionsRequest . getNextToken ( ) , NEXTTOKEN_BINDING ) ; protocolMarshaller . marshall ( getConnectionsRequest . getMaxResults ( ) , MAXRESULTS_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; }
|
public class ChatroomSipServlet { /** * This is called by the container when a MESSAGE message arrives . */
protected void doMessage ( SipServletRequest request ) throws ServletException , IOException { } }
|
request . createResponse ( SipServletResponse . SC_OK ) . send ( ) ; Object message = request . getContent ( ) ; String from = request . getFrom ( ) . getURI ( ) . toString ( ) ; logger . info ( "from is " + from ) ; // A user asked to quit .
if ( message . toString ( ) . equalsIgnoreCase ( "/quit" ) ) { sendToUser ( from , "Bye" ) ; removeUser ( from ) ; return ; } // Add user to the list
if ( ! containsUser ( from ) ) { sendToUser ( from , "Welcome to chatroom " + serverAddress + ". Type '/quit' to exit." ) ; addUser ( from ) ; } if ( message . toString ( ) . equalsIgnoreCase ( "/who" ) ) { String users = "List of users:\n" ; List < String > list = ( List < String > ) getServletContext ( ) . getAttribute ( USER_LIST ) ; for ( String user : list ) { users += user + "\n" ; } sendToUser ( from , users ) ; // removeUser ( from ) ;
return ; } // If the user is joining the chatroom silently , no message
// to broadcast , return .
if ( message . toString ( ) . equalsIgnoreCase ( "/join" ) ) { return ; } // We could implement more IRC commands here ,
// see http : / / www . mirc . com / cmds . html
sendToAll ( from , message , request . getHeader ( "Content-Type" ) ) ;
|
public class Record { /** * Are all the fields selected ?
* @ return true if all selected . */
public boolean isAllSelected ( ) { } }
|
boolean bAllSelected = true ; for ( int iFieldSeq = DBConstants . MAIN_FIELD ; iFieldSeq <= this . getFieldCount ( ) + DBConstants . MAIN_FIELD - 1 ; iFieldSeq ++ ) { if ( this . getField ( iFieldSeq ) . isSelected ( ) == false ) bAllSelected = false ; } return bAllSelected ;
|
public class BicubicInterpolation { /** * Bicubic interpolation within a grid square . */
private static double bcuint ( double [ ] y , double [ ] y1 , double [ ] y2 , double [ ] y12 , double x1l , double x1u , double x2l , double x2u , double x1p , double x2p ) { } }
|
if ( x1u == x1l ) { throw new IllegalArgumentException ( "Nearby control points take same value: " + x1u ) ; } if ( x2u == x2l ) { throw new IllegalArgumentException ( "Nearby control points take same value: " + x2u ) ; } double t , u , d1 = x1u - x1l , d2 = x2u - x2l ; double [ ] [ ] c = bcucof ( y , y1 , y2 , y12 , d1 , d2 ) ; t = ( x1p - x1l ) / d1 ; u = ( x2p - x2l ) / d2 ; double ansy = 0.0 ; for ( int i = 3 ; i >= 0 ; i -- ) { ansy = t * ansy + ( ( c [ i ] [ 3 ] * u + c [ i ] [ 2 ] ) * u + c [ i ] [ 1 ] ) * u + c [ i ] [ 0 ] ; } return ansy ;
|
public class SpiceManager { /** * Returns the last date of storage of a given data into the cache .
* @ param clazz
* the class of the result to retrieve from cache .
* @ param cacheKey
* the key used to store and retrieve the result of the request
* in the cache
* @ return the date at which data has been stored in cache . Null if no such
* data is in Cache .
* @ throws CacheLoadingException
* Exception thrown when a problem occurs while loading data
* from cache . */
public Future < Date > getDateOfDataInCache ( Class < ? > clazz , final Object cacheKey ) throws CacheCreationException { } }
|
return executeCommand ( new GetDateOfDataInCacheCommand ( this , clazz , cacheKey ) ) ;
|
public class ResourceTypeCounter { /** * Return the count of the ResourceType
* @ param resourceType
* @ return Count of the resource type */
public Integer getCount ( ResourceType resourceType ) { } }
|
Integer count = typeToCountMap . get ( resourceType ) ; if ( count == null ) { return 0 ; } else { return count ; }
|
public class JvmIntAnnotationValueImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ SuppressWarnings ( "unchecked" ) @ Override public void eSet ( int featureID , Object newValue ) { } }
|
switch ( featureID ) { case TypesPackage . JVM_INT_ANNOTATION_VALUE__VALUES : getValues ( ) . clear ( ) ; getValues ( ) . addAll ( ( Collection < ? extends Integer > ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ;
|
public class JITDeploy { /** * Returns the name of the Stub class that needs to be loaded for the
* specified remote interface class . < p >
* Basically , the name of the Stub class for any remote interface is
* the simple name of the remote interface class , with an ' _ ' prepended ,
* and ' _ Stub ' appended . The package of the returned Stub class name
* will be the same as the package of the remote interface . < p >
* @ param remoteInterface remote interface class .
* @ return the name of the Stub class that needs to be loaded for the
* specified remote interface class . < p > */
public static String getStubClassName ( Class < ? > remoteInterface ) { } }
|
final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "getStubClassName : " + remoteInterface . getName ( ) ) ; String result = JIT_Stub . getStubClassName ( remoteInterface . getName ( ) ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "getStubClassName : " + result ) ; return result ;
|
public class ApiOvhIp { /** * Delete mitigation profile
* REST : DELETE / ip / { ip } / mitigationProfiles / { ipMitigationProfile }
* @ param ip [ required ]
* @ param ipMitigationProfile [ required ] */
public void ip_mitigationProfiles_ipMitigationProfile_DELETE ( String ip , String ipMitigationProfile ) throws IOException { } }
|
String qPath = "/ip/{ip}/mitigationProfiles/{ipMitigationProfile}" ; StringBuilder sb = path ( qPath , ip , ipMitigationProfile ) ; exec ( qPath , "DELETE" , sb . toString ( ) , null ) ;
|
public class JsonParser { /** * Parses a json string , returning either a { @ code Map < String , ? > } , { @ code List < ? > } ,
* { @ code String } , { @ code Double } , { @ code Boolean } , or { @ code null } . */
@ SuppressWarnings ( "unchecked" ) public static Object parse ( String raw ) throws IOException { } }
|
JsonReader jr = new JsonReader ( new StringReader ( raw ) ) ; try { return parseRecursive ( jr ) ; } finally { try { jr . close ( ) ; } catch ( IOException e ) { logger . log ( Level . WARNING , "Failed to close" , e ) ; } }
|
public class JobProcBiz { /** * 这里情况一般是发送失败 , 重新发送的 */
private void multiResultsProcess ( List < JobRunResult > results ) { } }
|
List < JobRunResult > retryResults = null ; // 过滤出来需要通知客户端的
List < JobRunResult > feedbackResults = null ; // 不需要反馈的
List < JobRunResult > finishResults = null ; for ( JobRunResult result : results ) { if ( needRetry ( result ) ) { // 需要加入到重试队列的
retryResults = CollectionUtils . newArrayListOnNull ( retryResults ) ; retryResults . add ( result ) ; } else if ( isNeedFeedback ( result . getJobMeta ( ) . getJob ( ) ) ) { // 需要反馈给客户端
feedbackResults = CollectionUtils . newArrayListOnNull ( feedbackResults ) ; feedbackResults . add ( result ) ; } else { // 不用反馈客户端 , 也不用重试 , 直接完成处理
finishResults = CollectionUtils . newArrayListOnNull ( finishResults ) ; finishResults . add ( result ) ; } } // 通知客户端
clientNotifier . send ( feedbackResults ) ; // 完成任务
jobFinishHandler . onComplete ( finishResults ) ; // 将任务加入到重试队列
retryHandler . onComplete ( retryResults ) ;
|
public class RecommendationsInner { /** * Get all recommendations for an app .
* Get all recommendations for an app .
* ServiceResponse < PageImpl < RecommendationInner > > * @ param resourceGroupName Name of the resource group to which the resource belongs .
* ServiceResponse < PageImpl < RecommendationInner > > * @ param siteName Name of the app .
* ServiceResponse < PageImpl < RecommendationInner > > * @ param featured Specify & lt ; code & gt ; true & lt ; / code & gt ; to return only the most critical recommendations . The default is & lt ; code & gt ; false & lt ; / code & gt ; , which returns all recommendations .
* ServiceResponse < PageImpl < RecommendationInner > > * @ param filter Return only channels specified in the filter . Filter is specified by using OData syntax . Example : $ filter = channels eq ' Api ' or channel eq ' Notification '
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the PagedList & lt ; RecommendationInner & gt ; object wrapped in { @ link ServiceResponse } if successful . */
public Observable < ServiceResponse < Page < RecommendationInner > > > listRecommendedRulesForWebAppSinglePageAsync ( final String resourceGroupName , final String siteName , final Boolean featured , final String filter ) { } }
|
if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( siteName == null ) { throw new IllegalArgumentException ( "Parameter siteName is required and cannot be null." ) ; } if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( this . client . apiVersion ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.apiVersion() is required and cannot be null." ) ; } return service . listRecommendedRulesForWebApp ( resourceGroupName , siteName , this . client . subscriptionId ( ) , featured , filter , this . client . apiVersion ( ) , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatMap ( new Func1 < Response < ResponseBody > , Observable < ServiceResponse < Page < RecommendationInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < RecommendationInner > > > call ( Response < ResponseBody > response ) { try { ServiceResponse < PageImpl < RecommendationInner > > result = listRecommendedRulesForWebAppDelegate ( response ) ; return Observable . just ( new ServiceResponse < Page < RecommendationInner > > ( result . body ( ) , result . response ( ) ) ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } } } ) ;
|
public class ServiceRegistry { /** * Returns an { @ code Iterator } containing all categories in this registry
* the given { @ code pProvider } < em > is currently registered with < / em > .
* The iterator supports removal .
* < small >
* NOTE : Removing a category from the iterator , de - registers
* { @ code pProvider } from the current category ( as returned by the last
* invocation of { @ code next ( ) } ) , it does < em > not < / em > remove the category
* itself from the registry .
* < / small >
* @ param pProvider the provider instance
* @ return an { @ code Iterator } containing all categories in this registry
* the given { @ code pProvider } may be registered with */
protected Iterator < Class < ? > > containingCategories ( final Object pProvider ) { } }
|
// TODO : Is removal using the iterator really a good idea ?
return new FilterIterator < Class < ? > > ( categories ( ) , new FilterIterator . Filter < Class < ? > > ( ) { public boolean accept ( Class < ? > pElement ) { return getRegistry ( pElement ) . contains ( pProvider ) ; } } ) { Class < ? > current ; public Class next ( ) { return ( current = super . next ( ) ) ; } public void remove ( ) { if ( current == null ) { throw new IllegalStateException ( "No current element" ) ; } getRegistry ( current ) . deregister ( pProvider ) ; current = null ; } } ;
|
public class WeldCollections { /** * Fluent version of { @ link Collections # sort ( List , Comparator ) } */
public static < T > List < T > sort ( List < T > list , Comparator < ? super T > comparator ) { } }
|
Collections . sort ( list , comparator ) ; return list ;
|
public class IntTupleCollections { /** * Computes the component - wise sum of the given collection
* of tuples . < br >
* < br >
* If the given collection is not empty , and the given result is
* < code > null < / code > , then a new tuple with the same
* { @ link Tuple # getSize ( ) size } as the first tuple of the collection
* will be created internally .
* < br >
* @ param tuples The input tuples
* @ param result The result tuple
* @ return The result , or < code > null < / code > if the given collection is empty
* @ throws IllegalArgumentException If the given result is not
* < code > null < / code > , and has a { @ link Tuple # getSize ( ) size }
* that is different from that of the input tuples . */
public static MutableIntTuple add ( Collection < ? extends IntTuple > tuples , MutableIntTuple result ) { } }
|
if ( tuples . isEmpty ( ) ) { return null ; } int size = getSize ( result , tuples ) ; MutableIntTuple localResult = tuples . parallelStream ( ) . collect ( ( ) -> IntTuples . create ( size ) , ( r , t ) -> IntTuples . add ( r , t , r ) , ( r0 , r1 ) -> IntTuples . add ( r0 , r1 , r0 ) ) ; if ( result == null ) { return localResult ; } result . set ( localResult ) ; return result ;
|
public class ClientRegistry { /** * Gets the { @ link ItemRendererOverride } for the { @ link ItemStack } .
* @ param itemStack the item stack
* @ return the item renderer override */
private IItemRenderer getItemRendererOverride ( ItemStack itemStack ) { } }
|
for ( ItemRendererOverride overrides : itemRendererOverrides ) { IItemRenderer renderer = overrides . get ( itemStack ) ; if ( renderer != null ) return renderer ; } return null ;
|
public class XmlStreamReaderUtils { /** * Returns the value of an attribute as a long . If the attribute is empty , this method throws an
* exception .
* @ param reader
* < code > XMLStreamReader < / code > that contains attribute values .
* @ param namespace
* namespace
* @ param localName
* the local name of the attribute .
* @ return value of attribute as long
* @ throws XMLStreamException
* if attribute is empty . */
public static long requiredLongAttribute ( final XMLStreamReader reader , final String namespace , final String localName ) throws XMLStreamException { } }
|
final String value = reader . getAttributeValue ( namespace , localName ) ; if ( value != null ) { return Long . parseLong ( value ) ; } throw new XMLStreamException ( MessageFormat . format ( "Attribute {0}:{1} is required" , namespace , localName ) ) ;
|
import java . util . Arrays ; class ContainsElement { /** * The function checks if the provided array contains the specific element .
* Args :
* arr : An array that may contain various numbers .
* element : The number to be checked within the array .
* Returns :
* A boolean value showing whether the element exists in the array .
* Examples :
* > > > containsElement ( new int [ ] { 10 , 4 , 5 , 6 , 8 } , 6)
* True
* > > > containsElement ( new int [ ] { 1 , 2 , 3 , 4 , 5 , 6 } , 7)
* False
* > > > containsElement ( new int [ ] { 7 , 8 , 9 , 44 , 11 , 12 } , 11)
* True */
public static boolean containsElement ( int [ ] arr , int element ) { } }
|
return Arrays . stream ( arr ) . anyMatch ( e -> e == element ) ;
|
public class PrefixCondition { /** * { @ inheritDoc } */
@ Override public Query doQuery ( SingleColumnMapper < ? > mapper , Analyzer analyzer ) { } }
|
if ( mapper . base == String . class ) { Term term = new Term ( field , value ) ; return new PrefixQuery ( term ) ; } else { throw new IndexException ( "Prefix queries are not supported by mapper '{}'" , mapper ) ; }
|
public class DraggableView { /** * Handles when a drag gesture has been ended by the user . */
private void handleRelease ( ) { } }
|
float speed = Math . max ( dragHelper . getDragSpeed ( ) , animationSpeed ) ; if ( getTopMargin ( ) > initialMargin || ( dragHelper . getDragSpeed ( ) > animationSpeed && dragHelper . getDragDistance ( ) > 0 ) || ( getDeviceType ( getContext ( ) ) == DeviceType . TABLET && isMaximized ( ) && getTopMargin ( ) > minMargin ) ) { animateHideView ( parentHeight - getTopMargin ( ) , speed , new DecelerateInterpolator ( ) , true ) ; } else { animateShowView ( - ( getTopMargin ( ) - minMargin ) , speed , new DecelerateInterpolator ( ) ) ; }
|
public class ThreadPoolManager { /** * 监控api */
public static int poolSize ( ) { } }
|
int poolSize = 0 ; for ( ExecutorService pool : EXECUTORS ) { if ( pool instanceof ThreadPoolExecutor ) { poolSize += ( ( ThreadPoolExecutor ) pool ) . getPoolSize ( ) ; } } for ( ExecutorService pool : EXPLICIT_EXECUTORS ) { if ( pool instanceof ThreadPoolExecutor ) { poolSize += ( ( ThreadPoolExecutor ) pool ) . getPoolSize ( ) ; } } return poolSize ;
|
public class Reflection { /** * Allows to gracefully create a new instance of class , without having to try - catch exceptions .
* @ param ofClass instance of this class will be constructed using reflection .
* @ param defaultValue will be returned if unable to construct new instance .
* @ return a new instance of passed class or default value .
* @ param < Type > type of constructed value . */
public static < Type > Type newInstance ( final Class < Type > ofClass , final Type defaultValue ) { } }
|
try { return ClassReflection . newInstance ( ofClass ) ; } catch ( final Throwable exception ) { Exceptions . ignore ( exception ) ; return defaultValue ; }
|
public class ClassUtils { /** * Returns given class primitive class or self class . < br >
* if given class is 8 wrapper class then return primitive class . < br >
* if given class is null return null .
* @ param clazz class to handle .
* @ return given class primitive class or self class . */
public static Class < ? > getPrimitiveClass ( final Class < ? > clazz ) { } }
|
if ( clazz == null ) { return null ; } int index = ArrayUtils . indexOf ( WRAPPER_CLASSES , clazz ) ; if ( index != ArrayUtils . INDEX_OF_NOT_FOUND ) { return PRIMITIVE_CLASSES [ index ] ; } return clazz ;
|
public class AffiliateLocationFeedData { /** * Gets the chains value for this AffiliateLocationFeedData .
* @ return chains * The list of chains that the Affiliate Location Feed will sync
* the locations from . */
public com . google . api . ads . adwords . axis . v201809 . cm . Chain [ ] getChains ( ) { } }
|
return chains ;
|
public class DocumentRootImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setOnExitScript ( OnExitScriptType newOnExitScript ) { } }
|
( ( FeatureMap . Internal ) getMixed ( ) ) . set ( DroolsPackage . Literals . DOCUMENT_ROOT__ON_EXIT_SCRIPT , newOnExitScript ) ;
|
public class ServletHandler { public String getRealPath ( String path ) { } }
|
if ( log . isDebugEnabled ( ) ) log . debug ( "getRealPath of " + path + " in " + this ) ; if ( __Slosh2Slash ) path = path . replace ( '\\' , '/' ) ; path = URI . canonicalPath ( path ) ; if ( path == null ) return null ; Resource baseResource = getHttpContext ( ) . getBaseResource ( ) ; if ( baseResource == null ) return null ; try { Resource resource = baseResource . addPath ( path ) ; File file = resource . getFile ( ) ; return ( file == null ) ? null : ( file . getAbsolutePath ( ) ) ; } catch ( IOException e ) { log . warn ( LogSupport . EXCEPTION , e ) ; return null ; }
|
public class BoundedLinkedList { /** * ( non - Javadoc )
* @ see java . util . LinkedList # add ( int , java . lang . Object ) */
@ Override public void add ( int location , E object ) { } }
|
if ( size ( ) == maxSize ) { removeFirst ( ) ; } super . add ( location , object ) ;
|
public class CaseInsensitiveIntMap { /** * Puts a new value in the property table with the appropriate flags */
public void put ( String key , int value ) { } }
|
put ( key . toCharArray ( ) , key . length ( ) , value ) ;
|
public class CardMultilineWidget { /** * Gets a { @ link Card } object from the user input , if all fields are valid . If not , returns
* { @ code null } .
* @ return a valid { @ link Card } object based on user input , or { @ code null } if any field is
* invalid */
@ Nullable public Card getCard ( ) { } }
|
if ( validateAllFields ( ) ) { String cardNumber = mCardNumberEditText . getCardNumber ( ) ; int [ ] cardDate = mExpiryDateEditText . getValidDateFields ( ) ; String cvcValue = mCvcEditText . getText ( ) . toString ( ) ; Card card = new Card ( cardNumber , cardDate [ 0 ] , cardDate [ 1 ] , cvcValue ) ; if ( mShouldShowPostalCode ) { card . setAddressZip ( mPostalCodeEditText . getText ( ) . toString ( ) ) ; } return card . addLoggingToken ( CARD_MULTILINE_TOKEN ) ; } return null ;
|
public class TriggerManager { /** * Returns a consolidated trigger to call for update operations , or null if
* none . If not null , the consolidated trigger is not a snapshot - - it will
* change as the set of triggers in this manager changes . */
public Trigger < ? super S > getUpdateTrigger ( ) { } }
|
ForUpdate < S > forUpdate = mForUpdate ; return forUpdate . isEmpty ( ) ? null : forUpdate ;
|
public class AutoValueOrOneOfProcessor { /** * Returns the { @ code @ AutoValue } or { @ code @ AutoOneOf } type parameters , with a ? for every type .
* If we have { @ code @ AutoValue abstract class Foo < T extends Something > } then this method will
* return just { @ code < ? > } . */
private static String wildcardTypeParametersString ( TypeElement type ) { } }
|
List < ? extends TypeParameterElement > typeParameters = type . getTypeParameters ( ) ; if ( typeParameters . isEmpty ( ) ) { return "" ; } else { return typeParameters . stream ( ) . map ( e -> "?" ) . collect ( joining ( ", " , "<" , ">" ) ) ; }
|
public class ArrayListSerializer { /** * We need to implement this method as a { @ link TypeSerializerConfigSnapshot . SelfResolvingTypeSerializer }
* because this serializer was previously returning a shared { @ link CollectionSerializerConfigSnapshot }
* as its snapshot .
* < p > When the { @ link CollectionSerializerConfigSnapshot } is restored , it is incapable of redirecting
* the compatibility check to { @ link ArrayListSerializerSnapshot } , so we do it here . */
@ Override public TypeSerializerSchemaCompatibility < ArrayList < T > > resolveSchemaCompatibilityViaRedirectingToNewSnapshotClass ( TypeSerializerConfigSnapshot < ArrayList < T > > deprecatedConfigSnapshot ) { } }
|
if ( deprecatedConfigSnapshot instanceof CollectionSerializerConfigSnapshot ) { CollectionSerializerConfigSnapshot < ArrayList < T > , T > castedLegacySnapshot = ( CollectionSerializerConfigSnapshot < ArrayList < T > , T > ) deprecatedConfigSnapshot ; ArrayListSerializerSnapshot < T > newSnapshot = new ArrayListSerializerSnapshot < > ( ) ; return CompositeTypeSerializerUtil . delegateCompatibilityCheckToNewSnapshot ( this , newSnapshot , castedLegacySnapshot . getNestedSerializerSnapshots ( ) ) ; } return TypeSerializerSchemaCompatibility . incompatible ( ) ;
|
public class ItemStream { /** * Add an { @ link Item } to an item stream under a transaction . An Item
* can only be added onto one stream at a time . .
* < p > This method can be overridden by subclass implementors in order to
* customize the behaviour of the stream . Any override should call the superclass
* implementation to maintain correct behaviour . < / p >
* @ param item
* @ param transaction
* @ throws SevereMessageStoreException
* @ throws { @ link OutOfCacheSpace } if there is not enough space in the
* unstoredCache and the storage strategy is { @ link AbstractItem # STORE _ NEVER } .
* @ throws { @ link StreamIsFull } if the size of the stream would exceed the
* maximum permissable size if an add were performed .
* @ throws { @ ProtocolException } Thrown if an add is attempted when the
* transaction cannot allow any further work to be added i . e . after
* completion of the transaction .
* @ throws { @ TransactionException } Thrown if an unexpected error occurs .
* @ throws { @ PersistenceException } Thrown if a database error occurs . */
public void addItem ( final Item item , final Transaction transaction ) throws ProtocolException , OutOfCacheSpace , StreamIsFull , TransactionException , PersistenceException , SevereMessageStoreException { } }
|
// default lock id
long lockId = NO_LOCK_ID ; // delivery delay is set , hence DELIVERY _ DELAY _ LOCK _ ID will be used to lock the Item
if ( item . getDeliveryDelay ( ) > 0 ) lockId = DELIVERY_DELAY_LOCK_ID ; addItem ( item , lockId , transaction ) ;
|
public class ProductPackageItem { /** * Gets the archiveStatus value for this ProductPackageItem .
* @ return archiveStatus * The archival status of the { @ link ProductPackageItem } .
* < p > This attribute is read - only . */
public com . google . api . ads . admanager . axis . v201805 . ArchiveStatus getArchiveStatus ( ) { } }
|
return archiveStatus ;
|
public class DB { /** * Updates a user metadata value , replacing the value of the first existing match , or creating if none exists .
* Note that there is not a unique key , e . g . ( user _ id , meta _ key ) , so users may have multiple metadata
* with the same name .
* @ param userId The user id .
* @ param key The metadata key .
* @ param value The metadata value .
* @ throws SQLException on database error . */
public void updateUserMeta ( final long userId , final String key , final String value ) throws SQLException { } }
|
Connection conn = null ; PreparedStatement stmt = null ; ResultSet rs = null ; try { conn = connectionSupplier . getConnection ( ) ; stmt = conn . prepareStatement ( firstUserMetaIdSQL ) ; stmt . setLong ( 1 , userId ) ; stmt . setString ( 2 , key ) ; rs = stmt . executeQuery ( ) ; if ( rs . next ( ) ) { long umetaId = rs . getLong ( 1 ) ; SQLUtil . closeQuietly ( stmt , rs ) ; stmt = null ; rs = null ; stmt = conn . prepareStatement ( updateUserMetaSQL ) ; stmt . setString ( 1 , value ) ; stmt . setLong ( 2 , umetaId ) ; stmt . executeUpdate ( ) ; } else { SQLUtil . closeQuietly ( stmt , rs ) ; stmt = null ; rs = null ; stmt = conn . prepareStatement ( insertUserMetaSQL ) ; stmt . setLong ( 1 , userId ) ; stmt . setString ( 2 , key ) ; stmt . setString ( 3 , value ) ; stmt . executeUpdate ( ) ; } } finally { SQLUtil . closeQuietly ( conn , stmt , rs ) ; }
|
public class RowAVLDisk { /** * Writes the Nodes , immediately after the row size .
* @ param out
* @ throws IOException */
private void writeNodes ( RowOutputInterface out ) throws IOException { } }
|
out . writeSize ( storageSize ) ; NodeAVL n = nPrimaryNode ; while ( n != null ) { n . write ( out ) ; n = n . nNext ; } hasNodesChanged = false ;
|
public class PayMchAPI { /** * 企业付款 < br >
* 接口调用规则 : < br >
* 给同一个实名用户付款 , 单笔单日限额2W / 2W < br >
* 给同一个非实名用户付款 , 单笔单日限额2000/2000 < br >
* 一个商户同一日付款总额限额100W < br >
* 单笔最小金额默认为1元 < br >
* 每个用户每天最多可付款10次 , 可以在商户平台 - - API安全进行设置 < br >
* 给同一个用户付款时间间隔不得低于15秒 < br >
* @ param transfers
* transfers
* @ param key
* key
* @ return TransfersResult */
public static TransfersResult mmpaymkttransfersPromotionTransfers ( Transfers transfers , String key ) { } }
|
Map < String , String > map = MapUtil . objectToMap ( transfers ) ; String sign = SignatureUtil . generateSign ( map , transfers . getSign_type ( ) , key ) ; transfers . setSign ( sign ) ; String secapiPayRefundXML = XMLConverUtil . convertToXML ( transfers ) ; HttpUriRequest httpUriRequest = RequestBuilder . post ( ) . setHeader ( xmlHeader ) . setUri ( baseURI ( ) + "/mmpaymkttransfers/promotion/transfers" ) . setEntity ( new StringEntity ( secapiPayRefundXML , Charset . forName ( "utf-8" ) ) ) . build ( ) ; return LocalHttpClient . keyStoreExecuteXmlResult ( transfers . getMchid ( ) , httpUriRequest , TransfersResult . class , transfers . getSign_type ( ) , key ) ;
|
public class appfwprofile_fieldconsistency_binding { /** * Use this API to fetch appfwprofile _ fieldconsistency _ binding resources of given name . */
public static appfwprofile_fieldconsistency_binding [ ] get ( nitro_service service , String name ) throws Exception { } }
|
appfwprofile_fieldconsistency_binding obj = new appfwprofile_fieldconsistency_binding ( ) ; obj . set_name ( name ) ; appfwprofile_fieldconsistency_binding response [ ] = ( appfwprofile_fieldconsistency_binding [ ] ) obj . get_resources ( service ) ; return response ;
|
public class ListAliasesRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ListAliasesRequest listAliasesRequest , ProtocolMarshaller protocolMarshaller ) { } }
|
if ( listAliasesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listAliasesRequest . getRoutingStrategyType ( ) , ROUTINGSTRATEGYTYPE_BINDING ) ; protocolMarshaller . marshall ( listAliasesRequest . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( listAliasesRequest . getLimit ( ) , LIMIT_BINDING ) ; protocolMarshaller . marshall ( listAliasesRequest . getNextToken ( ) , NEXTTOKEN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; }
|
public class Step { /** * Update a html select with a text value .
* @ param pageElement
* Is target element
* @ param textOrKey
* Is the new data ( text or text in context ( after a save ) )
* @ throws TechnicalException
* is thrown if you have a technical error ( format , configuration , datas , . . . ) in NoraUi .
* Exception with { @ value com . github . noraui . utils . Messages # FAIL _ MESSAGE _ ERROR _ ON _ INPUT } message ( with screenshot , no exception )
* or
* Exception with { @ value com . github . noraui . utils . Messages # FAIL _ MESSAGE _ VALUE _ NOT _ AVAILABLE _ IN _ THE _ LIST } message ( no screenshot , no exception )
* @ throws FailureException
* if the scenario encounters a functional error */
protected void updateList ( PageElement pageElement , String textOrKey ) throws TechnicalException , FailureException { } }
|
String value = getTextOrKey ( textOrKey ) ; try { setDropDownValue ( pageElement , value ) ; } catch ( final Exception e ) { new Result . Failure < > ( e . getMessage ( ) , Messages . format ( Messages . getMessage ( Messages . FAIL_MESSAGE_ERROR_ON_INPUT ) , pageElement , pageElement . getPage ( ) . getApplication ( ) ) , true , pageElement . getPage ( ) . getCallBack ( ) ) ; }
|
public class TabbedPaneDemo { /** * Initializes the frame by creating its contents . */
private void init ( ) { } }
|
setTitle ( "Validation Framework Test" ) ; setDefaultCloseOperation ( WindowConstants . EXIT_ON_CLOSE ) ; // Create content pane
JPanel contentPane = new JPanel ( new MigLayout ( "fill, wrap 1" , "[]" , "[]related[]unrelated[]unrelated[]" ) ) ; setContentPane ( contentPane ) ; // Checkbox to enable the tabbed pane
JCheckBox tabbedPaneEnabledCheckBox = new JCheckBox ( "Enable tabbed pane" ) ; tabbedPaneEnabledCheckBox . setSelected ( true ) ; contentPane . add ( tabbedPaneEnabledCheckBox ) ; JCheckBox firstTabEnabledCheckBox = new JCheckBox ( "Enable first tab" ) ; firstTabEnabledCheckBox . setSelected ( false ) ; contentPane . add ( firstTabEnabledCheckBox ) ; // Tabbed pane
final JTabbedPane tabbedPane = new JTabbedPane ( ) ; contentPane . add ( tabbedPane , "grow" ) ; // Create tabs
CompositeReadableProperty < Boolean > tabbedPaneResultsProperty = new CompositeReadableProperty < Boolean > ( ) ; for ( int i = 0 ; i < 3 ; i ++ ) { CompositeReadableProperty < Boolean > tabResultsProperty = new CompositeReadableProperty < Boolean > ( ) ; tabbedPane . add ( "Tab " + i , createTabContent ( tabResultsProperty ) ) ; tabbedPaneResultsProperty . addProperty ( installTabValidation ( tabbedPane , i , tabResultsProperty ) ) ; tabbedPane . setTitleAt ( i , "Tab" ) ; } // Enable tabbed pane only if checkbox is selected
read ( new JToggleButtonSelectedProperty ( tabbedPaneEnabledCheckBox ) ) . write ( new ComponentEnabledProperty ( tabbedPane ) ) ; // Enable first tab only if checkbox is selected
read ( new JToggleButtonSelectedProperty ( firstTabEnabledCheckBox ) ) . write ( new WritableProperty < Boolean > ( ) { @ Override public void setValue ( Boolean value ) { if ( tabbedPane . getTabCount ( ) > 0 ) { tabbedPane . setEnabledAt ( 0 , ( value != null ) && value ) ; } } } ) ; // Install global validator
installGlobalValidation ( tabbedPaneResultsProperty , applyButton ) ; // Apply button
contentPane . add ( applyButton , "align right" ) ; // Set size
pack ( ) ; Dimension size = getSize ( ) ; size . width += 100 ; setMinimumSize ( size ) ; // Set location
Dimension screenSize = Toolkit . getDefaultToolkit ( ) . getScreenSize ( ) ; setLocation ( ( screenSize . width - size . width ) / 2 , ( screenSize . height - size . height ) / 3 ) ;
|
public class CommonUtils { /** * Check if the two of the given objects are equal with their { @ link Object # equals ( Object ) }
* methods . It ' s safe to pass NULL as the objects , and when they are both NULL they will be
* considered equal .
* @ param obj1
* @ param obj2
* @ return */
public static boolean areObjectsEqual ( Object obj1 , Object obj2 ) { } }
|
boolean equal = false ; if ( obj1 == null && obj2 == null ) { equal = true ; } else { if ( obj1 != null ) { if ( obj1 . equals ( obj2 ) ) { equal = true ; } } } return equal ;
|
public class CmsXmlContainerPage { /** * Gets the container page content as a bean . < p >
* @ param cms the current CMS context
* @ return the bean containing the container page data */
public CmsContainerPageBean getContainerPage ( CmsObject cms ) { } }
|
Locale masterLocale = CmsLocaleManager . MASTER_LOCALE ; Locale localeToLoad = null ; // always use master locale if possible , otherwise use the first locale .
// this is important for ' legacy ' container pages which were created before container pages became locale independent
if ( m_cntPages . containsKey ( masterLocale ) ) { localeToLoad = masterLocale ; } else if ( ! m_cntPages . isEmpty ( ) ) { localeToLoad = m_cntPages . keySet ( ) . iterator ( ) . next ( ) ; } if ( localeToLoad == null ) { return null ; } else { CmsContainerPageBean result = m_cntPages . get ( localeToLoad ) ; return result ; }
|
public class AbstractTicketRegistry { /** * Encode ticket id into a SHA - 512.
* @ param ticketId the ticket id
* @ return the ticket */
protected String encodeTicketId ( final String ticketId ) { } }
|
if ( ! isCipherExecutorEnabled ( ) ) { LOGGER . trace ( MESSAGE ) ; return ticketId ; } if ( StringUtils . isBlank ( ticketId ) ) { return ticketId ; } val encodedId = DigestUtils . sha512 ( ticketId ) ; LOGGER . debug ( "Encoded original ticket id [{}] to [{}]" , ticketId , encodedId ) ; return encodedId ;
|
public class RootBeer { /** * Checks if device has ReadAccess to the Native Library
* Precondition : canLoadNativeLibrary ( ) ran before this and returned true
* Description : RootCloak automatically blocks read access to the Native Libraries , however
* allows for them to be loaded into memory . This check is an indication that RootCloak is
* installed onto the device .
* @ return true if device has Read Access | false if UnsatisfiedLinkError Occurs */
public boolean checkForNativeLibraryReadAccess ( ) { } }
|
RootBeerNative rootBeerNative = new RootBeerNative ( ) ; try { rootBeerNative . setLogDebugMessages ( loggingEnabled ) ; return true ; } catch ( UnsatisfiedLinkError e ) { return false ; }
|
public class ProxyInvocationHandlerImpl { /** * Checks if the connector was set successfully . Returns immediately and does not block until the connector is
* finished .
* @ return true if a connector was successfully set . */
public boolean isConnectorReady ( ) { } }
|
connectorStatusLock . lock ( ) ; try { if ( connectorStatus == ConnectorStatus . ConnectorSuccesful ) { return true ; } return false ; } finally { connectorStatusLock . unlock ( ) ; }
|
public class DataSet { /** * Returns a distinct set of a { @ link DataSet } using a { @ link KeySelector } function .
* < p > The KeySelector function is called for each element of the DataSet and extracts a single key value on which the
* decision is made if two items are distinct or not .
* @ param keyExtractor The KeySelector function which extracts the key values from the DataSet on which the
* distinction of the DataSet is decided .
* @ return A DistinctOperator that represents the distinct DataSet . */
public < K > DistinctOperator < T > distinct ( KeySelector < T , K > keyExtractor ) { } }
|
TypeInformation < K > keyType = TypeExtractor . getKeySelectorTypes ( keyExtractor , getType ( ) ) ; return new DistinctOperator < > ( this , new Keys . SelectorFunctionKeys < > ( keyExtractor , getType ( ) , keyType ) , Utils . getCallLocationName ( ) ) ;
|
public class CORSConfigBuilder { /** * < p > Specifies which headers ( aside from " simple " headers ) are allowed to be accessed by JavaScript in responses . < / p >
* < p > The " simple " headers are : < code > Cache - Control < / code > , < code > Content - Language < / code > ,
* < code > Content - Type < / code > , < code > Expires < / code > , < code > Last - Modified < / code > , < code > Pragma < / code >
* ( so you do not need to specify these values ) . < / p >
* @ param headerNames The names of headers to allow , for example < code > Content - Type < / code >
* @ return This builder */
public CORSConfigBuilder withExposedHeaders ( Collection < String > headerNames ) { } }
|
Mutils . notNull ( "headerNames" , headerNames ) ; this . exposedHeaders = headerNames ; return this ;
|
public class ResourceEntry { /** * setter for entryId - sets The identifier of the entry , C
* @ generated
* @ param v value to set into the feature */
public void setEntryId ( String v ) { } }
|
if ( ResourceEntry_Type . featOkTst && ( ( ResourceEntry_Type ) jcasType ) . casFeat_entryId == null ) jcasType . jcas . throwFeatMissing ( "entryId" , "de.julielab.jules.types.ResourceEntry" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( ResourceEntry_Type ) jcasType ) . casFeatCode_entryId , v ) ;
|
public class AmazonAppStreamClient { /** * Disables the specified user in the user pool . Users can ' t sign in to AppStream 2.0 until they are re - enabled .
* This action does not delete the user .
* @ param disableUserRequest
* @ return Result of the DisableUser operation returned by the service .
* @ throws ResourceNotFoundException
* The specified resource was not found .
* @ sample AmazonAppStream . DisableUser
* @ see < a href = " http : / / docs . aws . amazon . com / goto / WebAPI / appstream - 2016-12-01 / DisableUser " target = " _ top " > AWS API
* Documentation < / a > */
@ Override public DisableUserResult disableUser ( DisableUserRequest request ) { } }
|
request = beforeClientExecution ( request ) ; return executeDisableUser ( request ) ;
|
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < }
* { @ link CmisExtensionType } { @ code > } */
@ XmlElementDecl ( namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/" , name = "extension" , scope = DeleteTree . class ) public JAXBElement < CmisExtensionType > createDeleteTreeExtension ( CmisExtensionType value ) { } }
|
return new JAXBElement < CmisExtensionType > ( _GetPropertiesExtension_QNAME , CmisExtensionType . class , DeleteTree . class , value ) ;
|
public class LRUCache { /** * Sets the maximum size of this cache .
* @ param cacheSize the cache size to be set */
public void setCacheSize ( int cacheSize ) { } }
|
this . cacheSize = cacheSize ; long toDelete = map . size ( ) - this . cacheSize ; if ( toDelete <= 0 ) { return ; } List < Integer > keys = new ArrayList < > ( map . keySet ( ) ) ; Collections . reverse ( keys ) ; for ( Integer id : keys ) { P page = map . remove ( id ) ; file . writePage ( page ) ; }
|
public class ActiveRepaintManager { /** * Returns the root component for the supplied component or null if it is not part of a rooted
* hierarchy or if any parent along the way is found to be hidden or without a peer . */
protected Component getRoot ( Component comp ) { } }
|
for ( Component c = comp ; c != null ; c = c . getParent ( ) ) { boolean hidden = ! c . isDisplayable ( ) ; // on the mac , the JRootPane is invalidated before it is visible and is never again
// invalidated or repainted , so we punt and allow all invisible components to be
// invalidated and revalidated
if ( ! RunAnywhere . isMacOS ( ) ) { hidden |= ! c . isVisible ( ) ; } if ( hidden ) { return null ; } if ( c instanceof Window || c instanceof Applet ) { return c ; } } return null ;
|
public class Services { /** * Get the service name of a top - level deployment unit .
* @ param name the simple name of the deployment
* @ param phase the deployment phase
* @ return the service name */
public static ServiceName deploymentUnitName ( String name , Phase phase ) { } }
|
return JBOSS_DEPLOYMENT_UNIT . append ( name , phase . name ( ) ) ;
|
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public CPDEncScheme createCPDEncSchemeFromString ( EDataType eDataType , String initialValue ) { } }
|
CPDEncScheme result = CPDEncScheme . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ;
|
public class SARLValidator { /** * Replies if the given annotation is an active annotation for agent - oriented elements .
* @ param container the container to test .
* @ return { @ code true } if the container could receive an active annotation .
* @ see # isOOActiveAnnotation ( XAnnotation )
* @ see # isAOActiveAnnotation ( XAnnotation ) */
@ SuppressWarnings ( "static-method" ) protected boolean isAOActiveAnnotationReceiver ( XtendTypeDeclaration container ) { } }
|
return container instanceof SarlAgent || container instanceof SarlBehavior || container instanceof SarlSkill ;
|
public class ResourceadapterTypeImpl { /** * If not already created , a new < code > security - permission < / code > element will be created and returned .
* Otherwise , the first existing < code > security - permission < / code > element will be returned .
* @ return the instance defined for the element < code > security - permission < / code > */
public SecurityPermissionType < ResourceadapterType < T > > getOrCreateSecurityPermission ( ) { } }
|
List < Node > nodeList = childNode . get ( "security-permission" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new SecurityPermissionTypeImpl < ResourceadapterType < T > > ( this , "security-permission" , childNode , nodeList . get ( 0 ) ) ; } return createSecurityPermission ( ) ;
|
public class NodeLocatorHelper { /** * Returns the target replica node { @ link InetAddress } for a given document ID and replica number on the bucket .
* @ param id the document id to convert .
* @ param replicaNum the replica number .
* @ return the node for the given document id . */
public InetAddress replicaNodeForId ( final String id , int replicaNum ) { } }
|
if ( replicaNum < 1 || replicaNum > 3 ) { throw new IllegalArgumentException ( "Replica number must be between 1 and 3." ) ; } BucketConfig config = bucketConfig . get ( ) ; if ( config instanceof CouchbaseBucketConfig ) { CouchbaseBucketConfig cbc = ( CouchbaseBucketConfig ) config ; int partitionId = ( int ) hashId ( id ) & cbc . numberOfPartitions ( ) - 1 ; int nodeId = cbc . nodeIndexForReplica ( partitionId , replicaNum - 1 , false ) ; if ( nodeId == - 1 ) { throw new IllegalStateException ( "No partition assigned to node for Document ID: " + id ) ; } if ( nodeId == - 2 ) { throw new IllegalStateException ( "Replica not configured for this bucket." ) ; } try { return InetAddress . getByName ( cbc . nodeAtIndex ( nodeId ) . hostname ( ) . address ( ) ) ; } catch ( UnknownHostException e ) { throw new IllegalStateException ( e ) ; } } else { throw new UnsupportedOperationException ( "Bucket type not supported: " + config . getClass ( ) . getName ( ) ) ; }
|
public class ExceptionUtil { /** * / * public */
static void launder ( final Throwable pThrowable , Class < ? extends Throwable > ... pExpectedTypes ) { } }
|
if ( pThrowable instanceof Error ) { throw ( Error ) pThrowable ; } if ( pThrowable instanceof RuntimeException ) { throw ( RuntimeException ) pThrowable ; } for ( Class < ? extends Throwable > expectedType : pExpectedTypes ) { if ( expectedType . isInstance ( pThrowable ) ) { throw new RuntimeException ( pThrowable ) ; } } throw new UndeclaredThrowableException ( pThrowable ) ;
|
public class GreenPepperXmlRpcServer { /** * { @ inheritDoc } */
public Vector < Object > runReference ( Vector < Object > referenceParams , String locale ) { } }
|
try { Reference reference = XmlRpcDataMarshaller . toReference ( referenceParams ) ; reference = service . runReference ( reference , locale ) ; log . debug ( "Runned Reference: " + reference . getRequirement ( ) . getName ( ) + "," + reference . getSpecification ( ) . getName ( ) + " ON System: " + reference . getSystemUnderTest ( ) . getName ( ) ) ; return reference . marshallize ( ) ; } catch ( Exception e ) { return errorAsVector ( e , RUN_REFERENCE_FAILED ) ; }
|
public class EventRepositoryImpl { /** * / * ( non - Javadoc )
* @ see org . talend . esb . sam . common . event . persistence . EventRepository # writeEvent ( org . talend . esb . sam . common . event . Event ) */
@ Override public void writeEvent ( Event event ) { } }
|
Originator originator = event . getOriginator ( ) ; MessageInfo messageInfo = event . getMessageInfo ( ) ; long id = dbDialect . getIncrementer ( ) . nextLongValue ( ) ; event . setPersistedId ( id ) ; getJdbcTemplate ( ) . update ( "insert into EVENTS (ID, EI_TIMESTAMP, EI_EVENT_TYPE," + " ORIG_PROCESS_ID, ORIG_IP, ORIG_HOSTNAME, " + " ORIG_CUSTOM_ID, ORIG_PRINCIPAL," + " MI_MESSAGE_ID, MI_FLOW_ID, MI_PORT_TYPE," + " MI_OPERATION_NAME, MI_TRANSPORT_TYPE," + " CONTENT_CUT, MESSAGE_CONTENT) " + " values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" , event . getPersistedId ( ) , event . getTimestamp ( ) , event . getEventType ( ) . toString ( ) , originator . getProcessId ( ) , originator . getIp ( ) , originator . getHostname ( ) , originator . getCustomId ( ) , originator . getPrincipal ( ) , messageInfo . getMessageId ( ) , messageInfo . getFlowId ( ) , messageInfo . getPortType ( ) , messageInfo . getOperationName ( ) , messageInfo . getTransportType ( ) , event . isContentCut ( ) , event . getContent ( ) ) ; writeCustomInfo ( event ) ; if ( LOG . isLoggable ( Level . INFO ) ) { LOG . info ( "event [message_id=" + messageInfo . getMessageId ( ) + "] persist to Database successful." + " ID=" + id ) ; }
|
public class JKTableModel { public int getColunmIndex ( final String name ) { } }
|
for ( int i = 0 ; i < getColumnCount ( ) ; i ++ ) { if ( getActualColumnName ( i ) . trim ( ) . equalsIgnoreCase ( name ) ) { return i ; } } return - 1 ;
|
public class MetaKeywords { /** * Get the package keywords . */
public List < String > getMetaKeywords ( PackageElement packageElement ) { } }
|
List < String > result = new ArrayList < > ( 1 ) ; if ( config . keywords ) { String pkgName = config . utils . getPackageName ( packageElement ) ; result . add ( pkgName + " " + "package" ) ; } return result ;
|
public class Matrix4d { /** * / * ( non - Javadoc )
* @ see org . joml . Matrix4dc # positiveX ( org . joml . Vector3d ) */
public Vector3d positiveX ( Vector3d dest ) { } }
|
dest . x = m11 * m22 - m12 * m21 ; dest . y = m02 * m21 - m01 * m22 ; dest . z = m01 * m12 - m02 * m11 ; return dest . normalize ( dest ) ;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.