question
stringlengths
33
1.59k
target
stringlengths
33
1.58k
public void setID ( String id ) { if ( id == null ) { throw new NullPointerException ( ) ; } ID = id ; }
public virtual void setID ( string id ) { throw new System . NotImplementedException ( ) ; }
public GetCampaignVersionsResult getCampaignVersions ( GetCampaignVersionsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetCampaignVersions ( request ) ; }
public virtual GetCampaignVersionsResponse GetCampaignVersions ( GetCampaignVersionsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetCampaignVersionsRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetCampaignVersionsResponseUnmarshaller . Instance ; return Invok...
public long getTotalSLLLookaheadOps ( ) { DecisionInfo [ ] decisions = atnSimulator . getDecisionInfo ( ) ; long k = 0 ; for ( int i = 0 ; i < decisions . length ; i ++ ) { k += decisions [ i ] . SLL_TotalLook ; } return k ; }
public long getTotalSLLLookaheadOps ( ) { DecisionInfo [ ] decisions = atnSimulator . getDecisionInfo ( ) ; long k = 0 ; for ( int i = 0 ; i < decisions . Length ; i ++ ) { k += decisions [ i ] . SLL_TotalLook ; } return k ; }
public static Row getRow ( int rowIndex , Sheet sheet ) { Row row = sheet . getRow ( rowIndex ) ; if ( row == null ) { row = sheet . createRow ( rowIndex ) ; } return row ; }
public static IRow GetRow ( int rowIndex , ISheet sheet ) { IRow row = sheet . GetRow ( rowIndex ) ; if ( row == null ) { row = sheet . CreateRow ( rowIndex ) ; } return row ; }
public void clear ( ) { doc = null ; analyzer = null ; }
public virtual void Clear ( ) { doc = null ; analyzer = null ; }
public KeyPairCredentials ( String publicKeyId , String privateKeySecret ) { if ( publicKeyId == null || privateKeySecret == null ) { throw new IllegalArgumentException ( "You must provide a valid pair of Public Key ID and Private Key Secret." ) ; } this . publicKeyId = publicKeyId ; this . privateKeySecret = privateKe...
public KeyPairCredentials ( string publicKeyId , string privateKeySecret ) { if ( string . IsNullOrEmpty ( publicKeyId ) || string . IsNullOrEmpty ( privateKeySecret ) ) { throw new ArgumentNullException ( "You must provide a valid pair of Public Key ID and Private Key Secret." ) ; } this . publicKeyId = publicKeyId ; ...
public PredictionContext getParent ( int index ) { return parents [ index ] ; }
public override PredictionContext GetParent ( int index ) { return parents [ index ] ; }
public synchronized StringBuffer append ( String string ) { append0 ( string ) ; return this ; }
public java . lang . StringBuffer append ( string @ string ) { lock ( this ) { append0 ( @ string ) ; return this ; } }
public void removeBuiltinRecord ( byte name , int sheetIndex ) { NameRecord record = getSpecificBuiltinRecord ( name , sheetIndex ) ; if ( record != null ) { _definedNames . remove ( record ) ; } }
public void RemoveBuiltinRecord ( byte name , int sheetIndex ) { NameRecord record = GetSpecificBuiltinRecord ( name , sheetIndex ) ; if ( record != null ) { _definedNames . Remove ( record ) ; } }
public SharedFormulaGroup ( SharedFormulaRecord sfr , CellReference firstCell ) { if ( ! sfr . isInRange ( firstCell . getRow ( ) , firstCell . getCol ( ) ) ) { throw new IllegalArgumentException ( "First formula cell " + firstCell . formatAsString ( ) + " is not shared formula range " + sfr . getRange ( ) + "." ) ; } ...
public SharedFormulaGroup ( SharedFormulaRecord sfr , CellReference firstCell ) { if ( ! sfr . IsInRange ( firstCell . Row , firstCell . Col ) ) { throw new ArgumentException ( "First formula cell " + firstCell . FormatAsString ( ) + " is not shared formula range " + sfr . Range . ToString ( ) + "." ) ; } _sfr = sfr ; ...
public void modifyFormatRun ( short oldPos , short newLen ) { int shift = 0 ; for ( int i = 0 ; i < _formats . length ; i ++ ) { CTFormat ctf = _formats [ i ] ; if ( shift != 0 ) { ctf . setOffset ( ctf . getOffset ( ) + shift ) ; } else if ( oldPos == ctf . getOffset ( ) && i < _formats . length - 1 ) { CTFormat nextC...
public void ModifyFormatRun ( short oldPos , short newLen ) { short shift = ( short ) 0 ; for ( int idx = 0 ; idx < m_formats . Count ; idx ++ ) { CTFormat ctf = ( CTFormat ) m_formats [ idx ] ; if ( shift != 0 ) { ctf . Offset = ( ( short ) ( ctf . Offset + shift ) ) ; } else if ( ( oldPos == ctf . Offset ) && ( idx <...
public AddInstanceGroupsResult addInstanceGroups ( AddInstanceGroupsRequest request ) { request = beforeClientExecution ( request ) ; return executeAddInstanceGroups ( request ) ; }
public virtual AddInstanceGroupsResponse AddInstanceGroups ( AddInstanceGroupsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = AddInstanceGroupsRequestMarshaller . Instance ; options . ResponseUnmarshaller = AddInstanceGroupsResponseUnmarshaller . Instance ; return Invoke < AddIns...
public String getText ( ) { if ( getChildCount ( ) == 0 ) { return "" ; } StringBuilder builder = new StringBuilder ( ) ; for ( int i = 0 ; i < getChildCount ( ) ; i ++ ) { builder . append ( getChild ( i ) . getText ( ) ) ; } return builder . toString ( ) ; }
public virtual string GetText ( ) { if ( ChildCount == 0 ) { return string . Empty ; } StringBuilder builder = new StringBuilder ( ) ; for ( int i = 0 ; i < ChildCount ; i ++ ) { builder . Append ( GetChild ( i ) . GetText ( ) ) ; } return builder . ToString ( ) ; }
public ListCodeRepositoriesResult listCodeRepositories ( ListCodeRepositoriesRequest request ) { request = beforeClientExecution ( request ) ; return executeListCodeRepositories ( request ) ; }
public virtual ListCodeRepositoriesResponse ListCodeRepositories ( ListCodeRepositoriesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListCodeRepositoriesRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListCodeRepositoriesResponseUnmarshaller . Instance ; return ...
public LexerATNConfig ( ATNState state , int alt , PredictionContext context ) { super ( state , alt , context , SemanticContext . NONE ) ; this . passedThroughNonGreedyDecision = false ; this . lexerActionExecutor = null ; }
public LexerATNConfig ( ATNState state , int alt , PredictionContext context ) : base ( state , alt , context ) { this . passedThroughNonGreedyDecision = false ; this . lexerActionExecutor = null ; }
public int serialize ( int offset , byte [ ] data ) { throw new RecordFormatException ( "Old Label Records are supported READ ONLY" ) ; }
public int Serialize ( int offset , byte [ ] data ) { throw new RecordFormatException ( "Old Label Records are supported READ ONLY" ) ; }
public GetSmsChannelResult getSmsChannel ( GetSmsChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeGetSmsChannel ( request ) ; }
public virtual GetSmsChannelResponse GetSmsChannel ( GetSmsChannelRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetSmsChannelRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetSmsChannelResponseUnmarshaller . Instance ; return Invoke < GetSmsChannelResponse > ( ...
public Placement ( String availabilityZone ) { setAvailabilityZone ( availabilityZone ) ; }
public Placement ( string availabilityZone ) { _availabilityZone = availabilityZone ; }
public ListStacksResult listStacks ( ListStacksRequest request ) { request = beforeClientExecution ( request ) ; return executeListStacks ( request ) ; }
public virtual ListStacksResponse ListStacks ( ListStacksRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListStacksRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListStacksResponseUnmarshaller . Instance ; return Invoke < ListStacksResponse > ( request , options ...
public ListFieldLevelEncryptionConfigsResult listFieldLevelEncryptionConfigs ( ListFieldLevelEncryptionConfigsRequest request ) { request = beforeClientExecution ( request ) ; return executeListFieldLevelEncryptionConfigs ( request ) ; }
public virtual ListFieldLevelEncryptionConfigsResponse ListFieldLevelEncryptionConfigs ( ListFieldLevelEncryptionConfigsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListFieldLevelEncryptionConfigsRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListFieldLevelEnc...
public CloseInstancePublicPortsResult closeInstancePublicPorts ( CloseInstancePublicPortsRequest request ) { request = beforeClientExecution ( request ) ; return executeCloseInstancePublicPorts ( request ) ; }
public virtual CloseInstancePublicPortsResponse CloseInstancePublicPorts ( CloseInstancePublicPortsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CloseInstancePublicPortsRequestMarshaller . Instance ; options . ResponseUnmarshaller = CloseInstancePublicPortsResponseUnmarshaller ...
public DeleteTransitGatewayRouteTableResult deleteTransitGatewayRouteTable ( DeleteTransitGatewayRouteTableRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteTransitGatewayRouteTable ( request ) ; }
public virtual DeleteTransitGatewayRouteTableResponse DeleteTransitGatewayRouteTable ( DeleteTransitGatewayRouteTableRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteTransitGatewayRouteTableRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteTransitGatewayR...
public TokenStream create ( TokenStream input ) { return new StempelFilter ( input , new StempelStemmer ( PolishAnalyzer . getDefaultTable ( ) ) ) ; }
public override TokenStream Create ( TokenStream input ) { return new StempelFilter ( input , new StempelStemmer ( PolishAnalyzer . DefaultTable ) ) ; }
public static byte [ ] grow ( byte [ ] array ) { return grow ( array , 1 + array . length ) ; }
public static double [ ] Grow ( double [ ] array ) { return Grow ( array , 1 + array . Length ) ; }
public DocFreqSorter ( int maxDoc ) { super ( maxDoc / 64 ) ; this . tmpDocs = new int [ maxDoc / 64 ] ; }
public DocFreqSorter ( int maxDoc ) : base ( maxDoc / 64 ) { this . tmpDocs = new int [ maxDoc / 64 ] ; }
public void add ( int a , int b ) { add ( Interval . of ( a , b ) ) ; }
public virtual void Add ( int a , int b ) { Add ( Interval . Of ( a , b ) ) ; }
public void cloneStyleFrom ( HSSFCellStyle source ) { _format . cloneStyleFrom ( source . _format ) ; if ( _workbook != source . _workbook ) { lastDateFormat . set ( Short . MIN_VALUE ) ; lastFormats . remove ( ) ; getDataFormatStringCache . remove ( ) ; short fmt = ( short ) _workbook . createFormat ( source . getData...
public void CloneStyleFrom ( HSSFCellStyle source ) { _format . CloneStyleFrom ( source . _format ) ; if ( _workbook != source . _workbook ) { lastDateFormat = short . MinValue ; lastFormats = null ; getDataFormatStringCache = null ; short fmt = ( short ) _workbook . CreateFormat ( source . GetDataFormatString ( ) ) ; ...
public DeleteIdentitiesResult deleteIdentities ( DeleteIdentitiesRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteIdentities ( request ) ; }
public virtual DeleteIdentitiesResponse DeleteIdentities ( DeleteIdentitiesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteIdentitiesRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteIdentitiesResponseUnmarshaller . Instance ; return Invoke < DeleteIdent...
public void nextSlice ( ) { final int nextIndex = ( ( buffer [ limit ] & 0xff ) << 24 ) + ( ( buffer [ 1 + limit ] & 0xff ) << 16 ) + ( ( buffer [ 2 + limit ] & 0xff ) << 8 ) + ( buffer [ 3 + limit ] & 0xff ) ; level = ByteBlockPool . NEXT_LEVEL_ARRAY [ level ] ; final int newSize = ByteBlockPool . LEVEL_SIZE_ARRAY [ l...
public void NextSlice ( ) { int nextIndex = ( ( buffer [ limit ] & 0xff ) << 24 ) + ( ( buffer [ 1 + limit ] & 0xff ) << 16 ) + ( ( buffer [ 2 + limit ] & 0xff ) << 8 ) + ( buffer [ 3 + limit ] & 0xff ) ; level = ByteBlockPool . NEXT_LEVEL_ARRAY [ level ] ; int newSize = ByteBlockPool . LEVEL_SIZE_ARRAY [ level ] ; buf...
public DeleteMessageBatchRequest ( String queueUrl , java . util . List < DeleteMessageBatchRequestEntry > entries ) { setQueueUrl ( queueUrl ) ; setEntries ( entries ) ; }
public DeleteMessageBatchRequest ( string queueUrl , List < DeleteMessageBatchRequestEntry > entries ) { _queueUrl = queueUrl ; _entries = entries ; }
public ReservedCacheNode purchaseReservedCacheNodesOffering ( PurchaseReservedCacheNodesOfferingRequest request ) { request = beforeClientExecution ( request ) ; return executePurchaseReservedCacheNodesOffering ( request ) ; }
public virtual PurchaseReservedCacheNodesOfferingResponse PurchaseReservedCacheNodesOffering ( PurchaseReservedCacheNodesOfferingRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = PurchaseReservedCacheNodesOfferingRequestMarshaller . Instance ; options . ResponseUnmarshaller = Purch...
public String getLineText ( ) { final int eol = RawParseUtils . nextLF ( buf , offset ) ; return RawParseUtils . decode ( UTF_8 , buf , offset , eol ) ; }
public virtual string GetLineText ( ) { int eol = RawParseUtils . NextLF ( buf , offset ) ; return RawParseUtils . Decode ( Constants . CHARSET , buf , offset , eol ) ; }
public DescribeNotificationConfigurationsResult describeNotificationConfigurations ( DescribeNotificationConfigurationsRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeNotificationConfigurations ( request ) ; }
public virtual DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations ( DescribeNotificationConfigurationsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeNotificationConfigurationsRequestMarshaller . Instance ; options . ResponseUnmarshaller = Descr...
@ Override public boolean remove ( Object object ) { if ( ! esDelegate . remove ( object ) ) { return false ; } Entry < ? , ? > entry = ( Entry < ? , ? > ) object ; inverse . delegate . remove ( entry . getValue ( ) ) ; return true ; }
public override bool remove ( object o ) { if ( ! ( o is java . util . MapClass . Entry < K , V > ) ) { return false ; } java . util . MapClass . Entry < object , object > e = ( java . util . MapClass . Entry < object , object > ) o ; return this . _enclosing . removeMapping ( e . getKey ( ) , e . getValue ( ) ) ; }
public static byte [ ] grow ( byte [ ] array ) { return grow ( array , 1 + array . length ) ; }
public static byte [ ] Grow ( byte [ ] array ) { return Grow ( array , 1 + array . Length ) ; }
public IndexAndTaxonomyRevision ( IndexWriter indexWriter , SnapshotDirectoryTaxonomyWriter taxoWriter ) throws IOException { IndexDeletionPolicy delPolicy = indexWriter . getConfig ( ) . getIndexDeletionPolicy ( ) ; if ( ! ( delPolicy instanceof SnapshotDeletionPolicy ) ) { throw new IllegalArgumentException ( "IndexW...
public IndexAndTaxonomyRevision ( IndexWriter indexWriter , SnapshotDirectoryTaxonomyWriter taxonomyWriter ) { this . indexSdp = indexWriter . Config . IndexDeletionPolicy as SnapshotDeletionPolicy ; if ( indexSdp == null ) throw new ArgumentException ( "IndexWriter must be created with SnapshotDeletionPolicy" , "index...
public synchronized String toString ( ) { return super . toString ( ) ; }
public override string ToString ( ) { lock ( this ) { return base . ToString ( ) ; } }
public static int hashCode ( Object o ) { return ( o == null ) ? 0 : o . hashCode ( ) ; }
public static int hashCode ( object o ) { return ( o == null ) ? 0 : o . GetHashCode ( ) ; }
public GetModelTemplateResult getModelTemplate ( GetModelTemplateRequest request ) { request = beforeClientExecution ( request ) ; return executeGetModelTemplate ( request ) ; }
public virtual GetModelTemplateResponse GetModelTemplate ( GetModelTemplateRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetModelTemplateRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetModelTemplateResponseUnmarshaller . Instance ; return Invoke < GetModelTem...
public XORShift64Random ( long seed ) { x = seed == 0 ? 0xdeadbeef : seed ; }
public XORShift64Random ( long seed ) { x = seed == 0 ? 0xdeadbeef : seed ; }
public HeaderFooterRecord ( RecordInputStream in ) { _rawData = in . readRemainder ( ) ; }
public HeaderFooterRecord ( RecordInputStream in1 ) { _rawData = in1 . ReadRemainder ( ) ; }
public HSSFPolygon createPolygon ( HSSFClientAnchor anchor ) { HSSFPolygon shape = new HSSFPolygon ( null , anchor ) ; addShape ( shape ) ; onCreate ( shape ) ; return shape ; }
public HSSFPolygon CreatePolygon ( IClientAnchor anchor ) { HSSFPolygon shape = new HSSFPolygon ( null , ( HSSFAnchor ) anchor ) ; AddShape ( shape ) ; OnCreate ( shape ) ; return shape ; }
public boolean equals ( Object other ) { if ( other == null ) { return false ; } if ( other instanceof BytesRef ) { return this . bytesEquals ( ( BytesRef ) other ) ; } return false ; }
public override bool Equals ( object other ) { if ( other == null ) { return false ; } if ( other is BytesRef ) { return this . BytesEquals ( ( BytesRef ) other ) ; } return false ; }
public void decode ( long [ ] blocks , int blocksOffset , long [ ] values , int valuesOffset , int iterations ) { for ( int i = 0 ; i < iterations ; ++ i ) { final long block = blocks [ blocksOffset ++ ] ; for ( int shift = 48 ; shift >= 0 ; shift -= 16 ) { values [ valuesOffset ++ ] = ( block > > > shift ) & 65535 ; }...
public override void Decode ( long [ ] blocks , int blocksOffset , long [ ] values , int valuesOffset , int iterations ) { for ( int i = 0 ; i < iterations ; ++ i ) { long block = blocks [ blocksOffset ++ ] ; for ( int shift = 48 ; shift >= 0 ; shift -= 16 ) { values [ valuesOffset ++ ] = ( ( long ) ( ( ulong ) block >...
public int serialize ( int offset , byte [ ] data , EscherSerializationListener listener ) { listener . beforeRecordSerialize ( offset , getRecordId ( ) , this ) ; if ( remainingData == null ) { remainingData = EMPTY ; } LittleEndian . putShort ( data , offset , getOptions ( ) ) ; LittleEndian . putShort ( data , offse...
public override int Serialize ( int offset , byte [ ] data , EscherSerializationListener listener ) { listener . BeforeRecordSerialize ( offset , RecordId , this ) ; if ( remainingData == null ) remainingData = new byte [ 0 ] ; LittleEndian . PutShort ( data , offset , Options ) ; LittleEndian . PutShort ( data , offse...
public boolean equals ( Object o ) { if ( ! super . equals ( o ) ) { return false ; } SpanPositionRangeQuery other = ( SpanPositionRangeQuery ) o ; return this . end == other . end && this . start == other . start ; }
public override bool Equals ( object o ) { if ( this == o ) { return true ; } if ( ! ( o is SpanPositionRangeQuery ) ) { return false ; } SpanPositionRangeQuery other = ( SpanPositionRangeQuery ) o ; return this . m_end == other . m_end && this . m_start == other . m_start && this . m_match . Equals ( other . m_match )...
public CreateSignalingChannelResult createSignalingChannel ( CreateSignalingChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateSignalingChannel ( request ) ; }
public virtual CreateSignalingChannelResponse CreateSignalingChannel ( CreateSignalingChannelRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateSignalingChannelRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateSignalingChannelResponseUnmarshaller . Instance...
public IndexDiffFilter ( int dirCacheIndex , int workingTreeIndex , boolean honorIgnores ) { this . dirCache = dirCacheIndex ; this . workingTree = workingTreeIndex ; this . honorIgnores = honorIgnores ; }
public IndexDiffFilter ( int dirCacheIndex , int workingTreeIndex , bool honorIgnores ) { this . dirCache = dirCacheIndex ; this . workingTree = workingTreeIndex ; this . honorIgnores = honorIgnores ; }
public String toString ( ) { StringBuilder sb = new StringBuilder ( "[" + getClass ( ) . getSimpleName ( ) + ": " ) ; sb . append ( "minMergeSize=" ) . append ( minMergeSize ) . append ( ", " ) ; sb . append ( "mergeFactor=" ) . append ( mergeFactor ) . append ( ", " ) ; sb . append ( "maxMergeSize=" ) . append ( maxMe...
public override string ToString ( ) { StringBuilder sb = new StringBuilder ( "[" + this . GetType ( ) . Name + ": " ) ; sb . Append ( "minMergeSize=" ) . Append ( m_minMergeSize ) . Append ( ", " ) ; sb . Append ( "mergeFactor=" ) . Append ( m_mergeFactor ) . Append ( ", " ) ; sb . Append ( "maxMergeSize=" ) . Append (...
public static void encode ( StringBuilder urlstr , String key ) { if ( key == null || key . length ( ) == 0 ) return ; try { urlstr . append ( URLEncoder . encode ( key , UTF_8 . name ( ) ) ) ; } catch ( UnsupportedEncodingException e ) { throw new RuntimeException ( JGitText . get ( ) . couldNotURLEncodeToUTF8 , e ) ;...
public static void Encode ( StringBuilder urlstr , string key ) { if ( key == null || key . Length == 0 ) { return ; } try { urlstr . Append ( URLEncoder . Encode ( key , "UTF-8" ) ) ; } catch ( UnsupportedEncodingException e ) { throw new RuntimeException ( JGitText . Get ( ) . couldNotURLEncodeToUTF8 , e ) ; } }
public DescribeTemplateResult describeTemplate ( DescribeTemplateRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeTemplate ( request ) ; }
public virtual DescribeTemplateResponse DescribeTemplate ( DescribeTemplateRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeTemplateRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeTemplateResponseUnmarshaller . Instance ; return Invoke < DescribeTem...
public boolean mkdirs ( ) { if ( exists ( ) ) { return false ; } if ( mkdir ( ) ) { return true ; } String parentDir = getParent ( ) ; if ( parentDir == null ) { return false ; } return ( new File ( parentDir ) . mkdirs ( ) && mkdir ( ) ) ; }
public bool mkdirs ( ) { if ( exists ( ) ) { return false ; } if ( mkdir ( ) ) { return true ; } string parentDir = getParent ( ) ; if ( parentDir == null ) { return false ; } return ( new java . io . File ( parentDir ) . mkdirs ( ) && mkdir ( ) ) ; }
public HeaderBlock ( InputStream stream ) throws IOException { this ( readFirst512 ( stream ) ) ; if ( bigBlockSize . getBigBlockSize ( ) != 512 ) { int rest = bigBlockSize . getBigBlockSize ( ) - 512 ; byte [ ] tmp = IOUtils . safelyAllocate ( rest , MAX_RECORD_LENGTH ) ; IOUtils . readFully ( stream , tmp ) ; } }
public HeaderBlock ( Stream stream ) { try { stream . Position = 0 ; PrivateHeaderBlock ( ReadFirst512 ( stream ) ) ; if ( bigBlockSize . GetBigBlockSize ( ) != 512 ) { int rest = bigBlockSize . GetBigBlockSize ( ) - 512 ; byte [ ] temp = new byte [ rest ] ; IOUtils . ReadFully ( stream , temp ) ; } } catch ( IOExcepti...
public void recover ( LexerNoViableAltException e ) { if ( _input . LA ( 1 ) != IntStream . EOF ) { getInterpreter ( ) . consume ( _input ) ; } }
public virtual void Recover ( LexerNoViableAltException e ) { if ( _input . LA ( 1 ) != IntStreamConstants . EOF ) { Interpreter . Consume ( _input ) ; } }
public E valueAt ( int index ) { if ( mGarbage ) { gc ( ) ; } return ( E ) mValues [ index ] ; }
public virtual E valueAt ( int index ) { if ( mGarbage ) { gc ( ) ; } return ( E ) mValues [ index ] ; }
public AttachToIndexResult attachToIndex ( AttachToIndexRequest request ) { request = beforeClientExecution ( request ) ; return executeAttachToIndex ( request ) ; }
public virtual AttachToIndexResponse AttachToIndex ( AttachToIndexRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = AttachToIndexRequestMarshaller . Instance ; options . ResponseUnmarshaller = AttachToIndexResponseUnmarshaller . Instance ; return Invoke < AttachToIndexResponse > ( ...
public CreateMembersResult createMembers ( CreateMembersRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateMembers ( request ) ; }
public virtual CreateMembersResponse CreateMembers ( CreateMembersRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateMembersRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateMembersResponseUnmarshaller . Instance ; return Invoke < CreateMembersResponse > ( ...
public double get ( ) { if ( position == limit ) { throw new BufferUnderflowException ( ) ; } return byteBuffer . getDouble ( position ++ * SizeOf . DOUBLE ) ; }
public override double get ( ) { if ( _position == _limit ) { throw new java . nio . BufferUnderflowException ( ) ; } return byteBuffer . getDouble ( _position ++ * libcore . io . SizeOf . DOUBLE ) ; }
public WorkflowExecutionInfos listOpenWorkflowExecutions ( ListOpenWorkflowExecutionsRequest request ) { request = beforeClientExecution ( request ) ; return executeListOpenWorkflowExecutions ( request ) ; }
public virtual ListOpenWorkflowExecutionsResponse ListOpenWorkflowExecutions ( ListOpenWorkflowExecutionsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListOpenWorkflowExecutionsRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListOpenWorkflowExecutionsResponseUnm...
public CharSequence getFirstPathElement ( ) { return values . get ( 0 ) . value ; }
public virtual string GetFirstPathElement ( ) { return values [ 0 ] . Value ; }
public static int toEMU ( double points ) { return ( int ) Math . rint ( EMU_PER_POINT * points ) ; }
public static int ToEMU ( double value ) { return ( int ) Math . Round ( EMU_PER_POINT * value ) ; }
public DeleteRequestValidatorResult deleteRequestValidator ( DeleteRequestValidatorRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteRequestValidator ( request ) ; }
public virtual DeleteRequestValidatorResponse DeleteRequestValidator ( DeleteRequestValidatorRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteRequestValidatorRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteRequestValidatorResponseUnmarshaller . Instance...
public Repository open ( boolean mustExist ) throws IOException { if ( mustExist && ! isGitRepository ( path , fs ) ) throw new RepositoryNotFoundException ( path ) ; return new FileRepository ( path ) ; }
public virtual Repository Open ( bool mustExist ) { if ( mustExist && ! IsGitRepository ( path , fs ) ) { throw new RepositoryNotFoundException ( path ) ; } return new FileRepository ( path ) ; }
public GetOnPremisesInstanceResult getOnPremisesInstance ( GetOnPremisesInstanceRequest request ) { request = beforeClientExecution ( request ) ; return executeGetOnPremisesInstance ( request ) ; }
public virtual GetOnPremisesInstanceResponse GetOnPremisesInstance ( GetOnPremisesInstanceRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetOnPremisesInstanceRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetOnPremisesInstanceResponseUnmarshaller . Instance ; re...
public String toString ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( '(' ) . append ( startOffset ) . append ( ',' ) . append ( endOffset ) . append ( ')' ) ; return sb . toString ( ) ; }
public override string ToString ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . Append ( '(' ) . Append ( startOffset ) . Append ( ',' ) . Append ( endOffset ) . Append ( ')' ) ; return sb . ToString ( ) ; }
public short getFontAtIndex ( int index ) { int size = _string . getFormatRunCount ( ) ; FormatRun currentRun = null ; for ( int i = 0 ; i < size ; i ++ ) { FormatRun r = _string . getFormatRun ( i ) ; if ( r . getCharacterPos ( ) > index ) { break ; } currentRun = r ; } if ( currentRun == null ) { return NO_FONT ; } r...
public short GetFontAtIndex ( int index ) { int size = _string . FormatRunCount ; UnicodeString . FormatRun currentRun = null ; for ( int i = 0 ; i < size ; i ++ ) { UnicodeString . FormatRun r = _string . GetFormatRun ( i ) ; if ( r . CharacterPos > index ) break ; else currentRun = r ; } if ( currentRun == null ) ret...
public StopMonitoringMembersResult stopMonitoringMembers ( StopMonitoringMembersRequest request ) { request = beforeClientExecution ( request ) ; return executeStopMonitoringMembers ( request ) ; }
public virtual StopMonitoringMembersResponse StopMonitoringMembers ( StopMonitoringMembersRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = StopMonitoringMembersRequestMarshaller . Instance ; options . ResponseUnmarshaller = StopMonitoringMembersResponseUnmarshaller . Instance ; re...
public DetachLoadBalancerFromSubnetsResult detachLoadBalancerFromSubnets ( DetachLoadBalancerFromSubnetsRequest request ) { request = beforeClientExecution ( request ) ; return executeDetachLoadBalancerFromSubnets ( request ) ; }
public virtual DetachLoadBalancerFromSubnetsResponse DetachLoadBalancerFromSubnets ( DetachLoadBalancerFromSubnetsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DetachLoadBalancerFromSubnetsRequestMarshaller . Instance ; options . ResponseUnmarshaller = DetachLoadBalancerFromSub...
public HSSFCell getCell ( int cellnum , MissingCellPolicy policy ) { HSSFCell cell = retrieveCell ( cellnum ) ; switch ( policy ) { case RETURN_NULL_AND_BLANK : return cell ; case RETURN_BLANK_AS_NULL : boolean isBlank = ( cell != null && cell . getCellType ( ) == CellType . BLANK ) ; return ( isBlank ) ? null : cell ;...
public ICell GetCell ( int cellnum , MissingCellPolicy policy ) { ICell cell = RetrieveCell ( cellnum ) ; if ( policy == MissingCellPolicy . RETURN_NULL_AND_BLANK ) { return cell ; } if ( policy == MissingCellPolicy . RETURN_BLANK_AS_NULL ) { if ( cell == null ) return cell ; if ( cell . CellType == CellType . Blank ) ...
public SimpleQQParser ( String qqName , String indexField ) { this ( new String [ ] { qqName } , indexField ) ; }
public SimpleQQParser ( string qqName , string indexField ) : this ( new string [ ] { qqName } , indexField ) ;
public Query makeQuery ( int size ) throws Exception { throw new Exception ( this + ".makeQuery(int size) is not supported!" ) ; }
public virtual Query MakeQuery ( int size ) { throw new Exception ( this + ".MakeQuery(int size) is not supported!" ) ; }
public StringBuilder insert ( int offset , float f ) { insert0 ( offset , Float . toString ( f ) ) ; return this ; }
public java . lang . StringBuilder insert ( int offset , float f ) { insert0 ( offset , System . Convert . ToString ( f ) ) ; return this ; }
public Class < ConfigChangedListener > getListenerType ( ) { return ConfigChangedListener . class ; }
public override Type GetListenerType ( ) { return typeof ( ConfigChangedListener ) ; }
public AddPermissionResult addPermission ( AddPermissionRequest request ) { request = beforeClientExecution ( request ) ; return executeAddPermission ( request ) ; }
public virtual AddPermissionResponse AddPermission ( AddPermissionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = AddPermissionRequestMarshaller . Instance ; options . ResponseUnmarshaller = AddPermissionResponseUnmarshaller . Instance ; return Invoke < AddPermissionResponse > ( ...
public double get ( int index ) { checkIndex ( index ) ; return byteBuffer . getDouble ( index * SizeOf . DOUBLE ) ; }
public override double get ( int index ) { checkIndex ( index ) ; return byteBuffer . getDouble ( index * libcore . io . SizeOf . DOUBLE ) ; }
public HSSFDataFormat createDataFormat ( ) { return workbook . createDataFormat ( ) ; }
public NPOI . SS . UserModel . IDataFormat CreateDataFormat ( ) { return dataFormat ; }
public TermData add ( TermData t1 , TermData t2 ) { if ( t1 == NO_OUTPUT ) { return t2 ; } else if ( t2 == NO_OUTPUT ) { return t1 ; } TermData ret ; if ( t2 . bytes != null || t2 . docFreq > 0 ) { ret = new TermData ( t2 . bytes , t2 . docFreq , t2 . totalTermFreq ) ; } else { ret = new TermData ( t1 . bytes , t1 . do...
public override TermData Add ( TermData t1 , TermData t2 ) { if ( Equals ( t1 , NO_OUTPUT ) ) return t2 ; if ( Equals ( t2 , NO_OUTPUT ) ) return t1 ; Debug . Assert ( t1 . longs . Length == t2 . longs . Length ) ; var pos = 0 ; var accum = new long [ _longsSize ] ; while ( pos < _longsSize ) { accum [ pos ] = t1 . lon...
public FileSharingRecord ( RecordInputStream in ) { field_1_readonly = in . readShort ( ) ; field_2_password = in . readShort ( ) ; int nameLen = in . readShort ( ) ; if ( nameLen > 0 ) { field_3_username_unicode_options = in . readByte ( ) ; field_3_username_value = in . readCompressedUnicode ( nameLen ) ; } else { fi...
public FileSharingRecord ( RecordInputStream in1 ) { field_1_Readonly = in1 . ReadShort ( ) ; field_2_password = in1 . ReadShort ( ) ; int nameLen = in1 . ReadShort ( ) ; if ( nameLen > 0 ) { field_3_username_unicode_options = ( byte ) in1 . ReadByte ( ) ; field_3_username_value = in1 . ReadCompressedUnicode ( nameLen ...
public double computeProbability ( BasicStats stats ) { return ( stats . getTotalTermFreq ( ) + 1D ) / ( stats . getNumberOfFieldTokens ( ) + 1D ) ; }
public virtual float ComputeProbability ( BasicStats stats ) { return ( stats . TotalTermFreq + 1F ) / ( stats . NumberOfFieldTokens + 1F ) ; }
public StringCharacterIterator ( String value ) { string = value ; start = offset = 0 ; end = string . length ( ) ; }
public StringCharacterIterator ( string value ) { @ string = value ; start = offset = 0 ; end = @ string . Length ; }
public void start ( String originalText , TokenStream tokenStream ) { position = - 1 ; currentNumFrags = 1 ; textSize = originalText . length ( ) ; termAtt = tokenStream . addAttribute ( CharTermAttribute . class ) ; posIncAtt = tokenStream . addAttribute ( PositionIncrementAttribute . class ) ; offsetAtt = tokenStream...
public virtual void Start ( string originalText , TokenStream tokenStream ) { position = - 1 ; currentNumFrags = 1 ; textSize = originalText . Length ; termAtt = tokenStream . AddAttribute < ICharTermAttribute > ( ) ; posIncAtt = tokenStream . AddAttribute < IPositionIncrementAttribute > ( ) ; offsetAtt = tokenStream ....
public String getSignerVersion ( ) { return null ; }
public override string GetSignerVersion ( ) { return "1.0" ; }
public String toString ( ) { StringBuilder b = new StringBuilder ( ) ; b . append ( "initial state: 0\n" ) ; for ( int i = 0 ; i < size ; i ++ ) { b . append ( "state " ) . append ( i ) ; if ( accept . get ( i ) ) b . append ( " [accept]:\n" ) ; else b . append ( " [reject]:\n" ) ; for ( int j = 0 ; j < points . length...
public override string ToString ( ) { var b = new StringBuilder ( ) ; b . Append ( "initial state: " ) . Append ( m_initial ) . Append ( "\n" ) ; for ( int i = 0 ; i < _size ; i ++ ) { b . Append ( "state " + i ) ; if ( m_accept [ i ] ) { b . Append ( " [accept]:\n" ) ; } else { b . Append ( " [reject]:\n" ) ; } for ( ...
public synchronized long skip ( long charCount ) { if ( charCount <= 0 ) { return 0 ; } int numskipped ; if ( this . count - pos < charCount ) { numskipped = this . count - pos ; pos = this . count ; } else { numskipped = ( int ) charCount ; pos += charCount ; } return numskipped ; }
public override long skip ( long charCount ) { lock ( this ) { if ( charCount <= 0 ) { return 0 ; } int numskipped ; if ( this . count - pos < charCount ) { numskipped = this . count - pos ; pos = this . count ; } else { numskipped = ( int ) charCount ; pos += ( int ) ( charCount ) ; } return numskipped ; } }
@ Override public ListIterator < E > listIterator ( int location ) { synchronized ( mutex ) { return list . listIterator ( location ) ; } }
public virtual java . util . ListIterator < E > listIterator ( int location ) { lock ( mutex ) { return list . listIterator ( location ) ; } }
public CreateAddressBookResult createAddressBook ( CreateAddressBookRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateAddressBook ( request ) ; }
public virtual CreateAddressBookResponse CreateAddressBook ( CreateAddressBookRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateAddressBookRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateAddressBookResponseUnmarshaller . Instance ; return Invoke < Create...
public StreamCopyThread ( InputStream i , OutputStream o ) { setName ( Thread . currentThread ( ) . getName ( ) + "-StreamCopy" ) ; src = i ; dst = o ; writeLock = new Object ( ) ; }
public StreamCopyThread ( InputStream i , OutputStream o ) { SetName ( Sharpen . Thread . CurrentThread ( ) . GetName ( ) + "-StreamCopy" ) ; src = i ; dst = o ; }
public AxisParentRecord ( RecordInputStream in ) { field_1_axisType = in . readShort ( ) ; field_2_x = in . readInt ( ) ; field_3_y = in . readInt ( ) ; field_4_width = in . readInt ( ) ; field_5_height = in . readInt ( ) ; }
public AxisParentRecord ( RecordInputStream in1 ) { field_1_axisType = in1 . ReadShort ( ) ; field_2_x = in1 . ReadInt ( ) ; field_3_y = in1 . ReadInt ( ) ; field_4_width = in1 . ReadInt ( ) ; field_5_height = in1 . ReadInt ( ) ; }
public FieldFragList createFieldFragList ( FieldPhraseList fieldPhraseList , int fragCharSize ) { return createFieldFragList ( fieldPhraseList , new WeightedFieldFragList ( fragCharSize ) , fragCharSize ) ; }
public override FieldFragList CreateFieldFragList ( FieldPhraseList fieldPhraseList , int fragCharSize ) { return CreateFieldFragList ( fieldPhraseList , new WeightedFieldFragList ( fragCharSize ) , fragCharSize ) ; }
public TrimFilterFactory ( Map < String , String > args ) { super ( args ) ; if ( ! args . isEmpty ( ) ) { throw new IllegalArgumentException ( "Unknown parameters: " + args ) ; } }
public TrimFilterFactory ( IDictionary < string , string > args ) : base ( args ) { m_updateOffsets = GetBoolean ( args , "updateOffsets" , false ) ; if ( args . Count > 0 ) { throw new System . ArgumentException ( "Unknown parameters: " + args ) ; } }
public void push ( TermInfo termInfo ) { termList . push ( termInfo ) ; }
public virtual void Push ( TermInfo termInfo ) { termList . Insert ( 0 , termInfo ) ; }
public DescribeNotebookInstanceResult describeNotebookInstance ( DescribeNotebookInstanceRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeNotebookInstance ( request ) ; }
public virtual DescribeNotebookInstanceResponse DescribeNotebookInstance ( DescribeNotebookInstanceRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeNotebookInstanceRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeNotebookInstanceResponseUnmarshaller ...
public String toFormulaString ( ) { return ":" ; }
public override String ToFormulaString ( ) { return ":" ; }
public ApplyCommand setPatch ( InputStream in ) { checkCallable ( ) ; this . in = in ; return this ; }
public virtual NGit . Api . ApplyCommand SetPatch ( InputStream @ in ) { CheckCallable ( ) ; this . @ in = @ in ; return this ; }
public void setCreationTime ( long when ) { encodeTS ( P_CTIME , when ) ; }
public virtual void SetCreationTime ( long when ) { EncodeTS ( P_CTIME , when ) ; }
public static final RevFilter before ( Date ts ) { return before ( ts . getTime ( ) ) ; }
public static RevFilter Before ( long ts ) { return new CommitTimeRevFilterBefore ( ts ) ; }
public void advertiseCapability ( String name ) { capablities . add ( name ) ; }
public virtual void AdvertiseCapability ( string name ) { capablities . AddItem ( name ) ; }
public StopInstancesRequest ( java . util . List < String > instanceIds ) { setInstanceIds ( instanceIds ) ; }
public StopInstancesRequest ( List < string > instanceIds ) { _instanceIds = instanceIds ; }
public CreateVpnGatewayResult createVpnGateway ( CreateVpnGatewayRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateVpnGateway ( request ) ; }
public virtual CreateVpnGatewayResponse CreateVpnGateway ( CreateVpnGatewayRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateVpnGatewayRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateVpnGatewayResponseUnmarshaller . Instance ; return Invoke < CreateVpnGa...
public ResetCacheParameterGroupResult resetCacheParameterGroup ( ResetCacheParameterGroupRequest request ) { request = beforeClientExecution ( request ) ; return executeResetCacheParameterGroup ( request ) ; }
public virtual ResetCacheParameterGroupResponse ResetCacheParameterGroup ( ResetCacheParameterGroupRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ResetCacheParameterGroupRequestMarshaller . Instance ; options . ResponseUnmarshaller = ResetCacheParameterGroupResponseUnmarshaller ...