signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class AsmUtils { /** * Checks if two { @ link FieldInsnNode } are equals .
* @ param insn1 the insn1
* @ param insn2 the insn2
* @ return true , if successful */
public static boolean fieldInsnEqual ( FieldInsnNode insn1 , FieldInsnNode insn2 ) { } } | return insn1 . owner . equals ( insn2 . owner ) && insn1 . name . equals ( insn2 . name ) && insn1 . desc . equals ( insn2 . desc ) ; |
public class OWLSServiceBuilder { /** * Builds an OWLSAtomicService , from a given URI that has to be a local file
* or an http URL
* @ param serviceURI the URI for the service location
* @ param modelURIs a List of URIs for ontologies that may be used by the
* service to be loaded ( currently needed when the s... | BSDFLogger . getLogger ( ) . info ( "Builds OWL service (BSDF functionality) from: " + serviceURI . toString ( ) ) ; OWLContainer owlSyntaxTranslator = new OWLContainer ( ) ; OWLKnowledgeBase kb = KBWithReasonerBuilder . newKB ( ) ; if ( null != modelURIs ) { for ( URI uri : modelURIs ) { owlSyntaxTranslator . loadOnto... |
public class ElementMatchers { /** * Matches a { @ link ByteCodeElement } ' s descriptor against a given value .
* @ param descriptor The expected descriptor .
* @ param < T > The type of the matched object .
* @ return A matcher for the given { @ code descriptor } . */
public static < T extends ByteCodeElement >... | return new DescriptorMatcher < T > ( new StringMatcher ( descriptor , StringMatcher . Mode . EQUALS_FULLY ) ) ; |
public class DemoInterceptor { /** * This method will add a DemoInterceptor into every in and every out phase
* of the interceptor chains .
* @ param provider */
public static void addInterceptors ( InterceptorProvider provider ) { } } | PhaseManager phases = BusFactory . getDefaultBus ( ) . getExtension ( PhaseManager . class ) ; for ( Phase p : phases . getInPhases ( ) ) { provider . getInInterceptors ( ) . add ( new DemoInterceptor ( p . getName ( ) ) ) ; provider . getInFaultInterceptors ( ) . add ( new DemoInterceptor ( p . getName ( ) ) ) ; } for... |
public class ViewDescriptor { /** * Possible { @ link ListViewColumnDescriptor } s that can be used with this view . */
public List < Descriptor < ListViewColumn > > getColumnsDescriptors ( ) { } } | StaplerRequest request = Stapler . getCurrentRequest ( ) ; if ( request != null ) { View view = request . findAncestorObject ( clazz ) ; return view == null ? DescriptorVisibilityFilter . applyType ( clazz , ListViewColumn . all ( ) ) : DescriptorVisibilityFilter . apply ( view , ListViewColumn . all ( ) ) ; } return L... |
public class AddressClient { /** * Returns the specified address resource .
* < p > Sample code :
* < pre > < code >
* try ( AddressClient addressClient = AddressClient . create ( ) ) {
* ProjectRegionAddressName address = ProjectRegionAddressName . of ( " [ PROJECT ] " , " [ REGION ] " , " [ ADDRESS ] " ) ;
... | GetAddressHttpRequest request = GetAddressHttpRequest . newBuilder ( ) . setAddress ( address ) . build ( ) ; return getAddress ( request ) ; |
public class FileUtil { /** * Checks if the file item size is within the supplied max file size .
* @ param newFile the file to be checked , if null then return false
* otherwise validate
* @ param maxFileSize max file size in bytes , if zero or negative return
* true , otherwise validate
* @ return { @ code ... | // If newFile to validate is null , then return false
if ( newFile == null ) { return false ; } // If maxFileSize to validate is zero or negative , then assume newFile is valid
if ( maxFileSize < 1 ) { return true ; } return ( newFile . getSize ( ) <= maxFileSize ) ; |
public class InternalXbaseWithAnnotationsParser { /** * InternalXbaseWithAnnotations . g : 2985:1 : ruleXClosure returns [ EObject current = null ] : ( ( ( ( ( ) ' [ ' ) ) = > ( ( ) otherlv _ 1 = ' [ ' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ' , ' ( ( ruleJvmFormalParameter ) ) ) * ) ? ( ( ' | ' ) ) ) ) = > ( ( ( ... | EObject current = null ; Token otherlv_1 = null ; Token otherlv_3 = null ; Token lv_explicitSyntax_5_0 = null ; Token otherlv_7 = null ; EObject lv_declaredFormalParameters_2_0 = null ; EObject lv_declaredFormalParameters_4_0 = null ; EObject lv_expression_6_0 = null ; enterRule ( ) ; try { // InternalXbaseWithAnnotati... |
public class JpaRolloutManagement { /** * Schedules a group of the rollout . Scheduled Actions are created to
* achieve this . The creation of those Actions is allowed to fail . */
private boolean scheduleRolloutGroup ( final JpaRollout rollout , final JpaRolloutGroup group ) { } } | final long targetsInGroup = rolloutTargetGroupRepository . countByRolloutGroup ( group ) ; final long countOfActions = actionRepository . countByRolloutAndRolloutGroup ( rollout , group ) ; long actionsLeft = targetsInGroup - countOfActions ; if ( actionsLeft > 0 ) { actionsLeft -= createActionsForRolloutGroup ( rollou... |
public class EntityDataModelUtil { /** * Gets the value of a property .
* @ param property The property .
* @ param object The object to get the value from ( typically an OData entity ) .
* @ return The value of the property . */
public static Object getPropertyValue ( StructuralProperty property , Object object ... | Field field = property . getJavaField ( ) ; field . setAccessible ( true ) ; try { return field . get ( object ) ; } catch ( IllegalAccessException e ) { throw new ODataSystemException ( "Cannot read property: " + property + " of object: " + object , e ) ; } |
public class HttpRequestExecutor { /** * Static factory method that creates a { @ link HttpRequestExecutor } instance
* which is set using the given < tt > cookie < / tt > for building authenticated
* HTTP request .
* @ param hostname Hostname to use for the created executor .
* @ param cookieValue Value of the... | final String cookie = new StringBuilder ( ) . append ( Request . COOKIE_NAME ) . append ( '=' ) . append ( cookieValue ) . toString ( ) ; final HttpTransport transport = GoogleNetHttpTransport . newTrustedTransport ( ) ; final HttpRequestFactory requestFactory = transport . createRequestFactory ( request -> { final Htt... |
public class BufferedDiskCache { /** * Clears the disk cache and the staging area . */
public Task < Void > clearAll ( ) { } } | mStagingArea . clearAll ( ) ; try { return Task . call ( new Callable < Void > ( ) { @ Override public Void call ( ) throws Exception { mStagingArea . clearAll ( ) ; mFileCache . clearAll ( ) ; return null ; } } , mWriteExecutor ) ; } catch ( Exception exception ) { // Log failure
// TODO : 3697790
FLog . w ( TAG , exc... |
public class NonFlatRStarTree { /** * Returns true if in the specified node an overflow occurred , false
* otherwise .
* @ param node the node to be tested for overflow
* @ return true if in the specified node an overflow occurred , false otherwise */
@ Override protected boolean hasOverflow ( N node ) { } } | if ( node . isLeaf ( ) ) { return node . getNumEntries ( ) == leafCapacity ; } else { return node . getNumEntries ( ) == dirCapacity ; } |
public class AtrUtils { /** * Method used to find description from ATR
* @ param pAtr
* Card ATR
* @ return list of description */
public static final Collection < String > getDescription ( final String pAtr ) { } } | Collection < String > ret = null ; if ( StringUtils . isNotBlank ( pAtr ) ) { String val = StringUtils . deleteWhitespace ( pAtr ) . toUpperCase ( ) ; for ( String key : MAP . keySet ( ) ) { if ( val . matches ( "^" + key + "$" ) ) { ret = ( Collection < String > ) MAP . get ( key ) ; break ; } } } return ret ; |
public class Process { /** * Finds the work transitions from the given activity
* that match the event type and completion code .
* A DEFAULT completion code matches any completion
* code if and only if there is no other matches
* @ param fromWorkId
* @ param eventType
* @ parame completionCode
* @ return... | List < Transition > allTransitions = getAllTransitions ( fromWorkId ) ; List < Transition > returnSet = findTransitions ( allTransitions , eventType , completionCode ) ; if ( returnSet . size ( ) > 0 ) return returnSet ; // look for default transition
boolean noLabelIsDefault = getTransitionWithNoLabel ( ) . equals ( T... |
public class XBELValidatorServiceImpl { /** * { @ inheritDoc } */
@ Override public List < ValidationError > validateWithErrors ( String s ) { } } | List < SAXParseException > saxErrors ; try { saxErrors = xv . validateWithErrors ( s ) ; } catch ( SAXException e ) { // TODO This isn ' t the intended design here
throw new RuntimeException ( e ) ; } catch ( IOException e ) { // TODO This isn ' t the intended design here
throw new RuntimeException ( e ) ; } List < Val... |
public class ZapNTLMEngineImpl { /** * Creates the NTLM Hash of the user ' s password .
* @ param password
* The password .
* @ return The NTLM Hash of the given password , used in the calculation of
* the NTLM Response and the NTLMv2 and LMv2 Hashes . */
private static byte [ ] ntlmHash ( final String password... | if ( UNICODE_LITTLE_UNMARKED == null ) { throw new AuthenticationException ( "Unicode not supported" ) ; } final byte [ ] unicodePassword = password . getBytes ( UNICODE_LITTLE_UNMARKED ) ; final MD4 md4 = new MD4 ( ) ; md4 . update ( unicodePassword ) ; return md4 . getOutput ( ) ; |
public class Bootstrap { /** * TODO It would be nice to update the service in case the URL , description , etc change . */
public UUID registerService ( String label , String provider , String version , URI url , String description , URI infoUrl , String uniqueId ) { } } | final RestCollection < Service > services = cloudController . getServices ( clientToken ) ; for ( Resource < Service > service : services ) { final Service serviceEntity = service . getEntity ( ) ; if ( label . equals ( serviceEntity . getLabel ( ) ) && provider . equals ( serviceEntity . getProvider ( ) ) && version .... |
public class Link { /** * Turns the current template into a { @ link Link } by expanding it using the given parameters .
* @ param arguments
* @ return */
public Link expand ( Object ... arguments ) { } } | return new Link ( template . expand ( arguments ) . toString ( ) , getRel ( ) ) ; |
public class MPIO { /** * Indicates an error has occurred on a connection .
* @ param conn The connection on which the error occurred .
* @ param ex The code indicating the type of error ( TBD ) . */
public void error ( MEConnection conn , Throwable ex ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "error" , new Object [ ] { this , conn , ex } ) ; // This one goes straight to the CEL
_commsErrorListener . error ( conn , ex ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc ... |
public class Bits { /** * Shift left .
* @ param src the src
* @ param bits the bits
* @ param dst the dst */
public static void shiftLeft ( final byte [ ] src , final int bits , final byte [ ] dst ) { } } | final int bitPart = bits % 8 ; final int bytePart = bits / 8 ; for ( int i = 0 ; i < dst . length ; i ++ ) { final int a = i + bytePart ; if ( a >= 0 && src . length > a ) { dst [ i ] |= ( byte ) ( ( src [ a ] & 0xFF ) << bitPart & 0xFF ) ; } final int b = i + bytePart + 1 ; if ( b >= 0 && src . length > b ) { dst [ i ... |
public class FindBugs { /** * Process the command line .
* @ param commandLine
* the TextUICommandLine object which will parse the command line
* @ param argv
* the command line arguments
* @ param findBugs
* the IFindBugsEngine to configure
* @ throws IOException
* @ throws FilterException */
public st... | // Expand option files in command line .
// An argument beginning with " @ " is treated as specifying
// the name of an option file .
// Each line of option files are treated as a single argument .
// Blank lines and comment lines ( beginning with " # " )
// are ignored .
try { argv = commandLine . expandOptionFiles ( ... |
public class Logger { /** * Log a message with the < code > ERROR < / code > level with message formatting
* done according to the messagePattern and the arguments arg1 and arg2.
* This form avoids superflous parameter construction . Whenever possible ,
* you should use this form instead of constructing the messa... | if ( m_delegate . isErrorEnabled ( ) ) { String msgStr = MessageFormatter . format ( messagePattern , arg1 , arg2 ) ; m_delegate . error ( msgStr , null ) ; } |
public class FacetUrl { /** * Get Resource Url for UpdateFacet
* @ param facetId Unique identifier of the facet to retrieve .
* @ param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object . This parameter should only be used to retrieve da... | UrlFormatter formatter = new UrlFormatter ( "/api/commerce/catalog/admin/facets/{facetId}?responseFields={responseFields}" ) ; formatter . formatUrl ( "facetId" , facetId ) ; formatter . formatUrl ( "responseFields" , responseFields ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENAN... |
public class FxAsync { /** * Asynchronously executes a computing operation on the JavaFX thread .
* @ param element The element ( s ) required for the computation ( use { @ link Tuple2 } for pair - based for example )
* @ param compute The computation to perform
* @ param < T > The type of the ( aggregated if nec... | return CompletableFuture . supplyAsync ( ( ) -> compute . apply ( element ) , Platform :: runLater ) ; |
public class MetadataLocationUnmarshaller { /** * { @ inheritDoc } */
@ Override protected void processAttribute ( XMLObject samlObject , Attr attribute ) throws UnmarshallingException { } } | MetadataLocation mdl = ( MetadataLocation ) samlObject ; if ( attribute . getLocalName ( ) . equals ( MetadataLocation . LOCATION_ATTR_NAME ) ) { mdl . setLocation ( attribute . getValue ( ) ) ; } else { this . processUnknownAttribute ( mdl , attribute ) ; } |
public class Sanitizers { /** * Called when we know we need to make a replacement .
* < p > At least one of { @ code searchForEndCData } or { @ code searchForEndTag } will be { @ code true } .
* @ param css The css string to modify
* @ param nextReplacement The location of the first replacement
* @ param search... | // use an array instead of a stringbuilder so we can take advantage of the bulk copying
// routine ( String . getChars ) . For some reason StringBuilder doesn ' t do this .
char [ ] buf = new char [ css . length ( ) + 16 ] ; int endOfPreviousReplacement = 0 ; int bufIndex = 0 ; do { int charsToCopy = nextReplacement - ... |
public class TaxinvoiceServiceImp { /** * / * ( non - Javadoc )
* @ see com . popbill . api . TaxinvoiceService # sendFAX ( java . lang . String , com . popbill . api . taxinvoice . MgtKeyType , java . lang . String , java . lang . String , java . lang . String ) */
@ Override public Response sendFAX ( String CorpNum... | return sendFAX ( CorpNum , KeyType , MgtKey , Sender , Receiver , null ) ; |
public class CmsPathTree { /** * Collect all descendant values in the given collection . < p >
* @ param target the collection in which to store the descendant values */
public void collectEntries ( Collection < V > target ) { } } | if ( m_value != null ) { target . add ( m_value ) ; } for ( CmsPathTree < P , V > child : m_children . values ( ) ) { child . collectEntries ( target ) ; } |
public class ProofObligation { /** * Chain an AND expression onto a root , or just return the new expression if the root is null . Called in a loop ,
* this left - associates an AND tree . */
protected PExp makeAnd ( PExp root , PExp e ) { } } | if ( root != null ) { AAndBooleanBinaryExp a = new AAndBooleanBinaryExp ( ) ; a . setLeft ( root . clone ( ) ) ; a . setOp ( new LexKeywordToken ( VDMToken . AND , null ) ) ; a . setType ( new ABooleanBasicType ( ) ) ; a . setRight ( e . clone ( ) ) ; return a ; } else { return e ; } |
public class ContentResult { /** * Adds the action result .
* @ param actionResult the action result */
public void addActionResult ( ActionResult actionResult ) { } } | ActionResult existActionResult = getActionResult ( actionResult . getActionId ( ) ) ; if ( existActionResult != null && existActionResult . getResultValue ( ) instanceof ResultValueMap && actionResult . getResultValue ( ) instanceof ResultValueMap ) { ResultValueMap resultValueMap = ( ResultValueMap ) existActionResult... |
public class CmsListMetadata { /** * Adds an action applicable to more than one list item at once . < p >
* It will be executed with a list of < code > { @ link CmsListItem } < / code > s . < p >
* @ param multiAction the action */
public void addMultiAction ( CmsListMultiAction multiAction ) { } } | multiAction . setListId ( getListId ( ) ) ; m_multiActions . addIdentifiableObject ( multiAction . getId ( ) , multiAction ) ; |
public class CmsStaticExportManager { /** * Adds a new rfs rule to the configuration . < p >
* @ param name the name of the rule
* @ param description the description for the rule
* @ param source the source regex
* @ param rfsPrefix the url prefix
* @ param exportPath the rfs export path
* @ param exportWo... | if ( ( m_staticExportPathConfigured != null ) && exportPath . equals ( m_staticExportPathConfigured ) ) { m_useTempDirs = false ; } Iterator < CmsStaticExportRfsRule > itRules = m_rfsRules . iterator ( ) ; while ( m_useTempDirs && itRules . hasNext ( ) ) { CmsStaticExportRfsRule rule = itRules . next ( ) ; if ( exportP... |
public class BoneCPConfig { /** * Sets the properties by reading off entries in the given parameter ( where each key is equivalent to the field name )
* @ param props Parameter list to set
* @ throws Exception on error */
public void setProperties ( Properties props ) throws Exception { } } | // Use reflection to read in all possible properties of int , String or boolean .
for ( Method method : BoneCPConfig . class . getDeclaredMethods ( ) ) { String tmp = null ; if ( method . getName ( ) . startsWith ( "is" ) ) { tmp = lowerFirst ( method . getName ( ) . substring ( 2 ) ) ; } else if ( method . getName ( )... |
public class HystrixMetricsPublisher { /** * Construct an implementation of { @ link HystrixMetricsPublisherCollapser } for { @ link HystrixCollapser } instances having key { @ link HystrixCollapserKey } .
* This will be invoked once per { @ link HystrixCollapserKey } instance .
* < b > Default Implementation < / b... | return new HystrixMetricsPublisherCollapserDefault ( collapserKey , metrics , properties ) ; |
public class ByteBufStrings { /** * UTF - 8 */
public static int encodeUtf8 ( byte [ ] array , int pos , String string ) { } } | int p = pos ; for ( int i = 0 ; i < string . length ( ) ; i ++ ) { p += encodeUtf8 ( array , p , string . charAt ( i ) ) ; } return p - pos ; |
public class DialogBuilder { /** * Create a password field
* @ param password
* , the content will be overriden after setting to the field
* @ param name
* @ param x
* @ param y
* @ param width
* @ param height
* @ return
* @ throws Exception */
public XTextComponent addPasswordField ( char [ ] passwo... | Object labelModel = multiServiceFactory . createInstance ( "com.sun.star.awt.UnoControlEditModel" ) ; XPropertySet passwordFieldProperties = ( XPropertySet ) UnoRuntime . queryInterface ( XPropertySet . class , labelModel ) ; passwordFieldProperties . setPropertyValue ( "PositionX" , new Integer ( x ) ) ; passwordField... |
public class Matchers { /** * Matches an enhanced for loop if all the given matchers match .
* @ param variableMatcher The matcher to apply to the variable .
* @ param expressionMatcher The matcher to apply to the expression .
* @ param statementMatcher The matcher to apply to the statement . */
public static Mat... | return new Matcher < EnhancedForLoopTree > ( ) { @ Override public boolean matches ( EnhancedForLoopTree t , VisitorState state ) { return variableMatcher . matches ( t . getVariable ( ) , state ) && expressionMatcher . matches ( t . getExpression ( ) , state ) && statementMatcher . matches ( t . getStatement ( ) , sta... |
public class PosixHelp { /** * Creates regular file or directory
* @ param path
* @ param perms E . g . - rwxr - - r - -
* @ return
* @ throws IOException */
public static final Path create ( Path path , String perms ) throws IOException { } } | return create ( path , null , perms ) ; |
public class CharBuffer { /** * Writes chars of the given { @ code CharSequence } to the current position of this buffer , and
* increases the position by the number of chars written .
* @ param csq the { @ code CharSequence } to write .
* @ param start the first char to write , must not be negative and not great... | if ( csq == null ) { csq = "null" ; // $ NON - NLS - 1 $
} CharSequence cs = csq . subSequence ( start , end ) ; if ( cs . length ( ) > 0 ) { return put ( cs . toString ( ) ) ; } return this ; |
public class Vector4i { /** * / * ( non - Javadoc )
* @ see org . joml . Vector4ic # distanceSquared ( org . joml . Vector4ic ) */
public int distanceSquared ( Vector4ic v ) { } } | return distanceSquared ( v . x ( ) , v . y ( ) , v . z ( ) , v . w ( ) ) ; |
public class OptionalMethod { /** * Perform a lookup for the method . No caching .
* In order to return a method the method name and arguments must match those specified when
* the { @ link OptionalMethod } was created . If the return type is specified ( i . e . non - null ) it
* must also be compatible . The met... | Method method = null ; if ( methodName != null ) { method = getPublicMethod ( clazz , methodName , methodParams ) ; if ( method != null && returnType != null && ! returnType . isAssignableFrom ( method . getReturnType ( ) ) ) { // If the return type is non - null it must be compatible .
method = null ; } } return metho... |
public class CryptoHelper { /** * < p > Getter for ourPublicKey in lazy mode . < / p >
* @ return our APK PublicKey
* @ throws Exception - an exception */
@ Override public final PublicKey lazyGetOurPublicKey ( ) throws Exception { } } | if ( this . ourPublicKey == null && lazyGetKeystore ( ) != null ) { this . ourPublicKey = this . keyStore . getCertificate ( "AJettyFileExch" + this . ajettyIn ) . getPublicKey ( ) ; } return this . ourPublicKey ; |
public class ESRegistry { /** * Gets the client synchronously .
* @ param id
* @ throws IOException */
protected Client getClient ( String id ) throws IOException { } } | Get get = new Get . Builder ( getIndexName ( ) , id ) . type ( "client" ) . build ( ) ; // $ NON - NLS - 1 $
JestResult result = getClient ( ) . execute ( get ) ; if ( result . isSucceeded ( ) ) { Client client = result . getSourceAsObject ( Client . class ) ; return client ; } else { return null ; } |
public class FunctionObject { /** * Returns all public methods declared by the specified class . This excludes
* inherited methods .
* @ param clazz the class from which to pull public declared methods
* @ return the public methods declared in the specified class
* @ see Class # getDeclaredMethods ( ) */
static... | Method [ ] methods = null ; try { // getDeclaredMethods may be rejected by the security manager
// but getMethods is more expensive
if ( ! sawSecurityException ) methods = clazz . getDeclaredMethods ( ) ; } catch ( SecurityException e ) { // If we get an exception once , give up on getDeclaredMethods
sawSecurityExcepti... |
public class TLVElement { /** * Returns the TLV content . If TLV does not include content then empty array is returned .
* @ return Byte array including TLV element content .
* @ throws TLVParserException */
public byte [ ] getContent ( ) throws TLVParserException { } } | byte [ ] content = this . content ; if ( ! children . isEmpty ( ) ) { for ( TLVElement child : children ) { content = Util . join ( content , child . encodeHeader ( ) ) ; content = Util . join ( content , child . getContent ( ) ) ; } } return content ; |
public class LeetLevel { /** * Converts a string to a leet level .
* @ param str The string to parse the leet level from .
* @ return The leet level if valid .
* @ throws Exception upon invalid level . */
public static LeetLevel fromString ( String str ) throws Exception { } } | if ( str == null || str . equalsIgnoreCase ( "null" ) || str . length ( ) == 0 ) return LEVEL1 ; try { int i = Integer . parseInt ( str ) ; if ( i >= 1 && i <= LEVELS . length ) return LEVELS [ i - 1 ] ; } catch ( Exception ignored ) { } String exceptionStr = String . format ( "Invalid LeetLevel '%1s', valid values are... |
public class GraphDOT { /** * Renders an { @ link Automaton } in the GraphVIZ DOT format .
* @ param automaton
* the automaton to render .
* @ param inputAlphabet
* the input alphabet to consider
* @ param a
* the appendable to write to
* @ param additionalHelpers
* additional helpers for providing visu... | write ( automaton . transitionGraphView ( inputAlphabet ) , a , additionalHelpers ) ; |
public class SourceLoader { /** * Returns true if the file name matches the pattern specified for the main help set file .
* @ param fileName File name to check .
* @ return True if this is the main help set file . */
public boolean isHelpSetFile ( String fileName ) { } } | if ( helpSetFilter == null ) { helpSetFilter = new WildcardFileFilter ( helpSetPattern ) ; } return helpSetFilter . accept ( new File ( fileName ) ) ; |
public class Validate { /** * Checks if there is an existing file with the given name and this file is a directory . < br >
* This method assumes that the given String contains the complete file path .
* @ param fileName The file name ( + path ) to validate .
* @ return A file reference for the given file name . ... | Validate . notNull ( fileName ) ; Validate . notEmpty ( fileName ) ; return Validate . directory ( new File ( fileName ) ) ; |
public class BoxFactory { /** * Creates anonymous block boxes if the a block box contains both the inline
* and the block child boxes . The child boxes of the specified root
* are processed and the inline boxes are grouped in a newly created
* anonymous < code > div < / code > boxes .
* @ param root the root bo... | Vector < Box > nest = new Vector < Box > ( ) ; ElementBox adiv = null ; for ( int i = 0 ; i < root . getSubBoxNumber ( ) ; i ++ ) { Box sub = root . getSubBox ( i ) ; if ( sub . isBlock ( ) ) { if ( adiv != null && ! adiv . isempty ) { normalizeBox ( adiv ) ; // normalize even the newly created blocks
removeTrailingWhi... |
public class DDParser { /** * If you are wanting to parse from the root element you should
* call parseRootElement ( ) which then invokes this parse . */
@ FFDCIgnore ( XMLStreamException . class ) public void parse ( ParsableElement parsable ) throws ParseException { } } | QName elementName = xsr . getName ( ) ; String elementLocalName = xsr . getLocalName ( ) ; currentElementLocalName = elementLocalName ; int attrCount = xsr . getAttributeCount ( ) ; for ( int i = 0 ; i < attrCount ; i ++ ) { String attrNS = xsr . getAttributeNamespace ( i ) ; String attrLocal = xsr . getAttributeLocalN... |
public class RetryPolicy { /** * Specifies that retries should be aborted if the { @ code resultPredicate } matches the result . Predicate is not
* invoked when the operation fails .
* @ throws NullPointerException if { @ code resultPredicate } is null */
public RetryPolicy < R > abortIf ( Predicate < R > resultPre... | Assert . notNull ( resultPredicate , "resultPredicate" ) ; abortConditions . add ( resultPredicateFor ( resultPredicate ) ) ; return this ; |
public class CoronaJobTracker { /** * Returns a unique JobID for a new job .
* CoronaJobTracker can only run a single job and it ' s id is fixed a - priori
* @ return the job ID . */
@ Override public JobID getNewJobId ( ) throws IOException { } } | int value = jobCounter . incrementAndGet ( ) ; if ( value > 1 ) { throw new RuntimeException ( "CoronaJobTracker can only run one job! (value=" + value + ")" ) ; } createSession ( ) ; // the jobtracker can run only a single job . it ' s jobid is fixed based
// on the sessionId .
jobId = jobIdFromSessionId ( sessionId )... |
public class QuotedStringTokenizer { /** * Unquote a string .
* @ param s The string to unquote .
* @ return quoted string */
public static String unquote ( String s ) { } } | if ( s == null ) return null ; if ( s . length ( ) < 2 ) return s ; char first = s . charAt ( 0 ) ; char last = s . charAt ( s . length ( ) - 1 ) ; if ( first != last || ( first != '"' && first != '\'' ) ) return s ; StringBuilder b = new StringBuilder ( s . length ( ) - 2 ) ; boolean escape = false ; for ( int i = 1 ;... |
public class InternalXtextParser { /** * InternalXtext . g : 629:1 : ruleDisjunction : ( ( rule _ _ Disjunction _ _ Group _ _ 0 ) ) ; */
public final void ruleDisjunction ( ) throws RecognitionException { } } | int stackSize = keepStackSize ( ) ; try { // InternalXtext . g : 633:2 : ( ( ( rule _ _ Disjunction _ _ Group _ _ 0 ) ) )
// InternalXtext . g : 634:2 : ( ( rule _ _ Disjunction _ _ Group _ _ 0 ) )
{ // InternalXtext . g : 634:2 : ( ( rule _ _ Disjunction _ _ Group _ _ 0 ) )
// InternalXtext . g : 635:3 : ( rule _ _ Di... |
public class UniverseApi { /** * Get solar systems Get a list of solar systems - - - This route expires
* daily at 11:05
* @ param datasource
* The server name you would like data from ( optional , default to
* tranquility )
* @ param ifNoneMatch
* ETag from a previous request . A 304 will be returned if th... | ApiResponse < List < Integer > > resp = getUniverseSystemsWithHttpInfo ( datasource , ifNoneMatch ) ; return resp . getData ( ) ; |
public class LiveReloadServer { /** * Factory method used to create the { @ link Connection } .
* @ param socket the source socket
* @ param inputStream the socket input stream
* @ param outputStream the socket output stream
* @ return a connection
* @ throws IOException in case of I / O errors */
protected C... | return new Connection ( socket , inputStream , outputStream ) ; |
public class SipParser { /** * Not all headers allow for multiple values on a single line . This is a
* basic check for validating whether or not that the header allows it or
* not . Note , for headers such as Contact , it depends !
* @ param headerName
* @ return */
private static boolean isHeaderAllowingMulti... | final int size = headerName . getReadableBytes ( ) ; if ( size == 7 ) { return ! isSubjectHeader ( headerName ) ; } else if ( size == 5 ) { return ! isAllowHeader ( headerName ) ; } else if ( size == 4 ) { return ! isDateHeader ( headerName ) ; } else if ( size == 1 ) { return ! isAllowEventsHeaderShort ( headerName ) ... |
public class MessageDrivenBeanTypeImpl { /** * Returns all < code > resource - env - ref < / code > elements
* @ return list of < code > resource - env - ref < / code > */
public List < ResourceEnvRefType < MessageDrivenBeanType < T > > > getAllResourceEnvRef ( ) { } } | List < ResourceEnvRefType < MessageDrivenBeanType < T > > > list = new ArrayList < ResourceEnvRefType < MessageDrivenBeanType < T > > > ( ) ; List < Node > nodeList = childNode . get ( "resource-env-ref" ) ; for ( Node node : nodeList ) { ResourceEnvRefType < MessageDrivenBeanType < T > > type = new ResourceEnvRefTypeI... |
public class LogRepositorySubManagerImpl { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . logging . hpel . LogRepositoryManager # purgeOldFiles ( )
* This now does not do the purge , but notes the need . This may be called with unwanted locks in place , so it will
* queue for the purging to be done at a lat... | // 671059 for servants , this will return null
if ( debugLogger . isLoggable ( Level . FINE ) && LogRepositoryBaseImpl . isDebugEnabled ( ) ) { debugLogger . logp ( Level . FINE , thisClass , "purgeOldFiles" , "Comm: " + ivSubProcessCommAgent + " Tp: " + managedType ) ; } purgeFiles = true ; return false ; |
public class StringParser { /** * Checks if the given string is a numeric string that can be converted to a
* long value with radix { @ value # DEFAULT _ RADIX } .
* @ param sStr
* The string to check . May be < code > null < / code > .
* @ return < code > true < / code > if the value can be converted to a vali... | if ( sStr != null ) try { Long . parseLong ( sStr , DEFAULT_RADIX ) ; return true ; } catch ( final NumberFormatException ex ) { // fall through
} return false ; |
public class SqlValidatorImpl { /** * Given a table alias , find the corresponding { @ link Table } associated with it */
private Table findTable ( String alias ) { } } | List < String > names = null ; if ( tableScope == null ) { // no tables to find
return null ; } for ( ScopeChild child : tableScope . children ) { if ( catalogReader . nameMatcher ( ) . matches ( child . name , alias ) ) { names = ( ( SqlIdentifier ) child . namespace . getNode ( ) ) . names ; break ; } } if ( names ==... |
public class InternalPureXbaseParser { /** * InternalPureXbase . g : 2011:1 : ruleXUnaryOperation returns [ EObject current = null ] : ( ( ( ) ( ( ruleOpUnary ) ) ( ( lv _ operand _ 2_0 = ruleXUnaryOperation ) ) ) | this _ XCastedExpression _ 3 = ruleXCastedExpression ) ; */
public final EObject ruleXUnaryOperation ( )... | EObject current = null ; EObject lv_operand_2_0 = null ; EObject this_XCastedExpression_3 = null ; enterRule ( ) ; try { // InternalPureXbase . g : 2017:2 : ( ( ( ( ) ( ( ruleOpUnary ) ) ( ( lv _ operand _ 2_0 = ruleXUnaryOperation ) ) ) | this _ XCastedExpression _ 3 = ruleXCastedExpression ) )
// InternalPureXbase . ... |
public class CompositeConditionImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eUnset ( int featureID ) { } } | switch ( featureID ) { case XtextPackage . COMPOSITE_CONDITION__LEFT : setLeft ( ( Condition ) null ) ; return ; case XtextPackage . COMPOSITE_CONDITION__RIGHT : setRight ( ( Condition ) null ) ; return ; } super . eUnset ( featureID ) ; |
public class ActivationSpecImpl { /** * { @ inheritDoc } */
public Activationspec copy ( ) { } } | return new ActivationSpecImpl ( CopyUtil . clone ( activationspecClass ) , CopyUtil . cloneList ( requiredConfigProperty ) , CopyUtil . cloneList ( configProperties ) , CopyUtil . cloneString ( id ) ) ; |
public class AmazonRDSClient { /** * Backtracks a DB cluster to a specific time , without creating a new DB cluster .
* For more information on backtracking , see < a
* href = " https : / / docs . aws . amazon . com / AmazonRDS / latest / AuroraUserGuide / AuroraMySQL . Managing . Backtrack . html " >
* Backtrack... | request = beforeClientExecution ( request ) ; return executeBacktrackDBCluster ( request ) ; |
public class Modal { /** * Get the modal of a specific frame
* @ param rootPane
* the RootPaneContainer with a modal
* @ return { @ link Modal } */
private static Modal getModal ( RootPaneContainer rootPane ) { } } | synchronized ( modals ) { Modal modal = modals . get ( rootPane ) ; if ( modal == null ) { modal = new Modal ( rootPane ) ; modals . put ( rootPane , modal ) ; } return modal ; } |
public class ExtensibleFilter { /** * If the filename matches any string in the prefix , suffix , or matches array , return false . Perhaps a bit of
* overkill , but this method operates in log ( n ) time , where n is the size of the arrays .
* @ param file The file to be tested
* @ return < code > false < / code... | String name = file . getName ( ) ; // check exact match
int index = Collections . binarySearch ( matches , name ) ; if ( index >= 0 ) { return false ; } // check prefix
index = Collections . binarySearch ( prefixes , name ) ; if ( index >= 0 ) { return false ; } if ( index < - 1 ) { // The < 0 index gives the first ind... |
public class AbstractPortalEventToLrsStatementConverter { /** * Build the URN for the LrsStatement . This method attaches creates the base URN . Additional
* elements can be attached .
* @ param parts Additional URN elements .
* @ return The formatted URI */
protected URI buildUrn ( String ... parts ) { } } | UrnBuilder builder = new UrnBuilder ( "UTF-8" , "tincan" , "uportal" , "activities" ) ; builder . add ( parts ) ; return builder . getUri ( ) ; |
public class AsyncDispatcher { /** * Run as long there is still an event for the key . */
public void runMoreOrStop ( AsyncEvent < K > _event ) { } } | for ( ; ; ) { try { _event . execute ( ) ; } catch ( Throwable t ) { cache . getLog ( ) . warn ( "Async event exception" , t ) ; } final K key = _event . getKey ( ) ; synchronized ( getLockObject ( key ) ) { Queue < AsyncEvent < K > > q = keyQueue . get ( key ) ; if ( q . isEmpty ( ) ) { keyQueue . remove ( key ) ; ret... |
public class FirehoseActionMarshaller { /** * Marshall the given parameter object . */
public void marshall ( FirehoseAction firehoseAction , ProtocolMarshaller protocolMarshaller ) { } } | if ( firehoseAction == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( firehoseAction . getRoleArn ( ) , ROLEARN_BINDING ) ; protocolMarshaller . marshall ( firehoseAction . getDeliveryStreamName ( ) , DELIVERYSTREAMNAME_BINDING ) ; protocol... |
public class OjbMemberTagsHandler { /** * Returns the value of the tag / parameter combination for the current member tag
* @ param attributes The attributes of the template tag
* @ return Description of the Returned Value
* @ exception XDocletException Description of Exception
* @ doc . tag type = " content " ... | if ( getCurrentField ( ) != null ) { // setting field to true will override the for _ class value .
attributes . setProperty ( "field" , "true" ) ; return getExpandedDelimitedTagValue ( attributes , FOR_FIELD ) ; } else if ( getCurrentMethod ( ) != null ) { return getExpandedDelimitedTagValue ( attributes , FOR_METHOD ... |
public class ApiOvhIpLoadbalancing { /** * Delete an UDP Farm
* REST : DELETE / ipLoadbalancing / { serviceName } / udp / farm / { farmId }
* @ param serviceName [ required ] The internal name of your IP load balancing
* @ param farmId [ required ] Id of your farm
* API beta */
public void serviceName_udp_farm_... | String qPath = "/ipLoadbalancing/{serviceName}/udp/farm/{farmId}" ; StringBuilder sb = path ( qPath , serviceName , farmId ) ; exec ( qPath , "DELETE" , sb . toString ( ) , null ) ; |
public class ManagedServer { /** * Notification that a state transition failed .
* @ param state the failed transition */
synchronized void transitionFailed ( final InternalState state ) { } } | final InternalState current = this . internalState ; if ( state == current ) { // Revert transition and mark as failed
switch ( current ) { case PROCESS_ADDING : this . internalState = InternalState . PROCESS_STOPPED ; break ; case PROCESS_STARTED : internalSetState ( getTransitionTask ( InternalState . PROCESS_STOPPIN... |
public class MarkdownParser { /** * Parse the Markdown message and entity JSON into a MessageML document . */
public MessageML parse ( String message , JsonNode entities , JsonNode media ) throws InvalidInputException { } } | this . index = 0 ; message = message . replace ( ( char ) 160 , ( char ) 32 ) ; String enriched = enrichMarkdown ( message , entities , media ) ; Node markdown = MARKDOWN_PARSER . parse ( enriched ) ; markdown . accept ( this ) ; return messageML ; |
public class ApplicationInstanceService { /** * Returns the application instance for the given id .
* @ param applicationId The application id
* @ param instanceId The application instance id
* @ return The application instance */
public Optional < ApplicationInstance > show ( long applicationId , long instanceId... | return HTTP . GET ( String . format ( "/v2/applications/%d/instances/%d.json" , applicationId , instanceId ) , APPLICATION_INSTANCE ) ; |
public class CmsContainerpageService { /** * Returns the lock information to the given resource . < p >
* @ param resource the resource
* @ return lock information , if the page is locked by another user
* @ throws CmsException if something goes wrong reading the lock owner user */
private String getLockInfo ( Cm... | CmsObject cms = getCmsObject ( ) ; CmsResourceUtil resourceUtil = new CmsResourceUtil ( cms , resource ) ; CmsLock lock = resourceUtil . getLock ( ) ; String lockInfo = null ; if ( ! lock . isLockableBy ( cms . getRequestContext ( ) . getCurrentUser ( ) ) ) { if ( lock . getType ( ) == CmsLockType . PUBLISH ) { lockInf... |
public class GVRContext { /** * Logs an error by sending an error event to all listeners .
* Error events can be generated by any part of GearVRF ,
* from any thread . They are always sent to the event receiver
* of the GVRContext .
* @ param message error message
* @ param sender object which had the error
... | getEventManager ( ) . sendEvent ( this , IErrorEvents . class , "onError" , new Object [ ] { message , sender } ) ; |
public class BrowserPane { /** * Renders current content to graphic context , which is returned . May return
* null ;
* @ return the Graphics2D context
* @ see Graphics2D */
public Graphics2D renderContent ( ) { } } | View view = null ; ViewFactory factory = getEditorKit ( ) . getViewFactory ( ) ; if ( factory instanceof SwingBoxViewFactory ) { view = ( ( SwingBoxViewFactory ) factory ) . getViewport ( ) ; } if ( view != null ) { int w = ( int ) view . getPreferredSpan ( View . X_AXIS ) ; int h = ( int ) view . getPreferredSpan ( Vi... |
public class ArrayHelper { /** * Get a new array that combines the passed array and the tail element . The
* tail element will be the last element of the created array .
* @ param < ELEMENTTYPE >
* Array element type
* @ param aHeadArray
* The head array . May be < code > null < / code > .
* @ param aTail
... | if ( isEmpty ( aHeadArray ) ) return newArraySingleElement ( aTail , aClass ) ; // Start concatenating
final ELEMENTTYPE [ ] ret = newArray ( aClass , aHeadArray . length + 1 ) ; System . arraycopy ( aHeadArray , 0 , ret , 0 , aHeadArray . length ) ; ret [ aHeadArray . length ] = aTail ; return ret ; |
public class JiteClass { /** * Convert this class representation to JDK bytecode
* @ param version the desired JDK version
* @ return the bytecode representation of this class */
public byte [ ] toBytes ( JDKVersion version ) { } } | ClassNode node = new ClassNode ( ) ; node . version = version . getVer ( ) ; node . access = this . access | ACC_SUPER ; node . name = this . className ; node . superName = this . superClassName ; node . sourceFile = this . sourceFile ; node . sourceDebug = this . sourceDebug ; if ( parentClassName != null ) { node . v... |
public class AbstractTracer { /** * Replaces the given argument by repeatedly substituting all expressions of the form $ { property - key } with the
* corresponding property value .
* @ param expression the to be replaced expression
* @ return the replaced expression
* @ throws de . christofreichardt . diagnosi... | Pattern compiledPattern = Pattern . compile ( "\\$\\{[a-zA-Z0-9.]+\\}" ) ; Matcher matcher = compiledPattern . matcher ( expression ) ; int pos = 0 ; StringBuilder stringBuilder = new StringBuilder ( ) ; boolean flag ; do { flag = false ; while ( matcher . find ( ) ) { stringBuilder . append ( expression . substring ( ... |
public class ConflictResolverUtils { /** * Resolves the conflicts for a given directive between the general pattern and the specific PatternCacheControl
* @ param directive
* @ param generalValue
* @ param specificPattern */
private static void resolveValueConflicts ( Directive directive , String generalValue , P... | long generalPatternValue = Long . parseLong ( generalValue ) ; if ( specificPattern . hasDirective ( directive ) ) { long specificPatternValue = Long . parseLong ( specificPattern . getDirectiveValue ( directive ) ) ; if ( specificPatternValue > generalPatternValue ) { specificPattern . setDirective ( directive , gener... |
public class BondCountDescriptor { /** * This method calculate the number of bonds of a given type in an atomContainer
* @ param container AtomContainer
* @ return The number of bonds of a certain type . */
@ Override public DescriptorValue calculate ( IAtomContainer container ) { } } | if ( order . equals ( "" ) ) { int bondCount = 0 ; for ( IBond bond : container . bonds ( ) ) { boolean hasHydrogen = false ; for ( int i = 0 ; i < bond . getAtomCount ( ) ; i ++ ) { if ( bond . getAtom ( i ) . getSymbol ( ) . equals ( "H" ) ) { hasHydrogen = true ; break ; } } if ( ! hasHydrogen ) bondCount ++ ; } ret... |
public class LoopBarView { /** * orientation state factory method */
public IOrientationState getOrientationStateFromParam ( int orientation ) { } } | switch ( orientation ) { case Orientation . ORIENTATION_HORIZONTAL_BOTTOM : return new OrientationStateHorizontalBottom ( ) ; case Orientation . ORIENTATION_HORIZONTAL_TOP : return new OrientationStateHorizontalTop ( ) ; case Orientation . ORIENTATION_VERTICAL_LEFT : return new OrientationStateVerticalLeft ( ) ; case O... |
public class BaseTree { /** * Delete children from start to stop and replace with t even if t is
* a list ( nil - root tree ) . num of children can increase or decrease .
* For huge child lists , inserting children can force walking rest of
* children to set their childindex ; could be slow . */
@ Override public... | /* System . out . println ( " replaceChildren " + startChildIndex + " , " + stopChildIndex +
" with " + ( ( BaseTree ) t ) . toStringTree ( ) ) ;
System . out . println ( " in = " + toStringTree ( ) ) ; */
if ( children == null ) { throw new IllegalArgumentException ( "indexes invalid; no children in list" ) ; } in... |
public class sslcertkey { /** * Use this API to fetch sslcertkey resources of given names . */
public static sslcertkey [ ] get ( nitro_service service , String certkey [ ] ) throws Exception { } } | if ( certkey != null && certkey . length > 0 ) { sslcertkey response [ ] = new sslcertkey [ certkey . length ] ; sslcertkey obj [ ] = new sslcertkey [ certkey . length ] ; for ( int i = 0 ; i < certkey . length ; i ++ ) { obj [ i ] = new sslcertkey ( ) ; obj [ i ] . set_certkey ( certkey [ i ] ) ; response [ i ] = ( ss... |
public class AuthorizationRequestManager { /** * Processes authentication successes .
* @ param jsonSuccesses Collection of authentication successes . */
private void processSuccesses ( JSONObject jsonSuccesses ) { } } | if ( jsonSuccesses == null ) { return ; } MCAAuthorizationManager authManager = ( MCAAuthorizationManager ) BMSClient . getInstance ( ) . getAuthorizationManager ( ) ; ArrayList < String > challenges = getRealmsFromJson ( jsonSuccesses ) ; for ( String realm : challenges ) { ChallengeHandler handler = authManager . get... |
public class River { /** * Loads a wrapper that wraps libraries as lotus . domino or org . openntf . domino and creates a core Session
* object . Its behavior will depend on how the wrapper is implemented . Anyway , this method creates the session just
* one time and returns the same every time is called . To free ... | // This will be the session loaded depending the selected wrapper
org . riverframework . wrapper . Session < ? > _session = null ; // Trying to retrieve the session from the map
Session session = map . get ( wrapper ) ; if ( session != null && session . isOpen ( ) ) { // There is an open session
if ( parameters . lengt... |
public class Operand { /** * Sets the feedItem value for this Operand .
* @ param feedItem */
public void setFeedItem ( com . google . api . ads . adwords . axis . v201809 . cm . FeedItem feedItem ) { } } | this . feedItem = feedItem ; |
public class JoinTableMetadata { /** * Adds the inverse join columns .
* @ param inverseJoinColumn
* the inverseJoinColumns to add */
public void addInverseJoinColumns ( String inverseJoinColumn ) { } } | if ( inverseJoinColumns == null || inverseJoinColumns . isEmpty ( ) ) { inverseJoinColumns = new HashSet < String > ( ) ; } inverseJoinColumns . add ( inverseJoinColumn ) ; |
public class AmazonSimpleEmailServiceClient { /** * Deletes the specified receipt rule .
* For information about managing receipt rules , see the < a
* href = " http : / / docs . aws . amazon . com / ses / latest / DeveloperGuide / receiving - email - managing - receipt - rules . html " > Amazon
* SES Developer G... | request = beforeClientExecution ( request ) ; return executeDeleteReceiptRule ( request ) ; |
public class XmlFilterModule { /** * Get pipe line filters
* @ param fi current file being processed */
private List < XMLFilter > getProcessingPipe ( final FileInfo fi ) { } } | final URI fileToParse = job . tempDirURI . resolve ( fi . uri ) ; assert fileToParse . isAbsolute ( ) ; final List < XMLFilter > res = new ArrayList < > ( ) ; for ( final FilterPair p : filters ) { if ( p . predicate . test ( fi ) ) { final AbstractXMLFilter f = p . filter ; logger . debug ( "Configure filter " + f . g... |
public class DirectoryCodePluginManager { /** * Create a plugin config object from JSON format .
* @ param inputStream the stream containing the JSON file .
* @ return the config object */
private CodePluginConfig parsePluginConfig ( InputStream inputStream ) { } } | Gson gson = new Gson ( ) ; CodePluginConfig config = gson . fromJson ( new InputStreamReader ( inputStream ) , CodePluginConfig . class ) ; logger . log ( Level . INFO , "Loaded configuration " + config ) ; return config ; |
public class SpecialMatchExpt { /** * Command - line interface . */
static public void main ( String [ ] argv ) { } } | try { Blocker blocker = ( Blocker ) Class . forName ( BLOCKER_PACKAGE + argv [ 0 ] ) . newInstance ( ) ; StringDistanceLearner learner = DistanceLearnerFactory . build ( argv [ 1 ] ) ; MatchData data = new MatchData ( argv [ 2 ] ) ; // check for options for the experiment
boolean useTrueClusters = false ; String moreNa... |
public class WebApplicationHandler { public FilterHolder defineFilter ( String name , String className ) { } } | FilterHolder holder = newFilterHolder ( name , className ) ; addFilterHolder ( holder ) ; return holder ; |
public class HelpParser { /** * Output this screen using HTML . . */
public void printHtmlHelp ( PrintWriter out , String strTag , String strParams , String strData ) { } } | this . parseHtmlData ( out , m_recDetail . getClassHelp ( ) ) ; |
public class CellField { /** * エラーを追加する
* @ param errorCode エラコード
* @ param variables エラーメッセージ中の変数 */
public void rejectValue ( final String errorCode , final Map < String , Object > variables ) { } } | final String codes [ ] = errors . generateMessageCodes ( errorCode , fieldPath , fieldType ) ; final FieldError error = new FieldErrorBuilder ( errors . getObjectName ( ) , fieldPath , codes ) . sheetName ( errors . getSheetName ( ) ) . rejectedValue ( fieldValue ) . variables ( variables ) . address ( position ) . lab... |
public class OrtcClient { /** * subscribeWithFilter the specified channel with a given filter in order to receive filtered messages in that
* channel
* @ param channel
* Channel to be subscribed
* @ param subscribeOnReconnect
* Indicates if the channel should be subscribe if the event on
* reconnected is fi... | ChannelSubscription subscribedChannel = subscribedChannels . get ( channel ) ; Pair < Boolean , String > subscribeValidation = isSubscribeValid ( channel , subscribedChannel ) ; if ( subscribeValidation != null && subscribeValidation . first ) { subscribedChannel = new ChannelSubscription ( subscribeOnReconnect , onMes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.