question
stringlengths
33
1.59k
target
stringlengths
33
1.58k
public short getFormat ( String format , boolean createIfNotFound ) { for ( FormatRecord r : formats ) { if ( r . getFormatString ( ) . equals ( format ) ) { return ( short ) r . getIndexCode ( ) ; } } if ( createIfNotFound ) { return ( short ) createFormat ( format ) ; } return - 1 ; }
public short GetFormat ( String format , bool CreateIfNotFound ) { IEnumerator iterator ; for ( iterator = formats . GetEnumerator ( ) ; iterator . MoveNext ( ) ; ) { FormatRecord r = ( FormatRecord ) iterator . Current ; if ( r . FormatString . Equals ( format ) ) { return ( short ) r . IndexCode ; } } if ( CreateIfNo...
public SpanNearQuery build ( ) { return new SpanNearQuery ( clauses . toArray ( new SpanQuery [ clauses . size ( ) ] ) , slop , ordered ) ; }
public CompositeReaderContext Build ( ) { return ( CompositeReaderContext ) Build ( null , reader , 0 , 0 ) ; }
public int getRowCellBlockSize ( int startRow , int endRow ) { int result = 0 ; for ( int rowIx = startRow ; rowIx <= endRow && rowIx < records . length ; rowIx ++ ) { result += getRowSerializedSize ( records [ rowIx ] ) ; } return result ; }
public int GetRowCellBlockSize ( int startRow , int endRow ) { MyEnumerator itr = new MyEnumerator ( ref records , startRow , endRow ) ; int size = 0 ; while ( itr . MoveNext ( ) ) { CellValueRecordInterface cell = ( CellValueRecordInterface ) itr . Current ; int row = cell . Row ; if ( row > endRow ) break ; if ( ( ro...
public final boolean incrementToken ( ) { if ( ! it . hasNext ( ) ) { return false ; } AttributeSource . State state = it . next ( ) ; restoreState ( state ) ; return true ; }
public override sealed bool IncrementToken ( ) { if ( it == null ) { it = cachedStates . GetEnumerator ( ) ; } if ( ! it . MoveNext ( ) ) return false ; var state = it . Current ; RestoreState ( state ) ; return true ; }
public DeleteTemplateResult deleteTemplate ( DeleteTemplateRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteTemplate ( request ) ; }
public virtual DeleteTemplateResponse DeleteTemplate ( DeleteTemplateRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteTemplateRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteTemplateResponseUnmarshaller . Instance ; return Invoke < DeleteTemplateRespons...
public StartFaceSearchResult startFaceSearch ( StartFaceSearchRequest request ) { request = beforeClientExecution ( request ) ; return executeStartFaceSearch ( request ) ; }
public virtual StartFaceSearchResponse StartFaceSearch ( StartFaceSearchRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = StartFaceSearchRequestMarshaller . Instance ; options . ResponseUnmarshaller = StartFaceSearchResponseUnmarshaller . Instance ; return Invoke < StartFaceSearchR...
public static int formatBase10 ( final byte [ ] b , int o , int value ) { if ( value == 0 ) { b [ -- o ] = '0' ; return o ; } final boolean isneg = value < 0 ; if ( isneg ) value = - value ; while ( value != 0 ) { b [ -- o ] = base10byte [ value % 10 ] ; value /= 10 ; } if ( isneg ) b [ -- o ] = '-' ; return o ; }
public static int FormatBase10 ( byte [ ] b , int o , int value ) { if ( value == 0 ) { b [ -- o ] = ( byte ) ( '0' ) ; return o ; } bool isneg = value < 0 ; if ( isneg ) { value = - value ; } while ( value != 0 ) { b [ -- o ] = base10byte [ value % 10 ] ; value /= 10 ; } if ( isneg ) { b [ -- o ] = ( byte ) ( '-' ) ; ...
public String toString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( "[SINDEX]\n" ) ; buffer . append ( " .index = " ) . append ( "0x" ) . append ( HexDump . toHex ( getIndex ( ) ) ) . append ( " (" ) . append ( getIndex ( ) ) . append ( " )" ) ; buffer . append ( System . get...
public override String ToString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( "[SINDEX]\n" ) ; buffer . Append ( " .index = " ) . Append ( "0x" ) . Append ( HexDump . ToHex ( Index ) ) . Append ( " (" ) . Append ( Index ) . Append ( " )" ) ; buffer . Append ( Environment . New...
public DescribeDBSecurityGroupsResult describeDBSecurityGroups ( DescribeDBSecurityGroupsRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeDBSecurityGroups ( request ) ; }
public virtual DescribeDBSecurityGroupsResponse DescribeDBSecurityGroups ( DescribeDBSecurityGroupsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeDBSecurityGroupsRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeDBSecurityGroupsResponseUnmarshaller ...
public DeleteTrafficMirrorSessionResult deleteTrafficMirrorSession ( DeleteTrafficMirrorSessionRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteTrafficMirrorSession ( request ) ; }
public virtual DeleteTrafficMirrorSessionResponse DeleteTrafficMirrorSession ( DeleteTrafficMirrorSessionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteTrafficMirrorSessionRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteTrafficMirrorSessionResponseUnm...
public void stopWalk ( ) { final int cur = ptr ; final int cnt = cache . getEntryCount ( ) ; if ( cur < cnt ) builder . keep ( cur , cnt - cur ) ; }
public override void StopWalk ( ) { int cur = ptr ; int cnt = cache . GetEntryCount ( ) ; if ( cur < cnt ) { builder . Keep ( cur , cnt - cur ) ; } }
public ExpandedDouble normaliseBaseTwo ( ) { MutableFPNumber cc = new MutableFPNumber ( composeFrac ( ) , 39 ) ; cc . multiplyByPowerOfTen ( _relativeDecimalExponent ) ; cc . normalise64bit ( ) ; return cc . createExpandedDouble ( ) ; }
public ExpandedDouble NormaliseBaseTwo ( ) { MutableFPNumber cc = new MutableFPNumber ( ComposeFrac ( ) , 39 ) ; cc . multiplyByPowerOfTen ( _relativeDecimalExponent ) ; cc . Normalise64bit ( ) ; return cc . CreateExpandedDouble ( ) ; }
public PutLexiconResult putLexicon ( PutLexiconRequest request ) { request = beforeClientExecution ( request ) ; return executePutLexicon ( request ) ; }
public virtual PutLexiconResponse PutLexicon ( PutLexiconRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = PutLexiconRequestMarshaller . Instance ; options . ResponseUnmarshaller = PutLexiconResponseUnmarshaller . Instance ; return Invoke < PutLexiconResponse > ( request , options ...
public int [ ] init ( ) { if ( perField . postingsArray == null ) { perField . postingsArray = perField . createPostingsArray ( 2 ) ; perField . newPostingsArray ( ) ; bytesUsed . addAndGet ( perField . postingsArray . size * perField . postingsArray . bytesPerPosting ( ) ) ; } return perField . postingsArray . textSta...
public override int [ ] Init ( ) { if ( perField . postingsArray == null ) { perField . postingsArray = perField . consumer . CreatePostingsArray ( 2 ) ; bytesUsed . AddAndGet ( perField . postingsArray . size * perField . postingsArray . BytesPerPosting ( ) ) ; } return perField . postingsArray . textStarts ; }
public DirCacheEntry getDirCacheEntry ( ) { return entry ; }
public virtual DirCacheEntry GetDirCacheEntry ( ) { return entry ; }
public boolean include ( TreeWalk walker ) { return matchFilter ( walker ) <= 0 ; }
public override bool Include ( TreeWalk walker ) { return walker . IsPathPrefix ( pathRaw , pathRaw . Length ) == 0 ; }
public void open ( String closer ) { if ( closer == null ) { throw new NullPointerException ( "closer == null" ) ; } if ( this == NOOP || ! ENABLED ) { return ; } String message = "Explicit termination method '" + closer + "' not called" ; allocationSite = new Throwable ( message ) ; }
public void open ( string closer ) { if ( closer == null ) { throw new System . ArgumentNullException ( "closer == null" ) ; } if ( this == NOOP || ! ENABLED ) { return ; } string message = "Explicit termination method '" + closer + "' not called" ; allocationSite = new System . Exception ( message ) ; }
public List < ParseTreeMatch > findAll ( ParseTree tree , String xpath ) { Collection < ParseTree > subtrees = XPath . findAll ( tree , xpath , matcher . getParser ( ) ) ; List < ParseTreeMatch > matches = new ArrayList < ParseTreeMatch > ( ) ; for ( ParseTree t : subtrees ) { ParseTreeMatch match = match ( t ) ; if ( ...
public virtual IList < ParseTreeMatch > FindAll ( IParseTree tree , string xpath ) { ICollection < IParseTree > subtrees = XPath . FindAll ( tree , xpath , matcher . Parser ) ; IList < ParseTreeMatch > matches = new List < ParseTreeMatch > ( ) ; foreach ( IParseTree t in subtrees ) { ParseTreeMatch match = Match ( t ) ...
public static boolean hasSLLConflictTerminatingPrediction ( PredictionMode mode , ATNConfigSet configs ) { if ( allConfigsInRuleStopStates ( configs ) ) { return true ; } if ( mode == PredictionMode . SLL ) { if ( configs . hasSemanticContext ) { ATNConfigSet dup = new ATNConfigSet ( ) ; for ( ATNConfig c : configs ) {...
public static bool HasSLLConflictTerminatingPrediction ( PredictionMode mode , ATNConfigSet configSet ) { if ( AllConfigsInRuleStopStates ( configSet . configs ) ) { return true ; } if ( mode == PredictionMode . SLL ) { if ( configSet . hasSemanticContext ) { ATNConfigSet dup = new ATNConfigSet ( ) ; foreach ( ATNConfi...
public DescribeUpdateActionsResult describeUpdateActions ( DescribeUpdateActionsRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeUpdateActions ( request ) ; }
public virtual DescribeUpdateActionsResponse DescribeUpdateActions ( DescribeUpdateActionsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeUpdateActionsRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeUpdateActionsResponseUnmarshaller . Instance ; re...
public HashMap ( ) { table = ( HashMapEntry < K , V > [ ] ) EMPTY_TABLE ; threshold = - 1 ; }
public HashMap ( ) { table = ( java . util . HashMap . HashMapEntry < K , V > [ ] ) EMPTY_TABLE ; threshold = - 1 ; }
public Trie optimize ( Trie orig ) { List < CharSequence > cmds = orig . cmds ; List < Row > rows = new ArrayList < > ( ) ; List < Row > orows = orig . rows ; int remap [ ] = new int [ orows . size ( ) ] ; Arrays . fill ( remap , - 1 ) ; rows = removeGaps ( orig . root , rows , new ArrayList < Row > ( ) , remap ) ; ret...
public virtual Trie Optimize ( Trie orig ) { IList < string > cmds = orig . cmds ; IList < Row > rows = new List < Row > ( ) ; IList < Row > orows = orig . rows ; int [ ] remap = new int [ orows . Count ] ; Arrays . Fill ( remap , - 1 ) ; rows = RemoveGaps ( orig . root , rows , new List < Row > ( ) , remap ) ; return ...
public CreateLifecyclePolicyResult createLifecyclePolicy ( CreateLifecyclePolicyRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateLifecyclePolicy ( request ) ; }
public virtual CreateLifecyclePolicyResponse CreateLifecyclePolicy ( CreateLifecyclePolicyRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateLifecyclePolicyRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateLifecyclePolicyResponseUnmarshaller . Instance ; re...
public void writeLong ( long v ) { writeInt ( ( int ) ( v ) ) ; writeInt ( ( int ) ( v > > 32 ) ) ; }
public void WriteLong ( long v ) { WriteInt ( ( int ) ( v > > 0 ) ) ; WriteInt ( ( int ) ( v > > 32 ) ) ; }
public void set ( char [ ] arr , int end ) { this . buf = arr ; this . len = end ; }
public virtual void Set ( char [ ] arr , int end ) { this . m_buf = arr ; this . m_len = end ; }
public HMMChineseTokenizerFactory ( Map < String , String > args ) { super ( args ) ; if ( ! args . isEmpty ( ) ) { throw new IllegalArgumentException ( "Unknown parameters: " + args ) ; } }
public HMMChineseTokenizerFactory ( IDictionary < string , string > args ) : base ( args ) { if ( args . Any ( ) ) { throw new ArgumentException ( "Unknown parameters: " + args ) ; } }
public String toString ( ) { return getClass ( ) . getSimpleName ( ) + " field:" + fieldName + " ctx=" + ctx ; }
public override string ToString ( ) { return GetType ( ) . Name + " field:" + fieldName + " ctx=" + m_ctx ; }
public ResendContactReachabilityEmailResult resendContactReachabilityEmail ( ResendContactReachabilityEmailRequest request ) { request = beforeClientExecution ( request ) ; return executeResendContactReachabilityEmail ( request ) ; }
public virtual ResendContactReachabilityEmailResponse ResendContactReachabilityEmail ( ResendContactReachabilityEmailRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ResendContactReachabilityEmailRequestMarshaller . Instance ; options . ResponseUnmarshaller = ResendContactReachabi...
public GetApiKeyResult getApiKey ( GetApiKeyRequest request ) { request = beforeClientExecution ( request ) ; return executeGetApiKey ( request ) ; }
public virtual GetApiKeyResponse GetApiKey ( GetApiKeyRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetApiKeyRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetApiKeyResponseUnmarshaller . Instance ; return Invoke < GetApiKeyResponse > ( request , options ) ; }
public void advance ( ) { previousValue = value ; if ( value == 1 ) { value = minShingleSize ; } else if ( value == maxShingleSize ) { reset ( ) ; } else { ++ value ; } }
public virtual void Advance ( ) { previousValue = value ; if ( value == 1 ) { value = outerInstance . minShingleSize ; } else if ( value == outerInstance . maxShingleSize ) { Reset ( ) ; } else { ++ value ; } }
public int addConditionalFormatting ( CellRangeAddress [ ] regions , ConditionalFormattingRule rule1 ) { return addConditionalFormatting ( regions , ( HSSFConditionalFormattingRule ) rule1 ) ; }
public int AddConditionalFormatting ( CellRangeAddress [ ] regions , HSSFConditionalFormattingRule rule1 ) { return AddConditionalFormatting ( regions , rule1 == null ? null : new HSSFConditionalFormattingRule [ ] { rule1 } ) ; }
public RebaseCommand setUpstream ( RevCommit upstream ) { this . upstreamCommit = upstream ; this . upstreamCommitName = upstream . name ( ) ; return this ; }
public virtual NGit . Api . RebaseCommand SetUpstream ( RevCommit upstream ) { this . upstreamCommit = upstream ; this . upstreamCommitName = upstream . Name ; return this ; }
public GetDocumentTextDetectionResult getDocumentTextDetection ( GetDocumentTextDetectionRequest request ) { request = beforeClientExecution ( request ) ; return executeGetDocumentTextDetection ( request ) ; }
public virtual GetDocumentTextDetectionResponse GetDocumentTextDetection ( GetDocumentTextDetectionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetDocumentTextDetectionRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetDocumentTextDetectionResponseUnmarshaller ...
public CreateDBSecurityGroupRequest ( String dBSecurityGroupName , String dBSecurityGroupDescription ) { setDBSecurityGroupName ( dBSecurityGroupName ) ; setDBSecurityGroupDescription ( dBSecurityGroupDescription ) ; }
public CreateDBSecurityGroupRequest ( string dbSecurityGroupName , string dbSecurityGroupDescription ) { _dbSecurityGroupName = dbSecurityGroupName ; _dbSecurityGroupDescription = dbSecurityGroupDescription ; }
public Reader create ( Reader input ) { return new ICUNormalizer2CharFilter ( input , normalizer ) ; }
public override TextReader Create ( TextReader input ) { return new ICUNormalizer2CharFilter ( input , normalizer ) ; }
static public double pmt ( double r , int nper , double pv ) { return pmt ( r , nper , pv , 0 ) ; }
static public double PMT ( double r , int nper , double pv ) { return PMT ( r , nper , pv , 0 ) ; }
public void set ( String name , String value ) throws Exception { if ( valByRound . get ( name ) != null ) { throw new Exception ( "Cannot modify a multi value property!" ) ; } props . setProperty ( name , value ) ; }
public virtual void Set ( string name , string value ) { object temp ; if ( valByRound . TryGetValue ( name , out temp ) && temp != null ) { throw new Exception ( "Cannot modify a multi value property!" ) ; } props [ name ] = value ; }
public DescribeFastSnapshotRestoresResult describeFastSnapshotRestores ( DescribeFastSnapshotRestoresRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeFastSnapshotRestores ( request ) ; }
public virtual DescribeFastSnapshotRestoresResponse DescribeFastSnapshotRestores ( DescribeFastSnapshotRestoresRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeFastSnapshotRestoresRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeFastSnapshotRestoresR...
public DescribeScheduledInstanceAvailabilityResult describeScheduledInstanceAvailability ( DescribeScheduledInstanceAvailabilityRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeScheduledInstanceAvailability ( request ) ; }
public virtual DescribeScheduledInstanceAvailabilityResponse DescribeScheduledInstanceAvailability ( DescribeScheduledInstanceAvailabilityRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeScheduledInstanceAvailabilityRequestMarshaller . Instance ; options . ResponseUnmarsha...
public SendBonusResult sendBonus ( SendBonusRequest request ) { request = beforeClientExecution ( request ) ; return executeSendBonus ( request ) ; }
public virtual SendBonusResponse SendBonus ( SendBonusRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = SendBonusRequestMarshaller . Instance ; options . ResponseUnmarshaller = SendBonusResponseUnmarshaller . Instance ; return Invoke < SendBonusResponse > ( request , options ) ; }
public UnpackException ( Throwable why ) { super ( JGitText . get ( ) . unpackException ) ; initCause ( why ) ; }
public UnpackException ( Exception why ) : base ( JGitText . Get ( ) . unpackException , why ) { Sharpen . Extensions . InitCause ( this , why ) ; }
public boolean remove ( Object o ) { if ( ! ( o instanceof Map . Entry ) ) return false ; Map . Entry < ? , ? > e = ( Map . Entry < ? , ? > ) o ; return ConcurrentHashMap . this . remove ( e . getKey ( ) , e . getValue ( ) ) ; }
public override bool remove ( object o ) { if ( ! ( o is java . util . MapClass . Entry < K , V > ) ) { return false ; } java . util . MapClass . Entry < object , object > e = ( java . util . MapClass . Entry < object , object > ) o ; return this . _enclosing . removeMapping ( e . getKey ( ) , e . getValue ( ) ) ; }
public Iterator < V > iterator ( ) { return newValueIterator ( ) ; }
public override java . util . Iterator < V > iterator ( ) { return new java . util . Hashtable < K , V > . ValueIterator ( this . _enclosing ) ; }
public DescribeVpcEndpointServiceConfigurationsResult describeVpcEndpointServiceConfigurations ( DescribeVpcEndpointServiceConfigurationsRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeVpcEndpointServiceConfigurations ( request ) ; }
public virtual DescribeVpcEndpointServiceConfigurationsResponse DescribeVpcEndpointServiceConfigurations ( DescribeVpcEndpointServiceConfigurationsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeVpcEndpointServiceConfigurationsRequestMarshaller . Instance ; options . Resp...
public void setDiffComparator ( RawTextComparator cmp ) { comparator = cmp ; }
public virtual void SetDiffComparator ( RawTextComparator cmp ) { comparator = cmp ; }
public FilePassRecord clone ( ) { return copy ( ) ; }
public override Object Clone ( ) { return this ; }
public DeleteServiceResult deleteService ( DeleteServiceRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteService ( request ) ; }
public virtual DeleteServiceResponse DeleteService ( DeleteServiceRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteServiceRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteServiceResponseUnmarshaller . Instance ; return Invoke < DeleteServiceResponse > ( ...
public FormulaRecord ( ) { field_8_parsed_expr = Formula . create ( Ptg . EMPTY_PTG_ARRAY ) ; }
public FormulaRecord ( ) { field_8_parsed_expr = NPOI . SS . Formula . Formula . Create ( Ptg . EMPTY_PTG_ARRAY ) ; }
public DescribeHsmClientCertificatesResult describeHsmClientCertificates ( DescribeHsmClientCertificatesRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeHsmClientCertificates ( request ) ; }
public virtual DescribeHsmClientCertificatesResponse DescribeHsmClientCertificates ( DescribeHsmClientCertificatesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeHsmClientCertificatesRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeHsmClientCertific...
public ICUTokenizerFactory ( Map < String , String > args ) { super ( args ) ; tailored = new HashMap < > ( ) ; String rulefilesArg = get ( args , RULEFILES ) ; if ( rulefilesArg != null ) { List < String > scriptAndResourcePaths = splitFileNames ( rulefilesArg ) ; for ( String scriptAndResourcePath : scriptAndResource...
public ICUTokenizerFactory ( IDictionary < string , string > args ) : base ( args ) { tailored = new Dictionary < int , string > ( ) ; string rulefilesArg = Get ( args , RULEFILES ) ; if ( rulefilesArg != null ) { IList < string > scriptAndResourcePaths = SplitFileNames ( rulefilesArg ) ; foreach ( string scriptAndReso...
public SuspendProcessesResult suspendProcesses ( SuspendProcessesRequest request ) { request = beforeClientExecution ( request ) ; return executeSuspendProcesses ( request ) ; }
public virtual SuspendProcessesResponse SuspendProcesses ( SuspendProcessesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = SuspendProcessesRequestMarshaller . Instance ; options . ResponseUnmarshaller = SuspendProcessesResponseUnmarshaller . Instance ; return Invoke < SuspendProc...
public DescribeConfigurationRevisionResult describeConfigurationRevision ( DescribeConfigurationRevisionRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeConfigurationRevision ( request ) ; }
public virtual DescribeConfigurationRevisionResponse DescribeConfigurationRevision ( DescribeConfigurationRevisionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeConfigurationRevisionRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeConfigurationRevi...
public RevFilter clone ( ) { final RevFilter [ ] s = new RevFilter [ subfilters . length ] ; for ( int i = 0 ; i < s . length ; i ++ ) s [ i ] = subfilters [ i ] . clone ( ) ; return new List ( s ) ; }
public override RevFilter Clone ( ) { RevFilter [ ] s = new RevFilter [ subfilters . Length ] ; for ( int i = 0 ; i < s . Length ; i ++ ) { s [ i ] = subfilters [ i ] . Clone ( ) ; } return new AndRevFilter . List ( s ) ; }
public TabIdRecord ( ) { _tabids = EMPTY_SHORT_ARRAY ; }
public TabIdRecord ( ) { _tabids = EMPTY_SHORT_ARRAY ; }
public List < String > getConflictingPaths ( ) { return conflictingPaths ; }
public virtual IList < string > GetConflictingPaths ( ) { return conflictingPaths ; }
public void reset ( ) { inDegree = 0 ; }
public virtual void Reset ( ) { inDegree = 0 ; }
public DescribeJobFlowsRequest ( java . util . List < String > jobFlowIds ) { setJobFlowIds ( jobFlowIds ) ; }
public DescribeJobFlowsRequest ( List < string > jobFlowIds ) { _jobFlowIds = jobFlowIds ; }
public final void decRef ( ) throws IOException { final int rc = refCount . decrementAndGet ( ) ; if ( rc == 0 ) { boolean success = false ; try { release ( ) ; success = true ; } finally { if ( ! success ) { refCount . incrementAndGet ( ) ; } } } else if ( rc < 0 ) { throw new IllegalStateException ( "too many decRef ...
public void DecRef ( ) { int rc = refCount . DecrementAndGet ( ) ; if ( rc == 0 ) { bool success = false ; try { Release ( ) ; success = true ; } finally { if ( ! success ) { refCount . IncrementAndGet ( ) ; } } } else if ( rc < 0 ) { throw new InvalidOperationException ( "too many DecRef() calls: refCount is " + rc + ...
public DeleteMountTargetResult deleteMountTarget ( DeleteMountTargetRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteMountTarget ( request ) ; }
public virtual DeleteMountTargetResponse DeleteMountTarget ( DeleteMountTargetRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteMountTargetRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteMountTargetResponseUnmarshaller . Instance ; return Invoke < Delete...
public void println ( double d ) { println ( String . valueOf ( d ) ) ; }
public virtual void println ( double d ) { println ( d . ToString ( ) ) ; }
public DescribeDBProxyTargetsResult describeDBProxyTargets ( DescribeDBProxyTargetsRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeDBProxyTargets ( request ) ; }
public virtual DescribeDBProxyTargetsResponse DescribeDBProxyTargets ( DescribeDBProxyTargetsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeDBProxyTargetsRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeDBProxyTargetsResponseUnmarshaller . Instance...
final public SrndQuery PrefixOperatorQuery ( ) throws ParseException { Token oprt ; List < SrndQuery > queries ; switch ( ( jj_ntk == - 1 ) ? jj_ntk ( ) : jj_ntk ) { case OR : oprt = jj_consume_token ( OR ) ; queries = FieldsQueryList ( ) ; { if ( true ) return getOrQuery ( queries , false , oprt ) ; } break ; case AND...
public SrndQuery PrefixOperatorQuery ( ) { Token oprt ; IList < SrndQuery > queries ; switch ( ( jj_ntk == - 1 ) ? Jj_ntk ( ) : jj_ntk ) { case RegexpToken . OR : oprt = Jj_consume_token ( RegexpToken . OR ) ; queries = FieldsQueryList ( ) ; { if ( true ) return GetOrQuery ( queries , false , oprt ) ; } case RegexpToke...
public DeleteInstanceSnapshotResult deleteInstanceSnapshot ( DeleteInstanceSnapshotRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteInstanceSnapshot ( request ) ; }
public virtual DeleteInstanceSnapshotResponse DeleteInstanceSnapshot ( DeleteInstanceSnapshotRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteInstanceSnapshotRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteInstanceSnapshotResponseUnmarshaller . Instance...
public Entry < K , V > firstEntry ( ) { return immutableCopy ( endpoint ( true ) ) ; }
public java . util . MapClass . Entry < K , V > firstEntry ( ) { return this . _enclosing . immutableCopy ( this . endpoint ( true ) ) ; }
public DeregisterTransitGatewayMulticastGroupSourcesResult deregisterTransitGatewayMulticastGroupSources ( DeregisterTransitGatewayMulticastGroupSourcesRequest request ) { request = beforeClientExecution ( request ) ; return executeDeregisterTransitGatewayMulticastGroupSources ( request ) ; }
public virtual DeregisterTransitGatewayMulticastGroupSourcesResponse DeregisterTransitGatewayMulticastGroupSources ( DeregisterTransitGatewayMulticastGroupSourcesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeregisterTransitGatewayMulticastGroupSourcesRequestMarshaller . Insta...
public ImportTerminologyResult importTerminology ( ImportTerminologyRequest request ) { request = beforeClientExecution ( request ) ; return executeImportTerminology ( request ) ; }
public virtual ImportTerminologyResponse ImportTerminology ( ImportTerminologyRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ImportTerminologyRequestMarshaller . Instance ; options . ResponseUnmarshaller = ImportTerminologyResponseUnmarshaller . Instance ; return Invoke < Import...
public int serialize ( int offset , byte [ ] data ) { byte [ ] rawData = getRawData ( ) ; if ( getEscherRecords ( ) . size ( ) == 0 && rawData != null ) { return writeData ( offset , data , rawData ) ; } byte [ ] buffer = new byte [ getRawDataSize ( ) ] ; int pos = 0 ; for ( Iterator < EscherRecord > iterator = getEsch...
public override int Serialize ( int offset , byte [ ] data ) { byte [ ] rawData = RawData ; if ( EscherRecords . Count == 0 && rawData != null ) { return WriteData ( offset , data , rawData ) ; } else { byte [ ] buffer = new byte [ RawDataSize ] ; int pos = 0 ; for ( IEnumerator iterator = EscherRecords . GetEnumerator...
public DescribeDBParameterGroupsResult describeDBParameterGroups ( DescribeDBParameterGroupsRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeDBParameterGroups ( request ) ; }
public virtual DescribeDBParameterGroupsResponse DescribeDBParameterGroups ( DescribeDBParameterGroupsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeDBParameterGroupsRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeDBParameterGroupsResponseUnmarsha...
public static FuzzySet createSetBasedOnMaxMemory ( int maxNumBytes ) { int setSize = getNearestSetSize ( maxNumBytes ) ; return new FuzzySet ( new FixedBitSet ( setSize + 1 ) , setSize , hashFunctionForVersion ( VERSION_CURRENT ) ) ; }
public static FuzzySet CreateSetBasedOnMaxMemory ( int maxNumBytes ) { var setSize = GetNearestSetSize ( maxNumBytes ) ; return new FuzzySet ( new FixedBitSet ( setSize + 1 ) , setSize , HashFunctionForVersion ( VERSION_CURRENT ) ) ; }
public BundleWriter ( Repository repo ) { db = repo ; reader = null ; include = new TreeMap < > ( ) ; assume = new HashSet < > ( ) ; tagTargets = new HashSet < > ( ) ; }
public BundleWriter ( Repository repo ) { db = repo ; include = new SortedDictionary < string , ObjectId > ( ) ; assume = new HashSet < RevCommit > ( ) ; tagTargets = new HashSet < ObjectId > ( ) ; }
public AssociateDomainResult associateDomain ( AssociateDomainRequest request ) { request = beforeClientExecution ( request ) ; return executeAssociateDomain ( request ) ; }
public virtual AssociateDomainResponse AssociateDomain ( AssociateDomainRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = AssociateDomainRequestMarshaller . Instance ; options . ResponseUnmarshaller = AssociateDomainResponseUnmarshaller . Instance ; return Invoke < AssociateDomainR...
public GetInstancePortStatesResult getInstancePortStates ( GetInstancePortStatesRequest request ) { request = beforeClientExecution ( request ) ; return executeGetInstancePortStates ( request ) ; }
public virtual GetInstancePortStatesResponse GetInstancePortStates ( GetInstancePortStatesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetInstancePortStatesRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetInstancePortStatesResponseUnmarshaller . Instance ; re...
public SrndTruncQuery ( String truncated , char unlimited , char mask ) { super ( false ) ; this . truncated = truncated ; this . unlimited = unlimited ; this . mask = mask ; truncatedToPrefixAndPattern ( ) ; }
public SrndTruncQuery ( string truncated , char unlimited , char mask ) : base ( false ) { this . truncated = truncated ; this . unlimited = unlimited ; this . mask = mask ; TruncatedToPrefixAndPattern ( ) ; }
public final Explanation explain ( BasicStats stats ) { return Explanation . match ( lambda ( stats ) , getClass ( ) . getSimpleName ( ) + ", computed as (n + 1) / (N + 1) from:" , Explanation . match ( stats . getDocFreq ( ) , "n, number of documents containing term" ) , Explanation . match ( stats . getNumberOfDocume...
public override sealed Explanation Explain ( BasicStats stats ) { Explanation result = new Explanation ( ) ; result . Description = this . GetType ( ) . Name + ", computed from: " ; result . Value = CalculateLambda ( stats ) ; result . AddDetail ( new Explanation ( stats . DocFreq , "docFreq" ) ) ; result . AddDetail (...
public DeleteBaiduChannelResult deleteBaiduChannel ( DeleteBaiduChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteBaiduChannel ( request ) ; }
public virtual DeleteBaiduChannelResponse DeleteBaiduChannel ( DeleteBaiduChannelRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteBaiduChannelRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteBaiduChannelResponseUnmarshaller . Instance ; return Invoke < D...
public UnlinkDeveloperIdentityResult unlinkDeveloperIdentity ( UnlinkDeveloperIdentityRequest request ) { request = beforeClientExecution ( request ) ; return executeUnlinkDeveloperIdentity ( request ) ; }
public virtual UnlinkDeveloperIdentityResponse UnlinkDeveloperIdentity ( UnlinkDeveloperIdentityRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = UnlinkDeveloperIdentityRequestMarshaller . Instance ; options . ResponseUnmarshaller = UnlinkDeveloperIdentityResponseUnmarshaller . Ins...
public SimpleBoundaryScanner ( int maxScan , Character [ ] boundaryChars ) { this . maxScan = maxScan ; this . boundaryChars = new HashSet < > ( ) ; this . boundaryChars . addAll ( Arrays . asList ( boundaryChars ) ) ; }
public SimpleBoundaryScanner ( int maxScan , char [ ] boundaryChars ) { this . m_maxScan = maxScan ; this . m_boundaryChars = new JCG . HashSet < char > ( ) ; this . m_boundaryChars . UnionWith ( boundaryChars ) ; }
public CreateLogGroupRequest ( String logGroupName ) { setLogGroupName ( logGroupName ) ; }
public CreateLogGroupRequest ( string logGroupName ) { _logGroupName = logGroupName ; }
public static Set < String > getDefaultStopTags ( ) { return DefaultSetHolder . DEFAULT_STOP_TAGS ; }
public static ISet < string > GetDefaultStopTags ( ) { return DefaultSetHolder . DEFAULT_STOP_TAGS ; }
public ModifyInstanceFleetResult modifyInstanceFleet ( ModifyInstanceFleetRequest request ) { request = beforeClientExecution ( request ) ; return executeModifyInstanceFleet ( request ) ; }
public virtual ModifyInstanceFleetResponse ModifyInstanceFleet ( ModifyInstanceFleetRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ModifyInstanceFleetRequestMarshaller . Instance ; options . ResponseUnmarshaller = ModifyInstanceFleetResponseUnmarshaller . Instance ; return Invok...
public void addRule ( ConditionalFormattingRule cfRule ) { addRule ( ( HSSFConditionalFormattingRule ) cfRule ) ; }
public void AddRule ( IConditionalFormattingRule cfRule ) { AddRule ( ( HSSFConditionalFormattingRule ) cfRule ) ; }
public void SwitchTo ( int lexState ) { if ( lexState >= 3 || lexState < 0 ) throw new TokenMgrError ( "Error: Ignoring invalid lexical state : " + lexState + ". State unchanged." , TokenMgrError . INVALID_LEXICAL_STATE ) ; elsecurLexState = lexState ; }
public virtual void SwitchTo ( int lexState ) { if ( lexState >= 3 || lexState < 0 ) throw new TokenMgrError ( "Error: Ignoring invalid lexical state : " + lexState + ". State unchanged." , TokenMgrError . INVALID_LEXICAL_STATE ) ; elsecurLexState = lexState ; }
public void removeCharCount ( ) { remove1stProperty ( PropertyIDMap . PID_CHARCOUNT ) ; }
public void RemoveCharCount ( ) { MutableSection s = ( MutableSection ) FirstSection ; s . RemoveProperty ( PropertyIDMap . PID_CHARCOUNT ) ; }
public CreateCapacityReservationResult createCapacityReservation ( CreateCapacityReservationRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateCapacityReservation ( request ) ; }
public virtual CreateCapacityReservationResponse CreateCapacityReservation ( CreateCapacityReservationRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateCapacityReservationRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateCapacityReservationResponseUnmarsha...
public StoredField ( String name , long value ) { super ( name , TYPE ) ; fieldsData = value ; }
public StoredField ( string name , long value ) : base ( name , TYPE ) { FieldsData = new Int64 ( value ) ; }
public void sync ( Parser recognizer ) throws RecognitionException { ATNState s = recognizer . getInterpreter ( ) . atn . states . get ( recognizer . getState ( ) ) ; if ( inErrorRecoveryMode ( recognizer ) ) { return ; } TokenStream tokens = recognizer . getInputStream ( ) ; int la = tokens . LA ( 1 ) ; IntervalSet ne...
public virtual void Sync ( Parser recognizer ) { ATNState s = recognizer . Interpreter . atn . states [ recognizer . State ] ; if ( InErrorRecoveryMode ( recognizer ) ) { return ; } ITokenStream tokens = ( ( ITokenStream ) recognizer . InputStream ) ; int la = tokens . LA ( 1 ) ; var nextTokens = recognizer . Atn . Nex...
public int nextDoc ( ) { if ( ! didNext ) { didNext = true ; return ( doc = 0 ) ; } else { return ( doc = NO_MORE_DOCS ) ; } }
public override int NextDoc ( ) { if ( _didNext || ( _liveDocs != null && ! _liveDocs . Get ( 0 ) ) ) return ( _doc = NO_MORE_DOCS ) ; _didNext = true ; return ( _doc = 0 ) ; }
public static Charset parseEncoding ( byte [ ] b ) { String enc = parseEncodingName ( b ) ; if ( enc == null ) { return UTF_8 ; } String name = enc . trim ( ) ; try { return Charset . forName ( name ) ; } catch ( IllegalCharsetNameException | UnsupportedCharsetException badName ) { Charset aliased = charsetForAlias ( n...
public static System . Text . Encoding ParseEncoding ( byte [ ] b ) { int enc = Encoding ( b , 0 ) ; if ( enc < 0 ) { return Constants . CHARSET ; } int lf = NextLF ( b , enc ) ; string decoded = Decode ( Constants . CHARSET , b , enc , lf - 1 ) ; try { return Sharpen . Extensions . GetEncoding ( decoded ) ; } catch ( ...
public FloatBuffer put ( float [ ] src , int srcOffset , int floatCount ) { Arrays . checkOffsetAndCount ( src . length , srcOffset , floatCount ) ; if ( floatCount > remaining ( ) ) { throw new BufferOverflowException ( ) ; } for ( int i = srcOffset ; i < srcOffset + floatCount ; ++ i ) { put ( src [ i ] ) ; } return ...
public virtual java . nio . FloatBuffer put ( float [ ] src , int srcOffset , int floatCount ) { java . util . Arrays . checkOffsetAndCount ( src . Length , srcOffset , floatCount ) ; if ( floatCount > remaining ( ) ) { throw new java . nio . BufferOverflowException ( ) ; } { for ( int i = srcOffset ; i < srcOffset + f...
public BatchGetVariableResult batchGetVariable ( BatchGetVariableRequest request ) { request = beforeClientExecution ( request ) ; return executeBatchGetVariable ( request ) ; }
public virtual BatchGetVariableResponse BatchGetVariable ( BatchGetVariableRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = BatchGetVariableRequestMarshaller . Instance ; options . ResponseUnmarshaller = BatchGetVariableResponseUnmarshaller . Instance ; return Invoke < BatchGetVar...
public void setRepetitions ( int repetitions ) throws Exception { fixedTime = false ; this . repetitions = repetitions ; if ( repetitions == REPEAT_EXHAUST ) { if ( isParallel ( ) ) { throw new Exception ( "REPEAT_EXHAUST is not allowed for parallel tasks" ) ; } } setSequenceName ( ) ; }
public virtual void SetRepetitions ( int repetitions ) { fixedTime = false ; this . repetitions = repetitions ; if ( repetitions == REPEAT_EXHAUST ) { if ( IsParallel ) { throw new Exception ( "REPEAT_EXHAUST is not allowed for parallel tasks" ) ; } } SetSequenceName ( ) ; }
public synchronized static DefaultProfile getProfile ( ) { if ( null == profile ) { profile = new DefaultProfile ( ) ; } return profile ; }
public static DefaultProfile GetProfile ( ) { if ( null == _profile ) { _profile = new DefaultProfile ( ) ; } return _profile ; }
public String dequote ( byte [ ] in , int inPtr , int inEnd ) { if ( 2 <= inEnd - inPtr && in [ inPtr ] == '"' && in [ inEnd - 1 ] == '"' ) return dq ( in , inPtr + 1 , inEnd - 1 ) ; return RawParseUtils . decode ( UTF_8 , in , inPtr , inEnd ) ; }
public override string Dequote ( byte [ ] @ in , int inPtr , int inEnd ) { if ( 2 <= inEnd - inPtr && @ in [ inPtr ] == '"' && @ in [ inEnd - 1 ] == '"' ) { return Dq ( @ in , inPtr + 1 , inEnd - 1 ) ; } return RawParseUtils . Decode ( Constants . CHARSET , @ in , inPtr , inEnd ) ; }
public CacheCluster modifyCacheCluster ( ModifyCacheClusterRequest request ) { request = beforeClientExecution ( request ) ; return executeModifyCacheCluster ( request ) ; }
public virtual ModifyCacheClusterResponse ModifyCacheCluster ( ModifyCacheClusterRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ModifyCacheClusterRequestMarshaller . Instance ; options . ResponseUnmarshaller = ModifyCacheClusterResponseUnmarshaller . Instance ; return Invoke < M...
public TreeFormatter ( int size ) { buf = new byte [ size ] ; }
public TreeFormatter ( int size ) { buf = new byte [ size ] ; }
public void setMaxDeltaDepth ( int maxDeltaDepth ) { this . maxDeltaDepth = maxDeltaDepth ; }
public virtual void SetMaxDeltaDepth ( int maxDeltaDepth ) { this . maxDeltaDepth = maxDeltaDepth ; }
public int serialize ( int offset , byte [ ] data , EscherSerializationListener listener ) { listener . beforeRecordSerialize ( offset , getRecordId ( ) , this ) ; int pos = offset ; LittleEndian . putShort ( data , pos , getOptions ( ) ) ; pos += 2 ; LittleEndian . putShort ( data , pos , getRecordId ( ) ) ; pos += 2 ...
public override int Serialize ( int offset , byte [ ] data , EscherSerializationListener listener ) { listener . BeforeRecordSerialize ( offset , RecordId , this ) ; int pos = offset ; LittleEndian . PutShort ( data , pos , Options ) ; pos += 2 ; LittleEndian . PutShort ( data , pos , RecordId ) ; pos += 2 ; int remain...
public LogDocMergePolicy ( ) { minMergeSize = DEFAULT_MIN_MERGE_DOCS ; maxMergeSize = Long . MAX_VALUE ; maxMergeSizeForForcedMerge = Long . MAX_VALUE ; }
public LogDocMergePolicy ( ) { m_minMergeSize = DEFAULT_MIN_MERGE_DOCS ; m_maxMergeSize = long . MaxValue ; m_maxMergeSizeForForcedMerge = long . MaxValue ; }
public BM25Similarity ( ) { this ( 1.2f , 0.75f ) ; }
public BM25Similarity ( ) { this . k1 = 1.2f ; this . b = 0.75f ; }
public void write ( LittleEndianOutput out ) { out . writeByte ( sid + getPtgClass ( ) ) ; out . writeShort ( getExternSheetIndex ( ) ) ; writeCoordinates ( out ) ; }
public override void Write ( ILittleEndianOutput out1 ) { out1 . WriteByte ( sid + PtgClass ) ; out1 . WriteShort ( ExternSheetIndex ) ; WriteCoordinates ( out1 ) ; }