id
int32
0
10.3k
java
stringlengths
29
1.4k
cs
stringlengths
28
1.38k
7,400
public ExternalSheet getExternalSheet(int externSheetIndex) {ExternalSheet sheet = _iBook.getExternalSheet(externSheetIndex);if (sheet == null) {int localSheetIndex = convertFromExternSheetIndex(externSheetIndex);if (localSheetIndex == -1) {return null;}if (localSheetIndex == -2) {return null;}String sheetName = getSheetName(localSheetIndex);int lastLocalSheetIndex = _iBook.getLastSheetIndexFromExternSheetIndex(externSheetIndex);if (lastLocalSheetIndex == localSheetIndex) {sheet = new ExternalSheet(null, sheetName);} else {String lastSheetName = getSheetName(lastLocalSheetIndex);sheet = new ExternalSheetRange(null, sheetName, lastSheetName);}}return sheet;}
public ExternalSheet GetExternalSheet(int externSheetIndex){ExternalSheet sheet = _iBook.GetExternalSheet(externSheetIndex);if (sheet == null){int localSheetIndex = ConvertFromExternSheetIndex(externSheetIndex);if (localSheetIndex == -1){return null;}if (localSheetIndex == -2){return null;}String sheetName = GetSheetName(localSheetIndex);int lastLocalSheetIndex = _iBook.GetLastSheetIndexFromExternSheetIndex(externSheetIndex);if (lastLocalSheetIndex == localSheetIndex){sheet = new ExternalSheet(null, sheetName);}else{String lastSheetName = GetSheetName(lastLocalSheetIndex);sheet = new ExternalSheetRange(null, sheetName, lastSheetName);}}return sheet;}
7,401
public static NoteMap newEmptyMap() {NoteMap r = new NoteMap(null );r.root = new LeafBucket(0);return r;}
public static NGit.Notes.NoteMap NewEmptyMap(){NGit.Notes.NoteMap r = new NGit.Notes.NoteMap(null);r.root = new LeafBucket(0);return r;}
7,402
@Override public java.lang.Object[] toArray() {synchronized (mutex) {return c.toArray();}}
public virtual object[] toArray(){lock (mutex){return c.toArray();}}
7,403
public TagCommand setObjectId(RevObject id) {this.id = id;return this;}
public virtual NGit.Api.TagCommand SetObjectId(RevObject id){this.id = id;return this;}
7,404
public static void clear() {cache.clearAll();}
public static void Clear(){cache.ClearAll();}
7,405
public final 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 != 0)return cmp;return NB.compareUInt32(w5, mask(5, bs[p + 4]));}
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 != 0){return cmp;}return NB.CompareUInt32(w5, Mask(5, bs[p + 4]));}
7,406
public LongBuffer put(long[] src, int srcOffset, int longCount) {byteBuffer.limit(limit * SizeOf.LONG);byteBuffer.position(position * SizeOf.LONG);if (byteBuffer instanceof ReadWriteDirectByteBuffer) {((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, longCount);} else {((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, longCount);}this.position += longCount;return this;}
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);}else{((java.nio.ReadWriteHeapByteBuffer)byteBuffer).put(src, srcOffset, longCount);}this._position += longCount;return this;}
7,407
public MoPenDeleteGroupRequest() {super("MoPen", "2018-02-11", "MoPenDeleteGroup", "mopen");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
public MoPenDeleteGroupRequest(): base("MoPen", "2018-02-11", "MoPenDeleteGroup", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
7,408
public ApplyResult addUpdatedFile(File f) {updatedFiles.add(f);return this;}
public virtual ApplyResult AddUpdatedFile(FilePath f){updatedFiles.AddItem(f);return this;}
7,409
public T insertWithOverflow(T element) {if (size < maxSize) {add(element);return null;} else if (size > 0 && !lessThan(element, heap[1])) {T ret = heap[1];heap[1] = element;updateTop();return ret;} else {return element;}}
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;}}
7,410
public boolean contains(Object object) {Iterator<E> it = iterator();if (object != null) {while (it.hasNext()) {if (object.equals(it.next())) {return true;}}} else {while (it.hasNext()) {if (it.next() == null) {return true;}}}return false;}
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;}
7,411
public UploadDocumentsResult uploadDocuments(UploadDocumentsRequest request) {request = beforeClientExecution(request);return executeUploadDocuments(request);}
public virtual UploadDocumentsResponse UploadDocuments(UploadDocumentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UploadDocumentsRequestMarshaller.Instance;options.ResponseUnmarshaller = UploadDocumentsResponseUnmarshaller.Instance;return Invoke<UploadDocumentsResponse>(request, options);}
7,412
public String getAccessKeyId() {return legacyCredential.getAccessKeyId();}
public string GetAccessKeyId(){return legacyCredential.AccessKeyId;}
7,413
public static String toHex(String value) {return (value == null || value.length() == 0)? "[]": toHex(value.getBytes(LocaleUtil.CHARSET_1252));}
public static string ToHex(short value){return ToHex((long)value, 4);}
7,414
public String getText(Token start, Token stop) {if ( start!=null && stop!=null ) {return getText(Interval.of(start.getTokenIndex(), stop.getTokenIndex()));}return "";}
public virtual string GetText(IToken start, IToken stop){if (start != null && stop != null){return GetText(Interval.Of(start.TokenIndex, stop.TokenIndex));}return string.Empty;}
7,415
public static ValueVector createColumnVector(TwoDEval tableArray, int relativeColumnIndex) {return new ColumnVector(tableArray, relativeColumnIndex);}
public static ValueVector CreateColumnVector(TwoDEval tableArray, int relativeColumnIndex){return new ColumnVector((AreaEval)tableArray, relativeColumnIndex);}
7,416
public AcceptDomainTransferFromAnotherAwsAccountResult acceptDomainTransferFromAnotherAwsAccount(AcceptDomainTransferFromAnotherAwsAccountRequest request) {request = beforeClientExecution(request);return executeAcceptDomainTransferFromAnotherAwsAccount(request);}
public virtual AcceptDomainTransferFromAnotherAwsAccountResponse AcceptDomainTransferFromAnotherAwsAccount(AcceptDomainTransferFromAnotherAwsAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptDomainTransferFromAnotherAwsAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptDomainTransferFromAnotherAwsAccountResponseUnmarshaller.Instance;return Invoke<AcceptDomainTransferFromAnotherAwsAccountResponse>(request, options);}
7,417
public StartDeviceSyncResult startDeviceSync(StartDeviceSyncRequest request) {request = beforeClientExecution(request);return executeStartDeviceSync(request);}
public virtual StartDeviceSyncResponse StartDeviceSync(StartDeviceSyncRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDeviceSyncRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDeviceSyncResponseUnmarshaller.Instance;return Invoke<StartDeviceSyncResponse>(request, options);}
7,418
@Override public boolean containsKey(Object key) {return isInBounds(key) && TreeMap.this.containsKey(key);}
public override bool containsKey(object key){return this.isInBounds(key) && this._enclosing.containsKey(key);}
7,419
public static int idealObjectArraySize(int need) {return idealByteArraySize(need * 4) / 4;}
public static int idealObjectArraySize(int need){return idealByteArraySize(need * 4) / 4;}
7,420
public DescribeWorkspacesResult describeWorkspaces() {return describeWorkspaces(new DescribeWorkspacesRequest());}
public virtual DescribeWorkspacesResponse DescribeWorkspaces(){var request = new DescribeWorkspacesRequest();return DescribeWorkspaces(request);}
7,421
@Override public Iterator<Entry<K, V>> iterator() {return new EntryIterator();}
public override java.util.Iterator<java.util.MapClass.Entry<K, V>> iterator(){return new java.util.Hashtable<K, V>.EntryIterator(this._enclosing);}
7,422
public GlobalCluster removeFromGlobalCluster(RemoveFromGlobalClusterRequest request) {request = beforeClientExecution(request);return executeRemoveFromGlobalCluster(request);}
public virtual RemoveFromGlobalClusterResponse RemoveFromGlobalCluster(RemoveFromGlobalClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveFromGlobalClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveFromGlobalClusterResponseUnmarshaller.Instance;return Invoke<RemoveFromGlobalClusterResponse>(request, options);}
7,423
public Map<String, MergeResult<? extends Sequence>> getMergeResults() {return mergeResults;}
public virtual IDictionary<string, MergeResult<Sequence>> GetMergeResults(){return mergeResults;}
7,424
public static final int parseTimeZoneOffset(byte[] b, int ptr) {return parseTimeZoneOffset(b, ptr, null);}
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;}
7,425
public String toString() {synchronized (Hashtable.this) {return super.toString();}}
public override string ToString(){lock (this._enclosing){return base.ToString();}}
7,426
public void reset() throws IOException {in.reset();lineNumber = markedLineNumber;lastChar = markedLastChar;}
public override void reset(){throw new System.NotImplementedException();}
7,427
public FS newInstance() {return new FS_Win32(this);}
public override FS NewInstance(){return new NGit.Util.FS_Win32(this);}
7,428
public byte[] toByteArray() {if (buf != null) {byte[] r = new byte[ptr];System.arraycopy(buf, 0, r, 0, ptr);return r;}try {return overflowBuffer.toByteArray();} catch (IOException err) {throw new RuntimeException(err);}}
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);}}
7,429
public AreaEval offset(int relFirstRowIx, int relLastRowIx, int relFirstColIx, int relLastColIx) {AreaI area = new OffsetArea(getFirstRow(), getFirstColumn(),relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);return new LazyAreaEval(area, _evaluator);}
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);}
7,430
public TerminateJobFlowsResult terminateJobFlows(TerminateJobFlowsRequest request) {request = beforeClientExecution(request);return executeTerminateJobFlows(request);}
public virtual TerminateJobFlowsResponse TerminateJobFlows(TerminateJobFlowsRequest request){var options = new InvokeOptions();options.RequestMarshaller = TerminateJobFlowsRequestMarshaller.Instance;options.ResponseUnmarshaller = TerminateJobFlowsResponseUnmarshaller.Instance;return Invoke<TerminateJobFlowsResponse>(request, options);}
7,431
public CreateTopicRequest(String name) {setName(name);}
public CreateTopicRequest(string name){_name = name;}
7,432
public void freeBefore(int pos) {final int toFree = count - (nextPos - pos);assert toFree >= 0;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 -= toFree;}
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 -= toFree;}
7,433
public LengthFilter create(TokenStream input) {final LengthFilter filter = new LengthFilter(input,min,max);return filter;}
public override TokenStream Create(TokenStream input){#pragma warning disable 612, 618var filter = new LengthFilter(m_luceneMatchVersion, enablePositionIncrements, input, min, max);#pragma warning restore 612, 618return filter;}
7,434
public StandardQueryParser() {super(new StandardQueryConfigHandler(), new StandardSyntaxParser(),new StandardQueryNodeProcessorPipeline(null),new StandardQueryTreeBuilder());setEnablePositionIncrements(true);}
public StandardQueryParser(): base(new StandardQueryConfigHandler(), new StandardSyntaxParser(),new StandardQueryNodeProcessorPipeline(null),new StandardQueryTreeBuilder()){EnablePositionIncrements = true;}
7,435
public GetUserSourceRepoRefListRequest() {super("cr", "2016-06-07", "GetUserSourceRepoRefList", "cr");setUriPattern("/users/sourceAccount/[SourceAccountId]/repos/[SourceRepoNamespace]/[SourceRepoName]/refs");setMethod(MethodType.GET);}
public GetUserSourceRepoRefListRequest(): base("cr", "2016-06-07", "GetUserSourceRepoRefList", "cr", "openAPI"){UriPattern = "/users/sourceAccount/[SourceAccountId]/repos/[SourceRepoNamespace]/[SourceRepoName]/refs";Method = MethodType.GET;}
7,436
public static LongBuffer wrap(long[] array, int start, int longCount) {Arrays.checkOffsetAndCount(array.length, start, longCount);LongBuffer buf = new ReadWriteLongArrayBuffer(array);buf.position = start;buf.limit = start + longCount;return buf;}
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;}
7,437
public UpperCaseFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
public UpperCaseFilterFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
7,438
public ListNotesCommand notesList() {return new ListNotesCommand(repo);}
public virtual ListNotesCommand NotesList(){return new ListNotesCommand(repo);}
7,439
public boolean isMissingNewlineAtEnd() {final int end = lines.get(lines.size() - 1);if (end == 0)return true;return content[end - 1] != '\n';}
public virtual bool IsMissingNewlineAtEnd(){int end = lines.Get(lines.Size() - 1);if (end == 0){return true;}return content[end - 1] != '\n';}
7,440
public CreateDashboardResult createDashboard(CreateDashboardRequest request) {request = beforeClientExecution(request);return executeCreateDashboard(request);}
public virtual CreateDashboardResponse CreateDashboard(CreateDashboardRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDashboardRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDashboardResponseUnmarshaller.Instance;return Invoke<CreateDashboardResponse>(request, options);}
7,441
public void write(String str, int offset, int count) {write(str.substring(offset, offset + count).toCharArray());}
public override void write(string str, int offset, int count){write(Sharpen.StringHelper.Substring(str, offset, offset + count).ToCharArray());}
7,442
public UpdateNamespaceAuthorizationRequest() {super("cr", "2016-06-07", "UpdateNamespaceAuthorization", "cr");setUriPattern("/namespace/[Namespace]/authorizations/[AuthorizeId]");setMethod(MethodType.POST);}
public UpdateNamespaceAuthorizationRequest(): base("cr", "2016-06-07", "UpdateNamespaceAuthorization", "cr", "openAPI"){UriPattern = "/namespace/[Namespace]/authorizations/[AuthorizeId]";Method = MethodType.POST;}
7,443
public DescribeStreamResult describeStream(DescribeStreamRequest request) {request = beforeClientExecution(request);return executeDescribeStream(request);}
public virtual DescribeStreamResponse DescribeStream(DescribeStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStreamResponseUnmarshaller.Instance;return Invoke<DescribeStreamResponse>(request, options);}
7,444
public void mark(int markLimit) throws IOException {if (markLimit < 0) {throw new IllegalArgumentException();}synchronized (lock) {checkNotClosed();this.markLimit = markLimit;mark = pos;}}
public override void mark(int markLimit){if (markLimit < 0){throw new System.ArgumentException();}lock (@lock){checkNotClosed();this.markLimit = markLimit;_mark = pos;}}
7,445
public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long byte0 = blocks[blocksOffset++] & 0xFF;final long byte1 = blocks[blocksOffset++] & 0xFF;final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 16) | (byte1 << 8) | byte2;}}
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 << 8) | byte2;}}
7,446
public String toString() {return String.format("channel(%d)", channel);}
public override string ToString(){return string.Format("channel({0})", channel);}
7,447
public String getName() {int separatorIndex = path.lastIndexOf(separator);return (separatorIndex < 0) ? path : path.substring(separatorIndex + 1, path.length());}
public string getName(){int separatorIndex = path.LastIndexOf(separator);return (separatorIndex < 0) ? path : Sharpen.StringHelper.Substring(path, separatorIndex+ 1, path.Length);}
7,448
public TestInvokeMethodResult testInvokeMethod(TestInvokeMethodRequest request) {request = beforeClientExecution(request);return executeTestInvokeMethod(request);}
public virtual TestInvokeMethodResponse TestInvokeMethod(TestInvokeMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestInvokeMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = TestInvokeMethodResponseUnmarshaller.Instance;return Invoke<TestInvokeMethodResponse>(request, options);}
7,449
public final void clearAttributes() {for (State state = getCurrentState(); state != null; state = state.next) {state.attribute.clear();}}
public void ClearAttributes(){for (State state = GetCurrentState(); state != null; state = state.next){state.attribute.Clear();}}
7,450
public ListRecipesResult listRecipes(ListRecipesRequest request) {request = beforeClientExecution(request);return executeListRecipes(request);}
public virtual ListRecipesResponse ListRecipes(ListRecipesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRecipesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRecipesResponseUnmarshaller.Instance;return Invoke<ListRecipesResponse>(request, options);}
7,451
public void setText(CharacterIterator newText) {text = newText;text.setIndex(text.getBeginIndex());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.getBeginIndex();}}
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.BeginIndex;}}
7,452
public String formatWithConflicts(String message,List<String> conflictingPaths) {StringBuilder sb = new StringBuilder();String[] lines = message.split("\n"); int firstFooterLine = ChangeIdUtil.indexOfFirstFooterLine(lines);for (int i = 0; i < firstFooterLine; i++)sb.append(lines[i]).append('\n');if (firstFooterLine == lines.length && message.length() != 0)sb.append('\n');addConflictsMessage(conflictingPaths, sb);if (firstFooterLine < lines.length)sb.append('\n');for (int i = firstFooterLine; i < lines.length; i++)sb.append(lines[i]).append('\n');return sb.toString();}
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').Append(conflictingPath).Append('\n');}return sb.ToString();}
7,453
public boolean get(int index) {return bits.get(index);}
public virtual bool Get(int index){return bits.SafeGet(index);}
7,454
public DescribeTaskSetsResult describeTaskSets(DescribeTaskSetsRequest request) {request = beforeClientExecution(request);return executeDescribeTaskSets(request);}
public virtual DescribeTaskSetsResponse DescribeTaskSets(DescribeTaskSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTaskSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTaskSetsResponseUnmarshaller.Instance;return Invoke<DescribeTaskSetsResponse>(request, options);}
7,455
public void add(FormulaRecordAggregate agg) {if (_numberOfFormulas == 0) {if (_firstCell.getRow() != agg.getRow() || _firstCell.getCol() != agg.getColumn()) {throw new IllegalStateException("shared formula coding error: "+_firstCell.getCol()+'/'+_firstCell.getRow()+" != "+agg.getColumn()+'/'+agg.getRow());}}if (_numberOfFormulas >= _frAggs.length) {throw new RuntimeException("Too many formula records for shared formula group");}_frAggs[_numberOfFormulas++] = agg;}
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");}_frAggs[_numberOfFormulas++] = agg;}
7,456
public PacketLineOutRefAdvertiser(PacketLineOut out) {pckOut = out;}
public PacketLineOutRefAdvertiser(PacketLineOut @out){pckOut = @out;}
7,457
public UpdateDataSetResult updateDataSet(UpdateDataSetRequest request) {request = beforeClientExecution(request);return executeUpdateDataSet(request);}
public virtual UpdateDataSetResponse UpdateDataSet(UpdateDataSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDataSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDataSetResponseUnmarshaller.Instance;return Invoke<UpdateDataSetResponse>(request, options);}
7,458
public ListKeyPhrasesDetectionJobsResult listKeyPhrasesDetectionJobs(ListKeyPhrasesDetectionJobsRequest request) {request = beforeClientExecution(request);return executeListKeyPhrasesDetectionJobs(request);}
public virtual ListKeyPhrasesDetectionJobsResponse ListKeyPhrasesDetectionJobs(ListKeyPhrasesDetectionJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListKeyPhrasesDetectionJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListKeyPhrasesDetectionJobsResponseUnmarshaller.Instance;return Invoke<ListKeyPhrasesDetectionJobsResponse>(request, options);}
7,459
@Override public void clear() {Impl.this.clear();}
public override void clear(){this._enclosing.clear();}
7,460
public VaultNotificationConfig(String sNSTopic, java.util.List<String> events) {setSNSTopic(sNSTopic);setEvents(events);}
public VaultNotificationConfig(string snsTopic, List<string> events){_snsTopic = snsTopic;_events = events;}
7,461
public 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 (maxEntLemmas == null) {maxEntLemmas = lemmatizerME.lemmatize(words, postags);}if ("_".equals(maxEntLemmas[i])) {lemmas[i] = words[i]; } else {lemmas[i] = maxEntLemmas[i];}} else { lemmas[i] = words[i]; }}}} else { maxEntLemmas = lemmatizerME.lemmatize(words, postags);for (int i = 0 ; i < maxEntLemmas.length ; ++i) {if ("_".equals(maxEntLemmas[i])) {maxEntLemmas[i] = words[i]; }}lemmas = maxEntLemmas;}return lemmas;}
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 (maxEntLemmas == null){maxEntLemmas = lemmatizerME.lemmatize(words, postags);}if ("_".Equals(maxEntLemmas[i])){lemmas[i] = words[i]; }else{lemmas[i] = maxEntLemmas[i];}}else{ lemmas[i] = words[i]; }}}}else{ maxEntLemmas = lemmatizerME.lemmatize(words, postags);for (int i = 0; i < maxEntLemmas.Length; ++i){if ("_".Equals(maxEntLemmas[i])){maxEntLemmas[i] = words[i]; }}lemmas = maxEntLemmas;}return lemmas;}
7,462
public PaletteRecord(RecordInputStream in) {int field_1_numcolors = in.readShort();_colors.ensureCapacity(field_1_numcolors);for (int k = 0; k < field_1_numcolors; k++) {_colors.add(new PColor(in));}}
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));}}
7,463
public GetJobOutputRequest(String accountId, String vaultName, String jobId, String range) {setAccountId(accountId);setVaultName(vaultName);setJobId(jobId);setRange(range);}
public GetJobOutputRequest(string accountId, string vaultName, string jobId, string range){_accountId = accountId;_vaultName = vaultName;_jobId = jobId;_range = range;}
7,464
public ISigner getSigner() {return null;}
public ISigner GetSigner(){return null;}
7,465
public static int codePointCount(BytesRef utf8) {int pos = utf8.offset;final int limit = pos + utf8.length;final byte[] 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) { pos += 3; continue; }if (v < 0xf8) { pos += 4; continue; }}throw new IllegalArgumentException();}if (pos > limit) throw new IllegalArgumentException();return codePointCount;}
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) { pos += 3; continue; }if (v < 0xf8) { pos += 4; continue; }}throw new ArgumentException();}if (pos > limit) throw new ArgumentException();return codePointCount;}
7,466
public static Class<? extends Record> getRecordClass(int sid) {I_RecordCreator rc = _recordCreatorsById.get(Integer.valueOf(sid));if (rc == null) {return null;}return rc.getRecordClass();}
public static Type GetRecordClass(int sid){I_RecordCreator rc = _recordCreatorsById[(short)sid];if (rc == null){return null;}return rc.GetRecordClass();}
7,467
public WriteAccessRecord(RecordInputStream in) {if (in.remaining() > DATA_SIZE) {throw new RecordFormatException("Expected data size (" + DATA_SIZE + ") but got ("+ in.remaining() + ")");}int nChars = in.readUShort();int is16BitFlag = in.readUByte();if (nChars > DATA_SIZE || (is16BitFlag & 0xFE) != 0) {byte[] data = new byte[3 + in.remaining()];LittleEndian.putUShort(data, 0, nChars);LittleEndian.putByte(data, 2, is16BitFlag);in.readFully(data, 3, data.length-3);String rawValue = new String(data, StringUtil.UTF8);setUsername(rawValue.trim());return;}String rawText;if ((is16BitFlag & 0x01) == 0x00) {rawText = StringUtil.readCompressedUnicode(in, nChars);} else {rawText = StringUtil.readUnicodeLE(in, nChars);}field_1_username = rawText.trim();int padSize = in.remaining();while (padSize > 0) {in.readUByte();padSize--;}}
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 byte[3 + in1.Remaining];LittleEndian.PutUShort(data, 0, nChars);LittleEndian.PutByte(data, 2, is16BitFlag);in1.ReadFully(data, 3, data.Length - 3);char[] data1=new char[data.Length];for (int i = 0; i < data.Length; i++){data1[i] = (char)data[i];}String rawValue = new String(data1);Username = rawValue.Trim();return;}String rawText;if ((is16BitFlag & 0x01) == 0x00){rawText = StringUtil.ReadCompressedUnicode(in1, nChars);}else{rawText = StringUtil.ReadUnicodeLE(in1, nChars);}field_1_username = rawText.Trim();int padSize = in1.Remaining;while (padSize > 0){in1.ReadUByte();padSize--;}}
7,468
public FontBasisRecord(RecordInputStream in){field_1_xBasis = in.readShort();field_2_yBasis = in.readShort();field_3_heightBasis = in.readShort();field_4_scale = in.readShort();field_5_indexToFontTable = in.readShort();}
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();}
7,469
public String encodeText(String originalText) {return originalText;}
public virtual string EncodeText(string originalText){return originalText;}
7,470
public PathEdit(String entryPath) {path = Constants.encode(entryPath);}
public PathEdit(string entryPath){path = Constants.Encode(entryPath);}
7,471
public boolean add(char[] text) {return map.put(text, PLACEHOLDER) == null;}
public virtual bool Add(char[] text){return map.Put(text);}
7,472
public ResolveAliasResult resolveAlias(ResolveAliasRequest request) {request = beforeClientExecution(request);return executeResolveAlias(request);}
public virtual ResolveAliasResponse ResolveAlias(ResolveAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResolveAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = ResolveAliasResponseUnmarshaller.Instance;return Invoke<ResolveAliasResponse>(request, options);}
7,473
public TokenStream create(TokenStream input) {return new GreekStemFilter(input);}
public override TokenStream Create(TokenStream input){return new GreekStemFilter(input);}
7,474
public DescribeCacheSecurityGroupsRequest(String cacheSecurityGroupName) {setCacheSecurityGroupName(cacheSecurityGroupName);}
public DescribeCacheSecurityGroupsRequest(string cacheSecurityGroupName){_cacheSecurityGroupName = cacheSecurityGroupName;}
7,475
public void readFully(byte[] buf, int off, int len) {if (shouldSkipEncryptionOnCurrentRecord) {readPlain(buf, off, buf.length);} else {ccis.readFully(buf, off, len);}}
public void ReadFully(byte[] buf, int off, int len){_le.ReadFully(buf, off, len);_rc4.Xor(buf, off, len);}
7,476
public static byte[] copyOf(byte[] original, int newLength) {if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}
public static byte[] copyOf(byte[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}
7,477
public DeleteDomainNameResult deleteDomainName(DeleteDomainNameRequest request) {request = beforeClientExecution(request);return executeDeleteDomainName(request);}
public virtual DeleteDomainNameResponse DeleteDomainName(DeleteDomainNameRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDomainNameRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDomainNameResponseUnmarshaller.Instance;return Invoke<DeleteDomainNameResponse>(request, options);}
7,478
public GlobalReplicationGroup decreaseNodeGroupsInGlobalReplicationGroup(DecreaseNodeGroupsInGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeDecreaseNodeGroupsInGlobalReplicationGroup(request);}
public virtual DecreaseNodeGroupsInGlobalReplicationGroupResponse DecreaseNodeGroupsInGlobalReplicationGroup(DecreaseNodeGroupsInGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DecreaseNodeGroupsInGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DecreaseNodeGroupsInGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke<DecreaseNodeGroupsInGlobalReplicationGroupResponse>(request, options);}
7,479
public SelectRequest(String selectExpression, Boolean consistentRead) {setSelectExpression(selectExpression);setConsistentRead(consistentRead);}
public SelectRequest(string selectExpression, bool consistentRead){_selectExpression = selectExpression;_consistentRead = consistentRead;}
7,480
public SubmoduleAddCommand setURI(String uri) {this.uri = uri;return this;}
public virtual NGit.Api.SubmoduleAddCommand SetURI(string uri){this.uri = uri;return this;}
7,481
public PutRestApiResult putRestApi(PutRestApiRequest request) {request = beforeClientExecution(request);return executePutRestApi(request);}
public virtual PutRestApiResponse PutRestApi(PutRestApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRestApiRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRestApiResponseUnmarshaller.Instance;return Invoke<PutRestApiResponse>(request, options);}
7,482
public Ptg get3DReferencePtg(AreaReference areaRef, SheetIdentifier sheet) {int extIx = getSheetExtIx(sheet);return new Area3DPtg(areaRef, extIx);}
public Ptg Get3DReferencePtg(CellReference cr, SheetIdentifier sheet){int extIx = GetSheetExtIx(sheet);return new Ref3DPtg(cr, extIx);}
7,483
public CreateRequestValidatorResult createRequestValidator(CreateRequestValidatorRequest request) {request = beforeClientExecution(request);return executeCreateRequestValidator(request);}
public virtual CreateRequestValidatorResponse CreateRequestValidator(CreateRequestValidatorRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRequestValidatorRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRequestValidatorResponseUnmarshaller.Instance;return Invoke<CreateRequestValidatorResponse>(request, options);}
7,484
public ByteBuffer duplicate() {return copy(this, mark);}
public override java.nio.ByteBuffer duplicate(){return copy(this, _mark);}
7,485
public void setPackedGitWindowSize(int newSize) {packedGitWindowSize = newSize;}
public virtual void SetPackedGitWindowSize(int newSize){packedGitWindowSize = newSize;}
7,486
public DisassociateMembershipResult disassociateMembership(DisassociateMembershipRequest request) {request = beforeClientExecution(request);return executeDisassociateMembership(request);}
public virtual DisassociateMembershipResponse DisassociateMembership(DisassociateMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateMembershipResponseUnmarshaller.Instance;return Invoke<DisassociateMembershipResponse>(request, options);}
7,487
public void parse(Reader in) throws IOException, ParseException {LineNumberReader br = new LineNumberReader(in);try {String line = null;String lastSynSetID = "";CharsRef synset[] = new CharsRef[8];int synsetSize = 0;while ((line = br.readLine()) != null) {String synSetID = line.substring(2, 11);if (!synSetID.equals(lastSynSetID)) {addInternal(synset, synsetSize);synsetSize = 0;}synset = ArrayUtil.grow(synset, synsetSize + 1);synset[synsetSize] = parseSynonym(line, new CharsRefBuilder());synsetSize++;lastSynSetID = synSetID;}addInternal(synset, synsetSize);} catch (IllegalArgumentException e) {ParseException ex = new ParseException("Invalid synonym rule at line " + br.getLineNumber(), 0);ex.initCause(e);throw ex;} finally {br.close();}}
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, StringComparison.Ordinal)){AddInternal(synset, synsetSize);synsetSize = 0;}if (synset.Length <= synsetSize + 1){CharsRef[] larger = new CharsRef[synset.Length * 2];Array.Copy(synset, 0, larger, 0, synsetSize);synset = larger;}synset[synsetSize] = ParseSynonym(line, synset[synsetSize]);synsetSize++;lastSynSetID = synSetID;}AddInternal(synset, synsetSize);}catch (System.ArgumentException e){throw new Exception("Invalid synonym rule at line " + lineNumber.ToString(), e);}finally{br.Dispose();}}
7,488
public String[] list() {return listImpl(path);}
public string[] list(){return listImpl(path);}
7,489
public 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(HexDump.shortToHex(iObjectKind)).append('\n');buffer.append(" .reserved =").append(HexDump.toHex(reserved)).append('\n');buffer.append("[/ENDOBJECT]\n");return buffer.toString();}
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(HexDump.ShortToHex(iObjectKind)).Append('\n');buffer.Append(" .unused =").Append(HexDump.ToHex(reserved)).Append('\n');buffer.Append("[/ENDOBJECT]\n");return buffer.ToString();}
7,490
public static final RevFilter after(Date ts) {return after(ts.getTime());}
public static RevFilter After(DateTime ts){return After(ts.GetTime());}
7,491
public static Element getFirstChildElement(Element element) {for (Node kid = element.getFirstChild(); kid != null; kid = kid.getNextSibling()) {if (kid.getNodeType() == Node.ELEMENT_NODE) {return (Element) kid;}}return null;}
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;}
7,492
@Override public boolean add(E object) {synchronized (mutex) {return c.add(object);}}
public virtual bool add(E @object){lock (mutex){return c.add(@object);}}
7,493
public LongMap() {table = createArray(64);growAt = (int) (table.length * LOAD_FACTOR);}
public LongMap(){table = CreateArray<V>(64);growAt = (int)(table.Length * LOAD_FACTOR);}
7,494
public ClaimGameServerResult claimGameServer(ClaimGameServerRequest request) {request = beforeClientExecution(request);return executeClaimGameServer(request);}
public virtual ClaimGameServerResponse ClaimGameServer(ClaimGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = ClaimGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = ClaimGameServerResponseUnmarshaller.Instance;return Invoke<ClaimGameServerResponse>(request, options);}
7,495
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval venumerator, ValueEval vedenominator) {double enumerator = 0;try {enumerator = OperandResolver.coerceValueToDouble(venumerator);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}double denominator = 0;try {denominator = OperandResolver.coerceValueToDouble(vedenominator);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}if (denominator == 0) {return ErrorEval.DIV_ZERO;}return new NumberEval((int)(enumerator / denominator));}
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 = OperandResolver.CoerceValueToDouble(vedenominator);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}if (denominator == 0){return ErrorEval.DIV_ZERO;}return new NumberEval(((int)(enumerator / denominator)));}
7,496
public synchronized V put(K key, V value) {if (value == null) {throw new NullPointerException();}int hash = secondaryHash(key.hashCode());HashtableEntry<K, V>[] tab = table;int index = hash & (tab.length - 1);HashtableEntry<K, V> first = tab[index];for (HashtableEntry<K, V> e = first; e != null; e = e.next) {if (e.hash == hash && key.equals(e.key)) {V oldValue = e.value;e.value = value;return oldValue;}}modCount++;if (size++ > threshold) {rehash(); tab = doubleCapacity();index = hash & (tab.length - 1);first = tab[index];}tab[index] = new HashtableEntry<K, V>(key, value, hash, first);return null;}
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 (java.util.Hashtable.HashtableEntry<K, V> e = first; e != null; e = e.next){if (e.hash == hash && key.Equals(e.key)){V oldValue = e.value;e.value = value;return oldValue;}}}modCount++;if (_size++ > threshold){rehash();tab = doubleCapacity();index = hash & (tab.Length - 1);first = tab[index];}tab[index] = new java.util.Hashtable.HashtableEntry<K, V>(key, value, hash, first);return default(V);}}
7,497
public DescribeAutoScalingNotificationTypesResult describeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request) {request = beforeClientExecution(request);return executeDescribeAutoScalingNotificationTypes(request);}
public virtual DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAutoScalingNotificationTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAutoScalingNotificationTypesResponseUnmarshaller.Instance;return Invoke<DescribeAutoScalingNotificationTypesResponse>(request, options);}
7,498
public ScandinavianFoldingFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
public ScandinavianFoldingFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
7,499
public ContentHandler getContentHandler () {return (theContentHandler == this) ? null : theContentHandler;}
public void close (){lock (this.mBlock) {if (this.mParseState != null) {this.mParseState.Dispose ();this.mParseState = null;this.mBlock.decOpenCountLocked ();}}}