signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Parser { /** * syck _ parser _ reset _ levels */
public void resetLevels ( ) { } } | while ( lvl_idx > 1 ) { popLevel ( ) ; } if ( lvl_idx < 1 ) { lvl_idx = 1 ; levels [ 0 ] = new Level ( ) ; levels [ 0 ] . spaces = - 1 ; levels [ 0 ] . ncount = 0 ; levels [ 0 ] . domain = "" ; } levels [ 0 ] . status = LevelStatus . header ; |
public class DeleteLoggingConfigurationRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeleteLoggingConfigurationRequest deleteLoggingConfigurationRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deleteLoggingConfigurationRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteLoggingConfigurationRequest . getResourceArn ( ) , RESOURCEARN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to ma... |
public class JacksonDBCollection { /** * find distinct values for a key
* @ param key The key
* @ param query query to match
* @ return The results */
public List distinct ( String key , DBObject query ) { } } | return dbCollection . distinct ( key , serializeFields ( query ) ) ; |
public class FileInputFormat { /** * Configures the file input format by reading the file path from the configuration .
* @ see eu . stratosphere . api . common . io . InputFormat # configure ( eu . stratosphere . configuration . Configuration ) */
@ Override public void configure ( Configuration parameters ) { } } | // get the file path
String filePath = parameters . getString ( FILE_PARAMETER_KEY , null ) ; if ( filePath != null ) { try { this . filePath = new Path ( filePath ) ; } catch ( RuntimeException rex ) { throw new RuntimeException ( "Could not create a valid URI from the given file path name: " + rex . getMessage ( ) ) ... |
public class HashIndex { /** * Adds an object to the Index . If it was already in the Index ,
* then nothing is done . If it is not in the Index , then it is
* added iff the Index hasn ' t been locked .
* @ return true if the item was added to the index and false if the
* item was already in the index or if the... | Integer index = indexes . get ( o ) ; if ( index == null && ! locked ) { index = objects . size ( ) ; objects . add ( o ) ; indexes . put ( o , index ) ; return true ; } return false ; |
public class FreightStreamer { /** * Print statistics about path in specified format .
* Format sequences :
* % b : Size of file in blocks
* % n : Filename
* % o : Block size
* % r : replication
* % y : UTC date as & quot ; yyyy - MM - dd HH : mm : ss & quot ;
* % Y : Milliseconds since January 1 , 1970 U... | Path srcPath = new Path ( src ) ; FileSystem srcFs = srcPath . getFileSystem ( getConf ( ) ) ; FileStatus glob [ ] = srcFs . globStatus ( srcPath ) ; if ( null == glob ) throw new IOException ( "cannot stat `" + src + "': No such file or directory" ) ; for ( FileStatus f : glob ) { StringBuilder buf = new StringBuilder... |
public class PojoDescriptorGenerator { /** * Generates the constructor of the { @ link Class } to generate .
* @ param sourceWriter is the { @ link SourceWriter } where to { @ link SourceWriter # print ( String ) write } the
* source code to .
* @ param simpleName is the { @ link Class # getSimpleName ( ) simple ... | generateSourcePublicConstructorDeclaration ( sourceWriter , simpleName ) ; sourceWriter . print ( "super(new " ) ; sourceWriter . print ( SimpleGenericTypeLimited . class . getSimpleName ( ) ) ; sourceWriter . print ( "(" ) ; sourceWriter . print ( inputType . getName ( ) ) ; sourceWriter . print ( ".class), " ) ; sour... |
public class SeaGlassSynthPainterImpl { /** * Paints the foreground of the divider of a split pane .
* @ param context SynthContext identifying the < code > JComponent < / code >
* and < code > Region < / code > to paint to
* @ param g < code > Graphics < / code > to paint to
* @ param x X coordinate of the are... | paintForeground ( context , g , x , y , w , h , null ) ; |
public class ConfluenceGreenPepper { /** * < p > Getter for the field < code > viewRenderer < / code > . < / p >
* @ return a { @ link com . atlassian . confluence . content . render . xhtml . Renderer } object . */
public Renderer getViewRenderer ( ) { } } | if ( viewRenderer != null ) { return viewRenderer ; } viewRenderer = ( Renderer ) ContainerManager . getComponent ( "viewRenderer" ) ; return viewRenderer ; |
public class HttpSessionContextImpl { /** * SessionAffinityContext keeps track of incoming and outgoing cache id ,
* session id , and clone ids . If cookies are enabled , we may have multiple
* sac ' s on a request if it is dispatched to other apps that have a different
* cookie name , cookie path , cookie domain... | Hashtable sacHashtable = ( Hashtable ) ( ( IExtendedRequest ) _request ) . getSessionAffinityContext ( ) ; if ( sacHashtable == null ) { sacHashtable = new Hashtable ( ) ; ( ( IExtendedRequest ) _request ) . setSessionAffinityContext ( ( Object ) sacHashtable ) ; if ( _smc . isDebugSessionCrossover ( ) ) { currentThrea... |
public class ExportJobRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ExportJobRequest exportJobRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( exportJobRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( exportJobRequest . getRoleArn ( ) , ROLEARN_BINDING ) ; protocolMarshaller . marshall ( exportJobRequest . getS3UrlPrefix ( ) , S3URLPREFIX_BINDING ) ; protocolMarshall... |
public class AbstractUserObject { /** * Get the note belonging to this UserObject .
* < b > Careful . Executes Query against the Database and therefore might be slow . < / b >
* @ return the note belonging to the UserObject
* @ throws EFapsException on error during reading */
public String getNote ( ) throws EFap... | String ret = "" ; final QueryBuilder queryBldr = new QueryBuilder ( CIAdminUser . Abstract ) ; queryBldr . addWhereAttrEqValue ( CIAdminUser . Abstract . ID , getId ( ) ) ; final MultiPrintQuery multi = queryBldr . getPrint ( ) ; multi . addAttribute ( CIAdminUser . Abstract . Note ) ; if ( multi . execute ( ) ) { mult... |
public class DecimalConvertor { /** * Produces decimal digits for binary floating point values greater than
* zero .
* @ param f floating point mantissa < b > ( value is destroyed ) < / b >
* @ param e floating point exponent
* @ param p floating point precision ( number of bits )
* @ param digits buffer to r... | if ( f . isZero ( ) || maxDigits == 0 ) { return 0 ; } LargeUInt S = new LargeUInt ( ) ; S . setValue ( 1 ) ; LargeUInt R = new LargeUInt ( f ) ; LargeUInt mlo = new LargeUInt ( ) ; mlo . setValue ( 1 ) ; if ( p > e ) { S . shiftLeft ( p - e ) ; } else { R . shiftLeft ( e - p ) ; mlo . shiftLeft ( e - p ) ; } LargeUInt... |
public class Stitch { /** * Initializes the default app client for Stitch to use when using { @ link
* Stitch # getDefaultAppClient ( ) } . Can only be called once .
* @ param clientAppId the client app id to initialize an app client for .
* @ return the app client that was just initialized . */
public static Sti... | return initializeDefaultAppClient ( clientAppId , new StitchAppClientConfiguration . Builder ( ) . build ( ) ) ; |
public class AmazonAlexaForBusinessClient { /** * Associates a skill with the organization under the customer ' s AWS account . If a skill is private , the user
* implicitly accepts access to this skill during enablement .
* @ param approveSkillRequest
* @ return Result of the ApproveSkill operation returned by t... | request = beforeClientExecution ( request ) ; return executeApproveSkill ( request ) ; |
public class MaterialStepper { /** * Gets the current step component . */
public MaterialStep getCurrentStep ( ) { } } | if ( currentStepIndex > getWidgetCount ( ) - 1 || currentStepIndex < 0 ) { return null ; } Widget w = getWidget ( currentStepIndex ) ; if ( w instanceof MaterialStep ) { return ( MaterialStep ) w ; } return null ; |
public class IQAgent { /** * Assimilate a new value from the stream . */
public void add ( double datum ) { } } | dbuf [ nd ++ ] = datum ; if ( datum < q0 ) { q0 = datum ; } if ( datum > qm ) { qm = datum ; } if ( nd == nbuf ) { update ( ) ; } |
public class TransientBuildActionFactory { /** * Creates actions for the given build .
* @ param target for which the action objects are requested . Never null .
* @ return Can be empty but must not be null . */
public Collection < ? extends Action > createFor ( Run target ) { } } | if ( target instanceof AbstractBuild ) return createFor ( ( AbstractBuild ) target ) ; else return Collections . emptyList ( ) ; |
public class ListAcceleratorsResult { /** * The list of accelerators for a customer account .
* @ param accelerators
* The list of accelerators for a customer account . */
public void setAccelerators ( java . util . Collection < Accelerator > accelerators ) { } } | if ( accelerators == null ) { this . accelerators = null ; return ; } this . accelerators = new java . util . ArrayList < Accelerator > ( accelerators ) ; |
public class current_timezone { /** * < pre >
* Converts API response of bulk operation into object and returns the object array in case of get request .
* < / pre > */
protected base_resource [ ] get_nitro_bulk_response ( nitro_service service , String response ) throws Exception { } } | current_timezone_responses result = ( current_timezone_responses ) service . get_payload_formatter ( ) . string_to_resource ( current_timezone_responses . class , response ) ; if ( result . errorcode != 0 ) { if ( result . errorcode == SESSION_NOT_EXISTS ) service . clear_session ( ) ; throw new nitro_exception ( resul... |
public class SegmentsResponseMarshaller { /** * Marshall the given parameter object . */
public void marshall ( SegmentsResponse segmentsResponse , ProtocolMarshaller protocolMarshaller ) { } } | if ( segmentsResponse == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( segmentsResponse . getItem ( ) , ITEM_BINDING ) ; protocolMarshaller . marshall ( segmentsResponse . getNextToken ( ) , NEXTTOKEN_BINDING ) ; } catch ( Exception e ) { ... |
public class CmsContainerConfigurationParser { /** * Parses the contents of a file . < p >
* @ param file the file to parse
* @ throws CmsException if something goes wrong */
public void parse ( CmsFile file ) throws CmsException { } } | CmsXmlContent content = CmsXmlContentFactory . unmarshal ( m_cms , file ) ; for ( Locale locale : content . getLocales ( ) ) { m_currentLocale = locale ; CmsXmlContentRootLocation rootLocation = new CmsXmlContentRootLocation ( content , locale ) ; parseConfigurationGroup ( rootLocation ) ; } |
public class ApiOvhNewAccount { /** * Give all the rules to follow in order to create and update an OVH identifier
* REST : POST / newAccount / rules
* @ param ovhSubsidiary [ required ]
* @ param phone [ required ]
* @ param phoneCountry [ required ]
* @ param country [ required ]
* @ param fax [ required ... | String qPath = "/newAccount/rules" ; StringBuilder sb = path ( qPath ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "action" , action ) ; addBody ( o , "address" , address ) ; addBody ( o , "area" , area ) ; addBody ( o , "birthCity" , birthCity ) ; addBody ( o , "birthDay" , bi... |
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public String convertFNCResXUBaseToString ( EDataType eDataType , Object instanceValue ) { } } | return instanceValue == null ? null : instanceValue . toString ( ) ; |
public class SarlLinkFactory { /** * Update the label of the given link with the SARL notation for lambdas .
* @ param linkInfo the link information to update . */
protected void updateLinkLabel ( LinkInfo linkInfo ) { } } | if ( linkInfo . type != null && linkInfo instanceof LinkInfoImpl ) { final LinkInfoImpl impl = ( LinkInfoImpl ) linkInfo ; final ClassDoc classdoc = linkInfo . type . asClassDoc ( ) ; if ( classdoc != null ) { final SARLFeatureAccess kw = Utils . getKeywords ( ) ; final String name = classdoc . qualifiedName ( ) ; if (... |
public class BaseDestinationHandler { /** * Returns the guess set for queue points .
* Unit tests only
* @ return */
HashSet getQueuePointGuessSet ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getQueuePointGuessSet" ) ; HashSet theQueuePoints = _ptoPRealization . getQueuePointGuessSet ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getQueuePointGuessSet" , the... |
public class LocationUtil { /** * Returns the HostDiscovery for a given location . The curator should come from a previous call to
* { @ link # getCuratorForLocation ( java . net . URI ) } to the same location . */
public static HostDiscovery getHostDiscoveryForLocation ( URI location , Optional < CuratorFramework > ... | checkArgument ( getLocationType ( location ) == LocationType . EMO_HOST_DISCOVERY , "Location does not use host discovery" ) ; Optional < List < String > > hosts = getHostOverride ( location ) ; if ( hosts . isPresent ( ) ) { return createFixedHostDiscovery ( serviceName , hosts . get ( ) . toArray ( new String [ hosts... |
public class DefaultStateMachine { /** * Handles received telegrams . The telegram is first routed to the current state . If the current state does not deal with the
* message , it ' s routed to the global state ' s message handler .
* @ param telegram the received telegram
* @ return true if telegram has been su... | // First see if the current state is valid and that it can handle the message
if ( currentState != null && currentState . onMessage ( owner , telegram ) ) { return true ; } // If not , and if a global state has been implemented , send
// the message to the global state
if ( globalState != null && globalState . onMessag... |
public class RegistryFinder { /** * start new rmiregistry using PrcessBuilder
* @ param port
* @ return */
private Registry startRmiRegistryProcess ( Configuration configuration , final int port ) { } } | try { final String javaHome = System . getProperty ( JAVA_HOME ) ; String command = null ; if ( javaHome == null ) { command = "rmiregistry" ; } else { if ( javaHome . endsWith ( "bin" ) ) { command = javaHome + "/rmiregistry " ; } else { command = javaHome + "/bin/rmiregistry " ; } } // try with new command with full ... |
public class GetReservedInstancesExchangeQuoteRequest { /** * This method is intended for internal use only . Returns the marshaled request configured with additional
* parameters to enable operation dry - run . */
@ Override public Request < GetReservedInstancesExchangeQuoteRequest > getDryRunRequest ( ) { } } | Request < GetReservedInstancesExchangeQuoteRequest > request = new GetReservedInstancesExchangeQuoteRequestMarshaller ( ) . marshall ( this ) ; request . addParameter ( "DryRun" , Boolean . toString ( true ) ) ; return request ; |
public class Tile { /** * Defines the number values that should be used for
* the averaging of values . The value must be in the
* range of 1 - 1000.
* @ param PERIOD */
public void setAveragingPeriod ( final int PERIOD ) { } } | if ( null == averagingPeriod ) { _averagingPeriod = Helper . clamp ( 0 , MAX_PERIOD , PERIOD ) ; getMovingAverage ( ) . setPeriod ( _averagingPeriod ) ; // MAX 1000 values
if ( null == showing ) return ; fireTileEvent ( AVERAGING_EVENT ) ; } else { averagingPeriod . set ( Helper . clamp ( 0 , MAX_PERIOD , PERIOD ) ) ; ... |
public class XmlAssert { /** * Create { @ link CompareAssert } for given < b > control < / b > XML source and actual XML source .
* @ throws AssertionError if the actual value is { @ code null }
* @ throws AssertionError if the control value is { @ code null } */
public CompareAssert and ( Object control ) { } } | isNotNull ( ) ; try { return CompareAssert . create ( actual , control , prefix2Uri , dbf ) ; } catch ( Exception e ) { throwAssertionError ( shouldNotHaveThrown ( e ) ) ; } return null ; // fix compile issue |
public class HeapCompactDoublesSketch { /** * Converts the given UpdateDoublesSketch to this compact form .
* @ param sketch the sketch to convert
* @ return a HeapCompactDoublesSketch created from an UpdateDoublesSketch */
static HeapCompactDoublesSketch createFromUpdateSketch ( final UpdateDoublesSketch sketch ) ... | final int k = sketch . getK ( ) ; final long n = sketch . getN ( ) ; final HeapCompactDoublesSketch hcds = new HeapCompactDoublesSketch ( k ) ; // checks k
hcds . n_ = n ; hcds . bitPattern_ = computeBitPattern ( k , n ) ; assert hcds . bitPattern_ == sketch . getBitPattern ( ) ; hcds . minValue_ = sketch . getMinValue... |
public class Camera { /** * Fix location inside horizontal limit . */
private void applyHorizontalLimit ( ) { } } | if ( mover . getX ( ) < limitLeft && limitLeft != Integer . MIN_VALUE ) { mover . teleportX ( limitLeft ) ; } else if ( mover . getX ( ) > limitRight && limitRight != Integer . MAX_VALUE ) { mover . teleportX ( limitRight ) ; } |
public class LBiObjBytePredicateBuilder { /** * Builds the functional interface implementation and if previously provided calls the consumer . */
@ Nonnull public final LBiObjBytePredicate < T1 , T2 > build ( ) { } } | final LBiObjBytePredicate < T1 , T2 > eventuallyFinal = this . eventually ; LBiObjBytePredicate < T1 , T2 > retval ; final Case < LBiObjBytePredicate < T1 , T2 > , LBiObjBytePredicate < T1 , T2 > > [ ] casesArray = cases . toArray ( new Case [ cases . size ( ) ] ) ; retval = LBiObjBytePredicate . < T1 , T2 > biObjByteP... |
public class CmsShellCommands { /** * Change the user settings concerned with the place where a user is taken on login . < p >
* @ param username the name of the user for which the data should be changed
* @ param startProject the start project
* @ param startSite the start site
* @ param startFolder the start ... | CmsUser user = m_cms . readUser ( username ) ; CmsUserSettings settings = new CmsUserSettings ( user ) ; settings . setStartProject ( startProject ) ; settings . setStartSite ( startSite ) ; settings . setStartFolder ( startFolder ) ; settings . setStartView ( startView ) ; settings . save ( m_cms ) ; |
public class MimeTypeUtil { /** * Determines the filename for a resource using their name and the mime type of the resource
* ( useful as filename hint in the HTTP headers - Content - Disposition - of a download operation ) .
* @ param resource the ( binary ) resource
* @ param extFallback a default filename exte... | String filename = getResourceName ( resource ) ; if ( ! HAS_FILE_EXT_PATTERN . matcher ( filename ) . matches ( ) ) { String filenameEnd = null ; MimeType mimeType = getMimeType ( resource ) ; if ( mimeType != null ) { String ext = mimeType . getExtension ( ) ; if ( StringUtils . isNotBlank ( ext ) ) { filenameEnd = ex... |
public class AWSIotClient { /** * Lists the certificates registered in your AWS account .
* The results are paginated with a default page size of 25 . You can use the returned marker to retrieve additional
* results .
* @ param listCertificatesRequest
* The input for the ListCertificates operation .
* @ retur... | request = beforeClientExecution ( request ) ; return executeListCertificates ( request ) ; |
public class ConstructState { /** * See { @ link # addConstructState ( Constructs , ConstructState , Optional ) } . This method uses no infix . */
public void addConstructState ( Constructs construct , ConstructState constructState ) { } } | addConstructState ( construct , constructState , Optional . < String > absent ( ) ) ; |
public class ReferenceIndividualGroupService { /** * Remove the back pointers of the group members of the deleted group . Then update the cache to
* invalidate copies on peer servers .
* @ param group ILockableEntityGroup */
protected void synchronizeGroupMembersOnDelete ( IEntityGroup group ) throws GroupsExceptio... | GroupMemberImpl gmi = null ; for ( Iterator it = group . getChildren ( ) . iterator ( ) ; it . hasNext ( ) ; ) { gmi = ( GroupMemberImpl ) it . next ( ) ; gmi . invalidateInParentGroupsCache ( Collections . singleton ( ( IGroupMember ) gmi ) ) ; if ( cacheInUse ( ) ) { cacheUpdate ( gmi ) ; } } |
public class JmsConnectionFactoryImpl { /** * default user name is null . */
@ Override public void setUserName ( String userName ) throws JMSException { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setUserName" , userName ) ; jcaManagedConnectionFactory . setUserName ( userName ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setUserName" ) ; |
public class RollingPolicyBase { /** * Parse file name pattern . */
protected final void parseFileNamePattern ( ) { } } | List converters = new ArrayList ( ) ; List fields = new ArrayList ( ) ; ExtrasPatternParser . parse ( fileNamePatternStr , converters , fields , null , ExtrasPatternParser . getFileNamePatternRules ( ) ) ; patternConverters = new PatternConverter [ converters . size ( ) ] ; patternConverters = ( PatternConverter [ ] ) ... |
public class RecordMarshaller { /** * Marshall the given parameter object . */
public void marshall ( Record record , ProtocolMarshaller protocolMarshaller ) { } } | if ( record == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( record . getKey ( ) , KEY_BINDING ) ; protocolMarshaller . marshall ( record . getValue ( ) , VALUE_BINDING ) ; protocolMarshaller . marshall ( record . getSyncCount ( ) , SYNCCO... |
public class SimplifyExprVisitor { /** * Attempts to preevaluate a node . If successful , the node is replaced with a new constant node in
* the tree . If unsuccessful , the tree is not changed . */
private void attemptPreeval ( ExprNode node ) { } } | // Note that we need to catch RenderException because preevaluation may fail , e . g . when
// ( a ) the expression uses a bidi function that needs bidiGlobalDir to be in scope , but the
// apiCallScope is not currently active ,
// ( b ) the expression uses an external function ( Soy V1 syntax ) ,
// ( c ) other cases ... |
public class CachedRemoteTable { /** * Add - add this data to the file .
* @ param data A vector object containing the raw data for the record .
* @ exception Exception File exception . */
public Object add ( Object data , int iOpenMode ) throws DBException , RemoteException { } } | m_objCurrentPhysicalRecord = NONE ; m_objCurrentLockedRecord = NONE ; m_objCurrentCacheRecord = NONE ; Object bookmark = m_tableRemote . add ( data , iOpenMode ) ; if ( m_iPhysicalLastRecordPlusOne != - 1 ) if ( ( cacheMode == CacheMode . CACHE_ON_WRITE ) || ( cacheMode == CacheMode . PASSIVE_CACHE ) ) { if ( m_mapCach... |
public class MultiStringWrapper { /** * Prepare each field with the appropriate distance */
public void prepare ( StringDistance [ ] innerDistances ) { } } | if ( ! fieldsPrepared ) { for ( int i = 0 ; i < size ( ) ; i ++ ) { StringDistance d = innerDistances [ getDistanceLearnerIndex ( i ) ] ; set ( i , d . prepare ( get ( i ) . unwrap ( ) ) ) ; } } |
public class OcpiRepository { /** * insertOrUpdate
* @ param subscription
* @ return */
public Subscription insertOrUpdate ( Subscription subscription ) { } } | EntityManager entityManager = getEntityManager ( ) ; EntityTransaction entityTransaction = null ; try { entityTransaction = entityManager . getTransaction ( ) ; entityTransaction . begin ( ) ; Subscription persistedSubscription ; if ( subscription . getId ( ) == null ) { entityManager . persist ( subscription ) ; persi... |
public class MCF1RGImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setSectid ( Integer newSectid ) { } } | Integer oldSectid = sectid ; sectid = newSectid ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . MCF1RG__SECTID , oldSectid , sectid ) ) ; |
public class AbstractPagedInputView { /** * Sets the internal state of the view such that the next bytes will be read from the given memory segment ,
* starting at the given position . The memory segment will provide bytes up to the given limit position .
* @ param segment The segment to read the next bytes from . ... | this . currentSegment = segment ; this . positionInSegment = positionInSegment ; this . limitInSegment = limitInSegment ; |
public class ThreadLocalProxyCopyOnWriteArrayList { /** * Returns the index of the last occurrence of the specified element in
* this list , searching backwards from < tt > index < / tt > , or returns - 1 if
* the element is not found .
* More formally , returns the highest index < tt > i < / tt > such that
* <... | Object [ ] elements = getArray ( ) ; return lastIndexOf ( e , elements , index ) ; |
public class ColorBuilder { /** * Build a RGB color ( 0-255 ) .
* @ param rColor the rgb color enum
* @ return the javafx color */
private Color buildRGB255Color ( final RGB255Color rColor ) { } } | Color color = null ; if ( rColor . opacity ( ) >= 1.0 ) { color = Color . rgb ( rColor . red ( ) , rColor . green ( ) , rColor . blue ( ) ) ; } else { color = Color . rgb ( rColor . red ( ) , rColor . green ( ) , rColor . blue ( ) , rColor . opacity ( ) ) ; } return color ; |
public class ContentCryptoScheme { /** * Creates and initializes a cipher lite for content encrypt / decryption .
* @ param cek
* content encrypting key
* @ param iv
* initialization vector
* @ param cipherMode
* such as { @ link Cipher # ENCRYPT _ MODE }
* @ return the cipher lite created and initialized... | return createCipherLite ( cek , iv , cipherMode , null ) ; |
public class Scope { /** * Returns an empty array if this scope has no children . */
public Scope [ ] getChildren ( ) { } } | if ( mChildren == null ) { return new Scope [ 0 ] ; } else { return mChildren . toArray ( new Scope [ mChildren . size ( ) ] ) ; } |
public class ProfileAction { /** * 编辑权限 < br > */
public String edit ( ) { } } | // 取得各参数的值
Profile profile = getProfile ( ) ; ProfileHelper helper = new ProfileHelper ( entityDao , securityHelper . getProfileService ( ) ) ; helper . fillEditInfo ( profile , userService . get ( SecurityUtils . getUsername ( ) ) , isAdmin ( ) ) ; return forward ( ) ; |
public class StudentsTDistribution { /** * Static version of the t distribution ' s PDF .
* @ param val value to evaluate
* @ param v degrees of freedom
* @ return f ( val , v ) */
public static double pdf ( double val , int v ) { } } | // TODO : improve precision by computing " exp " last ?
return FastMath . exp ( GammaDistribution . logGamma ( ( v + 1 ) * .5 ) - GammaDistribution . logGamma ( v * .5 ) ) * ( 1 / FastMath . sqrt ( v * Math . PI ) ) * FastMath . pow ( 1 + ( val * val ) / v , - ( ( v + 1 ) * .5 ) ) ; |
public class GroovyInterpretterConfig { /** * Decorate Dumpling API with groovy extensions . */
public void setupDecorateMethods ( ClassLoader cl ) { } } | synchronized ( STAR_IMPORTS ) { if ( DECORATED ) return ; GroovyShell shell = new GroovyShell ( cl , new Binding ( ) , getCompilerConfiguration ( ) ) ; try { shell . run ( new InputStreamReader ( this . getClass ( ) . getResourceAsStream ( "extend.groovy" ) ) , "dumpling-metaclass-setup" , Collections . emptyList ( ) )... |
public class StringUtils { /** * Join a list of Strings
* @ param list strings to join
* @ param separator the separator to insert between the strings
* @ return a string made of the strings in list separated by separator */
public static String join ( List < String > list , String separator ) { } } | if ( list == null ) { return null ; } return join ( list . toArray ( ) , separator , 0 , list . size ( ) ) ; |
public class RemoveFromListRepairer { /** * Repairs a { @ link RemoveFromList } in relation to a { @ link ReplaceInList } command .
* @ param toRepair
* The command to repair .
* @ param repairAgainst
* The command to repair against .
* @ return The repaired command . */
public List < RemoveFromList > repairC... | return repairAddOrReplace ( toRepair , repairAgainst . getPosition ( ) ) ; |
public class ResourceController { /** * TODO freynaud */
private String getMimeType ( String resource ) { } } | if ( resource . endsWith ( ".png" ) ) { return "image/png" ; } else if ( resource . endsWith ( ".css" ) ) { return "text/css" ; } else if ( resource . endsWith ( ".js" ) ) { return "application/x-javascript" ; } else if ( resource . endsWith ( ".jpg" ) ) { return "image/jpeg" ; } else if ( resource . endsWith ( ".gif" ... |
public class PermissionEvaluator { /** * Uses the security policy applied by secureLevelControl ( ) . See there for details .
* DEPRECATED security policy :
* Applies the following access control rules
* If an application Account Sid is given :
* - If operatingAccount is the same as the operated account and app... | /* / / disabled strict policy that prevented access to sub - account applications
/ / operatingAccount and operatedAccount are not null at this point
Account operatingAccount = userIdentityContext . getEffectiveAccount ( ) ;
String operatingAccountSid = operatingAccount . getSid ( ) . toString ( ) ;
String oper... |
public class Google2445Utils { /** * Creates a single { @ link RecurrenceIterator } that is a union of the given
* iterators .
* @ param iterators the iterators
* @ return the union of the given iterators
* @ see RecurrenceIteratorFactory # join */
private static RecurrenceIterator join ( List < RecurrenceItera... | if ( iterators . size ( ) == 1 ) { return iterators . get ( 0 ) ; } RecurrenceIterator first = iterators . get ( 0 ) ; List < RecurrenceIterator > rest = iterators . subList ( 1 , iterators . size ( ) ) ; return RecurrenceIteratorFactory . join ( first , rest . toArray ( new RecurrenceIterator [ 0 ] ) ) ; |
public class InMemoryLinkedDataStore { /** * / * ( non - Javadoc )
* @ see net . timewalker . ffmq4 . storage . data . LinkedDataStore # replace ( int , java . lang . Object ) */
@ Override public int replace ( int handle , Object obj ) throws DataStoreException { } } | if ( SAFE_MODE ) checkHandle ( handle ) ; data [ handle ] = obj ; return handle ; |
public class LogicalZipFile { /** * Parse the manifest entry of a zipfile .
* @ param manifestZipEntry
* the manifest zip entry
* @ param log
* the log
* @ throws IOException
* If an I / O exception occurs .
* @ throws InterruptedException
* If the thread was interrupted . */
private void parseManifest ... | // Load contents of manifest entry as a byte array
final byte [ ] manifest = manifestZipEntry . load ( ) ; // Find field keys ( separated by newlines )
for ( int i = 0 ; i < manifest . length ; ) { // There cannot be any space after a newline before the manifest key , so key starts immediately
boolean skip = false ; if... |
public class RoutingTrie { /** * Returns the list of values which is mapped to the given { @ code path } . */
@ Nullable List < V > find ( String path ) { } } | final Node < V > node = findNode ( path , false ) ; return node == null ? ImmutableList . of ( ) : node . values ( ) ; |
public class EventManager { /** * Returns event log names for the given type .
* @ param type the type for which to return event log names
* @ return event log names for the given type */
public Set < String > getEventLogNames ( Class < ? > type ) { } } | return eventRegistries . computeIfAbsent ( type , t -> new ConcurrentHashMap < > ( ) ) . keySet ( ) ; |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getColorManagementResourceDescriptor ( ) { } } | if ( colorManagementResourceDescriptorEClass == null ) { colorManagementResourceDescriptorEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 516 ) ; } return colorManagementResourceDescriptorEClass ; |
public class AWSGlueClient { /** * Retrieves all Databases defined in a given Data Catalog .
* @ param getDatabasesRequest
* @ return Result of the GetDatabases operation returned by the service .
* @ throws InvalidInputException
* The input provided was not valid .
* @ throws InternalServiceException
* An ... | request = beforeClientExecution ( request ) ; return executeGetDatabases ( request ) ; |
public class BaseMessagingEngineImpl { /** * Load the named class and add it to the list of engine components .
* @ param className
* Fully qualified class name of class to load .
* @ param stopSeq
* @ param reportError
* Set to false for classes we don ' t care about .
* @ return */
protected final JsEngin... | String thisMethodName = "loadClass" ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , thisMethodName , new Object [ ] { className , Integer . toString ( stopSeq ) , Boolean . toString ( reportError ) } ) ; } Class myClass = null ; JsEngineComponent retValue = null ; int... |
public class Reporter { /** * Looks for the simple login credentials , username and password , and if
* they are both set , turns that into a string which will be formatted for
* HTML to be printed into the output file
* @ param http - the http object that is making the call
* @ return String : an HTML formatte... | if ( http == null || ! http . useCredentials ( ) ) { return "" ; } StringBuilder credentials = new StringBuilder ( ) ; String uuid = getUUID ( ) ; credentials . append ( ONCLICK_TOGGLE ) . append ( uuid ) . append ( "\")'>Toggle Credentials</a> " ) ; credentials . append ( SPAN_ID ) . append ( uuid ) . append ( DISPLAY... |
public class DefaultFastFileStorageClient { /** * 上传缩略图
* @ param client
* @ param inputStream
* @ param masterFilename
* @ param fastImageFile */
private void uploadThumbImage ( StorageNode client , InputStream inputStream , String masterFilename , FastImageFile fastImageFile ) { } } | ByteArrayInputStream thumbImageStream = null ; ThumbImage thumbImage = fastImageFile . getThumbImage ( ) ; try { // 生成缩略图片
thumbImageStream = generateThumbImageStream ( inputStream , thumbImage ) ; // 获取文件大小
long fileSize = thumbImageStream . available ( ) ; // 获取配置缩略图前缀
String prefixName = thumbImage . getPrefixName (... |
public class PostGISBackend { /** * Modifies DDL statements in such a way that PostGIS results will match
* VoltDB results , and then passes the remaining work to the base class
* version . */
@ Override public void runDDL ( String ddl ) { } } | String modifiedDdl = transformDDL ( ddl ) ; printTransformedSql ( ddl , modifiedDdl ) ; super . runDDL ( modifiedDdl , false ) ; |
public class CmsSearchResourcesCollector { /** * Returns the search result list . < p >
* @ param params the parameter map
* @ return a list of { @ link org . opencms . search . CmsSearchResult } objects */
private List < CmsSearchResult > getSearchResults ( Map < String , String > params ) { } } | if ( m_searchResults == null ) { m_searchResults = getSearchBean ( params ) . getSearchResult ( ) ; } return m_searchResults ; |
public class CPOptionCategoryPersistenceImpl { /** * Returns the last cp option category in the ordered set where groupId = & # 63 ; .
* @ param groupId the group ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ return the last matching cp option catego... | CPOptionCategory cpOptionCategory = fetchByGroupId_Last ( groupId , orderByComparator ) ; if ( cpOptionCategory != null ) { return cpOptionCategory ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "groupId=" ) ; msg . append ( groupId ) ; msg . append ( "}" ) ... |
public class BaseAsyncInterceptor { /** * Encode the result of an { @ link # invokeNext ( InvocationContext , VisitableCommand ) } in an { @ link InvocationStage } .
* < p > May not create a new instance , if the result is already an { @ code InvocationStage } . */
public static InvocationStage makeStage ( Object rv ... | if ( rv instanceof InvocationStage ) { return ( InvocationStage ) rv ; } else { return new SyncInvocationStage ( rv ) ; } |
public class Nbvcxz { /** * Recursive function to generate match combinations to get an optimal match .
* @ param start _ time the time the function started to allow timeout
* @ param password the password
* @ param match a match to start with ( or the next match in line )
* @ param non _ intersecting _ matches... | if ( System . currentTimeMillis ( ) - start_time > configuration . getCombinationAlgorithmTimeout ( ) ) { throw new TimeoutException ( "Took too long to get best matches" ) ; } int index = matches . size ( ) ; matches . add ( match ) ; matches_length += match . getLength ( ) ; boolean found_next = false ; for ( Match n... |
public class AbstractPaketDependencyCollector { /** * / * - - - private methods - - - */
private Collection < DependencyInfo > collectChildrenDependencies ( DependencyInfo dependency , List < String > groupLines ) { } } | logger . debug ( "Collect child dependencies of {}, total group-lines = {}" , dependency . getGroupId ( ) , groupLines . size ( ) ) ; Collection < DependencyInfo > dependencies = new LinkedList < > ( ) ; boolean dependencyLine = false ; for ( String line : groupLines ) { if ( ! dependencyLine && line . startsWith ( FOU... |
public class MathObservable { /** * Returns an Observable that emits the average of the Integers emitted by the source Observable .
* < img width = " 640 " src = " https : / / raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / average . png " alt = " " >
* @ param source
* source Observabl... | return source . lift ( new OperatorAverageInteger < Integer > ( MathObservable . < Integer > identity ( ) ) ) ; |
public class ApiOvhMe { /** * Alter this object properties
* REST : PUT / me / installationTemplate / { templateName } / partitionScheme / { schemeName } / partition / { mountpoint }
* @ param body [ required ] New object properties
* @ param templateName [ required ] This template name
* @ param schemeName [ r... | String qPath = "/me/installationTemplate/{templateName}/partitionScheme/{schemeName}/partition/{mountpoint}" ; StringBuilder sb = path ( qPath , templateName , schemeName , mountpoint ) ; exec ( qPath , "PUT" , sb . toString ( ) , body ) ; |
public class Mutations { /** * Removes mutations for a range of positions in the original sequence and performs shift of corresponding
* positions of mutations .
* < p > Insertions before { @ code from } will be left untouched . Insertions after { @ code ( to - 1 ) } will be removed . < / p >
* < b > Important : ... | if ( to < from ) throw new IllegalArgumentException ( "Reversed ranges are not supported." ) ; // If range is empty return untouched mutations object
if ( from == to ) return this ; // Determine range in mutations to remove
long indexRange = getIndexRange ( from , to ) ; // Unpacking
int fromIndex = ( int ) ( indexRang... |
public class Specifications { /** * Returns a specification expecting that the given specification is not satisfied .
* @ param < T > the specification type
* @ param proposition the specification
* @ return a NotSpecification */
public static < T > Specification < T > not ( Specification < T > proposition ) { } ... | return new NotSpecification < T > ( proposition ) ; |
public class RSAWithBase64 { /** * 对源内容及base64密文进行验签处理
* @ param content
* @ param base64Cipher
* @ param pubKey
* @ return */
public static boolean verify ( String content , String base64Cipher , String pubKey ) { } } | return RSA . verify ( content . getBytes ( ) , Base64Util . decode ( base64Cipher ) , decryptPublicKey ( pubKey ) ) ; |
public class RelationshipPrefetcherFactory { /** * create either a CollectionPrefetcher or a ReferencePrefetcher */
public RelationshipPrefetcher createRelationshipPrefetcher ( ObjectReferenceDescriptor ord ) { } } | if ( ord instanceof CollectionDescriptor ) { CollectionDescriptor cds = ( CollectionDescriptor ) ord ; if ( cds . isMtoNRelation ( ) ) { return new MtoNCollectionPrefetcher ( broker , cds ) ; } else { return new CollectionPrefetcher ( broker , cds ) ; } } else { return new ReferencePrefetcher ( broker , ord ) ; } |
public class LofCalculator { /** * 指定したK値 、 対象点 、 データセットを基に局所外れ係数スコアを算出する 。 < br >
* 本メソッド呼び出しによってデータセットの更新は行われない 。 < br >
* 学習データの更新を伴わないため 、 高速に処理が可能となっている 。
* @ param kn K値
* @ param targetPoint 対象点
* @ param dataSet 学習データセット
* @ return LOFスコア */
public static double calculateLofWithoutUpdate ( in... | // 対象点のK距離 、 K距離近傍を算出する 。
KDistanceResult kResult = calculateKDistance ( kn , targetPoint , dataSet ) ; LofPoint tmpPoint = targetPoint . deepCopy ( ) ; tmpPoint . setkDistance ( kResult . getkDistance ( ) ) ; tmpPoint . setkDistanceNeighbor ( kResult . getkDistanceNeighbor ( ) ) ; updateLrd ( tmpPoint , dataSet ) ; //... |
public class PositionList { /** * Add a position at the end of the list */
public void add ( final double latitude , final double longitude ) { } } | ensureCapacity ( size + 1 ) ; this . longitude [ size ] = longitude ; this . latitude [ size ] = latitude ; ++ size ; |
public class SingleThreadBlockingQpsBenchmark { /** * Issue a unary call and wait for the response . */
@ Benchmark public Object blockingUnary ( ) throws Exception { } } | return ClientCalls . blockingUnaryCall ( channels [ 0 ] . newCall ( unaryMethod , CallOptions . DEFAULT ) , Unpooled . EMPTY_BUFFER ) ; |
public class NamedEntityGraphImpl { /** * If not already created , a new < code > subgraph < / code > element will be created and returned .
* Otherwise , the first existing < code > subgraph < / code > element will be returned .
* @ return the instance defined for the element < code > subgraph < / code > */
public... | List < Node > nodeList = childNode . get ( "subgraph" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new NamedSubgraphImpl < NamedEntityGraph < T > > ( this , "subgraph" , childNode , nodeList . get ( 0 ) ) ; } return createSubgraph ( ) ; |
public class JavaTypeToTypeSignature { /** * get the type signature corresponding to given class
* @ param clazz
* @ return */
private FullTypeSignature getTypeSignature ( Class < ? > clazz ) { } } | StringBuilder sb = new StringBuilder ( ) ; if ( clazz . isArray ( ) ) { sb . append ( clazz . getName ( ) ) ; } else if ( clazz . isPrimitive ( ) ) { sb . append ( primitiveTypesMap . get ( clazz ) . toString ( ) ) ; } else { sb . append ( 'L' ) . append ( clazz . getName ( ) ) . append ( ';' ) ; } return TypeSignature... |
public class Request { /** * Add query parameters for date ranges .
* @ param name name of query parameter
* @ param range date range */
public void addQueryDateRange ( final String name , final Range < LocalDate > range ) { } } | if ( range . hasLowerBound ( ) ) { String value = range . lowerEndpoint ( ) . toString ( QUERY_STRING_DATE_FORMAT ) ; addQueryParam ( name + ">" , value ) ; } if ( range . hasUpperBound ( ) ) { String value = range . upperEndpoint ( ) . toString ( QUERY_STRING_DATE_FORMAT ) ; addQueryParam ( name + "<" , value ) ; } |
public class ServiceManagerSparql { /** * Obtains the service descriptions for all the services identified by the URI Set
* @ param serviceUris the URIs of the service to obtain
* @ return the list of all services that could be obtained . If none could be obtained the list will be empty .
* @ throws uk . ac . ope... | ImmutableSet . Builder < Service > result = ImmutableSet . builder ( ) ; Service svc ; for ( URI svcUri : serviceUris ) { svc = this . getService ( svcUri ) ; if ( svc != null ) { result . add ( svc ) ; } } return result . build ( ) ; |
public class ImplementationImpl { /** * Register opened database via the PBKey . */
protected synchronized void registerOpenDatabase ( DatabaseImpl newDB ) { } } | DatabaseImpl old_db = getCurrentDatabase ( ) ; if ( old_db != null ) { try { if ( old_db . isOpen ( ) ) { log . warn ( "## There is still an opened database, close old one ##" ) ; old_db . close ( ) ; } } catch ( Throwable t ) { // ignore
} } if ( log . isDebugEnabled ( ) ) log . debug ( "Set current database " + newDB... |
public class Level { /** * Inserts a node before the another node in the level .
* @ param newNode The node to be inserted .
* @ param oldNode The node that the new node should be inserted in front of .
* @ return True if the node was inserted correctly otherwise false . */
public boolean insertBefore ( final Nod... | if ( oldNode == null || newNode == null ) { return false ; } int index = nodes . indexOf ( oldNode ) ; if ( index != - 1 ) { // Remove the parent from the new node if one exists
if ( newNode . getParent ( ) != null ) { newNode . removeParent ( ) ; } newNode . setParent ( this ) ; // Add the node to the relevant list
if... |
public class ServletUtil { /** * 获取请求体 < br >
* 调用该方法后 , getParam方法将失效
* @ param request { @ link ServletRequest }
* @ return 获得请求体
* @ since 4.0.2 */
public static String getBody ( ServletRequest request ) { } } | try { return IoUtil . read ( request . getReader ( ) ) ; } catch ( IOException e ) { throw new IORuntimeException ( e ) ; } |
public class DisambiguatedAlchemyEntity { /** * Set link to Freebase . Note : Provided only for entities that exist in this
* that exist in this linked data - set .
* @ param freebase link to Freebase */
public void setFreebase ( String freebase ) { } } | if ( freebase != null ) { freebase = freebase . trim ( ) ; } this . freebase = freebase ; |
public class User { /** * With ADMINISTER permission , can delete users with persisted data but can ' t delete self . */
public boolean canDelete ( ) { } } | final IdStrategy strategy = idStrategy ( ) ; return hasPermission ( Jenkins . ADMINISTER ) && ! strategy . equals ( id , Jenkins . getAuthentication ( ) . getName ( ) ) && UserIdMapper . getInstance ( ) . isMapped ( id ) ; |
public class ReceiveCallPlan { /** * ( non - Javadoc )
* @ see jadex . bdi . runtime . Plan # body ( ) */
@ Override public void body ( ) { } } | CallQueue queue = ( CallQueue ) getBeliefbase ( ) . getBelief ( "queue" ) . getFact ( ) ; Call call = queue . getPendingCall ( ) ; if ( call . getCustormer ( ) . getLanguage ( ) . equalsIgnoreCase ( "English" ) ) { String target_service = "report-service" ; String msgContent = "NewRecordedCall" ; // Looking for reporte... |
public class StringUtils { /** * Join an array of strings with the given separator .
* @ param strings
* The strings to join
* @ param separator
* The separator to use
* @ return The concatenation of the collection of strings with the given
* separator . */
public static String join ( String [ ] strings , S... | StringBuilder sb = new StringBuilder ( ) ; boolean first = true ; for ( String s : strings ) { if ( first ) { first = false ; } else { sb . append ( separator ) ; } sb . append ( s ) ; } return sb . toString ( ) ; |
public class HelperNister5 { /** * Construct 10 by 10 coefficient matrix for the following coefficients
* ' x * z ^ 2 ' , ' x * z ' , ' x ' , ' y * z ^ 2 ' , ' y * z ' , ' y ' , ' z ^ 3 ' , ' z ^ 2 ' , ' z ' , ' 1'
* @ param B a 10 by 10 matrix */
public void setupA2 ( DMatrixRMaj B ) { } } | B . data [ 0 ] = Z22 * ( X00 * Z11 - X01 * Z10 - X10 * Z01 + X11 * Z00 ) + Z21 * ( - X00 * Z12 + X02 * Z10 + X10 * Z02 - X12 * Z00 ) + Z20 * ( X01 * Z12 - X02 * Z11 - X11 * Z02 + X12 * Z01 ) + Z01 * ( X20 * Z12 - X22 * Z10 ) + Z00 * ( - X21 * Z12 + X22 * Z11 ) + Z02 * ( - X20 * Z11 + X21 * Z10 ) ; B . data [ 1 ] = Z22 ... |
public class InternalSARLLexer { /** * $ ANTLR end " RULE _ ANY _ OTHER " */
public void mTokens ( ) throws RecognitionException { } } | // InternalSARL . g : 1:8 : ( T _ _ 25 | T _ _ 26 | T _ _ 27 | T _ _ 28 | T _ _ 29 | T _ _ 30 | T _ _ 31 | T _ _ 32 | T _ _ 33 | T _ _ 34 | T _ _ 35 | T _ _ 36 | T _ _ 37 | T _ _ 38 | T _ _ 39 | T _ _ 40 | T _ _ 41 | T _ _ 42 | T _ _ 43 | T _ _ 44 | T _ _ 45 | T _ _ 46 | T _ _ 47 | T _ _ 48 | T _ _ 49 | T _ _ 50 | T _ ... |
public class PatternsImpl { /** * Updates a pattern .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param patternId The pattern ID .
* @ param pattern An object representing a pattern .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return th... | return updatePatternWithServiceResponseAsync ( appId , versionId , patternId , pattern ) . map ( new Func1 < ServiceResponse < PatternRuleInfo > , PatternRuleInfo > ( ) { @ Override public PatternRuleInfo call ( ServiceResponse < PatternRuleInfo > response ) { return response . body ( ) ; } } ) ; |
public class Matchers { /** * Matches an AST node if its type is a primitive type , or a boxed version of a primitive type . */
public static < T extends Tree > Matcher < T > isPrimitiveOrBoxedPrimitiveType ( ) { } } | return new Matcher < T > ( ) { @ Override public boolean matches ( Tree t , VisitorState state ) { Type type = getType ( t ) ; return type != null && state . getTypes ( ) . unboxedTypeOrType ( type ) . isPrimitive ( ) ; } } ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.