question
stringlengths
33
1.59k
target
stringlengths
33
1.58k
public CharBlockArray append ( CharSequence chars , int start , int length ) { int end = start + length ; for ( int i = start ; i < end ; i ++ ) { append ( chars . charAt ( i ) ) ; } return this ; }
public virtual CharBlockArray Append ( ICharSequence chars , int start , int length ) { int end = start + length ; for ( int i = start ; i < end ; i ++ ) { Append ( chars [ i ] ) ; } return this ; }
public UpdateAdmChannelResult updateAdmChannel ( UpdateAdmChannelRequest request ) { request = beforeClientExecution ( request ) ; return executeUpdateAdmChannel ( request ) ; }
public virtual UpdateAdmChannelResponse UpdateAdmChannel ( UpdateAdmChannelRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = UpdateAdmChannelRequestMarshaller . Instance ; options . ResponseUnmarshaller = UpdateAdmChannelResponseUnmarshaller . Instance ; return Invoke < UpdateAdmChannelResponse > ( request , options ) ; }
public DirCacheIterator ( DirCache dc ) { cache = dc ; tree = dc . getCacheTree ( true ) ; treeStart = 0 ; treeEnd = tree . getEntrySpan ( ) ; subtreeId = new byte [ Constants . OBJECT_ID_LENGTH ] ; if ( ! eof ( ) ) parseEntry ( ) ; }
public DirCacheIterator ( DirCache dc ) { cache = dc ; tree = dc . GetCacheTree ( true ) ; treeStart = 0 ; treeEnd = tree . GetEntrySpan ( ) ; subtreeId = new byte [ Constants . OBJECT_ID_LENGTH ] ; if ( ! Eof ) { ParseEntry ( ) ; } }
public void setBytesRef ( BytesRef term , int textStart ) { final byte [ ] bytes = term . bytes = buffers [ textStart > > BYTE_BLOCK_SHIFT ] ; int pos = textStart & BYTE_BLOCK_MASK ; if ( ( bytes [ pos ] & 0x80 ) == 0 ) { term . length = bytes [ pos ] ; term . offset = pos + 1 ; } else { term . length = ( bytes [ pos ] & 0x7f ) + ( ( bytes [ pos + 1 ] & 0xff ) << 7 ) ; term . offset = pos + 2 ; } assert term . length >= 0 ; }
public void SetBytesRef ( BytesRef term , int textStart ) { var bytes = term . Bytes = buffers [ textStart > > BYTE_BLOCK_SHIFT ] ; var pos = textStart & BYTE_BLOCK_MASK ; if ( ( bytes [ pos ] & 0x80 ) == 0 ) { term . Length = bytes [ pos ] ; term . Offset = pos + 1 ; } else { term . Length = ( bytes [ pos ] & 0x7f ) + ( ( bytes [ pos + 1 ] & 0xff ) << 7 ) ; term . Offset = pos + 2 ; } Debug . Assert ( term . Length >= 0 ) ; }
public Restrictions ( GeoRestriction geoRestriction ) { setGeoRestriction ( geoRestriction ) ; }
public Restrictions ( GeoRestriction geoRestriction ) { _geoRestriction = geoRestriction ; }
public DisableRuleResult disableRule ( DisableRuleRequest request ) { request = beforeClientExecution ( request ) ; return executeDisableRule ( request ) ; }
public virtual DisableRuleResponse DisableRule ( DisableRuleRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DisableRuleRequestMarshaller . Instance ; options . ResponseUnmarshaller = DisableRuleResponseUnmarshaller . Instance ; return Invoke < DisableRuleResponse > ( request , options ) ; }
public GetSuppressedDestinationResult getSuppressedDestination ( GetSuppressedDestinationRequest request ) { request = beforeClientExecution ( request ) ; return executeGetSuppressedDestination ( request ) ; }
public virtual GetSuppressedDestinationResponse GetSuppressedDestination ( GetSuppressedDestinationRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetSuppressedDestinationRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetSuppressedDestinationResponseUnmarshaller . Instance ; return Invoke < GetSuppressedDestinationResponse > ( request , options ) ; }
public ListDomainsResult listDomains ( ListDomainsRequest request ) { request = beforeClientExecution ( request ) ; return executeListDomains ( request ) ; }
public virtual ListDomainsResponse ListDomains ( ListDomainsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListDomainsRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListDomainsResponseUnmarshaller . Instance ; return Invoke < ListDomainsResponse > ( request , options ) ; }
public StartLifecyclePolicyPreviewResult startLifecyclePolicyPreview ( StartLifecyclePolicyPreviewRequest request ) { request = beforeClientExecution ( request ) ; return executeStartLifecyclePolicyPreview ( request ) ; }
public virtual StartLifecyclePolicyPreviewResponse StartLifecyclePolicyPreview ( StartLifecyclePolicyPreviewRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = StartLifecyclePolicyPreviewRequestMarshaller . Instance ; options . ResponseUnmarshaller = StartLifecyclePolicyPreviewResponseUnmarshaller . Instance ; return Invoke < StartLifecyclePolicyPreviewResponse > ( request , options ) ; }
public CreateDiskFromSnapshotResult createDiskFromSnapshot ( CreateDiskFromSnapshotRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateDiskFromSnapshot ( request ) ; }
public virtual CreateDiskFromSnapshotResponse CreateDiskFromSnapshot ( CreateDiskFromSnapshotRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateDiskFromSnapshotRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateDiskFromSnapshotResponseUnmarshaller . Instance ; return Invoke < CreateDiskFromSnapshotResponse > ( request , options ) ; }
public SubmoduleSyncCommand submoduleSync ( ) { return new SubmoduleSyncCommand ( repo ) ; }
public virtual SubmoduleSyncCommand SubmoduleSync ( ) { return new SubmoduleSyncCommand ( repo ) ; }
public DeleteConfigurationSetTrackingOptionsResult deleteConfigurationSetTrackingOptions ( DeleteConfigurationSetTrackingOptionsRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteConfigurationSetTrackingOptions ( request ) ; }
public virtual DeleteConfigurationSetTrackingOptionsResponse DeleteConfigurationSetTrackingOptions ( DeleteConfigurationSetTrackingOptionsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteConfigurationSetTrackingOptionsRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteConfigurationSetTrackingOptionsResponseUnmarshaller . Instance ; return Invoke < DeleteConfigurationSetTrackingOptionsResponse > ( request , options ) ; }
public V setValue ( V value ) { if ( ! allowModify ) throw new UnsupportedOperationException ( ) ; V old = values [ lastPos ] ; values [ lastPos ] = value ; return old ; }
public virtual TValue SetValue ( TValue value ) { if ( ! allowModify ) { throw new NotSupportedException ( ) ; } TValue old = outerInstance . values [ lastPos ] . Value ; outerInstance . values [ lastPos ] . Value = value ; return old ; }
public String toString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( "[FtPioGrbit ]\n" ) ; buffer . append ( " size = " ) . append ( length ) . append ( "\n" ) ; buffer . append ( " flags = " ) . append ( HexDump . toHex ( flags ) ) . append ( "\n" ) ; buffer . append ( "[/FtPioGrbit ]\n" ) ; return buffer . toString ( ) ; }
public override String ToString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( "[FtPioGrbit ]\n" ) ; buffer . Append ( " size = " ) . Append ( length ) . Append ( "\n" ) ; buffer . Append ( " flags = " ) . Append ( HexDump . ToHex ( flags ) ) . Append ( "\n" ) ; buffer . Append ( "[/FtPioGrbit ]\n" ) ; return buffer . ToString ( ) ; }
static public double ipmt ( double r , int per , int nper , double pv , double fv , int type ) { double ipmt = fv ( r , per - 1 , pmt ( r , nper , pv , fv , type ) , pv , type ) * r ; if ( type == 1 ) ipmt /= ( 1 + r ) ; return ipmt ; }
static public double IPMT ( double r , int per , int nper , double pv , double fv , int type ) { double ipmt = FV ( r , per - 1 , PMT ( r , nper , pv , fv , type ) , pv , type ) * r ; if ( type == 1 ) ipmt /= ( 1 + r ) ; return ipmt ; }
public FileDictionary ( InputStream dictFile , String fieldDelimiter ) { in = new BufferedReader ( IOUtils . getDecodingReader ( dictFile , StandardCharsets . UTF_8 ) ) ; this . fieldDelimiter = fieldDelimiter ; }
public FileDictionary ( Stream dictFile , string fieldDelimiter ) { @ in = IOUtils . GetDecodingReader ( dictFile , Encoding . UTF8 ) ; this . fieldDelimiter = fieldDelimiter ; }
public DocumentSummaryInformation ( final PropertySet ps ) throws UnexpectedPropertySetTypeException { super ( ps ) ; if ( ! isDocumentSummaryInformation ( ) ) { throw new UnexpectedPropertySetTypeException ( "Not a " + getClass ( ) . getName ( ) ) ; } }
public DocumentSummaryInformation ( PropertySet ps ) : base ( ps ) { if ( ! IsDocumentSummaryInformation ) throw new UnexpectedPropertySetTypeException ( "Not a " + GetType ( ) . Name ) ; }
public EscherBSERecord getBSERecord ( int pictureIndex ) { return escherBSERecords . get ( pictureIndex - 1 ) ; }
public EscherBSERecord GetBSERecord ( int pictureIndex ) { return ( EscherBSERecord ) escherBSERecords [ pictureIndex - 1 ] ; }
public CreateDetectorVersionResult createDetectorVersion ( CreateDetectorVersionRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateDetectorVersion ( request ) ; }
public virtual CreateDetectorVersionResponse CreateDetectorVersion ( CreateDetectorVersionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateDetectorVersionRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateDetectorVersionResponseUnmarshaller . Instance ; return Invoke < CreateDetectorVersionResponse > ( request , options ) ; }
public static DVConstraint createExplicitListConstraint ( String [ ] explicitListValues ) { return new DVConstraint ( null , explicitListValues ) ; }
public static DVConstraint CreateExplicitListConstraint ( String [ ] explicitListValues ) { return new DVConstraint ( null , explicitListValues ) ; }
public ListGroupsResult listGroups ( ListGroupsRequest request ) { request = beforeClientExecution ( request ) ; return executeListGroups ( request ) ; }
public virtual ListGroupsResponse ListGroups ( ListGroupsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListGroupsRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListGroupsResponseUnmarshaller . Instance ; return Invoke < ListGroupsResponse > ( request , options ) ; }
public DeleteScriptResult deleteScript ( DeleteScriptRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteScript ( request ) ; }
public virtual DeleteScriptResponse DeleteScript ( DeleteScriptRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteScriptRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteScriptResponseUnmarshaller . Instance ; return Invoke < DeleteScriptResponse > ( request , options ) ; }
public DescribeSpotDatafeedSubscriptionResult describeSpotDatafeedSubscription ( DescribeSpotDatafeedSubscriptionRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeSpotDatafeedSubscription ( request ) ; }
public virtual DescribeSpotDatafeedSubscriptionResponse DescribeSpotDatafeedSubscription ( DescribeSpotDatafeedSubscriptionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeSpotDatafeedSubscriptionRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeSpotDatafeedSubscriptionResponseUnmarshaller . Instance ; return Invoke < DescribeSpotDatafeedSubscriptionResponse > ( request , options ) ; }
public CharArrayReader ( char [ ] buf ) { this . buf = buf ; this . count = buf . length ; }
public CharArrayReader ( char [ ] buf ) { this . buf = buf ; this . count = buf . Length ; }
public CharSequence subSequence ( int start , int end ) { return substring ( start , end ) ; }
public virtual java . lang . CharSequence SubSequence ( int start , int end ) { return java . lang . CharSequenceProxy . Wrap ( substring ( start , end ) ) ; }
public Builder ( boolean dedup ) { this . dedup = dedup ; }
public Builder ( bool ignoreCase ) { this . ignoreCase = ignoreCase ; }
public synchronized void setPerfObject ( String key , Object obj ) { perfObjects . put ( key , obj ) ; }
public virtual void SetPerfObject ( string key , object obj ) { lock ( this ) { perfObjects [ key ] = obj ; } }
public String toString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( "[DIMENSIONS]\n" ) ; buffer . append ( " .firstrow = " ) . append ( Integer . toHexString ( getFirstRow ( ) ) ) . append ( "\n" ) ; buffer . append ( " .lastrow = " ) . append ( Integer . toHexString ( getLastRow ( ) ) ) . append ( "\n" ) ; buffer . append ( " .firstcol = " ) . append ( Integer . toHexString ( getFirstCol ( ) ) ) . append ( "\n" ) ; buffer . append ( " .lastcol = " ) . append ( Integer . toHexString ( getLastCol ( ) ) ) . append ( "\n" ) ; buffer . append ( " .zero = " ) . append ( Integer . toHexString ( field_5_zero ) ) . append ( "\n" ) ; buffer . append ( "[/DIMENSIONS]\n" ) ; return buffer . toString ( ) ; }
public override String ToString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( "[DIMENSIONS]\n" ) ; buffer . Append ( " .firstrow = " ) . Append ( StringUtil . ToHexString ( FirstRow ) ) . Append ( "\n" ) ; buffer . Append ( " .lastrow = " ) . Append ( StringUtil . ToHexString ( LastRow ) ) . Append ( "\n" ) ; buffer . Append ( " .firstcol = " ) . Append ( StringUtil . ToHexString ( FirstCol ) ) . Append ( "\n" ) ; buffer . Append ( " .lastcol = " ) . Append ( StringUtil . ToHexString ( LastCol ) ) . Append ( "\n" ) ; buffer . Append ( " .zero = " ) . Append ( StringUtil . ToHexString ( field_5_zero ) ) . Append ( "\n" ) ; buffer . Append ( "[/DIMENSIONS]\n" ) ; return buffer . ToString ( ) ; }
public ExitStandbyResult exitStandby ( ExitStandbyRequest request ) { request = beforeClientExecution ( request ) ; return executeExitStandby ( request ) ; }
public virtual ExitStandbyResponse ExitStandby ( ExitStandbyRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ExitStandbyRequestMarshaller . Instance ; options . ResponseUnmarshaller = ExitStandbyResponseUnmarshaller . Instance ; return Invoke < ExitStandbyResponse > ( request , options ) ; }
public String toString ( ) { return "MultiDocsAndPositionsEnum(" + Arrays . toString ( getSubs ( ) ) + ")" ; }
public override string ToString ( ) { return "MultiDocsEnum(" + Arrays . ToString ( Subs ) + ")" ; }
public MergeException ( Throwable exc , Directory dir ) { super ( exc ) ; this . dir = dir ; }
public MergeException ( Exception exc , Directory dir ) : base ( exc . ToString ( ) , exc ) { this . dir = dir ; }
public int read ( CharBuffer target ) throws IOException { int remaining = remaining ( ) ; if ( target == this ) { if ( remaining == 0 ) { return - 1 ; } throw new IllegalArgumentException ( ) ; } if ( remaining == 0 ) { return limit > 0 && target . remaining ( ) == 0 ? 0 : - 1 ; } remaining = Math . min ( target . remaining ( ) , remaining ) ; if ( remaining > 0 ) { char [ ] chars = new char [ remaining ] ; get ( chars ) ; target . put ( chars ) ; } return remaining ; }
public virtual int read ( java . nio . CharBuffer target ) { int remaining_1 = remaining ( ) ; if ( target == this ) { if ( remaining_1 == 0 ) { return - 1 ; } throw new System . ArgumentException ( ) ; } if ( remaining_1 == 0 ) { return _limit > 0 && target . remaining ( ) == 0 ? 0 : - 1 ; } remaining_1 = System . Math . Min ( target . remaining ( ) , remaining_1 ) ; if ( remaining_1 > 0 ) { char [ ] chars = new char [ remaining_1 ] ; get ( chars ) ; target . put ( chars ) ; } return remaining_1 ; }
public final float getFloat ( ) { return Float . intBitsToFloat ( getInt ( ) ) ; }
public sealed override float getFloat ( ) { return Sharpen . Util . IntBitsToFloat ( getInt ( ) ) ; }
public UpdateApplicationRequest ( String applicationName ) { setApplicationName ( applicationName ) ; }
public UpdateApplicationRequest ( string applicationName ) { _applicationName = applicationName ; }
public void initReader ( ByteSliceReader reader , int termID , int stream ) { assert stream < streamCount ; int intStart = postingsArray . intStarts [ termID ] ; final int [ ] ints = intPool . buffers [ intStart > > IntBlockPool . INT_BLOCK_SHIFT ] ; final int upto = intStart & IntBlockPool . INT_BLOCK_MASK ; reader . init ( bytePool , postingsArray . byteStarts [ termID ] + stream * ByteBlockPool . FIRST_LEVEL_SIZE , ints [ upto + stream ] ) ; }
public void InitReader ( ByteSliceReader reader , int termID , int stream ) { Debug . Assert ( stream < streamCount ) ; int intStart = postingsArray . intStarts [ termID ] ; int [ ] ints = intPool . Buffers [ intStart > > Int32BlockPool . INT32_BLOCK_SHIFT ] ; int upto = intStart & Int32BlockPool . INT32_BLOCK_MASK ; reader . Init ( bytePool , postingsArray . byteStarts [ termID ] + stream * ByteBlockPool . FIRST_LEVEL_SIZE , ints [ upto + stream ] ) ; }
public T next ( ) { if ( size <= index ) throw new NoSuchElementException ( ) ; T res = block [ blkIdx ] ; if ( ++ blkIdx == BLOCK_SIZE ) { if ( ++ dirIdx < directory . length ) block = directory [ dirIdx ] ; elseblock = null ; blkIdx = 0 ; } index ++ ; return res ; }
public override T Next ( ) { if ( this . _enclosing . size <= this . index ) { throw new NoSuchElementException ( ) ; } T res = this . block [ this . blkIdx ] ; if ( ++ this . blkIdx == BlockList < T > . BLOCK_SIZE ) { if ( ++ this . dirIdx < this . _enclosing . directory . Length ) { this . block = this . _enclosing . directory [ this . dirIdx ] ; } else { this . block = null ; } this . blkIdx = 0 ; } this . index ++ ; return res ; }
public DescribeOptionGroupOptionsResult describeOptionGroupOptions ( DescribeOptionGroupOptionsRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeOptionGroupOptions ( request ) ; }
public virtual DescribeOptionGroupOptionsResponse DescribeOptionGroupOptions ( DescribeOptionGroupOptionsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeOptionGroupOptionsRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeOptionGroupOptionsResponseUnmarshaller . Instance ; return Invoke < DescribeOptionGroupOptionsResponse > ( request , options ) ; }
public int alloc ( int size ) { int index = n ; int len = array . length ; if ( n + size >= len ) { byte [ ] aux = new byte [ len + blockSize ] ; System . arraycopy ( array , 0 , aux , 0 , len ) ; array = aux ; } n += size ; return index ; }
public virtual int Alloc ( int size ) { int index = n ; int len = array . Length ; if ( n + size >= len ) { byte [ ] aux = new byte [ len + blockSize ] ; System . Array . Copy ( array , 0 , aux , 0 , len ) ; array = aux ; } n += size ; return index ; }
public String getText ( ) { StringBuilder text = new StringBuilder ( ) ; for ( TermInfo ti : termsInfos ) { text . append ( ti . getText ( ) ) ; } return text . toString ( ) ; }
public virtual string GetText ( ) { StringBuilder text = new StringBuilder ( ) ; foreach ( TermInfo ti in termsInfos ) { text . Append ( ti . Text ) ; } return text . ToString ( ) ; }
public ReplaceableItem ( String name ) { setName ( name ) ; }
public ReplaceableItem ( string name ) { _name = name ; }
public NamePtg ( LittleEndianInput in ) { field_1_label_index = in . readUShort ( ) ; field_2_zero = in . readShort ( ) ; }
public NamePtg ( ILittleEndianInput in1 ) { field_1_label_index = in1 . ReadShort ( ) ; field_2_zero = in1 . ReadShort ( ) ; }
public int indexOf ( Object object ) { if ( object != null ) { for ( int i = 0 ; i < a . length ; i ++ ) { if ( object . equals ( a [ i ] ) ) { return i ; } } } else { for ( int i = 0 ; i < a . length ; i ++ ) { if ( a [ i ] == null ) { return i ; } } } return - 1 ; }
public override int indexOf ( object @ object ) { if ( @ object != null ) { { for ( int i = 0 ; i < a . Length ; i ++ ) { if ( @ object . Equals ( a [ i ] ) ) { return i ; } } } } else { { for ( int i = 0 ; i < a . Length ; i ++ ) { if ( ( object ) a [ i ] == null ) { return i ; } } } } return - 1 ; }
public ListContactFlowsResult listContactFlows ( ListContactFlowsRequest request ) { request = beforeClientExecution ( request ) ; return executeListContactFlows ( request ) ; }
public virtual ListContactFlowsResponse ListContactFlows ( ListContactFlowsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListContactFlowsRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListContactFlowsResponseUnmarshaller . Instance ; return Invoke < ListContactFlowsResponse > ( request , options ) ; }
public int doLogic ( ) throws IOException { String analyzerName = null ; try { if ( current >= analyzerNames . size ( ) ) { current = 0 ; } analyzerName = analyzerNames . get ( current ++ ) ; Analyzer analyzer = null ; if ( null == analyzerName || 0 == analyzerName . length ( ) ) { analyzerName = "org.apache.lucene.analysis.standard.StandardAnalyzer" ; } AnalyzerFactory factory = getRunData ( ) . getAnalyzerFactories ( ) . get ( analyzerName ) ; if ( null != factory ) { analyzer = factory . create ( ) ; } else { if ( analyzerName . contains ( "." ) ) { if ( analyzerName . startsWith ( "standard." ) ) { analyzerName = "org.apache.lucene.analysis." + analyzerName ; } analyzer = createAnalyzer ( analyzerName ) ; } else { try { String coreClassName = "org.apache.lucene.analysis.core." + analyzerName ; analyzer = createAnalyzer ( coreClassName ) ; analyzerName = coreClassName ; } catch ( ClassNotFoundException e ) { analyzerName = "org.apache.lucene.analysis." + analyzerName ; analyzer = createAnalyzer ( analyzerName ) ; } } } getRunData ( ) . setAnalyzer ( analyzer ) ; } catch ( Exception e ) { throw new RuntimeException ( "Error creating Analyzer: " + analyzerName , e ) ; } return 1 ; }
public override int DoLogic ( ) { string analyzerName = null ; try { if ( current >= analyzerNames . Count ) { current = 0 ; } analyzerName = analyzerNames [ current ++ ] ; Analyzer analyzer = null ; if ( null == analyzerName || 0 == analyzerName . Length ) { analyzerName = typeof ( Lucene . Net . Analysis . Standard . StandardAnalyzer ) . AssemblyQualifiedName ; } AnalyzerFactory factory ; if ( RunData . AnalyzerFactories . TryGetValue ( analyzerName , out factory ) && null != factory ) { analyzer = factory . Create ( ) ; } else { if ( analyzerName . Contains ( "." ) ) { if ( analyzerName . StartsWith ( "Standard." , StringComparison . Ordinal ) ) { analyzerName = "Lucene.Net.Analysis." + analyzerName ; } analyzer = CreateAnalyzer ( analyzerName ) ; } else { try { string coreClassName = "Lucene.Net.Analysis.Core." + analyzerName ; analyzer = CreateAnalyzer ( coreClassName ) ; analyzerName = coreClassName ; } catch ( TypeLoadException ) { analyzerName = "Lucene.Net.Analysis." + analyzerName ; analyzer = CreateAnalyzer ( analyzerName ) ; } } } RunData . Analyzer = analyzer ; } catch ( Exception e ) { throw new Exception ( "Error creating Analyzer: " + analyzerName , e ) ; } return 1 ; }
public int serializeSimplePart ( byte [ ] data , int offset ) { LittleEndian . putShort ( data , offset , getId ( ) ) ; LittleEndian . putInt ( data , offset + 2 , propertyValue ) ; return 6 ; }
public override int SerializeSimplePart ( byte [ ] data , int offset ) { LittleEndian . PutShort ( data , offset , Id ) ; LittleEndian . PutInt ( data , offset + 2 , propertyValue ) ; return 6 ; }
public static short [ ] copyOf ( short [ ] original , int newLength ) { if ( newLength < 0 ) { throw new NegativeArraySizeException ( ) ; } return copyOfRange ( original , 0 , newLength ) ; }
public static short [ ] copyOf ( short [ ] original , int newLength ) { if ( newLength < 0 ) { throw new java . lang . NegativeArraySizeException ( ) ; } return copyOfRange ( original , 0 , newLength ) ; }
@ Override public Iterator < V > iterator ( ) { return new ValueIterator ( ) ; }
public override java . util . Iterator < V > iterator ( ) { return new java . util . Hashtable < K , V > . ValueIterator ( this . _enclosing ) ; }
public boolean equals ( Object obj ) { if ( this == obj ) { return true ; } if ( ! super . equals ( obj ) ) { return false ; } PrefixQuery other = ( PrefixQuery ) obj ; if ( ! term . equals ( other . term ) ) { return false ; } return true ; }
public override bool Equals ( object obj ) { if ( this == obj ) { return true ; } if ( ! base . Equals ( obj ) ) { return false ; } if ( this . GetType ( ) != obj . GetType ( ) ) { return false ; } PrefixQuery other = ( PrefixQuery ) obj ; if ( _prefix == null ) { if ( other . _prefix != null ) { return false ; } } else if ( ! _prefix . Equals ( other . _prefix ) ) { return false ; } return true ; }
public boolean isSheetVeryHidden ( int sheetnum ) { return getBoundSheetRec ( sheetnum ) . isVeryHidden ( ) ; }
public bool IsSheetVeryHidden ( int sheetnum ) { return GetBoundSheetRec ( sheetnum ) . IsVeryHidden ; }
public UpdateAccessKeyRequest ( String accessKeyId , StatusType status ) { setAccessKeyId ( accessKeyId ) ; setStatus ( status . toString ( ) ) ; }
public UpdateAccessKeyRequest ( string accessKeyId , StatusType status ) { _accessKeyId = accessKeyId ; _status = status ; }
public static int countMatchingCellsInArea ( ThreeDEval areaEval , I_MatchPredicate criteriaPredicate ) { int result = 0 ; final int firstSheetIndex = areaEval . getFirstSheetIndex ( ) ; final int lastSheetIndex = areaEval . getLastSheetIndex ( ) ; for ( int sIx = firstSheetIndex ; sIx <= lastSheetIndex ; sIx ++ ) { int height = areaEval . getHeight ( ) ; int width = areaEval . getWidth ( ) ; for ( int rrIx = 0 ; rrIx < height ; rrIx ++ ) { for ( int rcIx = 0 ; rcIx < width ; rcIx ++ ) { ValueEval ve = areaEval . getValue ( sIx , rrIx , rcIx ) ; if ( criteriaPredicate instanceof I_MatchAreaPredicate ) { I_MatchAreaPredicate areaPredicate = ( I_MatchAreaPredicate ) criteriaPredicate ; if ( ! areaPredicate . matches ( areaEval , rrIx , rcIx ) ) continue ; } if ( criteriaPredicate . matches ( ve ) ) { result ++ ; } } } } return result ; }
public static int CountMatchingCellsInArea ( ThreeDEval areaEval , IMatchPredicate criteriaPredicate ) { int result = 0 ; for ( int sIx = areaEval . FirstSheetIndex ; sIx <= areaEval . LastSheetIndex ; sIx ++ ) { int height = areaEval . Height ; int width = areaEval . Width ; for ( int rrIx = 0 ; rrIx < height ; rrIx ++ ) { for ( int rcIx = 0 ; rcIx < width ; rcIx ++ ) { ValueEval ve = areaEval . GetValue ( sIx , rrIx , rcIx ) ; if ( criteriaPredicate is I_MatchAreaPredicate ) { I_MatchAreaPredicate areaPredicate = ( I_MatchAreaPredicate ) criteriaPredicate ; if ( ! areaPredicate . Matches ( areaEval , rrIx , rcIx ) ) continue ; } if ( criteriaPredicate . Matches ( ve ) ) { result ++ ; } } } } return result ; }
public PushCommand setRefSpecs ( List < RefSpec > specs ) { checkCallable ( ) ; this . refSpecs . clear ( ) ; this . refSpecs . addAll ( specs ) ; return this ; }
public virtual NGit . Api . PushCommand SetRefSpecs ( params RefSpec [ ] specs ) { CheckCallable ( ) ; this . refSpecs . Clear ( ) ; Sharpen . Collections . AddAll ( refSpecs , specs ) ; return this ; }
public EscherComplexProperty ( short id , int complexSize ) { super ( ( short ) ( id | IS_COMPLEX ) ) ; complexData = IOUtils . safelyAllocate ( complexSize , MAX_RECORD_LENGTH ) ; }
public EscherComplexProperty ( short id , byte [ ] complexData ) : base ( id ) { this . _complexData = complexData ; }
public CreateNodeResult createNode ( CreateNodeRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateNode ( request ) ; }
public virtual CreateNodeResponse CreateNode ( CreateNodeRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateNodeRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateNodeResponseUnmarshaller . Instance ; return Invoke < CreateNodeResponse > ( request , options ) ; }
public Note call ( ) throws GitAPIException { checkCallable ( ) ; NoteMap map = NoteMap . newEmptyMap ( ) ; RevCommit notesCommit = null ; try ( RevWalk walk = new RevWalk ( repo ) ) { Ref ref = repo . exactRef ( notesRef ) ; if ( ref != null ) { notesCommit = walk . parseCommit ( ref . getObjectId ( ) ) ; map = NoteMap . read ( walk . getObjectReader ( ) , notesCommit ) ; } return map . getNote ( id ) ; } catch ( IOException e ) { throw new JGitInternalException ( e . getMessage ( ) , e ) ; } }
public override Note Call ( ) { CheckCallable ( ) ; RevWalk walk = new RevWalk ( repo ) ; NoteMap map = NoteMap . NewEmptyMap ( ) ; RevCommit notesCommit = null ; try { Ref @ ref = repo . GetRef ( notesRef ) ; if ( @ ref != null ) { notesCommit = walk . ParseCommit ( @ ref . GetObjectId ( ) ) ; map = NoteMap . Read ( walk . GetObjectReader ( ) , notesCommit ) ; } return map . GetNote ( id ) ; } catch ( IOException e ) { throw new JGitInternalException ( e . Message , e ) ; } finally { walk . Release ( ) ; } }
public void ReInit ( CharStream stream ) { jjmatchedPos = jjnewStateCnt = 0 ; curLexState = defaultLexState ; input_stream = stream ; ReInitRounds ( ) ; }
public virtual void ReInit ( ICharStream stream ) { jjmatchedPos = jjnewStateCnt = 0 ; curLexState = defaultLexState ; m_input_stream = stream ; ReInitRounds ( ) ; }
public boolean add ( char [ ] text ) { return map . put ( text , PLACEHOLDER ) == null ; }
public virtual bool Add ( ICharSequence text ) { return map . Put ( text ) ; }
public void setDeltaBaseCacheLimit ( int newLimit ) { deltaBaseCacheLimit = newLimit ; }
public virtual void SetDeltaBaseCacheLimit ( int newLimit ) { deltaBaseCacheLimit = newLimit ; }
public ServerException ( String errCode , String errMsg , String requestId ) { this ( errCode , errMsg ) ; this . setRequestId ( requestId ) ; }
public ServerException ( string errorCode , string errorMessage , string requestId ) : base ( errorCode , errorMessage , requestId ) { RequestId = requestId ; }
final public SrndQuery NQuery ( ) throws ParseException { SrndQuery q ; ArrayList < SrndQuery > queries ; Token dt ; q = WQuery ( ) ; label_5 : while ( true ) { switch ( ( jj_ntk == - 1 ) ? jj_ntk ( ) : jj_ntk ) { case N : ; break ; default : jj_la1 [ 3 ] = jj_gen ; break label_5 ; } dt = jj_consume_token ( N ) ; queries = new ArrayList < SrndQuery > ( ) ; queries . add ( q ) ; q = WQuery ( ) ; queries . add ( q ) ; q = getDistanceQuery ( queries , true , dt , false ) ; } { if ( true ) return q ; } throw new Error ( "Missing return statement in function" ) ; }
public SrndQuery NQuery ( ) { SrndQuery q ; IList < SrndQuery > queries ; Token dt ; q = WQuery ( ) ; while ( true ) { switch ( ( jj_ntk == - 1 ) ? Jj_ntk ( ) : jj_ntk ) { case RegexpToken . N : ; break ; default : jj_la1 [ 3 ] = jj_gen ; goto label_5 ; } dt = Jj_consume_token ( RegexpToken . N ) ; queries = new List < SrndQuery > ( ) ; queries . Add ( q ) ; q = WQuery ( ) ; queries . Add ( q ) ; q = GetDistanceQuery ( queries , true , dt , false ) ; } label_5 : { if ( true ) return q ; } throw new Exception ( "Missing return statement in function" ) ; }
public MoreLikeThisQuery ( String likeText , String [ ] moreLikeFields , Analyzer analyzer , String fieldName ) { this . likeText = Objects . requireNonNull ( likeText ) ; this . moreLikeFields = Objects . requireNonNull ( moreLikeFields ) ; this . analyzer = Objects . requireNonNull ( analyzer ) ; this . fieldName = Objects . requireNonNull ( fieldName ) ; }
public MoreLikeThisQuery ( string likeText , string [ ] moreLikeFields , Analyzer analyzer , string fieldName ) { this . LikeText = likeText ; this . MoreLikeFields = moreLikeFields ; this . Analyzer = analyzer ; this . fieldName = fieldName ; }
public DescribeImageAttributeResult describeImageAttribute ( DescribeImageAttributeRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeImageAttribute ( request ) ; }
public virtual DescribeImageAttributeResponse DescribeImageAttribute ( DescribeImageAttributeRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeImageAttributeRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeImageAttributeResponseUnmarshaller . Instance ; return Invoke < DescribeImageAttributeResponse > ( request , options ) ; }
public void println ( Object o ) { println ( String . valueOf ( o ) ) ; }
public virtual void println ( object o ) { println ( Sharpen . StringHelper . GetValueOf ( o ) ) ; }
public DeregisterFromWorkMailResult deregisterFromWorkMail ( DeregisterFromWorkMailRequest request ) { request = beforeClientExecution ( request ) ; return executeDeregisterFromWorkMail ( request ) ; }
public virtual DeregisterFromWorkMailResponse DeregisterFromWorkMail ( DeregisterFromWorkMailRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeregisterFromWorkMailRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeregisterFromWorkMailResponseUnmarshaller . Instance ; return Invoke < DeregisterFromWorkMailResponse > ( request , options ) ; }
public PutClusterCapacityProvidersResult putClusterCapacityProviders ( PutClusterCapacityProvidersRequest request ) { request = beforeClientExecution ( request ) ; return executePutClusterCapacityProviders ( request ) ; }
public virtual PutClusterCapacityProvidersResponse PutClusterCapacityProviders ( PutClusterCapacityProvidersRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = PutClusterCapacityProvidersRequestMarshaller . Instance ; options . ResponseUnmarshaller = PutClusterCapacityProvidersResponseUnmarshaller . Instance ; return Invoke < PutClusterCapacityProvidersResponse > ( request , options ) ; }
public ChangeMessageVisibilityBatchRequestEntry ( String id , String receiptHandle ) { setId ( id ) ; setReceiptHandle ( receiptHandle ) ; }
public ChangeMessageVisibilityBatchRequestEntry ( string id , string receiptHandle ) { _id = id ; _receiptHandle = receiptHandle ; }
public StringBuffer append ( float f ) { RealToString . getInstance ( ) . appendFloat ( this , f ) ; return this ; }
public java . lang . StringBuffer append ( bool b ) { return append ( b ? "true" : "false" ) ; }
@ Override public int compare ( T o1 , T o2 ) { return cmp . compare ( o2 , o1 ) ; }
public int compare ( T o1 , T o2 ) { return cmp . compare ( o2 , o1 ) ; }
public GetAttributesRequest ( String domainName , String itemName ) { setDomainName ( domainName ) ; setItemName ( itemName ) ; }
public GetAttributesRequest ( string domainName , string itemName ) { _domainName = domainName ; _itemName = itemName ; }
public String toString ( ) { return getClass ( ) . getName ( ) + " [" + _firstMovedIndex + _lastMovedIndex + _amountToMove + "]" ; }
public override String ToString ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . Append ( GetType ( ) . Name ) ; sb . Append ( " [" ) ; sb . Append ( _firstMovedIndex ) ; sb . Append ( _lastMovedIndex ) ; sb . Append ( _amountToMove ) ; return sb . ToString ( ) ; }
public final ValueEval evaluate ( ValueEval [ ] args , int srcCellRow , int srcCellCol ) { double result ; try { result = eval ( args , srcCellRow , srcCellCol ) ; checkValue ( result ) ; } catch ( EvaluationException e ) { return e . getErrorEval ( ) ; } return new NumberEval ( result ) ; }
public ValueEval Evaluate ( ValueEval [ ] args , int srcCellRow , int srcCellCol ) { double result ; try { result = Eval ( args , srcCellRow , srcCellCol ) ; CheckValue ( result ) ; } catch ( EvaluationException e ) { return e . GetErrorEval ( ) ; } return new NumberEval ( result ) ; }
public DescribeFpgaImagesResult describeFpgaImages ( DescribeFpgaImagesRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeFpgaImages ( request ) ; }
public virtual DescribeFpgaImagesResponse DescribeFpgaImages ( DescribeFpgaImagesRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeFpgaImagesRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeFpgaImagesResponseUnmarshaller . Instance ; return Invoke < DescribeFpgaImagesResponse > ( request , options ) ; }
public ObjectDirectoryInserter newInserter ( ) { return new ObjectDirectoryInserter ( this , config ) ; }
public override ObjectInserter NewInserter ( ) { return new ObjectDirectoryInserter ( this , config ) ; }
public LongBuffer put ( int index , long c ) { checkIndex ( index ) ; byteBuffer . putLong ( index * SizeOf . LONG , c ) ; return this ; }
public override java . nio . LongBuffer put ( int index , long c ) { checkIndex ( index ) ; byteBuffer . putLong ( index * libcore . io . SizeOf . LONG , c ) ; return this ; }
public boolean isRetainBody ( ) { return retainBody ; }
public virtual bool IsRetainBody ( ) { return retainBody ; }
public AddApplicationVpcConfigurationResult addApplicationVpcConfiguration ( AddApplicationVpcConfigurationRequest request ) { request = beforeClientExecution ( request ) ; return executeAddApplicationVpcConfiguration ( request ) ; }
public virtual AddApplicationVpcConfigurationResponse AddApplicationVpcConfiguration ( AddApplicationVpcConfigurationRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = AddApplicationVpcConfigurationRequestMarshaller . Instance ; options . ResponseUnmarshaller = AddApplicationVpcConfigurationResponseUnmarshaller . Instance ; return Invoke < AddApplicationVpcConfigurationResponse > ( request , options ) ; }
public Entry < K , V > next ( ) { return nextEntry ( ) ; }
public override java . util . MapClass . Entry < K , V > next ( ) { return this . nextEntry ( ) ; }
public SpreadsheetVersion getSpreadsheetVersion ( ) { return SpreadsheetVersion . EXCEL97 ; }
public SpreadsheetVersion GetSpreadsheetVersion ( ) { return SpreadsheetVersion . EXCEL2007 ; }
public String [ ] promptKeyboardInteractive ( String destination , String name , String instruction , String [ ] prompt , boolean [ ] echo ) { CredentialItem . StringType [ ] v = new CredentialItem . StringType [ prompt . length ] ; for ( int i = 0 ; i < prompt . length ; i ++ ) v [ i ] = new CredentialItem . StringType ( prompt [ i ] , ! echo [ i ] ) ; List < CredentialItem > items = new ArrayList < > ( ) ; if ( instruction != null && instruction . length ( ) > 0 ) items . add ( new CredentialItem . InformationalMessage ( instruction ) ) ; items . addAll ( Arrays . asList ( v ) ) ; if ( ! provider . get ( uri , items ) ) return null ; String [ ] result = new String [ v . length ] ; for ( int i = 0 ; i < v . length ; i ++ ) result [ i ] = v [ i ] . getValue ( ) ; return result ; }
public virtual string [ ] PromptKeyboardInteractive ( string destination , string name , string instruction , string [ ] prompt , bool [ ] echo ) { CredentialItem . StringType [ ] v = new CredentialItem . StringType [ prompt . Length ] ; for ( int i = 0 ; i < prompt . Length ; i ++ ) { v [ i ] = new CredentialItem . StringType ( prompt [ i ] , ! echo [ i ] ) ; } IList < CredentialItem > items = new AList < CredentialItem > ( ) ; if ( instruction != null && instruction . Length > 0 ) { items . AddItem ( new CredentialItem . InformationalMessage ( instruction ) ) ; } Sharpen . Collections . AddAll ( items , Arrays . AsList ( v ) ) ; if ( ! provider . Get ( uri , items ) ) { return null ; } string [ ] result = new string [ v . Length ] ; for ( int i_1 = 0 ; i_1 < v . Length ; i_1 ++ ) { result [ i_1 ] = v [ i_1 ] . GetValue ( ) ; } return result ; }
public static synchronized MergeStrategy get ( String name ) { return STRATEGIES . get ( name ) ; }
public static MergeStrategy Get ( string name ) { lock ( typeof ( MergeStrategy ) ) { return STRATEGIES . Get ( name ) ; } }
public AssociateConnectionWithLagResult associateConnectionWithLag ( AssociateConnectionWithLagRequest request ) { request = beforeClientExecution ( request ) ; return executeAssociateConnectionWithLag ( request ) ; }
public virtual AssociateConnectionWithLagResponse AssociateConnectionWithLag ( AssociateConnectionWithLagRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = AssociateConnectionWithLagRequestMarshaller . Instance ; options . ResponseUnmarshaller = AssociateConnectionWithLagResponseUnmarshaller . Instance ; return Invoke < AssociateConnectionWithLagResponse > ( request , options ) ; }
public short getShortValue ( final short holder ) { return ( short ) getValue ( holder ) ; }
public short GetShortValue ( short holder ) { return ( short ) this . GetValue ( holder ) ; }
public static BreakIterator getSentenceInstance ( ) { return getSentenceInstance ( Locale . getDefault ( ) ) ; }
public static java . text . BreakIterator getSentenceInstance ( ) { return getSentenceInstance ( System . Globalization . CultureInfo . CurrentCulture ) ; }
public MissingObjectException ( ObjectId id , String type ) { super ( MessageFormat . format ( JGitText . get ( ) . missingObject , type , id . name ( ) ) ) ; missing = id . copy ( ) ; }
public MissingObjectException ( ObjectId id , string type ) : base ( MessageFormat . Format ( JGitText . Get ( ) . missingObject , type , id . Name ) ) { missing = id . Copy ( ) ; }
public PipedReader ( PipedWriter out , int pipeSize ) throws IOException { this ( pipeSize ) ; connect ( out ) ; }
public PipedReader ( java . io . PipedWriter @ out , int pipeSize ) : this ( pipeSize ) { throw new System . NotImplementedException ( ) ; }
public ImportKeyPairRequest ( String keyName , String publicKeyMaterial ) { setKeyName ( keyName ) ; setPublicKeyMaterial ( publicKeyMaterial ) ; }
public ImportKeyPairRequest ( string keyName , string publicKeyMaterial ) { _keyName = keyName ; _publicKeyMaterial = publicKeyMaterial ; }
public DeleteFaceRequest ( ) { super ( "LinkFace" , "2018-07-20" , "DeleteFace" ) ; setProtocol ( ProtocolType . HTTPS ) ; setMethod ( MethodType . POST ) ; }
public DeleteFaceRequest ( ) : base ( "LinkFace" , "2018-07-20" , "DeleteFace" ) { Protocol = ProtocolType . HTTPS ; Method = MethodType . POST ; }
public CreateReceiptRuleSetResult createReceiptRuleSet ( CreateReceiptRuleSetRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateReceiptRuleSet ( request ) ; }
public virtual CreateReceiptRuleSetResponse CreateReceiptRuleSet ( CreateReceiptRuleSetRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateReceiptRuleSetRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateReceiptRuleSetResponseUnmarshaller . Instance ; return Invoke < CreateReceiptRuleSetResponse > ( request , options ) ; }
public RemovePermissionRequest ( String queueUrl , String label ) { setQueueUrl ( queueUrl ) ; setLabel ( label ) ; }
public RemovePermissionRequest ( string queueUrl , string label ) { _queueUrl = queueUrl ; _label = label ; }
public String toString ( ) { return "DFR " + basicModel . toString ( ) + afterEffect . toString ( ) + normalization . toString ( ) ; }
public override string ToString ( ) { return "DFR " + m_basicModel . ToString ( ) + m_afterEffect . ToString ( ) + m_normalization . ToString ( ) ; }
public void setResult ( RefUpdate . Result r ) { switch ( r ) { case NOT_ATTEMPTED : setResult ( Result . NOT_ATTEMPTED ) ; break ; case LOCK_FAILURE : case IO_FAILURE : setResult ( Result . LOCK_FAILURE ) ; break ; case NO_CHANGE : case NEW : case FORCED : case FAST_FORWARD : setResult ( Result . OK ) ; break ; case REJECTED : setResult ( Result . REJECTED_NONFASTFORWARD ) ; break ; case REJECTED_CURRENT_BRANCH : setResult ( Result . REJECTED_CURRENT_BRANCH ) ; break ; case REJECTED_MISSING_OBJECT : setResult ( Result . REJECTED_MISSING_OBJECT ) ; break ; case REJECTED_OTHER_REASON : setResult ( Result . REJECTED_OTHER_REASON ) ; break ; default : setResult ( Result . REJECTED_OTHER_REASON , r . name ( ) ) ; break ; } }
public virtual void SetResult ( RefUpdate . Result r ) { switch ( r ) { case RefUpdate . Result . NOT_ATTEMPTED : { SetResult ( ReceiveCommand . Result . NOT_ATTEMPTED ) ; break ; } case RefUpdate . Result . LOCK_FAILURE : case RefUpdate . Result . IO_FAILURE : { SetResult ( ReceiveCommand . Result . LOCK_FAILURE ) ; break ; } case RefUpdate . Result . NO_CHANGE : case RefUpdate . Result . NEW : case RefUpdate . Result . FORCED : case RefUpdate . Result . FAST_FORWARD : { SetResult ( ReceiveCommand . Result . OK ) ; break ; } case RefUpdate . Result . REJECTED : { SetResult ( ReceiveCommand . Result . REJECTED_NONFASTFORWARD ) ; break ; } case RefUpdate . Result . REJECTED_CURRENT_BRANCH : { SetResult ( ReceiveCommand . Result . REJECTED_CURRENT_BRANCH ) ; break ; } default : { SetResult ( ReceiveCommand . Result . REJECTED_OTHER_REASON , r . ToString ( ) ) ; break ; break ; } } }
public DeleteMatchmakingConfigurationResult deleteMatchmakingConfiguration ( DeleteMatchmakingConfigurationRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteMatchmakingConfiguration ( request ) ; }
public virtual DeleteMatchmakingConfigurationResponse DeleteMatchmakingConfiguration ( DeleteMatchmakingConfigurationRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteMatchmakingConfigurationRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteMatchmakingConfigurationResponseUnmarshaller . Instance ; return Invoke < DeleteMatchmakingConfigurationResponse > ( request , options ) ; }
public double resolveDistErr ( SpatialContext ctx , double defaultDistErrPct ) { if ( distErr != null ) return distErr ; double distErrPct = ( this . distErrPct != null ? this . distErrPct : defaultDistErrPct ) ; return calcDistanceFromErrPct ( shape , distErrPct , ctx ) ; }
public virtual double ResolveDistErr ( SpatialContext ctx , double defaultDistErrPct ) { if ( DistErr != null ) return DistErr . Value ; double distErrPct = ( this . distErrPct ? ? defaultDistErrPct ) ; return CalcDistanceFromErrPct ( Shape , distErrPct , ctx ) ; }
public final CharsetEncoder replaceWith ( byte [ ] replacement ) { if ( replacement == null ) { throw new IllegalArgumentException ( "replacement == null" ) ; } if ( replacement . length == 0 ) { throw new IllegalArgumentException ( "replacement.length == 0" ) ; } if ( replacement . length > maxBytesPerChar ( ) ) { throw new IllegalArgumentException ( "replacement length > maxBytesPerChar: " + replacement . length + " > " + maxBytesPerChar ( ) ) ; } if ( ! isLegalReplacement ( replacement ) ) { throw new IllegalArgumentException ( "bad replacement: " + Arrays . toString ( replacement ) ) ; } this . replacementBytes = replacement ; implReplaceWith ( replacementBytes ) ; return this ; }
public java . nio . charset . CharsetEncoder replaceWith ( byte [ ] replacement_1 ) { if ( replacement_1 == null ) { throw new System . ArgumentException ( "replacement == null" ) ; } if ( replacement_1 . Length == 0 ) { throw new System . ArgumentException ( "replacement.length == 0" ) ; } if ( replacement_1 . Length > maxBytesPerChar ( ) ) { throw new System . ArgumentException ( "replacement length > maxBytesPerChar: " + replacement_1 . Length + " > " + maxBytesPerChar ( ) ) ; } if ( ! isLegalReplacement ( replacement_1 ) ) { throw new System . ArgumentException ( "bad replacement: " + java . util . Arrays . toString ( replacement_1 ) ) ; } this . replacementBytes = replacement_1 ; implReplaceWith ( replacementBytes ) ; return this ; }
public CreateApplicationSnapshotResult createApplicationSnapshot ( CreateApplicationSnapshotRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateApplicationSnapshot ( request ) ; }
public virtual CreateApplicationSnapshotResponse CreateApplicationSnapshot ( CreateApplicationSnapshotRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateApplicationSnapshotRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateApplicationSnapshotResponseUnmarshaller . Instance ; return Invoke < CreateApplicationSnapshotResponse > ( request , options ) ; }
public ValueEval evaluate ( int srcCellRow , int srcCellCol , ValueEval arg0 ) { double d ; try { ValueEval ve = OperandResolver . getSingleValue ( arg0 , srcCellRow , srcCellCol ) ; if ( ve instanceof StringEval ) { return ve ; } d = OperandResolver . coerceValueToDouble ( ve ) ; } catch ( EvaluationException e ) { return e . getErrorEval ( ) ; } return new NumberEval ( + d ) ; }
public override ValueEval Evaluate ( int srcCellRow , int srcCellCol , ValueEval arg0 ) { double d ; try { ValueEval ve = OperandResolver . GetSingleValue ( arg0 , srcCellRow , srcCellCol ) ; if ( ve is BlankEval ) { return NumberEval . ZERO ; } if ( ve is StringEval ) { return ve ; } d = OperandResolver . CoerceValueToDouble ( ve ) ; } catch ( EvaluationException e ) { return e . GetErrorEval ( ) ; } return new NumberEval ( + d ) ; }
public MoPenBindIsvRequest ( ) { super ( "MoPen" , "2018-02-11" , "MoPenBindIsv" , "mopen" ) ; setProtocol ( ProtocolType . HTTPS ) ; setMethod ( MethodType . POST ) ; }
public MoPenBindIsvRequest ( ) : base ( "MoPen" , "2018-02-11" , "MoPenBindIsv" , "mopen" , "openAPI" ) { Protocol = ProtocolType . HTTPS ; Method = MethodType . POST ; }
public AssociateIpGroupsResult associateIpGroups ( AssociateIpGroupsRequest request ) { request = beforeClientExecution ( request ) ; return executeAssociateIpGroups ( request ) ; }
public virtual AssociateIpGroupsResponse AssociateIpGroups ( AssociateIpGroupsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = AssociateIpGroupsRequestMarshaller . Instance ; options . ResponseUnmarshaller = AssociateIpGroupsResponseUnmarshaller . Instance ; return Invoke < AssociateIpGroupsResponse > ( request , options ) ; }
public TestEventPatternResult testEventPattern ( TestEventPatternRequest request ) { request = beforeClientExecution ( request ) ; return executeTestEventPattern ( request ) ; }
public virtual TestEventPatternResponse TestEventPattern ( TestEventPatternRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = TestEventPatternRequestMarshaller . Instance ; options . ResponseUnmarshaller = TestEventPatternResponseUnmarshaller . Instance ; return Invoke < TestEventPatternResponse > ( request , options ) ; }
public LockFailedException ( File file , String message ) { super ( message ) ; this . file = file ; }
public LockFailedException ( FilePath file , string message ) : base ( message ) { this . file = file ; }