signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class FixtureFactory { /** * Creates new instance of fixture .
* @ param clazz class to instantiate .
* @ param constructorArgs arguments to pass to constructor of clazz .
* @ param < T > type to create .
* @ return instance of clazz ( subclass , actually ) that will have # aroundSlimInvoke ( ) invoked o... | T result ; if ( constructorArgs != null && constructorArgs . length > 0 ) { Class < ? > [ ] types = new Class [ constructorArgs . length ] ; for ( int i = 0 ; i < constructorArgs . length ; i ++ ) { types [ i ] = constructorArgs [ i ] . getClass ( ) ; } result = create ( clazz , types , constructorArgs ) ; } else { res... |
public class JavaLexer { /** * $ ANTLR start " EscapeSequence " */
public final void mEscapeSequence ( ) throws RecognitionException { } } | try { // src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 1353:5 : ( ' \ \ \ \ ' ( ' b ' | ' t ' | ' n ' | ' f ' | ' r ' | ' \ \ \ " ' | ' \ \ ' ' | ' \ \ \ \ ' ) | UnicodeEscape | OctalEscape )
int alt24 = 3 ; int LA24_0 = input . LA ( 1 ) ; if ( ( LA24_0 == '\\' ) ) { switch (... |
public class AmazonCloudFormationClient { /** * Returns summary information about operations performed on a stack set .
* @ param listStackSetOperationsRequest
* @ return Result of the ListStackSetOperations operation returned by the service .
* @ throws StackSetNotFoundException
* The specified stack set doesn... | request = beforeClientExecution ( request ) ; return executeListStackSetOperations ( request ) ; |
public class FileUtil { /** * Returns the appropriate working directory for storing application data . The result of this method is platform
* dependant : On linux , it will return ~ / applicationName , on windows , the working directory will be located in the
* user ' s application data folder . For Mac OS systems... | final String userHome = System . getProperty ( "user.home" , "." ) ; final File workingDirectory ; final String osName = System . getProperty ( "os.name" , "" ) . toLowerCase ( ) ; if ( osName . contains ( "windows" ) ) { final String applicationData = System . getenv ( "APPDATA" ) ; if ( applicationData != null ) work... |
public class ModelAdapter { /** * util function which recursively iterates over all items and subItems of the given adapter .
* It executes the given ` predicate ` on every item and will either stop if that function returns true , or continue ( if stopOnMatch is false )
* @ param predicate the predicate to run on e... | int preItemCount = getFastAdapter ( ) . getPreItemCountByOrder ( getOrder ( ) ) ; for ( int i = 0 ; i < getAdapterItemCount ( ) ; i ++ ) { int globalPosition = i + preItemCount ; // retrieve the item + it ' s adapter
FastAdapter . RelativeInfo < Item > relativeInfo = getFastAdapter ( ) . getRelativeInfo ( globalPositio... |
public class FsCrawlerImpl { /** * Upgrade FSCrawler indices
* @ return true if done successfully
* @ throws Exception In case of error */
@ SuppressWarnings ( "deprecation" ) public boolean upgrade ( ) throws Exception { } } | // We need to start a client so we can send requests to elasticsearch
try { esClient . start ( ) ; } catch ( Exception t ) { logger . fatal ( "We can not start Elasticsearch Client. Exiting." , t ) ; return false ; } // The upgrade script is for now a bit dumb . It assumes that you had an old version of FSCrawler ( < 2... |
public class NameUtil { /** * Attempts to find the new file name originated from input oldName using the
* the new modified BuzzHash algorithm .
* This method detects if the oldName contains a valid trailing hashcode and
* try to compute the new one . If the oldName has no valid hashcode in the
* input name , n... | String newName = null ; int len = oldName . length ( ) ; int last_ = ( len > 9 && ( oldName . charAt ( len - 9 ) == '_' ) ) ? len - 9 : - 1 ; // input file name must have a trailing " _ " follows by 8 hex digits
// and check to make sure the last 8 characters are all hex digits
if ( last_ != - 1 && allHexDigits ( oldNa... |
public class CmsSecure { /** * Builds the radio input to set the export and secure property .
* @ param propName the name of the property to build the radio input for
* @ return html for the radio input
* @ throws CmsException if the reading of a property fails */
public String buildRadio ( String propName ) thro... | String propVal = readProperty ( propName ) ; StringBuffer result = new StringBuffer ( "<table border=\"0\"><tr>" ) ; result . append ( "<td><input type=\"radio\" value=\"true\" onClick=\"checkNoIntern()\" name=\"" ) . append ( propName ) . append ( "\" " ) . append ( Boolean . valueOf ( propVal ) . booleanValue ( ) ? "... |
public class BaseProxy { /** * Retrieve this record from the key .
* @ param strSeekSign Which way to seek null / = matches data also & gt ; , & lt ; , & gt ; = , and & lt ; = .
* @ param strKeyArea The name of the key area to seek on .
* @ param objKeyData The data for the seek ( The raw data if a single field ,... | if ( objData instanceof DBException ) throw ( DBException ) objData ; if ( objData instanceof RemoteException ) throw ( RemoteException ) objData ; return objData ; |
public class CmsLocationController { /** * Opens the location picker popup . < p > */
void openPopup ( ) { } } | try { if ( m_popup == null ) { m_popup = new CmsPopup ( Messages . get ( ) . key ( Messages . GUI_LOCATION_DIALOG_TITLE_0 ) , hasMap ( ) ? 1020 : 420 ) ; m_popupContent = new CmsLocationPopupContent ( this , new CmsLocationSuggestOracle ( this ) , getModeItems ( ) , getTypeItems ( ) , getZoomItems ( ) ) ; setFieldVisib... |
public class EntryStream { /** * Returns a { @ link Map } containing the elements of this stream . There are
* no guarantees on the type or serializability of the { @ code Map } returned ;
* if more control over the returned { @ code Map } is required , use
* { @ link # toCustomMap ( Supplier ) } .
* This is a ... | Map < K , V > map = isParallel ( ) ? new ConcurrentHashMap < > ( ) : new HashMap < > ( ) ; forEach ( toMapConsumer ( map ) ) ; return map ; |
public class Multimap { /** * The associated keys will be removed if null or empty values are returned by the specified < code > function < / code > .
* @ param function */
public < X extends Exception > void replaceAll ( Try . BiFunction < ? super K , ? super V , ? extends V , X > function ) throws X { } } | List < K > keyToRemove = null ; V newVal = null ; for ( Map . Entry < K , V > entry : valueMap . entrySet ( ) ) { newVal = function . apply ( entry . getKey ( ) , entry . getValue ( ) ) ; if ( N . isNullOrEmpty ( newVal ) ) { if ( keyToRemove == null ) { keyToRemove = new ArrayList < > ( ) ; } keyToRemove . add ( entry... |
public class FindBugs2 { /** * Configure analysis feature settings . */
private void configureAnalysisFeatures ( ) { } } | for ( AnalysisFeatureSetting setting : analysisOptions . analysisFeatureSettingList ) { setting . configure ( AnalysisContext . currentAnalysisContext ( ) ) ; } AnalysisContext . currentAnalysisContext ( ) . setBoolProperty ( AnalysisFeatures . MERGE_SIMILAR_WARNINGS , analysisOptions . mergeSimilarWarnings ) ; |
public class LongRendererWithoutSeparator { /** * returns the instance .
* @ return CurrencyDoubleRenderer */
public static final Renderer < Long > instance ( ) { } } | // NOPMD it ' s thread save !
if ( LongRendererWithoutSeparator . instanceRenderer == null ) { synchronized ( LongRendererWithoutSeparator . class ) { if ( LongRendererWithoutSeparator . instanceRenderer == null ) { LongRendererWithoutSeparator . instanceRenderer = new LongRendererWithoutSeparator ( ) ; } } } return Lo... |
public class VMath { /** * Computes component - wise v1 = v1 - v2 * s2,
* overwriting the vector v1.
* @ param v1 vector
* @ param v2 another vector
* @ param s2 scalar for v2
* @ return v1 = v1 - v2 * s2 */
public static double [ ] minusTimesEquals ( final double [ ] v1 , final double [ ] v2 , final double s... | assert v1 . length == v2 . length : ERR_VEC_DIMENSIONS ; for ( int i = 0 ; i < v1 . length ; i ++ ) { v1 [ i ] -= v2 [ i ] * s2 ; } return v1 ; |
public class CrossChunkCodeMotion { /** * Is the expression of the form { @ code ' undefined ' ! = typeof Ref } ?
* @ param expression
* @ param reference Ref node must be equivalent to this node */
private boolean isUndefinedTypeofGuardFor ( Node expression , Node reference ) { } } | if ( expression . isNE ( ) ) { Node undefinedString = expression . getFirstChild ( ) ; Node typeofNode = expression . getLastChild ( ) ; return undefinedString . isString ( ) && undefinedString . getString ( ) . equals ( "undefined" ) && typeofNode . isTypeOf ( ) && typeofNode . getFirstChild ( ) . isEquivalentTo ( ref... |
public class HPAI { /** * Returns the byte representation of the whole HPAI structure .
* @ return byte array containing structure */
public final byte [ ] toByteArray ( ) { } } | final ByteArrayOutputStream os = new ByteArrayOutputStream ( HPAI_SIZE ) ; os . write ( length ) ; os . write ( hostprot ) ; os . write ( address , 0 , address . length ) ; os . write ( port >> 8 ) ; os . write ( port ) ; return os . toByteArray ( ) ; |
public class FormController { /** * Generate an available ID for the view .
* Uses the same implementation as { @ link View # generateViewId }
* @ return the next available view identifier . */
public static int generateViewId ( ) { } } | for ( ; ; ) { final int result = nextGeneratedViewId . get ( ) ; // aapt - generated IDs have the high byte nonzero ; clamp to the range under that .
int newValue = result + 1 ; if ( newValue > 0x00FFFFFF ) newValue = 1 ; // Roll over to 1 , not 0.
if ( nextGeneratedViewId . compareAndSet ( result , newValue ) ) { retu... |
public class CallActivityMock { /** * On execution , the MockProcess will execute the given consumer with a DelegateExecution .
* @ param serviceId . . . the id of the mock delegate
* @ param consumer delegate for service task
* @ return self */
public CallActivityMock onExecutionDo ( final String serviceId , fin... | flowNodeBuilder = flowNodeBuilder . serviceTask ( serviceId ) . camundaDelegateExpression ( "${id}" . replace ( "id" , serviceId ) ) ; registerInstance ( serviceId , ( JavaDelegate ) consumer :: accept ) ; return this ; |
public class PatternUtils { /** * Adapted from http : / / stackoverflow . com / questions / 1247772 / is - there - an - equivalent - of - java - util - regex - for - glob - type - patterns */
@ Nonnull public static String convertGlobToRegEx ( @ Nonnull String line ) { } } | line = line . trim ( ) ; int strLen = line . length ( ) ; StringBuilder sb = new StringBuilder ( strLen ) ; // Remove beginning and ending * globs because they ' re useless
if ( line . startsWith ( "*" ) ) { line = line . substring ( 1 ) ; strLen -- ; } if ( line . endsWith ( "*" ) ) { line = line . substring ( 0 , str... |
public class ClassReflectionIndex { /** * Get a collection of methods declared on this object .
* @ param name the name of the method
* @ param paramTypeNames the parameter type names of the method
* @ return the ( possibly empty ) collection of methods matching the description */
public Collection < Method > get... | final Map < ParamNameList , Map < String , Method > > nameMap = methodsByTypeName . get ( name ) ; if ( nameMap == null ) { return Collections . emptySet ( ) ; } final Map < String , Method > paramsMap = nameMap . get ( createParamNameList ( paramTypeNames ) ) ; if ( paramsMap == null ) { return Collections . emptySet ... |
public class ArrayAdapterCompat { /** * Adds the specified items at the end of the array .
* @ param items The items to add at the end of the array . */
public void addAll ( T ... items ) { } } | synchronized ( mLock ) { if ( mOriginalValues != null ) { Collections . addAll ( mOriginalValues , items ) ; } else { Collections . addAll ( mObjects , items ) ; } } if ( mNotifyOnChange ) notifyDataSetChanged ( ) ; |
public class CouchbaseExecutor { /** * Always remember to set " < code > LIMIT 1 < / code > " in the sql statement for better performance .
* @ param query
* @ param parameters
* @ return */
@ SafeVarargs public final ContinuableFuture < Boolean > asyncExists ( final String query , final Object ... parameters ) {... | return asyncExecutor . execute ( new Callable < Boolean > ( ) { @ Override public Boolean call ( ) throws Exception { return exists ( query , parameters ) ; } } ) ; |
public class Shape { /** * Get the combine normal of a given point
* @ param index The index of the point whose normal should be retrieved
* @ return The combined normal of a given point */
public float [ ] getNormal ( int index ) { } } | float [ ] current = getPoint ( index ) ; float [ ] prev = getPoint ( index - 1 < 0 ? getPointCount ( ) - 1 : index - 1 ) ; float [ ] next = getPoint ( index + 1 >= getPointCount ( ) ? 0 : index + 1 ) ; float [ ] t1 = getNormal ( prev , current ) ; float [ ] t2 = getNormal ( current , next ) ; if ( ( index == 0 ) && ( !... |
public class DefaultDmnDecisionContext { /** * Evaluate a decision with the given { @ link VariableContext }
* @ param decision the decision to evaluate
* @ param variableContext the available variable context
* @ return the result of the decision evaluation */
public DmnDecisionResult evaluateDecision ( DmnDecis... | if ( decision . getKey ( ) == null ) { throw LOG . unableToFindAnyDecisionTable ( ) ; } VariableMap variableMap = buildVariableMapFromVariableContext ( variableContext ) ; List < DmnDecision > requiredDecisions = new ArrayList < DmnDecision > ( ) ; buildDecisionTree ( decision , requiredDecisions ) ; List < DmnDecision... |
public class task_command_log { /** * Use this API to fetch filtered set of task _ command _ log resources .
* filter string should be in JSON format . eg : " vm _ state : DOWN , name : [ a - z ] + " */
public static task_command_log [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } } | task_command_log obj = new task_command_log ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; task_command_log [ ] response = ( task_command_log [ ] ) obj . getfiltered ( service , option ) ; return response ; |
public class CallbackWait { /** * Repeatedly applies this instance ' s input value to the given callable until one of the following
* occurs :
* < ol > < li > the function returns neither null nor false . < / li > < li > the function throws an unignored
* exception . < / li > < li > the timeout expires . < / li >... | long end = clock . laterBy ( timeout . in ( MILLISECONDS ) ) ; Exception lastException = null ; while ( true ) { try { X toReturn = condition . call ( ) ; if ( toReturn != null && Boolean . class . equals ( toReturn . getClass ( ) ) ) { if ( Boolean . TRUE . equals ( toReturn ) ) { return toReturn ; } } else if ( toRet... |
public class PlaybackService { /** * Resume the playback . */
private void resume ( ) { } } | if ( mIsPaused ) { mIsPaused = false ; mIsPausedAfterAudioFocusChanged = false ; // Try to gain the audio focus before preparing and starting the media player .
if ( mAudioManager . requestAudioFocus ( this , AudioManager . STREAM_MUSIC , AudioManager . AUDIOFOCUS_GAIN ) == AudioManager . AUDIOFOCUS_REQUEST_GRANTED ) {... |
public class comb { /** * Selects a random subset of size { @ code k } from the given base { @ code set } .
* @ param set the base set
* @ param k the size of the subset
* @ param random the random number generator used
* @ throws NullPointerException if { @ code set } or { @ code random } is
* { @ code null ... | final int [ ] sub = subset ( set . length , new int [ k ] , random ) ; for ( int i = 0 ; i < k ; ++ i ) { sub [ i ] = set [ sub [ i ] ] ; } return sub ; |
public class CommercePriceListUserSegmentEntryRelLocalServiceWrapper { /** * Returns the commerce price list user segment entry rel matching the UUID and group .
* @ param uuid the commerce price list user segment entry rel ' s UUID
* @ param groupId the primary key of the group
* @ return the matching commerce p... | return _commercePriceListUserSegmentEntryRelLocalService . fetchCommercePriceListUserSegmentEntryRelByUuidAndGroupId ( uuid , groupId ) ; |
public class PicocliBaseScript { /** * Create and returns a new CommandLine instance .
* This method sets the command name in the usage help message to the script ' s class simple name ( unless
* annotated with some other command name with the { @ code @ Command ( name = " . . . " ) } annotation ) .
* Subclasses ... | CommandLine commandLine = new CommandLine ( this ) ; if ( commandLine . getCommandName ( ) . equals ( "<main class>" ) ) { // only if user did not specify @ Command ( name ) attribute
commandLine . setCommandName ( this . getClass ( ) . getSimpleName ( ) ) ; } return commandLine ; |
public class RSS091UserlandParser { /** * It looks for the ' image ' elements under the ' channel ' elemment . */
@ Override protected Element getImage ( final Element rssRoot ) { } } | final Element eChannel = rssRoot . getChild ( "channel" , getRSSNamespace ( ) ) ; if ( eChannel != null ) { return eChannel . getChild ( "image" , getRSSNamespace ( ) ) ; } else { return null ; } |
public class Stream { /** * Terminal operation returning the only element in this Stream , or the default value
* specified if there are no elements , multiple elements or an Exception occurs .
* @ param defaultValue
* the default value to return if a unique value cannot be extracted
* @ return the only element... | try { final T result = getUnique ( ) ; if ( result != null ) { return result ; } } catch ( final Throwable ex ) { // ignore
} return defaultValue ; |
public class AbstractFlagEncoder { /** * Defines bits used for edge flags used for access , speed etc .
* @ return incremented shift value pointing behind the last used bit */
public void createEncodedValues ( List < EncodedValue > registerNewEncodedValue , String prefix , int index ) { } } | // define the first 2 speedBits in flags for routing
registerNewEncodedValue . add ( accessEnc = new SimpleBooleanEncodedValue ( prefix + "access" , true ) ) ; roundaboutEnc = getBooleanEncodedValue ( EncodingManager . ROUNDABOUT ) ; encoderBit = 1L << index ; |
public class SegmentationAreaTree { /** * Creates the area tree skeleton - selects the visible boxes and converts
* them to areas */
public Area findBasicAreas ( ) { } } | AreaImpl rootarea = new AreaImpl ( 0 , 0 , 0 , 0 ) ; setRoot ( rootarea ) ; rootarea . setAreaTree ( this ) ; rootarea . setPage ( page ) ; for ( int i = 0 ; i < page . getRoot ( ) . getChildCount ( ) ; i ++ ) { Box cbox = page . getRoot ( ) . getChildAt ( i ) ; Area sub = new AreaImpl ( cbox ) ; if ( sub . getWidth ( ... |
public class JedisRedisClient { /** * { @ inheritDoc } */
@ Override public void publish ( String topic , String message ) { } } | redisClient . publish ( topic , message ) ; |
public class CounterSample { /** * Equivalent to { @ link org . javasimon . CounterImpl # toString ( ) } without state . */
public synchronized String simonToString ( ) { } } | return "Simon Counter: counter=" + counter + ", max=" + SimonUtils . presentMinMaxCount ( max ) + ", min=" + SimonUtils . presentMinMaxCount ( min ) + simonToStringCommon ( ) ; |
public class AwsSecurityFindingFilters { /** * The identifier of the image related to a finding .
* @ param resourceContainerImageId
* The identifier of the image related to a finding . */
public void setResourceContainerImageId ( java . util . Collection < StringFilter > resourceContainerImageId ) { } } | if ( resourceContainerImageId == null ) { this . resourceContainerImageId = null ; return ; } this . resourceContainerImageId = new java . util . ArrayList < StringFilter > ( resourceContainerImageId ) ; |
public class PhpDependencyResolver { /** * execute pre step command ( composer install ) */
private boolean executePreStepCommand ( String topLevelFolder ) { } } | String [ ] command ; if ( DependencyCollector . isWindows ( ) ) { command = getCommand ( COMPOSER_BAT ) ; } else { command = getCommand ( COMPOSER ) ; } String commandString = String . join ( Constants . WHITESPACE , command ) ; File file = new File ( topLevelFolder + FORWARD_SLASH + COMPOSER_JSON ) ; CommandLineProces... |
public class AbstractCorsPolicyBuilder { /** * Specifies HTTP response headers that should be added to a CORS preflight response .
* < p > An intermediary like a load balancer might require that a CORS preflight request
* have certain headers set . This enables such headers to be added .
* @ param name the name o... | requireNonNull ( name , "name" ) ; requireNonNull ( values , "values" ) ; checkArgument ( ! Iterables . isEmpty ( values ) , "values should not be empty." ) ; final ImmutableList . Builder builder = new Builder ( ) ; int i = 0 ; for ( Object value : values ) { if ( value == null ) { throw new NullPointerException ( "va... |
public class MsWordUtils { /** * 添加一张图片
* @ param imagePath 图片路径
* @ param pictureType 图片类型
* @ param width 宽度
* @ param height 长度
* @ param alignment 对齐方式
* @ throws IOException 异常
* @ throws InvalidFormatException 异常 */
public static void appendImage ( String imagePath , int pictureType , int width , in... | appendImage ( getNewRun ( alignment ) , imagePath , pictureType , width , height ) ; |
public class ScrollAnimator { /** * Show the animated view using a " translationY " animation and configure an AnimatorListener to be notified during
* the animation . */
public void showWithAnimationWithListener ( Animator . AnimatorListener animatorListener ) { } } | scrollDirection = SCROLL_TO_TOP ; ObjectAnimator objectAnimator = objectAnimatorFactory . getObjectAnimator ( animatedView , ANIMATION_TYPE , HIDDEN_Y_POSITION ) ; if ( animatorListener != null ) { objectAnimator . addListener ( animatorListener ) ; } objectAnimator . setDuration ( durationInMillis ) ; objectAnimator .... |
public class OMVRBTree { /** * Balancing operations .
* Implementations of rebalancings during insertion and deletion are slightly different than the CLR version . Rather than using
* dummy nilnodes , we use a set of accessors that deal properly with null . They are used to avoid messiness surrounding nullness
* ... | return ( p == null ? BLACK : p . getColor ( ) ) ; |
public class ApiOvhTelephony { /** * Delete the given screen list
* REST : DELETE / telephony / { billingAccount } / timeCondition / { serviceName } / condition / { id }
* @ param billingAccount [ required ] The name of your billingAccount
* @ param serviceName [ required ]
* @ param id [ required ] Id of the o... | String qPath = "/telephony/{billingAccount}/timeCondition/{serviceName}/condition/{id}" ; StringBuilder sb = path ( qPath , billingAccount , serviceName , id ) ; exec ( qPath , "DELETE" , sb . toString ( ) , null ) ; |
public class StreamSegmentNameUtils { /** * Gets the name of the Segment that is used to store the Container ' s Segment Metadata . There is one such Segment
* per container .
* @ param containerId The Id of the Container .
* @ return The Metadata Segment name . */
public static String getMetadataSegmentName ( in... | Preconditions . checkArgument ( containerId >= 0 , "containerId must be a non-negative number." ) ; return String . format ( METADATA_SEGMENT_NAME_FORMAT , containerId ) ; |
public class MapTilePathModel { /** * Get the group category .
* @ param group The group name .
* @ return The category name ( < code > null < / code > if undefined ) . */
private String getCategory ( String group ) { } } | for ( final PathCategory category : categories . values ( ) ) { if ( category . getGroups ( ) . contains ( group ) ) { return category . getName ( ) ; } } return null ; |
public class XMLSerializer { /** * Writes a JSON value into a XML string with an specific encoding . < br >
* If the encoding string is null it will use UTF - 8.
* @ param json The JSON value to transform
* @ param encoding The xml encoding to use
* @ return a String representation of a well - formed xml docume... | if ( keepArrayName && typeHintsEnabled ) { throw new IllegalStateException ( "Type Hints cannot be used together with 'keepArrayName'" ) ; } if ( JSONNull . getInstance ( ) . equals ( json ) ) { Element root = null ; root = newElement ( getRootName ( ) == null ? getObjectName ( ) : getRootName ( ) ) ; root . addAttribu... |
public class HypergraphSorter { /** * Turns a triple of longs into a 3 - hyperedge .
* @ param triple a triple of intermediate hashes .
* @ param seed the seed for the hash function .
* @ param numVertices the number of vertices in the underlying hypergraph .
* @ param partSize < code > numVertices < / code > /... | if ( numVertices == 0 ) { e [ 0 ] = e [ 1 ] = e [ 2 ] = - 1 ; return ; } final long [ ] hash = new long [ 3 ] ; Hashes . spooky4 ( triple , seed , hash ) ; e [ 0 ] = ( int ) ( ( hash [ 0 ] & 0x7FFFFFFFFFFFFFFFL ) % partSize ) ; e [ 1 ] = ( int ) ( partSize + ( hash [ 1 ] & 0x7FFFFFFFFFFFFFFFL ) % partSize ) ; e [ 2 ] =... |
public class WebACFilter { /** * Get the membershipRelation from a PATCH request
* @ param request the http request
* @ return URI of the first ldp : membershipRelation object .
* @ throws IOException converting the request body to a string . */
private URI getHasMemberFromPatch ( final HttpServletRequest request... | final String sparqlString = IOUtils . toString ( request . getInputStream ( ) , UTF_8 ) ; final String baseURI = request . getRequestURL ( ) . toString ( ) . replace ( request . getContextPath ( ) , "" ) . replaceAll ( request . getPathInfo ( ) , "" ) . replaceAll ( "rest$" , "" ) ; final UpdateRequest sparqlUpdate = U... |
public class Slices { /** * Creates a slice over the specified array range .
* @ param offset the array position at which the slice begins
* @ param length the number of array positions to include in the slice */
public static Slice wrappedBuffer ( byte [ ] array , int offset , int length ) { } } | if ( length == 0 ) { return EMPTY_SLICE ; } return new Slice ( array , offset , length ) ; |
public class OptionUtils { /** * Removes from the provided options all options that are instance of the provided class , returning the remaining
* options .
* @ param optionType class of the desired options to be removed
* @ param options options to be filtered ( can be null or empty array )
* @ return array of... | final List < Option > filtered = new ArrayList < Option > ( ) ; for ( Option option : expand ( options ) ) { if ( ! optionType . isAssignableFrom ( option . getClass ( ) ) ) { filtered . add ( option ) ; } } return filtered . toArray ( new Option [ filtered . size ( ) ] ) ; |
public class Hits { /** * Returns the attribute ' s value , { @ link RenderingHelper # shouldHighlight ( View , String ) highlighted } and { @ link RenderingHelper # shouldSnippet ( View , String ) snippetted } if required to . */
protected @ Nullable Spannable getFinalAttributeValue ( @ NonNull JSONObject hit , @ NonN... | Spannable attributeText = null ; if ( attributeValue != null ) { if ( RenderingHelper . getDefault ( ) . shouldHighlight ( view , attribute ) ) { final int highlightColor = RenderingHelper . getDefault ( ) . getHighlightColor ( view , attribute ) ; final String prefix = BindingHelper . getPrefix ( view ) ; final String... |
public class XmlElementWrapperPlugin { /** * Locate the candidates classes for substitution / removal .
* @ return a map className - > Candidate */
private Collection < Candidate > findCandidateClasses ( Outline outline , JClass xmlElementDeclModelClass ) { } } | Map < String , ClassOutline > interfaceImplementations = new HashMap < String , ClassOutline > ( ) ; // Visit all classes to create a map " interfaceName - > ClassOutline " .
// This map is later used to resolve implementations from interfaces .
for ( ClassOutline classOutline : outline . getClasses ( ) ) { for ( Itera... |
public class QR { /** * Returns the upper triangular factor . */
public DenseMatrix getR ( ) { } } | int n = qr . ncols ( ) ; DenseMatrix R = Matrix . zeros ( n , n ) ; for ( int i = 0 ; i < n ; i ++ ) { R . set ( i , i , tau [ i ] ) ; for ( int j = i + 1 ; j < n ; j ++ ) { R . set ( i , j , qr . get ( i , j ) ) ; } } return R ; |
public class IndexBuilder { /** * Should this doc element be added to the index map ? */
protected boolean shouldAddToIndexMap ( Doc element ) { } } | if ( javafx ) { if ( element . tags ( "treatAsPrivate" ) . length > 0 ) { return false ; } } if ( element instanceof PackageDoc ) // Do not add to index map if - nodeprecated option is set and the
// package is marked as deprecated .
return ! ( noDeprecated && Util . isDeprecated ( element ) ) ; else // Do not add to i... |
public class DatabasesInner { /** * Gets a database inside of an elastic pool .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param serverName The name of the server .
* @ param elasticPoolN... | if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( serverN... |
public class TemplateUtils { /** * Builds CloudBigtableScanConfiguration from input runtime parameters for export job . */
public static CloudBigtableScanConfiguration BuildExportConfig ( ExportOptions options ) { } } | ValueProvider < ReadRowsRequest > request = new RequestValueProvider ( options ) ; CloudBigtableScanConfiguration . Builder configBuilder = new CloudBigtableScanConfiguration . Builder ( ) . withProjectId ( options . getBigtableProject ( ) ) . withInstanceId ( options . getBigtableInstanceId ( ) ) . withTableId ( optio... |
public class JCudnn { /** * Helper function to return the minimum size of the workspace to be passed to the reduction given the input and output
* tensors */
public static int cudnnGetReductionWorkspaceSize ( cudnnHandle handle , cudnnReduceTensorDescriptor reduceTensorDesc , cudnnTensorDescriptor aDesc , cudnnTensor... | return checkResult ( cudnnGetReductionWorkspaceSizeNative ( handle , reduceTensorDesc , aDesc , cDesc , sizeInBytes ) ) ; |
public class TensorflowConversion { /** * Convert a { @ link INDArray }
* to a { @ link TF _ Tensor }
* using zero copy .
* It will use the underlying
* pointer with in nd4j .
* @ param tensor the tensor to use
* @ return */
public INDArray ndArrayFromTensor ( TF_Tensor tensor ) { } } | int rank = TF_NumDims ( tensor ) ; int [ ] ndShape ; if ( rank == 0 ) { // scalar
ndShape = new int [ ] { 1 } ; } else { ndShape = new int [ rank ] ; for ( int i = 0 ; i < ndShape . length ; i ++ ) { ndShape [ i ] = ( int ) TF_Dim ( tensor , i ) ; } } int tfType = TF_TensorType ( tensor ) ; DataType nd4jType = typeFor ... |
public class ListGatewaysResult { /** * The gateways in the list .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setGateways ( java . util . Collection ) } or { @ link # withGateways ( java . util . Collection ) } if you want to override
* the existing va... | if ( this . gateways == null ) { setGateways ( new java . util . ArrayList < GatewaySummary > ( gateways . length ) ) ; } for ( GatewaySummary ele : gateways ) { this . gateways . add ( ele ) ; } return this ; |
public class BaseTable { /** * Init this table .
* Add this table to the database and hook this table to the record .
* NOTE : For linked tables , only the last table on the chain should be added to the database .
* @ param database The database to add this table to .
* @ param record The record to connect to t... | m_database = database ; if ( m_database != null ) m_database . addTable ( this ) ; super . init ( record ) ; m_objectID = null ; m_bIsOpen = false ; m_iRecordStatus = DBConstants . RECORD_INVALID ; |
public class CommerceOrderItemPersistenceImpl { /** * Returns the commerce order item with the primary key or returns < code > null < / code > if it could not be found .
* @ param primaryKey the primary key of the commerce order item
* @ return the commerce order item , or < code > null < / code > if a commerce ord... | Serializable serializable = entityCache . getResult ( CommerceOrderItemModelImpl . ENTITY_CACHE_ENABLED , CommerceOrderItemImpl . class , primaryKey ) ; if ( serializable == nullModel ) { return null ; } CommerceOrderItem commerceOrderItem = ( CommerceOrderItem ) serializable ; if ( commerceOrderItem == null ) { Sessio... |
public class NumberUtils { /** * Produces an array with a sequence of integer numbers .
* @ param from value to start the sequence from
* @ param to value to produce the sequence to
* @ return the Integer [ ] sequence
* @ since 1.1.2 */
public static Integer [ ] sequence ( final Integer from , final Integer to ... | return sequence ( from , to , Integer . valueOf ( from <= to ? 1 : - 1 ) ) ; |
public class ElementReferenceMapper { /** * and resolve the type by its name using a resolve method in the parser environment . */
@ Override public void endVisit ( VariableDeclarationFragment fragment ) { } } | // TODO ( malvania ) : Add field to elementReferenceMap when field detection is enabled and the
// ElementUtil . getBinaryName ( ) method doesn ' t break when called on a static block ' s
// ExecutableElement .
// String fieldID = stitchFieldIdentifier ( fragment ) ;
// elementReferenceMap . putIfAbsent ( fieldID , new... |
public class HsqlArrayList { /** * fredt @ users */
public void clear ( ) { } } | if ( minimizeOnClear && reserveElementData != null ) { elementData = reserveElementData ; reserveElementData = null ; elementCount = 0 ; return ; } for ( int i = 0 ; i < elementCount ; i ++ ) { elementData [ i ] = null ; } elementCount = 0 ; |
public class ItemDocumentBuilder { /** * Adds an additional site link to the constructed document .
* @ param title
* the title of the linked page
* @ param siteKey
* identifier of the site , e . g . , " enwiki "
* @ param badges
* one or more badges */
public ItemDocumentBuilder withSiteLink ( String title... | withSiteLink ( factory . getSiteLink ( title , siteKey , Arrays . asList ( badges ) ) ) ; return this ; |
public class XMLCaster { /** * casts a value to a XML Element Array
* @ param doc XML Document
* @ param o Object to cast
* @ return XML Comment Array
* @ throws PageException */
public static Node [ ] toNodeArray ( Document doc , Object o ) throws PageException { } } | if ( o instanceof Node ) return new Node [ ] { ( Node ) o } ; // Node [ ]
if ( o instanceof Node [ ] ) { return ( Node [ ] ) o ; } // Collection
else if ( o instanceof Collection ) { Collection coll = ( Collection ) o ; Iterator < Object > it = coll . valueIterator ( ) ; List < Node > nodes = new ArrayList < Node > ( )... |
public class BundleUtils { /** * Returns a optional { @ link java . io . Serializable } . In other words , returns the value mapped by key if it exists and is a { @ link java . io . Serializable } .
* The bundle argument is allowed to be { @ code null } . If the bundle is null , this method returns null .
* @ param... | if ( bundle == null ) { return fallback ; } return ( T ) bundle . getSerializable ( key ) ; |
public class AbstractStream { /** * Creates a new { @ link PropertyChangeEvent } and delivers it to all currently registered state listeners .
* @ param oldState
* the { @ link StreamState } we had before the change
* @ param newState
* the { @ link StreamState } we had after the change */
protected void fireSt... | final PropertyChangeEvent evt = new PropertyChangeEvent ( this , "StreamState" , oldState , newState ) ; for ( PropertyChangeListener listener : stateListeners ) { listener . propertyChange ( evt ) ; } |
public class Single { /** * Provides an API ( via a cold Completable ) that bridges the reactive world with the callback - style world .
* < img width = " 640 " height = " 454 " src = " https : / / raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / Single . create . png " alt = " " >
* Examp... | ObjectHelper . requireNonNull ( source , "source is null" ) ; return RxJavaPlugins . onAssembly ( new SingleCreate < T > ( source ) ) ; |
public class LevelDbInputReader { /** * Copies a list of byteBuffers into a single new byteBuffer . */
private static ByteBuffer copyAll ( List < ByteBuffer > buffers ) { } } | int size = 0 ; for ( ByteBuffer b : buffers ) { size += b . remaining ( ) ; } ByteBuffer result = allocate ( size ) ; for ( ByteBuffer b : buffers ) { result . put ( b ) ; } result . flip ( ) ; return result ; |
public class FPGrowth { /** * Insert a item to the front of an item set .
* @ param itemset the original item set .
* @ param item the new item to be inserted .
* @ return the combined item set */
static int [ ] insert ( int [ ] itemset , int item ) { } } | if ( itemset == null ) { int [ ] newItemset = { item } ; return newItemset ; } else { int n = itemset . length + 1 ; int [ ] newItemset = new int [ n ] ; newItemset [ 0 ] = item ; System . arraycopy ( itemset , 0 , newItemset , 1 , n - 1 ) ; return newItemset ; } |
public class SimpleValidationResultsReporter { /** * Get the message that should be reported .
* Searching takes following rules into account :
* < ul >
* < li > Severity of the selected message is the most severe one ( INFO <
* WARNING < ERROR ) . < / li >
* < li > Timestamp of the selected message is the mo... | ValidationMessage validationMessage = null ; for ( Iterator i = resultsModel . getMessages ( ) . iterator ( ) ; i . hasNext ( ) ; ) { ValidationMessage tmpMessage = ( ValidationMessage ) i . next ( ) ; if ( validationMessage == null || ( validationMessage . getSeverity ( ) . compareTo ( tmpMessage . getSeverity ( ) ) <... |
public class GIMDImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } } | switch ( featureID ) { case AfplibPackage . GIMD__DATA : return getDATA ( ) ; } return super . eGet ( featureID , resolve , coreType ) ; |
public class NodeImpl { /** * Return Node corresponding to this Node .
* @ param corrSession
* session on corresponding Workspace
* @ return NodeData corresponding Node
* @ throws ItemNotFoundException
* if corresponding Node not found
* @ throws AccessDeniedException
* if read impossible due to permision... | final QPath myPath = nodeData ( ) . getQPath ( ) ; final SessionDataManager corrDataManager = corrSession . getTransientNodesManager ( ) ; if ( this . isNodeType ( Constants . MIX_REFERENCEABLE ) ) { NodeData corrNode = ( NodeData ) corrDataManager . getItemData ( getUUID ( ) ) ; if ( corrNode != null ) { return corrNo... |
public class Messenger { /** * Sending activation code via voice
* @ param transactionHash transaction hash
* @ return promice of Boolean */
@ NotNull @ ObjectiveCName ( "doSendCodeViaCall:" ) public Promise < Boolean > doSendCodeViaCall ( String transactionHash ) { } } | return modules . getAuthModule ( ) . doSendCall ( transactionHash ) ; |
public class ArrayUtility { /** * Recursively appends all Items specified as a comma separated list to the specified { @ link Collection } .
* @ param < Item >
* type of the array items
* @ param items
* comma separated sequence of Items
* @ param target
* target { @ link Collection } of Items */
@ SafeVara... | flattenAsStream ( items ) . forEachOrdered ( target :: add ) ; |
public class Period { /** * Returns a new period with the specified number of millis .
* This period instance is immutable and unaffected by this method call .
* @ param millis the amount of millis to add , may be negative
* @ return the new period with the increased millis
* @ throws UnsupportedOperationExcept... | int [ ] values = getValues ( ) ; // cloned
getPeriodType ( ) . setIndexedField ( this , PeriodType . MILLI_INDEX , values , millis ) ; return new Period ( values , getPeriodType ( ) ) ; |
public class PrequentialEvaluation { private static boolean isLearnerAndEvaluatorCompatible ( Learner learner , PerformanceEvaluator evaluator ) { } } | return ( learner instanceof RegressionLearner && evaluator instanceof RegressionPerformanceEvaluator ) || ( learner instanceof ClassificationLearner && evaluator instanceof ClassificationPerformanceEvaluator ) ; |
public class UpdateUserPoolClientRequest { /** * A list of provider names for the identity providers that are supported on this client .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setSupportedIdentityProviders ( java . util . Collection ) } or
* { @ li... | if ( this . supportedIdentityProviders == null ) { setSupportedIdentityProviders ( new java . util . ArrayList < String > ( supportedIdentityProviders . length ) ) ; } for ( String ele : supportedIdentityProviders ) { this . supportedIdentityProviders . add ( ele ) ; } return this ; |
public class JSpinners { /** * Set whether the value of the given spinner may be changed with
* mouse drags
* @ param spinner The spinner
* @ param enabled Whether dragging is enabled
* @ throws IllegalArgumentException If the given spinner does not
* have a SpinnerNumberModel */
public static void setSpinner... | SpinnerModel spinnerModel = spinner . getModel ( ) ; if ( ! ( spinnerModel instanceof SpinnerNumberModel ) ) { throw new IllegalArgumentException ( "Dragging is only possible for spinners with a " + "SpinnerNumberModel, found " + spinnerModel . getClass ( ) ) ; } if ( enabled ) { disableSpinnerDragging ( spinner ) ; en... |
public class GVRMesh { /** * A static method to generate a curved mesh along an arc .
* Note the width and height arguments are used only as a means to
* get the width : height ratio .
* @ param gvrContext the current context
* @ param width a number representing the width
* @ param height a number representi... | GVRMesh mesh = new GVRMesh ( gvrContext ) ; final float MAX_DEGREES_PER_SUBDIVISION = 10f ; float ratio = ( float ) width / ( float ) height ; int subdivisions = ( int ) Math . ceil ( centralAngle / MAX_DEGREES_PER_SUBDIVISION ) ; float degreesPerSubdivision = centralAngle / subdivisions ; // Scale the number of subdiv... |
public class SimpleHTTPRequestParser { /** * This function returns the file info from the request data .
* @ param inputData
* The input data
* @ return The file info */
@ Override protected FileInfo getFileInfoFromInputDataImpl ( HTTPRequest inputData ) { } } | // get parameters text as map
Map < String , String > queryStringMap = this . convertParametersTextToMap ( inputData ) ; // get file info
FileInfo fileInfo = this . getFileInfoFromRequestImpl ( inputData , queryStringMap ) ; return fileInfo ; |
public class TrieNode { /** * Gets parent .
* @ return the parent */
public TrieNode getParent ( ) { } } | if ( 0 == index ) return null ; if ( null == parent && - 1 == depth ) { synchronized ( this ) { if ( null == parent ) { parent = newNode ( trie . parentIndex [ index ] ) ; assert ( parent . index < index ) ; } } } return parent ; |
public class FilterByteBuffer { /** * Skips output so that position % align = = 0
* @ param align
* @ throws IOException */
public void alignInput ( int align ) throws IOException { } } | int mod = position % align ; if ( mod > 0 ) { skipInput ( align - mod ) ; } |
public class FileMetadata { /** * For testing purpose */
public Metadata readMetadata ( Reader reader ) { } } | LineCounter lineCounter = new LineCounter ( "fromString" , StandardCharsets . UTF_16 ) ; FileHashComputer fileHashComputer = new FileHashComputer ( "fromString" ) ; LineOffsetCounter lineOffsetCounter = new LineOffsetCounter ( ) ; CharHandler [ ] handlers = { lineCounter , fileHashComputer , lineOffsetCounter } ; try {... |
public class BatchHelper { /** * Sends any currently remaining requests in the batch ; should be called at the end of any series
* of batched requests to ensure everything has been sent . */
public void flush ( ) throws IOException { } } | try { flushIfPossible ( true ) ; checkState ( pendingRequests . isEmpty ( ) , "pendingRequests should be empty after flush" ) ; checkState ( responseFutures . isEmpty ( ) , "responseFutures should be empty after flush" ) ; } finally { requestsExecutor . shutdown ( ) ; try { if ( ! requestsExecutor . awaitTermination ( ... |
public class SeparatorSet { /** * Analyzes the area and detects the separators that are implemented as borders
* or background changes . */
private void analyzeAreaSeparators ( AreaImpl area ) { } } | boolean isep = area . isExplicitlySeparated ( ) || area . isBackgroundSeparated ( ) ; if ( isep || area . separatedUp ( ) ) bsep . add ( new Separator ( Separator . BOXH , area . getX1 ( ) , area . getY1 ( ) , area . getX2 ( ) , area . getY1 ( ) + ART_SEP_WIDTH - 1 ) ) ; if ( isep || area . separatedDown ( ) ) bsep . a... |
public class Util { /** * Checks whether the given resource is a Java artifact ( i . e . either a Java
* source file or a Java class file ) .
* @ param resource
* The resource to check .
* @ return < code > true < / code > if the given resource is a Java artifact .
* < code > false < / code > otherwise . */
p... | if ( resource == null || ( resource . getType ( ) != IResource . FILE ) ) { return false ; } String ex = resource . getFileExtension ( ) ; if ( "java" . equalsIgnoreCase ( ex ) || "class" . equalsIgnoreCase ( ex ) ) { return true ; } String name = resource . getName ( ) ; return Archive . isArchiveFileName ( name ) ; |
public class DialogPreference { /** * Sets the scrollable area of the preference ' s dialog .
* @ param top
* The top scrollable area , which should be set , as a value of the enum Area or null , if
* no scrollable area should be set
* @ param bottom
* The bottom scrollable area , which should be set , as a v... | this . dialogScrollableArea = ScrollableArea . create ( top , bottom ) ; |
public class IntegerFieldOption { /** * / * ( non - Javadoc )
* @ see ca . eandb . util . args . AbstractFieldOption # getOptionValue ( java . util . Queue ) */
@ Override protected Object getOptionValue ( Queue < String > argq ) { } } | return Integer . parseInt ( argq . remove ( ) ) ; |
public class UserAgent { /** * Returns UserAgent based on specified unique id
* @ param id Id value of the user agent .
* @ return UserAgent */
public static UserAgent valueOf ( int id ) { } } | OperatingSystem operatingSystem = OperatingSystem . valueOf ( ( short ) ( id >> 16 ) ) ; Browser browser = Browser . valueOf ( ( short ) ( id & 0x0FFFF ) ) ; return new UserAgent ( operatingSystem , browser ) ; |
public class DoublesPmfCdfImpl { /** * This one does a linear time simultaneous walk of the samples and splitPoints . Because this
* internal procedure is called multiple times , we require the caller to ensure these 3 properties :
* < ol >
* < li > samples array must be sorted . < / li >
* < li > splitPoints m... | int i = 0 ; int j = 0 ; while ( i < samples . numItems ( ) && j < splitPoints . length ) { if ( samples . get ( i ) < splitPoints [ j ] ) { counters [ j ] += weight ; // this sample goes into this bucket
i ++ ; // move on to next sample and see whether it also goes into this bucket
} else { j ++ ; // no more samples fo... |
public class BeanPropertyPathExtension { /** * If the type is optional of number | null | undefined , or list of
* of integer , we want to be able to recognize it as number
* to link the member to another class .
* = > extract the original type while ignoring the | null | undefined
* and optional informations .... | if ( type instanceof TsType . OptionalType ) { return extractOriginalTsType ( ( ( TsType . OptionalType ) type ) . type ) ; } if ( type instanceof TsType . UnionType ) { TsType . UnionType union = ( TsType . UnionType ) type ; List < TsType > originalTypes = new ArrayList < > ( ) ; for ( TsType curType : union . types ... |
public class LCharToIntFunctionBuilder { /** * One of ways of creating builder . This is possibly the least verbose way where compiler should be able to guess the generic parameters . */
@ Nonnull public static LCharToIntFunction charToIntFunctionFrom ( Consumer < LCharToIntFunctionBuilder > buildingFunction ) { } } | LCharToIntFunctionBuilder builder = new LCharToIntFunctionBuilder ( ) ; buildingFunction . accept ( builder ) ; return builder . build ( ) ; |
public class SecurityServletConfiguratorHelper { /** * process the @ LoginConfig annotation . */
protected void configureMpJwt ( boolean doFeatureCheck ) { } } | if ( doFeatureCheck && ! MpJwtHelper . isMpJwtFeatureActive ( ) ) { return ; } String annoName = "org.eclipse.microprofile.auth.LoginConfig" ; Set < String > annotatedClasses = null ; InfoStore annosInfo = null ; try { annotatedClasses = configurator . getWebAnnotations ( ) . getAnnotationTargets ( ) . getAnnotatedClas... |
public class RandomAccessFileBuffer { /** * Puts a single byte in the buffer . */
@ Override // @ NotThreadSafe
public void put ( long position , byte value ) throws IOException { } } | if ( position >= capacity ( ) ) throw new BufferOverflowException ( ) ; raf . seek ( position ) ; raf . write ( value ) ; |
public class PrcBankStatementLineSave { /** * < p > Makes BSL result description . < / p >
* @ param pResAct action
* @ param pDateFormat Date Formatter
* @ param pRecord Record
* @ param pDate Date
* @ param pLangDef language
* @ return description */
public final String makeBslResDescr ( final EBankEntryR... | StringBuffer sb = new StringBuffer ( ) ; if ( EBankEntryResultAction . MATCH . equals ( pResAct ) ) { sb . append ( getSrvI18n ( ) . getMsg ( "Found" , pLangDef ) ) ; } else { sb . append ( getSrvI18n ( ) . getMsg ( "Created" , pLangDef ) ) ; } sb . append ( " " + getSrvI18n ( ) . getMsg ( pRecord . getClass ( ) . getS... |
public class Matrix4d { /** * / * ( non - Javadoc )
* @ see org . joml . Matrix4dc # mulLocal ( org . joml . Matrix4dc , org . joml . Matrix4d ) */
public Matrix4d mulLocal ( Matrix4dc left , Matrix4d dest ) { } } | if ( ( properties & PROPERTY_IDENTITY ) != 0 ) return dest . set ( left ) ; else if ( ( left . properties ( ) & PROPERTY_IDENTITY ) != 0 ) return dest . set ( this ) ; else if ( ( properties & PROPERTY_AFFINE ) != 0 && ( left . properties ( ) & PROPERTY_AFFINE ) != 0 ) return mulLocalAffine ( left , dest ) ; return mul... |
public class MicroServiceTemplateSupport { /** * � � � ҵ � � id � � � � � ݼ � 1 ⁄ 4
* @ param bizid ҵ � � � � �
* @ param tableName � � � � �
* @ param bizCol ҵ � � � � �
* @ param requestParamMap � ύ � � � �
* @ param cusCondition � � � � � ַ �
* @ param cusSetStr � � � � set � ַ �
* @ param modelName g... | // add 20170829 ninghao
Integer filterViewRet = filterView ( tableName , requestParamMap , bizId , bizCol , TYPE_UPDATE_BIZID ) ; if ( filterViewRet != null && filterViewRet > 0 ) { return filterViewRet ; } // add 20170627 ninghao
filterParam ( tableName , requestParamMap ) ; String tempDbType = calcuDbType ( ) ; Strin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.