text
stringlengths
27
1.4k
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){double result;try{double d0 = SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1);if (result == 0.0){ if (!(this is SubtractEval)){return NumberEval.ZERO;}}if (Double.IsNaN(result) || Double.IsInfinity(result)){return ErrorEval.NUM_ERROR;}}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}
public PutMetricFilterRequest(string logGroupName, string filterName, string filterPattern, List<MetricTransformation> metricTransformations){_logGroupName = logGroupName;_filterName = filterName;_filterPattern = filterPattern;_metricTransformations = metricTransformations;}
public virtual E get(int location){lock (mutex){return list.get(location);}}
public IntPtg(int value){if (!IsInRange(value)){throw new ArgumentException("value is out of range: " + value);}field_1_value = value;}
public Builder(): base(){lastDocID = -1;wordNum = -1;word = 0;}
public override long getItemId(int position){return position;}
public override java.nio.ByteBuffer putDouble(int index, double value){return putLong(index, Sharpen.Util.DoubleToRawLongBits(value));}
public override void Clear(){value = false;}
public CharVector(char[] a){blockSize = DEFAULT_BLOCK_SIZE;array = a;n = a.Length;}
public UAX29URLEmailTokenizerFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();maxTokenLength = GetInt32(args, "maxTokenLength", StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
public virtual long RamBytesUsed(){return fst == null ? 0 : fst.GetSizeInBytes();}
public override bool Equals(object other){if (!(other is java.nio.CharBuffer)){return false;}java.nio.CharBuffer otherBuffer = (java.nio.CharBuffer)other;if (remaining() != otherBuffer.remaining()){return false;}int myPosition = _position;int otherPosition = otherBuffer._position;bool equalSoFar = true;while (equalSoFar && (myPosition < _limit)){equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}
public virtual StartDeploymentResponse StartDeployment(StartDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDeploymentResponseUnmarshaller.Instance;return Invoke<StartDeploymentResponse>(request, options);}
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[1904]\n");buffer.Append(" .is1904 = ").Append(StringUtil.ToHexString(Windowing)).Append("\n");buffer.Append("[/1904]\n");return buffer.ToString();}
public virtual CreateModelResponse CreateModel(CreateModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateModelRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateModelResponseUnmarshaller.Instance;return Invoke<CreateModelResponse>(request, options);}
public override java.nio.DoubleBuffer put(double c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}
public SimpleFacetsExample(){config.SetHierarchical("Publish Date", true);}
public virtual DeleteConnectionResponse DeleteConnection(DeleteConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;return Invoke<DeleteConnectionResponse>(request, options);}
public String GetSheetFirstNameByExternSheet(int externSheetIndex){return _iBook.FindSheetFirstNameFromExternSheet(externSheetIndex);}
public void Begin(int timeout){if (timeout <= 0){throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidTimeout, Sharpen.Extensions.ValueOf(timeout)));}Sharpen.Thread.Interrupted();state.Begin(timeout);}
public T UpdateTop(){DownHeap();return heap[1];}
public QueryNodeException(IMessage message): base(message.Key){this.m_message = message;}
public static double Factorial(int n){double d = 1;if (n >= 0){if (n <= 170){for (int i = 1; i <= n; i++){d *= i;}}else{d = double.PositiveInfinity;}}else{d = double.NaN;}return d;}
public virtual void Sort(RevSort s){AssertNotStarted();sorting.Clear();sorting.AddItem(s);}
public virtual CreateAuthorizerResponse CreateAuthorizer(CreateAuthorizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAuthorizerRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAuthorizerResponseUnmarshaller.Instance;return Invoke<CreateAuthorizerResponse>(request, options);}
public virtual bool IsDeltaCompress(){return deltaCompress;}
public virtual CreateWorkGroupResponse CreateWorkGroup(CreateWorkGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance;return Invoke<CreateWorkGroupResponse>(request, options);}
public virtual BatchDetectSyntaxResponse BatchDetectSyntax(BatchDetectSyntaxRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectSyntaxRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectSyntaxResponseUnmarshaller.Instance;return Invoke<BatchDetectSyntaxResponse>(request, options);}
public void RemoveManager(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_MANAGER);}
public ICollection KeySet(){return dictionaryNameToID.Keys;}
public virtual long Hash1(char c){long p = 1099511628211L;long hash = unchecked((long)0xcbf29ce484222325L);hash = (hash ^ (c & 0x00FF)) * p;hash = (hash ^ (c >> 8)) * p;hash += hash << 13;hash ^= hash >> 7;hash += hash << 3;hash ^= hash >> 17;hash += hash << 5;return hash;}
public virtual PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance;return Invoke<PutScalingPolicyResponse>(request, options);}
public KeywordRepeatFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
public virtual void RecycleByteBlocks(IList<byte[]> blocks){var b = blocks.ToArray();RecycleByteBlocks(b, 0, b.Length);}
public virtual IList<IToken> Get(int start, int stop){if (start < 0 || stop < 0){return null;}LazyInit();IList<IToken> subset = new List<IToken>();if (stop >= tokens.Count){stop = tokens.Count - 1;}for (int i = start; i <= stop; i++){IToken t = tokens[i];if (t.Type == TokenConstants.EOF){break;}subset.Add(t);}return subset;}
public override string ToString(){return tokenName + ":" + Type;}
public static Automaton Build(ICollection<BytesRef> input){DaciukMihovAutomatonBuilder builder = new DaciukMihovAutomatonBuilder();CharsRef scratch = new CharsRef();foreach (BytesRef b in input){UnicodeUtil.UTF8toUTF16(b, scratch);builder.Add(scratch);}return new Automaton{initial = Convert(builder.Complete(), new JCG.Dictionary<State, Lucene.Net.Util.Automaton.State>(IdentityEqualityComparer<State>.Default)),deterministic = true};}
public Row Merge(Row master, Row existing){Row n = new Row();foreach (char ch in master.cells.Keys){master.cells.TryGetValue(ch, out Cell a);Cell s = !existing.cells.TryGetValue(ch, out Cell b) || (b == null) ? new Cell(a) : Merge(a, b);if (s == null){return null;}n.cells[ch] = s;}foreach (char ch in existing.cells.Keys){if (master.At(ch) != null){continue;}n.cells[ch] = existing.At(ch);}return n;}
public virtual E peekFirst(){return peekFirstImpl();}
public static int Response(HttpURLConnection c){try{return c.GetResponseCode();}catch (ConnectException ce){string host = c.GetURL().GetHost();if ("Connection timed out: connect".Equals(ce.Message)){throw new ConnectException(MessageFormat.Format(JGitText.Get().connectionTimeOut,host));}throw new ConnectException(ce.Message + " " + host);}}
public virtual GetConfigurationResponse GetConfiguration(GetConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConfigurationResponseUnmarshaller.Instance;return Invoke<GetConfigurationResponse>(request, options);}
public static List<String> GetSupportedFunctionNames(){List<String> lst = new List<String>();lst.AddRange(FunctionEval.GetSupportedFunctionNames());lst.AddRange(AnalysisToolPak.GetSupportedFunctionNames());return lst;}
public PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer, IDictionary<string, Analyzer> fieldAnalyzers): base(PER_FIELD_REUSE_STRATEGY){this.defaultAnalyzer = defaultAnalyzer;this.fieldAnalyzers = fieldAnalyzers ?? new JCG.Dictionary<string, Analyzer>(); }
public virtual DeletePublishingDestinationResponse DeletePublishingDestination(DeletePublishingDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePublishingDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePublishingDestinationResponseUnmarshaller.Instance;return Invoke<DeletePublishingDestinationResponse>(request, options);}
public virtual GetSendStatisticsResponse GetSendStatistics(GetSendStatisticsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSendStatisticsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSendStatisticsResponseUnmarshaller.Instance;return Invoke<GetSendStatisticsResponse>(request, options);}
public void CopyArea(int x, int y, int width, int height, int dx, int dy){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, "copyArea not supported");}
public AreaErrPtg(){unused1 = 0;unused2 = 0;}
public virtual GetUserSettingsResponse GetUserSettings(GetUserSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUserSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUserSettingsResponseUnmarshaller.Instance;return Invoke<GetUserSettingsResponse>(request, options);}
public static string ToString(object obj){if (obj != null){return obj.ToString();}else{return null;}}
public string GetAccessKeySecret(){return accessKeySecret;}
public override ICollection<IParseTree> Evaluate(IParseTree t){IList<IParseTree> nodes = new List<IParseTree>();foreach (ITree c in Trees.GetChildren(t)){if (c is ITerminalNode){ITerminalNode tnode = (ITerminalNode)c;if ((tnode.Symbol.Type == tokenType && !invert) || (tnode.Symbol.Type != tokenType && invert)){nodes.Add(tnode);}}}return nodes;}
public virtual IsVpcPeeredResponse IsVpcPeered(IsVpcPeeredRequest request){var options = new InvokeOptions();options.RequestMarshaller = IsVpcPeeredRequestMarshaller.Instance;options.ResponseUnmarshaller = IsVpcPeeredResponseUnmarshaller.Instance;return Invoke<IsVpcPeeredResponse>(request, options);}
public override string ToString(){return "ShardRef(shardIndex=" + ShardIndex + " hitIndex=" + HitIndex + ")";}
public TerminateJobFlowsRequest(List<string> jobFlowIds){_jobFlowIds = jobFlowIds;}
public DatRecord(RecordInputStream in1){field_1_options = in1.ReadShort();}
public void RemoveExFormatRecord(int index){int xfptr = records.Xfpos - (numxfs - 1) + index;records.Remove(xfptr); numxfs--;}
public virtual double Get(string name, double dflt){double[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (double[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt.ToString(CultureInfo.InvariantCulture);}if (sval.IndexOf(':') < 0){return double.Parse(sval, CultureInfo.InvariantCulture);}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToDoubleArray(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}
public BlockPackedReaderIterator(DataInput @in, int packedIntsVersion, int blockSize, long valueCount){PackedInt32s.CheckBlockSize(blockSize, AbstractBlockPackedWriter.MIN_BLOCK_SIZE, AbstractBlockPackedWriter.MAX_BLOCK_SIZE);this.packedIntsVersion = packedIntsVersion;this.blockSize = blockSize;this.values = new long[blockSize];this.valuesRef = new Int64sRef(this.values, 0, 0);Reset(@in, valueCount);}
public override void Reset(){if (!First){ptr = treeStart;if (!Eof){ParseEntry();}}}
public override BytesRef GetPayload(){if (payloadLength == 0){return null;}else{return payload;}}
public virtual void setIndeterminate(bool indeterminate){lock (this){if ((!mOnlyIndeterminate || !mIndeterminate) && indeterminate != mIndeterminate){mIndeterminate = indeterminate;if (indeterminate){mCurrentDrawable = mIndeterminateDrawable;startAnimation();}else{mCurrentDrawable = mProgressDrawable;stopAnimation();}}}}
public void NotifyDeleteCell(ICell cell){_bookEvaluator.NotifyDeleteCell(new HSSFEvaluationCell(cell));}
public override bool Equals(object o){var other = o as FieldCacheSource;if (other == null){return false;}return m_field.Equals(other.m_field, StringComparison.Ordinal) && m_cache == other.m_cache;}
public virtual DescribeLoaResponse DescribeLoa(DescribeLoaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoaRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoaResponseUnmarshaller.Instance;return Invoke<DescribeLoaResponse>(request, options);}
public override K next(){return this.nextEntry().key;}
public virtual ListFleetsResponse ListFleets(ListFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFleetsResponseUnmarshaller.Instance;return Invoke<ListFleetsResponse>(request, options);}
public DelegationSet(List<string> nameServers){_nameServers = nameServers;}
public virtual GetKeyPairsResponse GetKeyPairs(GetKeyPairsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetKeyPairsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetKeyPairsResponseUnmarshaller.Instance;return Invoke<GetKeyPairsResponse>(request, options);}
public virtual PurchaseReservedNodeOfferingResponse PurchaseReservedNodeOffering(PurchaseReservedNodeOfferingRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseReservedNodeOfferingRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseReservedNodeOfferingResponseUnmarshaller.Instance;return Invoke<PurchaseReservedNodeOfferingResponse>(request, options);}
public virtual string GetPassword(){return password;}
public virtual string GetValue(string name){string result;nameValPairs.TryGetValue(name, out result);return result;}
public static string Format(byte[] delta){return Format(delta, true);}
public Token(int kind, string image){this.Kind = kind;this.Image = image;}
public ArrayRecord(RecordInputStream in1): base(in1){_options = in1.ReadUShort();_field3notUsed = in1.ReadInt();int formulaTokenLen = in1.ReadUShort();int totalFormulaLen = in1.Available();_formula = NPOI.SS.Formula.Formula.Read(formulaTokenLen, in1, totalFormulaLen);}
public BootstrapActionConfig(string name, ScriptBootstrapActionConfig scriptBootstrapAction){_name = name;_scriptBootstrapAction = scriptBootstrapAction;}
public virtual CreateLoadBalancerPolicyResponse CreateLoadBalancerPolicy(CreateLoadBalancerPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLoadBalancerPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLoadBalancerPolicyResponseUnmarshaller.Instance;return Invoke<CreateLoadBalancerPolicyResponse>(request, options);}
public static string ToHex(byte value){return ToHex((long)value, 2);}
public override string ToString(){return "MultiTermsEnum(" + Arrays.ToString(subs) + ")";}
public PayloadSpanUtil(IndexReaderContext context){this.context = context;}
public virtual IList<FormatError> GetErrors(){return errors;}
public NormalisedDecimal CreateNormalisedDecimal(int pow10){int missingUnderBits = _binaryExponent - 39;int fracPart = (_significand.IntValue() << missingUnderBits) & 0xFFFF80;long wholePart = (_significand>>(C_64 - _binaryExponent - 1)).LongValue();return new NormalisedDecimal(wholePart, fracPart, pow10);}
public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(MINUS);buffer.Append(operands[0]);return buffer.ToString();}
public virtual ListStackSetOperationResultsResponse ListStackSetOperationResults(ListStackSetOperationResultsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStackSetOperationResultsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStackSetOperationResultsResponseUnmarshaller.Instance;return Invoke<ListStackSetOperationResultsResponse>(request, options);}
public static string GetLocalizedMessage(string key, params object[] args){return GetLocalizedMessage(key, CultureInfo.CurrentUICulture, args);}
public string ReflectAsString(bool prependAttClass){StringBuilder buffer = new StringBuilder();ReflectWith(new AttributeReflectorAnonymousInnerClassHelper(this, prependAttClass, buffer));return buffer.ToString();}
public CellRangeAddressBase GetValuesCellRange(){return GetCellRange(dataValues);}
public virtual DescribeMatchmakingConfigurationsResponse DescribeMatchmakingConfigurations(DescribeMatchmakingConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMatchmakingConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMatchmakingConfigurationsResponseUnmarshaller.Instance;return Invoke<DescribeMatchmakingConfigurationsResponse>(request, options);}
public override char get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getChar(_position++ * libcore.io.SizeOf.CHAR);}
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[FtCf ]\n");buffer.Append(" size = ").Append(length).Append("\n");buffer.Append(" flags = ").Append(HexDump.ToHex(flags)).Append("\n");buffer.Append("[/FtCf ]\n");return buffer.ToString();}
public virtual PutConfigurationSetSuppressionOptionsResponse PutConfigurationSetSuppressionOptions(PutConfigurationSetSuppressionOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetSuppressionOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetSuppressionOptionsResponseUnmarshaller.Instance;return Invoke<PutConfigurationSetSuppressionOptionsResponse>(request, options);}
public virtual ListProposalVotesResponse ListProposalVotes(ListProposalVotesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProposalVotesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProposalVotesResponseUnmarshaller.Instance;return Invoke<ListProposalVotesResponse>(request, options);}
public SheetRangeEvaluator GetRefEvaluatorForCurrentSheet(){SheetRefEvaluator sre = new SheetRefEvaluator(_bookEvaluator, _tracker, _sheetIndex);return new SheetRangeEvaluator(_sheetIndex, sre);}
public override long RamBytesUsed(){long sizeInBytes = 0;foreach (FieldIndexData entry in fields.Values){sizeInBytes += entry.RamBytesUsed();}return sizeInBytes;}
public DataLabelExtensionRecord(RecordInputStream in1){rt = in1.ReadShort();grbitFrt = in1.ReadShort();in1.ReadFully(unused);}
public virtual ArchiveFindingsResponse ArchiveFindings(ArchiveFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ArchiveFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = ArchiveFindingsResponseUnmarshaller.Instance;return Invoke<ArchiveFindingsResponse>(request, options);}
public ChartSubstreamRecordAggregate(RecordStream rs){_bofRec = (BOFRecord)rs.GetNext();List<RecordBase> temp = new List<RecordBase>();while (rs.PeekNextClass() != typeof(EOFRecord)){Type a = rs.PeekNextClass();if (PageSettingsBlock.IsComponentRecord(rs.PeekNextSid())){if (_psBlock != null){if (rs.PeekNextSid() == HeaderFooterRecord.sid){_psBlock.AddLateHeaderFooter((HeaderFooterRecord)rs.GetNext());continue;}throw new InvalidDataException("Found more than one PageSettingsBlock in chart sub-stream");}_psBlock = new PageSettingsBlock(rs);temp.Add(_psBlock);continue;}temp.Add(rs.GetNext());}_recs = temp;Record eof = rs.GetNext(); if (!(eof is EOFRecord)){throw new InvalidOperationException("Bad chart EOF");}}
public virtual CreateSnapshotsResponse CreateSnapshots(CreateSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSnapshotsResponseUnmarshaller.Instance;return Invoke<CreateSnapshotsResponse>(request, options);}
public override String ToFormulaString(){return "()";}
public override java.util.Iterator<java.util.MapClass.Entry<K, V>> iterator(){return new java.util.Hashtable<K, V>.EntryIterator(this._enclosing);}
public UnmonitorInstancesRequest(List<string> instanceIds){_instanceIds = instanceIds;}