question
stringlengths
33
1.59k
target
stringlengths
33
1.58k
public char [ ] toCharArray ( ) { char newbuf [ ] = new char [ size ( ) ] ; System . arraycopy ( buf , 0 , newbuf , 0 , size ( ) ) ; return newbuf ; }
public virtual char [ ] ToCharArray ( ) { char [ ] newbuf = new char [ Length ] ; System . Array . Copy ( m_buf , 0 , newbuf , 0 , Length ) ; return newbuf ; }
public IntervalSet getExpectedTokens ( ) { if ( recognizer != null ) { return recognizer . getATN ( ) . getExpectedTokens ( offendingState , ctx ) ; } return null ; }
public virtual IntervalSet GetExpectedTokens ( ) { if ( recognizer != null ) { return recognizer . Atn . GetExpectedTokens ( offendingState , ctx ) ; } return null ; }
public HindiNormalizationFilterFactory ( Map < String , String > args ) { super ( args ) ; if ( ! args . isEmpty ( ) ) { throw new IllegalArgumentException ( "Unknown parameters: " + args ) ; } }
public HindiNormalizationFilterFactory ( IDictionary < string , string > args ) : base ( args ) { if ( args . Count > 0 ) { throw new System . ArgumentException ( "Unknown parameters: " + args ) ; } }
public UpdateUserIdentityInfoResult updateUserIdentityInfo ( UpdateUserIdentityInfoRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateUserIdentityInfo ( request ) ; }
public virtual UpdateUserIdentityInfoResponse UpdateUserIdentityInfo ( UpdateUserIdentityInfoRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = UpdateUserIdentityInfoRequestMarshaller . Instance ; options . ResponseUnmarshaller = UpdateUserIdentityInfoResponseUnmarshaller . Instance ; return Invoke < UpdateUserIdentityInfoResponse > ( request , options ) ; }
public Allocator ( int blockSize ) { this . blockSize = blockSize ; }
public Allocator ( int blockSize ) { this . m_blockSize = blockSize ; }
public NoteMapMerger ( Repository db , NoteMerger noteMerger , MergeStrategy nonNotesMergeStrategy ) { this . db = db ; this . reader = db . newObjectReader ( ) ; this . inserter = db . newObjectInserter ( ) ; this . noteMerger = noteMerger ; this . nonNotesMergeStrategy = nonNotesMergeStrategy ; this . objectIdPrefix = new MutableObjectId ( ) ; }
public NoteMapMerger ( Repository db , NoteMerger noteMerger , MergeStrategy nonNotesMergeStrategy ) { this . db = db ; this . reader = db . NewObjectReader ( ) ; this . inserter = db . NewObjectInserter ( ) ; this . noteMerger = noteMerger ; this . nonNotesMergeStrategy = nonNotesMergeStrategy ; this . objectIdPrefix = new MutableObjectId ( ) ; }
public ListAliasesResult listAliases ( ListAliasesRequest request ) { request = beforeClientExecution ( request ) ; return executeListAliases ( request ) ; }
public virtual ListAliasesResponse ListAliases ( ListAliasesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListAliasesRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListAliasesResponseUnmarshaller . Instance ; return Invoke < ListAliasesResponse > ( request , options ) ; }
public STSAssumeRoleSessionCredentialsProvider withRoleSessionName ( String roleSessionName ) { this . roleSessionName = roleSessionName ; return this ; }
public void WithRoleSessionName ( string roleSessionName ) { this . roleSessionName = roleSessionName ; }
public IntList ( int capacity ) { entries = new int [ capacity ] ; }
public IntList ( int capacity ) { entries = new int [ capacity ] ; }
public Result getResult ( ) { return result ; }
public virtual ReceiveCommand . Result GetResult ( ) { return status ; }
public int size ( ) { return count ; }
public virtual int Size ( ) { return count ; }
public DescribeAccountAttributesResult describeAccountAttributes ( ) { return describeAccountAttributes ( new DescribeAccountAttributesRequest ( ) ) ; }
public virtual DescribeAccountAttributesResponse DescribeAccountAttributes ( ) { return DescribeAccountAttributes ( new DescribeAccountAttributesRequest ( ) ) ; }
public String toString ( ) { return "G" ; }
public override string ToString ( ) { return "G" ; }
public StoredField ( String name , double value ) { super ( name , TYPE ) ; fieldsData = value ; }
public StoredField ( string name , long value ) : base ( name , TYPE ) { FieldsData = new Int64 ( value ) ; }
public GroupedFacetResult ( int size , int minCount , boolean orderByCount , int totalCount , int totalMissingCount ) { this . facetEntries = new TreeSet < > ( orderByCount ? orderByCountAndValue : orderByValue ) ; this . totalMissingCount = totalMissingCount ; this . totalCount = totalCount ; maxSize = size ; currentMin = minCount ; }
public GroupedFacetResult ( int size , int minCount , bool orderByCount , int totalCount , int totalMissingCount ) { this . facetEntries = new JCG . SortedSet < FacetEntry > ( orderByCount ? orderByCountAndValue : orderByValue ) ; this . totalMissingCount = totalMissingCount ; this . totalCount = totalCount ; maxSize = size ; currentMin = minCount ; }
public FieldInfo fieldInfo ( String fieldName ) { return byName . get ( fieldName ) ; }
public virtual FieldInfo FieldInfo ( string fieldName ) { FieldInfo ret ; byName . TryGetValue ( fieldName , out ret ) ; return ret ; }
public int regionStart ( ) { return regionStart ; }
public int regionStart ( ) { return _regionStart ; }
public int getPort ( ) { return Host . this . getPort ( ) ; }
public virtual int GetPort ( ) { return port ; }
public InterruptTimer ( String threadName ) { state = new AlarmState ( ) ; autoKiller = new AutoKiller ( state ) ; thread = new AlarmThread ( threadName , state ) ; thread . start ( ) ; }
public InterruptTimer ( string threadName ) { state = new InterruptTimer . AlarmState ( ) ; autoKiller = new InterruptTimer . AutoKiller ( state ) ; thread = new InterruptTimer . AlarmThread ( threadName , state ) ; thread . Start ( ) ; }
public HighFrequencyDictionary ( IndexReader reader , String field , float thresh ) { this . reader = reader ; this . field = field ; this . thresh = thresh ; }
public HighFrequencyDictionary ( IndexReader reader , string field , float thresh ) { this . reader = reader ; this . field = field ; this . thresh = thresh ; }
public ModifyDBProxyTargetGroupResult modifyDBProxyTargetGroup ( ModifyDBProxyTargetGroupRequest request ) { request = beforeClientExecution ( request ) ; return executeModifyDBProxyTargetGroup ( request ) ; }
public virtual ModifyDBProxyTargetGroupResponse ModifyDBProxyTargetGroup ( ModifyDBProxyTargetGroupRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ModifyDBProxyTargetGroupRequestMarshaller . Instance ; options . ResponseUnmarshaller = ModifyDBProxyTargetGroupResponseUnmarshaller . Instance ; return Invoke < ModifyDBProxyTargetGroupResponse > ( request , options ) ; }
public void close ( ) throws IOException { input . close ( ) ; }
public override void close ( ) { throw new System . NotImplementedException ( ) ; }
public void reset ( ) { arriving = - 1 ; leaving = - 1 ; }
public void Reset ( ) { arriving = null ; leaving = null ; }
public SetLoadBalancerListenerSSLCertificateRequest ( String loadBalancerName , Integer loadBalancerPort , String sSLCertificateId ) { setLoadBalancerName ( loadBalancerName ) ; setLoadBalancerPort ( loadBalancerPort ) ; setSSLCertificateId ( sSLCertificateId ) ; }
public SetLoadBalancerListenerSSLCertificateRequest ( string loadBalancerName , int loadBalancerPort , string sslCertificateId ) { _loadBalancerName = loadBalancerName ; _loadBalancerPort = loadBalancerPort ; _sslCertificateId = sslCertificateId ; }
public SpanTermQuery ( Term term ) { this . term = Objects . requireNonNull ( term ) ; this . termStates = null ; }
public SpanTermQuery ( Term term ) { this . m_term = term ; }
public long ramBytesUsed ( ) { long ramBytesUsed = postingsReader . ramBytesUsed ( ) ; for ( TermsReader r : fields . values ( ) ) { ramBytesUsed += r . ramBytesUsed ( ) ; } return ramBytesUsed ; }
public override long RamBytesUsed ( ) { long sizeInByes = ( ( postingsReader != null ) ? postingsReader . RamBytesUsed ( ) : 0 ) ; foreach ( FieldReader reader in fields . Values ) { sizeInByes += reader . RamBytesUsed ( ) ; } return sizeInByes ; }
public boolean equals ( Object o ) { if ( this . getClass ( ) != o . getClass ( ) ) return false ; DocFreqValueSource other = ( DocFreqValueSource ) o ; return this . indexedField . equals ( other . indexedField ) && this . indexedBytes . equals ( other . indexedBytes ) ; }
public override bool Equals ( object o ) { if ( this . GetType ( ) != o . GetType ( ) ) { return false ; } var other = ( DocFreqValueSource ) o ; return this . m_indexedField . Equals ( other . m_indexedField , StringComparison . Ordinal ) && this . m_indexedBytes . Equals ( other . m_indexedBytes ) ; }
public Term getLucenePrefixTerm ( String fieldName ) { return new Term ( fieldName , getPrefix ( ) ) ; }
public virtual Term GetLucenePrefixTerm ( string fieldName ) { return new Term ( fieldName , Prefix ) ; }
public Collection < ParseTree > evaluate ( ParseTree t ) { return Trees . findAllTokenNodes ( t , tokenType ) ; }
public override ICollection < IParseTree > Evaluate ( IParseTree t ) { return Trees . FindAllTokenNodes ( t , tokenType ) ; }
public static Signer getSigner ( AlibabaCloudCredentials credentials ) { if ( credentials instanceof KeyPairCredentials ) { return SHA256_WITH_RSA_SIGNER ; } else if ( credentials instanceof BearerTokenCredentials ) { return BEARER_TOKEN_SIGNER ; } else { return HMACSHA1_SIGNER ; } }
public static Signer GetSigner ( AlibabaCloudCredentials credentials ) { if ( credentials is BearerTokenCredential ) { return bearerTokenSigner ; } return credentials is KeyPairCredentials ? sha256withRSASigner : hmacSHA1Signer ; }
public PutAccountSendingAttributesResult putAccountSendingAttributes ( PutAccountSendingAttributesRequest request ) { request = beforeClientExecution ( request ) ; return executePutAccountSendingAttributes ( request ) ; }
public virtual PutAccountSendingAttributesResponse PutAccountSendingAttributes ( PutAccountSendingAttributesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = PutAccountSendingAttributesRequestMarshaller . Instance ; options . ResponseUnmarshaller = PutAccountSendingAttributesResponseUnmarshaller . Instance ; return Invoke < PutAccountSendingAttributesResponse > ( request , options ) ; }
public static String getExtension ( String filename ) { final int idx = filename . indexOf ( '.' ) ; if ( idx == - 1 ) { return null ; } else { return filename . substring ( idx + 1 , filename . length ( ) ) ; } }
public static string GetExtension ( string filename ) { int idx = filename . IndexOf ( '.' ) ; if ( idx == - 1 ) { return null ; } else { return filename . Substring ( idx + 1 , filename . Length - ( idx + 1 ) ) ; } }
public RunJobFlowResult runJobFlow ( RunJobFlowRequest request ) { request = beforeClientExecution ( request ) ; return executeRunJobFlow ( request ) ; }
public virtual RunJobFlowResponse RunJobFlow ( RunJobFlowRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = RunJobFlowRequestMarshaller . Instance ; options . ResponseUnmarshaller = RunJobFlowResponseUnmarshaller . Instance ; return Invoke < RunJobFlowResponse > ( request , options ) ; }
public int lastLength ( ) { return lastLength ; }
public virtual int LastLength ( ) { return lastLength ; }
public ListStreamConsumersResult listStreamConsumers ( ListStreamConsumersRequest request ) { request = beforeClientExecution ( request ) ; return executeListStreamConsumers ( request ) ; }
public virtual ListStreamConsumersResponse ListStreamConsumers ( ListStreamConsumersRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListStreamConsumersRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListStreamConsumersResponseUnmarshaller . Instance ; return Invoke < ListStreamConsumersResponse > ( request , options ) ; }
public static SimpleFraction buildFractionMaxDenominator ( double value , int maxDenominator ) { return buildFractionMaxDenominator ( value , 0 , maxDenominator , 100 ) ; }
public static SimpleFraction BuildFractionMaxDenominator ( double value , int maxDenominator ) { return BuildFractionMaxDenominator ( value , 0 , maxDenominator , 100 ) ; }
public void seekExact ( BytesRef term , TermState state ) { throw new IllegalStateException ( "this method should never be called" ) ; }
public virtual void SeekExact ( BytesRef term , TermState state ) { if ( ! SeekExact ( term ) ) { throw new System . ArgumentException ( "term=" + term + " does not exist" ) ; } }
public LsRemoteCommand setUploadPack ( String uploadPack ) { this . uploadPack = uploadPack ; return this ; }
public virtual NGit . Api . LsRemoteCommand SetUploadPack ( string uploadPack ) { this . uploadPack = uploadPack ; return this ; }
public ValueEval evaluate ( int srcRowIndex , int srcColumnIndex , ValueEval numberVE ) { final String hex ; if ( numberVE instanceof RefEval ) { RefEval re = ( RefEval ) numberVE ; hex = OperandResolver . coerceValueToString ( re . getInnerValueEval ( re . getFirstSheetIndex ( ) ) ) ; } else { hex = OperandResolver . coerceValueToString ( numberVE ) ; } try { return new NumberEval ( BaseNumberUtils . convertToDecimal ( hex , HEXADECIMAL_BASE , MAX_NUMBER_OF_PLACES ) ) ; } catch ( IllegalArgumentException e ) { return ErrorEval . NUM_ERROR ; } }
public override ValueEval Evaluate ( int srcRowIndex , int srcColumnIndex , ValueEval numberVE ) { String hex ; if ( numberVE is RefEval ) { RefEval re = ( RefEval ) numberVE ; hex = OperandResolver . CoerceValueToString ( re . GetInnerValueEval ( re . FirstSheetIndex ) ) ; } else { hex = OperandResolver . CoerceValueToString ( numberVE ) ; } try { return new NumberEval ( BaseNumberUtils . ConvertToDecimal ( hex , HEXADECIMAL_BASE , MAX_NUMBER_OF_PLACES ) ) ; } catch ( ArgumentException ) { return ErrorEval . NUM_ERROR ; } }
public DescribeInstancesResult describeInstances ( ) { return describeInstances ( new DescribeInstancesRequest ( ) ) ; }
public virtual DescribeInstancesResponse DescribeInstances ( ) { return DescribeInstances ( new DescribeInstancesRequest ( ) ) ; }
public Collection < RevCommit > call ( ) throws GitAPIException , InvalidRefNameException { checkCallable ( ) ; try { if ( repo . exactRef ( Constants . R_STASH ) == null ) return Collections . emptyList ( ) ; } catch ( IOException e ) { throw new InvalidRefNameException ( MessageFormat . format ( JGitText . get ( ) . cannotRead , Constants . R_STASH ) , e ) ; } final ReflogCommand refLog = new ReflogCommand ( repo ) ; refLog . setRef ( Constants . R_STASH ) ; final Collection < ReflogEntry > stashEntries = refLog . call ( ) ; if ( stashEntries . isEmpty ( ) ) return Collections . emptyList ( ) ; final List < RevCommit > stashCommits = new ArrayList < > ( stashEntries . size ( ) ) ; try ( RevWalk walk = new RevWalk ( repo ) ) { for ( ReflogEntry entry : stashEntries ) { try { stashCommits . add ( walk . parseCommit ( entry . getNewId ( ) ) ) ; } catch ( IOException e ) { throw new JGitInternalException ( MessageFormat . format ( JGitText . get ( ) . cannotReadCommit , entry . getNewId ( ) ) , e ) ; } } } return stashCommits ; }
public override ICollection < RevCommit > Call ( ) { CheckCallable ( ) ; try { if ( repo . GetRef ( Constants . R_STASH ) == null ) { return Sharpen . Collections . EmptyList < RevCommit > ( ) ; } } catch ( IOException e ) { throw new InvalidRefNameException ( MessageFormat . Format ( JGitText . Get ( ) . cannotRead , Constants . R_STASH ) , e ) ; } ReflogCommand refLog = new ReflogCommand ( repo ) ; refLog . SetRef ( Constants . R_STASH ) ; ICollection < ReflogEntry > stashEntries = refLog . Call ( ) ; if ( stashEntries . IsEmpty ( ) ) { return Sharpen . Collections . EmptyList < RevCommit > ( ) ; } IList < RevCommit > stashCommits = new AList < RevCommit > ( stashEntries . Count ) ; RevWalk walk = new RevWalk ( repo ) ; walk . SetRetainBody ( true ) ; try { foreach ( ReflogEntry entry in stashEntries ) { try { stashCommits . AddItem ( walk . ParseCommit ( entry . GetNewId ( ) ) ) ; } catch ( IOException e ) { throw new JGitInternalException ( MessageFormat . Format ( JGitText . Get ( ) . cannotReadCommit , entry . GetNewId ( ) ) , e ) ; } } } finally { walk . Dispose ( ) ; } return stashCommits ; }
public void write ( LittleEndianOutput out ) { out . writeByte ( sid + getPtgClass ( ) ) ; out . writeByte ( field_1_error_code ) ; }
public override void Write ( ILittleEndianOutput out1 ) { out1 . WriteByte ( sid + PtgClass ) ; out1 . WriteByte ( ( byte ) field_1_error_code ) ; }
public PutAccountSettingResult putAccountSetting ( PutAccountSettingRequest request ) { request = beforeClientExecution ( request ) ; return executePutAccountSetting ( request ) ; }
public virtual PutAccountSettingResponse PutAccountSetting ( PutAccountSettingRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = PutAccountSettingRequestMarshaller . Instance ; options . ResponseUnmarshaller = PutAccountSettingResponseUnmarshaller . Instance ; return Invoke < PutAccountSettingResponse > ( request , options ) ; }
public static CharacterBuffer newCharacterBuffer ( final int bufferSize ) { if ( bufferSize < 2 ) { throw new IllegalArgumentException ( "buffersize must be >= 2" ) ; } return new CharacterBuffer ( new char [ bufferSize ] , 0 , 0 ) ; }
public static CharacterBuffer NewCharacterBuffer ( int bufferSize ) { if ( bufferSize < 2 ) { throw new ArgumentException ( "buffersize must be >= 2" ) ; } return new CharacterBuffer ( new char [ bufferSize ] , 0 , 0 ) ; }
public int getLevelForDistance ( double dist ) { if ( dist == 0 ) return maxLevels ; for ( int i = 0 ; i < maxLevels - 1 ; i ++ ) { if ( dist > levelW [ i ] && dist > levelH [ i ] ) { return i + 1 ; } } return maxLevels ; }
public override int GetLevelForDistance ( double dist ) { if ( dist == 0 ) { return m_maxLevels ; } int level = GeohashUtils . LookupHashLenForWidthHeight ( dist , dist ) ; return Math . Max ( Math . Min ( level , m_maxLevels ) , 1 ) ; }
public Query makeLuceneQueryFieldNoBoost ( String fieldName , BasicQueryFactory qf ) { return makeLuceneQueryNoBoost ( qf ) ; }
public override Search . Query MakeLuceneQueryFieldNoBoost ( string fieldName , BasicQueryFactory qf ) { return MakeLuceneQueryNoBoost ( qf ) ; }
public ListDedicatedIpPoolsResult listDedicatedIpPools ( ListDedicatedIpPoolsRequest request ) { request = beforeClientExecution ( request ) ; return executeListDedicatedIpPools ( request ) ; }
public virtual ListDedicatedIpPoolsResponse ListDedicatedIpPools ( ListDedicatedIpPoolsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListDedicatedIpPoolsRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListDedicatedIpPoolsResponseUnmarshaller . Instance ; return Invoke < ListDedicatedIpPoolsResponse > ( request , options ) ; }
public static ValueVector createVector ( RefEval re ) { return new SheetVector ( re ) ; }
public static ValueVector CreateVector ( RefEval re ) { return new SheetVector ( re ) ; }
public RemoveNoteCommand setObjectId ( RevObject id ) { checkCallable ( ) ; this . id = id ; return this ; }
public virtual NGit . Api . RemoveNoteCommand SetObjectId ( RevObject id ) { CheckCallable ( ) ; this . id = id ; return this ; }
public int getSheetIndex ( String sheetName ) { return _uBook . getSheetIndex ( sheetName ) ; }
public int GetSheetIndex ( String sheetName ) { return _uBook . GetSheetIndex ( sheetName ) ; }
public void serialize ( LittleEndianOutput out ) { out . writeShort ( field_1_chartGroupIndex ) ; }
public override void Serialize ( ILittleEndianOutput out1 ) { out1 . WriteShort ( field_1_chartGroupIndex ) ; }
public FontFormatting ( ) { setFontHeight ( - 1 ) ; setItalic ( false ) ; setFontWieghtModified ( false ) ; setOutline ( false ) ; setShadow ( false ) ; setStrikeout ( false ) ; setEscapementType ( ( short ) 0 ) ; setUnderlineType ( ( byte ) 0 ) ; setFontColorIndex ( ( short ) - 1 ) ; setFontStyleModified ( false ) ; setFontOutlineModified ( false ) ; setFontShadowModified ( false ) ; setFontCancellationModified ( false ) ; setEscapementTypeModified ( false ) ; setUnderlineTypeModified ( false ) ; setShort ( OFFSET_FONT_NAME , 0 ) ; setInt ( OFFSET_NOT_USED1 , 0x00000001 ) ; setInt ( OFFSET_NOT_USED2 , 0x00000000 ) ; setInt ( OFFSET_NOT_USED3 , 0x7FFFFFFF ) ; setShort ( OFFSET_FONT_FORMATING_END , 0x0001 ) ; }
public FontFormatting ( ) : this ( new byte [ RAW_DATA_SIZE ] ) { FontHeight = - 1 ; IsItalic = false ; IsFontWeightModified = false ; IsOutlineOn = false ; IsShadowOn = false ; IsStruckout = false ; EscapementType = ( FontSuperScript ) 0 ; UnderlineType = ( FontUnderlineType ) 0 ; FontColorIndex = ( short ) - 1 ; IsFontStyleModified = false ; IsFontOutlineModified = false ; IsFontShadowModified = false ; IsFontCancellationModified = false ; IsEscapementTypeModified = false ; IsUnderlineTypeModified = false ; SetShort ( OFFSET_FONT_NAME , 0 ) ; SetInt ( OFFSET_NOT_USED1 , 0x00000001 ) ; SetInt ( OFFSET_NOT_USED2 , 0x00000000 ) ; SetInt ( OFFSET_NOT_USED3 , 0x7FFFFFFF ) ; SetShort ( OFFSET_FONT_FORMATING_END , 0x0001 ) ; }
public GetFacetResult getFacet ( GetFacetRequest request ) { request = beforeClientExecution ( request ) ; return executeGetFacet ( request ) ; }
public virtual GetFacetResponse GetFacet ( GetFacetRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetFacetRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetFacetResponseUnmarshaller . Instance ; return Invoke < GetFacetResponse > ( request , options ) ; }
public IndexInput clone ( ) { return ( IndexInput ) super . clone ( ) ; }
public override object Clone ( ) { return ( IndexInput ) base . Clone ( ) ; }
public String toFormulaString ( ) { throw new RuntimeException ( "Table and Arrays are not yet supported" ) ; }
public override String ToFormulaString ( ) { throw new RecordFormatException ( "Table and Arrays are not yet supported" ) ; }
public StartFleetResult startFleet ( StartFleetRequest request ) { request = beforeClientExecution ( request ) ; return executeStartFleet ( request ) ; }
public virtual StartFleetResponse StartFleet ( StartFleetRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = StartFleetRequestMarshaller . Instance ; options . ResponseUnmarshaller = StartFleetResponseUnmarshaller . Instance ; return Invoke < StartFleetResponse > ( request , options ) ; }
public static FontFamily valueOf ( int nativeId ) { for ( FontFamily ff : values ( ) ) { if ( ff . nativeId == nativeId ) { return ff ; } } return null ; }
public static FontFamily ValueOf ( int family ) { switch ( family ) { case 0 : return NOT_APPLICABLE ; case 1 : return ROMAN ; case 2 : return SWISS ; case 3 : return MODERN ; case 4 : return SCRIPT ; case 5 : return DECORATIVE ; } return NOT_APPLICABLE ; }
public synchronized boolean isEmpty ( ) { return size == 0 ; }
public override bool isEmpty ( ) { lock ( this ) { return _size == 0 ; } }
public static String encodeBytes ( byte [ ] source ) { return encodeBytes ( source , 0 , source . length ) ; }
public static string EncodeBytes ( byte [ ] source ) { return EncodeBytes ( source , 0 , source . Length ) ; }
public DescribeBackupsResult describeBackups ( DescribeBackupsRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeBackups ( request ) ; }
public virtual DescribeBackupsResponse DescribeBackups ( DescribeBackupsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeBackupsRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeBackupsResponseUnmarshaller . Instance ; return Invoke < DescribeBackupsResponse > ( request , options ) ; }
public ReflectionMethodRecordCreator ( Method m ) { _m = m ; }
public ReflectionMethodRecordCreator ( MethodInfo m ) { _m = m ; }
public static int resolvesToJustOneViableAlt ( Collection < BitSet > altsets ) { return getSingleViableAlt ( altsets ) ; }
public static int ResolvesToJustOneViableAlt ( IEnumerable < BitSet > altsets ) { return GetSingleViableAlt ( altsets ) ; }
public GetGatewayResult getGateway ( GetGatewayRequest request ) { request = beforeClientExecution ( request ) ; return executeGetGateway ( request ) ; }
public virtual GetGatewayResponse GetGateway ( GetGatewayRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetGatewayRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetGatewayResponseUnmarshaller . Instance ; return Invoke < GetGatewayResponse > ( request , options ) ; }
public void onFilterComplete ( int count ) { updateDropDownForFilter ( count ) ; }
public virtual void onFilterComplete ( int count ) { updateDropDownForFilter ( count ) ; }
public boolean isReadOnly ( ) { return true ; }
public override bool isReadOnly ( ) { return true ; }
public FreeRefFunction findUserDefinedFunction ( String functionName ) { return _bookEvaluator . findUserDefinedFunction ( functionName ) ; }
public FreeRefFunction FindUserDefinedFunction ( String functionName ) { return _bookEvaluator . FindUserDefinedFunction ( functionName ) ; }
public boolean equals ( Object obj ) { if ( ! ( obj instanceof PrecedencePredicate ) ) { return false ; } if ( this == obj ) { return true ; } PrecedencePredicate other = ( PrecedencePredicate ) obj ; return this . precedence == other . precedence ; }
public override bool Equals ( object obj ) { if ( ! ( obj is SemanticContext . PrecedencePredicate ) ) { return false ; } if ( this == obj ) { return true ; } SemanticContext . PrecedencePredicate other = ( SemanticContext . PrecedencePredicate ) obj ; return this . precedence == other . precedence ; }
public int getStringWidth ( String str ) { int width = 0 ; for ( int i = 0 ; i < str . length ( ) ; i ++ ) { width += getCharWidth ( str . charAt ( i ) ) ; } return width ; }
public int GetStringWidth ( String str ) { int width = 0 ; for ( int i = 0 ; i < str . Length ; i ++ ) { width += GetCharWidth ( str [ i ] ) ; } return width ; }
public ByteVector ( byte [ ] a ) { blockSize = DEFAULT_BLOCK_SIZE ; array = a ; n = 0 ; }
public ByteVector ( byte [ ] a ) { blockSize = DEFAULT_BLOCK_SIZE ; array = a ; n = 0 ; }
public DeleteVerifiedEmailAddressResult deleteVerifiedEmailAddress ( DeleteVerifiedEmailAddressRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteVerifiedEmailAddress ( request ) ; }
public virtual DeleteVerifiedEmailAddressResponse DeleteVerifiedEmailAddress ( DeleteVerifiedEmailAddressRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteVerifiedEmailAddressRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteVerifiedEmailAddressResponseUnmarshaller . Instance ; return Invoke < DeleteVerifiedEmailAddressResponse > ( request , options ) ; }
public DescribeScalingActivitiesResult describeScalingActivities ( DescribeScalingActivitiesRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeScalingActivities ( request ) ; }
public virtual DescribeScalingActivitiesResponse DescribeScalingActivities ( DescribeScalingActivitiesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeScalingActivitiesRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller . Instance ; return Invoke < DescribeScalingActivitiesResponse > ( request , options ) ; }
public SimpleQueryParser ( Analyzer analyzer , String field ) { this ( analyzer , Collections . singletonMap ( field , 1.0F ) ) ; }
public SimpleQueryParser ( Analyzer analyzer , string field ) : this ( analyzer , new JCG . Dictionary < string , float > ( ) { { field , 1.0F } } ) ;
final public SrndQuery AndQuery ( ) throws ParseException { SrndQuery q ; ArrayList < SrndQuery > queries = null ; Token oprt = null ; q = NotQuery ( ) ; label_3 : while ( true ) { switch ( ( jj_ntk == - 1 ) ? jj_ntk ( ) : jj_ntk ) { case AND : ; break ; default : jj_la1 [ 1 ] = jj_gen ; break label_3 ; } oprt = jj_consume_token ( AND ) ; if ( queries == null ) { queries = new ArrayList < SrndQuery > ( ) ; queries . add ( q ) ; } q = NotQuery ( ) ; queries . add ( q ) ; } { if ( true ) return ( queries == null ) ? q : getAndQuery ( queries , true , oprt ) ; } throw new Error ( "Missing return statement in function" ) ; }
public SrndQuery AndQuery ( ) { SrndQuery q ; IList < SrndQuery > queries = null ; Token oprt = null ; q = NotQuery ( ) ; while ( true ) { switch ( ( jj_ntk == - 1 ) ? Jj_ntk ( ) : jj_ntk ) { case RegexpToken . AND : ; break ; default : jj_la1 [ 1 ] = jj_gen ; goto label_3 ; } oprt = Jj_consume_token ( RegexpToken . AND ) ; if ( queries == null ) { queries = new List < SrndQuery > ( ) ; queries . Add ( q ) ; } q = NotQuery ( ) ; queries . Add ( q ) ; } label_3 : { if ( true ) return ( queries == null ) ? q : GetAndQuery ( queries , true , oprt ) ; } throw new Exception ( "Missing return statement in function" ) ; }
public final int get ( ) { if ( position == limit ) { throw new BufferUnderflowException ( ) ; } return backingArray [ offset + position ++ ] ; }
public sealed override int get ( ) { if ( _position == _limit ) { throw new java . nio . BufferUnderflowException ( ) ; } return backingArray [ offset + _position ++ ] ; }
public AddJobFlowStepsRequest ( String jobFlowId , java . util . List < StepConfig > steps ) { setJobFlowId ( jobFlowId ) ; setSteps ( steps ) ; }
public AddJobFlowStepsRequest ( string jobFlowId , List < StepConfig > steps ) { _jobFlowId = jobFlowId ; _steps = steps ; }
public String toFormulaString ( String [ ] operands ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( operands [ 0 ] ) ; buffer . append ( "<>" ) ; buffer . append ( operands [ 1 ] ) ; return buffer . toString ( ) ; }
public override String ToFormulaString ( String [ ] operands ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( operands [ 0 ] ) ; buffer . Append ( "<>" ) ; buffer . Append ( operands [ 1 ] ) ; return buffer . ToString ( ) ; }
public static String toHex ( short value ) { StringBuilder sb = new StringBuilder ( 4 ) ; writeHex ( sb , value & 0xFFFF , 4 , "" ) ; return sb . toString ( ) ; }
public static string ToHex ( short value ) { return ToHex ( ( long ) value , 4 ) ; }
public static String stripSegmentName ( String filename ) { int idx = indexOfSegmentName ( filename ) ; if ( idx != - 1 ) { filename = filename . substring ( idx ) ; } return filename ; }
public static string StripSegmentName ( string filename ) { int idx = IndexOfSegmentName ( filename ) ; if ( idx != - 1 ) { filename = filename . Substring ( idx ) ; } return filename ; }
public InvalidMarkException ( String detailMessage ) { super ( detailMessage ) ; }
public InvalidMarkException ( string detailMessage ) : base ( detailMessage ) { throw new System . NotImplementedException ( ) ; }
public V nextElement ( ) { return nextEntryNotFailFast ( ) . value ; }
public V nextElement ( ) { return this . nextEntryNotFailFast ( ) . value ; }
public boolean equals ( Object o ) { if ( o instanceof PersonIdent ) { final PersonIdent p = ( PersonIdent ) o ; return getName ( ) . equals ( p . getName ( ) ) && getEmailAddress ( ) . equals ( p . getEmailAddress ( ) ) && when / 1000L == p . when / 1000L ; } return false ; }
public override bool Equals ( object o ) { if ( o is NGit . PersonIdent ) { NGit . PersonIdent p = ( NGit . PersonIdent ) o ; return GetName ( ) . Equals ( p . GetName ( ) ) && GetEmailAddress ( ) . Equals ( p . GetEmailAddress ( ) ) && when / 1000L == p . when / 1000L ; } return false ; }
public DetectKeyPhrasesResult detectKeyPhrases ( DetectKeyPhrasesRequest request ) { request = beforeClientExecution ( request ) ; return executeDetectKeyPhrases ( request ) ; }
public virtual DetectKeyPhrasesResponse DetectKeyPhrases ( DetectKeyPhrasesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DetectKeyPhrasesRequestMarshaller . Instance ; options . ResponseUnmarshaller = DetectKeyPhrasesResponseUnmarshaller . Instance ; return Invoke < DetectKeyPhrasesResponse > ( request , options ) ; }
public long skip ( long byteCount ) throws IOException { return Streams . skipByReading ( this , byteCount ) ; }
public override long skip ( long byteCount ) { throw new System . NotImplementedException ( ) ; }
public ByteBuffer get ( byte [ ] dst ) { return get ( dst , 0 , dst . length ) ; }
public virtual java . nio . ByteBuffer get ( byte [ ] dst ) { return get ( dst , 0 , dst . Length ) ; }
public void setHideObj ( short hide ) { field_1_hide_obj = hide ; }
public void SetHideObj ( short hide ) { field_1_hide_obj = hide ; }
public final void setLastColumnRaw ( short column ) { field_4_last_column = column ; }
public void SetLastColumnRaw ( short column ) { field_4_last_column = column ; }
public static PrintCellComments valueOf ( int value ) { return _table [ value ] ; }
public static PrintCellComments ValueOf ( int value ) { return _table [ value ] ; }
public DBInstance deleteDBInstance ( DeleteDBInstanceRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteDBInstance ( request ) ; }
public virtual DeleteDBInstanceResponse DeleteDBInstance ( DeleteDBInstanceRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteDBInstanceRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteDBInstanceResponseUnmarshaller . Instance ; return Invoke < DeleteDBInstanceResponse > ( request , options ) ; }
public String require ( Map < String , String > args , String name ) { String s = args . remove ( name ) ; if ( s == null ) { throw new IllegalArgumentException ( "Configuration Error: missing parameter '" + name + "'" ) ; } return s ; }
public virtual string Require ( IDictionary < string , string > args , string name ) { string s ; if ( ! args . TryGetValue ( name , out s ) ) { throw new System . ArgumentException ( "Configuration Error: missing parameter '" + name + "'" ) ; } args . Remove ( name ) ; return s ; }
public CompositeReaderContext build ( ) { return ( CompositeReaderContext ) build ( null , reader , 0 , 0 ) ; }
public override WAH8DocIdSet Build ( ) { if ( this . wordNum != - 1 ) { AddWord ( wordNum , ( byte ) word ) ; } return base . Build ( ) ; }
public GetImageLayerRequest ( ) { super ( "cr" , "2016-06-07" , "GetImageLayer" , "cr" ) ; setUriPattern ( "/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/layers" ) ; setMethod ( MethodType . GET ) ; }
public GetImageLayerRequest ( ) : base ( "cr" , "2016-06-07" , "GetImageLayer" , "cr" , "openAPI" ) { UriPattern = "/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/layers" ; Method = MethodType . GET ; }
public ParameterNameValue ( String parameterName ) { setParameterName ( parameterName ) ; }
public ParameterNameValue ( string parameterName ) { _parameterName = parameterName ; }
public CreateDirectConnectGatewayAssociationProposalResult createDirectConnectGatewayAssociationProposal ( CreateDirectConnectGatewayAssociationProposalRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateDirectConnectGatewayAssociationProposal ( request ) ; }
public virtual CreateDirectConnectGatewayAssociationProposalResponse CreateDirectConnectGatewayAssociationProposal ( CreateDirectConnectGatewayAssociationProposalRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateDirectConnectGatewayAssociationProposalRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateDirectConnectGatewayAssociationProposalResponseUnmarshaller . Instance ; return Invoke < CreateDirectConnectGatewayAssociationProposalResponse > ( request , options ) ; }
public ListResourceDelegatesResult listResourceDelegates ( ListResourceDelegatesRequest request ) { request = beforeClientExecution ( request ) ; return executeListResourceDelegates ( request ) ; }
public virtual ListResourceDelegatesResponse ListResourceDelegates ( ListResourceDelegatesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListResourceDelegatesRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListResourceDelegatesResponseUnmarshaller . Instance ; return Invoke < ListResourceDelegatesResponse > ( request , options ) ; }
public ValueEval evaluate ( int srcRowIndex , int srcColumnIndex , ValueEval numberVE , ValueEval placesVE ) { ValueEval veText1 ; try { veText1 = OperandResolver . getSingleValue ( numberVE , srcRowIndex , srcColumnIndex ) ; } catch ( EvaluationException e ) { return e . getErrorEval ( ) ; } String strText1 = OperandResolver . coerceValueToString ( veText1 ) ; Double number = OperandResolver . parseDouble ( strText1 ) ; if ( number == null ) { return ErrorEval . VALUE_INVALID ; } if ( number . longValue ( ) < MIN_VALUE || number . longValue ( ) > MAX_VALUE ) { return ErrorEval . NUM_ERROR ; } int placesNumber ; if ( number < 0 || placesVE == null ) { placesNumber = DEFAULT_PLACES_VALUE ; } else { ValueEval placesValueEval ; try { placesValueEval = OperandResolver . getSingleValue ( placesVE , srcRowIndex , srcColumnIndex ) ; } catch ( EvaluationException e ) { return e . getErrorEval ( ) ; } String placesStr = OperandResolver . coerceValueToString ( placesValueEval ) ; Double placesNumberDouble = OperandResolver . parseDouble ( placesStr ) ; if ( placesNumberDouble == null ) { return ErrorEval . VALUE_INVALID ; } placesNumber = placesNumberDouble . intValue ( ) ; if ( placesNumber < 0 || placesNumber == 0 ) { return ErrorEval . NUM_ERROR ; } } String binary = Integer . toBinaryString ( number . intValue ( ) ) ; if ( binary . length ( ) > DEFAULT_PLACES_VALUE ) { binary = binary . substring ( binary . length ( ) - DEFAULT_PLACES_VALUE ) ; } if ( binary . length ( ) > placesNumber ) { return ErrorEval . NUM_ERROR ; } return new StringEval ( binary ) ; }
public override ValueEval Evaluate ( int srcRowIndex , int srcColumnIndex , ValueEval numberVE , ValueEval placesVE ) { ValueEval veText1 ; try { veText1 = OperandResolver . GetSingleValue ( numberVE , srcRowIndex , srcColumnIndex ) ; } catch ( EvaluationException e ) { return e . GetErrorEval ( ) ; } String strText1 = OperandResolver . CoerceValueToString ( veText1 ) ; Double number = OperandResolver . ParseDouble ( strText1 ) ; if ( double . IsNaN ( number ) ) { return ErrorEval . VALUE_INVALID ; } if ( number < MinValue || number > MaxValue ) { return ErrorEval . NUM_ERROR ; } int placesNumber ; if ( number < 0 || placesVE == null ) { placesNumber = DEFAULT_PLACES_VALUE ; } else { ValueEval placesValueEval ; try { placesValueEval = OperandResolver . GetSingleValue ( placesVE , srcRowIndex , srcColumnIndex ) ; } catch ( EvaluationException e ) { return e . GetErrorEval ( ) ; } String placesStr = OperandResolver . CoerceValueToString ( placesValueEval ) ; Double placesNumberDouble = OperandResolver . ParseDouble ( placesStr ) ; if ( double . IsNaN ( placesNumberDouble ) ) { return ErrorEval . VALUE_INVALID ; } placesNumber = ( int ) Math . Floor ( placesNumberDouble ) ; if ( placesNumber < 0 || placesNumber == 0 ) { return ErrorEval . NUM_ERROR ; } } String binary = Convert . ToString ( ( int ) Math . Floor ( number ) , 2 ) ; if ( binary . Length > DEFAULT_PLACES_VALUE ) { binary = binary . Substring ( binary . Length - DEFAULT_PLACES_VALUE ) ; } if ( binary . Length > placesNumber ) { return ErrorEval . NUM_ERROR ; } return new StringEval ( binary ) ; }
public static int checkHeaderNoMagic ( DataInput in , String codec , int minVersion , int maxVersion ) throws IOException { final String actualCodec = in . readString ( ) ; if ( ! actualCodec . equals ( codec ) ) { throw new CorruptIndexException ( "codec mismatch: actual codec=" + actualCodec + " vs expected codec=" + codec , in ) ; } final int actualVersion = in . readInt ( ) ; if ( actualVersion < minVersion ) { throw new IndexFormatTooOldException ( in , actualVersion , minVersion , maxVersion ) ; } if ( actualVersion > maxVersion ) { throw new IndexFormatTooNewException ( in , actualVersion , minVersion , maxVersion ) ; } return actualVersion ; }
public static int CheckHeaderNoMagic ( DataInput @ in , string codec , int minVersion , int maxVersion ) { string actualCodec = @ in . ReadString ( ) ; if ( ! actualCodec . Equals ( codec , StringComparison . Ordinal ) ) { throw new System . IO . IOException ( "codec mismatch: actual codec=" + actualCodec + " vs expected codec=" + codec + " (resource: " + @ in + ")" ) ; } int actualVersion = @ in . ReadInt32 ( ) ; if ( actualVersion < minVersion ) { throw new System . IO . IOException ( "Version: " + actualVersion + " is not supported. Minimum Version number is " + minVersion + "." ) ; } if ( actualVersion > maxVersion ) { throw new System . IO . IOException ( "Version: " + actualVersion + " is not supported. Maximum Version number is " + maxVersion + "." ) ; } return actualVersion ; }
public DescribeDefaultParametersResult describeDefaultParameters ( DescribeDefaultParametersRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeDefaultParameters ( request ) ; }
public virtual DescribeDefaultParametersResponse DescribeDefaultParameters ( DescribeDefaultParametersRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeDefaultParametersRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeDefaultParametersResponseUnmarshaller . Instance ; return Invoke < DescribeDefaultParametersResponse > ( request , options ) ; }
public SimpleSpanFragmenter ( QueryScorer queryScorer , int fragmentSize ) { this . fragmentSize = fragmentSize ; this . queryScorer = queryScorer ; }
public SimpleSpanFragmenter ( QueryScorer queryScorer , int fragmentSize ) { this . fragmentSize = fragmentSize ; this . queryScorer = queryScorer ; }
public CreateApplicationResult createApplication ( CreateApplicationRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateApplication ( request ) ; }
public virtual CreateApplicationResponse CreateApplication ( CreateApplicationRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateApplicationRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateApplicationResponseUnmarshaller . Instance ; return Invoke < CreateApplicationResponse > ( request , options ) ; }
public URIish getURI ( ) { return uri ; }
public virtual URIish GetURI ( ) { return uri ; }