text
stringlengths
27
1.4k
public SpatialArgs(SpatialOperation operation, IShape shape){if (operation == null || shape == null)throw new ArgumentException("operation and shape are required");this.Operation = operation;this.Shape = shape;}
public int CompareTo(Completion o){return this.Utf8.CompareTo(o.Utf8);}
public virtual GetInstancesResponse GetInstances(GetInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstancesResponseUnmarshaller.Instance;return Invoke<GetInstancesResponse>(request, options);}
public override int Next(){if (text.Index == text.EndIndex || 0 == sentenceStarts.Length){return Done;}else if (currentSentence < sentenceStarts.Length - 1){text.SetIndex(sentenceStarts[++currentSentence]);return Current;}else{return Last();}}
public IClientAnchor GetPreferredSize(double scaleX, double scaleY){ImageUtils.SetPreferredSize(this, scaleX, scaleY);return ClientAnchor;}
public virtual CreateTaskSetResponse CreateTaskSet(CreateTaskSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTaskSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTaskSetResponseUnmarshaller.Instance;return Invoke<CreateTaskSetResponse>(request, options);}
public override java.nio.ByteBuffer putFloat(int index, float value){return putInt(index, Sharpen.Util.FloatToRawIntBits(value));}
public static void Main(string[] args){string field = null;int numTerms = DEFAULT_NUMTERMS;if (args.Length == 0 || args.Length > 4){throw new ArgumentException();}Store.Directory dir = FSDirectory.Open(new DirectoryInfo(args[0]));IComparer<TermStats> comparer = new DocFreqComparer();for (int i = 1; i < args.Length; i++){if (args[i].Equals("-t", StringComparison.Ordinal)){comparer = new TotalTermFreqComparer();}else{if (!int.TryParse(args[i], NumberStyles.Integer, CultureInfo.InvariantCulture, out numTerms))field = args[i];}}using (IndexReader reader = DirectoryReader.Open(dir)){TermStats[] terms = GetHighFreqTerms(reader, numTerms, field, comparer);for (int i = 0; i < terms.Length; i++){Console.WriteLine("{0}:{1} \t totalTF = {2:#,##0} \t doc freq = {3:#,##0} \n", terms[i].Field, terms[i].GetTermText(), terms[i].TotalTermFreq, terms[i].DocFreq);}}}
public static List<String> GetNotSupportedFunctionNames(){List<String> lst = new List<String>();lst.AddRange(FunctionEval.GetNotSupportedFunctionNames());lst.AddRange(AnalysisToolPak.GetNotSupportedFunctionNames());return lst;}
public virtual CreateMeetingResponse CreateMeeting(CreateMeetingRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMeetingRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMeetingResponseUnmarshaller.Instance;return Invoke<CreateMeetingResponse>(request, options);}
public override char get(int index){checkIndex(index);return byteBuffer.getChar(index * libcore.io.SizeOf.CHAR);}
public virtual GetInstanceSnapshotResponse GetInstanceSnapshot(GetInstanceSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstanceSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstanceSnapshotResponseUnmarshaller.Instance;return Invoke<GetInstanceSnapshotResponse>(request, options);}
public static IDictionary<string, int> ToMap(string[] keys){IDictionary<string, int> m = new Dictionary<string, int>();for (int i = 0; i < keys.Length; i++){m[keys[i]] = i;}return m;}
public virtual GetHealthCheckStatusResponse GetHealthCheckStatus(GetHealthCheckStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHealthCheckStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHealthCheckStatusResponseUnmarshaller.Instance;return Invoke<GetHealthCheckStatusResponse>(request, options);}
public virtual GetReusableDelegationSetResponse GetReusableDelegationSet(GetReusableDelegationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetReusableDelegationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = GetReusableDelegationSetResponseUnmarshaller.Instance;return Invoke<GetReusableDelegationSetResponse>(request, options);}
public ValueEval GetAbsoluteValue(int row, int col){int rowOffsetIx = row - _firstRow;int colOffsetIx = col - _firstColumn;if (rowOffsetIx < 0 || rowOffsetIx >= _nRows){throw new ArgumentException("Specified row index (" + row+ ") is outside the allowed range (" + _firstRow + ".." + _lastRow + ")");}if (colOffsetIx < 0 || colOffsetIx >= _nColumns){throw new ArgumentException("Specified column index (" + col+ ") is outside the allowed range (" + _firstColumn + ".." + col + ")");}return GetRelativeValue(rowOffsetIx, colOffsetIx);}
public sealed override java.nio.LongBuffer put(long[] src, int srcOffset, int longCount){throw new java.nio.ReadOnlyBufferException();}
public override string ToString(){var buffer = new StringBuilder();buffer.Append("Document<");for (int i = 0; i < fields.Count; i++){IIndexableField field = fields[i];buffer.Append(field.ToString());if (i != fields.Count - 1){buffer.Append(" ");}}buffer.Append(">");return buffer.ToString();}
public virtual StartMatchBackfillResponse StartMatchBackfill(StartMatchBackfillRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMatchBackfillRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMatchBackfillResponseUnmarshaller.Instance;return Invoke<StartMatchBackfillResponse>(request, options);}
public override Object Clone(){return CloneViaReserialise();}
public virtual DeleteEmailTemplateResponse DeleteEmailTemplate(DeleteEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEmailTemplateResponseUnmarshaller.Instance;return Invoke<DeleteEmailTemplateResponse>(request, options);}
public virtual ListReceiptRuleSetsResponse ListReceiptRuleSets(ListReceiptRuleSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListReceiptRuleSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListReceiptRuleSetsResponseUnmarshaller.Instance;return Invoke<ListReceiptRuleSetsResponse>(request, options);}
public bool IsRowGroupCollapsed(int row){int collapseRow = FindEndOfRowOutlineGroup(row) + 1;if (GetRow(collapseRow) == null)return false;else return GetRow(collapseRow).Colapsed;}
public virtual void SetPathFilter(TreeFilter filter){pathFilter = filter != null ? filter : TreeFilter.ALL;}
public override int GetReturnState(int index){System.Diagnostics.Debug.Assert(index == 0);return returnState;}
public virtual GroupingSearch SetGroupDocsLimit(int groupDocsLimit){this.groupDocsLimit = groupDocsLimit;return this;}
public void RemoveField(string name){for (int i = 0; i < fields.Count; i++){IIndexableField field = fields[i];if (field.Name.Equals(name, StringComparison.Ordinal)){fields.Remove(field);return;}}}
public double? DoubleValue(string key){if (null != DictionaryUtil.Get(ResponseDictionary, key)){return double.Parse(DictionaryUtil.Get(ResponseDictionary, key));}return null;}
public virtual DescribeLoadBalancersResponse DescribeLoadBalancers(DescribeLoadBalancersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancersResponseUnmarshaller.Instance;return Invoke<DescribeLoadBalancersResponse>(request, options);}
public virtual SpanQuery[] GetClauses(){return clauses.ToArray();}
public override Object Clone(){return this;}
public PersonIdent GetTaggerIdent(){byte[] raw = buffer;int nameB = RawParseUtils.Tagger(raw, 0);if (nameB < 0){return null;}return RawParseUtils.ParsePersonIdent(raw, nameB);}
public NameRecord CreateName(){return AddName(new NameRecord());}
public virtual void SetCacheMissesUntilFill(int i){EnsureOpen();cacheMissesUntilFill = i;}
public override int Hash(BytesRef br){return Hash32(br.Bytes, br.Offset, br.Length);}
public override java.nio.DoubleBuffer get(double[] dst, int dstOffset, int doubleCount){byteBuffer.limit(_limit * libcore.io.SizeOf.DOUBLE);byteBuffer.position(_position * libcore.io.SizeOf.DOUBLE);if (byteBuffer is java.nio.DirectByteBuffer){((java.nio.DirectByteBuffer)byteBuffer).get(dst, dstOffset, doubleCount);}else{((java.nio.HeapByteBuffer)byteBuffer).get(dst, dstOffset, doubleCount);}this._position += doubleCount;return this;}
public virtual void append(int key, int value){if (mSize != 0 && key <= mKeys[mSize - 1]){put(key, value);return;}int pos = mSize;if (pos >= mKeys.Length){int n = android.util.@internal.ArrayUtils.idealIntArraySize(pos + 1);int[] nkeys = new int[n];int[] nvalues = new int[n];System.Array.Copy(mKeys, 0, nkeys, 0, mKeys.Length);System.Array.Copy(mValues, 0, nvalues, 0, mValues.Length);mKeys = nkeys;mValues = nvalues;}mKeys[pos] = key;mValues[pos] = value;mSize = pos + 1;}
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1, ValueEval arg2){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);ValueEval ve = OperandResolver.GetSingleValue(arg2, srcRowIndex, srcColumnIndex);bool? method = OperandResolver.CoerceValueToBoolean(ve, false);result = Evaluate(d0, d1);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}
public QueryAllGroupsRequest(): base("LinkFace", "2018-07-20", "QueryAllGroups"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
public virtual int Replace(char[] s, int len){if (m_replacement.Length > 0){Array.Copy(m_replacement, 0, s, len - m_suffix.Length, m_replacement.Length);}return len - m_suffix.Length + m_replacement.Length;}
public StandardSyntaxParserTokenManager(ICharStream stream){m_input_stream = stream;}
public string GetFullMessage(){byte[] raw = buffer;int msgB = RawParseUtils.CommitMessage(raw, 0);if (msgB < 0){return string.Empty;}System.Text.Encoding enc = RawParseUtils.ParseEncoding(raw);return RawParseUtils.Decode(enc, raw, msgB, raw.Length);}
public IRequest Marshall(GetPublicAccessBlockRequest getPublicAccessBlockRequest){IRequest request = new DefaultRequest(getPublicAccessBlockRequest, "AmazonS3");request.HttpMethod = "GET";if (string.IsNullOrEmpty(getPublicAccessBlockRequest.BucketName))throw new System.ArgumentException("BucketName is a required property and must be set before making this call.", "getPublicAccessBlockRequest.BucketName");request.MarshallerVersion = 2;request.ResourcePath = string.Concat("/", S3Transforms.ToStringValue(getPublicAccessBlockRequest.BucketName));request.AddSubResource("publicAccessBlock");request.UseQueryString = true;return request;}
public virtual ChangeTagsForResourceResponse ChangeTagsForResource(ChangeTagsForResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ChangeTagsForResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = ChangeTagsForResourceResponseUnmarshaller.Instance;return Invoke<ChangeTagsForResourceResponse>(request, options);}
public virtual void println(char c){println(c.ToString());}
public virtual RefUpdate.Result GetResult(){return result;}
public NPOI.SS.UserModel.IRow GetRow(int rowIndex){if (!rows.ContainsKey(rowIndex))return null;return (HSSFRow)rows[rowIndex];}
public override java.nio.LongBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.LONG);byteBuffer.position(_position * libcore.io.SizeOf.LONG);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.LongBuffer result = new java.nio.LongToByteBufferAdapter(bb);byteBuffer.clear();return result;}
public virtual void Append(byte[] name, FileMode mode, AnyObjectId id){Append(name, 0, name.Length, mode, id);}
public override string ToString(){return string.Format("mode({0})", mode);}
public virtual DescribeScriptResponse DescribeScript(DescribeScriptRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScriptRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScriptResponseUnmarshaller.Instance;return Invoke<DescribeScriptResponse>(request, options);}
public override string ToString(){return "NoMergePolicy";}
public virtual RevokeCacheSecurityGroupIngressResponse RevokeCacheSecurityGroupIngress(RevokeCacheSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeCacheSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeCacheSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke<RevokeCacheSecurityGroupIngressResponse>(request, options);}
public sealed override double get(int index){checkIndex(index);return backingArray[offset + index];}
public virtual DeleteVoiceConnectorTerminationResponse DeleteVoiceConnectorTermination(DeleteVoiceConnectorTerminationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorTerminationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceConnectorTerminationResponseUnmarshaller.Instance;return Invoke<DeleteVoiceConnectorTerminationResponse>(request, options);}
public FileTreeIterator(Repository repo) : this(repo.WorkTree, repo.FileSystem, repo.GetConfig().Get(WorkingTreeOptions.KEY)){InitRootIterator(repo);}
public ASCIIFoldingFilter(TokenStream input, bool preserveOriginal): base(input){this.preserveOriginal = preserveOriginal;termAtt = AddAttribute<ICharTermAttribute>();posIncAttr = AddAttribute<IPositionIncrementAttribute>();}
public sealed override java.nio.CharBuffer asCharBuffer(){return java.nio.CharToByteBufferAdapter.asCharBuffer(this);}
public override Object Clone(){return this; }
public virtual DescribeLifecycleHookTypesResponse DescribeLifecycleHookTypes(DescribeLifecycleHookTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLifecycleHookTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLifecycleHookTypesResponseUnmarshaller.Instance;return Invoke<DescribeLifecycleHookTypesResponse>(request, options);}
public virtual string getEncoding(){if (!isOpen()){return null;}return java.io.HistoricalCharsetNames.get(decoder.charset());}
public virtual RespondDecisionTaskCompletedResponse RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest request){var options = new InvokeOptions();options.RequestMarshaller = RespondDecisionTaskCompletedRequestMarshaller.Instance;options.ResponseUnmarshaller = RespondDecisionTaskCompletedResponseUnmarshaller.Instance;return Invoke<RespondDecisionTaskCompletedResponse>(request, options);}
public override void Close(){@in.Close();}
public GetStreamingDistributionRequest(string id){_id = id;}
public sealed override bool Equals(object o){return base.Equals(o);}
public override string ToString(){return "PackWriter.State[" + this.phase + ", memory=" + this.bytesUsed + "]";}
public virtual GetDirectoryResponse GetDirectory(GetDirectoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDirectoryRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDirectoryResponseUnmarshaller.Instance;return Invoke<GetDirectoryResponse>(request, options);}
public SoraniNormalizationFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
public virtual CreateSolutionVersionResponse CreateSolutionVersion(CreateSolutionVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSolutionVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSolutionVersionResponseUnmarshaller.Instance;return Invoke<CreateSolutionVersionResponse>(request, options);}
public virtual UpdateWorkteamResponse UpdateWorkteam(UpdateWorkteamRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateWorkteamRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateWorkteamResponseUnmarshaller.Instance;return Invoke<UpdateWorkteamResponse>(request, options);}
public java.util.regex.Matcher region(int start_1, int end_1){return reset(java.lang.CharSequenceProxy.Wrap(input), start_1, end_1);}
public override bool ContainsKey(object o){if (o == null){throw new ArgumentNullException("o");}return false;}
public UpdateServerCertificateRequest(string serverCertificateName){_serverCertificateName = serverCertificateName;}
public virtual int valueAt(int index){return mValues[index];}
public byte GetCharacterClass(char c){return characterCategoryMap[c];}
public int GetBinaryExponent(){return _binaryExponent;}
public virtual long GetOffset(){return offset;}
public virtual DescribeStackSetResponse DescribeStackSet(DescribeStackSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStackSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStackSetResponseUnmarshaller.Instance;return Invoke<DescribeStackSetResponse>(request, options);}
public override E get(int location){try{return listIterator(location).next();}catch (java.util.NoSuchElementException){throw new System.IndexOutOfRangeException();}}
public static bool IsComponentRecord(int sid){switch (sid){case ProtectRecord.sid:case ObjectProtectRecord.sid:case ScenarioProtectRecord.sid:case PasswordRecord.sid:return true;}return false;}
public override long GetFilePointer(){return main.GetFilePointer();}
public override String ToFormulaString(){return ""; }
public virtual bool Run(string s){int p = m_initial;int l = s.Length;for (int i = 0, cp = 0; i < l; i += Character.CharCount(cp)){p = Step(p, cp = Character.CodePointAt(s, i));if (p == -1) return false;}return m_accept[p];}
public virtual GetSchemaAsJsonResponse GetSchemaAsJson(GetSchemaAsJsonRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSchemaAsJsonRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSchemaAsJsonResponseUnmarshaller.Instance;return Invoke<GetSchemaAsJsonResponse>(request, options);}
public override T Set(int index, T element){if (index < 0 || size <= index){throw new IndexOutOfRangeException(index.ToString());}T[] blockRef = directory[ToDirectoryIndex(index)];int blockIdx = ToBlockIndex(index);T old = blockRef[blockIdx];blockRef[blockIdx] = element;return old;}
public virtual int Get(int index, long[] arr, int off, int len){Debug.Assert(len > 0, "len must be > 0 (got " + len + ")");Debug.Assert(index >= 0 && index < Count);Debug.Assert(off + len <= arr.Length);int gets = Math.Min(Count - index, len);for (int i = index, o = off, end = index + gets; i < end; ++i, ++o){arr[o] = Get(i);}return gets;}
public virtual void AddParseListener(IParseTreeListener listener){if (listener == null){throw new ArgumentNullException("listener");}if (_parseListeners == null){_parseListeners = new List<IParseTreeListener>();}this._parseListeners.Add(listener);}
public virtual CreateQueryLoggingConfigResponse CreateQueryLoggingConfig(CreateQueryLoggingConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateQueryLoggingConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateQueryLoggingConfigResponseUnmarshaller.Instance;return Invoke<CreateQueryLoggingConfigResponse>(request, options);}
public virtual SetIdentityFeedbackForwardingEnabledResponse SetIdentityFeedbackForwardingEnabled(SetIdentityFeedbackForwardingEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityFeedbackForwardingEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityFeedbackForwardingEnabledResponseUnmarshaller.Instance;return Invoke<SetIdentityFeedbackForwardingEnabledResponse>(request, options);}
public int GetValueAt(int relativeOffset){if (relativeOffset >= _values.Length){throw new IndexOutOfRangeException("Unable to fetch offset " + relativeOffset + " as the " +"BAT only contains " + _values.Length + " entries");}return _values[relativeOffset];}
public override bool Equals(object o){if (o == this){return true;}if (!(o is java.util.List<E>)){return false;}java.util.List<E> that = (java.util.List<E>)o;int s = _size;if (that.size() != s){return false;}object[] a = array;if (that is java.util.RandomAccess){{for (int i = 0; i < s; i++){object eThis = a[i];object ethat = that.get(i);if (eThis == null ? ethat != null : !eThis.Equals(ethat)){return false;}}}}else{java.util.Iterator<E> it = that.iterator();{for (int i = 0; i < s; i++){object eThis = a[i];object eThat = it.next();if (eThis == null ? eThat != null : !eThis.Equals(eThat)){return false;}}}}return true;}
public override bool Equals(object o){return o==this ||(o is ATNState && stateNumber == ((ATNState)o).stateNumber);}
public override EmptyTreeIterator CreateEmptyTreeIterator(){byte[] n = new byte[Math.Max(pathLen + 1, DEFAULT_PATH_SIZE)];System.Array.Copy(path, 0, n, 0, pathLen);n[pathLen] = (byte)('/');return new EmptyTreeIterator(this, n, pathLen + 1);}
public virtual bool isOverflow(){return this.type == TYPE_OVERFLOW;}
public virtual ListQueueTagsResponse ListQueueTags(ListQueueTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQueueTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQueueTagsResponseUnmarshaller.Instance;return Invoke<ListQueueTagsResponse>(request, options);}
public BuyOriginPicturesRequest(): base("lubancloud", "2018-05-09", "BuyOriginPictures", "luban", "openAPI"){Method = MethodType.POST;}
public static String CreateSafeSheetName(String nameProposal, char replaceChar) {if (nameProposal == null) {return "null";}if (nameProposal.Length < 1) {return "empty";}int length = Math.Min(31, nameProposal.Length);String shortenname = nameProposal.Substring(0, length);StringBuilder result = new StringBuilder(shortenname);for (int i=0; i<length; i++) {char ch = result[(i)];switch (ch) {case '\u0000':case '\u0003':case ':':case '/':case '\\':case '?':case '*':case ']':case '[':result[i] = replaceChar;break;case '\'':if (i==0 || i==length-1) {result[i] = replaceChar;}break;default:break;}}return result.ToString();}
public virtual string readLine(){throw new System.NotImplementedException();}
public virtual void SetParentIds(params ObjectId[] newParents){parentIds = new ObjectId[newParents.Length];for (int i = 0; i < newParents.Length; i++){parentIds[i] = newParents[i].Copy();}}
public LexerATNConfig(LexerATNConfig c, ATNState state,LexerActionExecutor lexerActionExecutor): base(c, state, c.context, c.semanticContext){this.lexerActionExecutor = lexerActionExecutor;this.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state);}