question
stringlengths
33
1.59k
target
stringlengths
33
1.58k
public static void fill ( int [ ] array , int start , int end , int value ) { Arrays . checkStartAndEnd ( array . length , start , end ) ; for ( int i = start ; i < end ; i ++ ) { array [ i ] = value ; } }
public static void fill ( int [ ] array , int start , int end , int value ) { java . util . Arrays . checkStartAndEnd ( array . Length , start , end ) ; { for ( int i = start ; i < end ; i ++ ) { array [ i ] = value ; } } }
public final char yycharat ( int pos ) { return zzBuffer [ zzStartRead + pos ] ; }
public char YyCharAt ( int pos ) { return zzBuffer [ zzStartRead + pos ] ; }
public void pushMode ( int m ) { if ( LexerATNSimulator . debug ) System . out . println ( "pushMode " + m ) ; _modeStack . push ( _mode ) ; mode ( m ) ; }
public virtual void PushMode ( int m ) { _modeStack . Push ( _mode ) ; Mode ( m ) ; }
public Set < String > getCapabilities ( ) { return command . getCapabilities ( ) ; }
public virtual ICollection < string > GetCapabilities ( ) { return capabilities ; }
public DescribeReservedInstancesListingsResult describeReservedInstancesListings ( ) { return describeReservedInstancesListings ( new DescribeReservedInstancesListingsRequest ( ) ) ; }
public virtual DescribeReservedInstancesListingsResponse DescribeReservedInstancesListings ( ) { return DescribeReservedInstancesListings ( new DescribeReservedInstancesListingsRequest ( ) ) ; }
public RegisterInstanceEventNotificationAttributesResult registerInstanceEventNotificationAttributes ( RegisterInstanceEventNotificationAttributesRequest request ) { request = beforeClientExecution ( request ) ; return executeRegisterInstanceEventNotificationAttributes ( request ) ; }
public virtual RegisterInstanceEventNotificationAttributesResponse RegisterInstanceEventNotificationAttributes ( RegisterInstanceEventNotificationAttributesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = RegisterInstanceEventNotificationAttributesRequestMarshaller . Instance ; options . ResponseUnmarshaller = RegisterInstanceEventNotificationAttributesResponseUnmarshaller . Instance ; return Invoke < RegisterInstanceEventNotificationAttributesResponse > ( request , options ) ; }
public PutRuleResult putRule ( PutRuleRequest request ) { request = beforeClientExecution ( request ) ; return executePutRule ( request ) ; }
public virtual PutRuleResponse PutRule ( PutRuleRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = PutRuleRequestMarshaller . Instance ; options . ResponseUnmarshaller = PutRuleResponseUnmarshaller . Instance ; return Invoke < PutRuleResponse > ( request , options ) ; }
public static char [ ] grow ( char [ ] array , int minSize ) { assert minSize >= 0 : "size must be positive (got " + minSize + "): likely integer overflow?" ; if ( array . length < minSize ) { return growExact ( array , oversize ( minSize , Character . BYTES ) ) ; } else return array ; }
public static byte [ ] Grow ( byte [ ] array , int minSize ) { Debug . Assert ( minSize >= 0 , "size must be positive (got " + minSize + "): likely integer overflow?" ) ; if ( array . Length < minSize ) { byte [ ] newArray = new byte [ Oversize ( minSize , 1 ) ] ; Array . Copy ( array , 0 , newArray , 0 , array . Length ) ; return newArray ; } else { return array ; } }
public CleanCommand setPaths ( Set < String > paths ) { this . paths = paths ; return this ; }
public virtual NGit . Api . CleanCommand SetPaths ( ICollection < string > paths ) { this . paths = paths ; return this ; }
public int getLevelForDistance ( double dist ) { if ( dist == 0 ) return maxLevels ; final int level = GeohashUtils . lookupHashLenForWidthHeight ( dist , dist ) ; return Math . max ( Math . min ( level , maxLevels ) , 1 ) ; }
protected internal override int GetLevelForDistance ( double degrees ) { var grid = new GeohashPrefixTree ( m_ctx , GeohashPrefixTree . MaxLevelsPossible ) ; return grid . GetLevelForDistance ( degrees ) ; }
public StartDocumentTextDetectionResult startDocumentTextDetection ( StartDocumentTextDetectionRequest request ) { request = beforeClientExecution ( request ) ; return executeStartDocumentTextDetection ( request ) ; }
public virtual StartDocumentTextDetectionResponse StartDocumentTextDetection ( StartDocumentTextDetectionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = StartDocumentTextDetectionRequestMarshaller . Instance ; options . ResponseUnmarshaller = StartDocumentTextDetectionResponseUnmarshaller . Instance ; return Invoke < StartDocumentTextDetectionResponse > ( request , options ) ; }
public String getLine ( ) { return firstWant . getLine ( ) ; }
public virtual string GetLine ( ) { return line ; }
public ValueEval getItem ( int index ) { if ( index > _size ) { throw new ArrayIndexOutOfBoundsException ( "Specified index (" + index + ") is outside the allowed range (0.." + ( _size - 1 ) + ")" ) ; } return _tableArray . getValue ( _rowIndex , index ) ; }
public ValueEval GetItem ( int index ) { if ( index > _size ) { throw new IndexOutOfRangeException ( "Specified index (" + index + ") is outside the allowed range (0.." + ( _size - 1 ) + ")" ) ; } return _tableArray . GetRelativeValue ( _rowIndex , index ) ; }
public String toString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( "[IFMT]\n" ) ; buffer . append ( " .formatIndex = " ) . append ( "0x" ) . append ( HexDump . toHex ( getFormatIndex ( ) ) ) . append ( " (" ) . append ( getFormatIndex ( ) ) . append ( " )" ) ; buffer . append ( System . getProperty ( "line.separator" ) ) ; buffer . append ( "[/IFMT]\n" ) ; return buffer . toString ( ) ; }
public override String ToString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( "[IFMT]\n" ) ; buffer . Append ( " .formatIndex = " ) . Append ( "0x" ) . Append ( HexDump . ToHex ( FormatIndex ) ) . Append ( " (" ) . Append ( FormatIndex ) . Append ( " )" ) ; buffer . Append ( Environment . NewLine ) ; buffer . Append ( "[/IFMT]\n" ) ; return buffer . ToString ( ) ; }
public SubmoduleSyncCommand ( Repository repo ) { super ( repo ) ; paths = new ArrayList < > ( ) ; }
protected internal SubmoduleSyncCommand ( Repository repo ) : base ( repo ) { paths = new AList < string > ( ) ; }
public void registerWorkflowType ( RegisterWorkflowTypeRequest request ) { request = beforeClientExecution ( request ) ; executeRegisterWorkflowType ( request ) ; }
public virtual RegisterWorkflowTypeResponse RegisterWorkflowType ( RegisterWorkflowTypeRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = RegisterWorkflowTypeRequestMarshaller . Instance ; options . ResponseUnmarshaller = RegisterWorkflowTypeResponseUnmarshaller . Instance ; return Invoke < RegisterWorkflowTypeResponse > ( request , options ) ; }
public UnescapedCharSequence ( char [ ] chars , boolean [ ] wasEscaped , int offset , int length ) { this . chars = new char [ length ] ; this . wasEscaped = new boolean [ length ] ; System . arraycopy ( chars , offset , this . chars , 0 , length ) ; System . arraycopy ( wasEscaped , offset , this . wasEscaped , 0 , length ) ; }
public UnescapedCharSequence ( char [ ] chars , bool [ ] wasEscaped , int offset , int length ) { this . chars = new char [ length ] ; this . wasEscaped = new bool [ length ] ; System . Array . Copy ( chars , offset , this . chars , 0 , length ) ; System . Array . Copy ( wasEscaped , offset , this . wasEscaped , 0 , length ) ; }
public CreateDatasetGroupResult createDatasetGroup ( CreateDatasetGroupRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateDatasetGroup ( request ) ; }
public virtual CreateDatasetGroupResponse CreateDatasetGroup ( CreateDatasetGroupRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateDatasetGroupRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateDatasetGroupResponseUnmarshaller . Instance ; return Invoke < CreateDatasetGroupResponse > ( request , options ) ; }
public boolean equals ( Object obj ) { if ( this == obj ) return true ; if ( obj == null ) return false ; if ( getClass ( ) != obj . getClass ( ) ) return false ; FieldVals other = ( FieldVals ) obj ; if ( fieldName == null ) { if ( other . fieldName != null ) return false ; } else if ( ! fieldName . equals ( other . fieldName ) ) return false ; if ( maxEdits != other . maxEdits ) { return false ; } if ( prefixLength != other . prefixLength ) return false ; if ( queryString == null ) { if ( other . queryString != null ) return false ; } else if ( ! queryString . equals ( other . queryString ) ) return false ; return true ; }
public override bool Equals ( object obj ) { if ( this == obj ) return true ; if ( obj == null ) return false ; if ( GetType ( ) != obj . GetType ( ) ) return false ; FieldVals other = ( FieldVals ) obj ; if ( fieldName == null ) { if ( other . fieldName != null ) return false ; } else if ( ! fieldName . Equals ( other . fieldName , StringComparison . Ordinal ) ) return false ; if ( J2N . BitConversion . SingleToInt32Bits ( minSimilarity ) != J2N . BitConversion . SingleToInt32Bits ( other . minSimilarity ) ) return false ; if ( prefixLength != other . prefixLength ) return false ; if ( queryString == null ) { if ( other . queryString != null ) return false ; } else if ( ! queryString . Equals ( other . queryString , StringComparison . Ordinal ) ) return false ; return true ; }
public BuildSuggestersResult buildSuggesters ( BuildSuggestersRequest request ) { request = beforeClientExecution ( request ) ; return executeBuildSuggesters ( request ) ; }
public virtual BuildSuggestersResponse BuildSuggesters ( BuildSuggestersRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = BuildSuggestersRequestMarshaller . Instance ; options . ResponseUnmarshaller = BuildSuggestersResponseUnmarshaller . Instance ; return Invoke < BuildSuggestersResponse > ( request , options ) ; }
public GetRelationalDatabaseBundlesResult getRelationalDatabaseBundles ( GetRelationalDatabaseBundlesRequest request ) { request = beforeClientExecution ( request ) ; return executeGetRelationalDatabaseBundles ( request ) ; }
public virtual GetRelationalDatabaseBundlesResponse GetRelationalDatabaseBundles ( GetRelationalDatabaseBundlesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetRelationalDatabaseBundlesRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetRelationalDatabaseBundlesResponseUnmarshaller . Instance ; return Invoke < GetRelationalDatabaseBundlesResponse > ( request , options ) ; }
public String getMessages ( ) { return messageBuffer != null ? messageBuffer . toString ( ) : "" ; }
public virtual string GetMessages ( ) { return messageBuffer != null ? messageBuffer . ToString ( ) : string . Empty ; }
public DelimitedPayloadTokenFilter ( TokenStream input , char delimiter , PayloadEncoder encoder ) { super ( input ) ; this . delimiter = delimiter ; this . encoder = encoder ; }
public DelimitedPayloadTokenFilter ( TokenStream input , char delimiter , IPayloadEncoder encoder ) : base ( input ) { this . delimiter = delimiter ; this . encoder = encoder ; termAtt = AddAttribute < ICharTermAttribute > ( ) ; payAtt = AddAttribute < IPayloadAttribute > ( ) ; }
public void setPrintArea ( int sheetIndex , int startColumn , int endColumn , int startRow , int endRow ) { CellReference cell = new CellReference ( startRow , startColumn , true , true ) ; String reference = cell . formatAsString ( ) ; cell = new CellReference ( endRow , endColumn , true , true ) ; reference = reference + ":" + cell . formatAsString ( ) ; setPrintArea ( sheetIndex , reference ) ; }
public void SetPrintArea ( int sheetIndex , int startColumn , int endColumn , int startRow , int endRow ) { CellReference cell = new CellReference ( startRow , startColumn , true , true ) ; String reference = cell . FormatAsString ( ) ; cell = new CellReference ( endRow , endColumn , true , true ) ; reference = reference + ":" + cell . FormatAsString ( ) ; SetPrintArea ( sheetIndex , reference ) ; }
public void normalise64bit ( ) { int oldBitLen = _significand . bitLength ( ) ; int sc = oldBitLen - C_64 ; if ( sc == 0 ) { return ; } if ( sc < 0 ) { throw new IllegalStateException ( "Not enough precision" ) ; } _binaryExponent += sc ; if ( sc > 32 ) { int highShift = ( sc - 1 ) & 0xFFFFE0 ; _significand = _significand . shiftRight ( highShift ) ; sc -= highShift ; oldBitLen -= highShift ; } if ( sc < 1 ) { throw new IllegalStateException ( ) ; } _significand = Rounder . round ( _significand , sc ) ; if ( _significand . bitLength ( ) > oldBitLen ) { sc ++ ; _binaryExponent ++ ; } _significand = _significand . shiftRight ( sc ) ; }
public void Normalise64bit ( ) { int oldBitLen = _significand . BitLength ( ) ; int sc = oldBitLen - C_64 ; if ( sc == 0 ) { return ; } if ( sc < 0 ) { throw new InvalidOperationException ( "Not enough precision" ) ; } _binaryExponent += sc ; if ( sc > 32 ) { int highShift = ( sc - 1 ) & 0xFFFFE0 ; _significand = _significand > > ( highShift ) ; sc -= highShift ; oldBitLen -= highShift ; } if ( sc < 1 ) { throw new InvalidOperationException ( ) ; } _significand = Rounder . Round ( _significand , sc ) ; if ( _significand . BitLength ( ) > oldBitLen ) { sc ++ ; _binaryExponent ++ ; } _significand = _significand > > ( sc ) ; }
public ObjRecord ( RecordInputStream in ) { byte [ ] subRecordData = in . readRemainder ( ) ; if ( LittleEndian . getUShort ( subRecordData , 0 ) != CommonObjectDataSubRecord . sid ) { _uninterpretedData = subRecordData ; return ; } LittleEndianByteArrayInputStream subRecStream = new LittleEndianByteArrayInputStream ( subRecordData ) ; CommonObjectDataSubRecord cmo = ( CommonObjectDataSubRecord ) SubRecord . createSubRecord ( subRecStream , 0 ) ; subrecords . add ( cmo ) ; while ( true ) { SubRecord subRecord = SubRecord . createSubRecord ( subRecStream , cmo . getObjectType ( ) ) ; subrecords . add ( subRecord ) ; if ( subRecord . isTerminating ( ) ) { break ; } } final int nRemainingBytes = subRecordData . length - subRecStream . getReadIndex ( ) ; if ( nRemainingBytes > 0 ) { _isPaddedToQuadByteMultiple = subRecordData . length % MAX_PAD_ALIGNMENT == 0 ; if ( nRemainingBytes >= ( _isPaddedToQuadByteMultiple ? MAX_PAD_ALIGNMENT : NORMAL_PAD_ALIGNMENT ) ) { if ( ! canPaddingBeDiscarded ( subRecordData , nRemainingBytes ) ) { String msg = "Leftover " + nRemainingBytes + " bytes in subrecord data " + HexDump . toHex ( subRecordData ) ; throw new RecordFormatException ( msg ) ; } _isPaddedToQuadByteMultiple = false ; } } else { _isPaddedToQuadByteMultiple = false ; } _uninterpretedData = null ; }
public ObjRecord ( RecordInputStream in1 ) { byte [ ] subRecordData = in1 . ReadRemainder ( ) ; if ( LittleEndian . GetUShort ( subRecordData , 0 ) != CommonObjectDataSubRecord . sid ) { _uninterpretedData = subRecordData ; subrecords = null ; return ; } subrecords = new List < SubRecord > ( ) ; using ( MemoryStream bais = new MemoryStream ( subRecordData ) ) { LittleEndianInputStream subRecStream = new LittleEndianInputStream ( bais ) ; CommonObjectDataSubRecord cmo = ( CommonObjectDataSubRecord ) SubRecord . CreateSubRecord ( subRecStream , 0 ) ; subrecords . Add ( cmo ) ; while ( true ) { SubRecord subRecord = SubRecord . CreateSubRecord ( subRecStream , cmo . ObjectType ) ; subrecords . Add ( subRecord ) ; if ( subRecord . IsTerminating ) { break ; } } int nRemainingBytes = subRecStream . Available ( ) ; if ( nRemainingBytes > 0 ) { _isPaddedToQuadByteMultiple = subRecordData . Length % MAX_PAD_ALIGNMENT == 0 ; if ( nRemainingBytes >= ( _isPaddedToQuadByteMultiple ? MAX_PAD_ALIGNMENT : NORMAL_PAD_ALIGNMENT ) ) { if ( ! CanPaddingBeDiscarded ( subRecordData , nRemainingBytes ) ) { String msg = "Leftover " + nRemainingBytes + " bytes in subrecord data " + HexDump . ToHex ( subRecordData ) ; throw new RecordFormatException ( msg ) ; } _isPaddedToQuadByteMultiple = false ; } } else { _isPaddedToQuadByteMultiple = false ; } _uninterpretedData = null ; } }
public FrenchLightStemFilterFactory ( Map < String , String > args ) { super ( args ) ; if ( ! args . isEmpty ( ) ) { throw new IllegalArgumentException ( "Unknown parameters: " + args ) ; } }
public FrenchLightStemFilterFactory ( IDictionary < string , string > args ) : base ( args ) { if ( args . Count > 0 ) { throw new System . ArgumentException ( "Unknown parameters: " + args ) ; } }
@ Override public int size ( ) { Slice slice = this . slice ; return slice . to - slice . from ; }
public virtual int size ( ) { return elements . Length ; }
public boolean equals ( Object other ) { if ( ! ( other instanceof IntBuffer ) ) { return false ; } IntBuffer otherBuffer = ( IntBuffer ) other ; if ( remaining ( ) != otherBuffer . remaining ( ) ) { return false ; } int myPosition = position ; int otherPosition = otherBuffer . position ; boolean equalSoFar = true ; while ( equalSoFar && ( myPosition < limit ) ) { equalSoFar = get ( myPosition ++ ) == otherBuffer . get ( otherPosition ++ ) ; } return equalSoFar ; }
public override bool Equals ( object other ) { if ( ! ( other is java . nio . IntBuffer ) ) { return false ; } java . nio . IntBuffer otherBuffer = ( java . nio . IntBuffer ) other ; if ( remaining ( ) != otherBuffer . remaining ( ) ) { return false ; } int myPosition = _position ; int otherPosition = otherBuffer . _position ; bool equalSoFar = true ; while ( equalSoFar && ( myPosition < _limit ) ) { equalSoFar = get ( myPosition ++ ) == otherBuffer . get ( otherPosition ++ ) ; } return equalSoFar ; }
public static void fill ( char [ ] array , int start , int end , char value ) { Arrays . checkStartAndEnd ( array . length , start , end ) ; for ( int i = start ; i < end ; i ++ ) { array [ i ] = value ; } }
public static void fill ( char [ ] array , int start , int end , char value ) { java . util . Arrays . checkStartAndEnd ( array . Length , start , end ) ; { for ( int i = start ; i < end ; i ++ ) { array [ i ] = value ; } } }
public String toString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( "[CALCMODE]\n" ) ; buffer . append ( " .calcmode = " ) . append ( Integer . toHexString ( getCalcMode ( ) ) ) . append ( "\n" ) ; buffer . append ( "[/CALCMODE]\n" ) ; return buffer . toString ( ) ; }
public override String ToString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( "[CALCMODE]\n" ) ; buffer . Append ( " .calcmode = " ) . Append ( StringUtil . ToHexString ( GetCalcMode ( ) ) ) . Append ( "\n" ) ; buffer . Append ( "[/CALCMODE]\n" ) ; return buffer . ToString ( ) ; }
public void setCurrent ( String value ) { current = value . toCharArray ( ) ; cursor = 0 ; limit = value . length ( ) ; limit_backward = 0 ; bra = cursor ; ket = limit ; }
public virtual void SetCurrent ( string value ) { m_current = value . ToCharArray ( ) ; m_cursor = 0 ; m_limit = value . Length ; m_limit_backward = 0 ; m_bra = m_cursor ; m_ket = m_limit ; }
public ShortBuffer put ( int index , short c ) { checkIndex ( index ) ; backingArray [ offset + index ] = c ; return this ; }
public override java . nio . ShortBuffer put ( int index , short c ) { checkIndex ( index ) ; backingArray [ offset + index ] = c ; return this ; }
public EventSubscription deleteEventSubscription ( DeleteEventSubscriptionRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteEventSubscription ( request ) ; }
public virtual DeleteEventSubscriptionResponse DeleteEventSubscription ( DeleteEventSubscriptionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteEventSubscriptionRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteEventSubscriptionResponseUnmarshaller . Instance ; return Invoke < DeleteEventSubscriptionResponse > ( request , options ) ; }
public void setTokenType ( String tokenType ) { this . tokenType = tokenType ; }
public void SetTokenType ( string tokenType ) { this . tokenType = tokenType ; }
public NumericDocValuesField ( String name , long value ) { this ( name , Long . valueOf ( value ) ) ; }
public NumericDocValuesField ( string name , long value ) : base ( name , TYPE ) { FieldsData = new Int64 ( value ) ; }
public AddTagsRequest ( String resourceId ) { setResourceId ( resourceId ) ; }
public AddTagsRequest ( string resourceId ) { _resourceId = resourceId ; }
public ValueEval getRefEval ( int rowIndex , int columnIndex ) { SheetRangeEvaluator sre = getRefEvaluatorForCurrentSheet ( ) ; return new LazyRefEval ( rowIndex , columnIndex , sre ) ; }
public ValueEval GetRefEval ( int rowIndex , int columnIndex ) { SheetRangeEvaluator sre = GetRefEvaluatorForCurrentSheet ( ) ; return new LazyRefEval ( rowIndex , columnIndex , sre ) ; }
public DescribeTaskDefinitionResult describeTaskDefinition ( DescribeTaskDefinitionRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeTaskDefinition ( request ) ; }
public virtual DescribeTaskDefinitionResponse DescribeTaskDefinition ( DescribeTaskDefinitionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeTaskDefinitionRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeTaskDefinitionResponseUnmarshaller . Instance ; return Invoke < DescribeTaskDefinitionResponse > ( request , options ) ; }
public void sort ( ) { if ( count > 1 ) ArrayUtil . timSort ( points , 0 , count ) ; }
public void Sort ( ) { if ( count > 1 ) { ArrayUtil . TimSort ( points , 0 , count ) ; } }
public static final RevFilter before ( long ts ) { return new Before ( ts ) ; }
public static RevFilter Before ( DateTime ts ) { return Before ( ts . GetTime ( ) ) ; }
public void set ( E object ) { throw new UnsupportedOperationException ( ) ; }
public virtual void set ( E @ object ) { throw new System . NotSupportedException ( ) ; }
public EscherDggRecord getDgg ( ) { return dgg ; }
public EscherDggRecord GetDgg ( ) { return dgg ; }
public ListenerHandle addConfigChangedListener ( ConfigChangedListener listener ) { return addListener ( ConfigChangedListener . class , listener ) ; }
public virtual ListenerHandle AddConfigChangedListener ( ConfigChangedListener listener ) { return AddListener < ConfigChangedListener > ( listener ) ; }
public DetectSentimentResult detectSentiment ( DetectSentimentRequest request ) { request = beforeClientExecution ( request ) ; return executeDetectSentiment ( request ) ; }
public virtual DetectSentimentResponse DetectSentiment ( DetectSentimentRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DetectSentimentRequestMarshaller . Instance ; options . ResponseUnmarshaller = DetectSentimentResponseUnmarshaller . Instance ; return Invoke < DetectSentimentResponse > ( request , options ) ; }
public void decode ( byte [ ] blocks , int blocksOffset , long [ ] values , int valuesOffset , int iterations ) { for ( int j = 0 ; j < iterations ; ++ j ) { final byte block = blocks [ blocksOffset ++ ] ; values [ valuesOffset ++ ] = ( block > > > 6 ) & 3 ; values [ valuesOffset ++ ] = ( block > > > 4 ) & 3 ; values [ valuesOffset ++ ] = ( block > > > 2 ) & 3 ; values [ valuesOffset ++ ] = block & 3 ; } }
public override void Decode ( byte [ ] blocks , int blocksOffset , long [ ] values , int valuesOffset , int iterations ) { for ( int j = 0 ; j < iterations ; ++ j ) { var block = blocks [ blocksOffset ++ ] ; values [ valuesOffset ++ ] = ( ( int ) ( ( uint ) block > > 6 ) ) & 3 ; values [ valuesOffset ++ ] = ( ( int ) ( ( uint ) block > > 4 ) ) & 3 ; values [ valuesOffset ++ ] = ( ( int ) ( ( uint ) block > > 2 ) ) & 3 ; values [ valuesOffset ++ ] = block & 3 ; } }
public HeaderRecord clone ( ) { return copy ( ) ; }
public override Object Clone ( ) { return new HeaderRecord ( this . Text ) ; }
public CreateEndpointConfigResult createEndpointConfig ( CreateEndpointConfigRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateEndpointConfig ( request ) ; }
public virtual CreateEndpointConfigResponse CreateEndpointConfig ( CreateEndpointConfigRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateEndpointConfigRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateEndpointConfigResponseUnmarshaller . Instance ; return Invoke < CreateEndpointConfigResponse > ( request , options ) ; }
public Interpolator getInterpolator ( ) { return mInterpolator ; }
public virtual android . view . animation . Interpolator getInterpolator ( ) { return mInterpolator ; }
public GetSolutionMetricsResult getSolutionMetrics ( GetSolutionMetricsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetSolutionMetrics ( request ) ; }
public virtual GetSolutionMetricsResponse GetSolutionMetrics ( GetSolutionMetricsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetSolutionMetricsRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetSolutionMetricsResponseUnmarshaller . Instance ; return Invoke < GetSolutionMetricsResponse > ( request , options ) ; }
public StopActivityStreamResult stopActivityStream ( StopActivityStreamRequest request ) { request = beforeClientExecution ( request ) ; return executeStopActivityStream ( request ) ; }
public virtual StopActivityStreamResponse StopActivityStream ( StopActivityStreamRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = StopActivityStreamRequestMarshaller . Instance ; options . ResponseUnmarshaller = StopActivityStreamResponseUnmarshaller . Instance ; return Invoke < StopActivityStreamResponse > ( request , options ) ; }
public ListTypedLinkFacetAttributesResult listTypedLinkFacetAttributes ( ListTypedLinkFacetAttributesRequest request ) { request = beforeClientExecution ( request ) ; return executeListTypedLinkFacetAttributes ( request ) ; }
public virtual ListTypedLinkFacetAttributesResponse ListTypedLinkFacetAttributes ( ListTypedLinkFacetAttributesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListTypedLinkFacetAttributesRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListTypedLinkFacetAttributesResponseUnmarshaller . Instance ; return Invoke < ListTypedLinkFacetAttributesResponse > ( request , options ) ; }
public ListSentimentDetectionJobsResult listSentimentDetectionJobs ( ListSentimentDetectionJobsRequest request ) { request = beforeClientExecution ( request ) ; return executeListSentimentDetectionJobs ( request ) ; }
public virtual ListSentimentDetectionJobsResponse ListSentimentDetectionJobs ( ListSentimentDetectionJobsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListSentimentDetectionJobsRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListSentimentDetectionJobsResponseUnmarshaller . Instance ; return Invoke < ListSentimentDetectionJobsResponse > ( request , options ) ; }
public GetAccountSendingEnabledResult getAccountSendingEnabled ( GetAccountSendingEnabledRequest request ) { request = beforeClientExecution ( request ) ; return executeGetAccountSendingEnabled ( request ) ; }
public virtual GetAccountSendingEnabledResponse GetAccountSendingEnabled ( GetAccountSendingEnabledRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetAccountSendingEnabledRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetAccountSendingEnabledResponseUnmarshaller . Instance ; return Invoke < GetAccountSendingEnabledResponse > ( request , options ) ; }
public static int getBuiltinFormat ( String pFmt ) { String fmt = "TEXT" . equalsIgnoreCase ( pFmt ) ? "@" : pFmt ; int i = - 1 ; for ( String f : _formats ) { i ++ ; if ( f . equals ( fmt ) ) { return i ; } } return - 1 ; }
public static int GetBuiltinFormat ( String pFmt ) { String fmt ; if ( string . Compare ( pFmt , ( "TEXT" ) , StringComparison . OrdinalIgnoreCase ) == 0 ) { fmt = "@" ; } else { fmt = pFmt ; } for ( int i = 0 ; i < _formats . Length ; i ++ ) { if ( fmt . Equals ( _formats [ i ] ) ) { return i ; } } return - 1 ; }
public void simpleValue ( StringBuffer toAppendTo , Object value ) { formatValue ( toAppendTo , value ) ; }
public override void SimpleValue ( StringBuilder toAppendTo , Object value ) { FormatValue ( toAppendTo , value ) ; }
public BatchCheckLayerAvailabilityResult batchCheckLayerAvailability ( BatchCheckLayerAvailabilityRequest request ) { request = beforeClientExecution ( request ) ; return executeBatchCheckLayerAvailability ( request ) ; }
public virtual BatchCheckLayerAvailabilityResponse BatchCheckLayerAvailability ( BatchCheckLayerAvailabilityRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = BatchCheckLayerAvailabilityRequestMarshaller . Instance ; options . ResponseUnmarshaller = BatchCheckLayerAvailabilityResponseUnmarshaller . Instance ; return Invoke < BatchCheckLayerAvailabilityResponse > ( request , options ) ; }
public void clearSubRecords ( ) { subrecords . clear ( ) ; }
public void ClearSubRecords ( ) { subrecords . Clear ( ) ; }
public List < Ref > call ( ) throws GitAPIException { checkCallable ( ) ; List < Ref > tags = new ArrayList < > ( ) ; try ( RevWalk revWalk = new RevWalk ( repo ) ) { List < Ref > refList = repo . getRefDatabase ( ) . getRefsByPrefix ( Constants . R_TAGS ) ; for ( Ref ref : refList ) { tags . add ( ref ) ; } } catch ( IOException e ) { throw new JGitInternalException ( e . getMessage ( ) , e ) ; } Collections . sort ( tags , ( Ref o1 , Ref o2 ) -> o1 . getName ( ) . compareTo ( o2 . getName ( ) ) ) ; setCallable ( false ) ; return tags ; }
public override IList < Ref > Call ( ) { CheckCallable ( ) ; IDictionary < string , Ref > refList ; IList < Ref > tags = new AList < Ref > ( ) ; RevWalk revWalk = new RevWalk ( repo ) ; try { refList = repo . RefDatabase . GetRefs ( Constants . R_TAGS ) ; foreach ( Ref @ ref in refList . Values ) { tags . AddItem ( @ ref ) ; } } catch ( IOException e ) { throw new JGitInternalException ( e . Message , e ) ; } finally { revWalk . Release ( ) ; } tags . Sort ( new _IComparer_92 ( ) ) ; SetCallable ( false ) ; return tags ; }
public synchronized void clear ( ) { cache . clear ( ) ; }
public virtual void Clear ( ) { lock ( this ) { cache . Clear ( ) ; } }
public int indexOf ( E object , int from ) { Object [ ] snapshot = elements ; return indexOf ( object , snapshot , from , snapshot . length ) ; }
public virtual int indexOf ( E @ object , int from ) { object [ ] snapshot = elements ; return indexOf ( @ object , snapshot , from , snapshot . Length ) ; }
public String highlightTerm ( String originalText , TokenGroup tokenGroup ) { if ( tokenGroup . getTotalScore ( ) == 0 ) return originalText ; float score = tokenGroup . getTotalScore ( ) ; if ( score == 0 ) { return originalText ; } StringBuilder sb = new StringBuilder ( originalText . length ( ) + EXTRA ) ; sb . append ( "<span style=\"" ) ; if ( highlightForeground ) { sb . append ( "color: " ) ; sb . append ( getForegroundColorString ( score ) ) ; sb . append ( "; " ) ; } if ( highlightBackground ) { sb . append ( "background: " ) ; sb . append ( getBackgroundColorString ( score ) ) ; sb . append ( "; " ) ; } sb . append ( "\">" ) ; sb . append ( originalText ) ; sb . append ( "</span>" ) ; return sb . toString ( ) ; }
public override string HighlightTerm ( string originalText , TokenGroup tokenGroup ) { if ( tokenGroup . TotalScore == 0 ) return originalText ; float score = tokenGroup . TotalScore ; if ( score == 0 ) { return originalText ; } var sb = new StringBuilder ( originalText . Length + EXTRA ) ; sb . Append ( "<span style=\"" ) ; if ( m_highlightForeground ) { sb . Append ( "color: " ) ; sb . Append ( GetForegroundColorString ( score ) ) ; sb . Append ( "; " ) ; } if ( m_highlightBackground ) { sb . Append ( "background: " ) ; sb . Append ( GetBackgroundColorString ( score ) ) ; sb . Append ( "; " ) ; } sb . Append ( "\">" ) ; sb . Append ( originalText ) ; sb . Append ( "</span>" ) ; return sb . ToString ( ) ; }
public PasswordRecord getPasswordRecord ( ) { return _passwordRecord ; }
public PasswordRecord GetPasswordRecord ( ) { return _passwordRecord ; }
public SlicedIndexInput clone ( ) { SlicedIndexInput clone = ( SlicedIndexInput ) super . clone ( ) ; clone . base = base . clone ( ) ; clone . fileOffset = fileOffset ; clone . length = length ; return clone ; }
public override object Clone ( ) { SlicedIndexInput clone = ( SlicedIndexInput ) base . Clone ( ) ; clone . @ base = ( IndexInput ) @ base . Clone ( ) ; clone . fileOffset = fileOffset ; clone . length = length ; return clone ; }
public int getSourceLine ( int idx ) { return sourceLines [ idx ] - 1 ; }
public virtual int GetSourceLine ( int idx ) { return sourceLines [ idx ] - 1 ; }
public DeleteResolverRuleResult deleteResolverRule ( DeleteResolverRuleRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteResolverRule ( request ) ; }
public virtual DeleteResolverRuleResponse DeleteResolverRule ( DeleteResolverRuleRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteResolverRuleRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteResolverRuleResponseUnmarshaller . Instance ; return Invoke < DeleteResolverRuleResponse > ( request , options ) ; }
static public double ppmt ( double r , int per , int nper , double pv , double fv , int type ) { return pmt ( r , nper , pv , fv , type ) - ipmt ( r , per , nper , pv , fv , type ) ; }
static public double PPMT ( double r , int per , int nper , double pv , double fv , int type ) { return PMT ( r , nper , pv , fv , type ) - IPMT ( r , per , nper , pv , fv , type ) ; }
@ Override public Set < K > keySet ( ) { return navigableKeySet ( ) ; }
public override java . util . Set < K > keySet ( ) { return this . navigableKeySet ( ) ; }
public boolean stem ( ) { if ( ! r_more_than_one_syllable_word ( ) ) { return false ; } limit_backward = cursor ; cursor = limit ; int v_1 = limit - cursor ; r_stem_nominal_verb_suffixes ( ) ; cursor = limit - v_1 ; if ( ! ( B_continue_stemming_noun_suffixes ) ) { return false ; } int v_2 = limit - cursor ; r_stem_noun_suffixes ( ) ; cursor = limit - v_2 ; cursor = limit_backward ; if ( ! r_postlude ( ) ) { return false ; } return true ; }
public override bool Stem ( ) { int v_1 ; int v_2 ; if ( ! r_more_than_one_syllable_word ( ) ) { return false ; } m_limit_backward = m_cursor ; m_cursor = m_limit ; v_1 = m_limit - m_cursor ; do { if ( ! r_stem_nominal_verb_suffixes ( ) ) { goto lab0 ; } } while ( false ) ; lab0 : m_cursor = m_limit - v_1 ; if ( ! ( B_continue_stemming_noun_suffixes ) ) { return false ; } v_2 = m_limit - m_cursor ; do { if ( ! r_stem_noun_suffixes ( ) ) { goto lab1 ; } } while ( false ) ; lab1 : m_cursor = m_limit - v_2 ; m_cursor = m_limit_backward ; if ( ! r_postlude ( ) ) { return false ; } return true ; }
public ListShardsResult listShards ( ListShardsRequest request ) { request = beforeClientExecution ( request ) ; return executeListShards ( request ) ; }
public virtual ListShardsResponse ListShards ( ListShardsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListShardsRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListShardsResponseUnmarshaller . Instance ; return Invoke < ListShardsResponse > ( request , options ) ; }
public SearcherAndTaxonomy ( IndexSearcher searcher , DirectoryTaxonomyReader taxonomyReader ) { this . searcher = searcher ; this . taxonomyReader = taxonomyReader ; }
public SearcherAndTaxonomy ( IndexSearcher searcher , DirectoryTaxonomyReader taxonomyReader ) { this . Searcher = searcher ; this . TaxonomyReader = taxonomyReader ; }
public TreeFilter clone ( ) { return this ; }
public override TreeFilter Clone ( ) { return this ; }
public void set ( int index , long value ) { final int o = index / 6 ; final int b = index % 6 ; final int shift = b * 10 ; blocks [ o ] = ( blocks [ o ] & ~ ( 1023L << shift ) ) | ( value << shift ) ; }
public override void Set ( int index , long value ) { int o = index / 6 ; int b = index % 6 ; int shift = b * 10 ; blocks [ o ] = ( blocks [ o ] & ~ ( 1023L << shift ) ) | ( value << shift ) ; }
public boolean add ( String text ) { return map . put ( text , PLACEHOLDER ) == null ; }
public virtual bool Add ( object o ) { return map . Put ( o ) ; }
public Position get ( int pos ) { while ( pos >= nextPos ) { if ( count == positions . length ) { Position [ ] newPositions = new Position [ ArrayUtil . oversize ( 1 + count , RamUsageEstimator . NUM_BYTES_OBJECT_REF ) ] ; System . arraycopy ( positions , nextWrite , newPositions , 0 , positions . length - nextWrite ) ; System . arraycopy ( positions , 0 , newPositions , positions . length - nextWrite , nextWrite ) ; for ( int i = positions . length ; i < newPositions . length ; i ++ ) { newPositions [ i ] = new Position ( ) ; } nextWrite = positions . length ; positions = newPositions ; } if ( nextWrite == positions . length ) { nextWrite = 0 ; } assert positions [ nextWrite ] . count == 0 ; positions [ nextWrite ++ ] . pos = nextPos ++ ; count ++ ; } assert inBounds ( pos ) ; final int index = getIndex ( pos ) ; assert positions [ index ] . pos == pos ; return positions [ index ] ; }
public Position Get ( int pos ) { while ( pos >= nextPos ) { if ( count == positions . Length ) { Position [ ] newPositions = new Position [ ArrayUtil . Oversize ( 1 + count , RamUsageEstimator . NUM_BYTES_OBJECT_REF ) ] ; System . Array . Copy ( positions , nextWrite , newPositions , 0 , positions . Length - nextWrite ) ; System . Array . Copy ( positions , 0 , newPositions , positions . Length - nextWrite , nextWrite ) ; for ( int i = positions . Length ; i < newPositions . Length ; i ++ ) { newPositions [ i ] = new Position ( ) ; } nextWrite = positions . Length ; positions = newPositions ; } if ( nextWrite == positions . Length ) { nextWrite = 0 ; } Debug . Assert ( positions [ nextWrite ] . count == 0 ) ; positions [ nextWrite ++ ] . pos = nextPos ++ ; count ++ ; } Debug . Assert ( InBounds ( pos ) ) ; int index = GetIndex ( pos ) ; Debug . Assert ( positions [ index ] . pos == pos ) ; return positions [ index ] ; }
public synchronized void reset ( ) { pos = 0 ; }
public override void reset ( ) { lock ( this ) { pos = 0 ; } }
public void configure ( FacetsConfig config ) { for ( int i = 0 ; i < maxDims ; i ++ ) { config . setHierarchical ( Integer . toString ( i ) , true ) ; config . setMultiValued ( Integer . toString ( i ) , true ) ; } }
public override void Configure ( FacetsConfig config ) { for ( int i = 0 ; i < maxDims ; i ++ ) { config . SetHierarchical ( i . ToString ( CultureInfo . InvariantCulture ) , true ) ; config . SetMultiValued ( i . ToString ( CultureInfo . InvariantCulture ) , true ) ; } }
public boolean equals ( Object obj ) { if ( obj == null ) return false ; if ( obj == this ) return true ; if ( obj . getClass ( ) != getClass ( ) ) return false ; HSSFClientAnchor anchor = ( HSSFClientAnchor ) obj ; return anchor . getCol1 ( ) == getCol1 ( ) && anchor . getCol2 ( ) == getCol2 ( ) && anchor . getDx1 ( ) == getDx1 ( ) && anchor . getDx2 ( ) == getDx2 ( ) && anchor . getDy1 ( ) == getDy1 ( ) && anchor . getDy2 ( ) == getDy2 ( ) && anchor . getRow1 ( ) == getRow1 ( ) && anchor . getRow2 ( ) == getRow2 ( ) && anchor . getAnchorType ( ) == getAnchorType ( ) ; }
public override bool Equals ( Object obj ) { if ( obj == null ) return false ; if ( obj == this ) return true ; if ( obj . GetType ( ) != GetType ( ) ) return false ; HSSFClientAnchor anchor = ( HSSFClientAnchor ) obj ; return anchor . Col1 == Col1 && anchor . Col2 == Col2 && anchor . Dx1 == Dx1 && anchor . Dx2 == Dx2 && anchor . Dy1 == Dy1 && anchor . Dy2 == Dy2 && anchor . Row1 == Row1 && anchor . Row2 == Row2 && anchor . AnchorType == AnchorType ; }
public Set < String > getMissing ( ) { return Collections . unmodifiableSet ( diff . getMissing ( ) ) ; }
public virtual ICollection < string > GetMissing ( ) { return Sharpen . Collections . UnmodifiableSet ( diff . GetMissing ( ) ) ; }
public static IndexWriterConfig createWriterConfig ( Config config , PerfRunData runData , OpenMode mode , IndexCommit commit ) { IndexWriterConfig iwConf = new IndexWriterConfig ( runData . getAnalyzer ( ) ) ; iwConf . setOpenMode ( mode ) ; IndexDeletionPolicy indexDeletionPolicy = getIndexDeletionPolicy ( config ) ; iwConf . setIndexDeletionPolicy ( indexDeletionPolicy ) ; if ( commit != null ) { iwConf . setIndexCommit ( commit ) ; } final String mergeScheduler = config . get ( "merge.scheduler" , "org.apache.lucene.index.ConcurrentMergeScheduler" ) ; if ( mergeScheduler . equals ( NoMergeScheduler . class . getName ( ) ) ) { iwConf . setMergeScheduler ( NoMergeScheduler . INSTANCE ) ; } else { try { iwConf . setMergeScheduler ( Class . forName ( mergeScheduler ) . asSubclass ( MergeScheduler . class ) . getConstructor ( ) . newInstance ( ) ) ; } catch ( Exception e ) { } } }
public static IndexWriterConfig CreateWriterConfig ( Config config , PerfRunData runData , OpenMode mode , IndexCommit commit ) { LuceneVersion version = ( LuceneVersion ) Enum . Parse ( typeof ( LuceneVersion ) , config . Get ( "writer.version" , LuceneVersion . LUCENE_48 . ToString ( ) ) ) ; IndexWriterConfig iwConf = new IndexWriterConfig ( version , runData . Analyzer ) ; iwConf . OpenMode = mode ; IndexDeletionPolicy indexDeletionPolicy = GetIndexDeletionPolicy ( config ) ; iwConf . IndexDeletionPolicy = indexDeletionPolicy ; if ( commit != null ) iwConf . IndexCommit = commit ; string mergeScheduler = config . Get ( "merge.scheduler" , "Lucene.Net.Index.ConcurrentMergeScheduler, Lucene.Net" ) ; if ( mergeScheduler . Contains ( ".ConcurrentMergeScheduler," ) ) { mergeScheduler = "Lucene.Net.Index.TaskMergeScheduler, Lucene.Net" ; } Type mergeSchedulerType = Type . GetType ( mergeScheduler ) ; if ( mergeSchedulerType == null ) { throw new Exception ( "Unrecognized merge scheduler type '" + mergeScheduler + "'" ) ; } else if ( mergeSchedulerType . Equals ( typeof ( NoMergeScheduler ) ) ) { iwConf . MergeScheduler = NoMergeScheduler . INSTANCE ; } else { try { iwConf . MergeScheduler = ( IMergeScheduler ) Activator . CreateInstance ( mergeSchedulerType ) ; } catch ( Exception e ) { } } }
public GetCapacityReservationUsageResult getCapacityReservationUsage ( GetCapacityReservationUsageRequest request ) { request = beforeClientExecution ( request ) ; return executeGetCapacityReservationUsage ( request ) ; }
public virtual GetCapacityReservationUsageResponse GetCapacityReservationUsage ( GetCapacityReservationUsageRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetCapacityReservationUsageRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetCapacityReservationUsageResponseUnmarshaller . Instance ; return Invoke < GetCapacityReservationUsageResponse > ( request , options ) ; }
public void addRule ( HSSFConditionalFormattingRule cfRule ) { cfAggregate . addRule ( cfRule . getCfRuleRecord ( ) ) ; }
public void AddRule ( HSSFConditionalFormattingRule cfRule ) { cfAggregate . AddRule ( cfRule . CfRuleRecord ) ; }
public DocState ( boolean reuseFields , FieldType ft , FieldType bodyFt ) { this . reuseFields = reuseFields ; if ( reuseFields ) { fields = new HashMap < > ( ) ; numericFields = new HashMap < > ( ) ; fields . put ( BODY_FIELD , new Field ( BODY_FIELD , "" , bodyFt ) ) ; fields . put ( TITLE_FIELD , new Field ( TITLE_FIELD , "" , ft ) ) ; fields . put ( DATE_FIELD , new Field ( DATE_FIELD , "" , ft ) ) ; fields . put ( ID_FIELD , new StringField ( ID_FIELD , "" , Field . Store . YES ) ) ; fields . put ( NAME_FIELD , new Field ( NAME_FIELD , "" , ft ) ) ; numericFields . put ( DATE_MSEC_FIELD , new LongPoint ( DATE_MSEC_FIELD , 0L ) ) ; numericFields . put ( TIME_SEC_FIELD , new IntPoint ( TIME_SEC_FIELD , 0 ) ) ; doc = new Document ( ) ; } else { numericFields = null ; fields = null ; doc = null ; } }
public DocState ( bool reuseFields , FieldType ft , FieldType bodyFt ) { this . reuseFields = reuseFields ; if ( reuseFields ) { fields = new Dictionary < string , Field > ( ) ; numericFields = new Dictionary < string , Field > ( ) ; fields [ BODY_FIELD ] = new Field ( BODY_FIELD , "" , bodyFt ) ; fields [ TITLE_FIELD ] = new Field ( TITLE_FIELD , "" , ft ) ; fields [ DATE_FIELD ] = new Field ( DATE_FIELD , "" , ft ) ; fields [ ID_FIELD ] = new StringField ( ID_FIELD , "" , Field . Store . YES ) ; fields [ NAME_FIELD ] = new Field ( NAME_FIELD , "" , ft ) ; numericFields [ DATE_MSEC_FIELD ] = new Int64Field ( DATE_MSEC_FIELD , 0L , Field . Store . NO ) ; numericFields [ TIME_SEC_FIELD ] = new Int32Field ( TIME_SEC_FIELD , 0 , Field . Store . NO ) ; doc = new Document ( ) ; } else { numericFields = null ; fields = null ; doc = null ; } }
public char [ ] getValue ( ) { return value ; }
public virtual char [ ] GetValue ( ) { return value ; }
public void updateNameCommentRecordCache ( final NameCommentRecord commentRecord ) { if ( commentRecords . containsValue ( commentRecord ) ) { for ( Entry < String , NameCommentRecord > entry : commentRecords . entrySet ( ) ) { if ( entry . getValue ( ) . equals ( commentRecord ) ) { commentRecords . remove ( entry . getKey ( ) ) ; break ; } } } commentRecords . put ( commentRecord . getNameText ( ) , commentRecord ) ; }
public void UpdateNameCommentRecordCache ( NameCommentRecord commentRecord ) { if ( commentRecords . ContainsValue ( commentRecord ) ) { foreach ( KeyValuePair < string , NameCommentRecord > entry in commentRecords ) { if ( entry . Value . Equals ( commentRecord ) ) { commentRecords . Remove ( entry . Key ) ; break ; } } } commentRecords [ commentRecord . NameText ] = commentRecord ; }
public CompleteMultipartUploadRequest ( String vaultName , String uploadId , String archiveSize , String checksum ) { setVaultName ( vaultName ) ; setUploadId ( uploadId ) ; setArchiveSize ( archiveSize ) ; setChecksum ( checksum ) ; }
public CompleteMultipartUploadRequest ( string vaultName , string uploadId , string archiveSize , string checksum ) { _vaultName = vaultName ; _uploadId = uploadId ; _archiveSize = archiveSize ; _checksum = checksum ; }
public Query getQuery ( Element n ) throws ParserException { QueryBuilder builder = builders . get ( n . getNodeName ( ) ) ; if ( builder == null ) { throw new ParserException ( "No QueryObjectBuilder defined for node " + n . getNodeName ( ) ) ; } return builder . getQuery ( n ) ; }
public virtual Query GetQuery ( XmlElement n ) { IQueryBuilder builder ; if ( ! builders . TryGetValue ( n . Name , out builder ) || builder == null ) { throw new ParserException ( "No QueryObjectBuilder defined for node " + n . Name ) ; } return builder . GetQuery ( n ) ; }
public static double nper ( double r , double y , double p , double f , boolean t ) { double retval = 0 ; if ( r == 0 ) { retval = - 1 * ( f + p ) / y ; } else { double r1 = r + 1 ; double ryr = ( t ? r1 : 1 ) * y / r ; double a1 = ( ( ryr - f ) < 0 ) ? Math . log ( f - ryr ) : Math . log ( ryr - f ) ; double a2 = ( ( ryr - f ) < 0 ) ? Math . log ( - p - ryr ) : Math . log ( p + ryr ) ; double a3 = Math . log ( r1 ) ; retval = ( a1 - a2 ) / a3 ; } return retval ; }
public static double nper ( double r , double y , double p , double f , bool t ) { double retval = 0 ; if ( r == 0 ) { retval = - 1 * ( f + p ) / y ; } else { double r1 = r + 1 ; double ryr = ( t ? r1 : 1 ) * y / r ; double a1 = ( ( ryr - f ) < 0 ) ? Math . Log ( f - ryr ) : Math . Log ( ryr - f ) ; double a2 = ( ( ryr - f ) < 0 ) ? Math . Log ( - p - ryr ) : Math . Log ( p + ryr ) ; double a3 = Math . Log ( r1 ) ; retval = ( a1 - a2 ) / a3 ; } return retval ; }
public AndQueryNode ( List < QueryNode > clauses ) { super ( clauses ) ; if ( ( clauses == null ) || ( clauses . size ( ) == 0 ) ) { throw new IllegalArgumentException ( "AND query must have at least one clause" ) ; } }
public AndQueryNode ( IList < IQueryNode > clauses ) : base ( clauses ) { if ( ( clauses == null ) || ( clauses . Count == 0 ) ) { throw new ArgumentException ( "AND query must have at least one clause" ) ; } }
public SeriesListRecord ( short [ ] seriesNumbers ) { field_1_seriesNumbers = ( seriesNumbers == null ) ? null : seriesNumbers . clone ( ) ; }
public SeriesListRecord ( short [ ] seriesNumbers ) { field_1_seriesNumbers = seriesNumbers ; }
public String toString ( ) { return value + ", " + begin + ", " + end ; }
public override string ToString ( ) { return value + ", " + begin + ", " + end ; }
public String toString ( ) { return "<StandardQueryParser config=\"" + this . getQueryConfigHandler ( ) + "\"/>" ; }
public override string ToString ( ) { return "<StandardQueryParser config=\"" + this . QueryConfigHandler + "\"/>" ; }
public DescribeActivitiesResult describeActivities ( DescribeActivitiesRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeActivities ( request ) ; }
public virtual DescribeActivitiesResponse DescribeActivities ( DescribeActivitiesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeActivitiesRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeActivitiesResponseUnmarshaller . Instance ; return Invoke < DescribeActivitiesResponse > ( request , options ) ; }
public int writeTokenValueBytes ( LittleEndianOutput out ) { out . writeByte ( _nColumns - 1 ) ; out . writeShort ( _nRows - 1 ) ; ConstantValueParser . encode ( out , _arrayValues ) ; return 3 + ConstantValueParser . getEncodedSize ( _arrayValues ) ; }
public int WriteTokenValueBytes ( ILittleEndianOutput out1 ) { out1 . WriteByte ( _nColumns - 1 ) ; out1 . WriteShort ( _nRows - 1 ) ; ConstantValueParser . Encode ( out1 , _arrayValues ) ; return 3 + ConstantValueParser . GetEncodedSize ( _arrayValues ) ; }
public DescribeFleetMetadataResult describeFleetMetadata ( DescribeFleetMetadataRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeFleetMetadata ( request ) ; }
public virtual DescribeFleetMetadataResponse DescribeFleetMetadata ( DescribeFleetMetadataRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeFleetMetadataRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeFleetMetadataResponseUnmarshaller . Instance ; return Invoke < DescribeFleetMetadataResponse > ( request , options ) ; }
public GlobalCluster modifyGlobalCluster ( ModifyGlobalClusterRequest request ) { request = beforeClientExecution ( request ) ; return executeModifyGlobalCluster ( request ) ; }
public virtual ModifyGlobalClusterResponse ModifyGlobalCluster ( ModifyGlobalClusterRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ModifyGlobalClusterRequestMarshaller . Instance ; options . ResponseUnmarshaller = ModifyGlobalClusterResponseUnmarshaller . Instance ; return Invoke < ModifyGlobalClusterResponse > ( request , options ) ; }
public DescribeIdentityIdFormatResult describeIdentityIdFormat ( DescribeIdentityIdFormatRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeIdentityIdFormat ( request ) ; }
public virtual DescribeIdentityIdFormatResponse DescribeIdentityIdFormat ( DescribeIdentityIdFormatRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeIdentityIdFormatRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeIdentityIdFormatResponseUnmarshaller . Instance ; return Invoke < DescribeIdentityIdFormatResponse > ( request , options ) ; }
public ListUserGroupsResult listUserGroups ( ListUserGroupsRequest request ) { request = beforeClientExecution ( request ) ; return executeListUserGroups ( request ) ; }
public virtual ListUserGroupsResponse ListUserGroups ( ListUserGroupsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListUserGroupsRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListUserGroupsResponseUnmarshaller . Instance ; return Invoke < ListUserGroupsResponse > ( request , options ) ; }
public RevertCommand include ( String name , AnyObjectId commit ) { return include ( new ObjectIdRef . Unpeeled ( Storage . LOOSE , name , commit . copy ( ) ) ) ; }
public virtual NGit . Api . RevertCommand Include ( string name , AnyObjectId commit ) { return Include ( new ObjectIdRef . Unpeeled ( RefStorage . LOOSE , name , commit . Copy ( ) ) ) ; }
public BeiderMorseFilter ( TokenStream input , PhoneticEngine engine , LanguageSet languages ) { super ( input ) ; this . engine = engine ; this . languages = languages ; }
public BeiderMorseFilter ( TokenStream input , PhoneticEngine engine , LanguageSet languages ) : base ( input ) { this . engine = engine ; this . languages = languages ; this . termAtt = AddAttribute < ICharTermAttribute > ( ) ; this . posIncAtt = AddAttribute < IPositionIncrementAttribute > ( ) ; }