text
stringlengths
27
1.4k
public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}
public virtual DescribeJobFlowsResponse DescribeJobFlows(){return DescribeJobFlows(new DescribeJobFlowsRequest());}
public override float Tf(float freq){return BaselineTf(freq);}
public virtual DescribePublishingDestinationResponse DescribePublishingDestination(DescribePublishingDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePublishingDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePublishingDestinationResponseUnmarshaller.Instance;return Invoke<DescribePublishingDestinationResponse>(request, options);}
public int GetLeftId(int wordId){return LEFT_ID;}
public static NormalisedDecimal Create(BigInteger frac, int binaryExponent){int pow10;if (binaryExponent > 49 || binaryExponent < 46){int x = (29 << 19) - binaryExponent * LOG_BASE_10_OF_2_TIMES_2_POW_20;x += C_2_POW_19; pow10 = -(x >> 20);}else{pow10 = 0;}MutableFPNumber cc = new MutableFPNumber(frac, binaryExponent);if (pow10 != 0){cc.multiplyByPowerOfTen(-pow10);}switch (cc.Get64BitNormalisedExponent()){case 46:if (cc.IsAboveMinRep()){break;}goto case 44;case 44:case 45:cc.multiplyByPowerOfTen(1);pow10--;break;case 47:case 48:break;case 49:if (cc.IsBelowMaxRep()){break;}goto case 50;case 50:cc.multiplyByPowerOfTen(-1);pow10++;break;default:throw new InvalidOperationException("Bad binary exp " + cc.Get64BitNormalisedExponent() + ".");}cc.Normalise64bit();return cc.CreateNormalisedDecimal(pow10);}
public override string ToString(){return "DoubleRange(" + minIncl + " to " + maxIncl + ")";}
public virtual void SetRefLogIdent(PersonIdent pi){destination.SetRefLogIdent(pi);}
public void YyBegin(int newState){zzLexicalState = newState;}
public Trie(bool forward){rows.Add(new Row());root = 0;this.forward = forward;}
public DeleteTagsRequest(List<string> resources){_resources = resources;}
public override Object Clone(){ObjectProtectRecord rec = new ObjectProtectRecord();rec.field_1_protect = field_1_protect;return rec;}
public static FuncVarPtg Create(String pName, int numArgs){return Create(numArgs, LookupIndex(pName));}
public virtual void Clear(){this.processors.Clear();}
public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteDouble(Value);}
public NullReader(int valueCount){this.valueCount = valueCount;}
public virtual CreateVaultResponse CreateVault(CreateVaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVaultRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVaultResponseUnmarshaller.Instance;return Invoke<CreateVaultResponse>(request, options);}
public override void add(int index, E @object){object[] a = array;int s = _size;if (index > s || index < 0){throwIndexOutOfBoundsException(index, s);}if (s < a.Length){System.Array.Copy(a, index, a, index + 1, s - index);}else{object[] newArray = new object[newCapacity(s)];System.Array.Copy(a, 0, newArray, 0, index);System.Array.Copy(a, index, newArray, index + 1, s - index);array = a = newArray;}a[index] = @object;_size = s + 1;modCount++;}
public override int Read(char[] c, int off, int len){if (pos < size){len = Math.Min(len, size - pos);s.CopyTo(pos, c, off, pos + len - pos);pos += len;return len;}else{s = null;return -1;}}
public virtual DeleteDeploymentResponse DeleteDeployment(DeleteDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeploymentResponseUnmarshaller.Instance;return Invoke<DeleteDeploymentResponse>(request, options);}
public override string ToString(){return this.GetType().Name + "(bitsPerValue=" + m_bitsPerValue + ", size=" + Count + ", elements.length=" + blocks.Length + ")";}
public VectorValueSource(IList<ValueSource> sources){this.m_sources = sources;}
public HSSFShape(HSSFShape parent, HSSFAnchor anchor){this.parent = parent;this.anchor = anchor;this._escherContainer = CreateSpContainer();_optRecord = (EscherOptRecord)_escherContainer.GetChildById(EscherOptRecord.RECORD_ID);_objRecord = CreateObjRecord();}
public GalicianMinimalStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
public virtual DescribeFpgaImageAttributeResponse DescribeFpgaImageAttribute(DescribeFpgaImageAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFpgaImageAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFpgaImageAttributeResponseUnmarshaller.Instance;return Invoke<DescribeFpgaImageAttributeResponse>(request, options);}
public override ValueFiller GetValueFiller(){return new ValueFillerAnonymousInnerClassHelper(this);}
public static int Update(int hash, object value){return Update(hash, value != null ? value.GetHashCode() : 0);}
public virtual DescribeModelVersionsResponse DescribeModelVersions(DescribeModelVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeModelVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeModelVersionsResponseUnmarshaller.Instance;return Invoke<DescribeModelVersionsResponse>(request, options);}
public static IndexCommit FindIndexCommit(Store.Directory dir, string userData){IList<IndexCommit> commits = DirectoryReader.ListCommits(dir);foreach (IndexCommit ic in commits){IDictionary<string, string> map = ic.UserData;string ud = null;if (map != null){map.TryGetValue(USER_DATA, out ud);}if (ud != null && ud.Equals(userData, StringComparison.Ordinal)){return ic;}}throw new IOException("index does not contain commit with userData: " + userData);}
public IndexEnum(FST<long?> fst){fstEnum = new BytesRefFSTEnum<long?>(fst);}
public HSSFEvaluationSheet(HSSFSheet hs){_hs = hs;}
public virtual void Update(int b){if (upto == buffer.Length){Flush();}buffer[upto++] = (byte)b;}
public virtual PutPartnerEventsResponse PutPartnerEvents(PutPartnerEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutPartnerEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutPartnerEventsResponseUnmarshaller.Instance;return Invoke<PutPartnerEventsResponse>(request, options);}
public virtual bool IsThin(){return thin;}
public virtual string ToStringTree(){return ToString();}
public PackConfig(Repository db){FromConfig(db.GetConfig());}
public virtual void SetDeltaCompress(bool deltaCompress){this.deltaCompress = deltaCompress;}
public virtual ListTrafficPolicyInstancesByHostedZoneResponse ListTrafficPolicyInstancesByHostedZone(ListTrafficPolicyInstancesByHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrafficPolicyInstancesByHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrafficPolicyInstancesByHostedZoneResponseUnmarshaller.Instance;return Invoke<ListTrafficPolicyInstancesByHostedZoneResponse>(request, options);}
public EscherRecord FindFirstWithId(short id){return FindFirstWithId(id, EscherRecords);}
public virtual byte[] GetEntryPathBuffer(){return path;}
public void SetFont(Font f){font = f;}
public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){int byte0 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (int)((uint)byte0 >> 2);int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 4) | ((int)((uint)byte1 >> 4));int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 15) << 2) | ((int)((uint)byte2 >> 6));values[valuesOffset++] = byte2 & 63;}}
public bool hasAnchoringBounds(){return anchoringBounds;}
public void DrawPolygon(int[] xPoints, int[] yPoints, int nPoints){int right = FindBiggest(xPoints);int bottom = FindBiggest(yPoints);int left = FindSmallest(xPoints);int top = FindSmallest(yPoints);HSSFPolygon shape = escherGroup.CreatePolygon(new HSSFChildAnchor(left, top, right, bottom));shape.SetPolygonDrawArea(right - left, bottom - top);shape.SetPoints(AddToAll(xPoints, -left), AddToAll(yPoints, -top));shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);shape.LineWidth = (0);shape.IsNoFill = (true);}
public new string GetAccessKeyId(){return GetCredentials().GetAccessKeyId();}
public virtual PutDedicatedIpWarmupAttributesResponse PutDedicatedIpWarmupAttributes(PutDedicatedIpWarmupAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutDedicatedIpWarmupAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutDedicatedIpWarmupAttributesResponseUnmarshaller.Instance;return Invoke<PutDedicatedIpWarmupAttributesResponse>(request, options);}
public virtual void print(char ch){print(ch.ToString());}
public virtual string BuildExtensionField(string extensionKey){return BuildExtensionField(extensionKey, "");}
public virtual CompareFacesResponse CompareFaces(CompareFacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = CompareFacesRequestMarshaller.Instance;options.ResponseUnmarshaller = CompareFacesResponseUnmarshaller.Instance;return Invoke<CompareFacesResponse>(request, options);}
public PatchFormatException(IList<FormatError> errors) : base(MessageFormat.Format(JGitText.Get().patchFormatException, errors)){this.errors = errors;}
public virtual string Finish(){sb.Append(FormatTrailer());return sb.ToString();}
public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}for (int i = 0; i < m_maxLevels - 1; i++){if (dist > levelW[i] && dist > levelH[i]){return i + 1;}}return m_maxLevels;}
public override int[] Init(){int[] ord = base.Init();boost = new float[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_SINGLE)];termState = new TermContext[ArrayUtil.Oversize(ord.Length, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];Debug.Assert(termState.Length >= ord.Length && boost.Length >= ord.Length);return ord;}
public void YyReset(TextReader reader){zzReader = reader;zzAtBOL = true;zzAtEOF = false;zzEOFDone = false;zzEndRead = zzStartRead = 0;zzCurrentPos = zzMarkedPos = 0;yyline = yyChar = yycolumn = 0;zzLexicalState = YYINITIAL;if (zzBuffer.Length > ZZ_BUFFERSIZE){zzBuffer = new char[ZZ_BUFFERSIZE];}}
public override void DeleteFile(string name){throw new NotSupportedException();}
public virtual StopTrainingDocumentClassifierResponse StopTrainingDocumentClassifier(StopTrainingDocumentClassifierRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTrainingDocumentClassifierRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTrainingDocumentClassifierResponseUnmarshaller.Instance;return Invoke<StopTrainingDocumentClassifierResponse>(request, options);}
public TermStats(int docFreq, long totalTermFreq){this.DocFreq = docFreq;this.TotalTermFreq = totalTermFreq;}
public virtual GetAuthorizersResponse GetAuthorizers(GetAuthorizersRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAuthorizersRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAuthorizersResponseUnmarshaller.Instance;return Invoke<GetAuthorizersResponse>(request, options);}
public virtual void Dispatch(RepositoryEvent @event){IList<ListenerHandle> list = lists.Get(@event.GetListenerType());if (list != null){foreach (ListenerHandle handle in list){@event.Dispatch(handle.listener);}}}
public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append("spanNot(");buffer.Append(include.ToString(field));buffer.Append(", ");buffer.Append(exclude.ToString(field));buffer.Append(", ");buffer.Append(Convert.ToString(pre));buffer.Append(", ");buffer.Append(Convert.ToString(post));buffer.Append(")");buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}
public virtual SearchGameSessionsResponse SearchGameSessions(SearchGameSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchGameSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchGameSessionsResponseUnmarshaller.Instance;return Invoke<SearchGameSessionsResponse>(request, options);}
public virtual int Stem(char[] s, int len){if (len < 4){return len;}for (int i = 0; i < len; i++){switch (s[i]){case 'ä':case 'å':s[i] = 'a';break;case 'ö':s[i] = 'o';break;}}len = Step1(s, len);len = Step2(s, len);len = Step3(s, len);len = Norm1(s, len);len = Norm2(s, len);return len;}
public virtual PutConfigurationSetReputationOptionsResponse PutConfigurationSetReputationOptions(PutConfigurationSetReputationOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetReputationOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetReputationOptionsResponseUnmarshaller.Instance;return Invoke<PutConfigurationSetReputationOptionsResponse>(request, options);}
public virtual ListAttendeeTagsResponse ListAttendeeTags(ListAttendeeTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAttendeeTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAttendeeTagsResponseUnmarshaller.Instance;return Invoke<ListAttendeeTagsResponse>(request, options);}
public static void ValidateSheetName(String sheetName) {if (sheetName == null) {throw new ArgumentException("sheetName must not be null");}int len = sheetName.Length;if (len < 1 || len > 31) {throw new ArgumentException("sheetName '" + sheetName+ "' is invalid - character count MUST be greater than or equal to 1 and less than or equal to 31");}for (int i=0; i<len; i++) {char ch = sheetName[i];switch (ch) {case '/':case '\\':case '?':case '*':case ']':case '[':case ':':break;default:continue;}throw new ArgumentException("Invalid char (" + ch+ ") found at index (" + i + ") in sheet name '" + sheetName + "'");}if (sheetName[0] == '\'' || sheetName[len-1] == '\'') {throw new ArgumentException("Invalid sheet name '" + sheetName+ "'. Sheet names must not begin or end with (').");}}
public long GetPosition(){return outerInstance.GetPointer();}
public virtual void Reset(DataOutput @out){Debug.Assert(@out != null);this.m_out = @out;m_off = 0;m_ord = 0L;m_finished = false;}
public override string ToString(string field){var buffer = new StringBuilder();if (!term.Field.Equals(field, StringComparison.Ordinal)){buffer.Append(term.Field);buffer.Append(":");}buffer.Append(term.Text());buffer.Append('~');buffer.Append(Convert.ToString(maxEdits));buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}
public override RevFilter Clone(){return new NGit.Revwalk.Filter.MaxCountRevFilter(maxCount);}
public virtual DisableUserResponse DisableUser(DisableUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableUserRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableUserResponseUnmarshaller.Instance;return Invoke<DisableUserResponse>(request, options);}
public virtual void Append(string stringToMatch){for (int i = 0; i < stringToMatch.Length; i++){char c = stringToMatch[i];ExtendStringToMatchByOneCharacter(c);}}
public virtual StopTrainingJobResponse StopTrainingJob(StopTrainingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTrainingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTrainingJobResponseUnmarshaller.Instance;return Invoke<StopTrainingJobResponse>(request, options);}
public override IndexInput OpenInput(string name, IOContext context){lock (this){EnsureOpen();Debug.Assert(!openForWrite);string id = IndexFileNames.StripSegmentName(name);if (!entries.TryGetValue(id, out FileEntry entry) || entry == null){throw new FileNotFoundException("No sub-file with id " + id +" found (fileName=" + name + " files: " +string.Format(J2N.Text.StringFormatter.InvariantCulture, "{0}", entries.Keys) + ")");}return handle.OpenSlice(name, entry.Offset, entry.Length);}}
public virtual GetSnowballUsageResponse GetSnowballUsage(GetSnowballUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSnowballUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSnowballUsageResponseUnmarshaller.Instance;return Invoke<GetSnowballUsageResponse>(request, options);}
public virtual DeleteUserProfileResponse DeleteUserProfile(DeleteUserProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUserProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUserProfileResponseUnmarshaller.Instance;return Invoke<DeleteUserProfileResponse>(request, options);}
public virtual int Compare(ConfigLine a, ConfigLine b){var value = Compare2(a.section, a.subsection, a.name, b.section, b.subsection, b.name);return value != 0 ? value : string.CompareOrdinal (a.value, b.value);}
public override java.nio.LongBuffer asReadOnlyBuffer(){return duplicate();}
public IComment CreateCellComment(IClientAnchor anchor){return CreateComment((HSSFAnchor)anchor);}
public CollatedTermAttributeImpl(Collator collator){this.collator = (Collator)collator.Clone();}
public virtual UpdatePipelineStatusResponse UpdatePipelineStatus(UpdatePipelineStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePipelineStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePipelineStatusResponseUnmarshaller.Instance;return Invoke<UpdatePipelineStatusResponse>(request, options);}
public virtual void CopyTo(char[] tmp, StringBuilder w){ToHexCharArray(tmp);w.Append(tmp, 0, Constants.OBJECT_ID_STRING_LENGTH);}
public FST.BytesReader GetBytesReader(){if (fst == null){return null;}else{return fst.GetBytesReader();}}
public virtual CreateRouteTableResponse CreateRouteTable(CreateRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRouteTableResponseUnmarshaller.Instance;return Invoke<CreateRouteTableResponse>(request, options);}
public override string ToString(string field){return "ToParentBlockJoinQuery (" + _childQuery + ")";}
public virtual DisassociateClientVpnTargetNetworkResponse DisassociateClientVpnTargetNetwork(DisassociateClientVpnTargetNetworkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateClientVpnTargetNetworkRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateClientVpnTargetNetworkResponseUnmarshaller.Instance;return Invoke<DisassociateClientVpnTargetNetworkResponse>(request, options);}
public override string ToString(){return "<slop value='" + GetValueString() + "'>" + "\n"+ GetChild().ToString() + "\n</slop>";}
public virtual GetExportJobsResponse GetExportJobs(GetExportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetExportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetExportJobsResponseUnmarshaller.Instance;return Invoke<GetExportJobsResponse>(request, options);}
public virtual UpdateBaiduChannelResponse UpdateBaiduChannel(UpdateBaiduChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBaiduChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBaiduChannelResponseUnmarshaller.Instance;return Invoke<UpdateBaiduChannelResponse>(request, options);}
public virtual ImportApiResponse ImportApi(ImportApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportApiRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportApiResponseUnmarshaller.Instance;return Invoke<ImportApiResponse>(request, options);}
public override int read(){lock (this){return pos < count ? buffer[pos++] & unchecked((int)(0xFF)) : -1;}}
public virtual GetUserResponse GetUser(GetUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUserRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUserResponseUnmarshaller.Instance;return Invoke<GetUserResponse>(request, options);}
public virtual GetHealthCheckLastFailureReasonResponse GetHealthCheckLastFailureReason(GetHealthCheckLastFailureReasonRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHealthCheckLastFailureReasonRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHealthCheckLastFailureReasonResponseUnmarshaller.Instance;return Invoke<GetHealthCheckLastFailureReasonResponse>(request, options);}
public string getRawQuery(){return query;}
public static void fill(long[] array, int start, int end, long value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}
public override bool Equals(object obj){if (obj is StatePair){StatePair p = (StatePair)obj;return p.S1 == S1 && p.S2 == S2;}else{return false;}}
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[OLD STRING]\n");buffer.Append(" .string = ").Append(GetString()).Append("\n");buffer.Append("[/OLD STRING]\n");return buffer.ToString();}
public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExecutePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = ExecutePolicyResponseUnmarshaller.Instance;return Invoke<ExecutePolicyResponse>(request, options);}
public virtual UpdateEmailTemplateResponse UpdateEmailTemplate(UpdateEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEmailTemplateResponseUnmarshaller.Instance;return Invoke<UpdateEmailTemplateResponse>(request, options);}
public bool EqualsContents(Object o){CustomProperty c = (CustomProperty)o;String name1 = c.Name;String name2 = this.Name;bool equalNames = true;if (name1 == null)equalNames = name2 == null;elseequalNames = name1.Equals(name2);return equalNames && c.ID == this.ID&& c.Type == this.Type&& c.Value.Equals(this.Value);}
public DuplicateFormatFlagsException(string f){if (f == null){throw new System.ArgumentNullException();}flags = f;}