signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class SimpleTemplateManager { protected String evaluate ( String templateText , Object pmb ) { } } | final Node node = analyze ( filterTemplateText ( templateText , pmb ) ) ; final CommandContext ctx = prepareContext ( pmb ) ; node . accept ( ctx ) ; return ctx . getSql ( ) ; |
public class Bigram { /** * 含有语境的二元模型分值算法
* 计算多种分词结果的分值
* 利用获得的二元模型分值重新计算分词结果的分值
* 补偿细粒度切分获得分值而粗粒度切分未获得分值的情况
* @ param sentences 多种分词结果
* @ return 分词结果及其对应的分值 */
public static Map < List < Word > , Float > bigram ( List < Word > ... sentences ) { } } | Map < List < Word > , Float > map = new HashMap < > ( ) ; Map < String , Float > bigramScores = new HashMap < > ( ) ; // 两个连续的bigram补偿粗粒度分值
// 如 : 美国 , 加州 , 大学 , 如果美国 , 加州和加州 , 大学有分值
// 则美国加州大学也会获得分值
Map < String , Float > twoBigramScores = new HashMap < > ( ) ; // 1 、 计算多种分词结果的分值
for ( List < Word > sentence : sentenc... |
public class BindTypeSubProcessor { /** * Generate classes .
* @ throws IOException Signals that an I / O exception has occurred . */
private void generateClasses ( ) throws IOException { } } | for ( BindEntity entity : model . getEntities ( ) ) { final BindEntity item = entity ; BindTypeBuilder . generate ( filer , item ) ; } |
public class LogNormalDistributionTypeImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eSet ( int featureID , Object newValue ) { } } | switch ( featureID ) { case BpsimPackage . LOG_NORMAL_DISTRIBUTION_TYPE__MEAN : setMean ( ( Double ) newValue ) ; return ; case BpsimPackage . LOG_NORMAL_DISTRIBUTION_TYPE__STANDARD_DEVIATION : setStandardDeviation ( ( Double ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ; |
public class TargetHttpsProxyClient { /** * Replaces SslCertificates for TargetHttpsProxy .
* < p > Sample code :
* < pre > < code >
* try ( TargetHttpsProxyClient targetHttpsProxyClient = TargetHttpsProxyClient . create ( ) ) {
* ProjectTargetHttpsProxyName targetHttpsProxy = ProjectTargetHttpsProxyName . of (... | SetSslCertificatesTargetHttpsProxyHttpRequest request = SetSslCertificatesTargetHttpsProxyHttpRequest . newBuilder ( ) . setTargetHttpsProxy ( targetHttpsProxy ) . setTargetHttpsProxiesSetSslCertificatesRequestResource ( targetHttpsProxiesSetSslCertificatesRequestResource ) . build ( ) ; return setSslCertificatesTarget... |
public class ObjectSerializableCodec { /** * Encodes the object to bytes .
* @ param obj the object
* @ return bytes
* @ throws RemoteRuntimeException */
@ Override public byte [ ] encode ( final T obj ) { } } | try ( final ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; final ObjectOutputStream out = new ObjectOutputStream ( bos ) ) { out . writeObject ( obj ) ; return bos . toByteArray ( ) ; } catch ( final IOException ex ) { throw new RemoteRuntimeException ( ex ) ; } |
public class Parameters { /** * Gets a parameter ' s value .
* @ param name The parameter name .
* @ return The parameter value . */
public Object getValue ( @ NonNull String name ) { } } | if ( name == null ) { throw new IllegalArgumentException ( "name cannot be null." ) ; } return map . get ( name ) ; |
public class CmsSourceSearchForm { /** * Initializes the form with the given settings . < p >
* @ param settings the settings */
public void initFormValues ( CmsSearchReplaceSettings settings ) { } } | m_siteSelect . setValue ( settings . getSiteRoot ( ) ) ; m_ignoreSubSites . setValue ( new Boolean ( settings . ignoreSubSites ( ) ) ) ; m_searchType . setValue ( settings . getType ( ) ) ; if ( ! settings . getPaths ( ) . isEmpty ( ) ) { m_searchRoot . setValue ( settings . getPaths ( ) . get ( 0 ) ) ; } if ( CmsStrin... |
public class DocumentAbstract { /** * region > id ( programmatic , for comparison ) */
@ Programmatic public String getId ( ) { } } | Object objectId = JDOHelper . getObjectId ( this ) ; if ( objectId == null ) { return "" ; } String objectIdStr = objectId . toString ( ) ; final String id = objectIdStr . split ( "\\[OID\\]" ) [ 0 ] ; return id ; |
public class Rollbar { /** * Remove any person data that might be set . */
public void clearPersonData ( ) { } } | this . rollbar . configure ( new ConfigProvider ( ) { @ Override public Config provide ( ConfigBuilder builder ) { return builder . person ( null ) . build ( ) ; } } ) ; |
public class Variables { /** * Set a variable in the top variables layer to given " collection " of the vertex frames . Can ' t be reassigned -
* throws on attempt to reassign . */
public void setVariable ( String name , Iterable < ? extends WindupVertexFrame > frames ) { } } | Map < String , Iterable < ? extends WindupVertexFrame > > frame = peek ( ) ; if ( ! Iteration . DEFAULT_VARIABLE_LIST_STRING . equals ( name ) && findVariable ( name ) != null ) { throw new IllegalArgumentException ( "Variable \"" + name + "\" has already been assigned and cannot be reassigned" ) ; } frame . put ( name... |
public class Signatures { /** * Returns a JVMS 4.3.3 method descriptor . */
public static String descriptor ( Type type , Types types ) { } } | SigGen sig = new SigGen ( types ) ; sig . assembleSig ( types . erasure ( type ) ) ; return sig . toString ( ) ; |
public class TrieNode { /** * Godparent trie node .
* @ return the trie node */
public TrieNode godparent ( ) { } } | if ( 0 == getDepth ( ) ) return null ; TrieNode root = trie . root ( ) ; if ( 1 == getDepth ( ) ) return root ; if ( null != trie . godparentIndex && trie . godparentIndex . length > index ) { int godparentIndex = trie . godparentIndex [ this . index ] ; if ( godparentIndex >= 0 ) { return newNode ( godparentIndex ) ; ... |
public class FlowRunner { /** * Recursively propagate status to parent flow . Alert on first error of the flow in new AZ
* dispatching design .
* @ param base the base flow
* @ param status the status to be propagated */
private void propagateStatusAndAlert ( final ExecutableFlowBase base , final Status status ) ... | if ( ! Status . isStatusFinished ( base . getStatus ( ) ) && base . getStatus ( ) != Status . KILLING ) { this . logger . info ( "Setting " + base . getNestedId ( ) + " to " + status ) ; boolean shouldAlert = false ; if ( base . getStatus ( ) != status ) { base . setStatus ( status ) ; shouldAlert = true ; } if ( base ... |
public class ManagedBackupShortTermRetentionPoliciesInner { /** * Updates a managed database ' s short term retention policy .
* @ 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 managedInstan... | return ServiceFuture . fromResponse ( updateWithServiceResponseAsync ( resourceGroupName , managedInstanceName , databaseName , retentionDays ) , serviceCallback ) ; |
public class OffsetDateTime { /** * Gets the value of the specified field from this date - time as an { @ code int } .
* This queries this date - time for the value of the specified field .
* The returned value will always be within the valid range of values for the field .
* If it is not possible to return the v... | if ( field instanceof ChronoField ) { switch ( ( ChronoField ) field ) { case INSTANT_SECONDS : throw new UnsupportedTemporalTypeException ( "Invalid field 'InstantSeconds' for get() method, use getLong() instead" ) ; case OFFSET_SECONDS : return getOffset ( ) . getTotalSeconds ( ) ; } return dateTime . get ( field ) ;... |
public class Webb { /** * Set the value for a named header which is valid for all requests created by this instance .
* < br >
* The value takes precedence over { @ link Webb # setGlobalHeader ( String , Object ) } but can be overwritten by
* { @ link com . goebl . david . Request # header ( String , Object ) } .... | if ( defaultHeaders == null ) { defaultHeaders = new HashMap < String , Object > ( ) ; } if ( value == null ) { defaultHeaders . remove ( name ) ; } else { defaultHeaders . put ( name , value ) ; } |
public class AccountHeaderBuilder { /** * helper method to build and set the drawer selection list */
protected void buildDrawerSelectionList ( ) { } } | int selectedPosition = - 1 ; int position = 0 ; ArrayList < IDrawerItem > profileDrawerItems = new ArrayList < > ( ) ; if ( mProfiles != null ) { for ( IProfile profile : mProfiles ) { if ( profile == mCurrentProfile ) { if ( mCurrentHiddenInList ) { continue ; } else { selectedPosition = mDrawer . mDrawerBuilder . get... |
public class Op { /** * Creates an array with the specified elements and an < i > operation expression < / i > on it .
* @ param elements the elements of the array being created
* @ return an operator , ready for chaining */
public static < T > Level0ArrayOperator < Float [ ] , Float > onArrayFor ( final Float ... ... | return onArrayOf ( Types . FLOAT , VarArgsUtil . asRequiredObjectArray ( elements ) ) ; |
public class JsJmsMessageImpl { /** * getJMSXGroupSeq
* Return the value of the JMSXGroupSeq property if it exists .
* We can return it as object , as that is all JMS API wants . Actually it only
* really cares whether it exists , but we ' ll return Object rather than
* changing the callng code unnecessarily . ... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getJMSXGroupSeq" ) ; Object result = null ; if ( mayHaveMappedJmsSystemProperties ( ) ) { result = getObjectProperty ( SIProperties . JMSXGroupSeq ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEn... |
public class FunctionLibFactory { /** * Geerbte Methode von org . xml . sax . ContentHandler , wird bei durchparsen des XML , beim Auftreten
* eines Start - Tag aufgerufen .
* @ see org . xml . sax . ContentHandler # startElement ( String , String , String , Attributes ) */
@ Override public void startElement ( Str... | // Start Function
inside = qName ; this . attributes = atts ; if ( qName . equals ( "function" ) ) startFunction ( ) ; else if ( qName . equals ( "argument" ) ) startArg ( ) ; else if ( qName . equals ( "return" ) ) startReturn ( ) ; else if ( qName . equals ( "bundle" ) ) startBundle ( ) ; |
public class CoverageDataCore { /** * Get the unsigned pixel values . The values saved as " unsigned shorts " in
* the short array is returned as an integer which stores the positive 16
* bit value
* @ param pixelValues
* pixel values as " unsigned shorts "
* @ return unsigned 16 bit pixel values as an intege... | int [ ] unsignedValues = new int [ pixelValues . length ] ; for ( int i = 0 ; i < pixelValues . length ; i ++ ) { unsignedValues [ i ] = getUnsignedPixelValue ( pixelValues [ i ] ) ; } return unsignedValues ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcRelAssociatesMaterial ( ) { } } | if ( ifcRelAssociatesMaterialEClass == null ) { ifcRelAssociatesMaterialEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 454 ) ; } return ifcRelAssociatesMaterialEClass ; |
public class OracleDatabase { /** * { @ inheritDoc } */
@ Override protected boolean check4NullValues ( final Connection _con , final String _tableName , final String _columnName ) throws SQLException { } } | boolean ret = true ; final StringBuilder cmd = new StringBuilder ( ) ; cmd . append ( "select count(*) from " ) . append ( getTableQuote ( ) ) . append ( _tableName ) . append ( getTableQuote ( ) ) . append ( " where " ) . append ( getColumnQuote ( ) ) . append ( _columnName ) . append ( getColumnQuote ( ) ) . append (... |
public class KiteConnect { /** * Retrieve an individual sip .
* @ param sipId is the id of a particular sip .
* @ return MFSIP object which contains all the details of the sip .
* @ throws KiteException is thrown for all Kite trade related errors .
* @ throws IOException is thrown when there is connection relat... | JSONObject response = new KiteRequestHandler ( proxy ) . getRequest ( routes . get ( "mutualfunds.sip" ) . replace ( ":sip_id" , sipId ) , apiKey , accessToken ) ; return gson . fromJson ( response . get ( "data" ) . toString ( ) , MFSIP . class ) ; |
public class XMLEmitter { /** * Text node .
* @ param sText
* The contained text
* @ param bEscape
* If < code > true < / code > the text should be XML masked ( the default ) ,
* < code > false < / code > if not . The < code > false < / code > case is especially
* interesting for HTML inline JS and CSS code... | if ( bEscape ) _appendMasked ( EXMLCharMode . TEXT , sText ) ; else _append ( sText ) ; |
public class TextComponent { /** * Creates a text component by applying configuration from { @ code consumer } .
* @ param consumer the builder configurator
* @ return the text component */
public static TextComponent make ( final @ NonNull Consumer < Builder > consumer ) { } } | final Builder builder = builder ( ) ; consumer . accept ( builder ) ; return builder . build ( ) ; |
public class CmsRenameImages { /** * Performs the rename images operation . < p >
* @ return true , if the resources were successfully renamed , otherwise false
* @ throws CmsException if renaming is not successful */
protected boolean performDialogOperation ( ) throws CmsException { } } | // display " please wait " screen before renaming the images
if ( ! DIALOG_WAIT . equals ( getParamAction ( ) ) ) { // return false , this will trigger the " please wait " screen
return false ; } // lock the image gallery folder
checkLock ( getParamResource ( ) ) ; // get all image resources of the folder
int imageId =... |
public class SQLParser { /** * Parse ECHOERROR statement for sqlcmd .
* The result will be " " if the user just typed ECHOERROR .
* @ param statement statement to parse
* @ return Argument text or NULL if statement wasn ' t recognized */
public static String parseEchoErrorStatement ( String statement ) { } } | Matcher matcher = EchoErrorToken . matcher ( statement ) ; if ( matcher . matches ( ) ) { String commandWordTerminator = matcher . group ( 1 ) ; if ( OneWhitespace . matcher ( commandWordTerminator ) . matches ( ) ) { return matcher . group ( 2 ) ; } return "" ; } return null ; |
public class DocumentElement { /** * getter for y - gets
* @ generated
* @ return value of the feature */
public float getY ( ) { } } | if ( DocumentElement_Type . featOkTst && ( ( DocumentElement_Type ) jcasType ) . casFeat_y == null ) jcasType . jcas . throwFeatMissing ( "y" , "ch.epfl.bbp.uima.types.DocumentElement" ) ; return jcasType . ll_cas . ll_getFloatValue ( addr , ( ( DocumentElement_Type ) jcasType ) . casFeatCode_y ) ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.drugbank.ca" , name = "gene-symbol" , scope = SnpAdverseDrugReactionType . class ) public JAXBElement < String > createSnpAdverseDrugReactionTypeGen... | return new JAXBElement < String > ( _SnpAdverseDrugReactionTypeGeneSymbol_QNAME , String . class , SnpAdverseDrugReactionType . class , value ) ; |
public class ShardedRedisCounter { /** * { @ inheritDoc } */
@ Override protected DataPoint [ ] getAllInRange ( long timestampStartMs , long timestampEndMs ) { } } | SortedSet < DataPoint > result = new TreeSet < DataPoint > ( new Comparator < DataPoint > ( ) { @ Override public int compare ( DataPoint block1 , DataPoint block2 ) { return Longs . compare ( block1 . timestamp ( ) , block2 . timestamp ( ) ) ; } } ) ; long keyStart = toTimeSeriesPoint ( timestampStartMs ) ; long keyEn... |
public class Statistics { /** * A utility method that calculates the difference of the time
* between the given < code > startInMillis < / code > and { @ link System # currentTimeMillis ( ) }
* and registers the difference via { @ link # register ( long ) } for the probe of the given { @ link StatsType } .
* @ pa... | register ( statsType , System . currentTimeMillis ( ) - startInMillis ) ; |
public class Interval { /** * Returns a JSON representation of this interval to send to the server .
* Used by the SDK internally .
* @ return a JSON representation of this interval */
public ObjectNode toJson ( ) { } } | ObjectMapper mapper = new ObjectMapper ( ) ; ObjectNode node = mapper . createObjectNode ( ) ; ObjectNode unitIntervalNode = mapper . createObjectNode ( ) ; node . put ( intervalUnit . getUnitNodeName ( ) , unitIntervalNode ) ; unitIntervalNode . put ( "interval" , buildIntervalNode ( ) ) ; unitIntervalNode . put ( "ag... |
public class JerseyEmoResource { /** * Returns an EmoClientException with a thin wrapper around the Jersey exception response . */
private EmoClientException asEmoClientException ( UniformInterfaceException e ) throws EmoClientException { } } | throw new EmoClientException ( e . getMessage ( ) , e , toEmoResponse ( e . getResponse ( ) ) ) ; |
public class SftpFileAttributes { /** * Determine whether these attributes refer to a character device .
* @ return boolean */
public boolean isCharacter ( ) { } } | if ( permissions != null && ( permissions . longValue ( ) & SftpFileAttributes . S_IFCHR ) == SftpFileAttributes . S_IFCHR ) { return true ; } return false ; |
public class EnumCharacteristic { /** * { @ inheritDoc } */
@ Override protected Integer convert ( JsonValue jsonValue ) { } } | if ( jsonValue instanceof JsonNumber ) { return ( ( JsonNumber ) jsonValue ) . intValue ( ) ; } else if ( jsonValue == JsonObject . TRUE ) { return 1 ; // For at least one enum type ( locks ) , homekit will send a true instead of 1
} else if ( jsonValue == JsonObject . FALSE ) { return 0 ; } else { throw new IndexOutOf... |
public class DeleteTagsForDomainRequest { /** * A list of tag keys to delete .
* @ param tagsToDelete
* A list of tag keys to delete . */
public void setTagsToDelete ( java . util . Collection < String > tagsToDelete ) { } } | if ( tagsToDelete == null ) { this . tagsToDelete = null ; return ; } this . tagsToDelete = new com . amazonaws . internal . SdkInternalList < String > ( tagsToDelete ) ; |
public class ForkJoinTask { /** * Returns a new { @ code ForkJoinTask } that performs the { @ code call }
* method of the given { @ code Callable } as its action , and returns
* its result upon { @ link # join } , translating any checked exceptions
* encountered into { @ code RuntimeException } .
* @ param call... | return new AdaptedCallable < T > ( callable ) ; |
public class SarlCompiler { /** * Append the inline version for the given call .
* < p > This function supports the specific semantic of the inline expression that is defined into the SARL specification .
* @ param inlineAnnotation the inline annotation .
* @ param calledFeature the called feature .
* @ param r... | "checkstyle:cyclomaticcomplexity" , "checkstyle:npathcomplexity" , "checkstyle:nestedifdepth" } ) private void appendInlineFeatureCallForCastedExpression ( JvmAnnotationReference inlineAnnotation , JvmIdentifiableElement calledFeature , XExpression receiver , List < XExpression > arguments , EObject context , ITreeAppe... |
public class IoUtil { /** * Create a copy of an zip file without its empty directories .
* @ param inputFile
* @ param outputFile
* @ throws IOException */
public static void copyZipWithoutEmptyDirectories ( final File inputFile , final File outputFile ) throws IOException { } } | final byte [ ] buf = new byte [ 0x2000 ] ; final ZipFile inputZip = new ZipFile ( inputFile ) ; final ZipOutputStream outputStream = new ZipOutputStream ( new FileOutputStream ( outputFile ) ) ; try { // read a the entries of the input zip file and sort them
final Enumeration < ? extends ZipEntry > e = inputZip . entri... |
public class DataRequirement { /** * @ return { @ link # mustSupport } ( Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation . This does not mean that a value is required for this element , only that the con... | StringType t = new StringType ( ) ; if ( this . mustSupport == null ) this . mustSupport = new ArrayList < StringType > ( ) ; this . mustSupport . add ( t ) ; return t ; |
public class PoolBase { /** * Obtain connection from data source .
* @ return a Connection connection */
private Connection newConnection ( ) throws Exception { } } | final long start = currentTime ( ) ; Connection connection = null ; try { String username = config . getUsername ( ) ; String password = config . getPassword ( ) ; connection = ( username == null ) ? dataSource . getConnection ( ) : dataSource . getConnection ( username , password ) ; setupConnection ( connection ) ; l... |
public class Main { /** * Java function to calculate the number of lowercase letters in the provided string .
* Examples :
* count _ lowercase _ letters ( " abc " ) - > 3
* count _ lowercase _ letters ( " string " ) - > 6
* count _ lowercase _ letters ( " Python " ) - > 5
* @ param inputString The string in w... | int lowercaseCounter = 0 ; for ( int i = 0 ; i < inputString . length ( ) ; i ++ ) { if ( 'a' <= inputString . charAt ( i ) && inputString . charAt ( i ) <= 'z' ) { lowercaseCounter ++ ; } } return lowercaseCounter ; |
public class ServiceConfigUtil { /** * Copy of { @ link com . google . protobuf . util . Durations # normalizedDuration } . */
@ SuppressWarnings ( "NarrowingCompoundAssignment" ) private static long normalizedDuration ( long seconds , int nanos ) { } } | if ( nanos <= - NANOS_PER_SECOND || nanos >= NANOS_PER_SECOND ) { seconds = checkedAdd ( seconds , nanos / NANOS_PER_SECOND ) ; nanos %= NANOS_PER_SECOND ; } if ( seconds > 0 && nanos < 0 ) { nanos += NANOS_PER_SECOND ; // no overflow since nanos is negative ( and we ' re adding )
seconds -- ; // no overflow since seco... |
public class JobQueuesManager { /** * This is used to move a job from the waiting queue to the running queue . */
private void makeJobRunning ( JobInProgress job , JobSchedulingInfo oldInfo , QueueInfo qi ) { } } | // Removing of the job from job list is responsibility of the
// initialization poller .
// Add the job to the running queue
qi . addRunningJob ( job ) ; |
public class Node { /** * / * copyFileTo implementation with streams */
public long copyFileToImpl ( OutputStream dest , long skip ) throws FileNotFoundException , CopyFileToException { } } | long result ; try ( InputStream src = newInputStream ( ) ) { if ( skip ( src , skip ) ) { return 0 ; } result = getWorld ( ) . getBuffer ( ) . copy ( src , dest ) ; } catch ( FileNotFoundException e ) { throw e ; } catch ( IOException e ) { throw new CopyFileToException ( this , e ) ; } return result ; |
public class CustomizableDNSResolver { /** * { @ inheritDoc } */
@ Override public InetAddress [ ] resolve ( final String host ) throws UnknownHostException { } } | InetAddress [ ] resolvedAddresses = dnsMap . get ( host ) ; if ( LOG . isInfoEnabled ( ) ) { LOG . info ( "Resolving {} to {}" , host , Arrays . deepToString ( resolvedAddresses ) ) ; } if ( resolvedAddresses == null ) { resolvedAddresses = super . resolve ( host ) ; } return resolvedAddresses ; |
public class RandomUtil { /** * [ min , max ]
* @ param min
* @ param max
* @ return */
public static int random ( int min , int max ) { } } | if ( min < 0 || max < 0 ) { throw new RuntimeException ( "illegal argment, min and max must great then zero." ) ; } if ( min > max ) { int t = max ; max = min ; min = t ; } else if ( min == max ) { return min ; } Random random = new Random ( ) ; return random . nextInt ( max ) % ( max - min + 1 ) + min ; |
public class DefaultRouteContext { /** * Execute all routes that are flagged to run as finally . */
@ Override public void runFinallyRoutes ( ) { } } | while ( iterator . hasNext ( ) ) { Route route = iterator . next ( ) . getRoute ( ) ; if ( route . isRunAsFinally ( ) ) { try { handleRoute ( route ) ; } catch ( Exception e ) { log . error ( "Unexpected error in Finally Route" , e ) ; } } else if ( log . isDebugEnabled ( ) ) { if ( StringUtils . isNullOrEmpty ( route ... |
public class NettyTCPClient { /** * Method that is used to create the connection or { @ link Channel } to
* communicated with the remote jetserver .
* @ param pipelineFactory
* The factory used to create a pipeline of decoders and encoders
* for each { @ link Channel } that it creates on connection .
* @ para... | ChannelFuture future ; synchronized ( bootstrap ) { bootstrap . setPipelineFactory ( pipelineFactory ) ; future = bootstrap . connect ( serverAddress ) ; future . addListener ( new ChannelFutureListener ( ) { @ Override public void operationComplete ( ChannelFuture future ) throws Exception { if ( future . isSuccess ( ... |
public class BoxFolder { /** * Returns an iterable containing the items in this folder and specifies which child fields to retrieve from the
* API .
* @ param fields the fields to retrieve .
* @ return an iterable containing the items in this folder . */
public Iterable < BoxItem . Info > getChildren ( final Stri... | return new Iterable < BoxItem . Info > ( ) { @ Override public Iterator < BoxItem . Info > iterator ( ) { String queryString = new QueryStringBuilder ( ) . appendParam ( "fields" , fields ) . toString ( ) ; URL url = GET_ITEMS_URL . buildWithQuery ( getAPI ( ) . getBaseURL ( ) , queryString , getID ( ) ) ; return new B... |
public class SREsPreferencePage { /** * Sets the SREs to be displayed in this block .
* @ param sres SREs to be displayed */
protected void setSREs ( ISREInstall [ ] sres ) { } } | this . sreArray . clear ( ) ; for ( final ISREInstall sre : sres ) { this . sreArray . add ( sre ) ; } this . sresList . setInput ( this . sreArray ) ; refreshSREListUI ( ) ; updateUI ( ) ; |
public class Step { /** * Checks mandatory text field .
* @ param pageElement
* Is concerned element
* @ return true or false
* @ throws FailureException
* if the scenario encounters a functional error */
protected boolean checkMandatoryTextField ( PageElement pageElement ) throws FailureException { } } | WebElement inputText = null ; try { inputText = Context . waitUntil ( ExpectedConditions . presenceOfElementLocated ( Utilities . getLocator ( pageElement ) ) ) ; } catch ( final Exception e ) { new Result . Failure < > ( pageElement , Messages . getMessage ( Messages . FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT ) , true , pa... |
public class GeometryExpression { /** * Exports this geometric object to a specific Well - known Text Representation of Geometry .
* @ return text representation */
public StringExpression asText ( ) { } } | if ( text == null ) { text = Expressions . stringOperation ( SpatialOps . AS_TEXT , mixin ) ; } return text ; |
public class InboundEnvelopeDecoder { /** * Copies min ( from . readableBytes ( ) , to . remaining ( ) bytes from Nettys ByteBuf to the Java NIO ByteBuffer . */
private void copy ( ByteBuf src , ByteBuffer dst ) { } } | // This branch is necessary , because an Exception is thrown if the
// destination buffer has more remaining ( writable ) bytes than
// currently readable from the Netty ByteBuf source .
if ( src . isReadable ( ) ) { if ( src . readableBytes ( ) < dst . remaining ( ) ) { int oldLimit = dst . limit ( ) ; dst . limit ( d... |
public class CmsForm { /** * Adds a form field to the form . < p >
* @ param fieldGroup the form field group key
* @ param formField the form field which should be added */
public void addField ( String fieldGroup , final I_CmsFormField formField ) { } } | initializeFormFieldWidget ( formField ) ; m_fields . put ( formField . getId ( ) , formField ) ; String modelId = formField . getModelId ( ) ; m_fieldsByModelId . put ( modelId , formField ) ; formField . getLayoutData ( ) . put ( "group" , fieldGroup ) ; m_fieldsByGroup . put ( fieldGroup , formField ) ; // m _ widget... |
public class CssIdentifierEscapeUtil { /** * Perform an escape operation , based on char [ ] , according to the specified level and type . */
static void escape ( final char [ ] text , final int offset , final int len , final Writer writer , final CssIdentifierEscapeType escapeType , final CssIdentifierEscapeLevel esca... | if ( text == null || text . length == 0 ) { return ; } final int level = escapeLevel . getEscapeLevel ( ) ; final boolean useBackslashEscapes = escapeType . getUseBackslashEscapes ( ) ; final boolean useCompactHexa = escapeType . getUseCompactHexa ( ) ; final int max = ( offset + len ) ; int readOffset = offset ; for (... |
public class BritishCutoverDate { /** * Obtains a { @ code BritishCutoverDate } representing a date in the British Cutover calendar
* system from the proleptic - year , month - of - year and day - of - month fields .
* This returns a { @ code BritishCutoverDate } with the specified fields .
* Dates in the middle ... | return BritishCutoverDate . create ( prolepticYear , month , dayOfMonth ) ; |
public class UpdateManager { /** * Updates a plugin id to given version or to latest version if { @ code version = = null } .
* @ param id the id of plugin to update
* @ param version the version to update to , on SemVer format , or null for latest
* @ return true if update successful
* @ exception PluginExcept... | if ( pluginManager . getPlugin ( id ) == null ) { throw new PluginException ( "Plugin {} cannot be updated since it is not installed" , id ) ; } PluginInfo pluginInfo = getPluginsMap ( ) . get ( id ) ; if ( pluginInfo == null ) { throw new PluginException ( "Plugin {} does not exist in any repository" , id ) ; } if ( !... |
public class FileUtil { /** * 获得相对子路径
* 栗子 :
* < pre >
* dirPath : d : / aaa / bbb filePath : d : / aaa / bbb / ccc = 》 ccc
* dirPath : d : / Aaa / bbb filePath : d : / aaa / bbb / ccc . txt = 》 ccc . txt
* < / pre >
* @ param rootDir 绝对父路径
* @ param file 文件
* @ return 相对子路径 */
public static String subP... | try { return subPath ( rootDir , file . getCanonicalPath ( ) ) ; } catch ( IOException e ) { throw new IORuntimeException ( e ) ; } |
public class druidGLexer { /** * $ ANTLR start " DATE _ HOUR _ MIN _ SEC _ SUB " */
public final void mDATE_HOUR_MIN_SEC_SUB ( ) throws RecognitionException { } } | try { int _type = DATE_HOUR_MIN_SEC_SUB ; int _channel = DEFAULT_TOKEN_CHANNEL ; // druidG . g : 692:2 : ( DATE _ HOUR _ MIN _ SEC ' . ' NUM NUM NUM )
// druidG . g : 692:5 : DATE _ HOUR _ MIN _ SEC ' . ' NUM NUM NUM
{ mDATE_HOUR_MIN_SEC ( ) ; match ( '.' ) ; mNUM ( ) ; mNUM ( ) ; mNUM ( ) ; } state . type = _type ; st... |
public class JsonConvert { /** * 返回非null的值是由String 、 ArrayList 、 HashMap任意组合的对象 */
public < V > V convertFrom ( final String text ) { } } | if ( text == null ) return null ; return ( V ) convertFrom ( Utility . charArray ( text ) ) ; |
public class RMItoIDL { /** * Returns a String with the ' mangling ' required for idl names that
* contain special characters , including ' _ ' , ' $ ' , and all characters
* not in Latin - 1 . < p >
* From the CORBA spec : For Java identifiers that contain illegal OMG
* IDL identifier characters such as ' $ ' ... | for ( int i = 0 ; i < idlName . length ( ) ; ++ i ) { char c = idlName . charAt ( i ) ; if ( c == '$' || c > 255 ) { idlName . replace ( i , i + 1 , "U" ) ; String hex = Integer . toHexString ( c ) . toUpperCase ( ) ; int numHex = hex . length ( ) ; int numZero = 4 - numHex ; while ( numZero > 0 ) { idlName . insert ( ... |
public class CrawlExample { /** * Run this method to start the crawl .
* @ throws IOException
* when the output folder cannot be created or emptied . */
public static void main ( String [ ] args ) throws IOException { } } | CrawljaxConfigurationBuilder builder = CrawljaxConfiguration . builderFor ( URL ) ; builder . crawlRules ( ) . setFormFillMode ( FormFillMode . RANDOM ) ; // click these elements
builder . crawlRules ( ) . clickDefaultElements ( ) ; /* builder . crawlRules ( ) . click ( " A " ) ;
builder . crawlRules ( ) . click ( " ... |
public class Constraint { /** * Generates the column definitions for a table . */
private static void getColumnList ( Table t , int [ ] col , int len , StringBuffer a ) { } } | a . append ( '(' ) ; for ( int i = 0 ; i < len ; i ++ ) { a . append ( t . getColumn ( col [ i ] ) . getName ( ) . statementName ) ; if ( i < len - 1 ) { a . append ( ',' ) ; } } a . append ( ')' ) ; |
public class BitmapBuilder { /** * Builds a list from the given bit map .
* The list will contain values of 0 or 1s
* @ param list
* @ return */
public static int [ ] mapToList ( int [ ] bitMap ) { } } | int [ ] list = new int [ ( int ) ( bitMap . length * WORD_LENGTH ) ] ; Arrays . fill ( list , 0 ) ; int j = - 1 ; for ( int i = 0 ; i < list . length ; i ++ ) { if ( i % WORD_LENGTH == 0 ) { j ++ ; } list [ i ] = ( bitMap [ j ] & ( 1 << ( ( WORD_LENGTH - 1 ) - ( i % WORD_LENGTH ) ) ) ) == 0 ? 0 : 1 ; } return list ; |
public class ApiOvh { /** * helper
* @ return
* @ throws IOException */
public List < String > listDomHosting ( ) throws IOException { } } | ArrayList < String > doms = new ArrayList < String > ( ) ; HashSet < String > d = new HashSet < String > ( this . domain . GET ( null ) ) ; for ( String s : this . hostingweb . GET ( ) ) if ( d . contains ( s ) ) doms . add ( s ) ; return doms ; |
public class MapKeyLoaderUtil { /** * Returns the role for the map key loader based on the passed parameters .
* The partition owner of the map name partition is the sender .
* The first replica of the map name partition is the sender backup .
* Other partition owners are receivers and other partition replicas do... | if ( isMapNamePartition ) { if ( isPartitionOwner ) { // map - name partition owner is the SENDER
return MapKeyLoader . Role . SENDER ; } else { if ( isMapNamePartitionFirstReplica ) { // first replica of the map - name partition is the SENDER _ BACKUP
return MapKeyLoader . Role . SENDER_BACKUP ; } else { // other repl... |
public class Converters { /** * Registers the { @ link Instant } converter .
* @ param builder The GSON builder to register the converter with .
* @ return A reference to { @ code builder } . */
public static GsonBuilder registerInstant ( GsonBuilder builder ) { } } | if ( builder == null ) { throw new NullPointerException ( "builder cannot be null" ) ; } builder . registerTypeAdapter ( INSTANT_TYPE , new InstantConverter ( ) ) ; return builder ; |
public class MapDictionary { /** * @ see java . util . Map # keySet ( ) */
@ Override public Set < K > keySet ( ) { } } | final Set < K > localSet = this . localMap . keySet ( ) ; if ( isReadyOnly ( ) ) return Collections . unmodifiableSet ( localSet ) ; return localSet ; |
public class WTree { /** * Check if custom nodes that are expanded need their child nodes added from the model . */
protected void checkExpandedCustomNodes ( ) { } } | TreeItemIdNode custom = getCustomTree ( ) ; if ( custom == null ) { return ; } // Get the expanded rows
Set < String > expanded = getExpandedRows ( ) ; // Process Top Level
for ( TreeItemIdNode node : custom . getChildren ( ) ) { processCheckExpandedCustomNodes ( node , expanded ) ; } |
public class CPDefinitionLocalServiceUtil { /** * Creates a new cp definition with the primary key . Does not add the cp definition to the database .
* @ param CPDefinitionId the primary key for the new cp definition
* @ return the new cp definition */
public static com . liferay . commerce . product . model . CPDe... | return getService ( ) . createCPDefinition ( CPDefinitionId ) ; |
public class StatementServiceImp { /** * / * ( non - Javadoc )
* @ see com . popbill . api . StatementService # update ( java . lang . String , java . number . Integer , java . lang . String , com . popbill . api . statement . Statement ) */
@ Override public Response update ( String CorpNum , int ItemCode , String M... | if ( MgtKey == null || MgtKey . isEmpty ( ) ) throw new PopbillException ( - 99999999 , "관리번호가 입력되지 않았습니다." ) ; return update ( CorpNum , ItemCode , MgtKey , statement , null ) ; |
public class AbstractMemberProducer { /** * Gets the receiver of the product . The two creational contexts need to be separated because the receiver only serves the product
* creation ( it is not a dependent instance of the created instance ) .
* @ param productCreationalContext the creational context of the produc... | // This is a bit dangerous , as it means that producer methods can end up
// executing on partially constructed instances . Also , it ' s not required
// by the spec . . .
if ( getAnnotated ( ) . isStatic ( ) ) { return null ; } else { if ( productCreationalContext instanceof WeldCreationalContext < ? > ) { WeldCreatio... |
public class AWSLambdaClient { /** * Creates an < a href = " https : / / docs . aws . amazon . com / lambda / latest / dg / configuration - layers . html " > AWS Lambda layer < / a >
* from a ZIP archive . Each time you call < code > PublishLayerVersion < / code > with the same version name , a new version
* is cre... | request = beforeClientExecution ( request ) ; return executePublishLayerVersion ( request ) ; |
public class CleverTapAPI { /** * Push */
private String getCachedFCMToken ( ) { } } | SharedPreferences prefs = getPreferences ( ) ; return ( prefs == null ) ? null : getStringFromPrefs ( Constants . FCM_PROPERTY_REG_ID , null ) ; |
public class TypeUtils { /** * Sets one { @ link io . sundr . codegen . model . TypeDef } as an interface of an other .
* @ param base The base type .
* @ param superClass The super type .
* @ return The updated type definition . */
public static TypeDef typeImplements ( TypeDef base , ClassRef ... superClass ) {... | return new TypeDefBuilder ( base ) . withImplementsList ( superClass ) . build ( ) ; |
public class ApiOvhOrder { /** * Create order
* REST : POST / order / cdn / webstorage / { serviceName } / traffic
* @ param bandwidth [ required ] Traffic in TB that will be added to the cdn . webstorage service
* @ param serviceName [ required ] The internal name of your CDN Static offer */
public OvhOrder cdn_... | String qPath = "/order/cdn/webstorage/{serviceName}/traffic" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "bandwidth" , bandwidth ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOr... |
public class FileHandlerResult { /** * Returns the instance by it ' s name or throws an exception otherwise .
* @ param name
* Unique name or NULL .
* @ return Enumeration instance or NULL ( if argument name was NULL ) . */
public static FileHandlerResult fromName ( final String name ) { } } | if ( name == null ) { return null ; } for ( final FileHandlerResult result : INSTANCES ) { if ( result . name . equals ( name ) ) { return result ; } } throw new IllegalArgumentException ( "Unknown name: " + name ) ; |
public class SQLTool { /** * region select */
public SQLTool select ( String tableName , Collection < String > columns ) { } } | this . type = SQLType . QUERY ; updateTableName ( tableName ) ; for ( String column : columns ) { this . selectSqlCondition . appendSql ( column ) ; } return this ; |
public class Vector { /** * Gets the magnitude of the vector squared .
* @ return the magnitude */
public double lengthSquared ( ) { } } | return NumberConversions . square ( x ) + NumberConversions . square ( y ) + NumberConversions . square ( z ) ; |
public class PoolManager { /** * This method during server shut down will cleanup
* and destroy connection nicely .
* @ throws ResourceException
* @ concurrency concurrent */
public void serverShutDown ( ) throws ResourceException { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( this , tc , "serverShutDown" ) ; } connectionPoolShutDown = true ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "Shutting down pool manager connections in free pool " ) ; Tr... |
public class IPUtil { /** * 从IPv4String转换为InetAddress .
* IpString如果确定ipv4 , 使用本方法减少字符分析消耗 .
* 先字符串传换为byte [ ] 再调getByAddress ( byte [ ] ) , 避免了调用getByName ( ip ) 可能引起的DNS访问 . */
public static Inet4Address fromIpv4String ( String address ) { } } | byte [ ] bytes = ip4StringToBytes ( address ) ; if ( bytes == null ) { return null ; } else { try { return ( Inet4Address ) Inet4Address . getByAddress ( bytes ) ; } catch ( UnknownHostException e ) { throw new AssertionError ( e ) ; } } |
public class Archive { private void collectFiles ( File dir , String dirName ) { } } | if ( ! dirName . equals ( "" ) && ! dirName . endsWith ( "/" ) ) { dirName = dirName + "/" ; } File files [ ] = dir . listFiles ( ) ; assert files != null ; for ( int i = 0 ; i < files . length ; i ++ ) { // issue 256 : ignore ' . DS _ Store ' , ' . _ DS _ Store ' , ' Thumbs . db ' and ' ehthumbs . db ' files
if ( file... |
public class Logging { /** * Adds a logging target to the specified logger ( i . e . device ) .
* @ param logger A lo4j logger to which the target will be added
* @ param ttype The target type
* @ param tname The target name */
public void add_logging_target ( Logger logger , String ttype , String tname ) throws ... | add_logging_target ( logger , ttype + LOGGING_SEPARATOR + tname ) ; |
public class LayerDrawable { /** * Looks for a layer with the given ID and returns its { @ link Drawable } .
* If multiple layers are found for the given ID , returns the { @ link Drawable } for the matching
* layer at the highest index .
* @ param id The layer ID to search for .
* @ return The { @ link Drawabl... | final ChildDrawable [ ] layers = mLayerState . mChildren ; for ( int i = mLayerState . mNum - 1 ; i >= 0 ; i -- ) { if ( layers [ i ] . mId == id ) { return layers [ i ] . mDrawable ; } } return null ; |
public class OperationMenu { /** * Show the OperationMenu based on the selected node .
* @ param node The selected node .
* @ param x The x position of the selection .
* @ param y The y position of the selection . */
public void show ( ManagementModelNode node , int x , int y ) { } } | removeAll ( ) ; addExploreOption ( node ) ; String addressPath = node . addressPath ( ) ; try { ModelNode opNames = executor . doCommand ( addressPath + ":read-operation-names" ) ; if ( opNames . get ( "outcome" ) . asString ( ) . equals ( "failed" ) ) return ; for ( ModelNode name : opNames . get ( "result" ) . asList... |
public class CmsResourceTypesTable { /** * Opens the edit dialog . < p >
* @ param typeName type to be edited . */
void openEditDialog ( String typeName ) { } } | try { Window window = CmsBasicDialog . prepareWindow ( DialogWidth . max ) ; window . setContent ( new CmsEditResourceTypeDialog ( window , m_app , OpenCms . getResourceManager ( ) . getResourceType ( typeName ) ) ) ; window . setCaption ( CmsVaadinUtils . getMessageText ( Messages . GUI_RESOURCETYPE_EDIT_WINDOW_CAPTIO... |
public class TemplateItemInfo { /** * create a database node representing a template item information
* @ param graphDatabase
* neo4j database to create the node in
* @ param itemInfo
* template item information to be represented by the node
* @ return neo4j node representing the template item information pas... | final org . neo4j . graphdb . Node itemNode = graphDatabase . createNode ( ) ; itemNode . setProperty ( TemplateXMLFields . ITEM_NAME , itemInfo . getName ( ) ) ; return itemNode ; |
public class WorldGame { /** * Save world to the specified file .
* @ param media The output media .
* @ throws LionEngineException If error on saving to file . */
public final void saveToFile ( Media media ) { } } | try ( FileWriting writing = new FileWriting ( media ) ) { saving ( writing ) ; } catch ( final IOException exception ) { throw new LionEngineException ( exception , media , "Error on saving to file !" ) ; } |
public class QueueData { /** * This method will add a data slice to the list of slices for this message .
* @ param bufferContainingSlice
* @ param last */
public synchronized void addSlice ( CommsByteBuffer bufferContainingSlice , boolean last ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "addSlice" , new Object [ ] { bufferContainingSlice , last } ) ; slices . add ( bufferContainingSlice . getDataSlice ( ) ) ; // If this is the last slice , calculate the message length
if ( last ) { for ( DataSlice sl... |
public class DemoActivity { /** * Shows a Snackbar on the bottom of the layout
* @ param message the text to show . */
@ SuppressWarnings ( "ConstantConditions" ) private void showResult ( String message ) { } } | Snackbar . make ( rootLayout , message , Snackbar . LENGTH_LONG ) . show ( ) ; |
public class SubqueryPlanner { /** * Exists is modeled as :
* < pre >
* - Project ( $ 0 > 0)
* - Aggregation ( COUNT ( * ) )
* - Limit ( 1)
* - - subquery
* < / pre > */
private PlanBuilder appendExistSubqueryApplyNode ( PlanBuilder subPlan , ExistsPredicate existsPredicate , boolean correlationAllowed ) { ... | if ( subPlan . canTranslate ( existsPredicate ) ) { // given subquery is already appended
return subPlan ; } PlanBuilder subqueryPlan = createPlanBuilder ( existsPredicate . getSubquery ( ) ) ; PlanNode subqueryPlanRoot = subqueryPlan . getRoot ( ) ; if ( isAggregationWithEmptyGroupBy ( subqueryPlanRoot ) ) { subPlan .... |
public class CloudWatchEncryptionMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CloudWatchEncryption cloudWatchEncryption , ProtocolMarshaller protocolMarshaller ) { } } | if ( cloudWatchEncryption == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( cloudWatchEncryption . getCloudWatchEncryptionMode ( ) , CLOUDWATCHENCRYPTIONMODE_BINDING ) ; protocolMarshaller . marshall ( cloudWatchEncryption . getKmsKeyArn ( ... |
public class JCellCheckBox { /** * Creates new JCellButton */
public void init ( String text ) { } } | this . setOpaque ( true ) ; this . setHorizontalTextPosition ( JToggleButton . LEFT ) ; this . setAlignmentX ( JComponent . CENTER_ALIGNMENT ) ; |
public class HttpUtils { /** * a fixed size of 35 */
public static byte [ ] computeMultipartBoundary ( ) { } } | ThreadLocalRandom random = ThreadLocalRandom . current ( ) ; byte [ ] bytes = new byte [ 35 ] ; for ( int i = 0 ; i < bytes . length ; i ++ ) { bytes [ i ] = MULTIPART_CHARS [ random . nextInt ( MULTIPART_CHARS . length ) ] ; } return bytes ; |
public class SEDProcessor { /** * Returns the index of the next delimiter in the given sed script . The
* character at { @ code indexOfPreviousDelimiter } is taken as delimiter . The
* method handles escaped delimiters and returns - 1 if no further delimiter
* is found .
* @ param script
* the script to analy... | if ( indexOfPreviousDelimiter < 0 || script . length ( ) <= indexOfPreviousDelimiter ) { return - 1 ; } final char delim = script . charAt ( indexOfPreviousDelimiter ) ; if ( delim == '\\' ) { throw new IllegalArgumentException ( "invalid delimiter '\\' in sed script: " + script ) ; } int index = indexOfPreviousDelimit... |
public class OptionHandler { /** * Get string representing usage for this option , of the form " name metaval " or " name = metaval ,
* e . g . " - - foo VALUE " or " - - foo = VALUE "
* @ param rb ResourceBundle to get localized version of meta string
* @ param properties
* Affects the formatting behaviours . ... | String str = option . isArgument ( ) ? "" : option . toString ( ) ; String meta = getMetaVariable ( rb ) ; if ( meta != null ) { if ( str . length ( ) > 0 ) { str += properties . getOptionValueDelimiter ( ) ; } str += meta ; } return str ; |
public class SM2Engine { /** * 加密
* @ param in 数据
* @ param inOff 位置
* @ param inLen 长度
* @ return 密文 */
private byte [ ] encrypt ( byte [ ] in , int inOff , int inLen ) { } } | // 加密数据
byte [ ] c2 = new byte [ inLen ] ; System . arraycopy ( in , inOff , c2 , 0 , c2 . length ) ; final ECMultiplier multiplier = createBasePointMultiplier ( ) ; byte [ ] c1 ; ECPoint kPB ; BigInteger k ; do { k = nextK ( ) ; // 产生随机数计算出曲线点C1
c1 = multiplier . multiply ( ecParams . getG ( ) , k ) . normalize ( ) . ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.