java
stringlengths
28
1.4k
C#
stringlengths
27
1.38k
public boolean contains(Object o) {if (!(o instanceof Map.Entry))return false;Map.Entry<?,?> e = (Map.Entry<?,?>)o;V v = ConcurrentHashMap.this.get(e.getKey());return v != null && v.equals(e.getValue());}
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 List<String> getRemovedList() {return removedList;}
public virtual IList<string> GetRemovedList(){return removedList;}
public synchronized TaxonomyReader getTaxonomyReader() {if (taxonomyReader != null) {taxonomyReader.incRef();}return taxonomyReader;}
public virtual TaxonomyReader GetTaxonomyReader(){lock (this){if (taxonomyReader != null){taxonomyReader.IncRef();}return taxonomyReader;}}
public String toString(String field) {return getBooleanQuery().toString(field);}
public override string ToString(string field){return query.ToString(field);}
public HSSFShapeGroup createGroup(HSSFClientAnchor anchor) {HSSFShapeGroup group = new HSSFShapeGroup(null, anchor);addShape(group);onCreate(group);return group;}
public HSSFShapeGroup CreateGroup(HSSFClientAnchor anchor){HSSFShapeGroup group = new HSSFShapeGroup(null, anchor);AddShape(group);OnCreate(group);return group;}
public String toString(){StringBuilder sb = new StringBuilder();sb.append( getText() ).append( '(' ).append( boost ).append( ")(" );for( Toffs to : termsOffsets ){sb.append( to );}sb.append( ')' );return sb.toString();}
public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetText()).Append('(').Append(Number.ToString(boost)).Append(")(");foreach (Toffs to in termsOffsets){sb.Append(to);}sb.Append(')');return sb.ToString();}
public ClassicFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
public ClassicFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
public UpdateApplicationResult updateApplication(UpdateApplicationRequest request) {request = beforeClientExecution(request);return executeUpdateApplication(request);}
public virtual UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance;return Invoke<UpdateApplicationResponse>(request, options);}
public PackParser newPackParser(InputStream in) throws IOException {throw new UnsupportedOperationException();}
public override PackParser NewPackParser(InputStream @in){throw new NotSupportedException();}
public void print(boolean bool) {print(String.valueOf(bool));}
public virtual void print(bool @bool){print(@bool.ToString());}
public int centerY() {return y + h / 2;}
public int centerY(){return (top + bottom) >> 1;}
public Query makeQuery(SpatialArgs args) {if(! SpatialOperation.is( args.getOperation(),SpatialOperation.Intersects,SpatialOperation.IsWithin ))throw new UnsupportedSpatialOperation(args.getOperation());Shape shape = args.getShape();if (shape instanceof Rectangle) {Rectangle bbox = (Rectangle) shape;return new ConstantScoreQuery(makeWithin(bbox));} else if (shape instanceof Circle) {Circle circle = (Circle)shape;Rectangle bbox = circle.getBoundingBox();return new DistanceRangeQuery(makeWithin(bbox), makeDistanceValueSource(circle.getCenter()), circle.getRadius());} else {throw new UnsupportedOperationException("Only Rectangles and Circles are currently supported, " +"found [" + shape.getClass() + "]");}}
public override ConstantScoreQuery MakeQuery(SpatialArgs args){if (!SpatialOperation.Is(args.Operation,SpatialOperation.Intersects,SpatialOperation.IsWithin)){throw new UnsupportedSpatialOperation(args.Operation);}IShape shape = args.Shape;if (shape is IRectangle){var bbox = (IRectangle)shape;return new ConstantScoreQuery(MakeWithin(bbox));}else if (shape is ICircle){var circle = (ICircle)shape;var bbox = circle.BoundingBox;var vsf = new ValueSourceFilter(new QueryWrapperFilter(MakeWithin(bbox)),MakeDistanceValueSource(circle.Center),0,circle.Radius);return new ConstantScoreQuery(vsf);}throw new NotSupportedException("Only IRectangles and ICircles are currently supported, " +"found [" + shape.GetType().Name + "]"); }
public BooleanQuery build() {return new BooleanQuery(minimumNumberShouldMatch, clauses.toArray(new BooleanClause[0]));}
public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}
public GetManagedScalingPolicyResult getManagedScalingPolicy(GetManagedScalingPolicyRequest request) {request = beforeClientExecution(request);return executeGetManagedScalingPolicy(request);}
public virtual GetManagedScalingPolicyResponse GetManagedScalingPolicy(GetManagedScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetManagedScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetManagedScalingPolicyResponseUnmarshaller.Instance;return Invoke<GetManagedScalingPolicyResponse>(request, options);}
public ListApplicationsResult listApplications() {return listApplications(new ListApplicationsRequest());}
public virtual ListApplicationsResponse ListApplications(){return ListApplications(new ListApplicationsRequest());}
public String getFormatSpecifier() {return s;}
public virtual string getFormatSpecifier(){return s;}
public static String getBuiltinFormat(short index) {return BuiltinFormats.getBuiltinFormat(index);}
public static String GetBuiltinFormat(short index){return (String)builtinFormats[index];}
public void addTask(PerfTask task) {tasks.add(task);task.setDepth(getDepth()+1);}
public virtual void AddTask(PerfTask task){tasks.Add(task);task.Depth = Depth + 1;}
public GetQueueUrlResult getQueueUrl(String queueName) {return getQueueUrl(new GetQueueUrlRequest().withQueueName(queueName));}
public virtual GetQueueUrlResponse GetQueueUrl(string queueName){var request = new GetQueueUrlRequest();request.QueueName = queueName;return GetQueueUrl(request);}
public static double asinh(double d) {return Math.log(Math.sqrt(d*d + 1) + d);}
public static double Asinh(double d){double d2 = d * d;return Math.Log(Math.Sqrt(d * d + 1) + d);}
public ActivityTypeDetail describeActivityType(DescribeActivityTypeRequest request) {request = beforeClientExecution(request);return executeDescribeActivityType(request);}
public virtual DescribeActivityTypeResponse DescribeActivityType(DescribeActivityTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeActivityTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeActivityTypeResponseUnmarshaller.Instance;return Invoke<DescribeActivityTypeResponse>(request, options);}
public RegisterTransitGatewayMulticastGroupSourcesResult registerTransitGatewayMulticastGroupSources(RegisterTransitGatewayMulticastGroupSourcesRequest request) {request = beforeClientExecution(request);return executeRegisterTransitGatewayMulticastGroupSources(request);}
public virtual RegisterTransitGatewayMulticastGroupSourcesResponse RegisterTransitGatewayMulticastGroupSources(RegisterTransitGatewayMulticastGroupSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterTransitGatewayMulticastGroupSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterTransitGatewayMulticastGroupSourcesResponseUnmarshaller.Instance;return Invoke<RegisterTransitGatewayMulticastGroupSourcesResponse>(request, options);}
public void onRelease() {mPullDistance = 0;if (mState != STATE_PULL && mState != STATE_PULL_DECAY) {return;}mState = STATE_RECEDE;mEdgeAlphaStart = mEdgeAlpha;mEdgeScaleYStart = mEdgeScaleY;mGlowAlphaStart = mGlowAlpha;mGlowScaleYStart = mGlowScaleY;mEdgeAlphaFinish = 0.f;mEdgeScaleYFinish = 0.f;mGlowAlphaFinish = 0.f;mGlowScaleYFinish = 0.f;mStartTime = AnimationUtils.currentAnimationTimeMillis();mDuration = RECEDE_TIME;}
public virtual void onRelease(){mPullDistance = 0;if (mState != STATE_PULL && mState != STATE_PULL_DECAY){return;}mState = STATE_RECEDE;mEdgeAlphaStart = mEdgeAlpha;mEdgeScaleYStart = mEdgeScaleY;mGlowAlphaStart = mGlowAlpha;mGlowScaleYStart = mGlowScaleY;mEdgeAlphaFinish = 0.0f;mEdgeScaleYFinish = 0.0f;mGlowAlphaFinish = 0.0f;mGlowScaleYFinish = 0.0f;mStartTime = android.view.animation.AnimationUtils.currentAnimationTimeMillis();mDuration = RECEDE_TIME;}
public ImportKeyPairResult importKeyPair(ImportKeyPairRequest request) {request = beforeClientExecution(request);return executeImportKeyPair(request);}
public virtual ImportKeyPairResponse ImportKeyPair(ImportKeyPairRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportKeyPairRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportKeyPairResponseUnmarshaller.Instance;return Invoke<ImportKeyPairResponse>(request, options);}
public String metricFilterPattern() {return this.metricFilterPattern;}
public override void Validate(){base.Validate();}
public long getTotalTimeInPrediction() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long t = 0;for (int i=0; i<decisions.length; i++) {t += decisions[i].timeInPrediction;}return t;}
public long getTotalTimeInPrediction(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long t = 0;for (int i = 0; i < decisions.Length; i++){t += decisions[i].timeInPrediction;}return t;}
public TokenStream create(TokenStream input) {return new HungarianLightStemFilter(input);}
public override TokenStream Create(TokenStream input){return new HungarianLightStemFilter(input);}
public String getDescription() {return desc;}
public virtual string getDescription(){return desc;}
public DeleteAlgorithmResult deleteAlgorithm(DeleteAlgorithmRequest request) {request = beforeClientExecution(request);return executeDeleteAlgorithm(request);}
public virtual DeleteAlgorithmResponse DeleteAlgorithm(DeleteAlgorithmRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAlgorithmRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAlgorithmResponseUnmarshaller.Instance;return Invoke<DeleteAlgorithmResponse>(request, options);}
public void setPrefix(String prefix) {this.prefix = prefix;}
public virtual void SetPrefix(string prefix){this.m_prefix = prefix;}
public Collection<ChildScorable> getChildren() {return Collections.singleton(new ChildScorable(childScorer, "BLOCK_JOIN"));}
public override ICollection<ChildScorer> GetChildren(){return new List<ChildScorer> { new ChildScorer(_childScorer, "BLOCK_JOIN") };}
public void run() {sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_SELECTED);}
public virtual void run(){this._enclosing.sendAccessibilityEvent(android.view.accessibility.AccessibilityEvent.TYPE_VIEW_SELECTED);}
public String apiVersion() {return this.apiVersion;}
public Azure.Storage.Files.Shares.Models.FileProperty Properties { get; internal set; }
public OpenNLPPOSFilter create(TokenStream in) {try {return new OpenNLPPOSFilter(in, OpenNLPOpsFactory.getPOSTagger(posTaggerModelFile));} catch (IOException e) {throw new IllegalArgumentException(e);}}
public override TokenStream Create(TokenStream input){try{return new OpenNLPPOSFilter(input, OpenNLPOpsFactory.GetPOSTagger(posTaggerModelFile));}catch (IOException e){throw new ArgumentException(e.ToString(), e);}}
public SendBulkTemplatedEmailResult sendBulkTemplatedEmail(SendBulkTemplatedEmailRequest request) {request = beforeClientExecution(request);return executeSendBulkTemplatedEmail(request);}
public virtual SendBulkTemplatedEmailResponse SendBulkTemplatedEmail(SendBulkTemplatedEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendBulkTemplatedEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = SendBulkTemplatedEmailResponseUnmarshaller.Instance;return Invoke<SendBulkTemplatedEmailResponse>(request, options);}
public ByteBuffer putFloat(float value) {return putInt(Float.floatToRawIntBits(value));}
public override java.nio.ByteBuffer putFloat(float value){return putInt(Sharpen.Util.FloatToRawIntBits(value));}
public TotalTermFreqValueSource(String field, String val, String indexedField, BytesRef indexedBytes) {this.field = field;this.val = val;this.indexedField = indexedField;this.indexedBytes = indexedBytes;}
public TotalTermFreqValueSource(string field, string val, string indexedField, BytesRef indexedBytes){this.m_field = field;this.m_val = val;this.m_indexedField = indexedField;this.m_indexedBytes = indexedBytes;}
public static final int encoding(byte[] b, int ptr) {final int sz = b.length;while (ptr < sz) {if (b[ptr] == '\n')return -1;if (b[ptr] == 'e')break;ptr = nextLF(b, ptr);}return match(b, ptr, encoding);}
public static int Encoding(byte[] b, int ptr){int sz = b.Length;while (ptr < sz){if (b[ptr] == '\n'){return -1;}if (b[ptr] == 'e'){break;}ptr = NextLF(b, ptr);}return Match(b, ptr, ObjectChecker.encoding);}
public void init(ByteBlockPool pool, int startIndex, int endIndex) {assert endIndex-startIndex >= 0;assert startIndex >= 0;assert endIndex >= 0;this.pool = pool;this.endIndex = endIndex;level = 0;bufferUpto = startIndex / ByteBlockPool.BYTE_BLOCK_SIZE;bufferOffset = bufferUpto * ByteBlockPool.BYTE_BLOCK_SIZE;buffer = pool.buffers[bufferUpto];upto = startIndex & ByteBlockPool.BYTE_BLOCK_MASK;final int firstSize = ByteBlockPool.LEVEL_SIZE_ARRAY[0];if (startIndex+firstSize >= endIndex) {limit = endIndex & ByteBlockPool.BYTE_BLOCK_MASK;} elselimit = upto+firstSize-4;}
public void Init(ByteBlockPool pool, int startIndex, int endIndex){Debug.Assert(endIndex - startIndex >= 0);Debug.Assert(startIndex >= 0);Debug.Assert(endIndex >= 0);this.pool = pool;this.EndIndex = endIndex;level = 0;bufferUpto = startIndex / ByteBlockPool.BYTE_BLOCK_SIZE;BufferOffset = bufferUpto * ByteBlockPool.BYTE_BLOCK_SIZE;buffer = pool.Buffers[bufferUpto];upto = startIndex & ByteBlockPool.BYTE_BLOCK_MASK;int firstSize = ByteBlockPool.LEVEL_SIZE_ARRAY[0];if (startIndex + firstSize >= endIndex){limit = endIndex & ByteBlockPool.BYTE_BLOCK_MASK;}else{limit = upto + firstSize - 4;}}
public MergeCellsRecord(RecordInputStream in) {int nRegions = in.readUShort();CellRangeAddress[] cras = new CellRangeAddress[nRegions];for (int i = 0; i < nRegions; i++) {cras[i] = new CellRangeAddress(in);}_numberOfRegions = nRegions;_startIndex = 0;_regions = cras;}
public MergeCellsRecord(RecordInputStream in1){int nRegions = in1.ReadUShort();CellRangeAddress[] cras = new CellRangeAddress[nRegions];for (int i = 0; i < nRegions; i++){cras[i] = new CellRangeAddress(in1);}_numberOfRegions = nRegions;_startIndex = 0;_regions = cras;}
public List<? extends FileHeader> getFiles() {return files;}
public virtual IList<FileHeader> GetFiles(){return files;}
public final long get(int index) {checkIndex(index);return backingArray[offset + index];}
public sealed override long get(int index){checkIndex(index);return backingArray[offset + index];}
public DescribeClusterTracksResult describeClusterTracks(DescribeClusterTracksRequest request) {request = beforeClientExecution(request);return executeDescribeClusterTracks(request);}
public virtual DescribeClusterTracksResponse DescribeClusterTracks(DescribeClusterTracksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterTracksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterTracksResponseUnmarshaller.Instance;return Invoke<DescribeClusterTracksResponse>(request, options);}
public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(" [");if (externalWorkbookNumber >= 0) {sb.append(" [");sb.append("workbook=").append(getExternalWorkbookNumber());sb.append("] ");}sb.append("sheet=").append(getSheetName());sb.append(" ! ");sb.append(FormulaError.REF.getString());sb.append("]");return sb.toString();}
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name);sb.Append(" [");if (externalWorkbookNumber >= 0){sb.Append(" [");sb.Append("workbook=").Append(ExternalWorkbookNumber);sb.Append("] ");}if (sheetName != null){SheetNameFormatter.AppendFormat(sb, sheetName);}sb.Append(" ! ");sb.Append(ErrorConstants.GetText(ErrorConstants.ERROR_REF));sb.Append("]");return sb.ToString();}
public void setParsedExpression(Ptg[] ptgs) {field_8_parsed_expr = Formula.create(ptgs);}
public void SetParsedExpression(Ptg[] ptgs){field_8_parsed_expr = NPOI.SS.Formula.Formula.Create(ptgs);}
public ActivityTypeInfos listActivityTypes(ListActivityTypesRequest request) {request = beforeClientExecution(request);return executeListActivityTypes(request);}
public virtual ListActivityTypesResponse ListActivityTypes(ListActivityTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListActivityTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListActivityTypesResponseUnmarshaller.Instance;return Invoke<ListActivityTypesResponse>(request, options);}
public DescribeDBSecurityGroupsResult describeDBSecurityGroups() {return describeDBSecurityGroups(new DescribeDBSecurityGroupsRequest());}
public virtual DescribeDBSecurityGroupsResponse DescribeDBSecurityGroups(){return DescribeDBSecurityGroups(new DescribeDBSecurityGroupsRequest());}
public <T> Collection<T> getAllMatchingGroups() {return (Collection<T>) matchingGroups;}
public virtual ICollection GetAllMatchingGroups(){return matchingGroups;}
public void setCachedResultBoolean(boolean value) {specialCachedValue = FormulaSpecialCachedValue.createCachedBoolean(value);}
public void SetCachedResultBoolean(bool value){specialCachedValue = SpecialCachedValue.CreateCachedBoolean(value);}
public static boolean doesFormulaReferToDeletedCell(Ptg[] ptgs) {for (Ptg ptg : ptgs) {if (isDeletedCellRef(ptg)) {return true;}}return false;}
public static bool DoesFormulaReferToDeletedCell(Ptg[] ptgs){for (int i = 0; i < ptgs.Length; i++){if (IsDeletedCellRef(ptgs[i])){return true;}}return false;}
public static float[] grow(float[] array) {return grow(array, 1 + array.length);}
public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);}
public void clear() {head = null;tail = null;free.clear();}
public override void Clear(){head = null;tail = null;free.Clear();}
public DeleteIPSetResult deleteIPSet(DeleteIPSetRequest request) {request = beforeClientExecution(request);return executeDeleteIPSet(request);}
public virtual DeleteIPSetResponse DeleteIPSet(DeleteIPSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIPSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIPSetResponseUnmarshaller.Instance;return Invoke<DeleteIPSetResponse>(request, options);}
public StaticCredentialsProvider(AlibabaCloudCredentials credentials) {this.credentials = credentials;}
public StaticCredentialsProvider(AlibabaCloudCredentials credentials){this.credentials = credentials;}
public static double[] copyOfRange(double[] original, int start, int end) {if (start > end) {throw new IllegalArgumentException();}int originalLength = original.length;if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);double[] result = new double[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;}
public static double[] copyOfRange(double[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);double[] result = new double[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}
public DescribeEntityRecognizerResult describeEntityRecognizer(DescribeEntityRecognizerRequest request) {request = beforeClientExecution(request);return executeDescribeEntityRecognizer(request);}
public virtual DescribeEntityRecognizerResponse DescribeEntityRecognizer(DescribeEntityRecognizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEntityRecognizerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEntityRecognizerResponseUnmarshaller.Instance;return Invoke<DescribeEntityRecognizerResponse>(request, options);}
public void removeTitle() {remove1stProperty(PropertyIDMap.PID_TITLE);}
public void RemoveTitle(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_TITLE);}
public GetDigestResult getDigest(GetDigestRequest request) {request = beforeClientExecution(request);return executeGetDigest(request);}
public virtual GetDigestResponse GetDigest(GetDigestRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDigestRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDigestResponseUnmarshaller.Instance;return Invoke<GetDigestResponse>(request, options);}
public CreateStackResult createStack(CreateStackRequest request) {request = beforeClientExecution(request);return executeCreateStack(request);}
public virtual CreateStackResponse CreateStack(CreateStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStackRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStackResponseUnmarshaller.Instance;return Invoke<CreateStackResponse>(request, options);}
public boolean adjustFormula(Ptg[] ptgs, int currentExternSheetIx) {boolean refsWereChanged = false;for(int i=0; i<ptgs.length; i++) {Ptg newPtg = adjustPtg(ptgs[i], currentExternSheetIx);if (newPtg != null) {refsWereChanged = true;ptgs[i] = newPtg;}}return refsWereChanged;}
public bool AdjustFormula(Ptg[] ptgs, int currentExternSheetIx){bool refsWereChanged = false;for (int i = 0; i < ptgs.Length; i++){Ptg newPtg = AdjustPtg(ptgs[i], currentExternSheetIx);if (newPtg != null){refsWereChanged = true;ptgs[i] = newPtg;}}return refsWereChanged;}
public void print(Object o) {print(String.valueOf(o));}
public virtual void print(object o){print(Sharpen.StringHelper.GetValueOf(o));}
public void setParams(String params) {super.setParams(params);useAddIndexesDir = Boolean.parseBoolean(params);}
public override void SetParams(string @params){base.SetParams(@params);useAddIndexesDir = bool.Parse(@params);}
public void close() throws IOException {if (isOpen && !isClone) {try {channel.close();} finally {if (!isClone) {fis.close();}}}}
public void close() throws IOException{if (isOpen && !isClone){try{channel.close();}finally{if (!isClone){fis.close();}}}}
public void reset() {count = 0;assert forwardCount == 0: "pos=" + pos + " forwardCount=" + forwardCount;}
public void Reset(){count = 0;Debug.Assert(forwardCount == 0, "pos=" + pos + " forwardCount=" + forwardCount);}
public void unlinkSharedFormulas() {for (int i = 0; i < _numberOfFormulas; i++) {_frAggs[i].unlinkSharedFormula();}}
public void UnlinkSharedFormulas(){for (int i = 0; i < _numberOfFormulas; i++){_frAggs[i].UnlinkSharedFormula();}}
public boolean isIndexTerm(BytesRef term, TermStats stats) {if (stats.docFreq >= docFreqThresh || count >= interval) {count = 1;return true;} else {count++;return false;}}
public override bool IsIndexTerm(BytesRef term, TermStats stats){if (stats.DocFreq >= docFreqThresh || count >= interval){count = 1;return true;}else{count++;return false;}}
public void removeHeadingPair() {remove1stProperty(PropertyIDMap.PID_HEADINGPAIR);}
public void RemoveHeadingPair(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_HEADINGPAIR);}
public synchronized String[] getPOSTags(String[] words) {return tagger.tag(words);}
public virtual string[] GetPOSTags(string[] words){lock (this){return tagger.tag(words);}}
public TermsEnum intersect(CompiledAutomaton compiled, BytesRef startTerm) throws IOException {if (compiled.type != CompiledAutomaton.AUTOMATON_TYPE.NORMAL) {throw new IllegalArgumentException("please use CompiledAutomaton.getTermsEnum instead");}return new IntersectTermsEnum(this, compiled.automaton, compiled.runAutomaton, compiled.commonSuffixRef, startTerm);}
public override TermsEnum Intersect(CompiledAutomaton compiled, BytesRef startTerm){if (compiled.Type != CompiledAutomaton.AUTOMATON_TYPE.NORMAL){throw new System.ArgumentException("please use CompiledAutomaton.getTermsEnum instead");}return new IntersectEnum(this, compiled, startTerm);}
public AttachLoadBalancerToSubnetsResult attachLoadBalancerToSubnets(AttachLoadBalancerToSubnetsRequest request) {request = beforeClientExecution(request);return executeAttachLoadBalancerToSubnets(request);}
public virtual AttachLoadBalancerToSubnetsResponse AttachLoadBalancerToSubnets(AttachLoadBalancerToSubnetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachLoadBalancerToSubnetsRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachLoadBalancerToSubnetsResponseUnmarshaller.Instance;return Invoke<AttachLoadBalancerToSubnetsResponse>(request, options);}
public PrecedenceQueryParser() {setQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(getQueryConfigHandler()));}
public PrecedenceQueryParser(){SetQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler));}
public CommonToken(int type) {this.type = type;this.source = EMPTY_SOURCE;}
public CommonToken(int type){this._type = type;this.source = EmptySource;}
public DeleteEmailChannelResult deleteEmailChannel(DeleteEmailChannelRequest request) {request = beforeClientExecution(request);return executeDeleteEmailChannel(request);}
public virtual DeleteEmailChannelResponse DeleteEmailChannel(DeleteEmailChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEmailChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEmailChannelResponseUnmarshaller.Instance;return Invoke<DeleteEmailChannelResponse>(request, options);}
public DeleteNotificationSubscriptionResult deleteNotificationSubscription(DeleteNotificationSubscriptionRequest request) {request = beforeClientExecution(request);return executeDeleteNotificationSubscription(request);}
public virtual DeleteNotificationSubscriptionResponse DeleteNotificationSubscription(DeleteNotificationSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNotificationSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNotificationSubscriptionResponseUnmarshaller.Instance;return Invoke<DeleteNotificationSubscriptionResponse>(request, options);}
public void close() throws IOException {synchronized (lock) {if (isClosed()) {return;}Throwable thrown = null;try {flushInternal();} catch (Throwable e) {thrown = e;}buf = null;try {out.close();} catch (Throwable e) {if (thrown == null) {thrown = e;}}out = null;if (thrown != null) {SneakyThrow.sneakyThrow(thrown);}}}
public override void close(){lock (@lock){if (isClosed()){return;}System.Exception thrown = null;try{flushInternal();}catch (System.Exception e){thrown = e;}buf = null;try{@out.close();}catch (System.Exception e){if (thrown == null){thrown = e;}}@out = null;if (thrown != null){Sharpen.Util.Throw(thrown);}}}
public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append("spanPosRange(");buffer.append(match.toString(field));buffer.append(", ").append(start).append(", ");buffer.append(end);buffer.append(")");return buffer.toString();}
public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append("spanPosRange(");buffer.Append(m_match.ToString(field));buffer.Append(", ").Append(m_start).Append(", ");buffer.Append(m_end);buffer.Append(")");buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}
public ListPipelinesResult listPipelines(ListPipelinesRequest request) {request = beforeClientExecution(request);return executeListPipelines(request);}
public virtual ListPipelinesResponse ListPipelines(ListPipelinesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPipelinesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPipelinesResponseUnmarshaller.Instance;return Invoke<ListPipelinesResponse>(request, options);}
public ConfirmProductInstanceResult confirmProductInstance(ConfirmProductInstanceRequest request) {request = beforeClientExecution(request);return executeConfirmProductInstance(request);}
public virtual ConfirmProductInstanceResponse ConfirmProductInstance(ConfirmProductInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfirmProductInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfirmProductInstanceResponseUnmarshaller.Instance;return Invoke<ConfirmProductInstanceResponse>(request, options);}
public CreateProjectResult createProject(CreateProjectRequest request) {request = beforeClientExecution(request);return executeCreateProject(request);}
public virtual CreateProjectResponse CreateProject(CreateProjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProjectRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProjectResponseUnmarshaller.Instance;return Invoke<CreateProjectResponse>(request, options);}
public ListMomentsRequest() {super("CloudPhoto", "2017-07-11", "ListMoments", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
public ListMomentsRequest(): base("CloudPhoto", "2017-07-11", "ListMoments", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
public String getCCByGB2312Id(int ccid) {if (ccid < 0 || ccid > AbstractDictionary.GB2312_CHAR_NUM)return "";int cc1 = ccid / 94 + 161;int cc2 = ccid % 94 + 161;byte[] buffer = new byte[2];buffer[0] = (byte) cc1;buffer[1] = (byte) cc2;try {String cchar = new String(buffer, "GB2312");return cchar;} catch (UnsupportedEncodingException e) {return "";}}
public virtual string GetCCByGB2312Id(int ccid){if (ccid < 0 || ccid > AbstractDictionary.GB2312_CHAR_NUM)return "";int cc1 = ccid / 94 + 161;int cc2 = ccid % 94 + 161;byte[] buffer = new byte[2];buffer[0] = (byte)cc1;buffer[1] = (byte)cc2;try{string cchar = Encoding.GetEncoding("GB2312").GetString(buffer);return cchar;}catch (ArgumentException) {return "";}}
public static RevFilter create(RevFilter a, RevFilter b) {if (a == ALL || b == ALL)return ALL;return new Binary(a, b);}
public static RevFilter Create(RevFilter a, RevFilter b){if (a == ALL || b == ALL){return ALL;}return new OrRevFilter.Binary(a, b);}
public UpdateTableRequest(String tableName, ProvisionedThroughput provisionedThroughput) {setTableName(tableName);setProvisionedThroughput(provisionedThroughput);}
public UpdateTableRequest(string tableName, ProvisionedThroughput provisionedThroughput){_tableName = tableName;_provisionedThroughput = provisionedThroughput;}
public Repository getRepository() {return db;}
public virtual Repository GetRepository(){return db;}
public ShortBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.SHORT);byteBuffer.position(position * SizeOf.SHORT);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}
public override java.nio.ShortBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT);byteBuffer.position(_position * libcore.io.SizeOf.SHORT);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}
public CreateInstanceExportTaskResult createInstanceExportTask(CreateInstanceExportTaskRequest request) {request = beforeClientExecution(request);return executeCreateInstanceExportTask(request);}
public virtual CreateInstanceExportTaskResponse CreateInstanceExportTask(CreateInstanceExportTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInstanceExportTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInstanceExportTaskResponseUnmarshaller.Instance;return Invoke<CreateInstanceExportTaskResponse>(request, options);}
public String toString() {return "MultiDocsAndPositionsEnum(" + Arrays.toString(getSubs()) + ")";}
public override string ToString(){return "MultiDocsAndPositionsEnum(" + Arrays.ToString(Subs) + ")";}
public DescribeStacksResult describeStacks(DescribeStacksRequest request) {request = beforeClientExecution(request);return executeDescribeStacks(request);}
public virtual DescribeStacksResponse DescribeStacks(DescribeStacksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStacksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStacksResponseUnmarshaller.Instance;return Invoke<DescribeStacksResponse>(request, options);}
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_xf_index);if (isBuiltin()) {out.writeByte(field_2_builtin_style);out.writeByte(field_3_outline_style_level);} else {out.writeShort(field_4_name.length());out.writeByte(field_3_stringHasMultibyte ? 0x01 : 0x00);if (field_3_stringHasMultibyte) {StringUtil.putUnicodeLE(getName(), out);} else {StringUtil.putCompressedUnicode(getName(), out);}}}
public override void Serialize(ILittleEndianOutput o){o.WriteShort(field_1_xf_index);if (IsBuiltin){o.WriteByte(field_2_builtin_style);o.WriteByte(field_3_outline_style_level);}else{o.WriteShort(field_4_name.Length);o.WriteByte(field_3_stringHasMultibyte ? 0x01 : 0x00);if (field_3_stringHasMultibyte){StringUtil.PutUnicodeLE(Name, o);}else{StringUtil.PutCompressedUnicode(Name, o);}}}
public void write(byte[] b, int off, int len) throws IOException {deflater.setInput(b, off, len);for (;;) {if (outPtr == zbuf.length)throw new EOFException();int n = deflater.deflate(zbuf, outPtr, zbuf.length - outPtr);if (n == 0) {if (deflater.needsInput())break;throw new IOException();}outPtr += n;}}
public override void Write(byte[] b, int off, int len){deflater.SetInput(b, off, len);for (; ; ){if (outPtr == zbuf.Length){throw new EOFException();}int n = deflater.Deflate(zbuf, outPtr, zbuf.Length - outPtr);if (n == 0){if (deflater.IsNeedingInput){break;}throw new IOException();}outPtr += n;}}
public String toFormulaString() {return " ";}
public override String ToFormulaString(){return " ";}
public StringBuffer insert(int index, double d) {return insert(index, Double.toString(d));}
public java.lang.StringBuffer insert(int index, double d){return insert(index, System.Convert.ToString(d));}
public FieldWriter addField(FieldInfo field, long termsFilePointer) {SimpleFieldWriter writer = new SimpleFieldWriter(field, termsFilePointer);fields.add(writer);return writer;}
public override FieldWriter AddField(FieldInfo field, long termsFilePointer){SimpleFieldWriter writer = new SimpleFieldWriter(this, field, termsFilePointer);fields.Add(writer);return writer;}
public DeleteUserEndpointsResult deleteUserEndpoints(DeleteUserEndpointsRequest request) {request = beforeClientExecution(request);return executeDeleteUserEndpoints(request);}
public virtual DeleteUserEndpointsResponse DeleteUserEndpoints(DeleteUserEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUserEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUserEndpointsResponseUnmarshaller.Instance;return Invoke<DeleteUserEndpointsResponse>(request, options);}
public HSSFColor addColor( byte red, byte green, byte blue ){byte[] b = _palette.getColor(PaletteRecord.FIRST_COLOR_INDEX);short i;for (i = PaletteRecord.FIRST_COLOR_INDEX; i < PaletteRecord.STANDARD_PALETTE_SIZE + PaletteRecord.FIRST_COLOR_INDEX; b = _palette.getColor(++i)){if (b == null){setColorAtIndex( i, red, green, blue );return getColor(i);}}throw new RuntimeException("Could not find free color index");}
public HSSFColor AddColor(byte red, byte green, byte blue){byte[] b = palette.GetColor(PaletteRecord.FIRST_COLOR_INDEX);short i;for (i = (short)PaletteRecord.FIRST_COLOR_INDEX; i < PaletteRecord.STANDARD_PALETTE_SIZE + PaletteRecord.FIRST_COLOR_INDEX; b = palette.GetColor(++i)){if (b == null){SetColorAtIndex(i, red, green, blue);return GetColor(i);}}throw new Exception("Could not Find free color index");}
public boolean isRenameDetectionEnabled() {return renameDetectionType != RenameDetectionType.FALSE;}
public virtual bool IsRenameDetectionEnabled(){return renameDetectionType != DiffConfig.RenameDetectionType.FALSE;}
public static boolean safe(String pattern) {for (int i = 0; i < pattern.length(); i++) {final char c = pattern.charAt(i);switch (c) {case '.':case '?':case '*':case '+':case '{':case '}':case '(':case ')':case '[':case ']':case '\\':return false;}}return true;}
public static bool Safe(string pattern){for (int i = 0; i < pattern.Length; i++){char c = pattern[i];switch (c){case '.':case '?':case '*':case '+':case '{':case '}':case '(':case ')':case '[':case ']':case '\\':{return false;}}}return true;}
public void SwitchTo(int lexState){if (lexState >= 3 || lexState < 0)throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}
public void SwitchTo(int lexState){if (lexState >= 2 || lexState < 0)throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);elsecurLexState = lexState;}
public CreateDeliverabilityTestReportResult createDeliverabilityTestReport(CreateDeliverabilityTestReportRequest request) {request = beforeClientExecution(request);return executeCreateDeliverabilityTestReport(request);}
public virtual CreateDeliverabilityTestReportResponse CreateDeliverabilityTestReport(CreateDeliverabilityTestReportRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeliverabilityTestReportRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeliverabilityTestReportResponseUnmarshaller.Instance;return Invoke<CreateDeliverabilityTestReportResponse>(request, options);}
public void set(int index, long value) {final int o = index / 10;final int b = index % 10;final int shift = b * 6;blocks[o] = (blocks[o] & ~(63L << shift)) | (value << shift);}
public override void Set(int index, long value){int o = index / 10;int b = index % 10;int shift = b * 6;blocks[o] = (blocks[o] & ~(63L << shift)) | (value << shift);}