question
stringlengths
33
1.59k
target
stringlengths
33
1.58k
public LinkedDataRecord getDataCategoryLabels ( ) { return dataCategoryLabels ; }
public BRAIRecord GetDataCategoryLabels ( ) { return dataCategoryLabels ; }
public void setStringValue ( String value ) { collator . getRawCollationKey ( value , key ) ; bytes . bytes = key . bytes ; bytes . offset = 0 ; bytes . length = key . size ; }
public override void SetStringValue ( string value ) { key = collator . GetRawCollationKey ( value , key ) ; bytes . Bytes = key . Bytes ; bytes . Offset = 0 ; bytes . Length = key . Length ; }
public String toString ( ) { return "FacetField(dim=" + dim + " path=" + Arrays . toString ( path ) + ")" ; }
public override string ToString ( ) { return "FacetField(dim=" + Dim + " path=[" + Arrays . ToString ( Path ) + "])" ; }
public static long gcd ( long a , long b ) { a = Math . abs ( a ) ; b = Math . abs ( b ) ; if ( a == 0 ) { return b ; } else if ( b == 0 ) { return a ; } final int commonTrailingZeros = Long . numberOfTrailingZeros ( a | b ) ; a >>>= Long . numberOfTrailingZeros ( a ) ; while ( true ) { b >>>= Long . numberOfTrailingZeros ( b ) ; if ( a == b ) { break ; } else if ( a > b || a == Long . MIN_VALUE ) { final long tmp = a ; a = b ; b = tmp ; } if ( a == 1 ) { break ; } b -= a ; } return a << commonTrailingZeros ; }
public static long Gcd ( long a , long b ) { a = a < 0 ? - a : a ; b = b < 0 ? - b : b ; if ( a == 0 ) { return b ; } else if ( b == 0 ) { return a ; } int commonTrailingZeros = ( a | b ) . TrailingZeroCount ( ) ; a = ( long ) ( ( ulong ) a > > a . TrailingZeroCount ( ) ) ; while ( true ) { b = ( long ) ( ( ulong ) b > > b . TrailingZeroCount ( ) ) ; if ( a == b ) { break ; } else if ( a > b || a == long . MinValue ) { long tmp = a ; a = b ; b = tmp ; } if ( a == 1 ) { break ; } b -= a ; } return a << commonTrailingZeros ; }
public BatchRefUpdate disableRefLog ( ) { refLogMessage = null ; refLogIncludeResult = false ; return this ; }
public virtual NGit . BatchRefUpdate DisableRefLog ( ) { refLogMessage = null ; refLogIncludeResult = false ; return this ; }
public static int compareTo ( Ref o1 , String o2 ) { return o1 . getName ( ) . compareTo ( o2 ) ; }
public static int CompareTo ( Ref o1 , string o2 ) { return Sharpen . Runtime . CompareOrdinal ( o1 . GetName ( ) , o2 ) ; }
public CreateLoadBalancerTlsCertificateResult createLoadBalancerTlsCertificate ( CreateLoadBalancerTlsCertificateRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateLoadBalancerTlsCertificate ( request ) ; }
public virtual CreateLoadBalancerTlsCertificateResponse CreateLoadBalancerTlsCertificate ( CreateLoadBalancerTlsCertificateRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateLoadBalancerTlsCertificateRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateLoadBalancerTlsCertificateResponseUnmarshaller . Instance ; return Invoke < CreateLoadBalancerTlsCertificateResponse > ( request , options ) ; }
public GetDocumentationPartsResult getDocumentationParts ( GetDocumentationPartsRequest request ) { request = beforeClientExecution ( request ) ; return executeGetDocumentationParts ( request ) ; }
public virtual GetDocumentationPartsResponse GetDocumentationParts ( GetDocumentationPartsRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetDocumentationPartsRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetDocumentationPartsResponseUnmarshaller . Instance ; return Invoke < GetDocumentationPartsResponse > ( request , options ) ; }
public Iterator < RevFlag > iterator ( ) { final Iterator < RevFlag > i = active . iterator ( ) ; return new Iterator < RevFlag > ( ) ; }
public override Sharpen . Iterator < RevFlag > Iterator ( ) { Sharpen . Iterator < RevFlag > i = active . Iterator ( ) ; return new _Iterator_132 ( this , i ) ; }
public boolean equals ( Object o ) { if ( this == o ) return true ; if ( ! ( o instanceof Sort ) ) return false ; final Sort other = ( Sort ) o ; return Arrays . equals ( this . fields , other . fields ) ; }
public override bool Equals ( object o ) { if ( this == o ) { return true ; } if ( ! ( o is Sort ) ) { return false ; } Sort other = ( Sort ) o ; return Arrays . Equals ( this . fields , other . fields ) ; }
public boolean equals ( final Object o ) { boolean rval = false ; if ( ( o != null ) && ( o . getClass ( ) == this . getClass ( ) ) ) { if ( this == o ) { rval = true ; } else { POIFSDocumentPath path = ( POIFSDocumentPath ) o ; if ( path . components . length == this . components . length ) { rval = true ; for ( int j = 0 ; j < this . components . length ; j ++ ) { if ( ! path . components [ j ] . equals ( this . components [ j ] ) ) { rval = false ; break ; } } } } } return rval ; }
public override bool Equals ( object o ) { bool flag = false ; if ( ( o != null ) && ( o . GetType ( ) == this . GetType ( ) ) ) { if ( this == o ) { flag = true ; } else { POIFSDocumentPath path = ( POIFSDocumentPath ) o ; if ( path . components . Length == this . components . Length ) { flag = true ; for ( int i = 0 ; i < this . components . Length ; i ++ ) { if ( ! path . components [ i ] . Equals ( this . components [ i ] ) ) { flag = false ; break ; } } } } } return flag ; }
public SearchImageRequest ( ) { super ( "ImageSearch" , "2019-03-25" , "SearchImage" , "imagesearch" ) ; setUriPattern ( "/v2/image/search" ) ; setMethod ( MethodType . POST ) ; }
public SearchImageRequest ( ) : base ( "ImageSearch" , "2019-03-25" , "SearchImage" , "imagesearch" , "openAPI" ) { UriPattern = "/v2/image/search" ; Method = MethodType . POST ; }
public RevFlagSet ( ) { active = new ArrayList < > ( ) ; }
public RevFlagSet ( ) { active = new AList < RevFlag > ( ) ; }
public BatchDisassociateUserStackResult batchDisassociateUserStack ( BatchDisassociateUserStackRequest request ) { request = beforeClientExecution ( request ) ; return executeBatchDisassociateUserStack ( request ) ; }
public virtual BatchDisassociateUserStackResponse BatchDisassociateUserStack ( BatchDisassociateUserStackRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = BatchDisassociateUserStackRequestMarshaller . Instance ; options . ResponseUnmarshaller = BatchDisassociateUserStackResponseUnmarshaller . Instance ; return Invoke < BatchDisassociateUserStackResponse > ( request , options ) ; }
public FloatBuffer get ( float [ ] dst ) { return get ( dst , 0 , dst . length ) ; }
public virtual java . nio . FloatBuffer get ( float [ ] dst ) { return get ( dst , 0 , dst . Length ) ; }
public String toString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( "[ftEnd]\n" ) ; buffer . append ( "[/ftEnd]\n" ) ; return buffer . toString ( ) ; }
public override String ToString ( ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( "[ftEnd]\n" ) ; buffer . Append ( "[/ftEnd]\n" ) ; return buffer . ToString ( ) ; }
public InputStreamDataInput ( InputStream is ) { this . is = is ; }
public InputStreamDataInput ( Stream @ is ) { this . _reader = new BinaryReader ( @ is ) ; }
public static char [ ] grow ( char [ ] array ) { return grow ( array , 1 + array . length ) ; }
public static char [ ] Grow ( char [ ] array ) { return Grow ( array , 1 + array . Length ) ; }
public void showMessage ( String msg ) { provider . get ( uri , new CredentialItem . InformationalMessage ( msg ) ) ; }
public virtual void ShowMessage ( string msg ) { provider . Get ( uri , new CredentialItem . InformationalMessage ( msg ) ) ; }
public DeregisterTypeResult deregisterType ( DeregisterTypeRequest request ) { request = beforeClientExecution ( request ) ; return executeDeregisterType ( request ) ; }
public virtual DeregisterTypeResponse DeregisterType ( DeregisterTypeRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeregisterTypeRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeregisterTypeResponseUnmarshaller . Instance ; return Invoke < DeregisterTypeResponse > ( request , options ) ; }
public final void add ( RevFlagSet set ) { flags |= set . mask ; }
public void Add ( RevFlag flag ) { flags |= flag . mask ; }
public IntList ( final IntList list ) { this ( list . _array . length ) ; System . arraycopy ( list . _array , 0 , _array , 0 , _array . length ) ; _limit = list . _limit ; }
public IntList ( IntList list ) : this ( list . _array . Length ) { Array . Copy ( list . _array , 0 , _array , 0 , _array . Length ) ; _limit = list . _limit ; }
public int convertFromExternSheetIndex ( int externSheetIndex ) { return _iBook . getFirstSheetIndexFromExternSheetIndex ( externSheetIndex ) ; }
public int ConvertFromExternSheetIndex ( int externSheetIndex ) { return _iBook . GetFirstSheetIndexFromExternSheetIndex ( externSheetIndex ) ; }
public ExternalSheet getExternalSheet ( String firstSheetName , String lastSheetName , int externalWorkbookNumber ) { throw new IllegalStateException ( "XSSF-style external references are not supported for HSSF" ) ; }
public ExternalSheet GetExternalSheet ( String firstSheetName , string lastSheetName , int externalWorkbookNumber ) { throw new InvalidOperationException ( "XSSF-style external references are not supported for HSSF" ) ; }
public CellRangeAddress8Bit copy ( ) { return new CellRangeAddress8Bit ( getFirstRow ( ) , getLastRow ( ) , getFirstColumn ( ) , getLastColumn ( ) ) ; }
public CellRangeAddress8Bit Copy ( ) { return new CellRangeAddress8Bit ( FirstRow , LastRow , FirstColumn , LastColumn ) ; }
public boolean equals ( Object obj ) { if ( this == obj ) return true ; if ( obj == null ) return false ; if ( obj instanceof Document == false ) return false ; Document other = ( Document ) obj ; if ( other . getBytes ( ) == null ^ this . getBytes ( ) == null ) return false ; if ( other . getBytes ( ) != null && other . getBytes ( ) . equals ( this . getBytes ( ) ) == false ) return false ; if ( other . getS3Object ( ) == null ^ this . getS3Object ( ) == null ) return false ; if ( other . getS3Object ( ) != null && other . getS3Object ( ) . equals ( this . getS3Object ( ) ) == false ) return false ; return true ; }
public override bool Equals ( object obj ) { var otherDocument = obj as Document ; if ( otherDocument == null ) return false ; if ( Keys . Count != otherDocument . Keys . Count ) return false ; foreach ( var key in Keys ) { if ( ! otherDocument . ContainsKey ( key ) ) return false ; var a = this [ key ] ; var b = otherDocument [ key ] ; if ( ! a . Equals ( b ) ) return false ; } return true ; }
public ListMembersResult listMembers ( ListMembersRequest request ) { request = beforeClientExecution ( request ) ; return executeListMembers ( request ) ; }
public virtual ListMembersResponse ListMembers ( ListMembersRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListMembersRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListMembersResponseUnmarshaller . Instance ; return Invoke < ListMembersResponse > ( request , options ) ; }
public String toString ( ) { final StringBuilder s = new StringBuilder ( ) ; for ( Block q = head ; q != null ; q = q . next ) { for ( int i = q . headIndex ; i < q . tailIndex ; i ++ ) describe ( s , q . commits [ i ] ) ; } return s . toString ( ) ; }
public override string ToString ( ) { StringBuilder s = new StringBuilder ( ) ; for ( BlockRevQueue . Block q = head ; q != null ; q = q . next ) { for ( int i = q . headIndex ; i < q . tailIndex ; i ++ ) { Describe ( s , q . commits [ i ] ) ; } } return s . ToString ( ) ; }
public void delete ( ) { if ( ! deleted ) { deleted = true ; commitsToDelete . add ( this ) ; } }
public override void Delete ( ) { if ( ! deleted ) { deleted = true ; commitsToDelete . Add ( this ) ; } }
public final boolean isWritten ( ) { return 1 < getOffset ( ) ; }
public virtual bool IsWritten ( ) { return GetOffset ( ) != 0 ; }
public static Cell translateUnicodeValues ( Cell cell ) { String s = cell . getRichStringCellValue ( ) . getString ( ) ; boolean foundUnicode = false ; String lowerCaseStr = s . toLowerCase ( Locale . ROOT ) ; for ( UnicodeMapping entry : unicodeMappings ) { String key = entry . entityName ; if ( lowerCaseStr . contains ( key ) ) { s = s . replaceAll ( key , entry . resolvedValue ) ; foundUnicode = true ; } } if ( foundUnicode ) { cell . setCellValue ( cell . getRow ( ) . getSheet ( ) . getWorkbook ( ) . getCreationHelper ( ) . createRichTextString ( s ) ) ; } return cell ; }
public static ICell TranslateUnicodeValues ( ICell cell ) { String s = cell . RichStringCellValue . String ; bool foundUnicode = false ; String lowerCaseStr = s . ToLower ( ) ; for ( int i = 0 ; i < unicodeMappings . Length ; i ++ ) { UnicodeMapping entry = unicodeMappings [ i ] ; String key = entry . entityName ; if ( lowerCaseStr . IndexOf ( key , StringComparison . Ordinal ) != - 1 ) { s = s . Replace ( key , entry . resolvedValue ) ; foundUnicode = true ; } } if ( foundUnicode ) { cell . SetCellValue ( cell . Row . Sheet . Workbook . GetCreationHelper ( ) . CreateRichTextString ( s ) ) ; } return cell ; }
public DeleteCampaignResult deleteCampaign ( DeleteCampaignRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteCampaign ( request ) ; }
public virtual DeleteCampaignResponse DeleteCampaign ( DeleteCampaignRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteCampaignRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteCampaignResponseUnmarshaller . Instance ; return Invoke < DeleteCampaignResponse > ( request , options ) ; }
public String toFormulaString ( ) { return formatReferenceAsString ( ) ; }
public override String ToFormulaString ( ) { return FormatReferenceAsString ( ) ; }
public ValueEval evaluate ( int srcRowIndex , int srcColumnIndex , ValueEval arg0 , ValueEval arg1 , ValueEval arg2 ) { TwoDEval reference = convertFirstArg ( arg0 ) ; try { int columnIx = resolveIndexArg ( arg2 , srcRowIndex , srcColumnIndex ) ; int rowIx = resolveIndexArg ( arg1 , srcRowIndex , srcColumnIndex ) ; return getValueFromArea ( reference , rowIx , columnIx ) ; } catch ( EvaluationException e ) { return e . getErrorEval ( ) ; } }
public ValueEval Evaluate ( int srcRowIndex , int srcColumnIndex , ValueEval arg0 , ValueEval arg1 , ValueEval arg2 ) { TwoDEval reference = ConvertFirstArg ( arg0 ) ; try { int columnIx = ResolveIndexArg ( arg2 , srcRowIndex , srcColumnIndex ) ; int rowIx = ResolveIndexArg ( arg1 , srcRowIndex , srcColumnIndex ) ; return GetValueFromArea ( reference , rowIx , columnIx ) ; } catch ( EvaluationException e ) { return e . GetErrorEval ( ) ; } }
public URISyntaxException ( String input , String reason ) { super ( reason ) ; if ( input == null || reason == null ) { throw new NullPointerException ( ) ; } this . input = input ; index = - 1 ; }
public URISyntaxException ( string input , string reason ) : base ( reason ) { if ( input == null || reason == null ) { throw new System . ArgumentNullException ( ) ; } this . input = input ; index = - 1 ; }
public int append ( BytesRef bytes ) { if ( lastElement >= offsets . length ) { int oldLen = offsets . length ; offsets = ArrayUtil . grow ( offsets , offsets . length + 1 ) ; bytesUsed . addAndGet ( ( offsets . length - oldLen ) * Integer . BYTES ) ; } pool . append ( bytes ) ; offsets [ lastElement ++ ] = currentOffset ; currentOffset += bytes . length ; return lastElement - 1 ; }
public int Append ( BytesRef bytes ) { if ( lastElement >= offsets . Length ) { int oldLen = offsets . Length ; offsets = ArrayUtil . Grow ( offsets , offsets . Length + 1 ) ; bytesUsed . AddAndGet ( ( offsets . Length - oldLen ) * RamUsageEstimator . NUM_BYTES_INT32 ) ; } pool . Append ( bytes ) ; offsets [ lastElement ++ ] = currentOffset ; currentOffset += bytes . Length ; return lastElement - 1 ; }
public EscherAggregate ( boolean createDefaultTree ) { if ( createDefaultTree ) { buildBaseTree ( ) ; } }
public EscherAggregate ( bool createDefaultTree ) { if ( createDefaultTree ) { BuildBaseTree ( ) ; } }
public NumericDocValuesField ( String name , Long value ) { super ( name , TYPE ) ; fieldsData = value ; }
public NumericDocValuesField ( string name , long value ) : base ( name , TYPE ) { FieldsData = new Int64 ( value ) ; }
public void serialize ( LittleEndianOutput out ) { out . writeShort ( field_1_index ) ; }
public override void Serialize ( ILittleEndianOutput out1 ) { out1 . WriteShort ( field_1_index ) ; }
public AssociateDeviceWithNetworkProfileResult associateDeviceWithNetworkProfile ( AssociateDeviceWithNetworkProfileRequest request ) { request = beforeClientExecution ( request ) ; return executeAssociateDeviceWithNetworkProfile ( request ) ; }
public virtual AssociateDeviceWithNetworkProfileResponse AssociateDeviceWithNetworkProfile ( AssociateDeviceWithNetworkProfileRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = AssociateDeviceWithNetworkProfileRequestMarshaller . Instance ; options . ResponseUnmarshaller = AssociateDeviceWithNetworkProfileResponseUnmarshaller . Instance ; return Invoke < AssociateDeviceWithNetworkProfileResponse > ( request , options ) ; }
public void add ( DirCacheEntry newEntry ) { if ( newEntry . getRawMode ( ) == 0 ) throw new IllegalArgumentException ( MessageFormat . format ( JGitText . get ( ) . fileModeNotSetForPath , newEntry . getPathString ( ) ) ) ; beforeAdd ( newEntry ) ; fastAdd ( newEntry ) ; }
public virtual void Add ( DirCacheEntry newEntry ) { if ( newEntry . RawMode == 0 ) { throw new ArgumentException ( MessageFormat . Format ( JGitText . Get ( ) . fileModeNotSetForPath , newEntry . PathString ) ) ; } BeforeAdd ( newEntry ) ; FastAdd ( newEntry ) ; }
public ValueEval getEvalForCell ( int rowIndex , int columnIndex ) { return _bookEvaluator . evaluateReference ( getSheet ( ) , _sheetIndex , rowIndex , columnIndex , _tracker ) ; }
public ValueEval GetEvalForCell ( int rowIndex , int columnIndex ) { return _bookEvaluator . EvaluateReference ( this . Sheet , _sheetIndex , rowIndex , columnIndex , _tracker ) ; }
public static RevFilter create ( String pattern ) { if ( pattern . length ( ) == 0 ) throw new IllegalArgumentException ( JGitText . get ( ) . cannotMatchOnEmptyString ) ; if ( SubStringRevFilter . safe ( pattern ) ) return new SubStringSearch ( pattern ) ; return new PatternSearch ( pattern ) ; }
public static RevFilter Create ( string pattern ) { if ( pattern . Length == 0 ) { throw new ArgumentException ( JGitText . Get ( ) . cannotMatchOnEmptyString ) ; } if ( SubStringRevFilter . Safe ( pattern ) ) { return new MessageRevFilter . SubStringSearch ( pattern ) ; } return new MessageRevFilter . PatternSearch ( pattern ) ; }
public ObjectId getResultTreeId ( ) { return sourceTrees [ treeIndex ] ; }
public override ObjectId GetResultTreeId ( ) { return sourceTrees [ treeIndex ] ; }
public MoPenQueryCanvasRequest ( ) { super ( "MoPen" , "2018-02-11" , "MoPenQueryCanvas" , "mopen" ) ; setProtocol ( ProtocolType . HTTPS ) ; setMethod ( MethodType . POST ) ; }
public MoPenQueryCanvasRequest ( ) : base ( "MoPen" , "2018-02-11" , "MoPenQueryCanvas" , "mopen" , "openAPI" ) { Protocol = ProtocolType . HTTPS ; Method = MethodType . POST ; }
public DescribeTrialResult describeTrial ( DescribeTrialRequest request ) { request = beforeClientExecution ( request ) ; return executeDescribeTrial ( request ) ; }
public virtual DescribeTrialResponse DescribeTrial ( DescribeTrialRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DescribeTrialRequestMarshaller . Instance ; options . ResponseUnmarshaller = DescribeTrialResponseUnmarshaller . Instance ; return Invoke < DescribeTrialResponse > ( request , options ) ; }
public DeleteCommentResult deleteComment ( DeleteCommentRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteComment ( request ) ; }
public virtual DeleteCommentResponse DeleteComment ( DeleteCommentRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteCommentRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteCommentResponseUnmarshaller . Instance ; return Invoke < DeleteCommentResponse > ( request , options ) ; }
public DeleteCacheSecurityGroupRequest ( String cacheSecurityGroupName ) { setCacheSecurityGroupName ( cacheSecurityGroupName ) ; }
public DeleteCacheSecurityGroupRequest ( string cacheSecurityGroupName ) { _cacheSecurityGroupName = cacheSecurityGroupName ; }
public ParseTreePattern ( ParseTreePatternMatcher matcher , String pattern , int patternRuleIndex , ParseTree patternTree ) { this . matcher = matcher ; this . patternRuleIndex = patternRuleIndex ; this . pattern = pattern ; this . patternTree = patternTree ; }
public ParseTreePattern ( ParseTreePatternMatcher matcher , string pattern , int patternRuleIndex , IParseTree patternTree ) { this . matcher = matcher ; this . patternRuleIndex = patternRuleIndex ; this . pattern = pattern ; this . patternTree = patternTree ; }
public String toFormulaString ( String [ ] operands ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( operands [ 0 ] ) ; buffer . append ( PERCENT ) ; return buffer . toString ( ) ; }
public override String ToFormulaString ( String [ ] operands ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . Append ( operands [ 0 ] ) ; buffer . Append ( PERCENT ) ; return buffer . ToString ( ) ; }
public GetVaultLockResult getVaultLock ( GetVaultLockRequest request ) { request = beforeClientExecution ( request ) ; return executeGetVaultLock ( request ) ; }
public virtual GetVaultLockResponse GetVaultLock ( GetVaultLockRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetVaultLockRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetVaultLockResponseUnmarshaller . Instance ; return Invoke < GetVaultLockResponse > ( request , options ) ; }
public DecreaseStreamRetentionPeriodResult decreaseStreamRetentionPeriod ( DecreaseStreamRetentionPeriodRequest request ) { request = beforeClientExecution ( request ) ; return executeDecreaseStreamRetentionPeriod ( request ) ; }
public virtual DecreaseStreamRetentionPeriodResponse DecreaseStreamRetentionPeriod ( DecreaseStreamRetentionPeriodRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DecreaseStreamRetentionPeriodRequestMarshaller . Instance ; options . ResponseUnmarshaller = DecreaseStreamRetentionPeriodResponseUnmarshaller . Instance ; return Invoke < DecreaseStreamRetentionPeriodResponse > ( request , options ) ; }
public void append ( String name , RevTree tree ) { append ( name , TREE , tree ) ; }
public virtual void Append ( string name , RevTree tree ) { Append ( name , FileMode . TREE , tree ) ; }
public String getSessionToken ( ) { return sessionToken ; }
public string GetSessionToken ( ) { return sessionToken ; }
public ListIterator < E > listIterator ( int index ) { Object [ ] snapshot = elements ; if ( index < 0 || index > snapshot . length ) { throw new IndexOutOfBoundsException ( "index=" + index + ", length=" + snapshot . length ) ; } CowIterator < E > result = new CowIterator < E > ( snapshot , 0 , snapshot . length ) ; result . index = index ; return result ; }
public virtual java . util . ListIterator < E > listIterator ( int index ) { object [ ] snapshot = elements ; if ( index < 0 || index > snapshot . Length ) { throw new System . IndexOutOfRangeException ( "index=" + index + ", length=" + snapshot . Length ) ; } java . util . concurrent . CopyOnWriteArrayList . CowIterator < E > result = new java . util . concurrent . CopyOnWriteArrayList . CowIterator < E > ( snapshot , 0 , snapshot . Length ) ; result . index = index ; return result ; }
public synchronized Span [ ] getTerms ( String sentence ) { if ( tokenizer == null ) { Span [ ] span1 = new Span [ 1 ] ; span1 [ 0 ] = new Span ( 0 , sentence . length ( ) ) ; return span1 ; } return tokenizer . tokenizePos ( sentence ) ; }
public virtual Span [ ] GetTerms ( string sentence ) { lock ( this ) { if ( tokenizer == null ) { Span [ ] span1 = new Span [ 1 ] ; span1 [ 0 ] = new Span ( 0 , sentence . Length ) ; return span1 ; } return tokenizer . tokenizePos ( sentence ) ; } }
public DeleteRelationalDatabaseSnapshotResult deleteRelationalDatabaseSnapshot ( DeleteRelationalDatabaseSnapshotRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteRelationalDatabaseSnapshot ( request ) ; }
public virtual DeleteRelationalDatabaseSnapshotResponse DeleteRelationalDatabaseSnapshot ( DeleteRelationalDatabaseSnapshotRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = DeleteRelationalDatabaseSnapshotRequestMarshaller . Instance ; options . ResponseUnmarshaller = DeleteRelationalDatabaseSnapshotResponseUnmarshaller . Instance ; return Invoke < DeleteRelationalDatabaseSnapshotResponse > ( request , options ) ; }
public CheckDomainAvailabilityResult checkDomainAvailability ( CheckDomainAvailabilityRequest request ) { request = beforeClientExecution ( request ) ; return executeCheckDomainAvailability ( request ) ; }
public virtual CheckDomainAvailabilityResponse CheckDomainAvailability ( CheckDomainAvailabilityRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CheckDomainAvailabilityRequestMarshaller . Instance ; options . ResponseUnmarshaller = CheckDomainAvailabilityResponseUnmarshaller . Instance ; return Invoke < CheckDomainAvailabilityResponse > ( request , options ) ; }
public DeleteVaultRequest ( String vaultName ) { setVaultName ( vaultName ) ; }
public DeleteVaultRequest ( string vaultName ) { _vaultName = vaultName ; }
public InputStream getInputStream ( ) { return rawIn ; }
public virtual InputStream GetInputStream ( ) { return rawIn ; }
public final byte [ ] getBytes ( int sizeLimit ) throws LargeObjectException , MissingObjectException , IOException { byte [ ] cached = getCachedBytes ( sizeLimit ) ; try { return cloneArray ( cached ) ; } catch ( OutOfMemoryError tooBig ) { throw new LargeObjectException . OutOfMemory ( tooBig ) ; } }
public byte [ ] GetBytes ( int sizeLimit ) { byte [ ] cached = GetCachedBytes ( sizeLimit ) ; try { return CloneArray ( cached ) ; } catch ( OutOfMemoryException tooBig ) { throw new LargeObjectException . OutOfMemory ( tooBig ) ; } }
public HSSFSimpleShape createSimpleShape ( HSSFClientAnchor anchor ) { HSSFSimpleShape shape = new HSSFSimpleShape ( null , anchor ) ; addShape ( shape ) ; onCreate ( shape ) ; return shape ; }
public HSSFSimpleShape CreateSimpleShape ( HSSFClientAnchor anchor ) { HSSFSimpleShape shape = new HSSFSimpleShape ( null , anchor ) ; AddShape ( shape ) ; OnCreate ( shape ) ; return shape ; }
public synchronized V remove ( Object key ) { int hash = secondaryHash ( key . hashCode ( ) ) ; HashtableEntry < K , V > [ ] tab = table ; int index = hash & ( tab . length - 1 ) ; for ( HashtableEntry < K , V > e = tab [ index ] , prev = null ; e != null ; prev = e , e = e . next ) { if ( e . hash == hash && key . equals ( e . key ) ) { if ( prev == null ) { tab [ index ] = e . next ; } else { prev . next = e . next ; } modCount ++ ; size -- ; return e . value ; } } return null ; }
public override V remove ( object key ) { lock ( this ) { int hash = secondaryHash ( key . GetHashCode ( ) ) ; java . util . Hashtable . HashtableEntry < K , V > [ ] tab = table ; int index = hash & ( tab . Length - 1 ) ; { java . util . Hashtable . HashtableEntry < K , V > e = tab [ index ] ; java . util . Hashtable . HashtableEntry < K , V > prev = null ; for ( ; e != null ; prev = e , e = e . next ) { if ( e . hash == hash && key . Equals ( e . key ) ) { if ( prev == null ) { tab [ index ] = e . next ; } else { prev . next = e . next ; } modCount ++ ; _size -- ; return e . value ; } } } return default ( V ) ; } }
public final ValueEval getValue ( int sheetIndex , int row , int col ) { return getRelativeValue ( sheetIndex , row , col ) ; }
public ValueEval GetValue ( int sheetIndex , int row , int col ) { return GetRelativeValue ( sheetIndex , row , col ) ; }
public SetIdentityNotificationTopicResult setIdentityNotificationTopic ( SetIdentityNotificationTopicRequest request ) { request = beforeClientExecution ( request ) ; return executeSetIdentityNotificationTopic ( request ) ; }
public virtual SetIdentityNotificationTopicResponse SetIdentityNotificationTopic ( SetIdentityNotificationTopicRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = SetIdentityNotificationTopicRequestMarshaller . Instance ; options . ResponseUnmarshaller = SetIdentityNotificationTopicResponseUnmarshaller . Instance ; return Invoke < SetIdentityNotificationTopicResponse > ( request , options ) ; }
public void serialize ( LittleEndianOutput out ) { out . write ( _rawData ) ; }
public override void Serialize ( ILittleEndianOutput out1 ) { out1 . Write ( _rawData ) ; }
public BlockJoinWeight ( Query joinQuery , Weight childWeight , BitSetProducer parentsFilter , ScoreMode scoreMode ) { super ( joinQuery , childWeight ) ; this . parentsFilter = parentsFilter ; this . scoreMode = scoreMode ; }
public BlockJoinWeight ( Query joinQuery , Weight childWeight , Filter parentsFilter , ScoreMode scoreMode ) : base ( ) { this . joinQuery = joinQuery ; this . childWeight = childWeight ; this . parentsFilter = parentsFilter ; this . scoreMode = scoreMode ; }
public Builder ( ) { this . field = null ; this . termArrays = new ArrayList < > ( ) ; this . positions = new ArrayList < > ( ) ; this . slop = 0 ; }
public Builder ( ) { data = new GrowableByteArrayDataOutput ( 128 ) ; bufferSize = 0 ; previousDoc = - 1 ; indexInterval = 2 ; cardinality = 0 ; numBlocks = 0 ; }
public CreateGameSessionQueueResult createGameSessionQueue ( CreateGameSessionQueueRequest request ) { request = beforeClientExecution ( request ) ; return executeCreateGameSessionQueue ( request ) ; }
public virtual CreateGameSessionQueueResponse CreateGameSessionQueue ( CreateGameSessionQueueRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = CreateGameSessionQueueRequestMarshaller . Instance ; options . ResponseUnmarshaller = CreateGameSessionQueueResponseUnmarshaller . Instance ; return Invoke < CreateGameSessionQueueResponse > ( request , options ) ; }
public DescribeMetricCollectionTypesResult describeMetricCollectionTypes ( ) { return describeMetricCollectionTypes ( new DescribeMetricCollectionTypesRequest ( ) ) ; }
public virtual DescribeMetricCollectionTypesResponse DescribeMetricCollectionTypes ( ) { return DescribeMetricCollectionTypes ( new DescribeMetricCollectionTypesRequest ( ) ) ; }
@ Override public boolean contains ( Object o ) { if ( o instanceof Entry ) { Entry < ? > entry = ( Entry < ? > ) o ; int count = count ( entry . getElement ( ) ) ; return ( count == entry . getCount ( ) ) && ( count > 0 ) ; } return false ; }
public override bool contains ( 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 . containsMapping ( e . getKey ( ) , e . getValue ( ) ) ; }
public synchronized int get ( FacetLabel categoryPath ) { Integer res = cache . get ( categoryPath ) ; if ( res == null ) { return - 1 ; } return res . intValue ( ) ; }
public virtual int Get ( FacetLabel categoryPath ) { lock ( this ) { int result ; if ( ! cache . TryGetValue ( categoryPath , out result ) ) { return - 1 ; } return result ; } }
@ Override public boolean containsKey ( Object key ) { if ( key == null ) { return entryForNullKey != null ; } int hash = key . hashCode ( ) ; hash ^= ( hash > > > 20 ) ^ ( hash > > > 12 ) ; hash ^= ( hash > > > 7 ) ^ ( hash > > > 4 ) ; HashMapEntry < K , V > [ ] tab = table ; for ( HashMapEntry < K , V > e = tab [ hash & ( tab . length - 1 ) ] ; e != null ; e = e . next ) { K eKey = e . key ; if ( eKey == key || ( e . hash == hash && key . equals ( eKey ) ) ) { return true ; } } return false ; }
public override bool containsKey ( object key ) { if ( key == null ) { return entryForNullKey != null ; } int hash = key . GetHashCode ( ) ; hash ^= ( ( int ) ( ( ( uint ) hash ) > > 20 ) ) ^ ( ( int ) ( ( ( uint ) hash ) > > 12 ) ) ; hash ^= ( ( int ) ( ( ( uint ) hash ) > > 7 ) ) ^ ( ( int ) ( ( ( uint ) hash ) > > 4 ) ) ; java . util . HashMap . HashMapEntry < K , V > [ ] tab = table ; { for ( java . util . HashMap . HashMapEntry < K , V > e = tab [ hash & ( tab . Length - 1 ) ] ; e != null ; e = e . next ) { K eKey = e . key ; if ( Sharpen . Util . Equals ( eKey , key ) || ( e . hash == hash && key . Equals ( eKey ) ) ) { return true ; } } } return false ; }
public boolean equals ( Object obj ) { if ( obj instanceof Point ) { Point that = ( Point ) obj ; return this . x == that . x && this . y == that . y ; } return false ; }
public override bool Equals ( object o ) { if ( o is android . graphics . Point ) { android . graphics . Point p = ( android . graphics . Point ) o ; return this . x == p . x && this . y == p . y ; } return false ; }
public void message ( String component , String message ) { assert false : "message() should not be called when isEnabled returns false" ; }
public override void Message ( string component , string message ) { Debug . Assert ( false , "message() should not be called when isEnabled returns false" ) ; }
public ListWorkerBlocksResult listWorkerBlocks ( ListWorkerBlocksRequest request ) { request = beforeClientExecution ( request ) ; return executeListWorkerBlocks ( request ) ; }
public virtual ListWorkerBlocksResponse ListWorkerBlocks ( ListWorkerBlocksRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListWorkerBlocksRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListWorkerBlocksResponseUnmarshaller . Instance ; return Invoke < ListWorkerBlocksResponse > ( request , options ) ; }
public ListProvisionedCapacityResult listProvisionedCapacity ( ListProvisionedCapacityRequest request ) { request = beforeClientExecution ( request ) ; return executeListProvisionedCapacity ( request ) ; }
public virtual ListProvisionedCapacityResponse ListProvisionedCapacity ( ListProvisionedCapacityRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListProvisionedCapacityRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListProvisionedCapacityResponseUnmarshaller . Instance ; return Invoke < ListProvisionedCapacityResponse > ( request , options ) ; }
@ Override public boolean contains ( Object value ) { return containsValue ( value ) ; }
public override bool contains ( object o ) { return this . _enclosing . containsValue ( o ) ; }
public void exitEveryRule ( ParserRuleContext ctx ) { if ( ctx . children instanceof ArrayList ) { ( ( ArrayList < ? > ) ctx . children ) . trimToSize ( ) ; } }
public virtual void ExitEveryRule ( ParserRuleContext ctx ) { if ( ctx . children is List < IParseTree > ) { ( ( List < IParseTree > ) ctx . children ) . TrimExcess ( ) ; } }
public int lookup ( char [ ] text , int offset , int len ) { if ( ! characterDefinition . isGroup ( text [ offset ] ) ) { return 1 ; } byte characterIdOfFirstCharacter = characterDefinition . getCharacterClass ( text [ offset ] ) ; int length = 1 ; for ( int i = 1 ; i < len ; i ++ ) { if ( characterIdOfFirstCharacter == characterDefinition . getCharacterClass ( text [ offset + i ] ) ) { length ++ ; } else { break ; } } return length ; }
public virtual int Lookup ( char [ ] text , int offset , int len ) { if ( ! characterDefinition . IsGroup ( text [ offset ] ) ) { return 1 ; } byte characterIdOfFirstCharacter = characterDefinition . GetCharacterClass ( text [ offset ] ) ; int length = 1 ; for ( int i = 1 ; i < len ; i ++ ) { if ( characterIdOfFirstCharacter == characterDefinition . GetCharacterClass ( text [ offset + i ] ) ) { length ++ ; } else { break ; } } return length ; }
public GetJobOutputResult getJobOutput ( GetJobOutputRequest request ) { request = beforeClientExecution ( request ) ; return executeGetJobOutput ( request ) ; }
public virtual GetJobOutputResponse GetJobOutput ( GetJobOutputRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = GetJobOutputRequestMarshaller . Instance ; options . ResponseUnmarshaller = GetJobOutputResponseUnmarshaller . Instance ; return Invoke < GetJobOutputResponse > ( request , options ) ; }
public void write ( char b [ ] , int off , int len ) { reserve ( len ) ; unsafeWrite ( b , off , len ) ; }
public virtual void Write ( char [ ] b , int off , int len ) { EnsureCapacity ( len ) ; UnsafeWrite ( b , off , len ) ; }
public String toString ( ) { return "weight(" + TermQuery . this + ")" ; }
public override string ToString ( ) { return "weight(" + outerInstance + ")" ; }
public int [ ] grow ( ) { ParallelPostingsArray postingsArray = perField . postingsArray ; final int oldSize = perField . postingsArray . size ; postingsArray = perField . postingsArray = postingsArray . grow ( ) ; perField . newPostingsArray ( ) ; bytesUsed . addAndGet ( ( postingsArray . bytesPerPosting ( ) * ( postingsArray . size - oldSize ) ) ) ; return postingsArray . textStarts ; }
public override int [ ] Grow ( ) { ParallelPostingsArray postingsArray = perField . postingsArray ; int oldSize = perField . postingsArray . size ; postingsArray = perField . postingsArray = postingsArray . Grow ( ) ; bytesUsed . AddAndGet ( ( postingsArray . BytesPerPosting ( ) * ( postingsArray . size - oldSize ) ) ) ; return postingsArray . textStarts ; }
public String toString ( ) { return "'" + text + "'" ; }
public override string ToString ( ) { return ruleName + ":" + bypassTokenType ; }
public boolean isMatch ( ) { if ( heads . isEmpty ( ) ) return false ; final ListIterator < Head > headIterator = heads . listIterator ( heads . size ( ) ) ; while ( headIterator . hasPrevious ( ) ) { final Head head = headIterator . previous ( ) ; if ( head == LastHead . INSTANCE ) { return true ; } } return false ; }
public virtual bool IsMatch ( ) { ListIterator < Head > headIterator = heads . ListIterator ( heads . Count ) ; while ( headIterator . HasPrevious ( ) ) { Head head = headIterator . Previous ( ) ; if ( head == LastHead . INSTANCE ) { return true ; } } return false ; }
public CRNRecord [ ] getCrns ( ) { return _crns . clone ( ) ; }
public CRNRecord [ ] GetCrns ( ) { return ( CRNRecord [ ] ) _crns . Clone ( ) ; }
public String toString ( ) { return "slot:" + slot + " " + super . toString ( ) ; }
public override string ToString ( ) { return "slot:" + Slot + " " + base . ToString ( ) ; }
public int apply ( char s [ ] , int len ) { if ( len < min ) return len ; if ( suffixes != null ) { boolean found = false ; for ( int i = 0 ; i < suffixes . length ; i ++ ) if ( endsWith ( s , len , suffixes [ i ] ) ) { found = true ; break ; } if ( ! found ) return len ; } for ( int i = 0 ; i < rules . length ; i ++ ) { if ( rules [ i ] . matches ( s , len ) ) return rules [ i ] . replace ( s , len ) ; } return len ; }
public virtual int Apply ( char [ ] s , int len ) { if ( len < m_min ) { return len ; } if ( m_suffixes != null ) { bool found = false ; for ( int i = 0 ; i < m_suffixes . Length ; i ++ ) { if ( StemmerUtil . EndsWith ( s , len , m_suffixes [ i ] ) ) { found = true ; break ; } } if ( ! found ) { return len ; } } for ( int i = 0 ; i < m_rules . Length ; i ++ ) { if ( m_rules [ i ] . Matches ( s , len ) ) { return m_rules [ i ] . Replace ( s , len ) ; } } return len ; }
public ModifyInstanceAttributeRequest ( String instanceId , InstanceAttributeName attribute ) { setInstanceId ( instanceId ) ; setAttribute ( attribute . toString ( ) ) ; }
public ModifyInstanceAttributeRequest ( string instanceId , InstanceAttributeName attribute ) { _instanceId = instanceId ; _attribute = attribute ; }
public ListEventTrackersResult listEventTrackers ( ListEventTrackersRequest request ) { request = beforeClientExecution ( request ) ; return executeListEventTrackers ( request ) ; }
public virtual ListEventTrackersResponse ListEventTrackers ( ListEventTrackersRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = ListEventTrackersRequestMarshaller . Instance ; options . ResponseUnmarshaller = ListEventTrackersResponseUnmarshaller . Instance ; return Invoke < ListEventTrackersResponse > ( request , options ) ; }
public boolean isNewFragment ( ) { boolean isNewFrag = offsetAtt . endOffset ( ) >= ( fragmentSize * currentNumFrags ) ; if ( isNewFrag ) { currentNumFrags ++ ; } return isNewFrag ; }
public virtual bool IsNewFragment ( ) { bool isNewFrag = offsetAtt . EndOffset >= ( FragmentSize * currentNumFrags ) ; if ( isNewFrag ) { currentNumFrags ++ ; } return isNewFrag ; }
public BatchGetQueryExecutionResult batchGetQueryExecution ( BatchGetQueryExecutionRequest request ) { request = beforeClientExecution ( request ) ; return executeBatchGetQueryExecution ( request ) ; }
public virtual BatchGetQueryExecutionResponse BatchGetQueryExecution ( BatchGetQueryExecutionRequest request ) { var options = new InvokeOptions ( ) ; options . RequestMarshaller = BatchGetQueryExecutionRequestMarshaller . Instance ; options . ResponseUnmarshaller = BatchGetQueryExecutionResponseUnmarshaller . Instance ; return Invoke < BatchGetQueryExecutionResponse > ( request , options ) ; }
public static double cos ( double a ) { if ( a < 0.0 ) { a = - a ; } if ( a > SIN_COS_MAX_VALUE_FOR_INT_MODULO ) { return Math . cos ( a ) ; } int index = ( int ) ( a * SIN_COS_INDEXER + 0.5 ) ; double delta = ( a - index * SIN_COS_DELTA_HI ) - index * SIN_COS_DELTA_LO ; index &= ( SIN_COS_TABS_SIZE - 2 ) ; double indexCos = cosTab [ index ] ; double indexSin = sinTab [ index ] ; return indexCos + delta * ( - indexSin + delta * ( - indexCos * ONE_DIV_F2 + delta * ( indexSin * ONE_DIV_F3 + delta * indexCos * ONE_DIV_F4 ) ) ) ; }
public static double Cos ( double a ) { if ( a < 0.0 ) { a = - a ; } if ( a > SIN_COS_MAX_VALUE_FOR_INT_MODULO ) { return Math . Cos ( a ) ; } int index = ( int ) ( a * SIN_COS_INDEXER + 0.5 ) ; double delta = ( a - index * SIN_COS_DELTA_HI ) - index * SIN_COS_DELTA_LO ; index &= ( SIN_COS_TABS_SIZE - 2 ) ; double indexCos = cosTab [ index ] ; double indexSin = sinTab [ index ] ; return indexCos + delta * ( - indexSin + delta * ( - indexCos * ONE_DIV_F2 + delta * ( indexSin * ONE_DIV_F3 + delta * indexCos * ONE_DIV_F4 ) ) ) ; }
public ByteBuffer putLong ( long value ) { throw new ReadOnlyBufferException ( ) ; }
public override java . nio . ByteBuffer putLong ( long value ) { throw new System . NotImplementedException ( ) ; }
public String toString ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( getClass ( ) . getName ( ) ) ; sb . append ( " [" ) ; sb . append ( "sheetIx=" ) . append ( getExternSheetIndex ( ) ) ; sb . append ( " ! " ) ; sb . append ( formatReferenceAsString ( ) ) ; sb . append ( "]" ) ; return sb . toString ( ) ; }
public override String ToString ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . Append ( GetType ( ) . Name ) ; sb . Append ( " [" ) ; sb . Append ( "sheetIx=" ) . Append ( ExternSheetIndex ) ; sb . Append ( " ! " ) ; sb . Append ( FormatReferenceAsString ( ) ) ; sb . Append ( "]" ) ; return sb . ToString ( ) ; }
public STSAssumeRoleSessionCredentialsProvider ( AlibabaCloudCredentials longLivedCredentials , String roleArn , IClientProfile clientProfile ) { this ( new StaticCredentialsProvider ( longLivedCredentials ) , roleArn , clientProfile ) ; }
public STSAssumeRoleSessionCredentialsProvider ( AlibabaCloudCredentials longLivedCredentials , string roleArn , IClientProfile clientProfile ) { AlibabaCloudCredentialsProvider longLivedCredentialsProvider = new StaticCredentialsProvider ( longLivedCredentials ) ; this . roleArn = roleArn ; roleSessionName = GetNewRoleSessionName ( ) ; stsClient = new DefaultAcsClient ( clientProfile , longLivedCredentialsProvider ) ; }
public SessionToken ( String id , Revision revision ) { this . id = id ; this . version = revision . getVersion ( ) ; this . sourceFiles = revision . getSourceFiles ( ) ; }
public SessionToken ( string id , IRevision revision ) { Id = id ; Version = revision . Version ; SourceFiles = revision . SourceFiles ; }
public Collection < String > call ( ) throws GitAPIException { checkCallable ( ) ; try ( SubmoduleWalk generator = SubmoduleWalk . forIndex ( repo ) ) { if ( ! paths . isEmpty ( ) ) generator . setFilter ( PathFilterGroup . createFromStrings ( paths ) ) ; StoredConfig config = repo . getConfig ( ) ; List < String > initialized = new ArrayList < > ( ) ; while ( generator . next ( ) ) { if ( generator . getConfigUrl ( ) != null ) continue ; String path = generator . getPath ( ) ; String name = generator . getModuleName ( ) ; String url = generator . getRemoteUrl ( ) ; String update = generator . getModulesUpdate ( ) ; if ( url != null ) config . setString ( ConfigConstants . CONFIG_SUBMODULE_SECTION , name , ConfigConstants . CONFIG_KEY_URL , url ) ; if ( update != null ) config . setString ( ConfigConstants . CONFIG_SUBMODULE_SECTION , name , ConfigConstants . CONFIG_KEY_UPDATE , update ) ; if ( url != null || update != null ) initialized . add ( path ) ; } if ( ! initialized . isEmpty ( ) ) config . save ( ) ; return initialized ; } catch ( IOException | ConfigInvalidException e ) { throw new JGitInternalException ( e . getMessage ( ) , e ) ; } }
public override ICollection < string > Call ( ) { CheckCallable ( ) ; try { SubmoduleWalk generator = SubmoduleWalk . ForIndex ( repo ) ; if ( ! paths . IsEmpty ( ) ) { generator . SetFilter ( PathFilterGroup . CreateFromStrings ( paths ) ) ; } StoredConfig config = repo . GetConfig ( ) ; IList < string > initialized = new AList < string > ( ) ; while ( generator . Next ( ) ) { if ( generator . GetConfigUrl ( ) != null ) { continue ; } string path = generator . GetPath ( ) ; string url = generator . GetRemoteUrl ( ) ; string update = generator . GetModulesUpdate ( ) ; if ( url != null ) { config . SetString ( ConfigConstants . CONFIG_SUBMODULE_SECTION , path , ConfigConstants . CONFIG_KEY_URL , url ) ; } if ( update != null ) { config . SetString ( ConfigConstants . CONFIG_SUBMODULE_SECTION , path , ConfigConstants . CONFIG_KEY_UPDATE , update ) ; } if ( url != null || update != null ) { initialized . AddItem ( path ) ; } } if ( ! initialized . IsEmpty ( ) ) { config . Save ( ) ; } return initialized ; } catch ( IOException e ) { throw new JGitInternalException ( e . Message , e ) ; } catch ( ConfigInvalidException e ) { throw new JGitInternalException ( e . Message , e ) ; } }
public CreateVaultRequest ( String accountId , String vaultName ) { setAccountId ( accountId ) ; setVaultName ( vaultName ) ; }
public CreateVaultRequest ( string accountId , string vaultName ) { _accountId = accountId ; _vaultName = vaultName ; }