question stringlengths 33 1.59k | target stringlengths 33 1.58k |
|---|---|
public boolean evaluate ( boolean cmpResult ) { switch ( _code ) { case NONE : case EQ : return cmpResult ; case NE : return ! cmpResult ; } throw new RuntimeException ( "Cannot call boolean evaluate on non-equality operator '" + _representation + "'" ) ; } | public bool Evaluate ( bool cmpResult ) { switch ( _code ) { case NONE : case EQ : return cmpResult ; case NE : return ! cmpResult ; } throw new Exception ( "Cannot call bool Evaluate on non-equality operator '" + _representation + "'" ) ; } |
public int getEnd ( ) { return end ; } | public virtual int GetEnd ( ) { return end ; } |
@ Override public String toString ( ) { if ( string != null ) { return string ; } StringBuilder result = new StringBuilder ( ) ; if ( scheme != null ) { result . append ( scheme ) ; result . append ( ':' ) ; } if ( opaque ) { result . append ( schemeSpecificPart ) ; } else { if ( authority != null ) { result . append ( "" ) ; result . append ( authority ) ; } if ( path != null ) { result . append ( path ) ; } if ( query != null ) { result . append ( '?' ) ; result . append ( query ) ; } } if ( fragment != null ) { result . append ( '#' ) ; result . append ( fragment ) ; } string = result . toString ( ) ; return string ; } | public override string ToString ( ) { if ( @ string != null ) { return @ string ; } java . lang . StringBuilder result = new java . lang . StringBuilder ( ) ; if ( scheme != null ) { result . append ( scheme ) ; result . append ( ':' ) ; } if ( opaque ) { result . append ( schemeSpecificPart ) ; } else { if ( authority != null ) { result . append ( "" ) ; result . append ( authority ) ; } if ( path != null ) { result . append ( path ) ; } if ( query != null ) { result . append ( '?' ) ; result . append ( query ) ; } } if ( fragment != null ) { result . append ( '#' ) ; result . append ( fragment ) ; } @ string = result . ToString ( ) ; return @ string ; } |
public static final ObjectId fromRaw ( byte [ ] bs , int p ) { final int a = NB . decodeInt32 ( bs , p ) ; final int b = NB . decodeInt32 ( bs , p + 4 ) ; final int c = NB . decodeInt32 ( bs , p + 8 ) ; final int d = NB . decodeInt32 ( bs , p + 12 ) ; final int e = NB . decodeInt32 ( bs , p + 16 ) ; return new ObjectId ( a , b , c , d , e ) ; } | public static NGit . ObjectId FromRaw ( byte [ ] bs , int p ) { int a = NB . DecodeInt32 ( bs , p ) ; int b = NB . DecodeInt32 ( bs , p + 4 ) ; int c = NB . DecodeInt32 ( bs , p + 8 ) ; int d = NB . DecodeInt32 ( bs , p + 12 ) ; int e = NB . DecodeInt32 ( bs , p + 16 ) ; return new NGit . ObjectId ( a , b , c , d , e ) ; } |
public int maxRecall ( QualityQuery query ) { QRelJudgement qrj = judgements . get ( query . getQueryID ( ) ) ; if ( qrj != null ) { return qrj . maxRecall ( ) ; } return 0 ; } | public virtual int MaxRecall ( QualityQuery query ) { QRelJudgement qrj ; if ( judgements . TryGetValue ( query . QueryID , out qrj ) && qrj != null ) { return qrj . MaxRecall ; } return 0 ; } |
public static HashFunction hashFunctionForVersion ( int version ) { if ( version < VERSION_START ) { throw new IllegalArgumentException ( "Version " + version + " is too old, expected at least " + VERSION_START ) ; } else if ( version > VERSION_CURRENT ) { throw new IllegalArgumentException ( "Version " + version + " is too new, expected at most " + VERSION_CURRENT ) ; } return MurmurHash2 . INSTANCE ; } | public static HashFunction HashFunctionForVersion ( int version ) { if ( version < VERSION_START ) throw new ArgumentException ( "Version " + version + " is too old, expected at least " + VERSION_START ) ; if ( version > VERSION_CURRENT ) throw new ArgumentException ( "Version " + version + " is too new, expected at most " + VERSION_CURRENT ) ; return MurmurHash2 . INSTANCE ; } |
public void removeCell ( Cell cell ) { if ( cell == null ) { throw new IllegalArgumentException ( "cell must not be null" ) ; } removeCell ( ( HSSFCell ) cell , true ) ; } | public void RemoveCell ( ICell cell ) { if ( cell == null ) { throw new ArgumentException ( "cell must not be null" ) ; } RemoveCell ( ( HSSFCell ) cell , true ) ; } |
public CreatePlacementGroupRequest ( String groupName , PlacementStrategy strategy ) { setGroupName ( groupName ) ; setStrategy ( strategy . toString ( ) ) ; } | public CreatePlacementGroupRequest ( string groupName , PlacementStrategy strategy ) { _groupName = groupName ; _strategy = strategy ; } |
public PutManagedScalingPolicyResult putManagedScalingPolicy ( PutManagedScalingPolicyRequest request ) { request = beforeClientExecution ( request ) ; return executePutManagedScalingPolicy ( request ) ; } | public virtual PutManagedScalingPolicyResponse PutManagedScalingPolicy ( PutManagedScalingPolicyRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = PutManagedScalingPolicyRequestMarshaller . Instance ; options . ResponseUnmarshaller = PutManagedScalingPolicyResponseUnmarshaller . Instance ; return Invoke < PutManagedScalingPolicyResponse > ( request , options ) ; } |
public String toString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( "[SXVS]\n" ) ; buffer . append ( " .vs =" ) . append ( HexDump . shortToHex ( vs ) ) . append ( '\n' ) ; buffer . append ( "[/SXVS]\n" ) ; return buffer . toString ( ) ; } | public override string ToString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( "[SXVS]\n" ) ; buffer . Append ( " .vs =" ) . Append ( HexDump . ShortToHex ( vs ) ) . Append ( '\n' ) ; buffer . Append ( "[/SXVS]\n" ) ; return buffer . ToString ( ) ; } |
public Trie reduce ( Reduce by ) { return by . optimize ( this ) ; } | public virtual Trie Reduce ( Reduce by ) { return by . Optimize ( this ) ; } |
public AbstractEscherHolderRecord clone ( ) { return copy ( ) ; } | public override object Clone ( ) { return CloneViaReserialise ( ) ; } |
public void setParams ( String params ) { super . setParams ( params ) ; commitUserData = new HashMap < > ( ) ; commitUserData . put ( OpenReaderTask . USER_DATA , params ) ; } | public override void SetParams ( string @ params ) { base . SetParams ( @ params ) ; commitUserData = new Dictionary < string , string > ( ) ; commitUserData [ OpenReaderTask . USER_DATA ] = @ params ; } |
public String getSrcRef ( ) { return srcRef ; } | public virtual string GetSrcRef ( ) { return srcRef ; } |
public final String getShortMessage ( ) { byte [ ] raw = buffer ; int msgB = RawParseUtils . commitMessage ( raw , 0 ) ; if ( msgB < 0 ) { return "" ; } int msgE = RawParseUtils . endOfParagraph ( raw , msgB ) ; String str = RawParseUtils . decode ( guessEncoding ( ) , raw , msgB , msgE ) ; if ( hasLF ( raw , msgB , msgE ) ) { str = StringUtils . replaceLineBreaksWithSpace ( str ) ; } return str ; } | public string GetShortMessage ( ) { byte [ ] raw = buffer ; int msgB = RawParseUtils . CommitMessage ( raw , 0 ) ; if ( msgB < 0 ) { return string . Empty ; } System . Text . Encoding enc = RawParseUtils . ParseEncoding ( raw ) ; int msgE = RawParseUtils . EndOfParagraph ( raw , msgB ) ; string str = RawParseUtils . Decode ( enc , raw , msgB , msgE ) ; if ( HasLF ( raw , msgB , msgE ) ) { str = str . Replace ( '\n' , ' ' ) ; } return str ; } |
public static Boolean coerceValueToBoolean ( ValueEval ve , boolean stringsAreBlanks ) throws EvaluationException { if ( ve == null || ve == BlankEval . instance ) { return null ; } if ( ve instanceof BoolEval ) { return Boolean . valueOf ( ( ( BoolEval ) ve ) . getBooleanValue ( ) ) ; } if ( ve instanceof StringEval ) { if ( stringsAreBlanks ) { return null ; } String str = ( ( StringEval ) ve ) . getStringValue ( ) ; if ( str . equalsIgnoreCase ( "true" ) ) { return Boolean . TRUE ; } if ( str . equalsIgnoreCase ( "false" ) ) { return Boolean . FALSE ; } throw new EvaluationException ( ErrorEval . VALUE_INVALID ) ; } if ( ve instanceof NumericValueEval ) { NumericValueEval ne = ( NumericValueEval ) ve ; double d = ne . getNumberValue ( ) ; if ( Double . isNaN ( d ) ) { throw new EvaluationException ( ErrorEval . VALUE_INVALID ) ; } return Boolean . valueOf ( d != 0 ) ; } if ( ve instanceof ErrorEval ) { throw new EvaluationException ( ( ErrorEval ) ve ) ; } throw new RuntimeException ( "Unexpected eval (" + ve . getClass ( ) . getName ( ) + ")" ) ; } | public static Boolean ? CoerceValueToBoolean ( ValueEval ve , bool stringsAreBlanks ) { if ( ve == null || ve == BlankEval . instance ) { return null ; } if ( ve is BoolEval ) { return ( ( BoolEval ) ve ) . BooleanValue ; } if ( ve is StringEval ) { if ( stringsAreBlanks ) { return null ; } String str = ( ( StringEval ) ve ) . StringValue ; if ( str . Equals ( "true" , StringComparison . OrdinalIgnoreCase ) ) { return true ; } if ( str . Equals ( "false" , StringComparison . OrdinalIgnoreCase ) ) { return false ; } throw new EvaluationException ( ErrorEval . VALUE_INVALID ) ; } if ( ve is NumericValueEval ) { NumericValueEval ne = ( NumericValueEval ) ve ; double d = ne . NumberValue ; if ( Double . IsNaN ( d ) ) { throw new EvaluationException ( ErrorEval . VALUE_INVALID ) ; } return d != 0 ; } if ( ve is ErrorEval ) { throw new EvaluationException ( ( ErrorEval ) ve ) ; } throw new InvalidOperationException ( "Unexpected eval (" + ve . GetType ( ) . Name + ")" ) ; } |
public synchronized List < IndexCommit > getSnapshots ( ) { return new ArrayList < > ( indexCommits . values ( ) ) ; } | public virtual IList < IndexCommit > GetSnapshots ( ) { lock ( this ) { return new List < IndexCommit > ( m_indexCommits . Values ) ; } } |
public static int subIndex ( int n , int [ ] docStarts ) { int size = docStarts . length ; int lo = 0 ; int hi = size - 1 ; while ( hi >= lo ) { int mid = ( lo + hi ) > > > 1 ; int midValue = docStarts [ mid ] ; if ( n < midValue ) hi = mid - 1 ; else if ( n > midValue ) lo = mid + 1 ; else { while ( mid + 1 < size && docStarts [ mid + 1 ] == midValue ) { mid ++ ; } return mid ; } } return hi ; } | public static int SubIndex ( int n , int [ ] docStarts ) { int size = docStarts . Length ; int lo = 0 ; int hi = size - 1 ; while ( hi >= lo ) { int mid = ( int ) ( ( uint ) ( lo + hi ) > > 1 ) ; int midValue = docStarts [ mid ] ; if ( n < midValue ) { hi = mid - 1 ; } else if ( n > midValue ) { lo = mid + 1 ; } else { while ( mid + 1 < size && docStarts [ mid + 1 ] == midValue ) { mid ++ ; } return mid ; } } return hi ; } |
public static Date getJavaDate ( double date , boolean use1904windowing ) { return getJavaDate ( date , use1904windowing , null , false ) ; } | public static DateTime GetJavaDate ( double date , bool use1904windowing ) { return GetJavaCalendar ( date , use1904windowing , false ) ; } |
public CharSequence getLastOnPath ( CharSequence key ) { Row now = getRow ( root ) ; int w ; CharSequence last = null ; StrEnum e = new StrEnum ( key , forward ) ; for ( int i = 0 ; i < key . length ( ) - 1 ; i ++ ) { Character ch = e . next ( ) ; w = now . getCmd ( ch ) ; if ( w >= 0 ) { last = cmds . get ( w ) ; } w = now . getRef ( ch ) ; if ( w >= 0 ) { now = getRow ( w ) ; } else { return last ; } } w = now . getCmd ( e . next ( ) ) ; return ( w >= 0 ) ? cmds . get ( w ) : last ; } | public virtual string GetLastOnPath ( string key ) { Row now = GetRow ( root ) ; int w ; string last = null ; StrEnum e = new StrEnum ( key , forward ) ; for ( int i = 0 ; i < key . Length - 1 ; i ++ ) { char ch = e . Next ( ) ; w = now . GetCmd ( ch ) ; if ( w >= 0 ) { last = cmds [ w ] ; } w = now . GetRef ( ch ) ; if ( w >= 0 ) { now = GetRow ( w ) ; } else { return last ; } } w = now . GetCmd ( e . Next ( ) ) ; return ( w >= 0 ) ? cmds [ w ] : last ; } |
public Hashtable ( int capacity ) { if ( capacity < 0 ) { throw new IllegalArgumentException ( "Capacity: " + capacity ) ; } if ( capacity == 0 ) { @ SuppressWarnings ( "unchecked" ) HashtableEntry < K , V > [ ] tab = ( HashtableEntry < K , V > [ ] ) EMPTY_TABLE ; table = tab ; threshold = - 1 ; return ; } if ( capacity < MINIMUM_CAPACITY ) { capacity = MINIMUM_CAPACITY ; } else if ( capacity > MAXIMUM_CAPACITY ) { capacity = MAXIMUM_CAPACITY ; } else { capacity = roundUpToPowerOfTwo ( capacity ) ; } makeTable ( capacity ) ; } | public Hashtable ( int capacity ) { if ( capacity < 0 ) { throw new System . ArgumentException ( "Capacity: " + capacity ) ; } if ( capacity == 0 ) { java . util . Hashtable . HashtableEntry < K , V > [ ] tab = ( java . util . Hashtable . HashtableEntry < K , V > [ ] ) EMPTY_TABLE ; table = tab ; threshold = - 1 ; return ; } if ( capacity < java . util . Hashtable . MINIMUM_CAPACITY ) { capacity = java . util . Hashtable . MINIMUM_CAPACITY ; } else { if ( capacity > java . util . Hashtable . MAXIMUM_CAPACITY ) { capacity = java . util . Hashtable . MAXIMUM_CAPACITY ; } else { capacity = roundUpToPowerOfTwo ( capacity ) ; } } makeTable ( capacity ) ; } |
public void reset ( ) { heads . clear ( ) ; heads . addAll ( headsStartValue ) ; } | public virtual void Reset ( ) { heads . Clear ( ) ; Sharpen . Collections . AddAll ( heads , headsStartValue ) ; } |
public CreatePlacementGroupResult createPlacementGroup ( CreatePlacementGroupRequest request ) { request = beforeClientExecution ( request ) ; return executeCreatePlacementGroup ( request ) ; } | public virtual CreatePlacementGroupResponse CreatePlacementGroup ( CreatePlacementGroupRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreatePlacementGroupRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreatePlacementGroupResponseUnmarshaller . Instance ; return Invoke < CreatePlacementGroupResponse > ( request , options ) ; } |
public final float maxCharsPerByte ( ) { return maxCharsPerByte ; } | public float maxCharsPerByte ( ) { return _maxCharsPerByte ; } |
public static String getRFC2616Date ( Date date ) { SimpleDateFormat df = new SimpleDateFormat ( FORMAT_RFC2616 , Locale . ENGLISH ) ; df . setTimeZone ( new SimpleTimeZone ( 0 , TIME_ZONE ) ) ; return df . format ( date ) ; } | public static string GetRFC2616Date ( DateTime datetime ) { if ( null == datetime ) { datetime = DateTime . UtcNow ; } return datetime . ToUniversalTime ( ) . GetDateTimeFormats ( 'r' ) [ 0 ] ; } |
public ListContributorInsightsResult listContributorInsights ( ListContributorInsightsRequest request ) { request = beforeClientExecution ( request ) ; return executeListContributorInsights ( request ) ; } | public virtual ListContributorInsightsResponse ListContributorInsights ( ListContributorInsightsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListContributorInsightsRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListContributorInsightsResponseUnmarshaller . Instance ; return Invoke < ListContributorInsightsResponse > ( request , options ) ; } |
public void setPackedGitOpenFiles ( int fdLimit ) { packedGitOpenFiles = fdLimit ; } | public virtual void SetPackedGitOpenFiles ( int fdLimit ) { packedGitOpenFiles = fdLimit ; } |
public DBCluster failoverDBCluster ( FailoverDBClusterRequest request ) { request = beforeClientExecution ( request ) ; return executeFailoverDBCluster ( request ) ; } | public virtual FailoverDBClusterResponse FailoverDBCluster ( FailoverDBClusterRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = FailoverDBClusterRequestMarshaller . Instance ; options . ResponseUnmarshaller = FailoverDBClusterResponseUnmarshaller . Instance ; return Invoke < FailoverDBClusterResponse > ( request , options ) ; } |
public StringBuilder insert ( int offset , double d ) { insert0 ( offset , Double . toString ( d ) ) ; return this ; } | public java . lang . StringBuilder insert ( int offset , double d ) { insert0 ( offset , System . Convert . ToString ( d ) ) ; return this ; } |
public void serialize ( LittleEndianOutput out ) { futureHeader . serialize ( out ) ; out . writeShort ( isf_sharedFeatureType ) ; out . writeByte ( reserved1 ) ; out . writeInt ( ( int ) reserved2 ) ; out . writeShort ( cellRefs . length ) ; out . writeInt ( ( int ) cbFeatData ) ; out . writeShort ( reserved3 ) ; for ( int i = 0 ; i < cellRefs . length ; i ++ ) { cellRefs [ i ] . serialize ( out ) ; } sharedFeature . serialize ( out ) ; } | public override void Serialize ( ILittleEndianOutput out1 ) { futureHeader . Serialize ( out1 ) ; out1 . WriteShort ( isf_sharedFeatureType ) ; out1 . WriteByte ( reserved1 ) ; out1 . WriteInt ( ( int ) reserved2 ) ; out1 . WriteShort ( cellRefs . Length ) ; out1 . WriteInt ( ( int ) cbFeatData ) ; out1 . WriteShort ( reserved3 ) ; for ( int i = 0 ; i < cellRefs . Length ; i ++ ) { cellRefs [ i ] . Serialize ( out1 ) ; } sharedFeature . Serialize ( out1 ) ; } |
public void writeDouble ( double value ) throws IOException { checkWritePrimitiveTypes ( ) ; primitiveTypes . writeDouble ( value ) ; } | public virtual void writeDouble ( double value ) { throw new System . NotImplementedException ( ) ; } |
public DisassociateWebsiteAuthorizationProviderResult disassociateWebsiteAuthorizationProvider ( DisassociateWebsiteAuthorizationProviderRequest request ) { request = beforeClientExecution ( request ) ; return executeDisassociateWebsiteAuthorizationProvider ( request ) ; } | public virtual DisassociateWebsiteAuthorizationProviderResponse DisassociateWebsiteAuthorizationProvider ( DisassociateWebsiteAuthorizationProviderRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DisassociateWebsiteAuthorizationProviderRequestMarshaller . Instance ; options . ResponseUnmarshaller = DisassociateWebsiteAuthorizationProviderResponseUnmarshaller . Instance ; return Invoke < DisassociateWebsiteAuthorizationProviderResponse > ( request , options ) ; } |
public final byte [ ] serialize ( ) { byte [ ] retval = new byte [ getRecordSize ( ) ] ; serialize ( 0 , retval ) ; return retval ; } | public byte [ ] Serialize ( ) { byte [ ] retval = new byte [ RecordSize ] ; Serialize ( 0 , retval ) ; return retval ; } |
public Cell next ( ) { if ( ! hasNext ( ) ) { throw new NoSuchElementException ( "At last element" ) ; } HSSFCell cell = cells [ nextId ] ; thisId = nextId ; findNext ( ) ; return cell ; } | public ICell next ( ) { if ( hasNext ( ) ) return _cells [ pos ++ ] ; else throw new NullReferenceException ( ) ; } |
public static double [ ] grow ( double [ ] array ) { return grow ( array , 1 + array . length ) ; } | public static short [ ] Grow ( short [ ] array ) { return Grow ( array , 1 + array . Length ) ; } |
public synchronized StringBuffer insert ( int index , String string ) { insert0 ( index , string ) ; return this ; } | public java . lang . StringBuffer insert ( int index , string @ string ) { lock ( this ) { insert0 ( index , @ string ) ; return this ; } } |
public DomainDetail describeDomain ( DescribeDomainRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeDomain ( request ) ; } | public virtual DescribeDomainResponse DescribeDomain ( DescribeDomainRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeDomainRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeDomainResponseUnmarshaller . Instance ; return Invoke < DescribeDomainResponse > ( request , options ) ; } |
public void reset ( ) { this . reset ( true , true ) ; } | public void Reset ( ) { this . Reset ( true , true ) ; } |
public void serialize ( LittleEndianOutput out ) { out . writeShort ( _reserved ) ; } | public override void Serialize ( ILittleEndianOutput out1 ) { out1 . WriteShort ( _reserved ) ; } |
public int getStartOffset ( ) { return startOffset ; } | public virtual int GetStartOffset ( ) { return startOffset ; } |
public synchronized String [ ] listAll ( ) throws IOException { final Set < String > files = new HashSet < > ( ) ; for ( String f : cacheDirectory . listAll ( ) ) { files . add ( f ) ; } for ( String f : in . listAll ( ) ) { files . add ( f ) ; } String [ ] result = files . toArray ( new String [ files . size ( ) ] ) ; Arrays . sort ( result ) ; return result ; } | public override string [ ] ListAll ( ) { lock ( this ) { ISet < string > files = new JCG . HashSet < string > ( ) ; foreach ( string f in cache . ListAll ( ) ) { files . Add ( f ) ; } try { foreach ( string f in @ delegate . ListAll ( ) ) { files . Add ( f ) ; } } catch ( DirectoryNotFoundException ) { if ( files . Count == 0 ) { throw ; } } return files . ToArray ( ) ; } } |
public byte clearByte ( final byte holder ) { return ( byte ) clear ( holder ) ; } | public byte ClearByte ( byte holder ) { return ( byte ) this . Clear ( holder ) ; } |
public ScenarioProtectRecord getHCenter ( ) { return _scenarioProtectRecord ; } | public ScenarioProtectRecord GetHCenter ( ) { return _scenarioProtectRecord ; } |
public HSSFRow createRow ( int rownum ) { HSSFRow row = new HSSFRow ( _workbook , this , rownum ) ; row . setHeight ( getDefaultRowHeight ( ) ) ; row . getRowRecord ( ) . setBadFontHeight ( false ) ; addRow ( row , true ) ; return row ; } | public NPOI . SS . UserModel . IRow CreateRow ( int rownum ) { HSSFRow row = new HSSFRow ( _workbook , this , rownum ) ; row . Height = ( DefaultRowHeight ) ; row . RowRecord . BadFontHeight = ( false ) ; AddRow ( row , true ) ; return row ; } |
public ListQueryExecutionsResult listQueryExecutions ( ListQueryExecutionsRequest request ) { request = beforeClientExecution ( request ) ; return executeListQueryExecutions ( request ) ; } | public virtual ListQueryExecutionsResponse ListQueryExecutions ( ListQueryExecutionsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListQueryExecutionsRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListQueryExecutionsResponseUnmarshaller . Instance ; return Invoke < ListQueryExecutionsResponse > ( request , options ) ; } |
public DeleteSuppressedDestinationResult deleteSuppressedDestination ( DeleteSuppressedDestinationRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteSuppressedDestination ( request ) ; } | public virtual DeleteSuppressedDestinationResponse DeleteSuppressedDestination ( DeleteSuppressedDestinationRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteSuppressedDestinationRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteSuppressedDestinationResponseUnmarshaller . Instance ; return Invoke < DeleteSuppressedDestinationResponse > ( request , options ) ; } |
public CharsRef subtract ( CharsRef output , CharsRef inc ) { assert output != null ; assert inc != null ; if ( inc == NO_OUTPUT ) { return output ; } else if ( inc . length == output . length ) { return NO_OUTPUT ; } else { assert inc . length < output . length : "inc.length=" + inc . length + " vs output.length=" + output . length ; assert inc . length > 0 ; return new CharsRef ( output . chars , output . offset + inc . length , output . length - inc . length ) ; } } | public override CharsRef Subtract ( CharsRef output , CharsRef inc ) { Debug . Assert ( output != null ) ; Debug . Assert ( inc != null ) ; if ( inc == NO_OUTPUT ) { return output ; } else if ( inc . Length == output . Length ) { return NO_OUTPUT ; } else { Debug . Assert ( inc . Length < output . Length , "inc.Length=" + inc . Length + " vs output.Length=" + output . Length ) ; Debug . Assert ( inc . Length > 0 ) ; return new CharsRef ( output . Chars , output . Offset + inc . Length , output . Length - inc . Length ) ; } } |
public void requestCancelWorkflowExecution ( RequestCancelWorkflowExecutionRequest request ) { request = beforeClientExecution ( request ) ; executeRequestCancelWorkflowExecution ( request ) ; } | public virtual RequestCancelWorkflowExecutionResponse RequestCancelWorkflowExecution ( RequestCancelWorkflowExecutionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = RequestCancelWorkflowExecutionRequestMarshaller . Instance ; options . ResponseUnmarshaller = RequestCancelWorkflowExecutionResponseUnmarshaller . Instance ; return Invoke < RequestCancelWorkflowExecutionResponse > ( request , options ) ; } |
public boolean equals ( Object o ) { if ( this == o ) { return true ; } if ( o == null || getClass ( ) != o . getClass ( ) ) { return false ; } Arn arn = ( Arn ) o ; if ( ! partition . equals ( arn . partition ) ) { return false ; } if ( ! service . equals ( arn . service ) ) { return false ; } if ( region != null ? ! region . equals ( arn . region ) : arn . region != null ) { return false ; } if ( accountId != null ? ! accountId . equals ( arn . accountId ) : arn . accountId != null ) { return false ; } return resource . equals ( arn . resource ) ; } | public override bool Equals ( object o ) { if ( this == o ) { return true ; } var arn = o as Arn ; if ( arn == null ) { return false ; } if ( ! Partition . Equals ( arn . Partition ) ) { return false ; } if ( ! Service . Equals ( arn . Service ) ) { return false ; } if ( Region != arn . Region ) { return false ; } if ( AccountId != arn . AccountId ) { return false ; } return Resource . Equals ( arn . Resource ) ; } |
public UpdateDataSetPermissionsResult updateDataSetPermissions ( UpdateDataSetPermissionsRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateDataSetPermissions ( request ) ; } | public virtual UpdateDataSetPermissionsResponse UpdateDataSetPermissions ( UpdateDataSetPermissionsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = UpdateDataSetPermissionsRequestMarshaller . Instance ; options . ResponseUnmarshaller = UpdateDataSetPermissionsResponseUnmarshaller . Instance ; return Invoke < UpdateDataSetPermissionsResponse > ( request , options ) ; } |
public DeleteCloudFrontOriginAccessIdentityResult deleteCloudFrontOriginAccessIdentity ( DeleteCloudFrontOriginAccessIdentityRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteCloudFrontOriginAccessIdentity ( request ) ; } | public virtual DeleteCloudFrontOriginAccessIdentityResponse DeleteCloudFrontOriginAccessIdentity ( DeleteCloudFrontOriginAccessIdentityRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteCloudFrontOriginAccessIdentityRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteCloudFrontOriginAccessIdentityResponseUnmarshaller . Instance ; return Invoke < DeleteCloudFrontOriginAccessIdentityResponse > ( request , options ) ; } |
public TokenStream create ( TokenStream input ) { return new PortugueseMinimalStemFilter ( input ) ; } | public override TokenStream Create ( TokenStream input ) { return new PortugueseMinimalStemFilter ( input ) ; } |
public PutDashboardResult putDashboard ( PutDashboardRequest request ) { request = beforeClientExecution ( request ) ; return executePutDashboard ( request ) ; } | public virtual PutDashboardResponse PutDashboard ( PutDashboardRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = PutDashboardRequestMarshaller . Instance ; options . ResponseUnmarshaller = PutDashboardResponseUnmarshaller . Instance ; return Invoke < PutDashboardResponse > ( request , options ) ; } |
public void addChar ( char c , int width ) { charWidths . put ( Character . valueOf ( c ) , Integer . valueOf ( width ) ) ; } | public void AddChar ( char c , int width ) { charWidths [ c ] = width ; } |
public DeleteRoomSkillParameterResult deleteRoomSkillParameter ( DeleteRoomSkillParameterRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteRoomSkillParameter ( request ) ; } | public virtual DeleteRoomSkillParameterResponse DeleteRoomSkillParameter ( DeleteRoomSkillParameterRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteRoomSkillParameterRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteRoomSkillParameterResponseUnmarshaller . Instance ; return Invoke < DeleteRoomSkillParameterResponse > ( request , options ) ; } |
public String get ( String name , String dflt ) { String vals [ ] = ( String [ ] ) valByRound . get ( name ) ; if ( vals != null ) { return vals [ roundNumber % vals . length ] ; } String sval = props . getProperty ( name , dflt ) ; if ( sval == null ) { return null ; } if ( sval . indexOf ( ":" ) < 0 ) { return sval ; } else if ( sval . indexOf ( ":\\" ) >= 0 || sval . indexOf ( ":/" ) >= 0 ) { return sval ; } int k = sval . indexOf ( ":" ) ; String colName = sval . substring ( 0 , k ) ; sval = sval . substring ( k + 1 ) ; colForValByRound . put ( name , colName ) ; vals = propToStringArray ( sval ) ; valByRound . put ( name , vals ) ; return vals [ roundNumber % vals . length ] ; } | public virtual string Get ( string name , string dflt ) { string [ ] vals ; object temp ; if ( valByRound . TryGetValue ( name , out temp ) && temp != null ) { vals = ( string [ ] ) temp ; return vals [ roundNumber % vals . Length ] ; } string sval ; if ( ! props . TryGetValue ( name , out sval ) ) { sval = dflt ; } if ( sval == null ) { return null ; } if ( sval . IndexOf ( ':' ) < 0 ) { return sval ; } else if ( sval . IndexOf ( ":\\" , StringComparison . Ordinal ) >= 0 || sval . IndexOf ( ":/" , StringComparison . Ordinal ) >= 0 ) { return sval ; } int k = sval . IndexOf ( ':' ) ; string colName = sval . Substring ( 0 , k - 0 ) ; sval = sval . Substring ( k + 1 ) ; colForValByRound [ name ] = colName ; vals = PropToStringArray ( sval ) ; valByRound [ name ] = vals ; return vals [ roundNumber % vals . Length ] ; } |
public DBClusterSnapshotAttributesResult describeDBClusterSnapshotAttributes ( DescribeDBClusterSnapshotAttributesRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeDBClusterSnapshotAttributes ( request ) ; } | public virtual DescribeDBClusterSnapshotAttributesResponse DescribeDBClusterSnapshotAttributes ( DescribeDBClusterSnapshotAttributesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeDBClusterSnapshotAttributesRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeDBClusterSnapshotAttributesResponseUnmarshaller . Instance ; return Invoke < DescribeDBClusterSnapshotAttributesResponse > ( request , options ) ; } |
public void addFile ( FileHeader fh ) { files . add ( fh ) ; } | public virtual void AddFile ( FileHeader fh ) { files . AddItem ( fh ) ; } |
public TokenStream create ( TokenStream input ) { return new ItalianLightStemFilter ( input ) ; } | public override TokenStream Create ( TokenStream input ) { return new ItalianLightStemFilter ( input ) ; } |
public LinkedHashMap ( ) { init ( ) ; accessOrder = false ; } | public LinkedHashMap ( ) { init ( ) ; accessOrder = false ; } |
public DeleteStackInstancesResult deleteStackInstances ( DeleteStackInstancesRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteStackInstances ( request ) ; } | public virtual DeleteStackInstancesResponse DeleteStackInstances ( DeleteStackInstancesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteStackInstancesRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteStackInstancesResponseUnmarshaller . Instance ; return Invoke < DeleteStackInstancesResponse > ( request , options ) ; } |
public String toString ( ) { return "(" + a . toString ( ) + " AND " + b . toString ( ) + ")" ; } | public override string ToString ( ) { return "(" + a . ToString ( ) + " OR " + b . ToString ( ) + ")" ; } |
public StringWriter ( ) { buf = new StringBuffer ( 16 ) ; lock = buf ; } | public StringWriter ( ) { buf = new java . lang . StringBuffer ( 16 ) ; @ lock = buf ; } |
public List < MatchingDocs > getOriginalMatchingDocs ( ) { return super . getMatchingDocs ( ) ; } | public virtual IList < MatchingDocs > GetOriginalMatchingDocs ( ) { return base . GetMatchingDocs ( ) ; } |
public ValueEval evaluate ( int srcRowIndex , int srcColumnIndex , ValueEval arg0 , ValueEval arg1 ) { double result ; try { double d0 = singleOperandEvaluate ( arg0 , srcRowIndex , srcColumnIndex ) ; double d1 = singleOperandEvaluate ( arg1 , srcRowIndex , srcColumnIndex ) ; result = evaluate ( d0 , d1 ) ; checkValue ( result ) ; } catch ( EvaluationException e ) { return e . getErrorEval ( ) ; } return new NumberEval ( result ) ; } | public override ValueEval Evaluate ( int srcRowIndex , int srcColumnIndex , ValueEval arg0 , ValueEval arg1 ) { double result ; try { double d0 = NumericFunction . SingleOperandEvaluate ( arg0 , srcRowIndex , srcColumnIndex ) ; double d1 = NumericFunction . SingleOperandEvaluate ( arg1 , srcRowIndex , srcColumnIndex ) ; result = Evaluate ( d0 , d1 ) ; NumericFunction . CheckValue ( result ) ; } catch ( EvaluationException e ) { return e . GetErrorEval ( ) ; } return new NumberEval ( result ) ; } |
public String toString ( ) { return "[HCENTER]\n" + " .hcenter = " + getHCenter ( ) + "\n" + "[/HCENTER]\n" ; } | public override String ToString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( "[HCENTER]\n" ) ; buffer . Append ( " .hcenter = " ) . Append ( HCenter ) . Append ( "\n" ) ; buffer . Append ( "[/HCENTER]\n" ) ; return buffer . ToString ( ) ; } |
public GetEbsEncryptionByDefaultResult getEbsEncryptionByDefault ( GetEbsEncryptionByDefaultRequest request ) { request = beforeClientExecution ( request ) ; return executeGetEbsEncryptionByDefault ( request ) ; } | public virtual GetEbsEncryptionByDefaultResponse GetEbsEncryptionByDefault ( GetEbsEncryptionByDefaultRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetEbsEncryptionByDefaultRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetEbsEncryptionByDefaultResponseUnmarshaller . Instance ; return Invoke < GetEbsEncryptionByDefaultResponse > ( request , options ) ; } |
public ParseException generateParseException ( ) { jj_expentries . clear ( ) ; boolean [ ] la1tokens = new boolean [ 34 ] ; if ( jj_kind >= 0 ) { la1tokens [ jj_kind ] = true ; jj_kind = - 1 ; } for ( int i = 0 ; i < 25 ; i ++ ) { if ( jj_la1 [ i ] == jj_gen ) { for ( int j = 0 ; j < 32 ; j ++ ) { if ( ( jj_la1_0 [ i ] & ( 1 << j ) ) != 0 ) { la1tokens [ j ] = true ; } if ( ( jj_la1_1 [ i ] & ( 1 << j ) ) != 0 ) { la1tokens [ 32 + j ] = true ; } } } } for ( int i = 0 ; i < 34 ; i ++ ) { if ( la1tokens [ i ] ) { jj_expentry = new int [ 1 ] ; jj_expentry [ 0 ] = i ; jj_expentries . add ( jj_expentry ) ; } } jj_endpos = 0 ; jj_rescan_token ( ) ; jj_add_error_token ( 0 , 0 ) ; int [ ] [ ] exptokseq = new int [ jj_expentries . size ( ) ] [ ] ; for ( int i = 0 ; i < jj_expentries . size ( ) ; i ++ ) { exptokseq [ i ] = jj_expentries . get ( i ) ; } return new ParseException ( token , exptokseq , tokenImage ) ; } | public virtual ParseException GenerateParseException ( ) { jj_expentries . Clear ( ) ; bool [ ] la1tokens = new bool [ 33 ] ; if ( jj_kind >= 0 ) { la1tokens [ jj_kind ] = true ; jj_kind = - 1 ; } for ( int i = 0 ; i < 21 ; i ++ ) { if ( jj_la1 [ i ] == jj_gen ) { for ( int j = 0 ; j < 32 ; j ++ ) { if ( ( jj_la1_0 [ i ] & ( 1 << j ) ) != 0 ) { la1tokens [ j ] = true ; } if ( ( jj_la1_1 [ i ] & ( 1 << j ) ) != 0 ) { la1tokens [ 32 + j ] = true ; } } } } for ( int i = 0 ; i < 33 ; i ++ ) { if ( la1tokens [ i ] ) { jj_expentry = new int [ 1 ] ; jj_expentry [ 0 ] = i ; jj_expentries . Add ( jj_expentry ) ; } } jj_endpos = 0 ; Jj_rescan_token ( ) ; Jj_add_error_token ( 0 , 0 ) ; int [ ] [ ] exptokseq = new int [ jj_expentries . Count ] [ ] ; for ( int i = 0 ; i < jj_expentries . Count ; i ++ ) { exptokseq [ i ] = jj_expentries [ i ] ; } return new ParseException ( Token , exptokseq , QueryParserConstants . TokenImage ) ; } |
public int getCharWidth ( char c ) { Integer widthInteger = charWidths . get ( Character . valueOf ( c ) ) ; if ( widthInteger == null ) { return 'W' == c ? 0 : getCharWidth ( 'W' ) ; } return widthInteger ; } | public int GetCharWidth ( char c ) { object widthInteger = charWidths [ c ] ; if ( widthInteger == null ) return 'W' == c ? 0 : GetCharWidth ( 'W' ) ; else return ( int ) widthInteger ; } |
public DescribeSecurityGroupReferencesResult describeSecurityGroupReferences ( DescribeSecurityGroupReferencesRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeSecurityGroupReferences ( request ) ; } | public virtual DescribeSecurityGroupReferencesResponse DescribeSecurityGroupReferences ( DescribeSecurityGroupReferencesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeSecurityGroupReferencesRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeSecurityGroupReferencesResponseUnmarshaller . Instance ; return Invoke < DescribeSecurityGroupReferencesResponse > ( request , options ) ; } |
public final V getValue ( ) { return value ; } | public virtual V getValue ( ) { return value ; } |
public EscherContainerRecord getEscherContainer ( ) { for ( EscherRecord er : escherRecords ) { if ( er instanceof EscherContainerRecord ) { return ( EscherContainerRecord ) er ; } } return null ; } | public EscherContainerRecord GetEscherContainer ( ) { for ( IEnumerator it = escherRecords . GetEnumerator ( ) ; it . MoveNext ( ) ; ) { Object er = it . Current ; if ( er is EscherContainerRecord ) { return ( EscherContainerRecord ) er ; } } return null ; } |
public boolean removeShape ( HSSFShape shape ) { boolean isRemoved = getEscherContainer ( ) . removeChildRecord ( shape . getEscherContainer ( ) ) ; if ( isRemoved ) { shape . afterRemove ( this . getPatriarch ( ) ) ; shapes . remove ( shape ) ; } return isRemoved ; } | public bool RemoveShape ( HSSFShape shape ) { bool isRemoved = GetEscherContainer ( ) . RemoveChildRecord ( shape . GetEscherContainer ( ) ) ; if ( isRemoved ) { shape . AfterRemove ( this . Patriarch ) ; shapes . Remove ( shape ) ; } return isRemoved ; } |
public boolean changeExternalReference ( String oldUrl , String newUrl ) { return linkTable . changeExternalReference ( oldUrl , newUrl ) ; } | public bool ChangeExternalReference ( String oldUrl , String newUrl ) { return linkTable . ChangeExternalReference ( oldUrl , newUrl ) ; } |
public String toString ( ) { return "BLOCK: " + brToString ( prefix ) ; } | public override string ToString ( ) { return "BLOCK: " + Prefix . Utf8ToString ( ) ; } |
public static String pathToString ( String [ ] path ) { return pathToString ( path , path . length ) ; } | public static string PathToString ( string [ ] path ) { return PathToString ( path , path . Length ) ; } |
public final boolean isInRange ( int rowIx , int colIx ) { CellRangeAddress8Bit r = _range ; return r . getFirstRow ( ) <= rowIx && r . getLastRow ( ) >= rowIx && r . getFirstColumn ( ) <= colIx && r . getLastColumn ( ) >= colIx ; } | public bool IsInRange ( int rowIx , int colIx ) { CellRangeAddress8Bit r = _range ; return r . FirstRow <= rowIx && r . LastRow >= rowIx && r . FirstColumn <= colIx && r . LastColumn >= colIx ; } |
public RmCommand rm ( ) { return new RmCommand ( repo ) ; } | public virtual RmCommand Rm ( ) { return new RmCommand ( repo ) ; } |
public static String [ ] parse ( String line ) { boolean insideQuote = false ; ArrayList < String > result = new ArrayList < > ( ) ; int quoteCount = 0 ; StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < line . length ( ) ; i ++ ) { char c = line . charAt ( i ) ; if ( c == QUOTE ) { insideQuote = ! insideQuote ; quoteCount ++ ; } if ( c == COMMA && ! insideQuote ) { String value = sb . toString ( ) ; value = unQuoteUnEscape ( value ) ; result . add ( value ) ; sb . setLength ( 0 ) ; continue ; } sb . append ( c ) ; } result . add ( sb . toString ( ) ) ; if ( quoteCount % 2 != 0 ) { return new String [ 0 ] ; } return result . toArray ( new String [ 0 ] ) ; } | public static string [ ] Parse ( string line ) { bool insideQuote = false ; List < string > result = new List < string > ( ) ; int quoteCount = 0 ; StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < line . Length ; i ++ ) { char c = line [ i ] ; if ( c == QUOTE ) { insideQuote = ! insideQuote ; quoteCount ++ ; } if ( c == COMMA && ! insideQuote ) { string value = sb . ToString ( ) ; value = UnQuoteUnEscape ( value ) ; result . Add ( value ) ; sb . Length = 0 ; continue ; } sb . Append ( c ) ; } result . Add ( sb . ToString ( ) ) ; if ( quoteCount % 2 != 0 ) { return new string [ 0 ] ; } return result . ToArray ( ) ; } |
public long get ( int index ) { final int o = index / 3 ; final int b = index % 3 ; final int shift = b * 21 ; return ( blocks [ o ] > > > shift ) & 2097151L ; } | public override long Get ( int index ) { int o = index / 3 ; int b = index % 3 ; int shift = b * 21 ; return ( ( long ) ( ( ulong ) blocks [ o ] > > shift ) ) & 2097151L ; } |
public void connect ( PipedOutputStream src ) throws IOException { src . connect ( this ) ; } | public virtual void connect ( java . io . PipedOutputStream src ) { throw new System . NotImplementedException ( ) ; } |
public WeightedPhraseInfo ( Collection < WeightedPhraseInfo > toMerge ) { Iterator < WeightedPhraseInfo > toMergeItr = toMerge . iterator ( ) ; if ( ! toMergeItr . hasNext ( ) ) { throw new IllegalArgumentException ( "toMerge must contain at least one WeightedPhraseInfo." ) ; } WeightedPhraseInfo first = toMergeItr . next ( ) ; @ SuppressWarnings ( { "rawtypes" , "unchecked" } ) Iterator < Toffs > [ ] allToffs = new Iterator [ toMerge . size ( ) ] ; termsInfos = new ArrayList < > ( ) ; seqnum = first . seqnum ; boost = first . boost ; allToffs [ 0 ] = first . termsOffsets . iterator ( ) ; int index = 1 ; while ( toMergeItr . hasNext ( ) ) { WeightedPhraseInfo info = toMergeItr . next ( ) ; boost += info . boost ; termsInfos . addAll ( info . termsInfos ) ; allToffs [ index ++ ] = info . termsOffsets . iterator ( ) ; } MergedIterator < Toffs > itr = new MergedIterator < > ( false , allToffs ) ; termsOffsets = new ArrayList < > ( ) ; if ( ! itr . hasNext ( ) ) { return ; } Toffs work = itr . next ( ) ; while ( itr . hasNext ( ) ) { Toffs current = itr . next ( ) ; if ( current . startOffset <= work . endOffset ) { work . endOffset = Math . max ( work . endOffset , current . endOffset ) ; } else { termsOffsets . add ( work ) ; work = current ; } } termsOffsets . add ( work ) ; } | public WeightedPhraseInfo ( ICollection < WeightedPhraseInfo > toMerge ) { IEnumerator < Toffs > [ ] allToffs = new IEnumerator < Toffs > [ toMerge . Count ] ; try { using ( IEnumerator < WeightedPhraseInfo > toMergeItr = toMerge . GetEnumerator ( ) ) { if ( ! toMergeItr . MoveNext ( ) ) { throw new ArgumentException ( "toMerge must contain at least one WeightedPhraseInfo." ) ; } WeightedPhraseInfo first = toMergeItr . Current ; termsInfos = new List < TermInfo > ( ) ; seqnum = first . seqnum ; boost = first . boost ; allToffs [ 0 ] = first . termsOffsets . GetEnumerator ( ) ; int index = 1 ; while ( toMergeItr . MoveNext ( ) ) { WeightedPhraseInfo info = toMergeItr . Current ; boost += info . boost ; termsInfos . AddRange ( info . termsInfos ) ; allToffs [ index ++ ] = info . termsOffsets . GetEnumerator ( ) ; } using ( MergedIterator < Toffs > itr = new MergedIterator < Toffs > ( false , allToffs ) ) { termsOffsets = new List < Toffs > ( ) ; if ( ! itr . MoveNext ( ) ) { return ; } Toffs work = itr . Current ; while ( itr . MoveNext ( ) ) { Toffs current = itr . Current ; if ( current . StartOffset <= work . EndOffset ) { work . EndOffset = Math . Max ( work . EndOffset , current . EndOffset ) ; } else { termsOffsets . Add ( work ) ; work = current ; } } termsOffsets . Add ( work ) ; } } } finally { foreach ( var allToff in allToffs ) { allToff . Dispose ( ) ; } } } |
public DescribeLoadBalancerPolicyTypesResult describeLoadBalancerPolicyTypes ( DescribeLoadBalancerPolicyTypesRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeLoadBalancerPolicyTypes ( request ) ; } | public virtual DescribeLoadBalancerPolicyTypesResponse DescribeLoadBalancerPolicyTypes ( DescribeLoadBalancerPolicyTypesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeLoadBalancerPolicyTypesRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeLoadBalancerPolicyTypesResponseUnmarshaller . Instance ; return Invoke < DescribeLoadBalancerPolicyTypesResponse > ( request , options ) ; } |
public Entry < K , V > next ( ) { return nextEntry ( ) ; } | public override java . util . MapClass . Entry < K , V > next ( ) { return this . nextEntry ( ) ; } |
public int getCmd ( Character way ) { Cell c = at ( way ) ; return ( c == null ) ? - 1 : c . cmd ; } | public int GetCmd ( char way ) { Cell c = At ( way ) ; return ( c == null ) ? - 1 : c . cmd ; } |
public int readInt ( ) { int ch1 = _in . readUByte ( ) ; int ch2 = _in . readUByte ( ) ; int ch3 = _in . readUByte ( ) ; int ch4 = _in . readUByte ( ) ; return ( ch4 << 24 ) + ( ch3 << 16 ) + ( ch2 << 8 ) + ( ch1 << 0 ) ; } | public int ReadInt ( ) { int ch1 = _in . ReadUByte ( ) ; int ch2 = _in . ReadUByte ( ) ; int ch3 = _in . ReadUByte ( ) ; int ch4 = _in . ReadUByte ( ) ; return ( ch4 << 24 ) + ( ch3 << 16 ) + ( ch2 << 8 ) + ( ch1 << 0 ) ; } |
public String toString ( ) { return "Reverse" + super . toString ( ) ; } | public override string ToString ( ) { return "Reverse" + base . ToString ( ) ; } |
public Explanation explain ( Explanation freq , long norm ) { return SimilarityBase . this . explain ( stats , freq , getLengthValue ( norm ) ) ; } | public override Explanation Explain ( int doc , Explanation freq ) { return outerInstance . Explain ( stats , doc , freq , norms == null ? 1F : outerInstance . DecodeNormValue ( ( byte ) norms . Get ( doc ) ) ) ; } |
public static ListenerList getGlobalListenerList ( ) { return globalListeners ; } | public static ListenerList GetGlobalListenerList ( ) { return globalListeners ; } |
public GetInvitationsCountResult getInvitationsCount ( GetInvitationsCountRequest request ) { request = beforeClientExecution ( request ) ; return executeGetInvitationsCount ( request ) ; } | public virtual GetInvitationsCountResponse GetInvitationsCount ( GetInvitationsCountRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetInvitationsCountRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetInvitationsCountResponseUnmarshaller . Instance ; return Invoke < GetInvitationsCountResponse > ( request , options ) ; } |
public static boolean equals ( float [ ] array1 , float [ ] array2 ) { if ( array1 == array2 ) { return true ; } if ( array1 == null || array2 == null || array1 . length != array2 . length ) { return false ; } for ( int i = 0 ; i < array1 . length ; i ++ ) { if ( Float . floatToIntBits ( array1 [ i ] ) != Float . floatToIntBits ( array2 [ i ] ) ) { return false ; } } return true ; } | public static bool equals ( float [ ] array1 , float [ ] array2 ) { if ( array1 == array2 ) { return true ; } if ( array1 == null || array2 == null || array1 . Length != array2 . Length ) { return false ; } { for ( int i = 0 ; i < array1 . Length ; i ++ ) { if ( Sharpen . Util . FloatToIntBits ( array1 [ i ] ) != Sharpen . Util . FloatToIntBits ( array2 [ i ] ) ) { return false ; } } } return true ; } |
public final V setValue ( V value ) { if ( value == null ) { throw new NullPointerException ( ) ; } V oldValue = this . value ; this . value = value ; return oldValue ; } | public virtual V setValue ( V value ) { if ( ( object ) value == null ) { throw new System . ArgumentNullException ( ) ; } V oldValue = this . value ; this . value = value ; return oldValue ; } |
@ Override public boolean isEmpty ( ) { return Impl . this . isEmpty ( ) ; } | public override bool isEmpty ( ) { return this . _enclosing . _size == 0 ; } |
public void setCategoryLabelsCellRange ( CellRangeAddressBase range ) { Integer count = setVerticalCellRange ( dataCategoryLabels , range ) ; if ( count == null ) { return ; } series . setNumCategories ( ( short ) ( int ) count ) ; } | public void SetCategoryLabelsCellRange ( CellRangeAddressBase range ) { int count = SetVerticalCellRange ( dataCategoryLabels , range ) ; series . NumCategories = ( short ) count ; } |
final public SrndQuery OrQuery ( ) throws ParseException { SrndQuery q ; ArrayList < SrndQuery > queries = null ; Token oprt = null ; q = AndQuery ( ) ; label_2 : while ( true ) { switch ( ( jj_ntk == - 1 ) ? jj_ntk ( ) : jj_ntk ) { case OR : ; break ; default : jj_la1 [ 0 ] = jj_gen ; break label_2 ; } oprt = jj_consume_token ( OR ) ; if ( queries == null ) { queries = new ArrayList < SrndQuery > ( ) ; queries . add ( q ) ; } q = AndQuery ( ) ; queries . add ( q ) ; } { if ( true ) return ( queries == null ) ? q : getOrQuery ( queries , true , oprt ) ; } throw new Error ( "Missing return statement in function" ) ; } | public SrndQuery OrQuery ( ) { SrndQuery q ; IList < SrndQuery > queries = null ; Token oprt = null ; q = AndQuery ( ) ; while ( true ) { switch ( ( jj_ntk == - 1 ) ? Jj_ntk ( ) : jj_ntk ) { case RegexpToken . OR : ; break ; default : jj_la1 [ 0 ] = jj_gen ; goto label_2 ; } oprt = Jj_consume_token ( RegexpToken . OR ) ; if ( queries == null ) { queries = new List < SrndQuery > ( ) ; queries . Add ( q ) ; } q = AndQuery ( ) ; queries . Add ( q ) ; } label_2 : { if ( true ) return ( queries == null ) ? q : GetOrQuery ( queries , true , oprt ) ; } throw new Exception ( "Missing return statement in function" ) ; } |
public DeleteScheduledActionResult deleteScheduledAction ( DeleteScheduledActionRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteScheduledAction ( request ) ; } | public virtual DeleteScheduledActionResponse DeleteScheduledAction ( DeleteScheduledActionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteScheduledActionRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller . Instance ; return Invoke < DeleteScheduledActionResponse > ( request , options ) ; } |
public CharBuffer put ( String str , int start , int end ) { if ( start < 0 || end < start || end > str . length ( ) ) { throw new IndexOutOfBoundsException ( "str.length()=" + str . length ( ) + ", start=" + start + ", end=" + end ) ; } if ( end - start > remaining ( ) ) { throw new BufferOverflowException ( ) ; } for ( int i = start ; i < end ; i ++ ) { put ( str . charAt ( i ) ) ; } return this ; } | public virtual java . nio . CharBuffer put ( string str , int start , int end ) { if ( start < 0 || end < start || end > str . Length ) { throw new System . IndexOutOfRangeException ( "str.length()=" + str . Length + ", start=" + start + ", end=" + end ) ; } if ( end - start > remaining ( ) ) { throw new java . nio . BufferOverflowException ( ) ; } { for ( int i = start ; i < end ; i ++ ) { put ( str [ i ] ) ; } } return this ; } |
public void serialize ( LittleEndianOutput out ) { out . writeShort ( rt ) ; out . writeShort ( grbitFrt ) ; out . writeShort ( iObjectKind ) ; out . write ( unused ) ; } | public override void Serialize ( ILittleEndianOutput out1 ) { out1 . WriteShort ( rt ) ; out1 . WriteShort ( grbitFrt ) ; out1 . WriteShort ( iObjectKind ) ; out1 . Write ( unused ) ; } |
public ChangeInfo ( String id , ChangeStatus status , java . util . Date submittedAt ) { setId ( id ) ; setStatus ( status . toString ( ) ) ; setSubmittedAt ( submittedAt ) ; } | public ChangeInfo ( string id , ChangeStatus status , DateTime submittedAt ) { _id = id ; _status = status ; _submittedAt = submittedAt ; } |
public SwedishLightStemFilterFactory ( Map < String , String > args ) { super ( args ) ; if ( ! args . isEmpty ( ) ) { throw new IllegalArgumentException ( "Unknown parameters: " + args ) ; } } | public SwedishLightStemFilterFactory ( IDictionary < string , string > args ) : base ( args ) { if ( args . Count > 0 ) { throw new System . ArgumentException ( "Unknown parameters: " + args ) ; } } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.