text
stringlengths
27
1.4k
public override string ToString(){StringBuilder r = new StringBuilder();r.Append(GetSeverity().ToString().ToLower());r.Append(": at offset ");r.Append(GetOffset());r.Append(": ");r.Append(GetMessage());r.Append("\n");r.Append(" in ");r.Append(GetLineText());return r.ToString();}
public override java.nio.IntBuffer slice(){return new java.nio.ReadWriteIntArrayBuffer(remaining(), backingArray, offset + _position);}
public virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance;return Invoke<DeleteApplicationResponse>(request, options);}
public TokenOffsetPayloadTokenFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
public override bool Equals(object o){if (this.GetType() != o.GetType()){return false;}var other = (MultiFunction)o;return JCG.ListEqualityComparer<ValueSource>.Default.Equals(this.m_sources, other.m_sources);}
public virtual SpanQuery GetSpanQuery(XmlElement e){ISpanQueryBuilder builder;if (!builders.TryGetValue(e.Name, out builder) || builder == null){throw new ParserException("No SpanQueryObjectBuilder defined for node " + e.Name);}return builder.GetSpanQuery(e);}
public virtual void IncRef(){int rc = refCount.IncrementAndGet();Debug.Assert(rc > 1);}
public String formula(){return _formula;}
public T RemoveTop(){T currentTop = top;if (iter.MoveNext()){top = iter.Current;}else{top = default(T);}return currentTop;}
public virtual ObjectId GetExpectedOldObjectId(){return expValue;}
public DefaultPassageFormatter(string preTag, string postTag, string ellipsis, bool escape){if (preTag == null || postTag == null || ellipsis == null){throw new ArgumentException(); }this.m_preTag = preTag;this.m_postTag = postTag;this.m_ellipsis = ellipsis;this.m_escape = escape;}
public virtual UpdateImagePermissionsResponse UpdateImagePermissions(UpdateImagePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateImagePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateImagePermissionsResponseUnmarshaller.Instance;return Invoke<UpdateImagePermissionsResponse>(request, options);}
public virtual ListCustomVerificationEmailTemplatesResponse ListCustomVerificationEmailTemplates(ListCustomVerificationEmailTemplatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCustomVerificationEmailTemplatesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCustomVerificationEmailTemplatesResponseUnmarshaller.Instance;return Invoke<ListCustomVerificationEmailTemplatesResponse>(request, options);}
public virtual int read(byte[] buffer, int byteOffset, int byteCount){throw new System.NotImplementedException();}
public StringCharacterIterator(string value, int location){@string = value;start = 0;end = @string.Length;if (location < 0 || location > end){throw new System.ArgumentException();}offset = location;}
public virtual DeleteQueryLoggingConfigResponse DeleteQueryLoggingConfig(DeleteQueryLoggingConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteQueryLoggingConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteQueryLoggingConfigResponseUnmarshaller.Instance;return Invoke<DeleteQueryLoggingConfigResponse>(request, options);}
public InvalidPatternException(string message, string pattern) : base(message){this.pattern = pattern;}
public int ResolveNameXIx(int refIndex, int definedNameIndex){int extBookIndex = _externSheetRecord.GetExtbookIndexFromRefIndex(refIndex);return _externalBookBlocks[extBookIndex].GetNameIx(definedNameIndex);}
public override bool Equals(object obj){if (this == obj){return true;}if (!base.Equals(obj)){return false;}if (this.GetType() != obj.GetType()){return false;}FuzzyQuery other = (FuzzyQuery)obj;if (maxEdits != other.maxEdits){return false;}if (prefixLength != other.prefixLength){return false;}if (maxExpansions != other.maxExpansions){return false;}if (transpositions != other.transpositions){return false;}if (term == null){if (other.term != null){return false;}}else if (!term.Equals(other.term)){return false;}return true;}
public virtual Term GetLuceneTerm(string fieldName){return new Term(fieldName, TermText);}
public static MessageDigest NewMessageDigest(){try{return MessageDigest.GetInstance(HASH_FUNCTION);}catch (NoSuchAlgorithmException nsae){throw new RuntimeException(MessageFormat.Format(JGitText.Get().requiredHashFunctionNotAvailable, HASH_FUNCTION), nsae);}}
public virtual void reset(){lock (@lock){count = 0;}}
public HyphenationTree(){m_stoplist = new JCG.Dictionary<string, IList<object>>(23); m_classmap = new TernaryTree();m_vspace = new ByteVector();m_vspace.Alloc(1); }
public virtual DescribeCollectionResponse DescribeCollection(DescribeCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCollectionResponseUnmarshaller.Instance;return Invoke<DescribeCollectionResponse>(request, options);}
public java.lang.StringBuffer insert(int index, char[] chars){lock (this){insert0(index, chars);return this;}}
public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long byte0 = blocks[blocksOffset++] & 0xFF;long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 2) | ((long)((ulong)byte1 >> 6));long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 63) << 4) | ((long)((ulong)byte2 >> 4));long byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 6) | ((long)((ulong)byte3 >> 2));long byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 3) << 8) | byte4;}}
public GetSearchRequest(): base("cr", "2016-06-07", "GetSearch", "cr", "openAPI"){UriPattern = "/search-delete";Method = MethodType.GET;}
public virtual void Consume(){bool skipEofCheck;if (p >= 0){if (fetchedEOF){skipEofCheck = p < tokens.Count - 1;}else{skipEofCheck = p < tokens.Count;}}else{skipEofCheck = false;}if (!skipEofCheck && LA(1) == IntStreamConstants.EOF){throw new InvalidOperationException("cannot consume EOF");}if (Sync(p + 1)){p = AdjustSeekIndex(p + 1);}}
public virtual CharBlockArray Append(string s){int remain = s.Length;int offset = 0;while (remain > 0){if (this.current.length == this.blockSize){AddBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy){toCopy = remainingInBlock;}s.CopyTo(offset, this.current.chars, this.current.length, toCopy);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += s.Length;return this;}
public virtual ConfigureHealthCheckResponse ConfigureHealthCheck(ConfigureHealthCheckRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfigureHealthCheckRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfigureHealthCheckResponseUnmarshaller.Instance;return Invoke<ConfigureHealthCheckResponse>(request, options);}
public CommonRoaRequest(string product) : base(product){AcceptFormat = FormatType.JSON;}
public static int StrLen(char[] a){return StrLen(a, 0);}
public virtual void SetReaderValue(TextReader value){if (!(FieldsData is TextReader)){throw new ArgumentException("cannot change value type from " + FieldsData.GetType().Name + " to TextReader");}FieldsData = value;}
public virtual DeleteUsagePlanResponse DeleteUsagePlan(DeleteUsagePlanRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUsagePlanRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUsagePlanResponseUnmarshaller.Instance;return Invoke<DeleteUsagePlanResponse>(request, options);}
public virtual DeleteThreatIntelSetResponse DeleteThreatIntelSet(DeleteThreatIntelSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteThreatIntelSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteThreatIntelSetResponseUnmarshaller.Instance;return Invoke<DeleteThreatIntelSetResponse>(request, options);}
public virtual DescribePlacementGroupsResponse DescribePlacementGroups(DescribePlacementGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePlacementGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePlacementGroupsResponseUnmarshaller.Instance;return Invoke<DescribePlacementGroupsResponse>(request, options);}
public virtual EnableAddOnResponse EnableAddOn(EnableAddOnRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableAddOnRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableAddOnResponseUnmarshaller.Instance;return Invoke<EnableAddOnResponse>(request, options);}
public override RevFilter Clone(){RevFilter[] s = new RevFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new AndRevFilter.List(s);}
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;return Invoke<ListTagsForResourceResponse>(request, options);}
public virtual WeightedSpanTerm GetWeightedSpanTerm(string token){WeightedSpanTerm result;fieldWeightedSpanTerms.TryGetValue(token, out result);return result;}
public Slope(){func = new LinearRegressionFunction(LinearRegressionFunction.FUNCTION.SLOPE);}
public override string ToStringUnquoted(){return Truncated;}
public virtual UpdateSubnetGroupResponse UpdateSubnetGroup(UpdateSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSubnetGroupResponseUnmarshaller.Instance;return Invoke<UpdateSubnetGroupResponse>(request, options);}
public void Remove(int index){CheckIndex(index);_cfHeaders.RemoveAt(index);}
public static long Pop_Intersect(long[] arr1, long[] arr2, int wordOffset, int numWords){long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i){popCount += (arr1[i] & arr2[i]).PopCount();}return popCount;}
public override bool ShouldBeRecursive(){return true;}
public JapaneseBaseFormFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new ArgumentException("Unknown parameters: " + args);}}
public override void VisitContainedRecords(RecordVisitor rv){rv.VisitRecord(header);for (int i = 0; i < rules.Count; i++){CFRuleRecord rule = rules[i];rv.VisitRecord(rule);}}
public void DumpDrawingGroupRecords(bool fat){DrawingGroupRecord r = (DrawingGroupRecord)workbook.FindFirstRecordBySid(DrawingGroupRecord.sid);r.Decode();IList escherRecords = r.EscherRecords;for (IEnumerator iterator = escherRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord escherRecord = (EscherRecord)iterator.Current;if (fat)Console.WriteLine(escherRecord.ToString());elseescherRecord.Display(0);}}
public virtual int GetLinesDeleted(){return nDeleted;}
public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(_offset).Append("...").Append(LastIndex);sb.Append("]");return sb.ToString();}
public int[] Compact(){Debug.Assert(bytesStart != null, "bytesStart is null - not initialized");int upto = 0;for (int i = 0; i < hashSize; i++){if (ids[i] != -1){if (upto < i){ids[upto] = ids[i];ids[i] = -1;}upto++;}}Debug.Assert(upto == count);lastCount = count;return ids;}
public AccessKey(string userName, string accessKeyId, StatusType status, string secretAccessKey){_userName = userName;_accessKeyId = accessKeyId;_status = status;_secretAccessKey = secretAccessKey;}
public virtual GetDomainResponse GetDomain(GetDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainResponseUnmarshaller.Instance;return Invoke<GetDomainResponse>(request, options);}
public virtual ListTypeRegistrationsResponse ListTypeRegistrations(ListTypeRegistrationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTypeRegistrationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTypeRegistrationsResponseUnmarshaller.Instance;return Invoke<ListTypeRegistrationsResponse>(request, options);}
public virtual bool IsSymbolic(){return false;}
public DeleteTableRequest(string tableName){_tableName = tableName;}
public virtual UpdateAccountSettingsResponse UpdateAccountSettings(UpdateAccountSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAccountSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAccountSettingsResponseUnmarshaller.Instance;return Invoke<UpdateAccountSettingsResponse>(request, options);}
public SearcherTracker(IndexSearcher searcher){Searcher = searcher;Version = ((DirectoryReader)searcher.IndexReader).Version;searcher.IndexReader.IncRef();RecordTimeSec = Time.NanoTime() / NANOS_PER_SEC;}
public Principal(string accountId): this(AWS_PROVIDER, accountId){if (accountId == null){throw new ArgumentNullException("accountId");}}
public V setValue(V @object){V result = value;value = @object;return result;}
public ListMomentPhotosRequest(): base("CloudPhoto", "2017-07-11", "ListMomentPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
public virtual bool Contains(object o){return map.ContainsKey(o);}
public LinearOffsetRange(int offset, int length){if (length == 0){throw new ArgumentException("Length may not be zero");}_offset = offset;_Length = length;}
public virtual ListPipelinesResponse ListPipelines(){return ListPipelines(new ListPipelinesRequest());}
public static bool IndexExists(Directory directory){string[] files;try{files = directory.ListAll();} catch (DirectoryNotFoundException nsde) {return false;}if (files != null){string prefix = IndexFileNames.SEGMENTS + "_";foreach (string file in files){if (file.StartsWith(prefix, StringComparison.Ordinal) || file.Equals(IndexFileNames.SEGMENTS_GEN, StringComparison.Ordinal)){return true;}}}return false;}
public virtual DisassociateFromMasterAccountResponse DisassociateFromMasterAccount(DisassociateFromMasterAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateFromMasterAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateFromMasterAccountResponseUnmarshaller.Instance;return Invoke<DisassociateFromMasterAccountResponse>(request, options);}
public virtual GetVoiceTemplateResponse GetVoiceTemplate(GetVoiceTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceTemplateResponseUnmarshaller.Instance;return Invoke<GetVoiceTemplateResponse>(request, options);}
public virtual long RamBytesUsed(){return RamUsageEstimator.SizeOf(_filter.GetBits());}
public virtual RejectInvitationResponse RejectInvitation(RejectInvitationRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectInvitationRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectInvitationResponseUnmarshaller.Instance;return Invoke<RejectInvitationResponse>(request, options);}
public virtual RejectQualificationRequestResponse RejectQualificationRequest(RejectQualificationRequestRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectQualificationRequestRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectQualificationRequestResponseUnmarshaller.Instance;return Invoke<RejectQualificationRequestResponse>(request, options);}
public sealed override object array(){return protectedArray();}
public virtual void writeChars(string value){throw new System.NotImplementedException();}
public override void Finish(FieldInfos fis, int numDocs){if (_numDocsWritten != numDocs){throw new Exception("mergeVectors produced an invalid result: mergedDocs is " + numDocs +" but vec numDocs is " + _numDocsWritten + " file=" + _output +"; now aborting this merge to prevent index corruption");}Write(END);NewLine();SimpleTextUtil.WriteChecksum(_output, _scratch);}
public override void ReadBytes(byte[] b, int offset, int len){while (len > 0){int cnt = _reader.Read(b, offset, len);if (cnt < 0){throw new EndOfStreamException();}len -= cnt;offset += cnt;}}
public override long RamBytesUsed(){long sizeInBytes = 0;foreach (KeyValuePair<string, FieldsProducer> entry in formats){sizeInBytes += entry.Key.Length * RamUsageEstimator.NUM_BYTES_CHAR;sizeInBytes += entry.Value.RamBytesUsed();}return sizeInBytes;}
public override bool Equals(object obj){if (this == obj){return true;}if (null == obj || this.GetType() != obj.GetType()){return false;}JaroWinklerDistance o = (JaroWinklerDistance)obj;return (J2N.BitConversion.SingleToInt32Bits(o.threshold) == J2N.BitConversion.SingleToInt32Bits(this.threshold));}
public virtual NGit.BatchRefUpdate AddCommand(ReceiveCommand cmd){commands.AddItem(cmd);return this;}
public override void Write(byte[] buf, int off, int len){try{BeginWrite();dst.Write(buf, off, len);}catch (ThreadInterruptedException){throw WriteTimedOut();}finally{EndWrite();}}
public virtual DeregisterGameServerResponse DeregisterGameServer(DeregisterGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterGameServerResponseUnmarshaller.Instance;return Invoke<DeregisterGameServerResponse>(request, options);}
public void Write(byte[] b){try{out1.Write(b, 0, b.Length);}catch (IOException e){throw new RuntimeException(e);}}
public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol){return symbol >= from && symbol <= to;}
public override void Finish(FieldInfos fis, int numDocs){if (numBufferedDocs > 0){Flush();}else{Debug.Assert(bufferedDocs.Length == 0);}if (docBase != numDocs){throw new Exception("Wrote " + docBase + " docs, finish called with numDocs=" + numDocs);}indexWriter.Finish(numDocs, fieldsStream.GetFilePointer());CodecUtil.WriteFooter(fieldsStream);Debug.Assert(bufferedDocs.Length == 0);}
public override Sharpen.Iterator<string> Iterator(){Sharpen.Iterator<string> i = names.Values.Iterator();return new _Iterator_276(i);}
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[DEFAULTCOLWIDTH]\n");buffer.Append(" .colwidth = ").Append(StringUtil.ToHexString(ColWidth)).Append("\n");buffer.Append("[/DEFAULTCOLWIDTH]\n");return buffer.ToString();}
public DataValidityTable(RecordStream rs){_headerRec = (DVALRecord)rs.GetNext();IList temp = new ArrayList();while (rs.PeekNextClass() == typeof(DVRecord)){temp.Add(rs.GetNext());}_validationList = temp;}
public virtual DeleteRoomMembershipResponse DeleteRoomMembership(DeleteRoomMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRoomMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRoomMembershipResponseUnmarshaller.Instance;return Invoke<DeleteRoomMembershipResponse>(request, options);}
public QueryParserTokenManager(ICharStream stream, int lexState):this(stream){SwitchTo(lexState);}
public RebootDBInstanceRequest(string dbInstanceIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;}
public virtual CreateAutoScalingGroupResponse CreateAutoScalingGroup(CreateAutoScalingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAutoScalingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAutoScalingGroupResponseUnmarshaller.Instance;return Invoke<CreateAutoScalingGroupResponse>(request, options);}
public K floorKey(K key){java.util.MapClass.Entry<K, V> entry = this.findBounded(key, java.util.TreeMap.Relation.FLOOR);return entry != null ? entry.getKey() : default(K);}
public override bool Include(RevWalk walker, RevCommit c){return true;}
public virtual bool isValidating(){return getFeature(org.xmlpull.v1.XmlPullParserClass.FEATURE_VALIDATION);}
public override void write(int oneByte){lock (this){if (@out == null){setError();return;}try{@out.write(oneByte);int b = oneByte & unchecked((int)(0xFF));bool isNewline = b == unchecked((int)(0x0A)) || b == unchecked((int)(0x15));if (autoFlush && isNewline){flush();}}catch (System.IO.IOException){setError();}}}
public virtual UpdateScalingParametersResponse UpdateScalingParameters(UpdateScalingParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateScalingParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateScalingParametersResponseUnmarshaller.Instance;return Invoke<UpdateScalingParametersResponse>(request, options);}
public virtual ModifyDBClusterParameterGroupResponse ModifyDBClusterParameterGroup(ModifyDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBClusterParameterGroupResponseUnmarshaller.Instance;return Invoke<ModifyDBClusterParameterGroupResponse>(request, options);}
public virtual GetOperationsForResourceResponse GetOperationsForResource(GetOperationsForResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOperationsForResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOperationsForResourceResponseUnmarshaller.Instance;return Invoke<GetOperationsForResourceResponse>(request, options);}
public NLPTokenizerOp(TokenizerModel model){tokenizer = new TokenizerME(model);}
public StartImageScanRequest(): base("cr", "2016-06-07", "StartImageScan", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan";Method = MethodType.PUT;}
public virtual UpdateFleetResponse UpdateFleet(UpdateFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetResponseUnmarshaller.Instance;return Invoke<UpdateFleetResponse>(request, options);}