text
stringlengths
27
1.4k
public virtual DescribeCacheParametersResponse DescribeCacheParameters(DescribeCacheParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCacheParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCacheParametersResponseUnmarshaller.Instance;return Invoke<DescribeCacheParametersResponse>(request, options);}
public SimpleFraction(int numerator, int denominator){this.numerator = numerator;this.denominator = denominator;}
public static int idealBooleanArraySize(int need){return idealByteArraySize(need);}
public virtual SubmoduleStatusCommand SubmoduleStatus(){return new SubmoduleStatusCommand(repo);}
public virtual PutRecordBatchResponse PutRecordBatch(PutRecordBatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRecordBatchRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRecordBatchResponseUnmarshaller.Instance;return Invoke<PutRecordBatchResponse>(request, options);}
public QueryTermScorer(WeightedTerm[] weightedTerms){termsToFind = new Dictionary<string, WeightedTerm>();for (int i = 0; i < weightedTerms.Length; i++){if (!termsToFind.TryGetValue(weightedTerms[i].Term, out WeightedTerm existingTerm)|| (existingTerm == null)|| (existingTerm.Weight < weightedTerms[i].Weight)){termsToFind[weightedTerms[i].Term] = weightedTerms[i];maxTermWeight = Math.Max(maxTermWeight, weightedTerms[i].Weight);}}}
public static bool AllSubsetsConflict(IEnumerable<BitSet> altsets){return !HasNonConflictingAltSet(altsets);}
public virtual DescribeRuntimeConfigurationResponse DescribeRuntimeConfiguration(DescribeRuntimeConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRuntimeConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRuntimeConfigurationResponseUnmarshaller.Instance;return Invoke<DescribeRuntimeConfigurationResponse>(request, options);}
public virtual RevCommit ParseCommit(AnyObjectId id){RevObject c = Peel(ParseAny(id));if (!(c is RevCommit)){throw new IncorrectObjectTypeException(id.ToObjectId(), Constants.TYPE_COMMIT);}return (RevCommit)c;}
public short ReadShort(){return (short)ReadUShort();}
public void Clear(){for (int i = 0; i <= size; i++){heap[i] = default(T);}size = 0;}
public virtual CreateVPCAssociationAuthorizationResponse CreateVPCAssociationAuthorization(CreateVPCAssociationAuthorizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVPCAssociationAuthorizationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVPCAssociationAuthorizationResponseUnmarshaller.Instance;return Invoke<CreateVPCAssociationAuthorizationResponse>(request, options);}
public ModifyCacheParameterGroupRequest(string cacheParameterGroupName, List<ParameterNameValue> parameterNameValues){_cacheParameterGroupName = cacheParameterGroupName;_parameterNameValues = parameterNameValues;}
public override bool Equals(object o){return o is CatalanStemmer;}
public AutomatonQuery(Term term, Automaton automaton): base(term.Field){this.m_term = term;this.m_automaton = automaton;this.m_compiled = new CompiledAutomaton(automaton);}
public virtual string GetPattern(){return pattern;}
public virtual int compareTo(java.nio.IntBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;int thisInt;int otherInt;while (compareRemaining > 0){thisInt = get(thisPos);otherInt = otherBuffer.get(otherPos);if (thisInt != otherInt){return thisInt < otherInt ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}
public virtual bool hasNext(){return this._next != this._enclosing.header;}
public override Type GetListenerType(){return typeof(IndexChangedListener);}
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[OBJECTLINK]\n");buffer.Append(" .AnchorId = ").Append("0x").Append(HexDump.ToHex(AnchorId)).Append(" (").Append(AnchorId).Append(" )");buffer.Append(Environment.NewLine);buffer.Append(" .link1 = ").Append("0x").Append(HexDump.ToHex(Link1)).Append(" (").Append(Link1).Append(" )");buffer.Append(Environment.NewLine);buffer.Append(" .link2 = ").Append("0x").Append(HexDump.ToHex(Link2)).Append(" (").Append(Link2).Append(" )");buffer.Append(Environment.NewLine);buffer.Append("[/OBJECTLINK]\n");return buffer.ToString();}
public virtual void SetDetectRenames(bool on){if (on && renameDetector == null){AssertHaveRepository();renameDetector = new RenameDetector(db);}else{if (!on){renameDetector = null;}}}
public virtual bool IsSupported(int bitsPerValue){return bitsPerValue >= 1 && bitsPerValue <= 64;}
public void SetOutputUnigrams(bool outputUnigrams){this.outputUnigrams = outputUnigrams;gramSize = new CircularSequence(this);}
public override TokenStream Create(TokenStream input){return new TypeAsPayloadTokenFilter(input);}
public virtual CreateIndexResponse CreateIndex(CreateIndexRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIndexRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIndexResponseUnmarshaller.Instance;return Invoke<CreateIndexResponse>(request, options);}
public QualityQuery(string queryID, IDictionary<string, string> nameValPairs){this.queryID = queryID;this.nameValPairs = nameValPairs;}
public virtual void addFirst(E @object){addFirstImpl(@object);}
public ValidateConfigurationSettingsRequest(string applicationName, List<ConfigurationOptionSetting> optionSettings){_applicationName = applicationName;_optionSettings = optionSettings;}
public static RepositoryCache.FileKey Exact(FilePath directory, FS fs){return new RepositoryCache.FileKey(directory, fs);}
public void RemoveScale(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_SCALE);}
public DocumentDictionary(IndexReader reader, string field, string weightField, string payloadField, string contextsField){this.m_reader = reader;this.field = field;this.weightField = weightField;this.m_payloadField = payloadField;this.m_contextsField = contextsField;}
public override long Get(int index){int o = index / 5;int b = index % 5;int shift = b * 12;return ((long)((ulong)blocks[o] >> shift)) & 4095L;}
public virtual void clear(){lock (mutex){c.clear();}}
public bool HasNext(){return _nextIndex < _endIx;}
public virtual AssociateVirtualInterfaceResponse AssociateVirtualInterface(AssociateVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateVirtualInterfaceResponseUnmarshaller.Instance;return Invoke<AssociateVirtualInterfaceResponse>(request, options);}
public virtual ValueSource MakeDistanceValueSource(IPoint queryPoint){return MakeDistanceValueSource(queryPoint, 1.0);}
public virtual float GetTokenScore(){position += posIncAtt.PositionIncrement;string termText = termAtt.ToString();WeightedSpanTerm weightedSpanTerm;if (!fieldWeightedSpanTerms.TryGetValue(termText, out weightedSpanTerm) || weightedSpanTerm == null){return 0;}if (weightedSpanTerm.IsPositionSensitive &&!weightedSpanTerm.CheckPosition(position)){return 0;}float score = weightedSpanTerm.Weight;if (!foundTerms.Contains(termText)){totalScore += score;foundTerms.Add(termText);}return score;}
public virtual E pollFirst(){java.util.MapClass.Entry<E, object> entry = backingMap.pollFirstEntry();return (entry == null) ? default(E) : entry.getKey();}
public virtual void EnterEveryRule(ParserRuleContext ctx){Output.WriteLine("enter " + this._enclosing.RuleNames[ctx.RuleIndex] + ", LT(1)=" + this._enclosing._input.LT(1).Text);}
public override java.nio.ShortBuffer put(int index, short c){checkIndex(index);byteBuffer.putShort(index * libcore.io.SizeOf.SHORT, c);return this;}
public void NotifyUpdateCell(ICell cell){_bookEvaluator.NotifyUpdateCell(new HSSFEvaluationCell(cell));}
public void MoveCell(ICell cell, int newColumn){if(cells.ContainsKey(newColumn)){throw new ArgumentException("Asked to move cell to column " + newColumn + " but there's already a cell there");}bool existflag = false;foreach (ICell cellinrow in cells.Values){if (cellinrow.Equals(cell)){existflag = true;break;}}if (!existflag){throw new ArgumentException("Asked to move a cell, but it didn't belong to our row");}RemoveCell(cell, false);((HSSFCell)cell).UpdateCellNum(newColumn);AddCell(cell);}
public virtual void connect(java.io.PipedWriter src){throw new System.NotImplementedException();}
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(FirstColumn);out1.WriteShort(LastColumn);out1.WriteShort(ColumnWidth);out1.WriteShort(XFIndex);out1.WriteShort(_options);out1.WriteShort(field_6_reserved);}
public virtual ModifyWorkspaceCreationPropertiesResponse ModifyWorkspaceCreationProperties(ModifyWorkspaceCreationPropertiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyWorkspaceCreationPropertiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyWorkspaceCreationPropertiesResponseUnmarshaller.Instance;return Invoke<ModifyWorkspaceCreationPropertiesResponse>(request, options);}
public BoolDocValues(ValueSource vs){this.m_vs = vs;}
public void Reset(){nextWrite--;while (count > 0){if (nextWrite == -1){nextWrite = positions.Length - 1;}positions[nextWrite--].Reset();count--;}nextWrite = 0;nextPos = 0;count = 0;}
public virtual UpdateDirectConnectGatewayAssociationResponse UpdateDirectConnectGatewayAssociation(UpdateDirectConnectGatewayAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDirectConnectGatewayAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDirectConnectGatewayAssociationResponseUnmarshaller.Instance;return Invoke<UpdateDirectConnectGatewayAssociationResponse>(request, options);}
public EditPhotoStoreRequest(): base("CloudPhoto", "2017-07-11", "EditPhotoStore", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
public override string ToString(){return "<matchNoDocsQueryNode/>";}
public virtual NGit.Api.AddCommand AddFilepattern(string filepattern){CheckCallable();filepatterns.AddItem(filepattern);return this;}
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append("[").Append("HEADERFOOTER").Append("] (0x");sb.Append(StringUtil.ToHexString(sid).ToUpper() + ")\n");sb.Append(" rawData=").Append(HexDump.ToHex(_rawData)).Append("\n");sb.Append("[/").Append("HEADERFOOTER").Append("]\n");return sb.ToString();}
public virtual UpdateBrokerResponse UpdateBroker(UpdateBrokerRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBrokerRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBrokerResponseUnmarshaller.Instance;return Invoke<UpdateBrokerResponse>(request, options);}
public override Object Clone(){return this;}
public virtual AssociateS3ResourcesResponse AssociateS3Resources(AssociateS3ResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateS3ResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateS3ResourcesResponseUnmarshaller.Instance;return Invoke<AssociateS3ResourcesResponse>(request, options);}
public UnknownRecord(int id, byte[] data){_sid = id & 0xFFFF;_rawData = data;}
public override RevFilter Clone(){return new AndRevFilter.Binary(a.Clone(), b.Clone());}
public int GetRawValue(int holder){return (holder & this._mask);}
public virtual CancelResizeResponse CancelResize(CancelResizeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelResizeRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelResizeResponseUnmarshaller.Instance;return Invoke<CancelResizeResponse>(request, options);}
public virtual CreateTransitGatewayRouteResponse CreateTransitGatewayRoute(CreateTransitGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayRouteResponseUnmarshaller.Instance;return Invoke<CreateTransitGatewayRouteResponse>(request, options);}
public FastVectorHighlighter(bool phraseHighlight, bool fieldMatch,IFragListBuilder fragListBuilder, IFragmentsBuilder fragmentsBuilder){this.phraseHighlight = phraseHighlight;this.fieldMatch = fieldMatch;this.fragListBuilder = fragListBuilder;this.fragmentsBuilder = fragmentsBuilder;}
public virtual SetTypeDefaultVersionResponse SetTypeDefaultVersion(SetTypeDefaultVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetTypeDefaultVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = SetTypeDefaultVersionResponseUnmarshaller.Instance;return Invoke<SetTypeDefaultVersionResponse>(request, options);}
public override sealed long ComputeNorm(FieldInvertState state){return Get(state.Name).ComputeNorm(state);}
public virtual CreateCustomVerificationEmailTemplateResponse CreateCustomVerificationEmailTemplate(CreateCustomVerificationEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCustomVerificationEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCustomVerificationEmailTemplateResponseUnmarshaller.Instance;return Invoke<CreateCustomVerificationEmailTemplateResponse>(request, options);}
public static double median(double[] v){double r = double.NaN;if (v != null && v.Length >= 1){int n = v.Length;Array.Sort(v);r = (n % 2 == 0)? (v[n / 2] + v[n / 2 - 1]) / 2: v[n / 2];}return r;}
public virtual void Walk(IParseTreeListener listener, IParseTree t){if (t is IErrorNode){listener.VisitErrorNode((IErrorNode)t);return;}else{if (t is ITerminalNode){listener.VisitTerminal((ITerminalNode)t);return;}}IRuleNode r = (IRuleNode)t;EnterRule(listener, r);int n = r.ChildCount;for (int i = 0; i < n; i++){Walk(listener, r.GetChild(i));}ExitRule(listener, r);}
public SCLRecord(RecordInputStream in1){field_1_numerator = in1.ReadShort();field_2_denominator = in1.ReadShort();}
public bool Add(T value){int index = elements.Count;elements.Add(value);if (valueKeyMap.ContainsKey(value)){valueKeyMap[value] = index;}else{valueKeyMap.Add(value, index);}return true;}
public RawText(byte[] input){content = input;lines = RawParseUtils.LineMap(content, 0, content.Length);}
public void WriteInt(int v){CheckPosition(4);int i = _writeIndex;_buf[i++] = (byte)((v >> 0) & 0xFF);_buf[i++] = (byte)((v >> 8) & 0xFF);_buf[i++] = (byte)((v >> 16) & 0xFF);_buf[i++] = (byte)((v >> 24) & 0xFF);_writeIndex = i;}
public GetRepoBatchRequest(): base("cr", "2016-06-07", "GetRepoBatch", "cr", "openAPI"){UriPattern = "/batchsearch";Method = MethodType.GET;}
public MoPenDoRecognizeRequest(): base("MoPen", "2018-02-11", "MoPenDoRecognize", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
public override java.util.Iterator<java.util.MapClass.Entry<K, V>> iterator(){return new java.util.Hashtable<K, V>.EntryIterator(this._enclosing);}
public virtual DeleteApnsSandboxChannelResponse DeleteApnsSandboxChannel(DeleteApnsSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApnsSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApnsSandboxChannelResponseUnmarshaller.Instance;return Invoke<DeleteApnsSandboxChannelResponse>(request, options);}
public short ReadShort(){return (short)_rc4.Xorshort(_le.ReadUShort());}
public virtual DeleteEndpointResponse DeleteEndpoint(DeleteEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance;return Invoke<DeleteEndpointResponse>(request, options);}
public virtual int lastIndexOf(object @object){return list.lastIndexOf(@object);}
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 GetIndustryInfoChildrenListRequest(): base("industry-brain", "2018-07-12", "GetIndustryInfoChildrenList"){Protocol = ProtocolType.HTTPS;}
public Credential(string keyId, string secret, int expiredHours){AccessKeyId = keyId;AccessSecret = secret;RefreshDate = new DateTime();SetExpiredDate(expiredHours);}
public KeywordMarkerFilterFactory(IDictionary<string, string> args): base(args){wordFiles = Get(args, PROTECTED_TOKENS);stringPattern = Get(args, PATTERN);ignoreCase = GetBoolean(args, "ignoreCase", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
public CellRangeAddress GetAreaAt(int index){return _regions[_startIndex + index];}
public virtual PutEmailIdentityDkimSigningAttributesResponse PutEmailIdentityDkimSigningAttributes(PutEmailIdentityDkimSigningAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEmailIdentityDkimSigningAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEmailIdentityDkimSigningAttributesResponseUnmarshaller.Instance;return Invoke<PutEmailIdentityDkimSigningAttributesResponse>(request, options);}
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(" [FEATURE SMART TAGS]\n");buffer.Append(" [/FEATURE SMART TAGS]\n");return buffer.ToString();}
public static void checkStartAndEnd(int len, int start, int end){if (start < 0 || end > len){throw new System.IndexOutOfRangeException("start < 0 || end > len." + " start=" +start + ", end=" + end + ", len=" + len);}if (start > end){throw new System.ArgumentException("start > end: " + start + " > " + end);}}
public Loc(int bookIndex, int sheetIndex, int rowIndex, int columnIndex){_bookSheetColumn = ToBookSheetColumn(bookIndex, sheetIndex, columnIndex);_rowIndex = rowIndex;}
public BoolErrRecord(RecordInputStream in1): base(in1){switch (in1.Remaining){case 2:_value = in1.ReadByte();break;case 3:_value = in1.ReadUShort();break;default:throw new RecordFormatException("Unexpected size ("+ in1.Remaining + ") for BOOLERR record.");}int flag = in1.ReadUByte();switch (flag){case 0:_isError = false;break;case 1:_isError = true;break;default:throw new RecordFormatException("Unexpected isError flag ("+ flag + ") for BOOLERR record.");}}
public override string ToString(){return "OrdTermState ord=" + Ord;}
public Note(AnyObjectId noteOn, ObjectId noteData) : base(noteOn){data = noteData;}
public virtual GetModelVersionResponse GetModelVersion(GetModelVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetModelVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetModelVersionResponseUnmarshaller.Instance;return Invoke<GetModelVersionResponse>(request, options);}
public void AddBreak(int main, int subFrom, int subTo){int key = (int)main;Break region = (Break)_breakMap[key];if (region != null){region.main = main;region.subFrom = subFrom;region.subTo = subTo;}else{region = new Break(main, subFrom, subTo);_breaks.Add(region);}_breakMap[key] = region;}
public virtual DescribeUsageReportSubscriptionsResponse DescribeUsageReportSubscriptions(DescribeUsageReportSubscriptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUsageReportSubscriptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUsageReportSubscriptionsResponseUnmarshaller.Instance;return Invoke<DescribeUsageReportSubscriptionsResponse>(request, options);}
public virtual bool offerLast(E e){return addLastImpl(e);}
public RegistrantProfileRealNameVerificationRequest(): base("Domain-intl", "2017-12-18", "RegistrantProfileRealNameVerification", "domain", "openAPI"){Method = MethodType.POST;}
public RowColKey(int rowIndex, int columnIndex){_rowIndex = rowIndex;_columnIndex = columnIndex;}
public virtual DisassociateTransitGatewayMulticastDomainResponse DisassociateTransitGatewayMulticastDomain(DisassociateTransitGatewayMulticastDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateTransitGatewayMulticastDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateTransitGatewayMulticastDomainResponseUnmarshaller.Instance;return Invoke<DisassociateTransitGatewayMulticastDomainResponse>(request, options);}
public virtual java.nio.charset.Charset detectedCharset(){throw new System.NotSupportedException();}
public override Object Clone(){RightMarginRecord rec = new RightMarginRecord();rec.field_1_margin = this.field_1_margin;return rec;}
public virtual ListTrafficPoliciesResponse ListTrafficPolicies(ListTrafficPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrafficPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrafficPoliciesResponseUnmarshaller.Instance;return Invoke<ListTrafficPoliciesResponse>(request, options);}
public DeleteKeyPairRequest(string keyName){_keyName = keyName;}