signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class HttpRequest { /** * 获取请求URL最后的一个 / 后面的部分的int值 < br >
* 例如请求URL / pipes / record / query / 2 < br >
* 获取type参数 : int type = request . getRequstURILastPath ( 0 ) ; / / type = 2
* @ param defvalue 默认int值
* @ return int值 */
public int getRequstURILastPath ( int defvalue ) { } } | String val = getRequstURILastPath ( ) ; try { return val . isEmpty ( ) ? defvalue : Integer . parseInt ( val ) ; } catch ( NumberFormatException e ) { return defvalue ; } |
public class EmulatedFields { /** * Finds and returns the boolean value of a given field named { @ code name } in
* the receiver . If the field has not been assigned any value yet , the
* default value { @ code defaultValue } is returned instead .
* @ param name
* the name of the field to find .
* @ param def... | ObjectSlot slot = findMandatorySlot ( name , boolean . class ) ; return slot . defaulted ? defaultValue : ( ( Boolean ) slot . fieldValue ) . booleanValue ( ) ; |
public class AmazonEC2Client { /** * Reports the current modification status of EBS volumes .
* Current - generation EBS volumes support modification of attributes including type , size , and ( for < code > io1 < / code >
* volumes ) IOPS provisioning while either attached to or detached from an instance . Followin... | request = beforeClientExecution ( request ) ; return executeDescribeVolumesModifications ( request ) ; |
public class Consumers { /** * Consumes the input iterator to the output iterator .
* @ param < E > the iterator element type
* @ param iterator the iterator that will be consumed
* @ param outputIterator the iterator that will be filled */
public static < E > void pipe ( Iterator < E > iterator , OutputIterator ... | new ConsumeIntoOutputIterator < > ( outputIterator ) . apply ( iterator ) ; |
public class TransactionImpl { /** * Registers the object ( without locking ) with this transaction . This method
* expects that the object was already locked , no check is done ! ! ! */
void doSingleRegister ( RuntimeObject rtObject , int lockMode ) throws LockNotGrantedException , PersistenceBrokerException { } } | if ( log . isDebugEnabled ( ) ) log . debug ( "Register object " + rtObject . getIdentity ( ) ) ; Object objectToRegister = rtObject . getObj ( ) ; /* if the object is a Proxy there are two options :
1 . The proxies real subject has already been materialized :
we take this real subject as the object to register and... |
public class MapsforgeTilesGenerator { /** * Convert a tile coordinate at a given zoom to its lat / lon bounds .
* @ param tx tile x .
* @ param ty tile y .
* @ param zoom the zoom level .
* @ return the bounds as [ n , s , w , e ] . */
public double [ ] tile2Bounds ( final int tx , final int ty , final int zoo... | double [ ] nswe = new double [ 4 ] ; nswe [ 0 ] = tile2lat ( ty , zoom ) ; nswe [ 1 ] = tile2lat ( ty + 1 , zoom ) ; nswe [ 2 ] = tile2lon ( tx , zoom ) ; nswe [ 3 ] = tile2lon ( tx + 1 , zoom ) ; return nswe ; |
public class DateUtil { /** * Adds or subtracts the specified amount of time to the given time unit ,
* based on the calendar ' s rules . For example , to subtract 5 days from the
* current time of the calendar , you can achieve it by calling :
* < code > N . roll ( c , - 5 , TimeUnit . DAYS ) < / code > .
* @ ... | N . checkArgNotNull ( calendar , "calendar" ) ; return createCalendar ( calendar , calendar . getTimeInMillis ( ) + unit . toMillis ( amount ) ) ; |
public class JmxService { /** * Return subtree of nodes for a domain */
public DynaTreeNode getDomainTree ( String domainName ) { } } | DynaTreeNode domainNode = new DynaTreeNode ( ) . setTitle ( domainName ) . setKey ( domainName ) . setMode ( MODE_DOMAIN ) ; try { // List all objects in the domain
ObjectName name = new ObjectName ( domainName + ":*" ) ; Set < ObjectName > objs = mBeanServer . queryNames ( name , null ) ; // Convert object naems to a ... |
public class FurnaceClasspathScanner { /** * Scans all Forge addons for classes accepted by given filter .
* TODO : Could be refactored - scan ( ) is almost the same . */
public List < Class < ? > > scanClasses ( Predicate < String > filter ) { } } | List < Class < ? > > discoveredClasses = new ArrayList < > ( 128 ) ; // For each Forge addon . . .
for ( Addon addon : furnace . getAddonRegistry ( ) . getAddons ( AddonFilters . allStarted ( ) ) ) { List < String > discoveredFileNames = filterAddonResources ( addon , filter ) ; // Then try to load the classes .
for ( ... |
public class PrepareRequestInterceptor { /** * Method returns true if this request expects PDF as response
* @ param map
* @ return */
private boolean isDownloadPDF ( Map < String , String > map ) { } } | return StringUtils . hasText ( map . get ( RequestElements . REQ_PARAM_ENTITY_SELECTOR ) ) && map . get ( RequestElements . REQ_PARAM_ENTITY_SELECTOR ) . equalsIgnoreCase ( ContentTypes . PDF . name ( ) ) ; |
public class JSConsumerSet { /** * / * ( non - Javadoc )
* @ see com . ibm . wsspi . sib . extension . ConsumerSet # getFlows ( ) */
public Flow [ ] getFlows ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getFlows" ) ; } Flow [ ] flows = classifications . getFlows ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . exit ( tc , "getFlows" , flows ) ; } return flows ; |
public class Configuration { /** * Register a schema specific table override
* @ param schema schema of table
* @ param oldTable table to override
* @ param newSchema override schema
* @ param newTable override table
* @ return previous override value
* @ deprecated Use { @ link # setDynamicNameMapping ( Na... | return registerTableOverride ( new SchemaAndTable ( schema , oldTable ) , new SchemaAndTable ( newSchema , newTable ) ) ; |
public class AcceleratedScreen { /** * Copy the contents of the GL backbuffer to the screen
* @ return success or failure */
public boolean swapBuffers ( ) { } } | boolean result = false ; synchronized ( NativeScreen . framebufferSwapLock ) { result = egl . eglSwapBuffers ( eglDisplay , eglSurface ) ; // TODO this shouldn ' t happen . In case the surface is invalid , we need to have recreated it before this method is called
if ( ! result ) { createSurface ( ) ; result = egl . egl... |
public class RocksDbWrapper { /** * Open a { @ link RocksDB } with default options in read - only mode .
* @ param dirPath
* existing { @ link RocksDB } data directory
* @ return
* @ throws RocksDbException
* @ throws IOException */
public static RocksDbWrapper openReadOnly ( String dirPath ) throws RocksDbEx... | RocksDbWrapper rocksDbWrapper = new RocksDbWrapper ( dirPath , true ) ; rocksDbWrapper . init ( ) ; return rocksDbWrapper ; |
public class Grantee { /** * Full or partial rights are added to existing */
void addToFullRights ( HashMap map ) { } } | Iterator it = map . keySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { Object key = it . next ( ) ; Right add = ( Right ) map . get ( key ) ; Right existing = ( Right ) fullRightsMap . get ( key ) ; if ( existing == null ) { existing = add . duplicate ( ) ; fullRightsMap . put ( key , existing ) ; } else { existi... |
public class CmsRfsFileDisposalDialog { /** * Generates the output . < p >
* @ throws IOException if something goes wrong */
public void generateOutput ( ) throws IOException { } } | HttpServletResponse res = CmsFlexController . getController ( getJsp ( ) . getRequest ( ) ) . getTopResponse ( ) ; res . setContentType ( "application/octet-stream" ) ; res . setHeader ( "Content-Disposition" , new StringBuffer ( "attachment; filename=\"" ) . append ( getDownloadFile ( ) . getName ( ) ) . append ( "\""... |
public class CountCondition { /** * Note : Check has a side effect ( it increments a counter ) . Invoking it multiple times may
* result in a different answer . */
@ Override public boolean check ( EmbeddedBrowser browser ) { } } | if ( condition . check ( browser ) ) { count . getAndIncrement ( ) ; } return count . get ( ) <= maxCount ; |
public class SystemManager { /** * Returns the system for the given class . */
@ SuppressWarnings ( "unchecked" ) public < T extends SubSystem > T getSystem ( Class < T > cl ) { } } | return ( T ) _systemMap . get ( cl ) ; |
public class RaidNode { /** * only used by test */
public static boolean doRaid ( Configuration conf , FileStatus stat , Path destPath , Codec codec , Statistics statistics , Progressable reporter , boolean doSimulate , int targetRepl , int metaRepl ) throws IOException { } } | boolean succeed = false ; for ( EncodingCandidate ec : RaidNode . splitPaths ( conf , codec , stat ) ) { succeed = succeed || doRaid ( conf , ec , destPath , codec , statistics , reporter , doSimulate , targetRepl , metaRepl ) ; } return succeed ; |
public class TrainingsImpl { /** * Get information about a specific domain .
* @ param domainId The id of the domain to get information about
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the Domain object */
public Observable < Domain > getDomainAsync (... | return getDomainWithServiceResponseAsync ( domainId ) . map ( new Func1 < ServiceResponse < Domain > , Domain > ( ) { @ Override public Domain call ( ServiceResponse < Domain > response ) { return response . body ( ) ; } } ) ; |
public class StringMan { /** * Decompresses a string encoded by { @ link # compressHexString } */
public static String decompressHexString ( String in ) { } } | StringBuilder out = new StringBuilder ( ) ; for ( int i = 0 ; i < in . length ( ) ; i ++ ) { char thisChar = in . charAt ( i ) ; if ( thisChar != '^' ) { out . append ( thisChar ) ; } else { thisChar = in . charAt ( i + 1 ) ; int count = "abcdefghijklmnopqrstuvwxyz01234567890" . indexOf ( in . charAt ( i + 2 ) ) ; for ... |
public class AuditCheckConfigurationMarshaller { /** * Marshall the given parameter object . */
public void marshall ( AuditCheckConfiguration auditCheckConfiguration , ProtocolMarshaller protocolMarshaller ) { } } | if ( auditCheckConfiguration == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( auditCheckConfiguration . getEnabled ( ) , ENABLED_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + ... |
public class MonthPeriod { /** * 返回与指定时间点相差的秒数 .
* @ return */
public int getSeconds ( ) { } } | // TODO ahai 如果当月时间未到呢 ?
Calendar cld = Calendar . getInstance ( ) ; cld . add ( Calendar . MONTH , 1 ) ; cld . set ( Calendar . DAY_OF_MONTH , day ) ; cld . set ( Calendar . HOUR_OF_DAY , this . hour ) ; cld . set ( Calendar . MINUTE , this . minute ) ; cld . set ( Calendar . SECOND , this . second ) ; long time = cld... |
public class Resource { /** * - - - - - protected methods - - - - - */
protected PropertyKey findPropertyKey ( final TypedIdResource typedIdResource , final TypeResource typeResource ) { } } | Class sourceNodeType = typedIdResource . getTypeResource ( ) . getEntityClass ( ) ; String rawName = typeResource . getRawType ( ) ; PropertyKey key = StructrApp . getConfiguration ( ) . getPropertyKeyForJSONName ( sourceNodeType , rawName , false ) ; if ( key == null ) { // try to convert raw name into lower - case va... |
public class SARLPackageExplorerPart { /** * Replies the viewer .
* @ return the viewer . */
protected ProblemTreeViewer getViewer ( ) { } } | try { return ( ProblemTreeViewer ) this . reflect . get ( this , "fViewer" ) ; // $ NON - NLS - 1 $
} catch ( SecurityException | NoSuchFieldException | IllegalArgumentException | IllegalAccessException e ) { throw new Error ( e ) ; } |
public class LongArrayList { /** * Returns < tt > true < / tt > if this list contains the specified element .
* @ param elem element whose presence in this List is to be tested .
* @ return < code > true < / code > if the specified element is present ;
* < code > false < / code > otherwise . */
@ Override public ... | if ( elem == null ) return false ; if ( elem instanceof Number ) return contains ( ( ( Number ) elem ) . longValue ( ) ) ; return false ; |
public class StatefulBeanO { /** * Inform this < code > SessionBeanO < / code > that a method
* invocation has completed on its associated enterprise bean . < p >
* @ param id an < code > int < / code > indicating which method is being
* invoked on this < code > BeanO < / code > < p >
* @ param s the < code > E... | currentIsolationLevel = s . oldIsolationLevel ; if ( removed ) { return ; } switch ( state ) { case IN_METHOD : setState ( METHOD_READY ) ; break ; case TX_IN_METHOD : setState ( TX_METHOD_READY ) ; break ; case DESTROYED : return ; default : throw new InvalidBeanOStateException ( StateStrs [ state ] , "IN_METHOD | TX_... |
public class Scope { /** * Removes all the child scopes */
public void removeChildren ( ) { } } | log . trace ( "removeChildren of {}" , name ) ; for ( IBasicScope child : children . keySet ( ) ) { removeChildScope ( child ) ; } |
public class GramAttributes { /** * Checks if dryryn is enabled .
* @ return true only if dryrun is enabled . False ,
* otherwise . */
public boolean isDryRun ( ) { } } | String run = getSingle ( "dryrun" ) ; if ( run == null ) return false ; if ( run . equalsIgnoreCase ( "yes" ) ) return true ; return false ; |
public class LookasideCache { /** * Eviction occurs if the cache is full , we free up a specified
* percentage of the cache on every run . This method is synchronized
* so that only one thread is doing the eviction . */
synchronized void checkEvict ( ) throws IOException { } } | if ( cacheSize . get ( ) < cacheSizeMax ) { return ; // nothing to do , plenty of free space
} // Only one thread should be doing the eviction . Do not block
// current thread , it is ok to oversubscribe the cache size
// temporarily .
if ( evictionInProgress ) { return ; } // record the fact that eviction has started ... |
public class DeprecatedListWriter { /** * Get the contents list .
* @ param deprapi the deprecated list builder
* @ return a content tree for the contents list */
public Content getContentsList ( DeprecatedAPIListBuilder deprapi ) { } } | Content headContent = contents . deprecatedAPI ; Content heading = HtmlTree . HEADING ( HtmlConstants . TITLE_HEADING , true , HtmlStyle . title , headContent ) ; Content div = HtmlTree . DIV ( HtmlStyle . header , heading ) ; Content headingContent = contents . contentsHeading ; div . addContent ( HtmlTree . HEADING (... |
public class MpxjFilter { /** * This method opens the named project , applies the named filter
* and displays the filtered list of tasks or resources . If an
* invalid filter name is supplied , a list of valid filter names
* is shown .
* @ param filename input file name
* @ param filtername input filter name ... | ProjectFile project = new UniversalProjectReader ( ) . read ( filename ) ; Filter filter = project . getFilters ( ) . getFilterByName ( filtername ) ; if ( filter == null ) { displayAvailableFilters ( project ) ; } else { System . out . println ( filter ) ; System . out . println ( ) ; if ( filter . isTaskFilter ( ) ) ... |
public class StoreSwitch { /** * Calls < code > caseXXX < / code > for each class of the model until one returns a non null result ; it yields that result .
* < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ return the first non - null result returned by a < code > caseXXX < / code > call .
... | switch ( classifierID ) { case StorePackage . PROJECT : { Project project = ( Project ) theEObject ; T result = caseProject ( project ) ; if ( result == null ) result = defaultCase ( theEObject ) ; return result ; } case StorePackage . USER : { User user = ( User ) theEObject ; T result = caseUser ( user ) ; if ( resul... |
public class PyramidOps { /** * Scales down the input by a factor of 2 . Every other pixel along both axises is skipped . */
public static < T extends ImageGray < T > > void scaleDown2 ( T input , T output ) { } } | if ( input instanceof GrayF32 ) { ImplPyramidOps . scaleDown2 ( ( GrayF32 ) input , ( GrayF32 ) output ) ; } else if ( input instanceof GrayU8 ) { ImplPyramidOps . scaleDown2 ( ( GrayU8 ) input , ( GrayU8 ) output ) ; } else { throw new IllegalArgumentException ( "Image type not yet supported" ) ; } |
public class HttpServletResourceAdaptor { /** * ( non - Javadoc )
* @ see javax . slee . resource . ResourceAdaptor # queryLiveness ( javax . slee . resource . ActivityHandle ) */
public void queryLiveness ( javax . slee . resource . ActivityHandle activityHandle ) { } } | // end any idle activity , it should be a leak , this is true assuming
// that jboss web session timeout is smaller than the container timeout
// to invoke this method
if ( tracer . isInfoEnabled ( ) ) { tracer . info ( "Activity " + activityHandle + " is idle in the container, terminating." ) ; } endActivity ( ( Abstr... |
public class Options { /** * Return the length of the longest synopsis message in a list of options . Useful for aligning
* options in usage strings .
* @ param optList the options whose synopsis messages to measure
* @ param showUnpublicized if true , include unpublicized options in the computation
* @ return ... | int maxLength = 0 ; for ( OptionInfo oi : optList ) { if ( oi . unpublicized && ! showUnpublicized ) { continue ; } int len = oi . synopsis ( ) . length ( ) ; if ( len > maxLength ) { maxLength = len ; } } return maxLength ; |
public class UserAttributesSet { /** * Sets a key - value pair into the attribute set of an user . The method will
* search for the key and if the key already exists it will update the user
* attribute in this set . If the key does not exist a new user attribute
* will be added to this set .
* @ param _ key key... | if ( _key == null || _value == null ) { throw new EFapsException ( this . getClass ( ) , "set" , _key , _value , _definition ) ; } else { final UserAttribute userattribute = this . attributes . get ( _key ) ; if ( userattribute == null ) { this . attributes . put ( _key , new UserAttribute ( _definition . name , _value... |
public class CustomizedTableHeader { /** * Add the column and the custom component at the given index
* @ param index The index */
private void addColumn ( int index ) { } } | TableColumnModel columnModel = getColumnModel ( ) ; TableColumn column = columnModel . getColumn ( index ) ; while ( tableColumns . size ( ) - 1 < index ) { tableColumns . add ( null ) ; } tableColumns . set ( index , column ) ; column . addPropertyChangeListener ( widthListener ) ; JComponent component = componentFact... |
public class PrefixFilterAdapter { /** * { @ inheritDoc } */
@ Override public Filter adapt ( FilterAdapterContext context , PrefixFilter filter ) throws IOException { } } | ByteString . Output output = ByteString . newOutput ( filter . getPrefix ( ) . length * 2 ) ; ReaderExpressionHelper . writeQuotedRegularExpression ( output , filter . getPrefix ( ) ) ; // Unquoted all bytes :
output . write ( ReaderExpressionHelper . ALL_QUALIFIERS_BYTES ) ; return FILTERS . key ( ) . regex ( output .... |
public class ExtendedSwidProcessor { /** * Defines product release date ( tag : release _ date ) .
* @ param releaseDate
* product release date
* @ return a reference to this object . */
public ExtendedSwidProcessor setReleaseDate ( final Date releaseDate ) { } } | swidTag . setReleaseDate ( new DateTime ( JAXBUtils . convertDateToXMLGregorianCalendar ( releaseDate ) , idGenerator . nextId ( ) ) ) ; return this ; |
public class ShanksAgentBayesianReasoningCapability { /** * Add soft - evidence to the Bayesian network to reason with it .
* @ param agent
* @ param nodeName
* @ param softEvidence
* @ throws ShanksException */
public static void addSoftEvidence ( BayesianReasonerShanksAgent agent , String nodeName , HashMap <... | ShanksAgentBayesianReasoningCapability . addSoftEvidence ( agent . getBayesianNetwork ( ) , nodeName , softEvidence ) ; |
public class JdbcTemplateTool { /** * return the singleton proxy */
private JdbcTemplateProxy getProxy ( ) { } } | if ( _proxy == null ) { _proxy = new JdbcTemplateProxy ( ) ; _proxy . setJdbcTemplate ( jdbcTemplate ) ; } return _proxy ; |
public class WicketSettings { /** * Should Croquet minify CSS and JavaScript resources ? Defaults to follow dev vs deploy .
* @ return true if resources should be minified */
public Boolean getMinifyResources ( ) { } } | if ( getDevelopment ( ) ) { return minifyResources != null ? minifyResources : false ; } else { return minifyResources != null ? minifyResources : true ; } |
public class YearWeek { /** * Returns a copy of this year - week with the specified number of weeks added .
* This instance is immutable and unaffected by this method call .
* @ param weeksToAdd the weeks to add , may be negative
* @ return the year - week with the weeks added , not null */
public YearWeek plusWe... | if ( weeksToAdd == 0 ) { return this ; } LocalDate mondayOfWeek = atDay ( DayOfWeek . MONDAY ) . plusWeeks ( weeksToAdd ) ; return YearWeek . from ( mondayOfWeek ) ; |
public class FavoritesEditController { /** * Un - favorite a favorite node ( portlet or collection ) identified by node ID . Routed by the
* action = delete parameter . If no favorites remain after un - favoriting , switches portlet mode to
* VIEW .
* < p > Sets render parameters : successMessageCode : message co... | "action=delete" } ) public void unFavoriteNode ( @ RequestParam ( "nodeId" ) String nodeId , ActionResponse response ) { try { // ferret out the layout manager
HttpServletRequest servletRequest = this . portalRequestUtils . getCurrentPortalRequest ( ) ; IUserInstance userInstance = this . userInstanceManager . getUserI... |
public class ObjectDigestUtil { /** * MD5编码
* @ param origin
* 原始字符串
* @ return 经过MD5加密之后的结果 */
public static String MD5Encode ( String origin ) { } } | String resultString = null ; try { resultString = origin ; MessageDigest md = MessageDigest . getInstance ( "MD5" ) ; md . update ( resultString . getBytes ( "UTF-8" ) ) ; resultString = byteArrayToHexString ( md . digest ( ) ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } return resultString ; |
public class ConvolveImageNoBorderSparse { /** * Convolves a 1D kernels around the specified pixel in the horizontal and vertical direction .
* @ param horizontal Horizontal convolution kernel . Not modified .
* @ param vertical Vertical convolution kernel . Not modified .
* @ param input Image that is being conv... | return ConvolveImageStandardSparse . convolve ( horizontal , vertical , input , c_x , c_y , storage ) ; |
public class ManagedClustersInner { /** * Gets upgrade profile for a managed cluster .
* Gets the details of the upgrade profile for a managed cluster with a specified resource group and name .
* @ param resourceGroupName The name of the resource group .
* @ param resourceName The name of the managed cluster reso... | return getUpgradeProfileWithServiceResponseAsync ( resourceGroupName , resourceName ) . map ( new Func1 < ServiceResponse < ManagedClusterUpgradeProfileInner > , ManagedClusterUpgradeProfileInner > ( ) { @ Override public ManagedClusterUpgradeProfileInner call ( ServiceResponse < ManagedClusterUpgradeProfileInner > res... |
public class ResultHierarchy { /** * Informs all registered { @ link ResultListener } that a new result has been
* removed .
* @ param child result that has been removed
* @ param parent Parent result that has been removed */
private void fireResultRemoved ( Result child , Result parent ) { } } | if ( LOG . isDebugging ( ) ) { LOG . debug ( "Result removed: " + child + " <- " + parent ) ; } for ( int i = listenerList . size ( ) ; -- i >= 0 ; ) { listenerList . get ( i ) . resultRemoved ( child , parent ) ; } |
public class InfiniteRecursiveLoop { /** * Signal an infinite loop if either : we see a call to the same method with
* the same parameters , or we see a call to the same ( dynamically dispatched
* method ) , and there has been no transfer of control . */
@ Override public void sawOpcode ( int seen ) { } } | if ( seenReturn && seenTransferOfControl && seenStateChange ) { return ; } if ( DEBUG ) { System . out . println ( stack ) ; System . out . println ( getPC ( ) + " : " + Const . getOpcodeName ( seen ) ) ; } if ( ( seen == Const . INVOKEVIRTUAL || seen == Const . INVOKEINTERFACE ) && "add" . equals ( getNameConstantOper... |
public class Tuple9 { /** * Limit this tuple to degree 9. */
public final Tuple9 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , T9 > limit9 ( ) { } } | return this ; |
public class BarChartItem { /** * * * * * * Initialization * * * * * */
private void initGraphics ( ) { } } | if ( Double . compare ( getPrefWidth ( ) , 0.0 ) <= 0 || Double . compare ( getPrefHeight ( ) , 0.0 ) <= 0 || Double . compare ( getWidth ( ) , 0.0 ) <= 0 || Double . compare ( getHeight ( ) , 0.0 ) <= 0 ) { if ( getPrefWidth ( ) > 0 && getPrefHeight ( ) > 0 ) { setPrefSize ( getPrefWidth ( ) , getPrefHeight ( ) ) ; } ... |
public class CmsQuickLaunchEditor { /** * Initializes the app icon items . < p > */
protected void resetAppIcons ( ) { } } | CmsObject cms = A_CmsUI . getCmsObject ( ) ; Locale locale = UI . getCurrent ( ) . getLocale ( ) ; m_standardApps . removeAllComponents ( ) ; m_userApps . removeAllComponents ( ) ; m_availableApps . removeAllComponents ( ) ; Collection < I_CmsWorkplaceAppConfiguration > allApps = OpenCms . getWorkplaceAppManager ( ) . ... |
public class FileSystem { /** * The IDs of the elastic network interface from which a specific file system is accessible . The elastic network
* interface is automatically created in the same VPC that the Amazon FSx file system was created in . For more
* information , see < a href = " https : / / docs . aws . amaz... | if ( this . networkInterfaceIds == null ) { setNetworkInterfaceIds ( new java . util . ArrayList < String > ( networkInterfaceIds . length ) ) ; } for ( String ele : networkInterfaceIds ) { this . networkInterfaceIds . add ( ele ) ; } return this ; |
public class HBaseWriter { /** * ( non - Javadoc )
* @ see
* com . impetus . client . hbase . Writer # writeColumns ( org . apache . hadoop . hbase .
* client . HTable , java . lang . String , java . lang . Object , java . util . Set ,
* java . lang . Object ) */
@ Override public void writeColumns ( HTableInte... | Put p = preparePut ( columnFamily , rowKey , columns , values ) ; htable . put ( p ) ; |
public class SQLExpressions { /** * REGR _ INTERCEPT returns the y - intercept of the regression line .
* @ param arg1 first arg
* @ param arg2 second arg
* @ return regr _ intercept ( arg1 , arg2) */
public static WindowOver < Double > regrIntercept ( Expression < ? extends Number > arg1 , Expression < ? extends... | return new WindowOver < Double > ( Double . class , SQLOps . REGR_INTERCEPT , arg1 , arg2 ) ; |
public class AuthorizedList { /** * Adds a compartment that the user should be allowed to access
* @ param theCompartments The compartment names , e . g . " Patient / 123 " ( in this example the user would be allowed to access Patient / 123 as well as Observations where Observation . subject = " Patient / 123 " m , e... | Validate . notNull ( theCompartments , "theCompartments must not be null" ) ; for ( String next : theCompartments ) { addCompartment ( next ) ; } return this ; |
public class PyGenerator { /** * Generate a Python docstring with the given comment .
* @ param comment the comment .
* @ param it the receiver of the docstring .
* @ return { @ code true } if the docstring is added , { @ code false } otherwise . */
protected static boolean generateDocString ( String comment , Py... | final String cmt = comment == null ? null : comment . trim ( ) ; if ( ! Strings . isEmpty ( cmt ) ) { assert cmt != null ; it . append ( "\"\"\"" ) . increaseIndentation ( ) ; // $ NON - NLS - 1 $
for ( final String line : cmt . split ( "[\n\r\f]+" ) ) { // $ NON - NLS - 1 $
it . newLine ( ) . append ( line ) ; } it . ... |
public class CommerceNotificationQueueEntryPersistenceImpl { /** * Returns the commerce notification queue entry with the primary key or returns < code > null < / code > if it could not be found .
* @ param primaryKey the primary key of the commerce notification queue entry
* @ return the commerce notification queu... | Serializable serializable = entityCache . getResult ( CommerceNotificationQueueEntryModelImpl . ENTITY_CACHE_ENABLED , CommerceNotificationQueueEntryImpl . class , primaryKey ) ; if ( serializable == nullModel ) { return null ; } CommerceNotificationQueueEntry commerceNotificationQueueEntry = ( CommerceNotificationQueu... |
public class Input { /** * Reads a char array in bulk . This may be more efficient than reading them individually . */
public char [ ] readChars ( int length ) throws KryoException { } } | char [ ] array = new char [ length ] ; if ( optional ( length << 1 ) == length << 1 ) { byte [ ] buffer = this . buffer ; int p = this . position ; for ( int i = 0 ; i < length ; i ++ , p += 2 ) array [ i ] = ( char ) ( ( buffer [ p ] & 0xFF ) | ( ( buffer [ p + 1 ] & 0xFF ) ) << 8 ) ; position = p ; } else { for ( int... |
public class CreateVersionMethod { /** * < pre >
* Create version request .
* < / pre >
* < code > . google . appengine . v1 . CreateVersionRequest request = 1 ; < / code > */
public com . google . appengine . v1 . CreateVersionRequest getRequest ( ) { } } | return request_ == null ? com . google . appengine . v1 . CreateVersionRequest . getDefaultInstance ( ) : request_ ; |
public class ScheduledPipelineLoader { /** * TODO : Do we need to do this differently than PipelineService # fullPipeline ? */
public Pipeline pipelineWithPasswordAwareBuildCauseByBuildId ( final long buildId ) { } } | Pipeline pipeline = pipelineDao . pipelineWithMaterialsAndModsByBuildId ( buildId ) ; MaterialRevisions scheduledRevs = pipeline . getBuildCause ( ) . getMaterialRevisions ( ) ; MaterialConfigs knownMaterials = knownMaterials ( pipeline , scheduledRevs ) ; for ( MaterialRevision materialRevision : scheduledRevs ) { Mat... |
public class Signature { /** * Initializes this object for verification , using the public key from
* the given certificate .
* < p > If the certificate is of type X . 509 and has a < i > key usage < / i >
* extension field marked as critical , and the value of the < i > key usage < / i >
* extension field impl... | // If the certificate is of type X509Certificate ,
// we should check whether it has a Key Usage
// extension marked as critical .
if ( certificate instanceof java . security . cert . X509Certificate ) { // Check whether the cert has a key usage extension
// marked as a critical extension .
// The OID for KeyUsage exte... |
public class Assert { /** * Asserts that a cookies with the provided name has a value matching the
* expected pattern . This information will be logged and recorded , with a
* screenshot for traceability and added debugging support .
* @ param cookieName the name of the cookie
* @ param expectedCookiePattern th... | String cookie = checkCookieMatches ( cookieName , expectedCookiePattern , 0 , 0 ) ; assertTrue ( "Cookie Value Mismatch: cookie value of '" + cookie + DOES_NOT_MATCH_PATTERN + expectedCookiePattern + "'" , cookie . matches ( expectedCookiePattern ) ) ; |
public class FileGetFromComputeNodeOptions { /** * Set a timestamp indicating the last modified time of the resource known to the client . The operation will be performed only if the resource on the service has not been modified since the specified time .
* @ param ifUnmodifiedSince the ifUnmodifiedSince value to set... | if ( ifUnmodifiedSince == null ) { this . ifUnmodifiedSince = null ; } else { this . ifUnmodifiedSince = new DateTimeRfc1123 ( ifUnmodifiedSince ) ; } return this ; |
public class CurrentMetricResultMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CurrentMetricResult currentMetricResult , ProtocolMarshaller protocolMarshaller ) { } } | if ( currentMetricResult == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( currentMetricResult . getDimensions ( ) , DIMENSIONS_BINDING ) ; protocolMarshaller . marshall ( currentMetricResult . getCollections ( ) , COLLECTIONS_BINDING ) ; }... |
public class Formatter { /** * 将String转换成Integer
* @ param string 需要转换的字符串
* @ return 转换结果 , 如果数值非法 , 则返回 - 1 */
public static int stringToInteger ( String string ) { } } | string = string . trim ( ) ; if ( Checker . isNumber ( string ) ) { return Integer . parseInt ( string ) ; } return - 1 ; |
public class Document { /** * Create a valid , empty shell of a document , suitable for adding more elements to .
* @ param baseUri baseUri of document
* @ return document with html , head , and body elements . */
public static Document createShell ( String baseUri ) { } } | Validate . notNull ( baseUri ) ; Document doc = new Document ( baseUri ) ; doc . parser = doc . parser ( ) ; Element html = doc . appendElement ( "html" ) ; html . appendElement ( "head" ) ; html . appendElement ( "body" ) ; return doc ; |
public class DataFrameJoiner { /** * Joins to the given tables assuming that they have a column of the name we ' re joining on
* @ param allowDuplicateColumnNames if { @ code false } the join will fail if any columns other than the join column have the same name
* if { @ code true } the join will succeed and duplic... | Table joined = table ; for ( Table table2 : tables ) { joined = rightOuter ( table2 , allowDuplicateColumnNames , columnNames ) ; } return joined ; |
public class CmsStringUtil { /** * Returns the java String literal for the given String . < p >
* This is the form of the String that had to be written into source code
* using the unicode escape sequence for special characters . < p >
* Example : " & Auml " would be transformed to " \ \ u00C4 " . < p >
* @ par... | StringBuffer result = new StringBuffer ( ) ; char [ ] carr = s . toCharArray ( ) ; String unicode ; for ( int i = 0 ; i < carr . length ; i ++ ) { result . append ( "\\u" ) ; // append leading zeros
unicode = Integer . toHexString ( carr [ i ] ) . toUpperCase ( ) ; for ( int j = 4 - unicode . length ( ) ; j > 0 ; j -- ... |
public class DeciderService { /** * Populates the workflow input data and the tasks input / output data if stored in external payload storage .
* This method creates a deep copy of the workflow instance where the payloads will be stored after downloading from external payload storage .
* @ param workflow the workfl... | Workflow workflowInstance = workflow . copy ( ) ; if ( StringUtils . isNotBlank ( workflow . getExternalInputPayloadStoragePath ( ) ) ) { // download the workflow input from external storage here and plug it into the workflow
Map < String , Object > workflowInputParams = externalPayloadStorageUtils . downloadPayload ( ... |
public class HintRule { /** * Adds a given product to the list of evidence to remove when matched .
* @ param source the source of the evidence
* @ param name the name of the evidence
* @ param value the value of the evidence
* @ param regex whether value is a regex
* @ param confidence the confidence of the ... | removeProduct . add ( new EvidenceMatcher ( source , name , value , regex , confidence ) ) ; |
public class MMCRGImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eUnset ( int featureID ) { } } | switch ( featureID ) { case AfplibPackage . MMCRG__KEY : setKey ( KEY_EDEFAULT ) ; return ; case AfplibPackage . MMCRG__VALUE : setValue ( VALUE_EDEFAULT ) ; return ; } super . eUnset ( featureID ) ; |
public class DistortSupport { /** * Creates a { @ link boofcv . alg . distort . PixelTransformAffine _ F32 } from the dst image into the src image .
* @ param x0 Center of rotation in input image coordinates .
* @ param y0 Center of rotation in input image coordinates .
* @ param x1 Center of rotation in output i... | // make the coordinate system ' s origin the image center
Se2_F32 imageToCenter = new Se2_F32 ( - x0 , - y0 , 0 ) ; Se2_F32 rotate = new Se2_F32 ( 0 , 0 , angle ) ; Se2_F32 centerToImage = new Se2_F32 ( x1 , y1 , 0 ) ; InvertibleTransformSequence sequence = new InvertibleTransformSequence ( ) ; sequence . addTransform ... |
public class AccessibilityNodeInfoUtils { /** * Recycles the given nodes .
* @ param nodes The nodes to recycle . */
public static void recycleNodes ( Collection < AccessibilityNodeInfoCompat > nodes ) { } } | if ( nodes == null ) { return ; } for ( AccessibilityNodeInfoCompat node : nodes ) { if ( node != null ) { node . recycle ( ) ; } } nodes . clear ( ) ; |
public class XmlStringBuilder { /** * Write the contents of this < code > XmlStringBuilder < / code > to a { @ link Writer } . This will write
* the single parts one - by - one , avoiding allocation of a big continuous memory block holding the
* XmlStringBuilder contents .
* @ param writer
* @ throws IOExceptio... | for ( CharSequence csq : sb . getAsList ( ) ) { if ( csq instanceof XmlStringBuilder ) { ( ( XmlStringBuilder ) csq ) . write ( writer , enclosingNamespace ) ; } else if ( csq instanceof XmlNsAttribute ) { XmlNsAttribute xmlNsAttribute = ( XmlNsAttribute ) csq ; if ( ! xmlNsAttribute . value . equals ( enclosingNamespa... |
public class OtpNode { /** * internal info about the message formats . . .
* the request : - > REG _ SEND { 6 , # Pid < bingo @ aule . 1.0 > , ' ' , net _ kernel }
* { ' $ gen _ call ' , { # Pid < bingo @ aule . 1.0 > , # Ref < bingo @ aule . 2 > } , { is _ auth , bingo @ aule } }
* the reply : < - SEND { 2 , ' '... | if ( anode . equals ( node ) ) { return true ; } else if ( anode . indexOf ( '@' , 0 ) < 0 && anode . equals ( node . substring ( 0 , node . indexOf ( '@' , 0 ) ) ) ) { return true ; } // other node
OtpMbox mbox = null ; try { mbox = createMbox ( ) ; mbox . send ( "net_kernel" , anode , getPingTuple ( mbox ) ) ; final ... |
public class EC2InstanceCountsMarshaller { /** * Marshall the given parameter object . */
public void marshall ( EC2InstanceCounts eC2InstanceCounts , ProtocolMarshaller protocolMarshaller ) { } } | if ( eC2InstanceCounts == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( eC2InstanceCounts . getDESIRED ( ) , DESIRED_BINDING ) ; protocolMarshaller . marshall ( eC2InstanceCounts . getMINIMUM ( ) , MINIMUM_BINDING ) ; protocolMarshaller . ... |
public class PageUtil { /** * 分页彩虹算法 < br >
* 来自 : https : / / github . com / iceroot / iceroot / blob / master / src / main / java / com / icexxx / util / IceUtil . java < br >
* 通过传入的信息 , 生成一个分页列表显示
* @ param currentPage 当前页
* @ param pageCount 总页数
* @ param displayCount 每屏展示的页数
* @ return 分页条 */
public s... | boolean isEven = true ; isEven = displayCount % 2 == 0 ; int left = displayCount / 2 ; int right = displayCount / 2 ; int length = displayCount ; if ( isEven ) { right ++ ; } if ( pageCount < displayCount ) { length = pageCount ; } int [ ] result = new int [ length ] ; if ( pageCount >= displayCount ) { if ( currentPag... |
public class BigIntegerUtil { /** * This is in use by FAT only at the writing time */
public static BigInteger decode ( String s ) { } } | byte [ ] bytes = Base64 . decodeBase64 ( s ) ; BigInteger bi = new BigInteger ( 1 , bytes ) ; return bi ; |
public class SplittableIterator { /** * Splits this iterator into < i > n < / i > partitions and returns the < i > i - th < / i > partition
* out of those .
* @ param num The partition to return ( < i > i < / i > ) .
* @ param numPartitions The number of partitions to split into ( < i > n < / i > ) .
* @ return... | if ( numPartitions < 1 || num < 0 || num >= numPartitions ) { throw new IllegalArgumentException ( ) ; } return split ( numPartitions ) [ num ] ; |
public class EncryptionProvider { /** * decrypt
* Decrypts a file given the key and iv . Uses AES decryption . */
public static void decrypt ( File file , String keyBase64 , String ivBase64 , RemoteStoreFileEncryptionMaterial encMat ) throws NoSuchAlgorithmException , NoSuchPaddingException , InvalidKeyException , Il... | byte [ ] keyBytes = Base64 . decode ( keyBase64 ) ; byte [ ] ivBytes = Base64 . decode ( ivBase64 ) ; byte [ ] qsmkBytes = Base64 . decode ( encMat . getQueryStageMasterKey ( ) ) ; final SecretKey fileKey ; // Decrypt file key
{ final Cipher keyCipher = Cipher . getInstance ( KEY_CIPHER ) ; SecretKey queryStageMasterKe... |
public class FileUtils { /** * Copy the file from the source to the destination .
* @ param source the source file to be copied .
* @ param destination the destination file to copy .
* @ see java . nio . channels . FileChannel # transferTo ( long , long , java . nio . channels . WritableByteChannel ) .
* @ retu... | FileInputStream in = null ; FileOutputStream out = null ; try { in = new FileInputStream ( source ) ; out = new FileOutputStream ( destination ) ; return copy ( in , out ) ; } finally { CloseableUtils . close ( in ) ; CloseableUtils . close ( out ) ; } |
public class HFClient { /** * Configures a channel based on information loaded from a Network Config file .
* Note that it is up to the caller to initialize the returned channel .
* @ param channelName The name of the channel to be configured
* @ param networkConfig The network configuration to use to configure t... | clientCheck ( ) ; // Sanity checks
if ( channelName == null || channelName . isEmpty ( ) ) { throw new InvalidArgumentException ( "channelName must be specified" ) ; } if ( networkConfig == null ) { throw new InvalidArgumentException ( "networkConfig must be specified" ) ; } if ( null == networkConfigAddPeerHandler ) {... |
public class MBeans { /** * ( non - Javadoc )
* @ see com . ibm . ws . cache . CacheAdmin # getCacheStatisticNames ( com . ibm . ws . cache . intf . DCache ) */
@ Override public String [ ] getCacheStatisticNames ( DCache cache ) { } } | Map statistics = getCacheStatisticsMap ( cache . getCacheStatistics ( ) ) ; String names [ ] = new String [ statistics . size ( ) ] ; Iterator it = statistics . keySet ( ) . iterator ( ) ; int i = 0 ; while ( it . hasNext ( ) ) { names [ i ] = ( String ) it . next ( ) ; i ++ ; } return names ; |
public class ModelsImpl { /** * Create an entity role for an entity in the application .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param entityId The entity model ID .
* @ param createClosedListEntityRoleOptionalParameter the object representing the optional parameters to be ... | return createClosedListEntityRoleWithServiceResponseAsync ( appId , versionId , entityId , createClosedListEntityRoleOptionalParameter ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class StateBasedGame { /** * Enter a particular game state with the transitions provided
* @ param id The ID of the state to enter
* @ param leave The transition to use when leaving the current state
* @ param enter The transition to use when entering the new state */
public void enterState ( int id , Tran... | if ( leave == null ) { leave = new EmptyTransition ( ) ; } if ( enter == null ) { enter = new EmptyTransition ( ) ; } leaveTransition = leave ; enterTransition = enter ; nextState = getState ( id ) ; if ( nextState == null ) { throw new RuntimeException ( "No game state registered with the ID: " + id ) ; } leaveTransit... |
public class BrowserSteps { /** * switchToWindow switch to an other Window . */
private void switchToWindow ( String key , String handleToKeep ) { } } | Context . addWindow ( key , handleToKeep ) ; Context . setMainWindow ( key ) ; Context . getDriver ( ) . switchTo ( ) . window ( handleToKeep ) ; |
public class CancelWorkflowExecutionDecisionAttributesMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CancelWorkflowExecutionDecisionAttributes cancelWorkflowExecutionDecisionAttributes , ProtocolMarshaller protocolMarshaller ) { } } | if ( cancelWorkflowExecutionDecisionAttributes == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( cancelWorkflowExecutionDecisionAttributes . getDetails ( ) , DETAILS_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unab... |
public class HtmlElement { /** * Html " class " attribute . Adds a single , space - separated value while preserving existing ones .
* @ param value Value of attribute
* @ return Self reference */
public final T addCssClass ( String value ) { } } | if ( StringUtils . isNotEmpty ( value ) ) { return setCssClass ( StringUtils . isNotEmpty ( getCssClass ( ) ) ? getCssClass ( ) + " " + value : value ) ; } else { return ( T ) this ; } |
public class SearchApi { /** * Search on a string Search for entities that match a given sub - string . - - -
* This route is cached for up to 3600 seconds SSO Scope :
* esi - search . search _ structures . v1
* @ param categories
* Type of entities to search for ( required )
* @ param search
* The string t... | com . squareup . okhttp . Call call = getSearchValidateBeforeCall ( categories , search , acceptLanguage , datasource , ifNoneMatch , language , strict , null ) ; Type localVarReturnType = new TypeToken < SearchResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ; |
public class MapView { /** * adjusts the mapCoordinateElement ' s position in the map .
* @ param id
* the id of the element to move */
private void moveMapCoordinateElementInMap ( final String id ) { } } | if ( getInitialized ( ) && null != id ) { final WeakReference < MapCoordinateElement > weakReference = mapCoordinateElements . get ( id ) ; if ( null != weakReference ) { final MapCoordinateElement mapCoordinateElement = weakReference . get ( ) ; if ( null != mapCoordinateElement ) { if ( logger . isTraceEnabled ( ) ) ... |
public class TextReport { /** * Log a message line to the output . */
private void logShort ( CharSequence message , boolean trim ) throws IOException { } } | int length = message . length ( ) ; if ( trim ) { while ( length > 0 && Character . isWhitespace ( message . charAt ( length - 1 ) ) ) { length -- ; } } char [ ] chars = new char [ length + 1 ] ; for ( int i = 0 ; i < length ; i ++ ) { chars [ i ] = message . charAt ( i ) ; } chars [ length ] = '\n' ; output . write ( ... |
public class Jaguar { /** * Bootstraps Jaguar . */
public static synchronized void bootstrap ( ) { } } | if ( container != null ) { logger . debug ( "Jaguar has already started" ) ; return ; } logger . info ( "Starting Jaguar on Java Runtime Environment [" + Environment . getProperty ( "java.version" ) + "]" ) ; try { container = new Container ( ) ; container . initialize ( ) ; } catch ( Exception e ) { container = null ;... |
public class AmazonDirectConnectClient { /** * Deletes the specified interconnect .
* < note >
* Intended for use by AWS Direct Connect Partners only .
* < / note >
* @ param deleteInterconnectRequest
* @ return Result of the DeleteInterconnect operation returned by the service .
* @ throws DirectConnectSer... | request = beforeClientExecution ( request ) ; return executeDeleteInterconnect ( request ) ; |
public class CascadingClassLoadHelper { /** * Return the class with the given name . */
@ Nonnull public Class < ? > loadClass ( final String sClassName ) throws ClassNotFoundException { } } | if ( m_aBestCandidate != null ) { try { return m_aBestCandidate . loadClass ( sClassName ) ; } catch ( final Throwable t ) { m_aBestCandidate = null ; } } Throwable aThrowable = null ; Class < ? > ret = null ; IClassLoadHelper aLoadHelper = null ; final Iterator < IClassLoadHelper > iter = m_aLoadHelpers . iterator ( )... |
public class PasswordEditText { /** * Adds all constraints , which are contained by a specific collection .
* @ param constraints
* A collection , which contains the constraints , which should be added , as an instance
* of the type { @ link Collection } or an empty collection , if no constraints should be
* ad... | Condition . INSTANCE . ensureNotNull ( constraints , "The collection may not be null" ) ; for ( Constraint < CharSequence > constraint : constraints ) { addConstraint ( constraint ) ; } |
public class HttpSender { /** * Sets whether or not the global state should be used .
* Refer to { @ link # HttpSender ( ConnectionParam , boolean , int ) } for details on how the global state is used .
* @ param enableGlobalState { @ code true } if the global state should be used , { @ code false } otherwise .
*... | if ( enableGlobalState ) { checkState ( ) ; } else { client . setState ( new HttpState ( ) ) ; clientViaProxy . setState ( new HttpState ( ) ) ; setClientsCookiePolicy ( CookiePolicy . BROWSER_COMPATIBILITY ) ; } |
public class ScriptOpCodes { /** * Converts the given OpCode into a string ( eg " 0 " , " PUSHDATA " , or " NON _ OP ( 10 ) " ) */
public static String getOpCodeName ( int opcode ) { } } | if ( opCodeMap . containsKey ( opcode ) ) return opCodeMap . get ( opcode ) ; return "NON_OP(" + opcode + ")" ; |
public class AbstractSubCodeBuilderFragment { /** * Replies the getter function for accessing to the top element collection of the script .
* @ return the name of the getter function . */
@ Pure protected String getLanguageScriptMemberGetter ( ) { } } | final Grammar grammar = getGrammar ( ) ; final AbstractRule scriptRule = GrammarUtil . findRuleForName ( grammar , getCodeBuilderConfig ( ) . getScriptRuleName ( ) ) ; for ( final Assignment assignment : GrammarUtil . containedAssignments ( scriptRule ) ) { if ( ( assignment . getTerminal ( ) instanceof RuleCall ) && O... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.