text
stringlengths
27
1.4k
public virtual NGit.Api.TagCommand SetObjectId(RevObject id){this.id = id;return this;}
public static void Clear(){cache.ClearAll();}
public int PrefixCompare(int[] bs, int p){int cmp;cmp = NB.CompareUInt32(w1, Mask(1, bs[p]));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w2, Mask(2, bs[p + 1]));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w3, Mask(3, bs[p + 2]));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w4, Mask(4, bs[p + 3]));if (cmp ...
public override java.nio.LongBuffer put(long[] src, int srcOffset, int longCount){byteBuffer.limit(_limit * libcore.io.SizeOf.LONG);byteBuffer.position(_position * libcore.io.SizeOf.LONG);if (byteBuffer is java.nio.ReadWriteDirectByteBuffer){((java.nio.ReadWriteDirectByteBuffer)byteBuffer).put(src, srcOffset, longCount...
public MoPenDeleteGroupRequest(): base("MoPen", "2018-02-11", "MoPenDeleteGroup", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
public virtual ApplyResult AddUpdatedFile(FilePath f){updatedFiles.AddItem(f);return this;}
public virtual T InsertWithOverflow(T element){if (size < maxSize){Add(element);return default(T);}else if (size > 0 && !LessThan(element, heap[1])){T ret = heap[1];heap[1] = element;UpdateTop();return ret;}else{return element;}}
public virtual bool contains(object @object){java.util.Iterator<E> it = iterator();if (@object != null){while (it.hasNext()){if (@object.Equals(it.next())){return true;}}}else{while (it.hasNext()){if ((object)it.next() == null){return true;}}}return false;}
public virtual UploadDocumentsResponse UploadDocuments(UploadDocumentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UploadDocumentsRequestMarshaller.Instance;options.ResponseUnmarshaller = UploadDocumentsResponseUnmarshaller.Instance;return Invoke<UploadDocumentsResponse>(request, optio...
public string GetAccessKeyId(){return legacyCredential.AccessKeyId;}
public static string ToHex(short value){return ToHex((long)value, 4);}
public virtual string GetText(IToken start, IToken stop){if (start != null && stop != null){return GetText(Interval.Of(start.TokenIndex, stop.TokenIndex));}return string.Empty;}
public static ValueVector CreateColumnVector(TwoDEval tableArray, int relativeColumnIndex){return new ColumnVector((AreaEval)tableArray, relativeColumnIndex);}
public virtual AcceptDomainTransferFromAnotherAwsAccountResponse AcceptDomainTransferFromAnotherAwsAccount(AcceptDomainTransferFromAnotherAwsAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptDomainTransferFromAnotherAwsAccountRequestMarshaller.Instance;options.ResponseUnmarshal...
public virtual StartDeviceSyncResponse StartDeviceSync(StartDeviceSyncRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDeviceSyncRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDeviceSyncResponseUnmarshaller.Instance;return Invoke<StartDeviceSyncResponse>(request, optio...
public override bool containsKey(object key){return this.isInBounds(key) && this._enclosing.containsKey(key);}
public static int idealObjectArraySize(int need){return idealByteArraySize(need * 4) / 4;}
public virtual DescribeWorkspacesResponse DescribeWorkspaces(){var request = new DescribeWorkspacesRequest();return DescribeWorkspaces(request);}
public override java.util.Iterator<java.util.MapClass.Entry<K, V>> iterator(){return new java.util.Hashtable<K, V>.EntryIterator(this._enclosing);}
public virtual RemoveFromGlobalClusterResponse RemoveFromGlobalCluster(RemoveFromGlobalClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveFromGlobalClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveFromGlobalClusterResponseUnmarshaller.Instance;return Invoke...
public virtual IDictionary<string, MergeResult<Sequence>> GetMergeResults(){return mergeResults;}
public static int ParseTimeZoneOffset(byte[] b, int ptr){int v = ParseBase10(b, ptr, null);int tzMins = v % 100;int tzHours = v / 100;return tzHours * 60 + tzMins;}
public override string ToString(){lock (this._enclosing){return base.ToString();}}
public override void reset(){throw new System.NotImplementedException();}
public override FS NewInstance(){return new NGit.Util.FS_Win32(this);}
public virtual byte[] ToByteArray(){if (buf != null){byte[] r = new byte[ptr];System.Array.Copy(buf, 0, r, 0, ptr);return r;}try{return overflowBuffer.ToByteArray();}catch (IOException err){throw new RuntimeException(err);}}
public override AreaEval Offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx){AreaI area = new OffsetArea(FirstRow, FirstColumn,relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);return new LazyAreaEval(area, _evaluator);}
public virtual TerminateJobFlowsResponse TerminateJobFlows(TerminateJobFlowsRequest request){var options = new InvokeOptions();options.RequestMarshaller = TerminateJobFlowsRequestMarshaller.Instance;options.ResponseUnmarshaller = TerminateJobFlowsResponseUnmarshaller.Instance;return Invoke<TerminateJobFlowsResponse>(re...
public CreateTopicRequest(string name){_name = name;}
public void FreeBefore(int pos){int toFree = count - (nextPos - pos);Debug.Assert(toFree >= 0);Debug.Assert(toFree <= count);int index = nextWrite - count;if (index < 0){index += positions.Length;}for (int i = 0; i < toFree; i++){if (index == positions.Length){index = 0;}positions[index].Reset();index++;}count -= toFre...
public override TokenStream Create(TokenStream input){var filter = new LengthFilter(m_luceneMatchVersion, enablePositionIncrements, input, min, max);return filter;}
public StandardQueryParser(): base(new StandardQueryConfigHandler(), new StandardSyntaxParser(),new StandardQueryNodeProcessorPipeline(null),new StandardQueryTreeBuilder()){EnablePositionIncrements = true;}
public GetUserSourceRepoRefListRequest(): base("cr", "2016-06-07", "GetUserSourceRepoRefList", "cr", "openAPI"){UriPattern = "/users/sourceAccount/[SourceAccountId]/repos/[SourceRepoNamespace]/[SourceRepoName]/refs";Method = MethodType.GET;}
public static java.nio.LongBuffer wrap(long[] array_1, int start, int longCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, longCount);java.nio.LongBuffer buf = new java.nio.ReadWriteLongArrayBuffer(array_1);buf._position = start;buf._limit = start + longCount;return buf;}
public UpperCaseFilterFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
public virtual ListNotesCommand NotesList(){return new ListNotesCommand(repo);}
public virtual bool IsMissingNewlineAtEnd(){int end = lines.Get(lines.Size() - 1);if (end == 0){return true;}return content[end - 1] != '\n';}
public virtual CreateDashboardResponse CreateDashboard(CreateDashboardRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDashboardRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDashboardResponseUnmarshaller.Instance;return Invoke<CreateDashboardResponse>(request, optio...
public override void write(string str, int offset, int count){write(Sharpen.StringHelper.Substring(str, offset, offset + count).ToCharArray());}
public UpdateNamespaceAuthorizationRequest(): base("cr", "2016-06-07", "UpdateNamespaceAuthorization", "cr", "openAPI"){UriPattern = "/namespace/[Namespace]/authorizations/[AuthorizeId]";Method = MethodType.POST;}
public virtual DescribeStreamResponse DescribeStream(DescribeStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStreamResponseUnmarshaller.Instance;return Invoke<DescribeStreamResponse>(request, options);}
public override void mark(int markLimit){if (markLimit < 0){throw new System.ArgumentException();}lock (@lock){checkNotClosed();this.markLimit = markLimit;_mark = pos;}}
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;int byte1 = blocks[blocksOffset++] & 0xFF;int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 16) | (byte1 ...
public override string ToString(){return string.Format("channel({0})", channel);}
public string getName(){int separatorIndex = path.LastIndexOf(separator);return (separatorIndex < 0) ? path : Sharpen.StringHelper.Substring(path, separatorIndex+ 1, path.Length);}
public virtual TestInvokeMethodResponse TestInvokeMethod(TestInvokeMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestInvokeMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = TestInvokeMethodResponseUnmarshaller.Instance;return Invoke<TestInvokeMethodResponse>(request,...
public void ClearAttributes(){for (State state = GetCurrentState(); state != null; state = state.next){state.attribute.Clear();}}
public virtual ListRecipesResponse ListRecipes(ListRecipesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRecipesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRecipesResponseUnmarshaller.Instance;return Invoke<ListRecipesResponse>(request, options);}
public override void SetText(CharacterIterator newText){text = newText;text.SetIndex(text.BeginIndex);currentSentence = 0;Span[] spans = sentenceOp.SplitSentences(CharacterIteratorToString());sentenceStarts = new int[spans.Length];for (int i = 0; i < spans.Length; ++i){sentenceStarts[i] = spans[i].getStart() + text.Beg...
public virtual string FormatWithConflicts(string message, IList<string> conflictingPaths){StringBuilder sb = new StringBuilder(message);if (!message.EndsWith("\n") && message.Length != 0){sb.Append("\n");}sb.Append("\n");sb.Append("Conflicts:\n");foreach (string conflictingPath in conflictingPaths){sb.Append('\t').Appe...
public virtual bool Get(int index){return bits.SafeGet(index);}
public virtual DescribeTaskSetsResponse DescribeTaskSets(DescribeTaskSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTaskSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTaskSetsResponseUnmarshaller.Instance;return Invoke<DescribeTaskSetsResponse>(request,...
public void Add(FormulaRecordAggregate agg){if (_numberOfFormulas == 0){if (_firstCell.Row != agg.Row || _firstCell.Col != agg.Column){throw new InvalidOperationException("shared formula coding error");}}if (_numberOfFormulas >= _frAggs.Length){throw new Exception("Too many formula records for shared formula group");}_...
public PacketLineOutRefAdvertiser(PacketLineOut @out){pckOut = @out;}
public virtual UpdateDataSetResponse UpdateDataSet(UpdateDataSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDataSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDataSetResponseUnmarshaller.Instance;return Invoke<UpdateDataSetResponse>(request, options);}
public virtual ListKeyPhrasesDetectionJobsResponse ListKeyPhrasesDetectionJobs(ListKeyPhrasesDetectionJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListKeyPhrasesDetectionJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListKeyPhrasesDetectionJobsResponseUnmarshaller.In...
public override void clear(){this._enclosing.clear();}
public VaultNotificationConfig(string snsTopic, List<string> events){_snsTopic = snsTopic;_events = events;}
public virtual string[] Lemmatize(string[] words, string[] postags){string[] lemmas = null;string[] maxEntLemmas = null;if (dictionaryLemmatizer != null){lemmas = dictionaryLemmatizer.lemmatize(words, postags);for (int i = 0; i < lemmas.Length; ++i){if (lemmas[i].Equals("O")){ if (lemmatizerME != null){ if (maxEntLe...
public PaletteRecord(RecordInputStream in1){short field_1_numcolors = in1.ReadShort();field_2_colors = new List<PColor>(field_1_numcolors);for (int k = 0; k < field_1_numcolors; k++){field_2_colors.Add(new PColor(in1));}}
public GetJobOutputRequest(string accountId, string vaultName, string jobId, string range){_accountId = accountId;_vaultName = vaultName;_jobId = jobId;_range = range;}
public ISigner GetSigner(){return null;}
public static int CodePointCount(BytesRef utf8){int pos = utf8.Offset;int limit = pos + utf8.Length;var bytes = utf8.Bytes;int codePointCount = 0;for (; pos < limit; codePointCount++){int v = bytes[pos] & 0xFF;if (v < 0x80) { pos += 1; continue; }if (v >= 0xc0){if (v < 0xe0) { pos += 2; continue; }if (v < 0xf0) ...
public static Type GetRecordClass(int sid){I_RecordCreator rc = _recordCreatorsById[(short)sid];if (rc == null){return null;}return rc.GetRecordClass();}
public WriteAccessRecord(RecordInputStream in1){if (in1.Remaining > DATA_SIZE){throw new RecordFormatException("Expected data size (" + DATA_SIZE + ") but got ("+ in1.Remaining + ")");}int nChars = in1.ReadUShort();int is16BitFlag = in1.ReadUByte();if (nChars > DATA_SIZE || (is16BitFlag & 0xFE) != 0){byte[] data = new ...
public FontBasisRecord(RecordInputStream in1){field_1_xBasis = in1.ReadShort();field_2_yBasis = in1.ReadShort();field_3_heightBasis = in1.ReadShort();field_4_scale = in1.ReadShort();field_5_indexToFontTable = in1.ReadShort();}
public virtual string EncodeText(string originalText){return originalText;}
public PathEdit(string entryPath){path = Constants.Encode(entryPath);}
public virtual bool Add(char[] text){return map.Put(text);}
public virtual ResolveAliasResponse ResolveAlias(ResolveAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResolveAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = ResolveAliasResponseUnmarshaller.Instance;return Invoke<ResolveAliasResponse>(request, options);}
public override TokenStream Create(TokenStream input){return new GreekStemFilter(input);}
public DescribeCacheSecurityGroupsRequest(string cacheSecurityGroupName){_cacheSecurityGroupName = cacheSecurityGroupName;}
public void ReadFully(byte[] buf, int off, int len){_le.ReadFully(buf, off, len);_rc4.Xor(buf, off, len);}
public static byte[] copyOf(byte[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}
public virtual DeleteDomainNameResponse DeleteDomainName(DeleteDomainNameRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDomainNameRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDomainNameResponseUnmarshaller.Instance;return Invoke<DeleteDomainNameResponse>(request,...
public virtual DecreaseNodeGroupsInGlobalReplicationGroupResponse DecreaseNodeGroupsInGlobalReplicationGroup(DecreaseNodeGroupsInGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DecreaseNodeGroupsInGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmar...
public SelectRequest(string selectExpression, bool consistentRead){_selectExpression = selectExpression;_consistentRead = consistentRead;}
public virtual NGit.Api.SubmoduleAddCommand SetURI(string uri){this.uri = uri;return this;}
public virtual PutRestApiResponse PutRestApi(PutRestApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRestApiRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRestApiResponseUnmarshaller.Instance;return Invoke<PutRestApiResponse>(request, options);}
public Ptg Get3DReferencePtg(CellReference cr, SheetIdentifier sheet){int extIx = GetSheetExtIx(sheet);return new Ref3DPtg(cr, extIx);}
public virtual CreateRequestValidatorResponse CreateRequestValidator(CreateRequestValidatorRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRequestValidatorRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRequestValidatorResponseUnmarshaller.Instance;return Invoke<Crea...
public override java.nio.ByteBuffer duplicate(){return copy(this, _mark);}
public virtual void SetPackedGitWindowSize(int newSize){packedGitWindowSize = newSize;}
public virtual DisassociateMembershipResponse DisassociateMembership(DisassociateMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateMembershipResponseUnmarshaller.Instance;return Invoke<Disa...
public override void Parse(TextReader @in){int lineNumber = 0;TextReader br = @in;try{string line = null;string lastSynSetID = "";CharsRef[] synset = new CharsRef[8];int synsetSize = 0;while ((line = br.ReadLine()) != null){lineNumber++;string synSetID = line.Substring(2, 9);if (!synSetID.Equals(lastSynSetID, StringCom...
public string[] list(){return listImpl(path);}
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[ENDOBJECT]\n");buffer.Append(" .rt =").Append(HexDump.ShortToHex(rt)).Append('\n');buffer.Append(" .grbitFrt =").Append(HexDump.ShortToHex(grbitFrt)).Append('\n');buffer.Append(" .iObjectKind=").Append(HexDum...
public static RevFilter After(DateTime ts){return After(ts.GetTime());}
public static XmlElement GetFirstChildElement(XmlElement element){for (XmlNode kid = element.FirstChild; kid != null; kid = kid.NextSibling){if (kid.NodeType == XmlNodeType.Element){return (XmlElement)kid;}}return null;}
public virtual bool add(E @object){lock (mutex){return c.add(@object);}}
public LongMap(){table = CreateArray<V>(64);growAt = (int)(table.Length * LOAD_FACTOR);}
public virtual ClaimGameServerResponse ClaimGameServer(ClaimGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = ClaimGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = ClaimGameServerResponseUnmarshaller.Instance;return Invoke<ClaimGameServerResponse>(request, optio...
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval venumerator, ValueEval vedenominator){double enumerator = 0;try{enumerator = OperandResolver.CoerceValueToDouble(venumerator);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}double denominator = 0;try{denominator = OperandRes...
public override V put(K key, V value){lock (this){if ((object)value == null){throw new System.ArgumentNullException();}int hash = secondaryHash(key.GetHashCode());java.util.Hashtable.HashtableEntry<K, V>[] tab = table;int index = hash & (tab.Length - 1);java.util.Hashtable.HashtableEntry<K, V> first = tab[index];{for (...
public virtual DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAutoScalingNotificationTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAutoSc...
public ScandinavianFoldingFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
public void close (){lock (this.mBlock) {if (this.mParseState != null) {this.mParseState.Dispose ();this.mParseState = null;this.mBlock.decOpenCountLocked ();}}}
public override string ToString(){return "$";}
public virtual ListAssessmentRunsResponse ListAssessmentRuns(ListAssessmentRunsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAssessmentRunsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAssessmentRunsResponseUnmarshaller.Instance;return Invoke<ListAssessmentRunsRespon...
public override java.nio.ShortBuffer compact(){throw new java.nio.ReadOnlyBufferException();}