question stringlengths 33 1.59k | target stringlengths 33 1.58k |
|---|---|
public Editable newEditable ( CharSequence source ) { return new CalculatorEditable ( source , mLogic ) ; } | public virtual android . text . Editable newEditable ( java . lang . CharSequence source ) { return new android . text . SpannableStringBuilder ( source ) ; } |
public static TreeFilter createFromStrings ( String ... paths ) { if ( paths . length == 0 ) throw new IllegalArgumentException ( JGitText . get ( ) . atLeastOnePathIsRequired ) ; final int length = paths . length ; final PathFilter [ ] p = new PathFilter [ length ] ; for ( int i = 0 ; i < length ; i ++ ) p [ i ] = PathFilter . create ( paths [ i ] ) ; return create ( p ) ; } | public static TreeFilter CreateFromStrings ( params string [ ] paths ) { if ( paths . Length == 0 ) { throw new ArgumentException ( JGitText . Get ( ) . atLeastOnePathIsRequired ) ; } int length = paths . Length ; PathFilter [ ] p = new PathFilter [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { p [ i ] = PathFilter . Create ( paths [ i ] ) ; } return Create ( p ) ; } |
public DescribeHostedConnectionsResult describeHostedConnections ( DescribeHostedConnectionsRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeHostedConnections ( request ) ; } | public virtual DescribeHostedConnectionsResponse DescribeHostedConnections ( DescribeHostedConnectionsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeHostedConnectionsRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeHostedConnectionsResponseUnmarshaller . Instance ; return Invoke < DescribeHostedConnectionsResponse > ( request , options ) ; } |
public RejectTransitGatewayPeeringAttachmentResult rejectTransitGatewayPeeringAttachment ( RejectTransitGatewayPeeringAttachmentRequest request ) { request = beforeClientExecution ( request ) ; return executeRejectTransitGatewayPeeringAttachment ( request ) ; } | public virtual RejectTransitGatewayPeeringAttachmentResponse RejectTransitGatewayPeeringAttachment ( RejectTransitGatewayPeeringAttachmentRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = RejectTransitGatewayPeeringAttachmentRequestMarshaller . Instance ; options . ResponseUnmarshaller = RejectTransitGatewayPeeringAttachmentResponseUnmarshaller . Instance ; return Invoke < RejectTransitGatewayPeeringAttachmentResponse > ( request , options ) ; } |
public static double toPoints ( long emu ) { return ( double ) emu / EMU_PER_POINT ; } | public static double ToPoints ( long emu ) { return ( double ) emu / EMU_PER_POINT ; } |
public ValueEval evaluate ( int srcRowIndex , int srcColumnIndex , ValueEval arg0 , ValueEval arg1 ) { return arg1 ; } | public override ValueEval Evaluate ( int srcRowIndex , int srcColumnIndex , ValueEval arg0 , ValueEval arg1 ) { return arg1 ; } |
public final BytesRef getBinaryValue ( String name ) { for ( IndexableField field : fields ) { if ( field . name ( ) . equals ( name ) ) { final BytesRef bytes = field . binaryValue ( ) ; if ( bytes != null ) { return bytes ; } } } return null ; } | public BytesRef GetBinaryValue ( string name ) { foreach ( IIndexableField field in fields ) { if ( field . Name . Equals ( name , StringComparison . Ordinal ) ) { BytesRef bytes = field . GetBinaryValue ( ) ; if ( bytes != null ) { return bytes ; } } } return null ; } |
public CRNBlock ( RecordStream rs ) { _countRecord = ( CRNCountRecord ) rs . getNext ( ) ; int nCRNs = _countRecord . getNumberOfCRNs ( ) ; CRNRecord [ ] crns = new CRNRecord [ nCRNs ] ; for ( int i = 0 ; i < crns . length ; i ++ ) { crns [ i ] = ( CRNRecord ) rs . getNext ( ) ; } _crns = crns ; } | public CRNBlock ( RecordStream rs ) { _countRecord = ( CRNCountRecord ) rs . GetNext ( ) ; int nCRNs = _countRecord . NumberOfCRNs ; CRNRecord [ ] crns = new CRNRecord [ nCRNs ] ; for ( int i = 0 ; i < crns . Length ; i ++ ) { crns [ i ] = ( CRNRecord ) rs . GetNext ( ) ; } _crns = crns ; } |
public int get ( int index , long [ ] arr , int off , int len ) { return current . get ( index , arr , off , len ) ; } | public override int Get ( int index , long [ ] arr , int off , int len ) { return current . Get ( index , arr , off , len ) ; } |
public LooseRef peel ( ObjectIdRef newLeaf ) { return this ; } | public RefDirectory . LooseRef Peel ( ObjectIdRef newLeaf ) { return this ; } |
public UpdateModelVersionResult updateModelVersion ( UpdateModelVersionRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateModelVersion ( request ) ; } | public virtual UpdateModelVersionResponse UpdateModelVersion ( UpdateModelVersionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = UpdateModelVersionRequestMarshaller . Instance ; options . ResponseUnmarshaller = UpdateModelVersionResponseUnmarshaller . Instance ; return Invoke < UpdateModelVersionResponse > ( request , options ) ; } |
public Builder ( ) { PositiveIntOutputs outputs = PositiveIntOutputs . getSingleton ( ) ; fstCompiler = new FSTCompiler < > ( FST . INPUT_TYPE . BYTE1 , outputs ) ; scratchInts = new IntsRefBuilder ( ) ; } | public Builder ( ) : base ( ) { lastDocID = - 1 ; wordNum = - 1 ; word = 0 ; } |
public boolean stem ( ) { int v_1 = cursor ; r_mark_regions ( ) ; cursor = v_1 ; limit_backward = cursor ; cursor = limit ; int v_2 = limit - cursor ; r_main_suffix ( ) ; cursor = limit - v_2 ; int v_3 = limit - cursor ; r_consonant_pair ( ) ; cursor = limit - v_3 ; int v_4 = limit - cursor ; r_other_suffix ( ) ; cursor = limit - v_4 ; cursor = limit_backward ; return true ; } | public override bool Stem ( ) { int v_1 ; int v_2 ; int v_3 ; int v_4 ; v_1 = m_cursor ; do { if ( ! r_mark_regions ( ) ) { goto lab0 ; } } while ( false ) ; lab0 : m_cursor = v_1 ; m_limit_backward = m_cursor ; m_cursor = m_limit ; v_2 = m_limit - m_cursor ; do { if ( ! r_main_suffix ( ) ) { goto lab1 ; } } while ( false ) ; lab1 : m_cursor = m_limit - v_2 ; v_3 = m_limit - m_cursor ; do { if ( ! r_consonant_pair ( ) ) { goto lab2 ; } } while ( false ) ; lab2 : m_cursor = m_limit - v_3 ; v_4 = m_limit - m_cursor ; do { if ( ! r_other_suffix ( ) ) { goto lab3 ; } } while ( false ) ; lab3 : m_cursor = m_limit - v_4 ; m_cursor = m_limit_backward ; return true ; } |
public int describeContents ( ) { return 0 ; } | public virtual int describeContents ( ) { return 0 ; } |
public FetchConnection openFetch ( ) throws TransportException { if ( src == null ) throw new TransportException ( uri , JGitText . get ( ) . onlyOneFetchSupported ) ; try { return new BundleFetchConnection ( this , src ) ; } finally { src = null ; } } | public override FetchConnection OpenFetch ( ) { if ( src == null ) { throw new TransportException ( uri , JGitText . Get ( ) . onlyOneFetchSupported ) ; } try { return new BundleFetchConnection ( this , src ) ; } finally { src = null ; } } |
public DeleteWorkGroupResult deleteWorkGroup ( DeleteWorkGroupRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteWorkGroup ( request ) ; } | public virtual DeleteWorkGroupResponse DeleteWorkGroup ( DeleteWorkGroupRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteWorkGroupRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteWorkGroupResponseUnmarshaller . Instance ; return Invoke < DeleteWorkGroupResponse > ( request , options ) ; } |
public GetApiResult getApi ( GetApiRequest request ) { request = beforeClientExecution ( request ) ; return executeGetApi ( request ) ; } | public virtual GetApiResponse GetApi ( GetApiRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetApiRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetApiResponseUnmarshaller . Instance ; return Invoke < GetApiResponse > ( request , options ) ; } |
public LongBuffer slice ( ) { return new ReadOnlyLongArrayBuffer ( remaining ( ) , backingArray , offset + position ) ; } | public override java . nio . LongBuffer slice ( ) { return new java . nio . ReadOnlyLongArrayBuffer ( remaining ( ) , backingArray , offset + _position ) ; } |
public String toString ( ) { String opName = getClass ( ) . getName ( ) ; int index = opName . indexOf ( '$' ) ; opName = opName . substring ( index + 1 , opName . length ( ) ) ; return "<" + opName + "@" + tokens . get ( index ) + ":\"" + text + "\">" ; } | public override string ToString ( ) { string opName = GetType ( ) . FullName ; int index = opName . IndexOf ( '$' ) ; opName = Sharpen . Runtime . Substring ( opName , index + 1 , opName . Length ) ; return "<" + opName + "@" + tokens . Get ( this . index ) + ":\"" + text + "\">" ; } |
public String toString ( ) { return "Action[" + token + "]" ; } | public override string ToString ( ) { return "Action[" + token + "]" ; } |
public static EvaluationException invalidRef ( ) { return new EvaluationException ( ErrorEval . REF_INVALID ) ; } | public static EvaluationException InvalidRef ( ) { return new EvaluationException ( ErrorEval . REF_INVALID ) ; } |
public Iterator < Entry > getEntries ( ) { return new FilteringIterator ( ) ; } | public IEnumerator < Entry > GetEntries ( ) { return new FilteringIterator ( this ) ; ; } |
public String toString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( " [FUTURE HEADER]\n" ) ; buffer . append ( " Type " + recordType ) ; buffer . append ( " Flags " + grbitFrt ) ; buffer . append ( " [/FUTURE HEADER]\n" ) ; return buffer . toString ( ) ; } | public override String ToString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( " [FUTURE HEADER]\n" ) ; buffer . Append ( " type " + recordType ) ; buffer . Append ( " flags " + grbitFrt ) ; buffer . Append ( " [/FUTURE HEADER]\n" ) ; return buffer . ToString ( ) ; } |
public void copy ( MutableValue source ) { MutableValueStr s = ( MutableValueStr ) source ; exists = s . exists ; value . copyBytes ( s . value ) ; } | public override void Copy ( MutableValue source ) { MutableValueStr s = ( MutableValueStr ) source ; Exists = s . Exists ; Value . CopyBytes ( s . Value ) ; } |
public ReaderSlice ( int start , int length , int readerIndex ) { this . start = start ; this . length = length ; this . readerIndex = readerIndex ; } | public ReaderSlice ( int start , int length , int readerIndex ) { this . Start = start ; this . Length = length ; this . ReaderIndex = readerIndex ; } |
public AddTagsResult addTags ( AddTagsRequest request ) { request = beforeClientExecution ( request ) ; return executeAddTags ( request ) ; } | public virtual AddTagsResponse AddTags ( AddTagsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = AddTagsRequestMarshaller . Instance ; options . ResponseUnmarshaller = AddTagsResponseUnmarshaller . Instance ; return Invoke < AddTagsResponse > ( request , options ) ; } |
public static URI create ( String uri ) { try { return new URI ( uri ) ; } catch ( URISyntaxException e ) { throw new IllegalArgumentException ( e . getMessage ( ) ) ; } } | public static java . net . URI create ( string uri ) { try { return new java . net . URI ( uri ) ; } catch ( java . net . URISyntaxException e ) { throw new System . ArgumentException ( e . Message ) ; } } |
public UpdateConfigurationSetTrackingOptionsResult updateConfigurationSetTrackingOptions ( UpdateConfigurationSetTrackingOptionsRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateConfigurationSetTrackingOptions ( request ) ; } | public virtual UpdateConfigurationSetTrackingOptionsResponse UpdateConfigurationSetTrackingOptions ( UpdateConfigurationSetTrackingOptionsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = UpdateConfigurationSetTrackingOptionsRequestMarshaller . Instance ; options . ResponseUnmarshaller = UpdateConfigurationSetTrackingOptionsResponseUnmarshaller . Instance ; return Invoke < UpdateConfigurationSetTrackingOptionsResponse > ( request , options ) ; } |
public void recycleByteBlocks ( byte [ ] [ ] blocks , int start , int end ) { bytesUsed . addAndGet ( - ( ( end - start ) * blockSize ) ) ; for ( int i = start ; i < end ; i ++ ) { blocks [ i ] = null ; } } | public override void RecycleByteBlocks ( byte [ ] [ ] blocks , int start , int end ) { bytesUsed . AddAndGet ( - ( ( end - start ) * m_blockSize ) ) ; for ( var i = start ; i < end ; i ++ ) { blocks [ i ] = null ; } } |
public DoubleBuffer compact ( ) { throw new ReadOnlyBufferException ( ) ; } | public override java . nio . DoubleBuffer compact ( ) { throw new java . nio . ReadOnlyBufferException ( ) ; } |
public GetVoiceConnectorStreamingConfigurationResult getVoiceConnectorStreamingConfiguration ( GetVoiceConnectorStreamingConfigurationRequest request ) { request = beforeClientExecution ( request ) ; return executeGetVoiceConnectorStreamingConfiguration ( request ) ; } | public virtual GetVoiceConnectorStreamingConfigurationResponse GetVoiceConnectorStreamingConfiguration ( GetVoiceConnectorStreamingConfigurationRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetVoiceConnectorStreamingConfigurationRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetVoiceConnectorStreamingConfigurationResponseUnmarshaller . Instance ; return Invoke < GetVoiceConnectorStreamingConfigurationResponse > ( request , options ) ; } |
public boolean hasNext ( ) { return pos + 1 < size ( ) ; } | public virtual bool hasNext ( ) { return this . pos + 1 < this . _enclosing . size ( ) ; } |
public double getRKNumberAt ( int coffset ) { return RKUtil . decodeNumber ( field_3_rks [ coffset ] . rk ) ; } | public double GetRKNumberAt ( int coffset ) { return RKUtil . DecodeNumber ( field_3_rks [ coffset ] . rk ) ; } |
public ReimportApiResult reimportApi ( ReimportApiRequest request ) { request = beforeClientExecution ( request ) ; return executeReimportApi ( request ) ; } | public virtual ReimportApiResponse ReimportApi ( ReimportApiRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ReimportApiRequestMarshaller . Instance ; options . ResponseUnmarshaller = ReimportApiResponseUnmarshaller . Instance ; return Invoke < ReimportApiResponse > ( request , options ) ; } |
public boolean hasNext ( ) { return link . previous != list . voidLink ; } | public virtual bool hasNext ( ) { return this . link . previous != this . list . voidLink ; } |
public void fill ( BytesRef b , long start ) { final int index = ( int ) ( start > > blockBits ) ; final int offset = ( int ) ( start & blockMask ) ; final byte [ ] block = b . bytes = blocks [ index ] ; if ( ( block [ offset ] & 128 ) == 0 ) { b . length = block [ offset ] ; b . offset = offset + 1 ; } else { b . length = ( ( block [ offset ] & 0x7f ) << 8 ) | ( block [ 1 + offset ] & 0xff ) ; b . offset = offset + 2 ; assert b . length > 0 ; } } | public void Fill ( BytesRef b , long start ) { var index = ( int ) ( start > > blockBits ) ; var offset = ( int ) ( start & blockMask ) ; var block = b . Bytes = blocks [ index ] ; if ( ( block [ offset ] & 128 ) == 0 ) { b . Length = block [ offset ] ; b . Offset = offset + 1 ; } else { b . Length = ( ( block [ offset ] & 0x7f ) << 8 ) | ( block [ 1 + offset ] & 0xff ) ; b . Offset = offset + 2 ; Debug . Assert ( b . Length > 0 ) ; } } |
public void trimToSize ( ) { if ( n < array . length ) { byte [ ] aux = new byte [ n ] ; System . arraycopy ( array , 0 , aux , 0 , n ) ; array = aux ; } } | public virtual void TrimToSize ( ) { if ( n < array . Length ) { byte [ ] aux = new byte [ n ] ; System . Array . Copy ( array , 0 , aux , 0 , n ) ; array = aux ; } } |
public SubmoduleUpdateCommand submoduleUpdate ( ) { return new SubmoduleUpdateCommand ( repo ) ; } | public virtual SubmoduleUpdateCommand SubmoduleUpdate ( ) { return new SubmoduleUpdateCommand ( repo ) ; } |
public static ShortBuffer wrap ( short [ ] array , int start , int shortCount ) { Arrays . checkOffsetAndCount ( array . length , start , shortCount ) ; ShortBuffer buf = new ReadWriteShortArrayBuffer ( array ) ; buf . position = start ; buf . limit = start + shortCount ; return buf ; } | public static java . nio . ShortBuffer wrap ( short [ ] array_1 , int start , int shortCount ) { java . util . Arrays . checkOffsetAndCount ( array_1 . Length , start , shortCount ) ; java . nio . ShortBuffer buf = new java . nio . ReadWriteShortArrayBuffer ( array_1 ) ; buf . _position = start ; buf . _limit = start + shortCount ; return buf ; } |
public GetVpcLinksResult getVpcLinks ( GetVpcLinksRequest request ) { request = beforeClientExecution ( request ) ; return executeGetVpcLinks ( request ) ; } | public virtual GetVpcLinksResponse GetVpcLinks ( GetVpcLinksRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetVpcLinksRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetVpcLinksResponseUnmarshaller . Instance ; return Invoke < GetVpcLinksResponse > ( request , options ) ; } |
public RemoveResourcePermissionResult removeResourcePermission ( RemoveResourcePermissionRequest request ) { request = beforeClientExecution ( request ) ; return executeRemoveResourcePermission ( request ) ; } | public virtual RemoveResourcePermissionResponse RemoveResourcePermission ( RemoveResourcePermissionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = RemoveResourcePermissionRequestMarshaller . Instance ; options . ResponseUnmarshaller = RemoveResourcePermissionResponseUnmarshaller . Instance ; return Invoke < RemoveResourcePermissionResponse > ( request , options ) ; } |
public ListIndexResult listIndex ( ListIndexRequest request ) { request = beforeClientExecution ( request ) ; return executeListIndex ( request ) ; } | public virtual ListIndexResponse ListIndex ( ListIndexRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListIndexRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListIndexResponseUnmarshaller . Instance ; return Invoke < ListIndexResponse > ( request , options ) ; } |
public List < Integer > toList ( ) { List < Integer > values = new ArrayList < Integer > ( ) ; int n = intervals . size ( ) ; for ( int i = 0 ; i < n ; i ++ ) { Interval I = intervals . get ( i ) ; int a = I . a ; int b = I . b ; for ( int v = a ; v <= b ; v ++ ) { values . add ( v ) ; } } return values ; } | public virtual IList < int > ToList ( ) { IList < int > values = new ArrayList < int > ( ) ; int n = intervals . Count ; for ( int i = 0 ; i < n ; i ++ ) { Interval I = intervals [ i ] ; int a = I . a ; int b = I . b ; for ( int v = a ; v <= b ; v ++ ) { values . Add ( v ) ; } } return values ; } |
public CreateCustomerGatewayRequest ( GatewayType type , String publicIp , Integer bgpAsn ) { setType ( type . toString ( ) ) ; setPublicIp ( publicIp ) ; setBgpAsn ( bgpAsn ) ; } | public CreateCustomerGatewayRequest ( GatewayType type , string publicIp , int bgpAsn ) { _type = type ; _publicIp = publicIp ; _bgpAsn = bgpAsn ; } |
public int getWeekNo ( Calendar cal , int weekStartOn ) { if ( weekStartOn == 1 ) { cal . setFirstDayOfWeek ( Calendar . SUNDAY ) ; } else { cal . setFirstDayOfWeek ( Calendar . MONDAY ) ; } return cal . get ( Calendar . WEEK_OF_YEAR ) ; } | public int getWeekNo ( DateTime dt , int weekStartOn ) { GregorianCalendar cal = new GregorianCalendar ( ) ; int weekOfYear ; if ( weekStartOn == 1 ) { weekOfYear = cal . GetWeekOfYear ( dt , CalendarWeekRule . FirstDay , DayOfWeek . Sunday ) ; } else { weekOfYear = cal . GetWeekOfYear ( dt , CalendarWeekRule . FirstDay , DayOfWeek . Monday ) ; } return weekOfYear ; } |
public String toString ( ) { String s = "o:" + offset + " p:" + position + " c:" + count ; if ( rptGroup >= 0 ) { s += " rpt:" + rptGroup + ",i" + rptInd ; } return s ; } | public override string ToString ( ) { string s = "d:" + doc + " o:" + offset + " p:" + position + " c:" + count ; if ( rptGroup >= 0 ) { s += " rpt:" + rptGroup + ",i" + rptInd ; } return s ; } |
@ Override public ListIterator < E > listIterator ( ) { return listIterator ( 0 ) ; } | public virtual java . util . ListIterator < E > listIterator ( ) { return listIterator ( 0 ) ; } |
public GetUserEndpointsResult getUserEndpoints ( GetUserEndpointsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetUserEndpoints ( request ) ; } | public virtual GetUserEndpointsResponse GetUserEndpoints ( GetUserEndpointsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetUserEndpointsRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetUserEndpointsResponseUnmarshaller . Instance ; return Invoke < GetUserEndpointsResponse > ( request , options ) ; } |
public UAX29URLEmailTokenizerImpl ( java . io . Reader in ) { this . zzReader = in ; } | public UAX29URLEmailTokenizerImpl ( TextReader @ in ) { this . zzReader = @ in ; } |
public ResetCommand addPath ( String path ) { if ( mode != null ) throw new JGitInternalException ( MessageFormat . format ( JGitText . get ( ) . illegalCombinationOfArguments , "<paths>..." , "[--mixed | --soft | --hard]" ) ) ; filepaths . add ( path ) ; return this ; } | public virtual NGit . Api . ResetCommand AddPath ( string file ) { if ( mode != null ) { throw new JGitInternalException ( MessageFormat . Format ( JGitText . Get ( ) . illegalCombinationOfArguments , "<paths>..." , "[--mixed | --soft | --hard]" ) ) ; } filepaths . AddItem ( file ) ; return this ; } |
public org . apache . poi . hssf . record . Record findNextRecordBySid ( short sid , int pos ) { int matches = 0 ; for ( org . apache . poi . hssf . record . Record record : records . getRecords ( ) ) { if ( record . getSid ( ) == sid && matches ++ == pos ) { return record ; } } return null ; } | public Record FindNextRecordBySid ( short sid , int pos ) { int matches = 0 ; for ( IEnumerator iterator = records . GetEnumerator ( ) ; iterator . MoveNext ( ) ; ) { Record record = ( Record ) iterator . Current ; if ( record . Sid == sid ) { if ( matches ++ == pos ) return record ; } } return null ; } |
public int [ ] toArray ( ) { return toIntegerList ( ) . toArray ( ) ; } | public virtual int [ ] ToArray ( ) { return ToIntegerList ( ) . ToArray ( ) ; } |
public GetDomainNamesResult getDomainNames ( GetDomainNamesRequest request ) { request = beforeClientExecution ( request ) ; return executeGetDomainNames ( request ) ; } | public virtual GetDomainNamesResponse GetDomainNames ( GetDomainNamesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetDomainNamesRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetDomainNamesResponseUnmarshaller . Instance ; return Invoke < GetDomainNamesResponse > ( request , options ) ; } |
public UpdateTemplateAliasResult updateTemplateAlias ( UpdateTemplateAliasRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateTemplateAlias ( request ) ; } | public virtual UpdateTemplateAliasResponse UpdateTemplateAlias ( UpdateTemplateAliasRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = UpdateTemplateAliasRequestMarshaller . Instance ; options . ResponseUnmarshaller = UpdateTemplateAliasResponseUnmarshaller . Instance ; return Invoke < UpdateTemplateAliasResponse > ( request , options ) ; } |
public String getReceivePack ( ) { return receivePack ; } | public virtual string GetReceivePack ( ) { return receivePack ; } |
public synchronized Set < K > keySet ( ) { Set < K > ks = keySet ; return ( ks != null ) ? ks : ( keySet = new KeySet ( ) ) ; } | public virtual java . util . Set < K > keySet ( ) { lock ( this ) { java . util . Set < K > ks = _keySet ; return ( ks != null ) ? ks : ( _keySet = new java . util . Hashtable < K , V > . KeySet ( this ) ) ; } } |
public AssociateAddressRequest ( String instanceId , String publicIp ) { setInstanceId ( instanceId ) ; setPublicIp ( publicIp ) ; } | public AssociateAddressRequest ( string instanceId , string publicIp ) { _instanceId = instanceId ; _publicIp = publicIp ; } |
public static CharBuffer wrap ( CharSequence chseq ) { return new CharSequenceAdapter ( chseq ) ; } | public static java . nio . CharBuffer wrap ( java . lang . CharSequence chseq ) { return new java . nio . CharSequenceAdapter ( chseq ) ; } |
public void reset ( ) { reset ( true , true ) ; } | public void Reset ( ) { Reset ( true , true ) ; } |
public static double nChooseK ( int n , int k ) { double d = 1 ; if ( n < 0 || k < 0 || n < k ) { d = Double . NaN ; } else { int minnk = Math . min ( n - k , k ) ; int maxnk = Math . max ( n - k , k ) ; for ( int i = maxnk ; i < n ; i ++ ) { d *= i + 1 ; } d /= factorial ( minnk ) ; } return d ; } | public static double NChooseK ( int n , int k ) { double d = 1 ; if ( n < 0 || k < 0 || n < k ) { d = double . NaN ; } else { int minnk = Math . Min ( n - k , k ) ; int maxnk = Math . Max ( n - k , k ) ; for ( int i = maxnk ; i < n ; i ++ ) { d *= i + 1 ; } d /= Factorial ( minnk ) ; } return d ; } |
public static String toHex ( String value ) { return ( value == null || value . length ( ) == 0 ) ? "[]" : toHex ( value . getBytes ( LocaleUtil . CHARSET_1252 ) ) ; } | public static string ToHex ( long value ) { return ToHex ( value , 16 ) ; } |
public String getAccessSecret ( ) { return getCredentials ( ) . getAccessKeySecret ( ) ; } | public string GetAccessSecret ( ) { return GetCredentials ( ) . GetAccessKeySecret ( ) ; } |
public static BoundSheetRecord [ ] orderByBofPosition ( List < BoundSheetRecord > boundSheetRecords ) { BoundSheetRecord [ ] bsrs = new BoundSheetRecord [ boundSheetRecords . size ( ) ] ; boundSheetRecords . toArray ( bsrs ) ; Arrays . sort ( bsrs , BoundSheetRecord :: compareRecords ) ; return bsrs ; } | public static BoundSheetRecord [ ] OrderByBofPosition ( List < BoundSheetRecord > boundSheetRecords ) { BoundSheetRecord [ ] bsrs = boundSheetRecords . ToArray ( ) ; Array . Sort ( bsrs , new BOFComparator ( ) ) ; return bsrs ; } |
public DeleteNotebookInstanceResult deleteNotebookInstance ( DeleteNotebookInstanceRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteNotebookInstance ( request ) ; } | public virtual DeleteNotebookInstanceResponse DeleteNotebookInstance ( DeleteNotebookInstanceRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteNotebookInstanceRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteNotebookInstanceResponseUnmarshaller . Instance ; return Invoke < DeleteNotebookInstanceResponse > ( request , options ) ; } |
public DTDHandler getDTDHandler ( ) { return ( theDTDHandler == this ) ? null : theDTDHandler ; } | public void close ( ) { lock ( this . mBlock ) { if ( this . mParseState != null ) { this . mParseState . Dispose ( ) ; this . mParseState = null ; this . mBlock . decOpenCountLocked ( ) ; } } } |
public static File resolve ( File directory , FS fs ) { if ( isGitRepository ( directory , fs ) ) return directory ; if ( isGitRepository ( new File ( directory , Constants . DOT_GIT ) , fs ) ) return new File ( directory , Constants . DOT_GIT ) ; final String name = directory . getName ( ) ; final File parent = directory . getParentFile ( ) ; if ( isGitRepository ( new File ( parent , name + Constants . DOT_GIT_EXT ) , fs ) ) return new File ( parent , name + Constants . DOT_GIT_EXT ) ; return null ; } | public static FilePath Resolve ( FilePath directory , FS fs ) { if ( IsGitRepository ( directory , fs ) ) { return directory ; } if ( IsGitRepository ( new FilePath ( directory , Constants . DOT_GIT ) , fs ) ) { return new FilePath ( directory , Constants . DOT_GIT ) ; } string name = directory . GetName ( ) ; FilePath parent = directory . GetParentFile ( ) ; if ( IsGitRepository ( new FilePath ( parent , name + Constants . DOT_GIT_EXT ) , fs ) ) { return new FilePath ( parent , name + Constants . DOT_GIT_EXT ) ; } return null ; } |
public WorkflowTypeInfos listWorkflowTypes ( ListWorkflowTypesRequest request ) { request = beforeClientExecution ( request ) ; return executeListWorkflowTypes ( request ) ; } | public virtual ListWorkflowTypesResponse ListWorkflowTypes ( ListWorkflowTypesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListWorkflowTypesRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListWorkflowTypesResponseUnmarshaller . Instance ; return Invoke < ListWorkflowTypesResponse > ( request , options ) ; } |
public Snapshot copyClusterSnapshot ( CopyClusterSnapshotRequest request ) { request = beforeClientExecution ( request ) ; return executeCopyClusterSnapshot ( request ) ; } | public virtual CopyClusterSnapshotResponse CopyClusterSnapshot ( CopyClusterSnapshotRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CopyClusterSnapshotRequestMarshaller . Instance ; options . ResponseUnmarshaller = CopyClusterSnapshotResponseUnmarshaller . Instance ; return Invoke < CopyClusterSnapshotResponse > ( request , options ) ; } |
public Ptg [ ] getFormulaTokens ( EvaluationCell evalCell ) { HSSFCell cell = ( ( HSSFEvaluationCell ) evalCell ) . getHSSFCell ( ) ; FormulaRecordAggregate fra = ( FormulaRecordAggregate ) cell . getCellValueRecord ( ) ; return fra . getFormulaTokens ( ) ; } | public Ptg [ ] GetFormulaTokens ( IEvaluationCell evalCell ) { ICell cell = ( ( HSSFEvaluationCell ) evalCell ) . HSSFCell ; FormulaRecordAggregate fr = ( FormulaRecordAggregate ) ( ( HSSFCell ) cell ) . CellValueRecord ; return fr . FormulaTokens ; } |
public DisassociateVPCFromHostedZoneResult disassociateVPCFromHostedZone ( DisassociateVPCFromHostedZoneRequest request ) { request = beforeClientExecution ( request ) ; return executeDisassociateVPCFromHostedZone ( request ) ; } | public virtual DisassociateVPCFromHostedZoneResponse DisassociateVPCFromHostedZone ( DisassociateVPCFromHostedZoneRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DisassociateVPCFromHostedZoneRequestMarshaller . Instance ; options . ResponseUnmarshaller = DisassociateVPCFromHostedZoneResponseUnmarshaller . Instance ; return Invoke < DisassociateVPCFromHostedZoneResponse > ( request , options ) ; } |
public StringBuffer insert ( int index , int i ) { return insert ( index , Integer . toString ( i ) ) ; } | public java . lang . StringBuffer insert ( int index , int i ) { return insert ( index , System . Convert . ToString ( i ) ) ; } |
public void setBytesValue ( BytesRef value ) { if ( ! ( fieldsData instanceof BytesRef ) ) { throw new IllegalArgumentException ( "cannot change value type from " + fieldsData . getClass ( ) . getSimpleName ( ) + " to BytesRef" ) ; } if ( type . indexOptions ( ) != IndexOptions . NONE ) { throw new IllegalArgumentException ( "cannot set a BytesRef value on an indexed field" ) ; } if ( value == null ) { throw new IllegalArgumentException ( "value must not be null" ) ; } fieldsData = value ; } | public virtual void SetBytesValue ( BytesRef value ) { if ( ! ( FieldsData is BytesRef ) ) { throw new System . ArgumentException ( "cannot change value type from " + FieldsData . GetType ( ) . Name + " to BytesRef" ) ; } if ( m_type . IsIndexed ) { throw new System . ArgumentException ( "cannot set a BytesRef value on an indexed field" ) ; } FieldsData = value ; } |
public boolean equals ( Object o ) { return o instanceof GermanStemmer ; } | public override bool Equals ( object o ) { return o is GermanStemmer ; } |
public UntagMeetingResult untagMeeting ( UntagMeetingRequest request ) { request = beforeClientExecution ( request ) ; return executeUntagMeeting ( request ) ; } | public virtual UntagMeetingResponse UntagMeeting ( UntagMeetingRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = UntagMeetingRequestMarshaller . Instance ; options . ResponseUnmarshaller = UntagMeetingResponseUnmarshaller . Instance ; return Invoke < UntagMeetingResponse > ( request , options ) ; } |
public String toString ( ) { return "[PRECISION]\n" + " .precision = " + getFullPrecision ( ) + "\n" + "[/PRECISION]\n" ; } | public override String ToString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( "[PRECISION]\n" ) ; buffer . Append ( " .precision = " ) . Append ( FullPrecision ) . Append ( "\n" ) ; buffer . Append ( "[/PRECISION]\n" ) ; return buffer . ToString ( ) ; } |
static public double pmt ( double r , int nper , double pv , double fv ) { return pmt ( r , nper , pv , fv , 0 ) ; } | static public double PMT ( double r , int nper , double pv , double fv ) { return PMT ( r , nper , pv , fv , 0 ) ; } |
public ValueEval getArea3DEval ( Area3DPxg aptg ) { SheetRangeEvaluator sre = createExternSheetRefEvaluator ( aptg . getSheetName ( ) , aptg . getLastSheetName ( ) , aptg . getExternalWorkbookNumber ( ) ) ; return new LazyAreaEval ( aptg . getFirstRow ( ) , aptg . getFirstColumn ( ) , aptg . getLastRow ( ) , aptg . getLastColumn ( ) , sre ) ; } | public ValueEval GetArea3DEval ( Area3DPtg aptg ) { SheetRangeEvaluator sre = CreateExternSheetRefEvaluator ( aptg . ExternSheetIndex ) ; return new LazyAreaEval ( aptg . FirstRow , aptg . FirstColumn , aptg . LastRow , aptg . LastColumn , sre ) ; } |
public boolean equals ( Object obj ) { if ( obj instanceof Rect ) { Rect rhs = ( Rect ) obj ; if ( isValid ( ) != rhs . isValid ( ) ) { return false ; } if ( ! isValid ( ) && ! rhs . isValid ( ) ) { return true ; } return this . x == rhs . x && this . y == rhs . y && this . w == rhs . w && this . h == rhs . h ; } return false ; } | public override bool Equals ( object obj ) { android . graphics . Rect r = ( android . graphics . Rect ) obj ; if ( r != null ) { return left == r . left && top == r . top && right == r . right && bottom == r . bottom ; } return false ; } |
public final boolean containsColumn ( int col ) { return _firstColumn <= col && _lastColumn >= col ; } | public bool ContainsColumn ( int col ) { return ( _firstColumn <= col ) && ( _lastColumn >= col ) ; } |
public RunJobFlowRequest ( String name , JobFlowInstancesConfig instances ) { setName ( name ) ; setInstances ( instances ) ; } | public RunJobFlowRequest ( string name , JobFlowInstancesConfig instances ) { _name = name ; _instances = instances ; } |
public String toString ( ) { if ( noBreak == null && postBreak == null && preBreak != null && preBreak . equals ( "-" ) ) { return "-" ; } StringBuilder res = new StringBuilder ( "{" ) ; res . append ( preBreak ) ; res . append ( "}{" ) ; res . append ( postBreak ) ; res . append ( "}{" ) ; res . append ( noBreak ) ; res . append ( '}' ) ; return res . toString ( ) ; } | public override string ToString ( ) { if ( NoBreak == null && PostBreak == null && PreBreak != null && PreBreak . Equals ( "-" , StringComparison . Ordinal ) ) { return "-" ; } StringBuilder res = new StringBuilder ( "{" ) ; res . Append ( PreBreak ) ; res . Append ( "}{" ) ; res . Append ( PostBreak ) ; res . Append ( "}{" ) ; res . Append ( NoBreak ) ; res . Append ( '}' ) ; return res . ToString ( ) ; } |
public ListPublishedSchemaArnsResult listPublishedSchemaArns ( ListPublishedSchemaArnsRequest request ) { request = beforeClientExecution ( request ) ; return executeListPublishedSchemaArns ( request ) ; } | public virtual ListPublishedSchemaArnsResponse ListPublishedSchemaArns ( ListPublishedSchemaArnsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListPublishedSchemaArnsRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListPublishedSchemaArnsResponseUnmarshaller . Instance ; return Invoke < ListPublishedSchemaArnsResponse > ( request , options ) ; } |
public StoredField ( String name , double value ) { super ( name , TYPE ) ; fieldsData = value ; } | public StoredField ( string name , float value ) : base ( name , TYPE ) { FieldsData = new Single ( value ) ; } |
public DescribeNetworkAclsResult describeNetworkAcls ( ) { return describeNetworkAcls ( new DescribeNetworkAclsRequest ( ) ) ; } | public virtual DescribeNetworkAclsResponse DescribeNetworkAcls ( ) { return DescribeNetworkAcls ( new DescribeNetworkAclsRequest ( ) ) ; } |
public PushCommand add ( Ref ref ) { refSpecs . add ( new RefSpec ( ref . getLeaf ( ) . getName ( ) ) ) ; return this ; } | public virtual NGit . Api . PushCommand Add ( Ref @ ref ) { refSpecs . AddItem ( new RefSpec ( @ ref . GetLeaf ( ) . GetName ( ) ) ) ; return this ; } |
public DeleteVoiceConnectorGroupResult deleteVoiceConnectorGroup ( DeleteVoiceConnectorGroupRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteVoiceConnectorGroup ( request ) ; } | public virtual DeleteVoiceConnectorGroupResponse DeleteVoiceConnectorGroup ( DeleteVoiceConnectorGroupRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteVoiceConnectorGroupRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteVoiceConnectorGroupResponseUnmarshaller . Instance ; return Invoke < DeleteVoiceConnectorGroupResponse > ( request , options ) ; } |
public IntervalSet ( List < Interval > intervals ) { this . intervals = intervals ; } | public IntervalSet ( IList < Interval > intervals ) { this . intervals = intervals ; } |
public IteratorQueue ( Iterator < T > iter ) { this . iter = iter ; T removeTop = removeTop ( ) ; assert removeTop == null ; } | public IteratorQueue ( IEnumerator < T > iter ) { this . iter = iter ; T removeTop = RemoveTop ( ) ; Debug . Assert ( removeTop == null ) ; } |
public static long [ ] grow ( long [ ] array ) { return grow ( array , 1 + array . length ) ; } | public static long [ ] Grow ( long [ ] array ) { return Grow ( array , 1 + array . Length ) ; } |
public StemmerOverrideMap ( FST < BytesRef > fst , boolean ignoreCase ) { this . fst = fst ; this . ignoreCase = ignoreCase ; } | public StemmerOverrideMap ( FST < BytesRef > fst , bool ignoreCase ) { this . fst = fst ; this . ignoreCase = ignoreCase ; } |
public DeleteAdmChannelResult deleteAdmChannel ( DeleteAdmChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteAdmChannel ( request ) ; } | public virtual DeleteAdmChannelResponse DeleteAdmChannel ( DeleteAdmChannelRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteAdmChannelRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteAdmChannelResponseUnmarshaller . Instance ; return Invoke < DeleteAdmChannelResponse > ( request , options ) ; } |
public SetSubscriptionAttributesRequest ( String subscriptionArn , String attributeName , String attributeValue ) { setSubscriptionArn ( subscriptionArn ) ; setAttributeName ( attributeName ) ; setAttributeValue ( attributeValue ) ; } | public SetSubscriptionAttributesRequest ( string subscriptionArn , string attributeName , string attributeValue ) { _subscriptionArn = subscriptionArn ; _attributeName = attributeName ; _attributeValue = attributeValue ; } |
public void unsafeWrite ( char b ) { buf [ len ++ ] = b ; } | public virtual void UnsafeWrite ( char b ) { m_buf [ m_len ++ ] = b ; } |
@ Override public boolean remove ( Object key ) { int count = 0 ; Collection < V > collection = subMap . remove ( key ) ; if ( collection != null ) { count = collection . size ( ) ; collection . clear ( ) ; totalSize -= count ; } return count > 0 ; } | public override bool remove ( object o ) { lock ( this . _enclosing ) { int oldSize = this . _enclosing . _size ; this . _enclosing . remove ( o ) ; return this . _enclosing . _size != oldSize ; } } |
public boolean markSupported ( ) { return false ; } | public virtual bool markSupported ( ) { return false ; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.