[ { "index": 0, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_vcenter);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_vcenter);}" }, { "index": 1, "before": "public void addAll(BlockList src) {if (src.size == 0)return;int srcDirIdx = 0;for (; srcDirIdx < src.tailDirIdx; srcDirIdx++)addAll(src.directory[srcDirIdx], 0, BLOCK_SIZE);if (src.tailBlkIdx != 0)addAll(src.tailBlock, 0, src.tailBlkIdx);}", "after": "public virtual void AddAll(NGit.Util.BlockList src){if (src.size == 0){return;}int srcDirIdx = 0;for (; srcDirIdx < src.tailDirIdx; srcDirIdx++){AddAll(src.directory[srcDirIdx], 0, BLOCK_SIZE);}if (src.tailBlkIdx != 0){AddAll(src.tailBlock, 0, src.tailBlkIdx);}}" }, { "index": 2, "before": "public void writeByte(byte b) {if (upto == blockSize) {if (currentBlock != null) {addBlock(currentBlock);}currentBlock = new byte[blockSize];upto = 0;}currentBlock[upto++] = b;}", "after": "public override void WriteByte(byte b){if (outerInstance.upto == outerInstance.blockSize){if (outerInstance.currentBlock != null){outerInstance.blocks.Add(outerInstance.currentBlock);outerInstance.blockEnd.Add(outerInstance.upto);}outerInstance.currentBlock = new byte[outerInstance.blockSize];outerInstance.upto = 0;}outerInstance.currentBlock[outerInstance.upto++] = (byte)b;}" }, { "index": 3, "before": "public ObjectId getObjectId() {return objectId;}", "after": "public virtual ObjectId GetObjectId(){return objectId;}" }, { "index": 4, "before": "public DeleteDomainEntryResult deleteDomainEntry(DeleteDomainEntryRequest request) {request = beforeClientExecution(request);return executeDeleteDomainEntry(request);}", "after": "public virtual DeleteDomainEntryResponse DeleteDomainEntry(DeleteDomainEntryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDomainEntryRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDomainEntryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 5, "before": "public long ramBytesUsed() {return ((termOffsets!=null)? termOffsets.ramBytesUsed() : 0) +((termsDictOffsets!=null)? termsDictOffsets.ramBytesUsed() : 0);}", "after": "public virtual long RamBytesUsed(){return fst == null ? 0 : fst.GetSizeInBytes();}" }, { "index": 6, "before": "public final String getFullMessage() {byte[] raw = buffer;int msgB = RawParseUtils.tagMessage(raw, 0);if (msgB < 0) {return \"\"; }return RawParseUtils.decode(guessEncoding(), raw, msgB, raw.length);}", "after": "public string GetFullMessage(){byte[] raw = buffer;int msgB = RawParseUtils.TagMessage(raw, 0);if (msgB < 0){return string.Empty;}Encoding enc = RawParseUtils.ParseEncoding(raw);return RawParseUtils.Decode(enc, raw, msgB, raw.Length);}" }, { "index": 7, "before": "public POIFSFileSystem() {this(true);_header.setBATCount(1);_header.setBATArray(new int[]{1});BATBlock bb = BATBlock.createEmptyBATBlock(bigBlockSize, false);bb.setOurBlockIndex(1);_bat_blocks.add(bb);setNextBlock(0, POIFSConstants.END_OF_CHAIN);setNextBlock(1, POIFSConstants.FAT_SECTOR_BLOCK);_property_table.setStartBlock(0);}", "after": "public POIFSFileSystem(){HeaderBlock headerBlock = new HeaderBlock(bigBlockSize);_property_table = new PropertyTable(headerBlock);_documents = new ArrayList();_root = null;}" }, { "index": 8, "before": "public void init(int address) {slice = pool.buffers[address >> ByteBlockPool.BYTE_BLOCK_SHIFT];assert slice != null;upto = address & ByteBlockPool.BYTE_BLOCK_MASK;offset0 = address;assert upto < slice.length;}", "after": "public void Init(int address){slice = pool.Buffers[address >> ByteBlockPool.BYTE_BLOCK_SHIFT];Debug.Assert(slice != null);upto = address & ByteBlockPool.BYTE_BLOCK_MASK;offset0 = address;Debug.Assert(upto < slice.Length);}" }, { "index": 9, "before": "public SubmoduleAddCommand setPath(String path) {this.path = path;return this;}", "after": "public virtual NGit.Api.SubmoduleAddCommand SetPath(string path){this.path = path;return this;}" }, { "index": 10, "before": "public ListIngestionsResult listIngestions(ListIngestionsRequest request) {request = beforeClientExecution(request);return executeListIngestions(request);}", "after": "public virtual ListIngestionsResponse ListIngestions(ListIngestionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIngestionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIngestionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 11, "before": "public QueryParserTokenManager(CharStream stream, int lexState){this(stream);SwitchTo(lexState);}", "after": "public QueryParserTokenManager(ICharStream stream, int lexState): this(stream){SwitchTo(lexState);}" }, { "index": 12, "before": "public GetShardIteratorResult getShardIterator(GetShardIteratorRequest request) {request = beforeClientExecution(request);return executeGetShardIterator(request);}", "after": "public virtual GetShardIteratorResponse GetShardIterator(GetShardIteratorRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetShardIteratorRequestMarshaller.Instance;options.ResponseUnmarshaller = GetShardIteratorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 13, "before": "public ModifyStrategyRequest() {super(\"aegis\", \"2016-11-11\", \"ModifyStrategy\", \"vipaegis\");setMethod(MethodType.POST);}", "after": "public ModifyStrategyRequest(): base(\"aegis\", \"2016-11-11\", \"ModifyStrategy\", \"vipaegis\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 14, "before": "public boolean ready() throws IOException {synchronized (lock) {if (in == null) {throw new IOException(\"InputStreamReader is closed\");}try {return bytes.hasRemaining() || in.available() > 0;} catch (IOException e) {return false;}}}", "after": "public override bool ready(){lock (@lock){if (@in == null){throw new System.IO.IOException(\"InputStreamReader is closed\");}try{return bytes.hasRemaining() || @in.available() > 0;}catch (System.IO.IOException){return false;}}}" }, { "index": 15, "before": "public EscherOptRecord getOptRecord() {return _optRecord;}", "after": "protected internal EscherOptRecord GetOptRecord(){return _optRecord;}" }, { "index": 16, "before": "public synchronized int read(byte[] buffer, int offset, int length) {if (buffer == null) {throw new NullPointerException(\"buffer == null\");}Arrays.checkOffsetAndCount(buffer.length, offset, length);if (length == 0) {return 0;}int copylen = count - pos < length ? count - pos : length;for (int i = 0; i < copylen; i++) {buffer[offset + i] = (byte) this.buffer.charAt(pos + i);}pos += copylen;return copylen;}", "after": "public override int read(byte[] buffer, int offset, int length){lock (this){if (buffer == null){throw new System.ArgumentNullException(\"buffer == null\");}java.util.Arrays.checkOffsetAndCount(buffer.Length, offset, length);if (length == 0){return 0;}int copylen = count - pos < length ? count - pos : length;{for (int i = 0; i < copylen; i++){buffer[offset + i] = unchecked((byte)this.buffer[pos + i]);}}pos += copylen;return copylen;}}" }, { "index": 17, "before": "public OpenNLPSentenceBreakIterator(NLPSentenceDetectorOp sentenceOp) {this.sentenceOp = sentenceOp;}", "after": "public OpenNLPSentenceBreakIterator(NLPSentenceDetectorOp sentenceOp){this.sentenceOp = sentenceOp;}" }, { "index": 18, "before": "public void print(String str) {write(str != null ? str : String.valueOf((Object) null));}", "after": "public virtual void print(string str){write(str != null ? str : Sharpen.StringHelper.GetValueOf((object)null));}" }, { "index": 19, "before": "public NotImplementedFunctionException(String functionName, NotImplementedException cause) {super(functionName, cause);this.functionName = functionName;}", "after": "public NotImplementedFunctionException(string functionName, NotImplementedException cause): base(functionName,cause){this.functionName = functionName;}" }, { "index": 20, "before": "public V next() {return super.nextEntry().getValue();}", "after": "public override V next(){return this.nextEntry().value;}" }, { "index": 21, "before": "public final void readBytes(byte[] b, int offset, int len, boolean useBuffer) throws IOException {int available = bufferLength - bufferPosition;if(len <= available){if(len>0) System.arraycopy(buffer, bufferPosition, b, offset, len);bufferPosition+=len;} else {if(available > 0){System.arraycopy(buffer, bufferPosition, b, offset, available);offset += available;len -= available;bufferPosition += available;}if (useBuffer && len length())throw new EOFException(\"read past EOF: \" + this);readInternal(b, offset, len);bufferStart = after;bufferPosition = 0;bufferLength = 0; }}}", "after": "public override sealed void ReadBytes(byte[] b, int offset, int len, bool useBuffer){int available = bufferLength - bufferPosition;if (len <= available){if (len > 0) {Buffer.BlockCopy(m_buffer, bufferPosition, b, offset, len);}bufferPosition += len;}else{if (available > 0){Buffer.BlockCopy(m_buffer, bufferPosition, b, offset, available);offset += available;len -= available;bufferPosition += available;}if (useBuffer && len < bufferSize){Refill();if (bufferLength < len){Buffer.BlockCopy(m_buffer, 0, b, offset, bufferLength);throw new EndOfStreamException(\"read past EOF: \" + this);}else{Buffer.BlockCopy(m_buffer, 0, b, offset, len);bufferPosition = len;}}else{long after = bufferStart + bufferPosition + len;if (after > Length){throw new EndOfStreamException(\"read past EOF: \" + this);}ReadInternal(b, offset, len);bufferStart = after;bufferPosition = 0;bufferLength = 0; }}}" }, { "index": 22, "before": "public TagQueueResult tagQueue(TagQueueRequest request) {request = beforeClientExecution(request);return executeTagQueue(request);}", "after": "public virtual TagQueueResponse TagQueue(TagQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = TagQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = TagQueueResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 23, "before": "public void remove() {throw new UnsupportedOperationException();}", "after": "public override void Remove(){throw new NotSupportedException();}" }, { "index": 24, "before": "public CacheSubnetGroup modifyCacheSubnetGroup(ModifyCacheSubnetGroupRequest request) {request = beforeClientExecution(request);return executeModifyCacheSubnetGroup(request);}", "after": "public virtual ModifyCacheSubnetGroupResponse ModifyCacheSubnetGroup(ModifyCacheSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyCacheSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyCacheSubnetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 25, "before": "public void setParams(String params) {super.setParams(params);language = country = variant = \"\";StringTokenizer st = new StringTokenizer(params, \",\");if (st.hasMoreTokens())language = st.nextToken();if (st.hasMoreTokens())country = st.nextToken();if (st.hasMoreTokens())variant = st.nextToken();}", "after": "public override void SetParams(string @params){base.SetParams(@params);culture = \"\";string ignore;StringTokenizer st = new StringTokenizer(@params, \",\");if (st.MoveNext())culture = st.Current;if (st.MoveNext())culture += \"-\" + st.Current;if (st.MoveNext())ignore = st.Current;}" }, { "index": 26, "before": "public DeleteDocumentationVersionResult deleteDocumentationVersion(DeleteDocumentationVersionRequest request) {request = beforeClientExecution(request);return executeDeleteDocumentationVersion(request);}", "after": "public virtual DeleteDocumentationVersionResponse DeleteDocumentationVersion(DeleteDocumentationVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDocumentationVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDocumentationVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 27, "before": "public boolean equals(Object obj) {if (!(obj instanceof FacetLabel)) {return false;}FacetLabel other = (FacetLabel) obj;if (length != other.length) {return false; }for (int i = length - 1; i >= 0; i--) {if (!components[i].equals(other.components[i])) {return false;}}return true;}", "after": "public override bool Equals(object obj){if (!(obj is FacetLabel)){return false;}FacetLabel other = (FacetLabel)obj;if (Length != other.Length){return false; }for (int i = Length - 1; i >= 0; i--){if (!Components[i].Equals(other.Components[i], StringComparison.Ordinal)){return false;}}return true;}" }, { "index": 28, "before": "public GetInstanceAccessDetailsResult getInstanceAccessDetails(GetInstanceAccessDetailsRequest request) {request = beforeClientExecution(request);return executeGetInstanceAccessDetails(request);}", "after": "public virtual GetInstanceAccessDetailsResponse GetInstanceAccessDetails(GetInstanceAccessDetailsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstanceAccessDetailsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstanceAccessDetailsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 29, "before": "public HSSFPolygon createPolygon(HSSFChildAnchor anchor) {HSSFPolygon shape = new HSSFPolygon(this, anchor);shape.setParent(this);shape.setAnchor(anchor);shapes.add(shape);onCreate(shape);return shape;}", "after": "public HSSFPolygon CreatePolygon(HSSFChildAnchor anchor){HSSFPolygon shape = new HSSFPolygon(this, anchor);shape.Parent = this;shape.Anchor = anchor;shapes.Add(shape);OnCreate(shape);return shape;}" }, { "index": 30, "before": "public String getSheetName(int sheetIndex) {return getBoundSheetRec(sheetIndex).getSheetname();}", "after": "public String GetSheetName(int sheetIndex){return GetBoundSheetRec(sheetIndex).Sheetname;}" }, { "index": 31, "before": "public GetDashboardResult getDashboard(GetDashboardRequest request) {request = beforeClientExecution(request);return executeGetDashboard(request);}", "after": "public virtual GetDashboardResponse GetDashboard(GetDashboardRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDashboardRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDashboardResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 32, "before": "public AssociateSigninDelegateGroupsWithAccountResult associateSigninDelegateGroupsWithAccount(AssociateSigninDelegateGroupsWithAccountRequest request) {request = beforeClientExecution(request);return executeAssociateSigninDelegateGroupsWithAccount(request);}", "after": "public virtual AssociateSigninDelegateGroupsWithAccountResponse AssociateSigninDelegateGroupsWithAccount(AssociateSigninDelegateGroupsWithAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateSigninDelegateGroupsWithAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateSigninDelegateGroupsWithAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 33, "before": "public void addMultipleBlanks(MulBlankRecord mbr) {for (int j = 0; j < mbr.getNumColumns(); j++) {BlankRecord br = new BlankRecord();br.setColumn(( short ) (j + mbr.getFirstColumn()));br.setRow(mbr.getRow());br.setXFIndex(mbr.getXFAt(j));insertCell(br);}}", "after": "public void AddMultipleBlanks(MulBlankRecord mbr){for (int j = 0; j < mbr.NumColumns; j++){BlankRecord br = new BlankRecord();br.Column = j + mbr.FirstColumn;br.Row = mbr.Row;br.XFIndex = (mbr.GetXFAt(j));InsertCell(br);}}" }, { "index": 34, "before": "public static String quote(String string) {StringBuilder sb = new StringBuilder();sb.append(\"\\\\Q\");int apos = 0;int k;while ((k = string.indexOf(\"\\\\E\", apos)) >= 0) {sb.append(string.substring(apos, k + 2)).append(\"\\\\\\\\E\\\\Q\");apos = k + 2;}return sb.append(string.substring(apos)).append(\"\\\\E\").toString();}", "after": "public static string quote(string @string){java.lang.StringBuilder sb = new java.lang.StringBuilder();sb.append(\"\\\\Q\");int apos = 0;int k;while ((k = @string.IndexOf(\"\\\\E\", apos)) >= 0){sb.append(Sharpen.StringHelper.Substring(@string, apos, k + 2)).append(\"\\\\\\\\E\\\\Q\");apos = k + 2;}return sb.append(Sharpen.StringHelper.Substring(@string, apos)).append(\"\\\\E\").ToString();}" }, { "index": 35, "before": "public ByteBuffer putInt(int value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putInt(int value){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 36, "before": "public ArrayPtg(Object[][] values2d) {int nColumns = values2d[0].length;int nRows = values2d.length;_nColumns = (short) nColumns;_nRows = (short) nRows;Object[] vv = new Object[_nColumns * _nRows];for (int r=0; r(request, options);}" }, { "index": 38, "before": "public String toString() {return getClass().getName() + \" [\" +getValueAsString() +\"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(GetValueAsString());sb.Append(\"]\");return sb.ToString();}" }, { "index": 39, "before": "public String toString(String field) {return \"ToChildBlockJoinQuery (\"+parentQuery.toString()+\")\";}", "after": "public override string ToString(string field){return \"ToChildBlockJoinQuery (\" + _parentQuery + \")\";}" }, { "index": 40, "before": "public final void incRef() {refCount.incrementAndGet();}", "after": "public void IncRef(){refCount.IncrementAndGet();}" }, { "index": 41, "before": "public UpdateConfigurationSetSendingEnabledResult updateConfigurationSetSendingEnabled(UpdateConfigurationSetSendingEnabledRequest request) {request = beforeClientExecution(request);return executeUpdateConfigurationSetSendingEnabled(request);}", "after": "public virtual UpdateConfigurationSetSendingEnabledResponse UpdateConfigurationSetSendingEnabled(UpdateConfigurationSetSendingEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateConfigurationSetSendingEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateConfigurationSetSendingEnabledResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 42, "before": "public int getNextXBATChainOffset() {return getXBATEntriesPerBlock() * LittleEndianConsts.INT_SIZE;}", "after": "public int GetNextXBATChainOffset(){return GetXBATEntriesPerBlock() * LittleEndianConsts.INT_SIZE;}" }, { "index": 43, "before": "public void multiplyByPowerOfTen(int pow10) {TenPower tp = TenPower.getInstance(Math.abs(pow10));if (pow10 < 0) {mulShift(tp._divisor, tp._divisorShift);} else {mulShift(tp._multiplicand, tp._multiplierShift);}}", "after": "public void multiplyByPowerOfTen(int pow10){TenPower tp = TenPower.GetInstance(Math.Abs(pow10));if (pow10 < 0){mulShift(tp._divisor, tp._divisorShift);}else{mulShift(tp._multiplicand, tp._multiplierShift);}}" }, { "index": 44, "before": "public String toString(){final StringBuilder b = new StringBuilder();final int l = length();b.append(File.separatorChar);for (int i = 0; i < l; i++){b.append(getComponent(i));if (i < l - 1){b.append(File.separatorChar);}}return b.toString();}", "after": "public override string ToString(){StringBuilder builder = new StringBuilder();int length = this.Length;builder.Append(Path.DirectorySeparatorChar);for (int i = 0; i < length; i++){builder.Append(this.GetComponent(i));if (i < (length - 1)){builder.Append(Path.DirectorySeparatorChar);}}return builder.ToString();}" }, { "index": 45, "before": "public InstanceProfileCredentialsProvider withFetcher(ECSMetadataServiceCredentialsFetcher fetcher) {this.fetcher = fetcher;this.fetcher.setRoleName(roleName);return this;}", "after": "public void withFetcher(ECSMetadataServiceCredentialsFetcher fetcher){this.fetcher = fetcher;this.fetcher.SetRoleName(roleName);}" }, { "index": 46, "before": "public void setProgressMonitor(ProgressMonitor pm) {progressMonitor = pm;}", "after": "public virtual void SetProgressMonitor(ProgressMonitor pm){progressMonitor = pm;}" }, { "index": 47, "before": "public void reset() {if (!first()) {ptr = 0;if (!eof())parseEntry();}}", "after": "public override void Reset(){if (!First){ptr = 0;if (!Eof){ParseEntry();}}}" }, { "index": 48, "before": "public E previous() {if (iterator.previousIndex() >= start) {return iterator.previous();}throw new NoSuchElementException();}", "after": "public E previous(){if (iterator.previousIndex() >= start){return iterator.previous();}throw new java.util.NoSuchElementException();}" }, { "index": 49, "before": "public String getNewPrefix() {return this.newPrefix;}", "after": "public virtual string GetNewPrefix(){return this.newPrefix;}" }, { "index": 50, "before": "public int indexOfValue(int value) {for (int i = 0; i < mSize; i++)if (mValues[i] == value)return i;return -1;}", "after": "public virtual int indexOfValue(int value){{for (int i = 0; i < mSize; i++){if (mValues[i] == value){return i;}}}return -1;}" }, { "index": 51, "before": "public List uniqueStems(char word[], int length) {List stems = stem(word, length);if (stems.size() < 2) {return stems;}CharArraySet terms = new CharArraySet(8, dictionary.ignoreCase);List deduped = new ArrayList<>();for (CharsRef s : stems) {if (!terms.contains(s)) {deduped.add(s);terms.add(s);}}return deduped;}", "after": "public IList UniqueStems(char[] word, int length){IList stems = Stem(word, length);if (stems.Count < 2){return stems;}CharArraySet terms = new CharArraySet(#pragma warning disable 612, 618LuceneVersion.LUCENE_CURRENT, 8, dictionary.ignoreCase);#pragma warning restore 612, 618IList deduped = new List();foreach (CharsRef s in stems){if (!terms.Contains(s)){deduped.Add(s);terms.Add(s);}}return deduped;}" }, { "index": 52, "before": "public GetGatewayResponsesResult getGatewayResponses(GetGatewayResponsesRequest request) {request = beforeClientExecution(request);return executeGetGatewayResponses(request);}", "after": "public virtual GetGatewayResponsesResponse GetGatewayResponses(GetGatewayResponsesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGatewayResponsesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGatewayResponsesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 53, "before": "public void setPosition(long pos) {currentBlockIndex = (int) (pos >> blockBits);currentBlock = blocks[currentBlockIndex];currentBlockUpto = (int) (pos & blockMask);}", "after": "public void SetPosition(long position){currentBlockIndex = (int)(position >> outerInstance.blockBits);currentBlock = outerInstance.blocks[currentBlockIndex];currentBlockUpto = (int)(position & outerInstance.blockMask);}" }, { "index": 54, "before": "public long skip(long n) {int s = (int) Math.min(available(), Math.max(0, n));ptr += s;return s;}", "after": "public override long Skip(long n){int s = (int)Math.Min(Available(), Math.Max(0, n));ptr += s;return s;}" }, { "index": 55, "before": "public BootstrapActionDetail(BootstrapActionConfig bootstrapActionConfig) {setBootstrapActionConfig(bootstrapActionConfig);}", "after": "public BootstrapActionDetail(BootstrapActionConfig bootstrapActionConfig){_bootstrapActionConfig = bootstrapActionConfig;}" }, { "index": 56, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_row);out.writeShort(field_2_col);out.writeShort(field_3_flags);out.writeShort(field_4_shapeid);out.writeShort(field_6_author.length());out.writeByte(field_5_hasMultibyte ? 0x01 : 0x00);if (field_5_hasMultibyte) {StringUtil.putUnicodeLE(field_6_author, out);} else {StringUtil.putCompressedUnicode(field_6_author, out);}if (field_7_padding != null) {out.writeByte(field_7_padding.intValue());}}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_row);out1.WriteShort(field_2_col);out1.WriteShort(field_3_flags);out1.WriteShort(field_4_shapeid);out1.WriteShort(field_6_author.Length);out1.WriteByte(field_5_hasMultibyte ? 0x01 : 0x00);if (field_5_hasMultibyte) {StringUtil.PutUnicodeLE(field_6_author, out1);} else {StringUtil.PutCompressedUnicode(field_6_author, out1);}if (field_7_padding != null) {out1.WriteByte(Convert.ToInt32(field_7_padding, CultureInfo.InvariantCulture));}}" }, { "index": 57, "before": "public int lastIndexOf(String string) {return lastIndexOf(string, count);}", "after": "public virtual int lastIndexOf(string @string){return lastIndexOf(@string, count);}" }, { "index": 58, "before": "public boolean add(E object) {return addLastImpl(object);}", "after": "public override bool add(E @object){return addLastImpl(@object);}" }, { "index": 59, "before": "public void unsetSection(String section, String subsection) {ConfigSnapshot src, res;do {src = state.get();res = unsetSection(src, section, subsection);} while (!state.compareAndSet(src, res));}", "after": "public virtual void UnsetSection(string section, string subsection){ConfigSnapshot src;ConfigSnapshot res;do{src = state.Get();res = UnsetSection(src, section, subsection);}while (!state.CompareAndSet(src, res));}" }, { "index": 60, "before": "public final String getTagName() {return tagName;}", "after": "public string GetTagName(){return tagName;}" }, { "index": 61, "before": "public void addSubRecord(int index, SubRecord element) {subrecords.add(index, element);}", "after": "public void AddSubRecord(int index, SubRecord element){subrecords.Insert(index, element);}" }, { "index": 62, "before": "public boolean remove(Object o) {synchronized (mutex) {return delegate().remove(o);}}", "after": "public virtual bool remove(object @object){lock (mutex){return c.remove(@object);}}" }, { "index": 63, "before": "public DoubleMetaphoneFilter create(TokenStream input) {return new DoubleMetaphoneFilter(input, maxCodeLength, inject);}", "after": "public override TokenStream Create(TokenStream input){return new DoubleMetaphoneFilter(input, maxCodeLength, inject);}" }, { "index": 64, "before": "public long length() {return inCoreLength();}", "after": "public virtual long Length(){return InCoreLength();}" }, { "index": 65, "before": "public void setValue(boolean newValue) {value = newValue;}", "after": "public virtual void SetValue(bool newValue){value = newValue;}" }, { "index": 66, "before": "public Pair(ContentSource oldSource, ContentSource newSource) {this.oldSource = oldSource;this.newSource = newSource;}", "after": "public Pair(ContentSource oldSource, ContentSource newSource){this.oldSource = oldSource;this.newSource = newSource;}" }, { "index": 67, "before": "public int get(int i) {if (count <= i)throw new ArrayIndexOutOfBoundsException(i);return entries[i];}", "after": "public virtual int Get(int i){if (count <= i){throw Sharpen.Extensions.CreateIndexOutOfRangeException(i);}return entries[i];}" }, { "index": 68, "before": "public CreateRepoRequest() {super(\"cr\", \"2016-06-07\", \"CreateRepo\", \"cr\");setUriPattern(\"/repos\");setMethod(MethodType.PUT);}", "after": "public CreateRepoRequest(): base(\"cr\", \"2016-06-07\", \"CreateRepo\", \"cr\", \"openAPI\"){UriPattern = \"/repos\";Method = MethodType.PUT;}" }, { "index": 69, "before": "public boolean isDeltaBaseAsOffset() {return deltaBaseAsOffset;}", "after": "public virtual bool IsDeltaBaseAsOffset(){return deltaBaseAsOffset;}" }, { "index": 70, "before": "public void remove() {if (expectedModCount == list.modCount) {if (lastLink != null) {Link next = lastLink.next;Link previous = lastLink.previous;next.previous = previous;previous.next = next;if (lastLink == link) {pos--;}link = previous;lastLink = null;expectedModCount++;list.size--;list.modCount++;} else {throw new IllegalStateException();}} else {throw new ConcurrentModificationException();}}", "after": "public void remove(){if (expectedModCount == list.modCount){if (lastLink != null){java.util.LinkedList.Link next_1 = lastLink.next;java.util.LinkedList.Link previous_1 = lastLink.previous;next_1.previous = previous_1;previous_1.next = next_1;if (lastLink == link){pos--;}link = previous_1;lastLink = null;expectedModCount++;list._size--;list.modCount++;}else{throw new System.InvalidOperationException();}}else{throw new java.util.ConcurrentModificationException();}}" }, { "index": 71, "before": "public MergeShardsResult mergeShards(MergeShardsRequest request) {request = beforeClientExecution(request);return executeMergeShards(request);}", "after": "public virtual MergeShardsResponse MergeShards(MergeShardsRequest request){var options = new InvokeOptions();options.RequestMarshaller = MergeShardsRequestMarshaller.Instance;options.ResponseUnmarshaller = MergeShardsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 72, "before": "public AllocateHostedConnectionResult allocateHostedConnection(AllocateHostedConnectionRequest request) {request = beforeClientExecution(request);return executeAllocateHostedConnection(request);}", "after": "public virtual AllocateHostedConnectionResponse AllocateHostedConnection(AllocateHostedConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocateHostedConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocateHostedConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 73, "before": "public int getBeginIndex() {return start;}", "after": "public int getBeginIndex(){return start;}" }, { "index": 74, "before": "public static final WeightedTerm[] getTerms(Query query){return getTerms(query,false);}", "after": "public static WeightedTerm[] GetTerms(Query query){return GetTerms(query, false);}" }, { "index": 75, "before": "public ByteBuffer compact() {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer compact(){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 76, "before": "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;values[valuesOffset++] = byte0 >>> 2;final long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 4) | (byte1 >>> 4);final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 15) << 2) | (byte2 >>> 6);values[valuesOffset++] = byte2 & 63;}}", "after": "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;}}" }, { "index": 77, "before": "public String getHumanishName() throws IllegalArgumentException {String s = getPath();if (\"/\".equals(s) || \"\".equals(s)) s = getHost();if (s == null) throw new IllegalArgumentException();String[] elements;if (\"file\".equals(scheme) || LOCAL_FILE.matcher(s).matches()) elements = s.split(\"[\\\\\" + File.separatorChar + \"/]\"); elseelements = s.split(\"/+\"); if (elements.length == 0)throw new IllegalArgumentException();String result = elements[elements.length - 1];if (Constants.DOT_GIT.equals(result))result = elements[elements.length - 2];else if (result.endsWith(Constants.DOT_GIT_EXT))result = result.substring(0, result.length()- Constants.DOT_GIT_EXT.length());return result;}", "after": "public virtual string GetHumanishName(){if (string.Empty.Equals(GetPath()) || GetPath() == null){throw new ArgumentException();}string s = GetPath();string[] elements;if (\"file\".Equals(scheme) || LOCAL_FILE.Matcher(s).Matches()){elements = s.Split(\"[\\\\\" + FilePath.separatorChar + \"/]\");}else{elements = s.Split(\"/\");}if (elements.Length == 0){throw new ArgumentException();}string result = elements[elements.Length - 1];if (Constants.DOT_GIT.Equals(result)){result = elements[elements.Length - 2];}else{if (result.EndsWith(Constants.DOT_GIT_EXT)){result = Sharpen.Runtime.Substring(result, 0, result.Length - Constants.DOT_GIT_EXT.Length);}}return result;}" }, { "index": 78, "before": "public DescribeNotebookInstanceLifecycleConfigResult describeNotebookInstanceLifecycleConfig(DescribeNotebookInstanceLifecycleConfigRequest request) {request = beforeClientExecution(request);return executeDescribeNotebookInstanceLifecycleConfig(request);}", "after": "public virtual DescribeNotebookInstanceLifecycleConfigResponse DescribeNotebookInstanceLifecycleConfig(DescribeNotebookInstanceLifecycleConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNotebookInstanceLifecycleConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNotebookInstanceLifecycleConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 79, "before": "public String getAccessKeySecret() {return this.accessKeySecret;}", "after": "public string GetAccessKeySecret(){return AccessSecret;}" }, { "index": 80, "before": "public CreateVpnConnectionResult createVpnConnection(CreateVpnConnectionRequest request) {request = beforeClientExecution(request);return executeCreateVpnConnection(request);}", "after": "public virtual CreateVpnConnectionResponse CreateVpnConnection(CreateVpnConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpnConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpnConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 81, "before": "public DescribeVoicesResult describeVoices(DescribeVoicesRequest request) {request = beforeClientExecution(request);return executeDescribeVoices(request);}", "after": "public virtual DescribeVoicesResponse DescribeVoices(DescribeVoicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVoicesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVoicesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 82, "before": "public ListMonitoringExecutionsResult listMonitoringExecutions(ListMonitoringExecutionsRequest request) {request = beforeClientExecution(request);return executeListMonitoringExecutions(request);}", "after": "public virtual ListMonitoringExecutionsResponse ListMonitoringExecutions(ListMonitoringExecutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListMonitoringExecutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListMonitoringExecutionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 83, "before": "public DescribeJobRequest(String vaultName, String jobId) {setVaultName(vaultName);setJobId(jobId);}", "after": "public DescribeJobRequest(string vaultName, string jobId){_vaultName = vaultName;_jobId = jobId;}" }, { "index": 84, "before": "public EscherRecord getEscherRecord(int index){return escherRecords.get(index);}", "after": "public EscherRecord GetEscherRecord(int index){return escherRecords[index];}" }, { "index": 85, "before": "public GetApisResult getApis(GetApisRequest request) {request = beforeClientExecution(request);return executeGetApis(request);}", "after": "public virtual GetApisResponse GetApis(GetApisRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApisRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApisResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 86, "before": "public DeleteSmsChannelResult deleteSmsChannel(DeleteSmsChannelRequest request) {request = beforeClientExecution(request);return executeDeleteSmsChannel(request);}", "after": "public virtual DeleteSmsChannelResponse DeleteSmsChannel(DeleteSmsChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSmsChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSmsChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 87, "before": "public TrackingRefUpdate getTrackingRefUpdate() {return trackingRefUpdate;}", "after": "public virtual TrackingRefUpdate GetTrackingRefUpdate(){return trackingRefUpdate;}" }, { "index": 88, "before": "public void print(boolean b) {print(String.valueOf(b));}", "after": "public virtual void print(bool b){print(b.ToString());}" }, { "index": 89, "before": "public QueryNode getChild() {return getChildren().get(0);}", "after": "public virtual IQueryNode GetChild(){return GetChildren()[0];}" }, { "index": 90, "before": "public NotIgnoredFilter(int workdirTreeIndex) {this.index = workdirTreeIndex;}", "after": "public NotIgnoredFilter(int workdirTreeIndex){this.index = workdirTreeIndex;}" }, { "index": 91, "before": "public AreaRecord(RecordInputStream in) {field_1_formatFlags = in.readShort();}", "after": "public AreaRecord(RecordInputStream in1){field_1_formatFlags = in1.ReadShort();}" }, { "index": 92, "before": "public GetThumbnailRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetThumbnail\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetThumbnailRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetThumbnail\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 93, "before": "public DescribeTransitGatewayVpcAttachmentsResult describeTransitGatewayVpcAttachments(DescribeTransitGatewayVpcAttachmentsRequest request) {request = beforeClientExecution(request);return executeDescribeTransitGatewayVpcAttachments(request);}", "after": "public virtual DescribeTransitGatewayVpcAttachmentsResponse DescribeTransitGatewayVpcAttachments(DescribeTransitGatewayVpcAttachmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransitGatewayVpcAttachmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransitGatewayVpcAttachmentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 94, "before": "public PutVoiceConnectorStreamingConfigurationResult putVoiceConnectorStreamingConfiguration(PutVoiceConnectorStreamingConfigurationRequest request) {request = beforeClientExecution(request);return executePutVoiceConnectorStreamingConfiguration(request);}", "after": "public virtual PutVoiceConnectorStreamingConfigurationResponse PutVoiceConnectorStreamingConfiguration(PutVoiceConnectorStreamingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutVoiceConnectorStreamingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutVoiceConnectorStreamingConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 95, "before": "public OrdRange getOrdRange(String dim) {return prefixToOrdRange.get(dim);}", "after": "public override OrdRange GetOrdRange(string dim){OrdRange result;prefixToOrdRange.TryGetValue(dim, out result);return result;}" }, { "index": 96, "before": "public String toString() {String symbol = \"\";if (startIndex >= 0 && startIndex < getInputStream().size()) {symbol = getInputStream().getText(Interval.of(startIndex,startIndex));symbol = Utils.escapeWhitespace(symbol, false);}return String.format(Locale.getDefault(), \"%s('%s')\", LexerNoViableAltException.class.getSimpleName(), symbol);}", "after": "public override string ToString(){string symbol = string.Empty;if (startIndex >= 0 && startIndex < ((ICharStream)InputStream).Size){symbol = ((ICharStream)InputStream).GetText(Interval.Of(startIndex, startIndex));symbol = Utils.EscapeWhitespace(symbol, false);}return string.Format(CultureInfo.CurrentCulture, \"{0}('{1}')\", typeof(Antlr4.Runtime.LexerNoViableAltException).Name, symbol);}" }, { "index": 97, "before": "public E peek() {return peekFirstImpl();}", "after": "public virtual E peek(){return peekFirstImpl();}" }, { "index": 98, "before": "public CreateWorkspacesResult createWorkspaces(CreateWorkspacesRequest request) {request = beforeClientExecution(request);return executeCreateWorkspaces(request);}", "after": "public virtual CreateWorkspacesResponse CreateWorkspaces(CreateWorkspacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateWorkspacesRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateWorkspacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 99, "before": "public NumberFormatIndexRecord clone() {return copy();}", "after": "public override Object Clone(){NumberFormatIndexRecord rec = new NumberFormatIndexRecord();rec.field_1_formatIndex = field_1_formatIndex;return rec;}" }, { "index": 100, "before": "public DescribeRepositoriesResult describeRepositories(DescribeRepositoriesRequest request) {request = beforeClientExecution(request);return executeDescribeRepositories(request);}", "after": "public virtual DescribeRepositoriesResponse DescribeRepositories(DescribeRepositoriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRepositoriesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRepositoriesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 101, "before": "public SparseIntArray(int initialCapacity) {initialCapacity = ArrayUtils.idealIntArraySize(initialCapacity);mKeys = new int[initialCapacity];mValues = new int[initialCapacity];mSize = 0;}", "after": "public SparseIntArray(int initialCapacity){initialCapacity = android.util.@internal.ArrayUtils.idealIntArraySize(initialCapacity);mKeys = new int[initialCapacity];mValues = new int[initialCapacity];mSize = 0;}" }, { "index": 102, "before": "public HyphenatedWordsFilter create(TokenStream input) {return new HyphenatedWordsFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new HyphenatedWordsFilter(input);}" }, { "index": 103, "before": "public CreateDistributionWithTagsResult createDistributionWithTags(CreateDistributionWithTagsRequest request) {request = beforeClientExecution(request);return executeCreateDistributionWithTags(request);}", "after": "public virtual CreateDistributionWithTagsResponse CreateDistributionWithTags(CreateDistributionWithTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDistributionWithTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDistributionWithTagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 104, "before": "public RandomAccessFile(String fileName, String mode) throws FileNotFoundException {this(new File(fileName), mode);}", "after": "public RandomAccessFile(string fileName, string mode) : this(new java.io.File(fileName), mode){throw new System.NotImplementedException();}" }, { "index": 105, "before": "public DeleteWorkspaceImageResult deleteWorkspaceImage(DeleteWorkspaceImageRequest request) {request = beforeClientExecution(request);return executeDeleteWorkspaceImage(request);}", "after": "public virtual DeleteWorkspaceImageResponse DeleteWorkspaceImage(DeleteWorkspaceImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteWorkspaceImageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteWorkspaceImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 106, "before": "public static String toHex(long value) {StringBuilder sb = new StringBuilder(16);writeHex(sb, value, 16, \"\");return sb.toString();}", "after": "public static string ToHex(int value){return ToHex((long)value, 8);}" }, { "index": 107, "before": "public UpdateDistributionResult updateDistribution(UpdateDistributionRequest request) {request = beforeClientExecution(request);return executeUpdateDistribution(request);}", "after": "public virtual UpdateDistributionResponse UpdateDistribution(UpdateDistributionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDistributionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDistributionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 108, "before": "public HSSFColor getColor(short index){if (index == HSSFColorPredefined.AUTOMATIC.getIndex()) {return HSSFColorPredefined.AUTOMATIC.getColor();}byte[] b = _palette.getColor(index);return (b == null) ? null : new CustomColor(index, b);}", "after": "public HSSFColor GetColor(short index){if (index == HSSFColor.Automatic.Index)return HSSFColor.Automatic.GetInstance();else{byte[] b = palette.GetColor(index);if (b != null){return new CustomColor(index, b);}}return null;}" }, { "index": 109, "before": "public ValueEval evaluate(ValueEval[] operands, int srcRow, int srcCol) {throw new NotImplementedFunctionException(_functionName);}", "after": "public ValueEval Evaluate(ValueEval[] operands, int srcRow, int srcCol){throw new NotImplementedFunctionException(_functionName);}" }, { "index": 110, "before": "public void serialize(LittleEndianOutput out) {out.writeShort((short)field_1_number_crn_records);out.writeShort((short)field_2_sheet_table_index);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort((short)field_1_number_crn_records);out1.WriteShort((short)field_2_sheet_table_index);}" }, { "index": 111, "before": "public DescribeDBEngineVersionsResult describeDBEngineVersions() {return describeDBEngineVersions(new DescribeDBEngineVersionsRequest());}", "after": "public virtual DescribeDBEngineVersionsResponse DescribeDBEngineVersions(){return DescribeDBEngineVersions(new DescribeDBEngineVersionsRequest());}" }, { "index": 112, "before": "public FormatRun(short character, short fontIndex) {this._character = character;this._fontIndex = fontIndex;}", "after": "public FormatRun(short character, short fontIndex){this._character = character;this._fontIndex = fontIndex;}" }, { "index": 113, "before": "public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) {byte[] result = new byte[length * 2];int end = offset + length;int resultIndex = 0;for (int i = offset; i < end; ++i) {char ch = chars[i];result[resultIndex++] = (byte) (ch >> 8);result[resultIndex++] = (byte) ch;}return result;}", "after": "public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length){byte[] result = new byte[length * 2];int end = offset + length;int resultIndex = 0;{for (int i = offset; i < end; ++i){char ch = chars[i];result[resultIndex++] = unchecked((byte)(ch >> 8));result[resultIndex++] = unchecked((byte)ch);}}return result;}" }, { "index": 114, "before": "public UploadArchiveResult uploadArchive(UploadArchiveRequest request) {request = beforeClientExecution(request);return executeUploadArchive(request);}", "after": "public virtual UploadArchiveResponse UploadArchive(UploadArchiveRequest request){var options = new InvokeOptions();options.RequestMarshaller = UploadArchiveRequestMarshaller.Instance;options.ResponseUnmarshaller = UploadArchiveResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 115, "before": "public List getHiddenTokensToLeft(int tokenIndex) {return getHiddenTokensToLeft(tokenIndex, -1);}", "after": "public virtual IList GetHiddenTokensToLeft(int tokenIndex){return GetHiddenTokensToLeft(tokenIndex, -1);}" }, { "index": 116, "before": "public boolean equals(Object obj) {if (this == obj)return true;if (!super.equals(obj))return false;if (getClass() != obj.getClass())return false;AutomatonQuery other = (AutomatonQuery) obj;if (!compiled.equals(other.compiled))return false;if (term == null) {if (other.term != null)return false;} else if (!term.equals(other.term))return false;return true;}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (!base.Equals(obj)){return false;}if (this.GetType() != obj.GetType()){return false;}AutomatonQuery other = (AutomatonQuery)obj;if (!m_compiled.Equals(other.m_compiled)){return false;}if (m_term == null){if (other.m_term != null){return false;}}else if (!m_term.Equals(other.m_term)){return false;}return true;}" }, { "index": 117, "before": "public SpanQuery makeSpanClause() {SpanQuery [] spanQueries = new SpanQuery[size()];Iterator sqi = weightBySpanQuery.keySet().iterator();int i = 0;while (sqi.hasNext()) {SpanQuery sq = sqi.next();float boost = weightBySpanQuery.get(sq);if (boost != 1f) {sq = new SpanBoostQuery(sq, boost);}spanQueries[i++] = sq;}if (spanQueries.length == 1)return spanQueries[0];elsereturn new SpanOrQuery(spanQueries);}", "after": "public virtual SpanQuery MakeSpanClause(){List spanQueries = new List();foreach (var wsq in weightBySpanQuery){wsq.Key.Boost = wsq.Value;spanQueries.Add(wsq.Key);}if (spanQueries.Count == 1)return spanQueries[0];elsereturn new SpanOrQuery(spanQueries.ToArray());}" }, { "index": 118, "before": "public StashCreateCommand stashCreate() {return new StashCreateCommand(repo);}", "after": "public virtual StashCreateCommand StashCreate(){return new StashCreateCommand(repo);}" }, { "index": 119, "before": "public FieldInfo fieldInfo(String fieldName) {return byName.get(fieldName);}", "after": "public FieldInfo FieldInfo(string fieldName){FieldInfo ret;byName.TryGetValue(fieldName, out ret);return ret;}" }, { "index": 120, "before": "public DescribeEventSourceResult describeEventSource(DescribeEventSourceRequest request) {request = beforeClientExecution(request);return executeDescribeEventSource(request);}", "after": "public virtual DescribeEventSourceResponse DescribeEventSource(DescribeEventSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEventSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEventSourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 121, "before": "public GetDocumentAnalysisResult getDocumentAnalysis(GetDocumentAnalysisRequest request) {request = beforeClientExecution(request);return executeGetDocumentAnalysis(request);}", "after": "public virtual GetDocumentAnalysisResponse GetDocumentAnalysis(GetDocumentAnalysisRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentAnalysisRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentAnalysisResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 122, "before": "public CancelUpdateStackResult cancelUpdateStack(CancelUpdateStackRequest request) {request = beforeClientExecution(request);return executeCancelUpdateStack(request);}", "after": "public virtual CancelUpdateStackResponse CancelUpdateStack(CancelUpdateStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelUpdateStackRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelUpdateStackResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 123, "before": "public ModifyLoadBalancerAttributesResult modifyLoadBalancerAttributes(ModifyLoadBalancerAttributesRequest request) {request = beforeClientExecution(request);return executeModifyLoadBalancerAttributes(request);}", "after": "public virtual ModifyLoadBalancerAttributesResponse ModifyLoadBalancerAttributes(ModifyLoadBalancerAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyLoadBalancerAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyLoadBalancerAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 124, "before": "public SetInstanceProtectionResult setInstanceProtection(SetInstanceProtectionRequest request) {request = beforeClientExecution(request);return executeSetInstanceProtection(request);}", "after": "public virtual SetInstanceProtectionResponse SetInstanceProtection(SetInstanceProtectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetInstanceProtectionRequestMarshaller.Instance;options.ResponseUnmarshaller = SetInstanceProtectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 125, "before": "public ModifyDBProxyResult modifyDBProxy(ModifyDBProxyRequest request) {request = beforeClientExecution(request);return executeModifyDBProxy(request);}", "after": "public virtual ModifyDBProxyResponse ModifyDBProxy(ModifyDBProxyRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBProxyRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBProxyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 126, "before": "public void add(char[] output, int offset, int len, int endOffset, int posLength) {if (count == outputs.length) {outputs = ArrayUtil.grow(outputs, count+1);}if (count == endOffsets.length) {final int[] next = new int[ArrayUtil.oversize(1+count, Integer.BYTES)];System.arraycopy(endOffsets, 0, next, 0, count);endOffsets = next;}if (count == posLengths.length) {final int[] next = new int[ArrayUtil.oversize(1+count, Integer.BYTES)];System.arraycopy(posLengths, 0, next, 0, count);posLengths = next;}if (outputs[count] == null) {outputs[count] = new CharsRefBuilder();}outputs[count].copyChars(output, offset, len);endOffsets[count] = endOffset;posLengths[count] = posLength;count++;}", "after": "public virtual void Add(char[] output, int offset, int len, int endOffset, int posLength){if (count == outputs.Length){CharsRef[] next = new CharsRef[ArrayUtil.Oversize(1 + count, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];Array.Copy(outputs, 0, next, 0, count);outputs = next;}if (count == endOffsets.Length){int[] next = new int[ArrayUtil.Oversize(1 + count, RamUsageEstimator.NUM_BYTES_INT32)];Array.Copy(endOffsets, 0, next, 0, count);endOffsets = next;}if (count == posLengths.Length){int[] next = new int[ArrayUtil.Oversize(1 + count, RamUsageEstimator.NUM_BYTES_INT32)];Array.Copy(posLengths, 0, next, 0, count);posLengths = next;}if (outputs[count] == null){outputs[count] = new CharsRef();}outputs[count].CopyChars(output, offset, len);endOffsets[count] = endOffset;posLengths[count] = posLength;count++;}" }, { "index": 127, "before": "public FetchLibrariesRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"FetchLibraries\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public FetchLibrariesRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"FetchLibraries\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 128, "before": "public boolean exists() {return fs.exists(objects);}", "after": "public override bool Exists(){return objects.Exists();}" }, { "index": 129, "before": "public FilterOutputStream(OutputStream out) {this.out = out;}", "after": "public FilterOutputStream(java.io.OutputStream @out){this.@out = @out;}" }, { "index": 130, "before": "public ScaleClusterRequest() {super(\"CS\", \"2015-12-15\", \"ScaleCluster\", \"csk\");setUriPattern(\"/clusters/[ClusterId]\");setMethod(MethodType.PUT);}", "after": "public ScaleClusterRequest(): base(\"CS\", \"2015-12-15\", \"ScaleCluster\", \"cs\", \"openAPI\"){UriPattern = \"/clusters/[ClusterId]\";Method = MethodType.PUT;}" }, { "index": 131, "before": "public DataValidationConstraint createTimeConstraint(int operatorType, String formula1, String formula2) {return DVConstraint.createTimeConstraint(operatorType, formula1, formula2);}", "after": "public IDataValidationConstraint CreateTimeConstraint(int operatorType, String formula1, String formula2){return DVConstraint.CreateTimeConstraint(operatorType, formula1, formula2);}" }, { "index": 132, "before": "public ListObjectParentPathsResult listObjectParentPaths(ListObjectParentPathsRequest request) {request = beforeClientExecution(request);return executeListObjectParentPaths(request);}", "after": "public virtual ListObjectParentPathsResponse ListObjectParentPaths(ListObjectParentPathsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListObjectParentPathsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListObjectParentPathsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 133, "before": "public DescribeCacheSubnetGroupsResult describeCacheSubnetGroups(DescribeCacheSubnetGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeCacheSubnetGroups(request);}", "after": "public virtual DescribeCacheSubnetGroupsResponse DescribeCacheSubnetGroups(DescribeCacheSubnetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCacheSubnetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCacheSubnetGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 134, "before": "public void setSharedFormula(boolean flag) {field_5_options =sharedFormula.setShortBoolean(field_5_options, flag);}", "after": "public void SetSharedFormula(bool flag){field_5_options =sharedFormula.SetShortBoolean(field_5_options, flag);}" }, { "index": 135, "before": "public boolean isReuseObjects() {return reuseObjects;}", "after": "public virtual bool IsReuseObjects(){return reuseObjects;}" }, { "index": 136, "before": "public ErrorNode addErrorNode(Token badToken) {ErrorNodeImpl t = new ErrorNodeImpl(badToken);addAnyChild(t);t.setParent(this);return t;}", "after": "public virtual IErrorNode AddErrorNode(IToken badToken){ErrorNodeImpl t = new ErrorNodeImpl(badToken);AddChild(t);t.Parent = this;return t;}" }, { "index": 137, "before": "public LatvianStemFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public LatvianStemFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 138, "before": "public EventSubscription removeSourceIdentifierFromSubscription(RemoveSourceIdentifierFromSubscriptionRequest request) {request = beforeClientExecution(request);return executeRemoveSourceIdentifierFromSubscription(request);}", "after": "public virtual RemoveSourceIdentifierFromSubscriptionResponse RemoveSourceIdentifierFromSubscription(RemoveSourceIdentifierFromSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveSourceIdentifierFromSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveSourceIdentifierFromSubscriptionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 139, "before": "public static TokenFilterFactory forName(String name, Map args) {return loader.newInstance(name, args);}", "after": "public static TokenFilterFactory ForName(string name, IDictionary args){return loader.NewInstance(name, args);}" }, { "index": 140, "before": "public AddAlbumPhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"AddAlbumPhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public AddAlbumPhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"AddAlbumPhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 141, "before": "public GetThreatIntelSetResult getThreatIntelSet(GetThreatIntelSetRequest request) {request = beforeClientExecution(request);return executeGetThreatIntelSet(request);}", "after": "public virtual GetThreatIntelSetResponse GetThreatIntelSet(GetThreatIntelSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetThreatIntelSetRequestMarshaller.Instance;options.ResponseUnmarshaller = GetThreatIntelSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 142, "before": "public RevFilter clone() {return new Binary(a.clone(), b.clone());}", "after": "public override TreeFilter Clone(){return new AndTreeFilter.Binary(a.Clone(), b.Clone());}" }, { "index": 143, "before": "public boolean equals( Object o ) {return o instanceof ArmenianStemmer;}", "after": "public override bool Equals(object o){return o is ArmenianStemmer;}" }, { "index": 144, "before": "public final boolean hasArray() {return protectedHasArray();}", "after": "public sealed override bool hasArray(){return protectedHasArray();}" }, { "index": 145, "before": "public UpdateContributorInsightsResult updateContributorInsights(UpdateContributorInsightsRequest request) {request = beforeClientExecution(request);return executeUpdateContributorInsights(request);}", "after": "public virtual UpdateContributorInsightsResponse UpdateContributorInsights(UpdateContributorInsightsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateContributorInsightsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateContributorInsightsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 146, "before": "public void unwriteProtectWorkbook() {records.remove(fileShare);records.remove(writeProtect);fileShare = null;writeProtect = null;}", "after": "public void UnwriteProtectWorkbook(){records.Remove(fileShare);records.Remove(WriteProtect);fileShare = null;writeProtect = null;}" }, { "index": 147, "before": "public SolrSynonymParser(boolean dedup, boolean expand, Analyzer analyzer) {super(dedup, analyzer);this.expand = expand;}", "after": "public SolrSynonymParser(bool dedup, bool expand, Analyzer analyzer): base(dedup, analyzer){this.expand = expand;}" }, { "index": 148, "before": "public RequestSpotInstancesResult requestSpotInstances(RequestSpotInstancesRequest request) {request = beforeClientExecution(request);return executeRequestSpotInstances(request);}", "after": "public virtual RequestSpotInstancesResponse RequestSpotInstances(RequestSpotInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RequestSpotInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = RequestSpotInstancesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 149, "before": "public byte[] getObjectData() {return findObjectRecord().getObjectData();}", "after": "public byte[] GetObjectData(){return FindObjectRecord().ObjectData;}" }, { "index": 150, "before": "public GetContactAttributesResult getContactAttributes(GetContactAttributesRequest request) {request = beforeClientExecution(request);return executeGetContactAttributes(request);}", "after": "public virtual GetContactAttributesResponse GetContactAttributes(GetContactAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetContactAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetContactAttributesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 151, "before": "public String toString() {return getKey() + \": \" + getValue(); }", "after": "public override string ToString(){return GetKey() + \": \" + GetValue();}" }, { "index": 152, "before": "public ListTextTranslationJobsResult listTextTranslationJobs(ListTextTranslationJobsRequest request) {request = beforeClientExecution(request);return executeListTextTranslationJobs(request);}", "after": "public virtual ListTextTranslationJobsResponse ListTextTranslationJobs(ListTextTranslationJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTextTranslationJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTextTranslationJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 153, "before": "public GetContactMethodsResult getContactMethods(GetContactMethodsRequest request) {request = beforeClientExecution(request);return executeGetContactMethods(request);}", "after": "public virtual GetContactMethodsResponse GetContactMethods(GetContactMethodsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetContactMethodsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetContactMethodsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 154, "before": "public static short lookupIndexByName(String name) {FunctionMetadata fd = getInstance().getFunctionByNameInternal(name);if (fd == null) {fd = getInstanceCetab().getFunctionByNameInternal(name);if (fd == null) {return -1;}}return (short) fd.getIndex();}", "after": "public static short LookupIndexByName(String name){FunctionMetadata fd = GetInstance().GetFunctionByNameInternal(name);if (fd == null){return -1;}return (short)fd.Index;}" }, { "index": 155, "before": "public DescribeAnomalyDetectorsResult describeAnomalyDetectors(DescribeAnomalyDetectorsRequest request) {request = beforeClientExecution(request);return executeDescribeAnomalyDetectors(request);}", "after": "public virtual DescribeAnomalyDetectorsResponse DescribeAnomalyDetectors(DescribeAnomalyDetectorsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAnomalyDetectorsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAnomalyDetectorsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 156, "before": "public static String insertId(String message, ObjectId changeId) {return insertId(message, changeId, false);}", "after": "public static string InsertId(string message, ObjectId changeId){return InsertId(message, changeId, false);}" }, { "index": 157, "before": "public long getObjectSize(AnyObjectId objectId, int typeHint)throws MissingObjectException, IncorrectObjectTypeException,IOException {long sz = db.getObjectSize(this, objectId);if (sz < 0) {if (typeHint == OBJ_ANY)throw new MissingObjectException(objectId.copy(),JGitText.get().unknownObjectType2);throw new MissingObjectException(objectId.copy(), typeHint);}return sz;}", "after": "public override long GetObjectSize(AnyObjectId objectId, int typeHint){long sz = db.GetObjectSize(this, objectId);if (sz < 0){if (typeHint == OBJ_ANY){throw new MissingObjectException(objectId.Copy(), \"unknown\");}throw new MissingObjectException(objectId.Copy(), typeHint);}return sz;}" }, { "index": 158, "before": "public ImportInstallationMediaResult importInstallationMedia(ImportInstallationMediaRequest request) {request = beforeClientExecution(request);return executeImportInstallationMedia(request);}", "after": "public virtual ImportInstallationMediaResponse ImportInstallationMedia(ImportInstallationMediaRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportInstallationMediaRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportInstallationMediaResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 159, "before": "public PutLifecycleEventHookExecutionStatusResult putLifecycleEventHookExecutionStatus(PutLifecycleEventHookExecutionStatusRequest request) {request = beforeClientExecution(request);return executePutLifecycleEventHookExecutionStatus(request);}", "after": "public virtual PutLifecycleEventHookExecutionStatusResponse PutLifecycleEventHookExecutionStatus(PutLifecycleEventHookExecutionStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutLifecycleEventHookExecutionStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = PutLifecycleEventHookExecutionStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 160, "before": "public NumberPtg(LittleEndianInput in) {this(in.readDouble());}", "after": "public NumberPtg(ILittleEndianInput in1){field_1_value = in1.ReadDouble();}" }, { "index": 161, "before": "public GetFieldLevelEncryptionConfigResult getFieldLevelEncryptionConfig(GetFieldLevelEncryptionConfigRequest request) {request = beforeClientExecution(request);return executeGetFieldLevelEncryptionConfig(request);}", "after": "public virtual GetFieldLevelEncryptionConfigResponse GetFieldLevelEncryptionConfig(GetFieldLevelEncryptionConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFieldLevelEncryptionConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFieldLevelEncryptionConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 162, "before": "public DescribeDetectorResult describeDetector(DescribeDetectorRequest request) {request = beforeClientExecution(request);return executeDescribeDetector(request);}", "after": "public virtual DescribeDetectorResponse DescribeDetector(DescribeDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDetectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 163, "before": "public ReportInstanceStatusResult reportInstanceStatus(ReportInstanceStatusRequest request) {request = beforeClientExecution(request);return executeReportInstanceStatus(request);}", "after": "public virtual ReportInstanceStatusResponse ReportInstanceStatus(ReportInstanceStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReportInstanceStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = ReportInstanceStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 164, "before": "public DeleteAlarmResult deleteAlarm(DeleteAlarmRequest request) {request = beforeClientExecution(request);return executeDeleteAlarm(request);}", "after": "public virtual DeleteAlarmResponse DeleteAlarm(DeleteAlarmRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAlarmRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAlarmResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 165, "before": "public TokenStream create(TokenStream input) {return new PortugueseStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new PortugueseStemFilter(input);}" }, { "index": 166, "before": "public FtCblsSubRecord() {reserved = new byte[ENCODED_SIZE];}", "after": "public FtCblsSubRecord(){reserved = new byte[ENCODED_SIZE];}" }, { "index": 167, "before": "@Override public boolean remove(Object object) {synchronized (mutex) {return c.remove(object);}}", "after": "public virtual bool remove(object @object){lock (mutex){return c.remove(@object);}}" }, { "index": 168, "before": "public GetDedicatedIpResult getDedicatedIp(GetDedicatedIpRequest request) {request = beforeClientExecution(request);return executeGetDedicatedIp(request);}", "after": "public virtual GetDedicatedIpResponse GetDedicatedIp(GetDedicatedIpRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDedicatedIpRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDedicatedIpResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 169, "before": "public String toString() {return precedence + \" >= _p\";}", "after": "public override string ToString(){return precedence + \" >= _p\";}" }, { "index": 170, "before": "public ListStreamProcessorsResult listStreamProcessors(ListStreamProcessorsRequest request) {request = beforeClientExecution(request);return executeListStreamProcessors(request);}", "after": "public virtual ListStreamProcessorsResponse ListStreamProcessors(ListStreamProcessorsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStreamProcessorsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStreamProcessorsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 171, "before": "public DeleteLoadBalancerPolicyRequest(String loadBalancerName, String policyName) {setLoadBalancerName(loadBalancerName);setPolicyName(policyName);}", "after": "public DeleteLoadBalancerPolicyRequest(string loadBalancerName, string policyName){_loadBalancerName = loadBalancerName;_policyName = policyName;}" }, { "index": 172, "before": "public WindowProtectRecord(int options) {_options = options;}", "after": "public WindowProtectRecord(int options){_options = options;}" }, { "index": 173, "before": "public UnbufferedCharStream(int bufferSize) {n = 0;data = new int[bufferSize];}", "after": "public UnbufferedCharStream(int bufferSize){n = 0;data = new int[bufferSize];}" }, { "index": 174, "before": "public GetOperationsResult getOperations(GetOperationsRequest request) {request = beforeClientExecution(request);return executeGetOperations(request);}", "after": "public virtual GetOperationsResponse GetOperations(GetOperationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOperationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOperationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 175, "before": "public void copyRawTo(byte[] b, int o) {NB.encodeInt32(b, o, w1);NB.encodeInt32(b, o + 4, w2);NB.encodeInt32(b, o + 8, w3);NB.encodeInt32(b, o + 12, w4);NB.encodeInt32(b, o + 16, w5);}", "after": "public virtual void CopyRawTo(byte[] b, int o){NB.EncodeInt32(b, o, w1);NB.EncodeInt32(b, o + 4, w2);NB.EncodeInt32(b, o + 8, w3);NB.EncodeInt32(b, o + 12, w4);NB.EncodeInt32(b, o + 16, w5);}" }, { "index": 176, "before": "public WindowOneRecord(RecordInputStream in) {field_1_h_hold = in.readShort();field_2_v_hold = in.readShort();field_3_width = in.readShort();field_4_height = in.readShort();field_5_options = in.readShort();field_6_active_sheet = in.readShort();field_7_first_visible_tab = in.readShort();field_8_num_selected_tabs = in.readShort();field_9_tab_width_ratio = in.readShort();}", "after": "public WindowOneRecord(RecordInputStream in1){field_1_h_hold = in1.ReadShort();field_2_v_hold = in1.ReadShort();field_3_width = in1.ReadShort();field_4_height = in1.ReadShort();field_5_options = in1.ReadShort();field_6_active_sheet = in1.ReadShort();field_7_first_visible_tab = in1.ReadShort();field_8_num_selected_tabs = in1.ReadShort();field_9_tab_width_ratio = in1.ReadShort();}" }, { "index": 177, "before": "public StopWorkspacesResult stopWorkspaces(StopWorkspacesRequest request) {request = beforeClientExecution(request);return executeStopWorkspaces(request);}", "after": "public virtual StopWorkspacesResponse StopWorkspaces(StopWorkspacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopWorkspacesRequestMarshaller.Instance;options.ResponseUnmarshaller = StopWorkspacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 178, "before": "public void close() throws IOException {if (isOpen) {isOpen = false;try {dump();} finally {try {channel.truncate(fileLength);} finally {try {channel.close();} finally {fos.close();}}}}}", "after": "public void close() throws IOException{if (isOpen){isOpen = false;try{dump();}finally{try{channel.truncate(fileLength);}finally{try{channel.close();}finally{fos.close();}}}}}" }, { "index": 179, "before": "public DescribeMatchmakingRuleSetsResult describeMatchmakingRuleSets(DescribeMatchmakingRuleSetsRequest request) {request = beforeClientExecution(request);return executeDescribeMatchmakingRuleSets(request);}", "after": "public virtual DescribeMatchmakingRuleSetsResponse DescribeMatchmakingRuleSets(DescribeMatchmakingRuleSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMatchmakingRuleSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMatchmakingRuleSetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 180, "before": "public String getPronunciation(int wordId, char surface[], int off, int len) {return null; }", "after": "public string GetPronunciation(int wordId, char[] surface, int off, int len){return null; }" }, { "index": 181, "before": "public String getPath() {return pathStr;}", "after": "public virtual string GetPath(){return pathStr;}" }, { "index": 182, "before": "public static double devsq(double[] v) {double r = Double.NaN;if (v!=null && v.length >= 1) {double m = 0;double s = 0;int n = v.length;for (int i=0; i= 1){double m = 0;double s = 0;int n = v.Length;for (int i = 0; i < n; i++){s += v[i];}m = s / n;s = 0;for (int i = 0; i < n; i++){s += (v[i] - m) * (v[i] - m);}r = (n == 1)? 0: s;}return r;}" }, { "index": 183, "before": "public DescribeResizeResult describeResize(DescribeResizeRequest request) {request = beforeClientExecution(request);return executeDescribeResize(request);}", "after": "public virtual DescribeResizeResponse DescribeResize(DescribeResizeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeResizeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeResizeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 184, "before": "public final boolean hasPassedThroughNonGreedyDecision() {return passedThroughNonGreedyDecision;}", "after": "public bool hasPassedThroughNonGreedyDecision(){return passedThroughNonGreedyDecision;}" }, { "index": 185, "before": "public int end() {return end(0);}", "after": "public int end(){return end(0);}" }, { "index": 186, "before": "public void traverse(CellHandler handler) {int firstRow = range.getFirstRow();int lastRow = range.getLastRow();int firstColumn = range.getFirstColumn();int lastColumn = range.getLastColumn();final int width = lastColumn - firstColumn + 1;SimpleCellWalkContext ctx = new SimpleCellWalkContext();Row currentRow = null;Cell currentCell = null;for (ctx.rowNumber = firstRow; ctx.rowNumber <= lastRow; ++ctx.rowNumber) {currentRow = sheet.getRow(ctx.rowNumber);if (currentRow == null) {continue;}for (ctx.colNumber = firstColumn; ctx.colNumber <= lastColumn; ++ctx.colNumber) {currentCell = currentRow.getCell(ctx.colNumber);if (currentCell == null) {continue;}if (isEmpty(currentCell) && !traverseEmptyCells) {continue;}long rowSize = ArithmeticUtils.mulAndCheck((long)ArithmeticUtils.subAndCheck(ctx.rowNumber, firstRow), (long)width);ctx.ordinalNumber = ArithmeticUtils.addAndCheck(rowSize, (ctx.colNumber - firstColumn + 1));handler.onCell(currentCell, ctx);}}}", "after": "public void Traverse(ICellHandler handler){int firstRow = range.FirstRow;int lastRow = range.LastRow;int firstColumn = range.FirstColumn;int lastColumn = range.LastColumn;int width = lastColumn - firstColumn + 1;SimpleCellWalkContext ctx = new SimpleCellWalkContext();IRow currentRow = null;ICell currentCell = null;for (ctx.rowNumber = firstRow; ctx.rowNumber <= lastRow; ++ctx.rowNumber){currentRow = sheet.GetRow(ctx.rowNumber);if (currentRow == null){continue;}for (ctx.colNumber = firstColumn; ctx.colNumber <= lastColumn; ++ctx.colNumber){currentCell = currentRow.GetCell(ctx.colNumber);if (currentCell == null){continue;}if (IsEmpty(currentCell) && !traverseEmptyCells){continue;}ctx.ordinalNumber =(ctx.rowNumber - firstRow) * width +(ctx.colNumber - firstColumn + 1);handler.OnCell(currentCell, ctx);}}}" }, { "index": 187, "before": "public int getReadIndex() {return pos;}", "after": "public int GetReadIndex(){return _ReadIndex;}" }, { "index": 188, "before": "public int compareTo(ScoreTerm other) {if (this.boost == other.boost)return other.bytes.get().compareTo(this.bytes.get());elsereturn Float.compare(this.boost, other.boost);}", "after": "public virtual int CompareTo(ScoreTerm other){if (Term.BytesEquals(other.Term)){return 0; }if (this.Boost == other.Boost){return other.Term.CompareTo(this.Term);}else{return this.Boost.CompareTo(other.Boost);}}" }, { "index": 189, "before": "public int normalize(char s[], int len) {for (int i = 0; i < len; i++) {switch (s[i]) {case FARSI_YEH:case YEH_BARREE:s[i] = YEH;break;case KEHEH:s[i] = KAF;break;case HEH_YEH:case HEH_GOAL:s[i] = HEH;break;case HAMZA_ABOVE: len = delete(s, i, len);i--;break;default:break;}}return len;}", "after": "public virtual int Normalize(char[] s, int len){for (int i = 0; i < len; i++){switch (s[i]){case FARSI_YEH:case YEH_BARREE:s[i] = YEH;break;case KEHEH:s[i] = KAF;break;case HEH_YEH:case HEH_GOAL:s[i] = HEH;break;case HAMZA_ABOVE: len = StemmerUtil.Delete(s, i, len);i--;break;default:break;}}return len;}" }, { "index": 190, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(_options);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(_options);}" }, { "index": 191, "before": "public DiagnosticErrorListener(boolean exactOnly) {this.exactOnly = exactOnly;}", "after": "public DiagnosticErrorListener(bool exactOnly){this.exactOnly = exactOnly;}" }, { "index": 192, "before": "public KeySchemaElement(String attributeName, KeyType keyType) {setAttributeName(attributeName);setKeyType(keyType.toString());}", "after": "public KeySchemaElement(string attributeName, KeyType keyType){_attributeName = attributeName;_keyType = keyType;}" }, { "index": 193, "before": "public GetAssignmentResult getAssignment(GetAssignmentRequest request) {request = beforeClientExecution(request);return executeGetAssignment(request);}", "after": "public virtual GetAssignmentResponse GetAssignment(GetAssignmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAssignmentRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAssignmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 194, "before": "public boolean hasObject(AnyObjectId id) {return findOffset(id) != -1;}", "after": "public virtual bool HasObject(AnyObjectId id){return FindOffset(id) != -1;}" }, { "index": 195, "before": "public GroupingSearch setAllGroups(boolean allGroups) {this.allGroups = allGroups;return this;}", "after": "public virtual GroupingSearch SetAllGroups(bool allGroups){this.allGroups = allGroups;return this;}" }, { "index": 196, "before": "public synchronized void setMultiValued(String dimName, boolean v) {DimConfig ft = fieldTypes.get(dimName);if (ft == null) {ft = new DimConfig();fieldTypes.put(dimName, ft);}ft.multiValued = v;}", "after": "public virtual void SetMultiValued(string dimName, bool v){lock (this){if (!fieldTypes.TryGetValue(dimName, out DimConfig fieldType)){fieldTypes[dimName] = new DimConfig { IsMultiValued = v };}else{fieldType.IsMultiValued = v;}}}" }, { "index": 197, "before": "public int getCellsVal() {Iterator i = cells.keySet().iterator();int size = 0;for (; i.hasNext();) {Character c = i.next();Cell e = at(c);if (e.cmd >= 0) {size++;}}return size;}", "after": "public int GetCellsVal(){int size = 0;foreach (char c in cells.Keys){Cell e = At(c);if (e.cmd >= 0){size++;}}return size;}" }, { "index": 198, "before": "public DeleteVoiceConnectorResult deleteVoiceConnector(DeleteVoiceConnectorRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnector(request);}", "after": "public virtual DeleteVoiceConnectorResponse DeleteVoiceConnector(DeleteVoiceConnectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceConnectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 199, "before": "public DeleteLifecyclePolicyResult deleteLifecyclePolicy(DeleteLifecyclePolicyRequest request) {request = beforeClientExecution(request);return executeDeleteLifecyclePolicy(request);}", "after": "public virtual DeleteLifecyclePolicyResponse DeleteLifecyclePolicy(DeleteLifecyclePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLifecyclePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLifecyclePolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 200, "before": "public void write(byte[] b) {int len = b.length;checkPosition(len);System.arraycopy(b, 0, _buf, _writeIndex, len);_writeIndex += len;}", "after": "public void Write(byte[] b){int len = b.Length;CheckPosition(len);System.Array.Copy(b, 0, _buf, _writeIndex, len);_writeIndex += len;}" }, { "index": 201, "before": "public RebaseResult getRebaseResult() {return this.rebaseResult;}", "after": "public virtual RebaseResult GetRebaseResult(){return this.rebaseResult;}" }, { "index": 202, "before": "public static int getNearestSetSize(int maxNumberOfValuesExpected,float desiredSaturation) {for (int i = 0; i < usableBitSetSizes.length; i++) {int numSetBitsAtDesiredSaturation = (int) (usableBitSetSizes[i] * desiredSaturation);int estimatedNumUniqueValues = getEstimatedNumberUniqueValuesAllowingForCollisions(usableBitSetSizes[i], numSetBitsAtDesiredSaturation);if (estimatedNumUniqueValues > maxNumberOfValuesExpected) {return usableBitSetSizes[i];}}return -1;}", "after": "public static int GetNearestSetSize(int maxNumberOfValuesExpected,float desiredSaturation){foreach (var t in from t in _usableBitSetSizeslet numSetBitsAtDesiredSaturation = (int) (t*desiredSaturation)let estimatedNumUniqueValues = GetEstimatedNumberUniqueValuesAllowingForCollisions(t, numSetBitsAtDesiredSaturation) where estimatedNumUniqueValues > maxNumberOfValuesExpected select t){return t;}return -1;}" }, { "index": 203, "before": "public DescribeDashboardResult describeDashboard(DescribeDashboardRequest request) {request = beforeClientExecution(request);return executeDescribeDashboard(request);}", "after": "public virtual DescribeDashboardResponse DescribeDashboard(DescribeDashboardRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDashboardRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDashboardResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 204, "before": "public CreateSegmentResult createSegment(CreateSegmentRequest request) {request = beforeClientExecution(request);return executeCreateSegment(request);}", "after": "public virtual CreateSegmentResponse CreateSegment(CreateSegmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSegmentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSegmentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 205, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[DBCELL]\\n\");buffer.append(\" .rowoffset = \").append(HexDump.intToHex(field_1_row_offset)).append(\"\\n\");for (int k = 0; k < field_2_cell_offsets.length; k++) {buffer.append(\" .cell_\").append(k).append(\" = \").append(HexDump.shortToHex(field_2_cell_offsets[ k ])).append(\"\\n\");}buffer.append(\"[/DBCELL]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[DBCELL]\\n\");buffer.Append(\" .rowoffset = \").Append(StringUtil.ToHexString(RowOffset)).Append(\"\\n\");for (int k = 0; k < field_2_cell_offsets.Length; k++){buffer.Append(\" .cell_\").Append(k).Append(\" = \").Append(HexDump.ShortToHex(field_2_cell_offsets[k])).Append(\"\\n\");}buffer.Append(\"[/DBCELL]\\n\");return buffer.ToString();}" }, { "index": 206, "before": "public List getUndeletedList() {return undeletedList;}", "after": "public virtual IList GetUndeletedList(){return undeletedList;}" }, { "index": 207, "before": "public String toString() {return \"[INTERFACEEND/]\\n\";}", "after": "public override String ToString(){return \"[INTERFACEEND/]\\n\";}" }, { "index": 208, "before": "public MergeScheduler clone() {return this;}", "after": "public override object Clone(){return this;}" }, { "index": 209, "before": "public PlainTextDictionary(Reader reader) {in = new BufferedReader(reader);}", "after": "public PlainTextDictionary(TextReader reader){@in = reader;}" }, { "index": 210, "before": "public StringBuilder append(CharSequence csq) {if (csq == null) {appendNull();} else {append0(csq, 0, csq.length());}return this;}", "after": "public java.lang.StringBuilder append(java.lang.CharSequence csq){if (csq == null){appendNull();}else{append0(csq, 0, csq.Length);}return this;}" }, { "index": 211, "before": "public ListAssociatedStacksResult listAssociatedStacks(ListAssociatedStacksRequest request) {request = beforeClientExecution(request);return executeListAssociatedStacks(request);}", "after": "public virtual ListAssociatedStacksResponse ListAssociatedStacks(ListAssociatedStacksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAssociatedStacksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAssociatedStacksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 212, "before": "public static double avedev(double[] v) {double r = 0;double m = 0;double s = 0;for (int i=0, iSize=v.length; i(request, options);}" }, { "index": 214, "before": "public GetDiskResult getDisk(GetDiskRequest request) {request = beforeClientExecution(request);return executeGetDisk(request);}", "after": "public virtual GetDiskResponse GetDisk(GetDiskRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDiskRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDiskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 215, "before": "public DBClusterParameterGroup createDBClusterParameterGroup(CreateDBClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeCreateDBClusterParameterGroup(request);}", "after": "public virtual CreateDBClusterParameterGroupResponse CreateDBClusterParameterGroup(CreateDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBClusterParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 216, "before": "public static CharBuffer wrap(char[] array, int start, int charCount) {Arrays.checkOffsetAndCount(array.length, start, charCount);CharBuffer buf = new ReadWriteCharArrayBuffer(array);buf.position = start;buf.limit = start + charCount;return buf;}", "after": "public static java.nio.CharBuffer wrap(char[] array_1, int start, int charCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, charCount);java.nio.CharBuffer buf = new java.nio.ReadWriteCharArrayBuffer(array_1);buf._position = start;buf._limit = start + charCount;return buf;}" }, { "index": 217, "before": "public SubmoduleStatusType getType() {return type;}", "after": "public virtual SubmoduleStatusType GetType(){return type;}" }, { "index": 218, "before": "public DescribeGameServerGroupResult describeGameServerGroup(DescribeGameServerGroupRequest request) {request = beforeClientExecution(request);return executeDescribeGameServerGroup(request);}", "after": "public virtual DescribeGameServerGroupResponse DescribeGameServerGroup(DescribeGameServerGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGameServerGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGameServerGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 219, "before": "public Pattern pattern() {return pattern;}", "after": "public java.util.regex.Pattern pattern(){return _pattern;}" }, { "index": 220, "before": "public V setValue(V object) {throw new UnsupportedOperationException();}", "after": "public virtual V setValue(V @object){throw new System.NotSupportedException();}" }, { "index": 221, "before": "public StringBuilder stem(CharSequence word) {CharSequence cmd = stemmer.getLastOnPath(word);if (cmd == null)return null;buffer.setLength(0);buffer.append(word);Diff.apply(buffer, cmd);if (buffer.length() > 0)return buffer;elsereturn null;}", "after": "public StringBuilder Stem(string word){string cmd = stemmer.GetLastOnPath(word);if (cmd == null)return null;buffer.Length = 0;buffer.Append(word);Diff.Apply(buffer, cmd);if (buffer.Length > 0)return buffer;elsereturn null;}" }, { "index": 222, "before": "public RenameFaceRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"RenameFace\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public RenameFaceRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"RenameFace\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 223, "before": "public char requireChar(Map args, String name) {return require(args, name).charAt(0);}", "after": "public virtual char RequireChar(IDictionary args, string name){return Require(args, name)[0];}" }, { "index": 224, "before": "public static String toStringTree(Tree t) {return toStringTree(t, (List)null);}", "after": "public static string ToStringTree(ITree t){return ToStringTree(t, (IList)null);}" }, { "index": 225, "before": "public String toString() {return \"\";}", "after": "public override string ToString(){return \"\";}" }, { "index": 226, "before": "public GetRepoWebhookLogListRequest() {super(\"cr\", \"2016-06-07\", \"GetRepoWebhookLogList\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/webhooks/[WebhookId]/logs\");setMethod(MethodType.GET);}", "after": "public GetRepoWebhookLogListRequest(): base(\"cr\", \"2016-06-07\", \"GetRepoWebhookLogList\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/webhooks/[WebhookId]/logs\";Method = MethodType.GET;}" }, { "index": 227, "before": "public GetJobUnlockCodeResult getJobUnlockCode(GetJobUnlockCodeRequest request) {request = beforeClientExecution(request);return executeGetJobUnlockCode(request);}", "after": "public virtual GetJobUnlockCodeResponse GetJobUnlockCode(GetJobUnlockCodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJobUnlockCodeRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJobUnlockCodeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 228, "before": "public RemoveTagsRequest(String resourceId) {setResourceId(resourceId);}", "after": "public RemoveTagsRequest(string resourceId){_resourceId = resourceId;}" }, { "index": 229, "before": "public short getGB2312Id(char ch) {try {byte[] buffer = Character.toString(ch).getBytes(\"GB2312\");if (buffer.length != 2) {return -1;}int b0 = (buffer[0] & 0x0FF) - 161; int b1 = (buffer[1] & 0x0FF) - 161; return (short) (b0 * 94 + b1);} catch (UnsupportedEncodingException e) {throw new RuntimeException(e);}}", "after": "public virtual short GetGB2312Id(char ch){try{byte[] buffer = Encoding.GetEncoding(\"GB2312\").GetBytes(ch.ToString());if (buffer.Length != 2){return -1;}int b0 = (buffer[0] & 0x0FF) - 161; int b1 = (buffer[1] & 0x0FF) - 161; return (short)(b0 * 94 + b1);}catch (ArgumentException e) {throw new Exception(e.ToString(), e);}}" }, { "index": 230, "before": "public BatchRefUpdate addCommand(Collection cmd) {commands.addAll(cmd);return this;}", "after": "public virtual NGit.BatchRefUpdate AddCommand(ICollection cmd){Sharpen.Collections.AddAll(commands, cmd);return this;}" }, { "index": 231, "before": "public short checkExternSheet(int sheetNumber){return (short)getOrCreateLinkTable().checkExternSheet(sheetNumber);}", "after": "public int CheckExternSheet(int sheetNumber){return OrCreateLinkTable.CheckExternSheet(sheetNumber);}" }, { "index": 232, "before": "@Override public boolean equals(Object object) {return c.equals(object);}", "after": "public override bool Equals(object @object){return c.Equals(@object);}" }, { "index": 233, "before": "public BooleanQuery build(QueryNode queryNode) throws QueryNodeException {AnyQueryNode andNode = (AnyQueryNode) queryNode;BooleanQuery.Builder bQuery = new BooleanQuery.Builder();List children = andNode.getChildren();if (children != null) {for (QueryNode child : children) {Object obj = child.getTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);if (obj != null) {Query query = (Query) obj;try {bQuery.add(query, BooleanClause.Occur.SHOULD);} catch (TooManyClauses ex) {throw new QueryNodeException(new MessageImpl(QueryParserMessages.EMPTY_MESSAGE), ex);}}}}bQuery.setMinimumNumberShouldMatch(andNode.getMinimumMatchingElements());return bQuery.build();}", "after": "public virtual Query Build(IQueryNode queryNode){AnyQueryNode andNode = (AnyQueryNode)queryNode;BooleanQuery bQuery = new BooleanQuery();IList children = andNode.GetChildren();if (children != null){foreach (IQueryNode child in children){object obj = child.GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);if (obj != null){Query query = (Query)obj;try{bQuery.Add(query, Occur.SHOULD);}catch (BooleanQuery.TooManyClausesException ex){throw new QueryNodeException(new Message(QueryParserMessages.EMPTY_MESSAGE), ex);}}}}bQuery.MinimumNumberShouldMatch = andNode.MinimumMatchingElements;return bQuery;}" }, { "index": 234, "before": "public DescribeStreamProcessorResult describeStreamProcessor(DescribeStreamProcessorRequest request) {request = beforeClientExecution(request);return executeDescribeStreamProcessor(request);}", "after": "public virtual DescribeStreamProcessorResponse DescribeStreamProcessor(DescribeStreamProcessorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStreamProcessorRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStreamProcessorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 235, "before": "public DescribeDashboardPermissionsResult describeDashboardPermissions(DescribeDashboardPermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeDashboardPermissions(request);}", "after": "public virtual DescribeDashboardPermissionsResponse DescribeDashboardPermissions(DescribeDashboardPermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDashboardPermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDashboardPermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 236, "before": "public Ref peel(Ref ref) {try {return getRefDatabase().peel(ref);} catch (IOException e) {return ref;}}", "after": "public virtual Ref Peel(Ref @ref){try{return RefDatabase.Peel(@ref);}catch (IOException){return @ref;}}" }, { "index": 237, "before": "public long ramBytesUsed() {return RamUsageEstimator.alignObjectSize(RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ 2 * Integer.BYTES + RamUsageEstimator.NUM_BYTES_OBJECT_REF) + RamUsageEstimator.sizeOf(blocks);}", "after": "public override long RamBytesUsed(){return RamUsageEstimator.AlignObjectSize(RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ 2 * RamUsageEstimator.NUM_BYTES_INT32 + RamUsageEstimator.NUM_BYTES_OBJECT_REF) + RamUsageEstimator.SizeOf(blocks);}" }, { "index": 238, "before": "public GetDomainSuggestionsResult getDomainSuggestions(GetDomainSuggestionsRequest request) {request = beforeClientExecution(request);return executeGetDomainSuggestions(request);}", "after": "public virtual GetDomainSuggestionsResponse GetDomainSuggestions(GetDomainSuggestionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainSuggestionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainSuggestionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 239, "before": "public DescribeStackEventsResult describeStackEvents(DescribeStackEventsRequest request) {request = beforeClientExecution(request);return executeDescribeStackEvents(request);}", "after": "public virtual DescribeStackEventsResponse DescribeStackEvents(DescribeStackEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStackEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStackEventsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 240, "before": "public void setRule(int idx, ConditionalFormattingRule cfRule){setRule(idx, (HSSFConditionalFormattingRule)cfRule);}", "after": "public void SetRule(int idx, IConditionalFormattingRule cfRule){SetRule(idx, (HSSFConditionalFormattingRule)cfRule);}" }, { "index": 241, "before": "public CreateResolverRuleResult createResolverRule(CreateResolverRuleRequest request) {request = beforeClientExecution(request);return executeCreateResolverRule(request);}", "after": "public virtual CreateResolverRuleResponse CreateResolverRule(CreateResolverRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateResolverRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateResolverRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 242, "before": "public SeriesIndexRecord(RecordInputStream in) {field_1_index = in.readShort();}", "after": "public SeriesIndexRecord(RecordInputStream in1){field_1_index = in1.ReadShort();}" }, { "index": 243, "before": "public GetStylesRequest() {super(\"lubancloud\", \"2018-05-09\", \"GetStyles\", \"luban\");setMethod(MethodType.POST);}", "after": "public GetStylesRequest(): base(\"lubancloud\", \"2018-05-09\", \"GetStyles\", \"luban\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 244, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_gridset_flag);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_gridset_flag);}" }, { "index": 245, "before": "public boolean equals(Object obj) {if (this == obj) {return true;}if (obj == null) {return false;}if (getClass() != obj.getClass()) {return false;}Toffs other = (Toffs) obj;if (getStartOffset() != other.getStartOffset()) {return false;}if (getEndOffset() != other.getEndOffset()) {return false;}return true;}", "after": "public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (GetType() != obj.GetType()){return false;}Toffs other = (Toffs)obj;if (StartOffset != other.StartOffset){return false;}if (EndOffset != other.EndOffset){return false;}return true;}" }, { "index": 246, "before": "public CreateGatewayGroupResult createGatewayGroup(CreateGatewayGroupRequest request) {request = beforeClientExecution(request);return executeCreateGatewayGroup(request);}", "after": "public virtual CreateGatewayGroupResponse CreateGatewayGroup(CreateGatewayGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGatewayGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGatewayGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 247, "before": "public CreateParticipantConnectionResult createParticipantConnection(CreateParticipantConnectionRequest request) {request = beforeClientExecution(request);return executeCreateParticipantConnection(request);}", "after": "public virtual CreateParticipantConnectionResponse CreateParticipantConnection(CreateParticipantConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateParticipantConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateParticipantConnectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 248, "before": "public static double irr(double[] income) {return irr(income, 0.1d);}", "after": "public static double irr(double[] income){return irr(income, 0.1d);}" }, { "index": 249, "before": "public RegisterWorkspaceDirectoryResult registerWorkspaceDirectory(RegisterWorkspaceDirectoryRequest request) {request = beforeClientExecution(request);return executeRegisterWorkspaceDirectory(request);}", "after": "public virtual RegisterWorkspaceDirectoryResponse RegisterWorkspaceDirectory(RegisterWorkspaceDirectoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterWorkspaceDirectoryRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterWorkspaceDirectoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 250, "before": "public RevertCommand include(AnyObjectId commit) {return include(commit.getName(), commit);}", "after": "public virtual NGit.Api.RevertCommand Include(Ref commit){CheckCallable();commits.AddItem(commit);return this;}" }, { "index": 251, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval inumberVE) {ValueEval veText1;try {veText1 = OperandResolver.getSingleValue(inumberVE, srcRowIndex, srcColumnIndex);} catch (EvaluationException e) {return e.getErrorEval();}String iNumber = OperandResolver.coerceValueToString(veText1);Matcher m = COMPLEX_NUMBER_PATTERN.matcher(iNumber);boolean result = m.matches();String imaginary = \"\";if (result) {String imaginaryGroup = m.group(5);boolean hasImaginaryPart = imaginaryGroup.equals(\"i\") || imaginaryGroup.equals(\"j\");if (imaginaryGroup.length() == 0) {return new StringEval(String.valueOf(0));}if (hasImaginaryPart) {String sign = \"\";String imaginarySign = m.group(GROUP3_IMAGINARY_SIGN);if (imaginarySign.length() != 0 && !(imaginarySign.equals(\"+\"))) {sign = imaginarySign;}String groupImaginaryNumber = m.group(GROUP4_IMAGINARY_INTEGER_OR_DOUBLE);if (groupImaginaryNumber.length() != 0) {imaginary = sign + groupImaginaryNumber;} else {imaginary = sign + \"1\";}}} else {return ErrorEval.NUM_ERROR;}return new StringEval(imaginary);}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval inumberVE){ValueEval veText1;try{veText1 = OperandResolver.GetSingleValue(inumberVE, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}String iNumber = OperandResolver.CoerceValueToString(veText1);System.Text.RegularExpressions.Match m = COMPLEX_NUMBER_PATTERN.Match(iNumber);bool result = m.Success && m.Groups[0].Length>0;String imaginary = \"\";if (result == true){String imaginaryGroup = m.Groups[5].Value;bool hasImaginaryPart = imaginaryGroup.Equals(\"i\") || imaginaryGroup.Equals(\"j\");if (imaginaryGroup.Length == 0){return new StringEval(Convert.ToString(0));}if (hasImaginaryPart){String sign = \"\";String imaginarySign = m.Groups[(GROUP3_IMAGINARY_SIGN)].Value;if (imaginarySign.Length != 0 && !(imaginarySign.Equals(\"+\"))){sign = imaginarySign;}String groupImaginaryNumber = m.Groups[(GROUP4_IMAGINARY_INTEGER_OR_DOUBLE)].Value;if (groupImaginaryNumber.Length != 0){imaginary = sign + groupImaginaryNumber;}else{imaginary = sign + \"1\";}}}else{return ErrorEval.NUM_ERROR;}return new StringEval(imaginary);}" }, { "index": 252, "before": "public E pollLast() {Map.Entry entry = backingMap.pollLastEntry();return (entry == null) ? null : entry.getKey();}", "after": "public virtual E pollLast(){java.util.MapClass.Entry entry = backingMap.pollLastEntry();return (entry == null) ? default(E) : entry.getKey();}" }, { "index": 253, "before": "public int readUShort(){int ch1 = readUByte();int ch2 = readUByte();return (ch2 << 8) + (ch1 << 0);}", "after": "public int ReadUShort(){int ch1 = ReadUByte();int ch2 = ReadUByte();return (ch2 << 8) + (ch1 << 0);}" }, { "index": 254, "before": "public ModifySnapshotAttributeRequest(String snapshotId, SnapshotAttributeName attribute, OperationType operationType) {setSnapshotId(snapshotId);setAttribute(attribute.toString());setOperationType(operationType.toString());}", "after": "public ModifySnapshotAttributeRequest(string snapshotId, SnapshotAttributeName attribute, OperationType operationType){_snapshotId = snapshotId;_attribute = attribute;_operationType = operationType;}" }, { "index": 255, "before": "public ListBonusPaymentsResult listBonusPayments(ListBonusPaymentsRequest request) {request = beforeClientExecution(request);return executeListBonusPayments(request);}", "after": "public virtual ListBonusPaymentsResponse ListBonusPayments(ListBonusPaymentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListBonusPaymentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListBonusPaymentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 256, "before": "public V get(CharSequence cs) {if(cs == null)throw new NullPointerException();return null;}", "after": "public override V Get(char[] text){if (text == null){throw new ArgumentNullException(\"text\");}return default(V);}" }, { "index": 257, "before": "public TokenFilter create(TokenStream input) {CommonGramsFilter commonGrams = (CommonGramsFilter) super.create(input);return new CommonGramsQueryFilter(commonGrams);}", "after": "public override TokenStream Create(TokenStream input){var commonGrams = (CommonGramsFilter)base.Create(input);return new CommonGramsQueryFilter(commonGrams);}" }, { "index": 258, "before": "public String getPath() {return path;}", "after": "public virtual string GetPath(){return path;}" }, { "index": 259, "before": "public InitiateMultipartUploadResult initiateMultipartUpload(InitiateMultipartUploadRequest request) {request = beforeClientExecution(request);return executeInitiateMultipartUpload(request);}", "after": "public virtual InitiateMultipartUploadResponse InitiateMultipartUpload(InitiateMultipartUploadRequest request){var options = new InvokeOptions();options.RequestMarshaller = InitiateMultipartUploadRequestMarshaller.Instance;options.ResponseUnmarshaller = InitiateMultipartUploadResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 260, "before": "public StringBuilder insert(int offset, int i) {insert0(offset, Integer.toString(i));return this;}", "after": "public java.lang.StringBuilder insert(int offset, int i){insert0(offset, System.Convert.ToString(i));return this;}" }, { "index": 261, "before": "public void decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = blocks[blocksOffset++];for (int shift = 62; shift >= 0; shift -= 2) {values[valuesOffset++] = (int) ((block >>> shift) & 3);}}}", "after": "public override void Decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = blocks[blocksOffset++];for (int shift = 62; shift >= 0; shift -= 2){values[valuesOffset++] = (int)(((long)((ulong)block >> shift)) & 3);}}}" }, { "index": 262, "before": "public TokenStream create(TokenStream input) {return new ElisionFilter(input, articles);}", "after": "public override TokenStream Create(TokenStream input){return new ElisionFilter(input, articles);}" }, { "index": 263, "before": "public boolean eat(Row in, int remap[]) {int sum = 0;for (Iterator i = in.cells.values().iterator(); i.hasNext();) {Cell c = i.next();sum += c.cnt;if (c.ref >= 0) {if (remap[c.ref] == 0) {c.ref = -1;}}}int frame = sum / 10;boolean live = false;for (Iterator i = in.cells.values().iterator(); i.hasNext();) {Cell c = i.next();if (c.cnt < frame && c.cmd >= 0) {c.cnt = 0;c.cmd = -1;}if (c.cmd >= 0 || c.ref >= 0) {live |= true;}}return !live;}", "after": "public bool Eat(Row @in, int[] remap){int sum = 0;foreach (Cell c in @in.cells.Values){sum += c.cnt;if (c.@ref >= 0){if (remap[c.@ref] == 0){c.@ref = -1;}}}int frame = sum / 10;bool live = false;foreach (Cell c in @in.cells.Values){if (c.cnt < frame && c.cmd >= 0){c.cnt = 0;c.cmd = -1;}if (c.cmd >= 0 || c.@ref >= 0){live |= true;}}return !live;}" }, { "index": 264, "before": "final public Token getToken(int index) {Token t = jj_lookingAhead ? jj_scanpos : token;for (int i = 0; i < index; i++) {if (t.next != null) t = t.next;else t = t.next = token_source.getNextToken();}return t;}", "after": "public Token GetToken(int index){Token t = Token;for (int i = 0; i < index; i++){if (t.Next != null) t = t.Next;else t = t.Next = TokenSource.GetNextToken();}return t;}" }, { "index": 265, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName()).append(\" [ARRAY]\\n\");sb.append(\" range=\").append(getRange()).append(\"\\n\");sb.append(\" options=\").append(HexDump.shortToHex(_options)).append(\"\\n\");sb.append(\" notUsed=\").append(HexDump.intToHex(_field3notUsed)).append(\"\\n\");sb.append(\" formula:\").append(\"\\n\");Ptg[] ptgs = _formula.getTokens();for (int i = 0; i < ptgs.length; i++) {Ptg ptg = ptgs[i];sb.append(ptg).append(ptg.getRVAType()).append(\"\\n\");}sb.append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name).Append(\" [ARRAY]\\n\");sb.Append(\" range=\").Append(Range.ToString()).Append(\"\\n\");sb.Append(\" options=\").Append(HexDump.ShortToHex(_options)).Append(\"\\n\");sb.Append(\" notUsed=\").Append(HexDump.IntToHex(_field3notUsed)).Append(\"\\n\");sb.Append(\" formula:\").Append(\"\\n\");Ptg[] ptgs = _formula.Tokens;for (int i = 0; i < ptgs.Length; i++){Ptg ptg = ptgs[i];sb.Append(ptg.ToString()).Append(ptg.RVAType).Append(\"\\n\");}sb.Append(\"]\");return sb.ToString();}" }, { "index": 266, "before": "public GetFolderResult getFolder(GetFolderRequest request) {request = beforeClientExecution(request);return executeGetFolder(request);}", "after": "public virtual GetFolderResponse GetFolder(GetFolderRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFolderRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFolderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 267, "before": "@Override public void add(int location, E object) {throw new UnsupportedOperationException();}", "after": "public virtual void add(int location, E @object){throw new System.NotSupportedException();}" }, { "index": 268, "before": "public PositiveScoresOnlyCollector(Collector in) {super(in);}", "after": "public PositiveScoresOnlyCollector(ICollector c){this.c = c;}" }, { "index": 269, "before": "public CreateRepoBuildRuleRequest() {super(\"cr\", \"2016-06-07\", \"CreateRepoBuildRule\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/rules\");setMethod(MethodType.PUT);}", "after": "public CreateRepoBuildRuleRequest(): base(\"cr\", \"2016-06-07\", \"CreateRepoBuildRule\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/rules\";Method = MethodType.PUT;}" }, { "index": 270, "before": "public BaseRef(AreaEval ae) {_refEval = null;_areaEval = ae;_firstRowIndex = ae.getFirstRow();_firstColumnIndex = ae.getFirstColumn();_height = ae.getLastRow() - ae.getFirstRow() + 1;_width = ae.getLastColumn() - ae.getFirstColumn() + 1;}", "after": "public BaseRef(RefEval re){_refEval = re;_areaEval = null;_firstRowIndex = re.Row;_firstColumnIndex = re.Column;_height = 1;_width = 1;}" }, { "index": 271, "before": "public DrawingManager2( EscherDggRecord dgg ) {this.dgg = dgg;}", "after": "public DrawingManager2(EscherDggRecord dgg){this.dgg = dgg;}" }, { "index": 272, "before": "public void reset() {if (!first())reset(raw);}", "after": "public override void Reset(){if (!First){Reset(raw);}}" }, { "index": 273, "before": "public final CharsetDecoder reset() {status = INIT;implReset();return this;}", "after": "public java.nio.charset.CharsetDecoder reset(){status = INIT;implReset();return this;}" }, { "index": 274, "before": "public BufferedReader(Reader in, int size) {super(in);if (size <= 0) {throw new IllegalArgumentException(\"size <= 0\");}this.in = in;buf = new char[size];}", "after": "public BufferedReader(java.io.Reader @in, int size) : base(@in){if (size <= 0){throw new System.ArgumentException(\"size <= 0\");}this.@in = @in;buf = new char[size];}" }, { "index": 275, "before": "public DescribeCodeRepositoryResult describeCodeRepository(DescribeCodeRepositoryRequest request) {request = beforeClientExecution(request);return executeDescribeCodeRepository(request);}", "after": "public virtual DescribeCodeRepositoryResponse DescribeCodeRepository(DescribeCodeRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCodeRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCodeRepositoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 276, "before": "public DBSubnetGroup createDBSubnetGroup(CreateDBSubnetGroupRequest request) {request = beforeClientExecution(request);return executeCreateDBSubnetGroup(request);}", "after": "public virtual CreateDBSubnetGroupResponse CreateDBSubnetGroup(CreateDBSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBSubnetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 277, "before": "public RenameBranchCommand setOldName(String oldName) {checkCallable();this.oldName = oldName;return this;}", "after": "public virtual NGit.Api.RenameBranchCommand SetOldName(string oldName){CheckCallable();this.oldName = oldName;return this;}" }, { "index": 278, "before": "public DeleteBranchCommand setForce(boolean force) {checkCallable();this.force = force;return this;}", "after": "public virtual NGit.Api.DeleteBranchCommand SetForce(bool force){CheckCallable();this.force = force;return this;}" }, { "index": 279, "before": "public StopCompilationJobResult stopCompilationJob(StopCompilationJobRequest request) {request = beforeClientExecution(request);return executeStopCompilationJob(request);}", "after": "public virtual StopCompilationJobResponse StopCompilationJob(StopCompilationJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopCompilationJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopCompilationJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 280, "before": "public synchronized final void incrementSecondaryProgressBy(int diff) {setSecondaryProgress(mSecondaryProgress + diff);}", "after": "public void incrementSecondaryProgressBy(int diff){lock (this){setSecondaryProgress(mSecondaryProgress + diff);}}" }, { "index": 281, "before": "public int[] clear() {return bytesStart = null;}", "after": "public override int[] Clear(){return bytesStart = null;}" }, { "index": 282, "before": "public String getRawPath() {return path;}", "after": "public string getRawPath(){return path;}" }, { "index": 283, "before": "public GetUserSourceAccountRequest() {super(\"cr\", \"2016-06-07\", \"GetUserSourceAccount\", \"cr\");setUriPattern(\"/users/sourceAccount\");setMethod(MethodType.GET);}", "after": "public GetUserSourceAccountRequest(): base(\"cr\", \"2016-06-07\", \"GetUserSourceAccount\", \"cr\", \"openAPI\"){UriPattern = \"/users/sourceAccount\";Method = MethodType.GET;}" }, { "index": 284, "before": "public CreateExportJobResult createExportJob(CreateExportJobRequest request) {request = beforeClientExecution(request);return executeCreateExportJob(request);}", "after": "public virtual CreateExportJobResponse CreateExportJob(CreateExportJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateExportJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateExportJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 285, "before": "public CreateDedicatedIpPoolResult createDedicatedIpPool(CreateDedicatedIpPoolRequest request) {request = beforeClientExecution(request);return executeCreateDedicatedIpPool(request);}", "after": "public virtual CreateDedicatedIpPoolResponse CreateDedicatedIpPool(CreateDedicatedIpPoolRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDedicatedIpPoolRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDedicatedIpPoolResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 286, "before": "public boolean equals(Object obj) {if (this == obj) {return true;}if (obj == null) {return false;}if (obj instanceof HSSFCellStyle) {final HSSFCellStyle other = (HSSFCellStyle) obj;if (_format == null) {if (other._format != null) {return false;}} else if (!_format.equals(other._format)) {return false;}if (_index != other._index) {return false;}return true;}return false;}", "after": "public override bool Equals(Object obj){if (this == obj) return true;if (obj == null) return false;if (obj is HSSFCellStyle){HSSFCellStyle other = (HSSFCellStyle)obj;if (_format == null){if (other._format != null)return false;}else if (!_format.Equals(other._format))return false;if (index != other.index)return false;return true;}return false;}" }, { "index": 287, "before": "public ReleaseHostsResult releaseHosts(ReleaseHostsRequest request) {request = beforeClientExecution(request);return executeReleaseHosts(request);}", "after": "public virtual ReleaseHostsResponse ReleaseHosts(ReleaseHostsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReleaseHostsRequestMarshaller.Instance;options.ResponseUnmarshaller = ReleaseHostsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 288, "before": "public boolean equals(Object object) {if (this == object) {return true;}if (object instanceof Set) {Set s = (Set) object;try {return size() == s.size() && containsAll(s);} catch (NullPointerException ignored) {return false;} catch (ClassCastException ignored) {return false;}}return false;}", "after": "public override bool Equals(object @object){if (this == @object){return true;}if (@object is java.util.Set){java.util.Set s = (java.util.Set)@object;try{return size() == s.size() && containsAll(s);}catch (System.ArgumentNullException){return false;}catch (System.InvalidCastException){return false;}}return false;}" }, { "index": 289, "before": "public void setRefLogMessage(String msg, boolean appendStatus) {customRefLog = true;if (msg == null && !appendStatus) {disableRefLog();} else if (msg == null && appendStatus) {refLogMessage = \"\"; refLogIncludeResult = true;} else {refLogMessage = msg;refLogIncludeResult = appendStatus;}}", "after": "public virtual void SetRefLogMessage(string msg, bool appendStatus){if (msg == null && !appendStatus){DisableRefLog();}else{if (msg == null && appendStatus){refLogMessage = string.Empty;refLogIncludeResult = true;}else{refLogMessage = msg;refLogIncludeResult = appendStatus;}}}" }, { "index": 290, "before": "public StreamIDRecord(RecordInputStream in) {idstm = in.readShort();}", "after": "public StreamIDRecord(RecordInputStream in1){idstm = in1.ReadShort();}" }, { "index": 291, "before": "public RecognizeCarRequest() {super(\"visionai-poc\", \"2020-04-08\", \"RecognizeCar\");setMethod(MethodType.POST);}", "after": "public RecognizeCarRequest(): base(\"visionai-poc\", \"2020-04-08\", \"RecognizeCar\"){Method = MethodType.POST;}" }, { "index": 292, "before": "public final ByteOrder order() {return ByteOrder.nativeOrder();}", "after": "public sealed override java.nio.ByteOrder order(){return java.nio.ByteOrder.nativeOrder();}" }, { "index": 293, "before": "public int getAheadCount() {return aheadCount;}", "after": "public virtual int GetAheadCount(){return aheadCount;}" }, { "index": 294, "before": "public boolean isNewFragment() {return false;}", "after": "public virtual bool IsNewFragment(){return false;}" }, { "index": 295, "before": "public GetCloudFrontOriginAccessIdentityConfigResult getCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest request) {request = beforeClientExecution(request);return executeGetCloudFrontOriginAccessIdentityConfig(request);}", "after": "public virtual GetCloudFrontOriginAccessIdentityConfigResponse GetCloudFrontOriginAccessIdentityConfig(GetCloudFrontOriginAccessIdentityConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCloudFrontOriginAccessIdentityConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCloudFrontOriginAccessIdentityConfigResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 296, "before": "public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) {return label == symbol;}", "after": "public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol){return token == symbol;}" }, { "index": 297, "before": "public DeleteTransitGatewayResult deleteTransitGateway(DeleteTransitGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGateway(request);}", "after": "public virtual DeleteTransitGatewayResponse DeleteTransitGateway(DeleteTransitGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 298, "before": "public static byte[] grow(byte[] array, int minSize) {assert minSize >= 0: \"size must be positive (got \" + minSize + \"): likely integer overflow?\";if (array.length < minSize) {return growExact(array, oversize(minSize, Byte.BYTES));} elsereturn array;}", "after": "public static double[] Grow(double[] array, int minSize){Debug.Assert(minSize >= 0, \"size must be positive (got \" + minSize + \"): likely integer overflow?\");if (array.Length < minSize){double[] newArray = new double[Oversize(minSize, RamUsageEstimator.NUM_BYTES_DOUBLE)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}" }, { "index": 299, "before": "public CreateTransactionRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"CreateTransaction\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public CreateTransactionRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"CreateTransaction\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 300, "before": "public BatchRefUpdate setRefLogIdent(PersonIdent pi) {refLogIdent = pi;return this;}", "after": "public virtual NGit.BatchRefUpdate SetRefLogIdent(PersonIdent pi){refLogIdent = pi;return this;}" }, { "index": 301, "before": "public GetLaunchTemplateDataResult getLaunchTemplateData(GetLaunchTemplateDataRequest request) {request = beforeClientExecution(request);return executeGetLaunchTemplateData(request);}", "after": "public virtual GetLaunchTemplateDataResponse GetLaunchTemplateData(GetLaunchTemplateDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLaunchTemplateDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLaunchTemplateDataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 302, "before": "public ParseInfo(ProfilingATNSimulator atnSimulator) {this.atnSimulator = atnSimulator;}", "after": "public ParseInfo(ProfilingATNSimulator atnSimulator){this.atnSimulator = atnSimulator;}" }, { "index": 303, "before": "public SimpleQQParser(String qqNames[], String indexField) {this.qqNames = qqNames;this.indexField = indexField;}", "after": "public SimpleQQParser(string[] qqNames, string indexField){this.qqNames = qqNames;this.indexField = indexField;}" }, { "index": 304, "before": "public DBCluster promoteReadReplicaDBCluster(PromoteReadReplicaDBClusterRequest request) {request = beforeClientExecution(request);return executePromoteReadReplicaDBCluster(request);}", "after": "public virtual PromoteReadReplicaDBClusterResponse PromoteReadReplicaDBCluster(PromoteReadReplicaDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = PromoteReadReplicaDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = PromoteReadReplicaDBClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 305, "before": "public DescribeCapacityReservationsResult describeCapacityReservations(DescribeCapacityReservationsRequest request) {request = beforeClientExecution(request);return executeDescribeCapacityReservations(request);}", "after": "public virtual DescribeCapacityReservationsResponse DescribeCapacityReservations(DescribeCapacityReservationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCapacityReservationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCapacityReservationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 306, "before": "public String toString() {return \"IndexSearcher(\" + reader + \"; executor=\" + executor + \"; sliceExecutionControlPlane \" + sliceExecutor + \")\";}", "after": "public override string ToString(){return \"IndexSearcher(\" + reader + \"; executor=\" + executor + \")\";}" }, { "index": 307, "before": "public final boolean incrementToken() {return false;}", "after": "public override bool IncrementToken(){return false;}" }, { "index": 308, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(main + 1);out.writeShort(subFrom);out.writeShort(subTo);}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteShort(main + 1);out1.WriteShort(subFrom);out1.WriteShort(subTo);}" }, { "index": 309, "before": "public void decode(byte[] blocks, int blocksOffset, int[] values,int valuesOffset, int iterations) {if (bitsPerValue > 32) {throw new UnsupportedOperationException(\"Cannot decode \" + bitsPerValue + \"-bits values into an int[]\");}for (int i = 0; i < iterations; ++i) {final long block = readLong(blocks, blocksOffset);blocksOffset += 8;valuesOffset = decode(block, values, valuesOffset);}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){if (bitsPerValue > 32){throw new System.NotSupportedException(\"Cannot decode \" + bitsPerValue + \"-bits values into an int[]\");}for (int i = 0; i < iterations; ++i){long block = ReadInt64(blocks, blocksOffset);blocksOffset += 8;valuesOffset = Decode(block, values, valuesOffset);}}" }, { "index": 310, "before": "public boolean isExpectedToken(int symbol) {ATN atn = getInterpreter().atn;ParserRuleContext ctx = _ctx;ATNState s = atn.states.get(getState());IntervalSet following = atn.nextTokens(s);if (following.contains(symbol)) {return true;}if ( !following.contains(Token.EPSILON) ) return false;while ( ctx!=null && ctx.invokingState>=0 && following.contains(Token.EPSILON) ) {ATNState invokingState = atn.states.get(ctx.invokingState);RuleTransition rt = (RuleTransition)invokingState.transition(0);following = atn.nextTokens(rt.followState);if (following.contains(symbol)) {return true;}ctx = (ParserRuleContext)ctx.parent;}if ( following.contains(Token.EPSILON) && symbol == Token.EOF ) {return true;}return false;}", "after": "public virtual bool IsExpectedToken(int symbol){ATN atn = Interpreter.atn;ParserRuleContext ctx = _ctx;ATNState s = atn.states[State];IntervalSet following = atn.NextTokens(s);if (following.Contains(symbol)){return true;}if (!following.Contains(TokenConstants.EPSILON)){return false;}while (ctx != null && ctx.invokingState >= 0 && following.Contains(TokenConstants.EPSILON)){ATNState invokingState = atn.states[ctx.invokingState];RuleTransition rt = (RuleTransition)invokingState.Transition(0);following = atn.NextTokens(rt.followState);if (following.Contains(symbol)){return true;}ctx = (ParserRuleContext)ctx.Parent;}if (following.Contains(TokenConstants.EPSILON) && symbol == TokenConstants.EOF){return true;}return false;}" }, { "index": 311, "before": "public UpdateStreamResult updateStream(UpdateStreamRequest request) {request = beforeClientExecution(request);return executeUpdateStream(request);}", "after": "public virtual UpdateStreamResponse UpdateStream(UpdateStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStreamResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 312, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {try {OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);return ErrorEval.NA;} catch (EvaluationException e) {int result = translateErrorCodeToErrorTypeValue(e.getErrorEval().getErrorCode());return new NumberEval(result);}}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){try{OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);return ErrorEval.NA;}catch (EvaluationException e){int result = TranslateErrorCodeToErrorTypeValue(e.GetErrorEval().ErrorCode);return new NumberEval(result);}}" }, { "index": 313, "before": "public String toString() {return getClass().getName() + \" [\" + _index + \" \" + _name + \"]\";}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(_index).Append(\" \").Append(_name);sb.Append(\"]\");return sb.ToString();}" }, { "index": 314, "before": "public ListAssignmentsForHITResult listAssignmentsForHIT(ListAssignmentsForHITRequest request) {request = beforeClientExecution(request);return executeListAssignmentsForHIT(request);}", "after": "public virtual ListAssignmentsForHITResponse ListAssignmentsForHIT(ListAssignmentsForHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAssignmentsForHITRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAssignmentsForHITResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 315, "before": "public DeleteAccessControlRuleResult deleteAccessControlRule(DeleteAccessControlRuleRequest request) {request = beforeClientExecution(request);return executeDeleteAccessControlRule(request);}", "after": "public virtual DeleteAccessControlRuleResponse DeleteAccessControlRule(DeleteAccessControlRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAccessControlRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAccessControlRuleResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 316, "before": "public Arc getFirstArc(FST.Arc arc) {return fst.getFirstArc(arc);}", "after": "public FST.Arc GetFirstArc(FST.Arc arc){return fst.GetFirstArc(arc);}" }, { "index": 317, "before": "public void decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = blocks[blocksOffset++];for (int shift = 48; shift >= 0; shift -= 16) {values[valuesOffset++] = (int) ((block >>> shift) & 65535);}}}", "after": "public override void Decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = blocks[blocksOffset++];for (int shift = 48; shift >= 0; shift -= 16){values[valuesOffset++] = (int)(((long)((ulong)block >> shift)) & 65535);}}}" }, { "index": 318, "before": "public long skip(long charCount) throws IOException {if (charCount < 0) {throw new IllegalArgumentException(\"charCount < 0: \" + charCount);}synchronized (lock) {checkNotClosed();if (charCount == 0) {return 0;}long inSkipped;int availableFromBuffer = buf.length - pos;if (availableFromBuffer > 0) {long requiredFromIn = charCount - availableFromBuffer;if (requiredFromIn <= 0) {pos += charCount;return charCount;}pos += availableFromBuffer;inSkipped = in.skip(requiredFromIn);} else {inSkipped = in.skip(charCount);}return inSkipped + availableFromBuffer;}}", "after": "public override long skip(long charCount){if (charCount < 0){throw new System.ArgumentException(\"charCount < 0: \" + charCount);}lock (@lock){checkNotClosed();if (charCount == 0){return 0;}long inSkipped;int availableFromBuffer = buf.Length - pos;if (availableFromBuffer > 0){long requiredFromIn = charCount - availableFromBuffer;if (requiredFromIn <= 0){pos += (int)(charCount);return charCount;}pos += availableFromBuffer;inSkipped = @in.skip(requiredFromIn);}else{inSkipped = @in.skip(charCount);}return inSkipped + availableFromBuffer;}}" }, { "index": 319, "before": "public Map getRefsMap() {return advertisedRefs;}", "after": "public virtual IDictionary GetRefsMap(){return advertisedRefs;}" }, { "index": 320, "before": "public UpdateApiKeyResult updateApiKey(UpdateApiKeyRequest request) {request = beforeClientExecution(request);return executeUpdateApiKey(request);}", "after": "public virtual UpdateApiKeyResponse UpdateApiKey(UpdateApiKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApiKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApiKeyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 321, "before": "public ObjectStream openStream() throws MissingObjectException, IOException {PackInputStream packIn;@SuppressWarnings(\"resource\")DfsReader ctx = db.newReader();try {try {packIn = new PackInputStream(pack, objectOffset + headerLength, ctx);ctx = null; } catch (IOException packGone) {ObjectId obj = pack.getReverseIdx(ctx).findObject(objectOffset);return ctx.open(obj, type).openStream();}} finally {if (ctx != null) {ctx.close();}}int bufsz = 8192;InputStream in = new BufferedInputStream(new InflaterInputStream(packIn, packIn.ctx.inflater(), bufsz),bufsz);return new ObjectStream.Filter(type, size, in);}", "after": "public override ObjectStream OpenStream(){WindowCursor wc = new WindowCursor(db);InputStream @in;try{@in = new PackInputStream(pack, objectOffset + headerLength, wc);}catch (IOException){return wc.Open(GetObjectId(), type).OpenStream();}@in = new BufferedInputStream(new InflaterInputStream(@in, wc.Inflater(), 8192),8192);return new ObjectStream.Filter(type, size, @in);}" }, { "index": 322, "before": "public ArrayList() {array = EmptyArray.OBJECT;}", "after": "public ArrayList(){array = libcore.util.EmptyArray.OBJECT;}" }, { "index": 323, "before": "public UpdateDetectorVersionResult updateDetectorVersion(UpdateDetectorVersionRequest request) {request = beforeClientExecution(request);return executeUpdateDetectorVersion(request);}", "after": "public virtual UpdateDetectorVersionResponse UpdateDetectorVersion(UpdateDetectorVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDetectorVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDetectorVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 324, "before": "public void resize(){resize(Double.MAX_VALUE);}", "after": "public void Resize(){Resize(Double.MaxValue);}" }, { "index": 325, "before": "public RevFlagSet(Collection s) {this();addAll(s);}", "after": "public RevFlagSet(ICollection s) : this(){Sharpen.Collections.AddAll(this, s);}" }, { "index": 326, "before": "public int size() {return size;}", "after": "public override int size(){return this._enclosing.size();}" }, { "index": 327, "before": "public final long getLong() {int newPosition = position + SizeOf.LONG;if (newPosition > limit) {throw new BufferUnderflowException();}long result = Memory.peekLong(backingArray, offset + position, order);position = newPosition;return result;}", "after": "public sealed override long getLong(){int newPosition = _position + libcore.io.SizeOf.LONG;if (newPosition > _limit){throw new java.nio.BufferUnderflowException();}long result = libcore.io.Memory.peekLong(backingArray, offset + _position, _order);_position = newPosition;return result;}" }, { "index": 328, "before": "public StringBuilder insert(int offset, long l) {insert0(offset, Long.toString(l));return this;}", "after": "public java.lang.StringBuilder insert(int offset, long l){insert0(offset, System.Convert.ToString(l));return this;}" }, { "index": 329, "before": "public TurkishLowerCaseFilter(TokenStream in) {super(in);}", "after": "public TurkishLowerCaseFilter(TokenStream @in): base(@in){termAtt = AddAttribute();}" }, { "index": 330, "before": "public ParseTreeMatch match(ParseTree tree, ParseTreePattern pattern) {MultiMap labels = new MultiMap();ParseTree mismatchedNode = matchImpl(tree, pattern.getPatternTree(), labels);return new ParseTreeMatch(tree, pattern, labels, mismatchedNode);}", "after": "public virtual ParseTreeMatch Match(IParseTree tree, ParseTreePattern pattern){MultiMap labels = new MultiMap();IParseTree mismatchedNode = MatchImpl(tree, pattern.PatternTree, labels);return new ParseTreeMatch(tree, pattern, labels, mismatchedNode);}" }, { "index": 331, "before": "public void addIfNoOverlap( WeightedPhraseInfo wpi ){for( WeightedPhraseInfo existWpi : getPhraseList() ){if( existWpi.isOffsetOverlap( wpi ) ) {existWpi.getTermsInfos().addAll( wpi.getTermsInfos() );return;}}getPhraseList().add( wpi );}", "after": "public virtual void AddIfNoOverlap(WeightedPhraseInfo wpi){foreach (WeightedPhraseInfo existWpi in PhraseList){if (existWpi.IsOffsetOverlap(wpi)){existWpi.TermsInfos.AddRange(wpi.TermsInfos);return;}}PhraseList.Add(wpi);}" }, { "index": 332, "before": "public ThreeWayMerger newMerger(Repository db) {return new InCoreMerger(db);}", "after": "public override Merger NewMerger(Repository db){return new StrategySimpleTwoWayInCore.InCoreMerger(db);}" }, { "index": 333, "before": "public float docScore(int docId, String field, int numPayloadsSeen, float payloadScore) {return numPayloadsSeen > 0 ? (payloadScore / numPayloadsSeen) : 1;}", "after": "public override float DocScore(int docId, string field, int numPayloadsSeen, float payloadScore){return numPayloadsSeen > 0 ? (payloadScore / numPayloadsSeen) : 1;}" }, { "index": 334, "before": "public Collection evaluate(ParseTree t) {return Trees.findAllRuleNodes(t, ruleIndex);}", "after": "public override ICollection Evaluate(IParseTree t){return Trees.FindAllRuleNodes(t, ruleIndex);}" }, { "index": 335, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[CFRULE]\\n\");buffer.append(\" .condition_type =\").append(getConditionType()).append(\"\\n\");buffer.append(\" OPTION FLAGS=0x\").append(Integer.toHexString(getOptions())).append(\"\\n\");if (containsFontFormattingBlock()) {buffer.append(_fontFormatting).append(\"\\n\");}if (containsBorderFormattingBlock()) {buffer.append(_borderFormatting).append(\"\\n\");}if (containsPatternFormattingBlock()) {buffer.append(_patternFormatting).append(\"\\n\");}buffer.append(\" Formula 1 =\").append(Arrays.toString(getFormula1().getTokens())).append(\"\\n\");buffer.append(\" Formula 2 =\").append(Arrays.toString(getFormula2().getTokens())).append(\"\\n\");buffer.append(\"[/CFRULE]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[CFRULE]\\n\");buffer.Append(\" .condition_type =\").Append(field_1_condition_type).Append(\"\\n\");buffer.Append(\" OPTION FLAGS=0x\").Append(string.Format(\"{0:X}\",Options)).Append(\"\\n\");if (ContainsFontFormattingBlock){buffer.Append(_fontFormatting.ToString()).Append(\"\\n\");}if (ContainsBorderFormattingBlock){buffer.Append(_borderFormatting.ToString()).Append(\"\\n\");}if (ContainsPatternFormattingBlock){buffer.Append(_patternFormatting.ToString()).Append(\"\\n\");}buffer.Append(\" Formula 1 =\").Append(Arrays.ToString(field_17_formula1.Tokens)).Append(\"\\n\");buffer.Append(\" Formula 2 =\").Append(Arrays.ToString(field_18_formula2.Tokens)).Append(\"\\n\");buffer.Append(\"[/CFRULE]\\n\");return buffer.ToString();}" }, { "index": 336, "before": "public DescribeServiceUpdatesResult describeServiceUpdates(DescribeServiceUpdatesRequest request) {request = beforeClientExecution(request);return executeDescribeServiceUpdates(request);}", "after": "public virtual DescribeServiceUpdatesResponse DescribeServiceUpdates(DescribeServiceUpdatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeServiceUpdatesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeServiceUpdatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 337, "before": "public String getNameName(int index){return getNameAt(index).getNameName();}", "after": "public String GetNameName(int index){String result = GetNameAt(index).NameName;return result;}" }, { "index": 338, "before": "public DescribeLocationsResult describeLocations() {return describeLocations(new DescribeLocationsRequest());}", "after": "public virtual DescribeLocationsResponse DescribeLocations(){return DescribeLocations(new DescribeLocationsRequest());}" }, { "index": 339, "before": "public String toString() {return \"\" + \"\\n\"+ getChild().toString() + \"\\n\";}", "after": "public override string ToString(){return \"\" + \"\\n\"+ GetChild().ToString() + \"\\n\";}" }, { "index": 340, "before": "public DirCacheEntry getDirCacheEntry() {return currentSubtree == null ? currentEntry : null;}", "after": "public virtual DirCacheEntry GetDirCacheEntry(){return currentSubtree == null ? currentEntry : null;}" }, { "index": 341, "before": "public IntBuffer put(int[] src, int srcOffset, int intCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, intCount);if (intCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + intCount; ++i) {put(src[i]);}return this;}", "after": "public virtual java.nio.IntBuffer put(int[] src, int srcOffset, int intCount){java.util.Arrays.checkOffsetAndCount(src.Length, srcOffset, intCount);if (intCount > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = srcOffset; i < srcOffset + intCount; ++i){put(src[i]);}}return this;}" }, { "index": 342, "before": "public void trimToSize() {int s = size;if (s == array.length) {return;}if (s == 0) {array = EmptyArray.OBJECT;} else {Object[] newArray = new Object[s];System.arraycopy(array, 0, newArray, 0, s);array = newArray;}modCount++;}", "after": "public virtual void trimToSize(){int s = _size;if (s == array.Length){return;}if (s == 0){array = libcore.util.EmptyArray.OBJECT;}else{object[] newArray = new object[s];System.Array.Copy(array, 0, newArray, 0, s);array = newArray;}modCount++;}" }, { "index": 343, "before": "public DescribeLocalGatewayVirtualInterfacesResult describeLocalGatewayVirtualInterfaces(DescribeLocalGatewayVirtualInterfacesRequest request) {request = beforeClientExecution(request);return executeDescribeLocalGatewayVirtualInterfaces(request);}", "after": "public virtual DescribeLocalGatewayVirtualInterfacesResponse DescribeLocalGatewayVirtualInterfaces(DescribeLocalGatewayVirtualInterfacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLocalGatewayVirtualInterfacesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLocalGatewayVirtualInterfacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 344, "before": "public TokenStream create(TokenStream input) {return new RussianLightStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new RussianLightStemFilter(input);}" }, { "index": 345, "before": "public int [] toArray(final int [] a){int[] rval;if (a.length == _limit){System.arraycopy(_array, 0, a, 0, _limit);rval = a;}else{rval = toArray();}return rval;}", "after": "public int[] ToArray(int[] a){int[] rval;if (a.Length == _limit){Array.Copy(_array, 0, a, 0, _limit);rval = a;}else{rval = ToArray();}return rval;}" }, { "index": 346, "before": "public BasicSessionCredentials(String accessKeyId, String accessKeySecret, String sessionToken,long roleSessionDurationSeconds) {if (accessKeyId == null) {throw new IllegalArgumentException(\"Access key ID cannot be null.\");}if (accessKeySecret == null) {throw new IllegalArgumentException(\"Access key secret cannot be null.\");}this.accessKeyId = accessKeyId;this.accessKeySecret = accessKeySecret;this.sessionToken = sessionToken;this.roleSessionDurationSeconds = roleSessionDurationSeconds;this.sessionStartedTimeInMilliSeconds = System.currentTimeMillis();}", "after": "public BasicSessionCredentials(string accessKeyId, string accessKeySecret,string sessionToken, long roleSessionDurationSeconds = 0){if (accessKeyId == null){throw new ArgumentOutOfRangeException(\"Access key ID cannot be null.\");}if (accessKeySecret == null){throw new ArgumentOutOfRangeException(\"Access key secret cannot be null.\");}this.accessKeyId = accessKeyId;this.accessKeySecret = accessKeySecret;this.sessionToken = sessionToken;this.roleSessionDurationSeconds = roleSessionDurationSeconds;sessionStartedTimeInMilliSeconds = DateTime.UtcNow.currentTimeMillis();}" }, { "index": 347, "before": "public final ShortBuffer get(short[] dst, int dstOffset, int shortCount) {if (shortCount > remaining()) {throw new BufferUnderflowException();}System.arraycopy(backingArray, offset + position, dst, dstOffset, shortCount);position += shortCount;return this;}", "after": "public sealed override java.nio.ShortBuffer get(short[] dst, int dstOffset, int shortCount){if (shortCount > remaining()){throw new java.nio.BufferUnderflowException();}System.Array.Copy(backingArray, offset + _position, dst, dstOffset, shortCount);_position += shortCount;return this;}" }, { "index": 348, "before": "public ActivateEventSourceResult activateEventSource(ActivateEventSourceRequest request) {request = beforeClientExecution(request);return executeActivateEventSource(request);}", "after": "public virtual ActivateEventSourceResponse ActivateEventSource(ActivateEventSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ActivateEventSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = ActivateEventSourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 349, "before": "public DescribeReceiptRuleSetResult describeReceiptRuleSet(DescribeReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeDescribeReceiptRuleSet(request);}", "after": "public virtual DescribeReceiptRuleSetResponse DescribeReceiptRuleSet(DescribeReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReceiptRuleSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 350, "before": "public Filter(String name) {setName(name);}", "after": "public Filter(string name){_name = name;}" }, { "index": 351, "before": "public DoubleBuffer put(double c) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.DoubleBuffer put(double c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 352, "before": "public CreateTrafficPolicyInstanceResult createTrafficPolicyInstance(CreateTrafficPolicyInstanceRequest request) {request = beforeClientExecution(request);return executeCreateTrafficPolicyInstance(request);}", "after": "public virtual CreateTrafficPolicyInstanceResponse CreateTrafficPolicyInstance(CreateTrafficPolicyInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrafficPolicyInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrafficPolicyInstanceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 353, "before": "public JapaneseIterationMarkCharFilter(Reader input, boolean normalizeKanji, boolean normalizeKana) {super(input);this.normalizeKanji = normalizeKanji;this.normalizeKana = normalizeKana;buffer.reset(input);}", "after": "public JapaneseIterationMarkCharFilter(TextReader input, bool normalizeKanji, bool normalizeKana): base(input){this.normalizeKanji = normalizeKanji;this.normalizeKana = normalizeKana;buffer.Reset(input);}" }, { "index": 354, "before": "public void writeLong(long v) {writeInt((int)(v >> 0));writeInt((int)(v >> 32));}", "after": "public void WriteLong(long v){WriteInt((int)(v >> 0));WriteInt((int)(v >> 32));}" }, { "index": 355, "before": "public FileResolver() {exports = new ConcurrentHashMap<>();exportBase = new CopyOnWriteArrayList<>();}", "after": "public FileResolver(){exports = new ConcurrentHashMap();exportBase = new CopyOnWriteArrayList();}" }, { "index": 356, "before": "public ValueEval getRef3DEval(Ref3DPxg rptg) {SheetRangeEvaluator sre = createExternSheetRefEvaluator(rptg.getSheetName(), rptg.getLastSheetName(), rptg.getExternalWorkbookNumber());return new LazyRefEval(rptg.getRow(), rptg.getColumn(), sre);}", "after": "public ValueEval GetRef3DEval(Ref3DPtg rptg){SheetRangeEvaluator sre = CreateExternSheetRefEvaluator(rptg.ExternSheetIndex);return new LazyRefEval(rptg.Row, rptg.Column, sre);}" }, { "index": 357, "before": "public DeleteDatasetResult deleteDataset(DeleteDatasetRequest request) {request = beforeClientExecution(request);return executeDeleteDataset(request);}", "after": "public virtual DeleteDatasetResponse DeleteDataset(DeleteDatasetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDatasetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDatasetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 358, "before": "public StartRelationalDatabaseResult startRelationalDatabase(StartRelationalDatabaseRequest request) {request = beforeClientExecution(request);return executeStartRelationalDatabase(request);}", "after": "public virtual StartRelationalDatabaseResponse StartRelationalDatabase(StartRelationalDatabaseRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartRelationalDatabaseRequestMarshaller.Instance;options.ResponseUnmarshaller = StartRelationalDatabaseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 359, "before": "public DescribeReservedCacheNodesOfferingsResult describeReservedCacheNodesOfferings() {return describeReservedCacheNodesOfferings(new DescribeReservedCacheNodesOfferingsRequest());}", "after": "public virtual DescribeReservedCacheNodesOfferingsResponse DescribeReservedCacheNodesOfferings(){return DescribeReservedCacheNodesOfferings(new DescribeReservedCacheNodesOfferingsRequest());}" }, { "index": 360, "before": "static public double pmt(double r, int nper, double pv, double fv, int type) {return -r * (pv * Math.pow(1 + r, nper) + fv) / ((1 + r*type) * (Math.pow(1 + r, nper) - 1));}", "after": "static public double PMT(double r, int nper, double pv, double fv, int type){double pmt = -r * (pv * Math.Pow(1 + r, nper) + fv) / ((1 + r * type) * (Math.Pow(1 + r, nper) - 1));return pmt;}" }, { "index": 361, "before": "public DescribeDocumentVersionsResult describeDocumentVersions(DescribeDocumentVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeDocumentVersions(request);}", "after": "public virtual DescribeDocumentVersionsResponse DescribeDocumentVersions(DescribeDocumentVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDocumentVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDocumentVersionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 362, "before": "public ListPublishingDestinationsResult listPublishingDestinations(ListPublishingDestinationsRequest request) {request = beforeClientExecution(request);return executeListPublishingDestinations(request);}", "after": "public virtual ListPublishingDestinationsResponse ListPublishingDestinations(ListPublishingDestinationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPublishingDestinationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPublishingDestinationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 363, "before": "public DeleteAccountAliasRequest(String accountAlias) {setAccountAlias(accountAlias);}", "after": "public DeleteAccountAliasRequest(string accountAlias){_accountAlias = accountAlias;}" }, { "index": 364, "before": "public static long[] grow(long[] array) {return grow(array, 1 + array.length);}", "after": "public static float[] Grow(float[] array){return Grow(array, 1 + array.Length);}" }, { "index": 365, "before": "public String outputToString(Object output) {if (!(output instanceof List)) {return outputs.outputToString((T) output);} else {List outputList = (List) output;StringBuilder b = new StringBuilder();b.append('[');for(int i=0;i 0) {b.append(\", \");}b.append(outputs.outputToString(outputList.get(i)));}b.append(']');return b.toString();}}", "after": "public override string OutputToString(object output){if (!(output is IList)){return outputs.OutputToString((T)output);}else{IList outputList = (IList)output;StringBuilder b = new StringBuilder();b.Append('[');for (int i = 0; i < outputList.Count; i++){if (i > 0){b.Append(\", \");}b.Append(outputs.OutputToString((T)outputList[i]));}b.Append(']');return b.ToString();}}" }, { "index": 366, "before": "public void notifyDeleteCell(Cell cell) {_bookEvaluator.notifyDeleteCell(new HSSFEvaluationCell((HSSFCell)cell));}", "after": "public void NotifyDeleteCell(ICell cell){_bookEvaluator.NotifyDeleteCell(new HSSFEvaluationCell(cell));}" }, { "index": 367, "before": "public StringBuilder replace(int start, int end, String str) {replace0(start, end, str);return this;}", "after": "public java.lang.StringBuilder replace(int start, int end, string str){replace0(start, end, str);return this;}" }, { "index": 368, "before": "public SetIdentityPoolConfigurationResult setIdentityPoolConfiguration(SetIdentityPoolConfigurationRequest request) {request = beforeClientExecution(request);return executeSetIdentityPoolConfiguration(request);}", "after": "public virtual SetIdentityPoolConfigurationResponse SetIdentityPoolConfiguration(SetIdentityPoolConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityPoolConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityPoolConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 369, "before": "public static double kthSmallest(double[] v, int k) {double r = Double.NaN;int index = k-1; if (v!=null && v.length > index && index >= 0) {Arrays.sort(v);r = v[index];}return r;}", "after": "public static double kthSmallest(double[] v, int k){double r = double.NaN;k--; if (v != null && v.Length > k && k >= 0){Array.Sort(v);r = v[k];}return r;}" }, { "index": 370, "before": "public void set(int index, long value) {final int o = index >>> 5;final int b = index & 31;final int shift = b << 1;blocks[o] = (blocks[o] & ~(3L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = (int)((uint)index >> 5);int b = index & 31;int shift = b << 1;blocks[o] = (blocks[o] & ~(3L << shift)) | (value << shift);}" }, { "index": 371, "before": "public String toString() {if (getChildren() == null || getChildren().size() == 0)return \"\";StringBuilder sb = new StringBuilder();sb.append(\"\");for (QueryNode child : getChildren()) {sb.append(\"\\n\");sb.append(child.toString());}sb.append(\"\\n\");return sb.toString();}", "after": "public override string ToString(){var children = GetChildren();if (children == null || children.Count == 0)return \"\";StringBuilder sb = new StringBuilder();sb.Append(\"\");foreach (IQueryNode child in children){sb.Append(\"\\n\");sb.Append(child.ToString());}sb.Append(\"\\n\");return sb.ToString();}" }, { "index": 372, "before": "public int sumTokenSizes(int fromIx, int toIx) {int result = 0;for (int i=fromIx; i subList(int start, int end) {synchronized (mutex) {return new SynchronizedRandomAccessList(list.subList(start, end), mutex);}}", "after": "public override java.util.List subList(int start, int end){lock (mutex){return new java.util.Collections.SynchronizedRandomAccessList(list.subList(start, end), mutex);}}" }, { "index": 376, "before": "public FileHeader getFileHeader() {return file;}", "after": "public virtual FileHeader GetFileHeader(){return file;}" }, { "index": 377, "before": "public AttachLoadBalancersResult attachLoadBalancers(AttachLoadBalancersRequest request) {request = beforeClientExecution(request);return executeAttachLoadBalancers(request);}", "after": "public virtual AttachLoadBalancersResponse AttachLoadBalancers(AttachLoadBalancersRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachLoadBalancersRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachLoadBalancersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 378, "before": "public InitiateJobRequest(String accountId, String vaultName, JobParameters jobParameters) {setAccountId(accountId);setVaultName(vaultName);setJobParameters(jobParameters);}", "after": "public InitiateJobRequest(string accountId, string vaultName, JobParameters jobParameters){_accountId = accountId;_vaultName = vaultName;_jobParameters = jobParameters;}" }, { "index": 379, "before": "public String toString() {return \"SPL\";}", "after": "public override string ToString(){return \"SPL\";}" }, { "index": 380, "before": "public ReplaceableAttribute(String name, String value, Boolean replace) {setName(name);setValue(value);setReplace(replace);}", "after": "public ReplaceableAttribute(string name, string value, bool replace){_name = name;_value = value;_replace = replace;}" }, { "index": 381, "before": "public final void add(IndexableField field) {fields.add(field);}", "after": "public void Add(IIndexableField field){fields.Add(field);}" }, { "index": 382, "before": "public DeleteStackSetResult deleteStackSet(DeleteStackSetRequest request) {request = beforeClientExecution(request);return executeDeleteStackSet(request);}", "after": "public virtual DeleteStackSetResponse DeleteStackSet(DeleteStackSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStackSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStackSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 383, "before": "public GetRepoBuildRuleListRequest() {super(\"cr\", \"2016-06-07\", \"GetRepoBuildRuleList\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/rules\");setMethod(MethodType.GET);}", "after": "public GetRepoBuildRuleListRequest(): base(\"cr\", \"2016-06-07\", \"GetRepoBuildRuleList\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/rules\";Method = MethodType.GET;}" }, { "index": 384, "before": "public SparseArray(int initialCapacity) {initialCapacity = ArrayUtils.idealIntArraySize(initialCapacity);mKeys = new int[initialCapacity];mValues = new Object[initialCapacity];mSize = 0;}", "after": "public SparseArray(int initialCapacity){initialCapacity = android.util.@internal.ArrayUtils.idealIntArraySize(initialCapacity);mKeys = new int[initialCapacity];mValues = new object[initialCapacity];mSize = 0;}" }, { "index": 385, "before": "public InvokeServiceRequest() {super(\"industry-brain\", \"2018-07-12\", \"InvokeService\");setMethod(MethodType.POST);}", "after": "public InvokeServiceRequest(): base(\"industry-brain\", \"2018-07-12\", \"InvokeService\"){Method = MethodType.POST;}" }, { "index": 386, "before": "public ListAlbumPhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListAlbumPhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListAlbumPhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListAlbumPhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 387, "before": "public boolean hasPrevious() {return link != list.voidLink;}", "after": "public bool hasPrevious(){return link != list.voidLink;}" }, { "index": 388, "before": "public DeleteHsmConfigurationResult deleteHsmConfiguration(DeleteHsmConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteHsmConfiguration(request);}", "after": "public virtual DeleteHsmConfigurationResponse DeleteHsmConfiguration(DeleteHsmConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteHsmConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteHsmConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 389, "before": "public CreateLoadBalancerRequest(String loadBalancerName) {setLoadBalancerName(loadBalancerName);}", "after": "public CreateLoadBalancerRequest(string loadBalancerName){_loadBalancerName = loadBalancerName;}" }, { "index": 390, "before": "public String getUserInfo() {return decode(userInfo);}", "after": "public string getUserInfo(){return decode(userInfo);}" }, { "index": 391, "before": "public TagAttendeeResult tagAttendee(TagAttendeeRequest request) {request = beforeClientExecution(request);return executeTagAttendee(request);}", "after": "public virtual TagAttendeeResponse TagAttendee(TagAttendeeRequest request){var options = new InvokeOptions();options.RequestMarshaller = TagAttendeeRequestMarshaller.Instance;options.ResponseUnmarshaller = TagAttendeeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 392, "before": "public String getRefName() {return name;}", "after": "public virtual string GetRefName(){return name;}" }, { "index": 393, "before": "public SpanNearQuery build() {return new SpanNearQuery(clauses.toArray(new SpanQuery[clauses.size()]), slop, ordered);}", "after": "public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}" }, { "index": 394, "before": "public boolean isSubTotal(int rowIndex, int columnIndex) {return false;}", "after": "public virtual bool IsSubTotal(int rowIndex, int columnIndex){return false;}" }, { "index": 395, "before": "public DescribeDBProxiesResult describeDBProxies(DescribeDBProxiesRequest request) {request = beforeClientExecution(request);return executeDescribeDBProxies(request);}", "after": "public virtual DescribeDBProxiesResponse DescribeDBProxies(DescribeDBProxiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBProxiesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBProxiesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 396, "before": "public GetVoiceConnectorProxyResult getVoiceConnectorProxy(GetVoiceConnectorProxyRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorProxy(request);}", "after": "public virtual GetVoiceConnectorProxyResponse GetVoiceConnectorProxy(GetVoiceConnectorProxyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorProxyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorProxyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 397, "before": "public WindowCacheConfig fromConfig(Config rc) {setPackedGitUseStrongRefs(rc.getBoolean(CONFIG_CORE_SECTION,CONFIG_KEY_PACKED_GIT_USE_STRONGREFS,isPackedGitUseStrongRefs()));setPackedGitOpenFiles(rc.getInt(CONFIG_CORE_SECTION, null,CONFIG_KEY_PACKED_GIT_OPENFILES, getPackedGitOpenFiles()));setPackedGitLimit(rc.getLong(CONFIG_CORE_SECTION, null,CONFIG_KEY_PACKED_GIT_LIMIT, getPackedGitLimit()));setPackedGitWindowSize(rc.getInt(CONFIG_CORE_SECTION, null,CONFIG_KEY_PACKED_GIT_WINDOWSIZE, getPackedGitWindowSize()));setPackedGitMMAP(rc.getBoolean(CONFIG_CORE_SECTION, null,CONFIG_KEY_PACKED_GIT_MMAP, isPackedGitMMAP()));setDeltaBaseCacheLimit(rc.getInt(CONFIG_CORE_SECTION, null,CONFIG_KEY_DELTA_BASE_CACHE_LIMIT, getDeltaBaseCacheLimit()));long maxMem = Runtime.getRuntime().maxMemory();long sft = rc.getLong(CONFIG_CORE_SECTION, null,CONFIG_KEY_STREAM_FILE_TRESHOLD, getStreamFileThreshold());sft = Math.min(sft, maxMem / 4); sft = Math.min(sft, Integer.MAX_VALUE); setStreamFileThreshold((int) sft);return this;}", "after": "public virtual void FromConfig(Config rc){SetPackedGitOpenFiles(rc.GetInt(\"core\", null, \"packedgitopenfiles\", GetPackedGitOpenFiles()));SetPackedGitLimit(rc.GetLong(\"core\", null, \"packedgitlimit\", GetPackedGitLimit()));SetPackedGitWindowSize(rc.GetInt(\"core\", null, \"packedgitwindowsize\", GetPackedGitWindowSize()));SetPackedGitMMAP(rc.GetBoolean(\"core\", null, \"packedgitmmap\", IsPackedGitMMAP()));SetDeltaBaseCacheLimit(rc.GetInt(\"core\", null, \"deltabasecachelimit\", GetDeltaBaseCacheLimit()));long maxMem = Runtime.GetRuntime().MaxMemory();long sft = rc.GetLong(\"core\", null, \"streamfilethreshold\", GetStreamFileThreshold());sft = Math.Min(sft, maxMem / 4);sft = Math.Min(sft, int.MaxValue);SetStreamFileThreshold((int)sft);}" }, { "index": 398, "before": "public static Date getJavaDate(double date) {return getJavaDate(date, false, null, false);}", "after": "public static DateTime GetJavaDate(double date){return GetJavaDate(date, false);}" }, { "index": 399, "before": "public StartPersonTrackingResult startPersonTracking(StartPersonTrackingRequest request) {request = beforeClientExecution(request);return executeStartPersonTracking(request);}", "after": "public virtual StartPersonTrackingResponse StartPersonTracking(StartPersonTrackingRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartPersonTrackingRequestMarshaller.Instance;options.ResponseUnmarshaller = StartPersonTrackingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 400, "before": "@Override public int size() {return totalSize;}", "after": "public override int size(){return this._enclosing.size();}" }, { "index": 401, "before": "public GetRouteResult getRoute(GetRouteRequest request) {request = beforeClientExecution(request);return executeGetRoute(request);}", "after": "public virtual GetRouteResponse GetRoute(GetRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRouteResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 402, "before": "public DeleteClusterResult deleteCluster(DeleteClusterRequest request) {request = beforeClientExecution(request);return executeDeleteCluster(request);}", "after": "public virtual DeleteClusterResponse DeleteCluster(DeleteClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 403, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[MMS]\\n\");buffer.append(\" .addMenu = \").append(Integer.toHexString(getAddMenuCount())).append(\"\\n\");buffer.append(\" .delMenu = \").append(Integer.toHexString(getDelMenuCount())).append(\"\\n\");buffer.append(\"[/MMS]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[MMS]\\n\");buffer.Append(\" .addMenu = \").Append(StringUtil.ToHexString(AddMenuCount)).Append(\"\\n\");buffer.Append(\" .delMenu = \").Append(StringUtil.ToHexString(DelMenuCount)).Append(\"\\n\");buffer.Append(\"[/MMS]\\n\");return buffer.ToString();}" }, { "index": 404, "before": "public FileBasedConfig(Config base, File cfgLocation, FS fs) {super(base);configFile = cfgLocation;this.fs = fs;this.snapshot = FileSnapshot.DIRTY;this.hash = ObjectId.zeroId();}", "after": "public FileBasedConfig(Config @base, FilePath cfgLocation, FS fs) : base(@base){configFile = cfgLocation;this.fs = fs;this.snapshot = FileSnapshot.DIRTY;this.hash = ObjectId.ZeroId;}" }, { "index": 405, "before": "public int following(int pos) {if (pos < text.getBeginIndex() || pos > text.getEndIndex()) {throw new IllegalArgumentException(\"offset out of bounds\");} else if (0 == sentenceStarts.length) {text.setIndex(text.getBeginIndex());return DONE;} else if (pos >= sentenceStarts[sentenceStarts.length - 1]) {text.setIndex(text.getEndIndex());currentSentence = sentenceStarts.length - 1;return DONE;} else { currentSentence = (sentenceStarts.length - 1) / 2; moveToSentenceAt(pos, 0, sentenceStarts.length - 2);text.setIndex(sentenceStarts[++currentSentence]);return current();}}", "after": "public override int Following(int pos){if (pos < text.BeginIndex || pos > text.EndIndex){throw new ArgumentException(\"offset out of bounds\");}else if (0 == sentenceStarts.Length){text.SetIndex(text.BeginIndex);return Done;}else if (pos >= sentenceStarts[sentenceStarts.Length - 1]){text.SetIndex(text.EndIndex);currentSentence = sentenceStarts.Length - 1;return Done;}else{ currentSentence = (sentenceStarts.Length - 1) / 2; MoveToSentenceAt(pos, 0, sentenceStarts.Length - 2);text.SetIndex(sentenceStarts[++currentSentence]);return Current;}}" }, { "index": 406, "before": "public UpdateParameterGroupResult updateParameterGroup(UpdateParameterGroupRequest request) {request = beforeClientExecution(request);return executeUpdateParameterGroup(request);}", "after": "public virtual UpdateParameterGroupResponse UpdateParameterGroup(UpdateParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateParameterGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 407, "before": "public SeriesChartGroupIndexRecord clone() {return copy();}", "after": "public override Object Clone(){SeriesChartGroupIndexRecord rec = new SeriesChartGroupIndexRecord();rec.field_1_chartGroupIndex = field_1_chartGroupIndex;return rec;}" }, { "index": 408, "before": "public static double calcDistanceFromErrPct(Shape shape, double distErrPct, SpatialContext ctx) {if (distErrPct < 0 || distErrPct > 0.5) {throw new IllegalArgumentException(\"distErrPct \" + distErrPct + \" must be between [0 to 0.5]\");}if (distErrPct == 0 || shape instanceof Point) {return 0;}Rectangle bbox = shape.getBoundingBox();Point ctr = bbox.getCenter();double y = (ctr.getY() >= 0 ? bbox.getMaxY() : bbox.getMinY());double diagonalDist = ctx.getDistCalc().distance(ctr, bbox.getMaxX(), y);return diagonalDist * distErrPct;}", "after": "public static double CalcDistanceFromErrPct(IShape shape, double distErrPct, SpatialContext ctx){if (distErrPct < 0 || distErrPct > 0.5){throw new ArgumentException(\"distErrPct \" + distErrPct + \" must be between [0 to 0.5]\", \"distErrPct\");}if (distErrPct == 0 || shape is IPoint){return 0;}IRectangle bbox = shape.BoundingBox;IPoint ctr = bbox.Center;double y = (ctr.Y >= 0 ? bbox.MaxY : bbox.MinY);double diagonalDist = ctx.DistCalc.Distance(ctr, bbox.MaxX, y);return diagonalDist * distErrPct;}" }, { "index": 409, "before": "public int codePointAt(int index) {if (index < 0 || index >= count) {throw indexAndLength(index);}return Character.codePointAt(value, index, count);}", "after": "public virtual int codePointAt(int index){if (index < 0 || index >= count){throw indexAndLength(index);}return Sharpen.CharHelper.CodePointAt(value, index, count);}" }, { "index": 410, "before": "public void setPasswordVerifier(int passwordVerifier) {this.passwordVerifier = passwordVerifier;}", "after": "public void SetPasswordVerifier(int passwordVerifier){this.passwordVerifier = passwordVerifier;}" }, { "index": 411, "before": "public ListVaultsRequest(String accountId) {setAccountId(accountId);}", "after": "public ListVaultsRequest(string accountId){_accountId = accountId;}" }, { "index": 412, "before": "public SquashMessageFormatter() {dateFormatter = new GitDateFormatter(Format.DEFAULT);}", "after": "public SquashMessageFormatter(){dateFormatter = new GitDateFormatter(GitDateFormatter.Format.DEFAULT);}" }, { "index": 413, "before": "public GetVideoCoverRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"GetVideoCover\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public GetVideoCoverRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"GetVideoCover\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 414, "before": "public int lastIndexOf(Object object) {int pos = size;Link link = voidLink.previous;if (object != null) {while (link != voidLink) {pos--;if (object.equals(link.data)) {return pos;}link = link.previous;}} else {while (link != voidLink) {pos--;if (link.data == null) {return pos;}link = link.previous;}}return -1;}", "after": "public override int lastIndexOf(object @object){int pos = _size;java.util.LinkedList.Link link = voidLink.previous;if (@object != null){while (link != voidLink){pos--;if (@object.Equals(link.data)){return pos;}link = link.previous;}}else{while (link != voidLink){pos--;if ((object)link.data == null){return pos;}link = link.previous;}}return -1;}" }, { "index": 415, "before": "public DescribeSpotFleetRequestsResult describeSpotFleetRequests(DescribeSpotFleetRequestsRequest request) {request = beforeClientExecution(request);return executeDescribeSpotFleetRequests(request);}", "after": "public virtual DescribeSpotFleetRequestsResponse DescribeSpotFleetRequests(DescribeSpotFleetRequestsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSpotFleetRequestsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSpotFleetRequestsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 416, "before": "public IndexFacesResult indexFaces(IndexFacesRequest request) {request = beforeClientExecution(request);return executeIndexFaces(request);}", "after": "public virtual IndexFacesResponse IndexFaces(IndexFacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = IndexFacesRequestMarshaller.Instance;options.ResponseUnmarshaller = IndexFacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 417, "before": "public RuleBasedBreakIterator getBreakIterator(int script) {switch(script) {case UScript.JAPANESE: return (RuleBasedBreakIterator)cjkBreakIterator.clone();case UScript.MYANMAR:if (myanmarAsWords) {return (RuleBasedBreakIterator)defaultBreakIterator.clone();} else {return (RuleBasedBreakIterator)myanmarSyllableIterator.clone();}default: return (RuleBasedBreakIterator)defaultBreakIterator.clone();}}", "after": "public override BreakIterator GetBreakIterator(int script){switch (script){case UScript.Japanese: return (BreakIterator)cjkBreakIterator.Clone();case UScript.Myanmar:if (myanmarAsWords){return (BreakIterator)defaultBreakIterator.Clone();}else{return (BreakIterator)myanmarSyllableIterator.Clone();}default: return (BreakIterator)defaultBreakIterator.Clone();}}" }, { "index": 418, "before": "public String toString(){StringBuilder b = new StringBuilder();b.append(\"[DCONREF]\\n\");b.append(\" .ref\\n\");b.append(\" .firstrow = \").append(firstRow).append(\"\\n\");b.append(\" .lastrow = \").append(lastRow).append(\"\\n\");b.append(\" .firstcol = \").append(firstCol).append(\"\\n\");b.append(\" .lastcol = \").append(lastCol).append(\"\\n\");b.append(\" .cch = \").append(charCount).append(\"\\n\");b.append(\" .stFile\\n\");b.append(\" .h = \").append(charType).append(\"\\n\");b.append(\" .rgb = \").append(getReadablePath()).append(\"\\n\");b.append(\"[/DCONREF]\\n\");return b.toString();}", "after": "public override String ToString(){StringBuilder b = new StringBuilder();b.Append(\"[DCONREF]\\n\");b.Append(\" .ref\\n\");b.Append(\" .firstrow = \").Append(firstRow).Append(\"\\n\");b.Append(\" .lastrow = \").Append(lastRow).Append(\"\\n\");b.Append(\" .firstcol = \").Append(firstCol).Append(\"\\n\");b.Append(\" .lastcol = \").Append(lastCol).Append(\"\\n\");b.Append(\" .cch = \").Append(charCount).Append(\"\\n\");b.Append(\" .stFile\\n\");b.Append(\" .h = \").Append(charType).Append(\"\\n\");b.Append(\" .rgb = \").Append(ReadablePath).Append(\"\\n\");b.Append(\"[/DCONREF]\\n\");return b.ToString();}" }, { "index": 419, "before": "public int getPackedGitOpenFiles() {return packedGitOpenFiles;}", "after": "public virtual int GetPackedGitOpenFiles(){return packedGitOpenFiles;}" }, { "index": 420, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[FEATURE HEADER]\\n\");buffer.append(\"[/FEATURE HEADER]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[FEATURE HEADER]\\n\");buffer.Append(\"[/FEATURE HEADER]\\n\");return buffer.ToString();}" }, { "index": 421, "before": "public static byte[] getToUnicodeLE(String string) {return string.getBytes(UTF16LE);}", "after": "public static byte[] GetToUnicodeLE(String string1){return UTF16LE.GetBytes(string1);}" }, { "index": 422, "before": "public final List getFooterLines(String keyName) {return getFooterLines(new FooterKey(keyName));}", "after": "public IList GetFooterLines(string keyName){return GetFooterLines(new FooterKey(keyName));}" }, { "index": 423, "before": "public void refresh() {super.refresh();clearReferences();}", "after": "public override void Refresh(){base.Refresh();Rescan();}" }, { "index": 424, "before": "public float get(int index) {checkIndex(index);return byteBuffer.getFloat(index * SizeOf.FLOAT);}", "after": "public override float get(int index){checkIndex(index);return byteBuffer.getFloat(index * libcore.io.SizeOf.FLOAT);}" }, { "index": 425, "before": "public DeleteDetectorResult deleteDetector(DeleteDetectorRequest request) {request = beforeClientExecution(request);return executeDeleteDetector(request);}", "after": "public virtual DeleteDetectorResponse DeleteDetector(DeleteDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDetectorResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 426, "before": "public int[] grow() {assert bytesStart != null;return bytesStart = ArrayUtil.grow(bytesStart, bytesStart.length + 1);}", "after": "public override int[] Grow(){Debug.Assert(bytesStart != null);return bytesStart = ArrayUtil.Grow(bytesStart, bytesStart.Length + 1);}" }, { "index": 427, "before": "public ListExclusionsResult listExclusions(ListExclusionsRequest request) {request = beforeClientExecution(request);return executeListExclusions(request);}", "after": "public virtual ListExclusionsResponse ListExclusions(ListExclusionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListExclusionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListExclusionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 428, "before": "public static SpatialStrategy getSpatialStrategy(int roundNumber) {SpatialStrategy result = spatialStrategyCache.get(roundNumber);if (result == null) {throw new IllegalStateException(\"Strategy should have been init'ed by SpatialDocMaker by now\");}return result;}", "after": "public static SpatialStrategy GetSpatialStrategy(int roundNumber){SpatialStrategy result;if (!spatialStrategyCache.TryGetValue(roundNumber, out result) || result == null){throw new InvalidOperationException(\"Strategy should have been init'ed by SpatialDocMaker by now\");}return result;}" }, { "index": 429, "before": "public DBCluster restoreDBClusterToPointInTime(RestoreDBClusterToPointInTimeRequest request) {request = beforeClientExecution(request);return executeRestoreDBClusterToPointInTime(request);}", "after": "public virtual RestoreDBClusterToPointInTimeResponse RestoreDBClusterToPointInTime(RestoreDBClusterToPointInTimeRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreDBClusterToPointInTimeRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreDBClusterToPointInTimeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 430, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_categoryDataType);out.writeShort(field_2_valuesDataType);out.writeShort(field_3_numCategories);out.writeShort(field_4_numValues);out.writeShort(field_5_bubbleSeriesType);out.writeShort(field_6_numBubbleValues);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_categoryDataType);out1.WriteShort(field_2_valuesDataType);out1.WriteShort(field_3_numCategories);out1.WriteShort(field_4_numValues);out1.WriteShort(field_5_bubbleSeriesType);out1.WriteShort(field_6_numBubbleValues);}" }, { "index": 431, "before": "public PostAgentProfileResult postAgentProfile(PostAgentProfileRequest request) {request = beforeClientExecution(request);return executePostAgentProfile(request);}", "after": "public virtual PostAgentProfileResponse PostAgentProfile(PostAgentProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = PostAgentProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = PostAgentProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 432, "before": "public ParseTreePattern compileParseTreePattern(String pattern, int patternRuleIndex) {if ( getTokenStream()!=null ) {TokenSource tokenSource = getTokenStream().getTokenSource();if ( tokenSource instanceof Lexer ) {Lexer lexer = (Lexer)tokenSource;return compileParseTreePattern(pattern, patternRuleIndex, lexer);}}throw new UnsupportedOperationException(\"Parser can't discover a lexer to use\");}", "after": "public virtual ParseTreePattern CompileParseTreePattern(string pattern, int patternRuleIndex){if (((ITokenStream)InputStream) != null){ITokenSource tokenSource = ((ITokenStream)InputStream).TokenSource;if (tokenSource is Lexer){Lexer lexer = (Lexer)tokenSource;return CompileParseTreePattern(pattern, patternRuleIndex, lexer);}}throw new NotSupportedException(\"Parser can't discover a lexer to use\");}" }, { "index": 433, "before": "public BacktrackDBClusterResult backtrackDBCluster(BacktrackDBClusterRequest request) {request = beforeClientExecution(request);return executeBacktrackDBCluster(request);}", "after": "public virtual BacktrackDBClusterResponse BacktrackDBCluster(BacktrackDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = BacktrackDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = BacktrackDBClusterResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 434, "before": "public String getName() {return strategyName;}", "after": "public override string GetName(){return strategyName;}" }, { "index": 435, "before": "public void copyTo(byte[] b, int o) {formatHexByte(b, o + 0, w1);formatHexByte(b, o + 8, w2);formatHexByte(b, o + 16, w3);formatHexByte(b, o + 24, w4);formatHexByte(b, o + 32, w5);}", "after": "public virtual void CopyTo(byte[] b, int o){FormatHexByte(b, o + 0, w1);FormatHexByte(b, o + 8, w2);FormatHexByte(b, o + 16, w3);FormatHexByte(b, o + 24, w4);FormatHexByte(b, o + 32, w5);}" }, { "index": 436, "before": "public static final IntList lineMap(byte[] buf, int ptr, int end) {IntList map = new IntList((end - ptr) / 36);map.fillTo(1, Integer.MIN_VALUE);for (; ptr < end; ptr = nextLF(buf, ptr)) {map.add(ptr);}map.add(end);return map;}", "after": "public static IntList LineMap(byte[] buf, int ptr, int end){IntList map = new IntList((end - ptr) / 36);map.FillTo(1, int.MinValue);for (; ptr < end; ptr = NextLF(buf, ptr)){map.Add(ptr);}map.Add(end);return map;}" }, { "index": 437, "before": "public Set getAdditionalHaves() {return Collections.emptySet();}", "after": "public virtual ICollection GetAdditionalHaves(){return Sharpen.Collections.EmptySet();}" }, { "index": 438, "before": "public synchronized long ramBytesUsed() {long sizeInBytes = BASE_RAM_BYTES_USED + fields.size() * 2 * RamUsageEstimator.NUM_BYTES_OBJECT_REF;for(SimpleTextTerms simpleTextTerms : termsCache.values()) {sizeInBytes += (simpleTextTerms!=null) ? simpleTextTerms.ramBytesUsed() : 0;}return sizeInBytes;}", "after": "public override long RamBytesUsed(){return _termsCache.Values.Sum(simpleTextTerms => (simpleTextTerms != null) ? simpleTextTerms.RamBytesUsed() : 0);}" }, { "index": 439, "before": "public String toXml(String tab) {StringBuilder builder = new StringBuilder();builder.append(tab).append(\"<\").append(getRecordName()).append(\">\\n\");for (EscherRecord escherRecord : getEscherRecords()) {builder.append(escherRecord.toXml(tab + \"\\t\"));}builder.append(tab).append(\"\\n\");return builder.toString();}", "after": "public String ToXml(String tab){StringBuilder builder = new StringBuilder();builder.Append(tab).Append(\"<\").Append(RecordName).Append(\">\\n\");for (IEnumerator iterator = EscherRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord escherRecord = (EscherRecord)iterator.Current;builder.Append(escherRecord.ToXml(tab + \"\\t\"));}builder.Append(tab).Append(\"\\n\");return builder.ToString();}" }, { "index": 440, "before": "public TokenStream create(TokenStream input) {return new GalicianMinimalStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new GalicianMinimalStemFilter(input);}" }, { "index": 441, "before": "public String toString() {StringBuilder r = new StringBuilder();r.append(\"Commit\");r.append(\"={\\n\");r.append(\"tree \");r.append(treeId != null ? treeId.name() : \"NOT_SET\");r.append(\"\\n\");for (ObjectId p : parentIds) {r.append(\"parent \");r.append(p.name());r.append(\"\\n\");}r.append(\"author \");r.append(author != null ? author.toString() : \"NOT_SET\");r.append(\"\\n\");r.append(\"committer \");r.append(committer != null ? committer.toString() : \"NOT_SET\");r.append(\"\\n\");r.append(\"gpgSignature \");r.append(gpgSignature != null ? gpgSignature.toString() : \"NOT_SET\");r.append(\"\\n\");if (encoding != null && !References.isSameObject(encoding, UTF_8)) {r.append(\"encoding \");r.append(encoding.name());r.append(\"\\n\");}r.append(\"\\n\");r.append(message != null ? message : \"\");r.append(\"}\");return r.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();r.Append(\"Commit\");r.Append(\"={\\n\");r.Append(\"tree \");r.Append(treeId != null ? treeId.Name : \"NOT_SET\");r.Append(\"\\n\");foreach (ObjectId p in parentIds){r.Append(\"parent \");r.Append(p.Name);r.Append(\"\\n\");}r.Append(\"author \");r.Append(author != null ? author.ToString() : \"NOT_SET\");r.Append(\"\\n\");r.Append(\"committer \");r.Append(committer != null ? committer.ToString() : \"NOT_SET\");r.Append(\"\\n\");if (encoding != null && encoding != Constants.CHARSET){r.Append(\"encoding \");r.Append(encoding.Name());r.Append(\"\\n\");}r.Append(\"\\n\");r.Append(message != null ? message : string.Empty);r.Append(\"}\");return r.ToString();}" }, { "index": 442, "before": "public IndicNormalizationFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public IndicNormalizationFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 443, "before": "public OptionGroup createOptionGroup(CreateOptionGroupRequest request) {request = beforeClientExecution(request);return executeCreateOptionGroup(request);}", "after": "public virtual CreateOptionGroupResponse CreateOptionGroup(CreateOptionGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateOptionGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateOptionGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 444, "before": "public AssociateMemberAccountResult associateMemberAccount(AssociateMemberAccountRequest request) {request = beforeClientExecution(request);return executeAssociateMemberAccount(request);}", "after": "public virtual AssociateMemberAccountResponse AssociateMemberAccount(AssociateMemberAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateMemberAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateMemberAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 445, "before": "public void run() {doRefreshProgress(mId, mProgress, mFromUser, true);mRefreshProgressRunnable = this;}", "after": "public virtual void run(){this._enclosing.doRefreshProgress(this.mId, this.mProgress, this.mFromUser, true);this._enclosing.mRefreshProgressRunnable = this;}" }, { "index": 446, "before": "public SetTerminationProtectionResult setTerminationProtection(SetTerminationProtectionRequest request) {request = beforeClientExecution(request);return executeSetTerminationProtection(request);}", "after": "public virtual SetTerminationProtectionResponse SetTerminationProtection(SetTerminationProtectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetTerminationProtectionRequestMarshaller.Instance;options.ResponseUnmarshaller = SetTerminationProtectionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 447, "before": "public String getErrorHeader(RecognitionException e) {int line = e.getOffendingToken().getLine();int charPositionInLine = e.getOffendingToken().getCharPositionInLine();return \"line \"+line+\":\"+charPositionInLine;}", "after": "public virtual string GetErrorHeader(RecognitionException e){int line = e.OffendingToken.Line;int charPositionInLine = e.OffendingToken.Column;return \"line \" + line + \":\" + charPositionInLine;}" }, { "index": 448, "before": "public CharBuffer asReadOnlyBuffer() {CharToByteBufferAdapter buf = new CharToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf.limit = limit;buf.position = position;buf.mark = mark;buf.byteBuffer.order = byteBuffer.order;return buf;}", "after": "public override java.nio.CharBuffer asReadOnlyBuffer(){java.nio.CharToByteBufferAdapter buf = new java.nio.CharToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf._limit = _limit;buf._position = _position;buf._mark = _mark;buf.byteBuffer._order = byteBuffer._order;return buf;}" }, { "index": 449, "before": "public StopSentimentDetectionJobResult stopSentimentDetectionJob(StopSentimentDetectionJobRequest request) {request = beforeClientExecution(request);return executeStopSentimentDetectionJob(request);}", "after": "public virtual StopSentimentDetectionJobResponse StopSentimentDetectionJob(StopSentimentDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopSentimentDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopSentimentDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 450, "before": "public ObjectIdSubclassMap getNewObjectIds() {if (newObjectIds != null)return newObjectIds;return new ObjectIdSubclassMap<>();}", "after": "public virtual ObjectIdSubclassMap GetNewObjectIds(){if (newObjectIds != null){return newObjectIds;}return new ObjectIdSubclassMap();}" }, { "index": 451, "before": "public void clear() {hash = hash(new byte[0]);super.clear();}", "after": "protected internal override void Clear(){hash = Hash(new byte[0]);base.Clear();}" }, { "index": 452, "before": "public void reset() throws IOException {synchronized (lock) {checkNotClosed();if (mark == -1) {throw new IOException(\"Invalid mark\");}pos = mark;}}", "after": "public override void reset(){lock (@lock){checkNotClosed();if (_mark == -1){throw new System.IO.IOException(\"Invalid mark\");}pos = _mark;}}" }, { "index": 453, "before": "public RefErrorPtg(LittleEndianInput in) {field_1_reserved = in.readInt();}", "after": "public RefErrorPtg(ILittleEndianInput in1){field_1_reserved = in1.ReadInt();}" }, { "index": 454, "before": "public SuspendGameServerGroupResult suspendGameServerGroup(SuspendGameServerGroupRequest request) {request = beforeClientExecution(request);return executeSuspendGameServerGroup(request);}", "after": "public virtual SuspendGameServerGroupResponse SuspendGameServerGroup(SuspendGameServerGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = SuspendGameServerGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = SuspendGameServerGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 455, "before": "public final ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {if (args.length != 3) {return ErrorEval.VALUE_INVALID;}return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2]);}", "after": "public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){if (args.Length != 3){return ErrorEval.VALUE_INVALID;}return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2]);}" }, { "index": 456, "before": "public GetRepoRequest() {super(\"cr\", \"2016-06-07\", \"GetRepo\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]\");setMethod(MethodType.GET);}", "after": "public GetRepoRequest(): base(\"cr\", \"2016-06-07\", \"GetRepo\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]\";Method = MethodType.GET;}" }, { "index": 457, "before": "public void setDate(Date date) {if (date != null) {setDate(DateTools.dateToString(date, DateTools.Resolution.SECOND));} else {this.date = null;}}", "after": "public virtual void SetDate(DateTime? date){if (date.HasValue){SetDate(DateTools.DateToString(date.Value, DateTools.Resolution.SECOND));}else{this.date = null;}}" }, { "index": 458, "before": "public TokenStream create(TokenStream input) {return new GermanMinimalStemFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new GermanMinimalStemFilter(input);}" }, { "index": 459, "before": "public Object[] toArray() {return a.clone();}", "after": "public override object[] toArray(){return (object[])a.Clone();}" }, { "index": 460, "before": "public void write(char[] buffer, int offset, int len) {Arrays.checkOffsetAndCount(buffer.length, offset, len);synchronized (lock) {expand(len);System.arraycopy(buffer, offset, this.buf, this.count, len);this.count += len;}}", "after": "public override void write(char[] buffer, int offset, int len){java.util.Arrays.checkOffsetAndCount(buffer.Length, offset, len);lock (@lock){expand(len);System.Array.Copy(buffer, offset, this.buf, this.count, len);this.count += len;}}" }, { "index": 461, "before": "public static final RevFilter after(Date ts) {return after(ts.getTime());}", "after": "public static RevFilter After(long ts){return new CommitTimeRevFilterAfter(ts);}" }, { "index": 462, "before": "public DeleteGroupPolicyRequest(String groupName, String policyName) {setGroupName(groupName);setPolicyName(policyName);}", "after": "public DeleteGroupPolicyRequest(string groupName, string policyName){_groupName = groupName;_policyName = policyName;}" }, { "index": 463, "before": "public DeregisterTransitGatewayMulticastGroupMembersResult deregisterTransitGatewayMulticastGroupMembers(DeregisterTransitGatewayMulticastGroupMembersRequest request) {request = beforeClientExecution(request);return executeDeregisterTransitGatewayMulticastGroupMembers(request);}", "after": "public virtual DeregisterTransitGatewayMulticastGroupMembersResponse DeregisterTransitGatewayMulticastGroupMembers(DeregisterTransitGatewayMulticastGroupMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterTransitGatewayMulticastGroupMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterTransitGatewayMulticastGroupMembersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 464, "before": "public BatchDeleteScheduledActionResult batchDeleteScheduledAction(BatchDeleteScheduledActionRequest request) {request = beforeClientExecution(request);return executeBatchDeleteScheduledAction(request);}", "after": "public virtual BatchDeleteScheduledActionResponse BatchDeleteScheduledAction(BatchDeleteScheduledActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDeleteScheduledActionRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDeleteScheduledActionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 465, "before": "public CreateAlgorithmResult createAlgorithm(CreateAlgorithmRequest request) {request = beforeClientExecution(request);return executeCreateAlgorithm(request);}", "after": "public virtual CreateAlgorithmResponse CreateAlgorithm(CreateAlgorithmRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAlgorithmRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAlgorithmResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 466, "before": "public int readUByte() {return readByte() & 0x00FF;}", "after": "public int ReadUByte(){CheckPosition(1);return _buf[_ReadIndex++] & 0xFF;}" }, { "index": 467, "before": "public void setLength(int sz) {NB.encodeInt32(info, infoOffset + P_SIZE, sz);}", "after": "public virtual void SetLength(int sz){NB.EncodeInt32(info, infoOffset + P_SIZE, sz);}" }, { "index": 468, "before": "public DescribeScalingProcessTypesResult describeScalingProcessTypes() {return describeScalingProcessTypes(new DescribeScalingProcessTypesRequest());}", "after": "public virtual DescribeScalingProcessTypesResponse DescribeScalingProcessTypes(){return DescribeScalingProcessTypes(new DescribeScalingProcessTypesRequest());}" }, { "index": 469, "before": "public ListResourceRecordSetsResult listResourceRecordSets(ListResourceRecordSetsRequest request) {request = beforeClientExecution(request);return executeListResourceRecordSets(request);}", "after": "public virtual ListResourceRecordSetsResponse ListResourceRecordSets(ListResourceRecordSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListResourceRecordSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListResourceRecordSetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 470, "before": "public Token recoverInline(Parser recognizer)throws RecognitionException{InputMismatchException e = new InputMismatchException(recognizer);for (ParserRuleContext context = recognizer.getContext(); context != null; context = context.getParent()) {context.exception = e;}throw new ParseCancellationException(e);}", "after": "public override IToken RecoverInline(Parser recognizer){InputMismatchException e = new InputMismatchException(recognizer);for (ParserRuleContext context = recognizer.Context; context != null; context = ((ParserRuleContext)context.Parent)){context.exception = e;}throw new ParseCanceledException(e);}" }, { "index": 471, "before": "public SetTagsForResourceResult setTagsForResource(SetTagsForResourceRequest request) {request = beforeClientExecution(request);return executeSetTagsForResource(request);}", "after": "public virtual SetTagsForResourceResponse SetTagsForResource(SetTagsForResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetTagsForResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = SetTagsForResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 472, "before": "public ModifyStrategyRequest() {super(\"CloudCallCenter\", \"2017-07-05\", \"ModifyStrategy\", \"CloudCallCenter\", \"innerAPI\");}", "after": "public ModifyStrategyRequest(): base(\"aegis\", \"2016-11-11\", \"ModifyStrategy\", \"vipaegis\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 473, "before": "public DescribeVpcEndpointServicesResult describeVpcEndpointServices(DescribeVpcEndpointServicesRequest request) {request = beforeClientExecution(request);return executeDescribeVpcEndpointServices(request);}", "after": "public virtual DescribeVpcEndpointServicesResponse DescribeVpcEndpointServices(DescribeVpcEndpointServicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcEndpointServicesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcEndpointServicesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 474, "before": "public EnableLoggingResult enableLogging(EnableLoggingRequest request) {request = beforeClientExecution(request);return executeEnableLogging(request);}", "after": "public virtual EnableLoggingResponse EnableLogging(EnableLoggingRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableLoggingRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableLoggingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 475, "before": "public boolean contains(Object o) {return ConcurrentHashMap.this.containsValue(o);}", "after": "public override bool contains(object o){return this._enclosing.containsValue(o);}" }, { "index": 476, "before": "public SheetRangeIdentifier(String bookName, NameIdentifier firstSheetIdentifier, NameIdentifier lastSheetIdentifier) {super(bookName, firstSheetIdentifier);_lastSheetIdentifier = lastSheetIdentifier;}", "after": "public SheetRangeIdentifier(String bookName, NameIdentifier firstSheetIdentifier, NameIdentifier lastSheetIdentifier): base(bookName, firstSheetIdentifier){_lastSheetIdentifier = lastSheetIdentifier;}" }, { "index": 477, "before": "public DomainMetadataRequest(String domainName) {setDomainName(domainName);}", "after": "public DomainMetadataRequest(string domainName){_domainName = domainName;}" }, { "index": 478, "before": "public ParseException(Token currentTokenVal,int[][] expectedTokenSequencesVal, String[] tokenImageVal) {super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, initialise(currentTokenVal, expectedTokenSequencesVal, tokenImageVal)));this.currentToken = currentTokenVal;this.expectedTokenSequences = expectedTokenSequencesVal;this.tokenImage = tokenImageVal;}", "after": "public ParseException(Token currentToken,int[][] expectedTokenSequences,string[] tokenImage): base(Initialize(currentToken, expectedTokenSequences, tokenImage)){this.CurrentToken = currentToken;this.ExpectedTokenSequences = expectedTokenSequences;this.TokenImage = tokenImage;}" }, { "index": 479, "before": "public FetchPhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"FetchPhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public FetchPhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"FetchPhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 480, "before": "public PrintWriter writer() {return writer;}", "after": "public java.io.PrintWriter writer(){return _writer;}" }, { "index": 481, "before": "public NGramTokenizerFactory(Map args) {super(args);minGramSize = getInt(args, \"minGramSize\", NGramTokenizer.DEFAULT_MIN_NGRAM_SIZE);maxGramSize = getInt(args, \"maxGramSize\", NGramTokenizer.DEFAULT_MAX_NGRAM_SIZE);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public NGramTokenizerFactory(IDictionary args): base(args){minGramSize = GetInt32(args, \"minGramSize\", NGramTokenizer.DEFAULT_MIN_NGRAM_SIZE);maxGramSize = GetInt32(args, \"maxGramSize\", NGramTokenizer.DEFAULT_MAX_NGRAM_SIZE);if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 482, "before": "public boolean isDirectoryFileConflict() {return dfConflict != null;}", "after": "public virtual bool IsDirectoryFileConflict(){return dfConflict != null;}" }, { "index": 483, "before": "public IndonesianStemFilter(TokenStream input, boolean stemDerivational) {super(input);this.stemDerivational = stemDerivational;}", "after": "public IndonesianStemFilter(TokenStream input, bool stemDerivational): base(input){this.stemDerivational = stemDerivational;termAtt = AddAttribute();keywordAtt = AddAttribute();}" }, { "index": 484, "before": "public CreateTrafficPolicyResult createTrafficPolicy(CreateTrafficPolicyRequest request) {request = beforeClientExecution(request);return executeCreateTrafficPolicy(request);}", "after": "public virtual CreateTrafficPolicyResponse CreateTrafficPolicy(CreateTrafficPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTrafficPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTrafficPolicyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 485, "before": "public void serialize(LittleEndianOutput out) {out.writeInt(fSD);out.writeInt(passwordVerifier);StringUtil.writeUnicodeString(out, title);out.write(securityDescriptor);}", "after": "public void Serialize(ILittleEndianOutput out1){out1.WriteInt(fSD);out1.WriteInt(passwordVerifier);StringUtil.WriteUnicodeString(out1, title);out1.Write(securityDescriptor);}" }, { "index": 486, "before": "public static double floor(double n, double s) {if (s==0 && n!=0) {return Double.NaN;} else {return (n==0 || s==0) ? 0 : Math.floor(n/s) * s;}}", "after": "public static double Floor(double n, double s){double f;if ((n < 0 && s > 0) || (n > 0 && s < 0) || (s == 0 && n != 0)){f = double.NaN;}else{f = (n == 0 || s == 0) ? 0 : Math.Floor(n / s) * s;}return f;}" }, { "index": 487, "before": "public ByteArrayDataOutput(byte[] bytes, int offset, int len) {reset(bytes, offset, len);}", "after": "public ByteArrayDataOutput(byte[] bytes, int offset, int len){Reset(bytes, offset, len);}" }, { "index": 488, "before": "public static List getChildren(Tree t) {List kids = new ArrayList();for (int i=0; i GetChildren(ITree t){IList kids = new List();for (int i = 0; i < t.ChildCount; i++){kids.Add(t.GetChild(i));}return kids;}" }, { "index": 489, "before": "public void clear() {Hashtable.this.clear();}", "after": "public override void clear(){this._enclosing.clear();}" }, { "index": 490, "before": "public RefreshAllRecord(boolean refreshAll) {this(0);setRefreshAll(refreshAll);}", "after": "public RefreshAllRecord(bool refreshAll): this(0){RefreshAll = (refreshAll);}" }, { "index": 491, "before": "public DeleteNamedQueryResult deleteNamedQuery(DeleteNamedQueryRequest request) {request = beforeClientExecution(request);return executeDeleteNamedQuery(request);}", "after": "public virtual DeleteNamedQueryResponse DeleteNamedQuery(DeleteNamedQueryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNamedQueryRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNamedQueryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 492, "before": "public GraphvizFormatter(ConnectionCosts costs) {this.costs = costs;this.bestPathMap = new HashMap<>();sb.append(formatHeader());sb.append(\" init [style=invis]\\n\");sb.append(\" init -> 0.0 [label=\\\"\" + BOS_LABEL + \"\\\"]\\n\");}", "after": "public GraphvizFormatter(ConnectionCosts costs){this.costs = costs;this.bestPathMap = new Dictionary();sb.Append(FormatHeader());sb.Append(\" init [style=invis]\\n\");sb.Append(\" init -> 0.0 [label=\\\"\" + BOS_LABEL + \"\\\"]\\n\");}" }, { "index": 493, "before": "public CheckMultiagentRequest() {super(\"visionai-poc\", \"2020-04-08\", \"CheckMultiagent\");setMethod(MethodType.POST);}", "after": "public CheckMultiagentRequest(): base(\"visionai-poc\", \"2020-04-08\", \"CheckMultiagent\"){Method = MethodType.POST;}" }, { "index": 494, "before": "public ListUserProfilesResult listUserProfiles(ListUserProfilesRequest request) {request = beforeClientExecution(request);return executeListUserProfiles(request);}", "after": "public virtual ListUserProfilesResponse ListUserProfiles(ListUserProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListUserProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListUserProfilesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 495, "before": "public CreateRelationalDatabaseFromSnapshotResult createRelationalDatabaseFromSnapshot(CreateRelationalDatabaseFromSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateRelationalDatabaseFromSnapshot(request);}", "after": "public virtual CreateRelationalDatabaseFromSnapshotResponse CreateRelationalDatabaseFromSnapshot(CreateRelationalDatabaseFromSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRelationalDatabaseFromSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRelationalDatabaseFromSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 496, "before": "public StartTaskResult startTask(StartTaskRequest request) {request = beforeClientExecution(request);return executeStartTask(request);}", "after": "public virtual StartTaskResponse StartTask(StartTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = StartTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 497, "before": "public Set getIgnoredPaths() {return ignoredPaths;}", "after": "public virtual ICollection GetIgnoredPaths(){return ignoredPaths;}" }, { "index": 498, "before": "public FeatSmartTag(RecordInputStream in) {data = in.readRemainder();}", "after": "public FeatSmartTag(RecordInputStream in1){data = in1.ReadRemainder();}" }, { "index": 499, "before": "public Change(ChangeAction action, ResourceRecordSet resourceRecordSet) {setAction(action.toString());setResourceRecordSet(resourceRecordSet);}", "after": "public Change(ChangeAction action, ResourceRecordSet resourceRecordSet){_action = action;_resourceRecordSet = resourceRecordSet;}" }, { "index": 500, "before": "public DeleteImageResult deleteImage(DeleteImageRequest request) {request = beforeClientExecution(request);return executeDeleteImage(request);}", "after": "public virtual DeleteImageResponse DeleteImage(DeleteImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteImageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteImageResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 501, "before": "public CreateConfigurationSetResult createConfigurationSet(CreateConfigurationSetRequest request) {request = beforeClientExecution(request);return executeCreateConfigurationSet(request);}", "after": "public virtual CreateConfigurationSetResponse CreateConfigurationSet(CreateConfigurationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConfigurationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConfigurationSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 502, "before": "public Iterator iterator() {Object[] snapshot = elements;return new CowIterator(snapshot, 0, snapshot.length);}", "after": "public virtual java.util.Iterator iterator(){object[] snapshot = elements;return new java.util.concurrent.CopyOnWriteArrayList.CowIterator(snapshot, 0,snapshot.Length);}" }, { "index": 503, "before": "public void visitContainedRecords(RecordVisitor rv) {if (_recs.isEmpty()) {return;}rv.visitRecord(_bofRec);for (int i = 0; i < _recs.size(); i++) {RecordBase rb = _recs.get(i);if (rb instanceof RecordAggregate) {((RecordAggregate) rb).visitContainedRecords(rv);} else {rv.visitRecord((org.apache.poi.hssf.record.Record) rb);}}rv.visitRecord(EOFRecord.instance);}", "after": "public override void VisitContainedRecords(RecordVisitor rv){if (_recs.Count==0){return;}rv.VisitRecord(_bofRec);for (int i = 0; i < _recs.Count; i++){RecordBase rb = _recs[i];if (rb is RecordAggregate){((RecordAggregate)rb).VisitContainedRecords(rv);}else{rv.VisitRecord((Record)rb);}}rv.VisitRecord(EOFRecord.instance);}" }, { "index": 504, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[FtCbls ]\").append(\"\\n\");buffer.append(\" size = \").append(getDataSize()).append(\"\\n\");buffer.append(\" reserved = \").append(HexDump.toHex(reserved)).append(\"\\n\");buffer.append(\"[/FtCbls ]\").append(\"\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[FtCbls ]\").Append(\"\\n\");buffer.Append(\" size = \").Append(DataSize).Append(\"\\n\");buffer.Append(\" reserved = \").Append(HexDump.ToHex(reserved)).Append(\"\\n\");buffer.Append(\"[/FtCbls ]\").Append(\"\\n\");return buffer.ToString();}" }, { "index": 505, "before": "public static BATBlock createEmptyBATBlock(final POIFSBigBlockSize bigBlockSize, boolean isXBAT) {BATBlock block = new BATBlock(bigBlockSize);if(isXBAT) {final int _entries_per_xbat_block = bigBlockSize.getXBATEntriesPerBlock();block._values[ _entries_per_xbat_block ] = POIFSConstants.END_OF_CHAIN;}return block;}", "after": "public static BATBlock CreateEmptyBATBlock(POIFSBigBlockSize bigBlockSize, bool isXBAT){BATBlock block = new BATBlock(bigBlockSize);if (isXBAT){block.SetXBATChain(bigBlockSize, POIFSConstants.END_OF_CHAIN);}return block;}" }, { "index": 506, "before": "public TagResourceResult tagResource(TagResourceRequest request) {request = beforeClientExecution(request);return executeTagResource(request);}", "after": "public virtual TagResourceResponse TagResource(TagResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = TagResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 507, "before": "public DeleteMailboxPermissionsResult deleteMailboxPermissions(DeleteMailboxPermissionsRequest request) {request = beforeClientExecution(request);return executeDeleteMailboxPermissions(request);}", "after": "public virtual DeleteMailboxPermissionsResponse DeleteMailboxPermissions(DeleteMailboxPermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMailboxPermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMailboxPermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 508, "before": "public ListDatasetGroupsResult listDatasetGroups(ListDatasetGroupsRequest request) {request = beforeClientExecution(request);return executeListDatasetGroups(request);}", "after": "public virtual ListDatasetGroupsResponse ListDatasetGroups(ListDatasetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDatasetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDatasetGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 509, "before": "public ResumeProcessesResult resumeProcesses(ResumeProcessesRequest request) {request = beforeClientExecution(request);return executeResumeProcesses(request);}", "after": "public virtual ResumeProcessesResponse ResumeProcesses(ResumeProcessesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResumeProcessesRequestMarshaller.Instance;options.ResponseUnmarshaller = ResumeProcessesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 510, "before": "public GetPersonTrackingResult getPersonTracking(GetPersonTrackingRequest request) {request = beforeClientExecution(request);return executeGetPersonTracking(request);}", "after": "public virtual GetPersonTrackingResponse GetPersonTracking(GetPersonTrackingRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPersonTrackingRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPersonTrackingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 511, "before": "public String toFormulaString(String[] operands) {if(space.isSet(_options)) {return operands[ 0 ];} else if (optiIf.isSet(_options)) {return toFormulaString() + \"(\" + operands[0] + \")\";} else if (optiSkip.isSet(_options)) {return toFormulaString() + operands[0]; } else {return toFormulaString() + \"(\" + operands[0] + \")\";}}", "after": "public String ToFormulaString(String[] operands){if (space.IsSet(field_1_options)){return operands[0];}else if (optiIf.IsSet(field_1_options)){return ToFormulaString() + \"(\" + operands[0] + \")\";}else if (optiSkip.IsSet(field_1_options)){return ToFormulaString() + operands[0]; }else{return ToFormulaString() + \"(\" + operands[0] + \")\";}}" }, { "index": 512, "before": "public T merge(T first, T second) {throw new UnsupportedOperationException();}", "after": "public virtual T Merge(T first, T second){throw new System.NotSupportedException();}" }, { "index": 513, "before": "public String toString() {return this.message.getKey() + \": \" + getLocalizedMessage();}", "after": "public override string ToString(){return this.m_message.Key + \": \" + GetLocalizedMessage();}" }, { "index": 514, "before": "public XPath(Parser parser, String path) {this.parser = parser;this.path = path;elements = split(path);}", "after": "public XPath(Parser parser, string path){this.parser = parser;this.path = path;elements = Split(path);}" }, { "index": 515, "before": "public CreateAccountAliasRequest(String accountAlias) {setAccountAlias(accountAlias);}", "after": "public CreateAccountAliasRequest(string accountAlias){_accountAlias = accountAlias;}" }, { "index": 516, "before": "public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int j = 0; j < iterations; ++j) {final byte block = blocks[blocksOffset++];values[valuesOffset++] = (block >>> 7) & 1;values[valuesOffset++] = (block >>> 6) & 1;values[valuesOffset++] = (block >>> 5) & 1;values[valuesOffset++] = (block >>> 4) & 1;values[valuesOffset++] = (block >>> 3) & 1;values[valuesOffset++] = (block >>> 2) & 1;values[valuesOffset++] = (block >>> 1) & 1;values[valuesOffset++] = block & 1;}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){var block = blocks[blocksOffset++];values[valuesOffset++] = ((int)((uint)block >> 7)) & 1;values[valuesOffset++] = ((int)((uint)block >> 6)) & 1;values[valuesOffset++] = ((int)((uint)block >> 5)) & 1;values[valuesOffset++] = ((int)((uint)block >> 4)) & 1;values[valuesOffset++] = ((int)((uint)block >> 3)) & 1;values[valuesOffset++] = ((int)((uint)block >> 2)) & 1;values[valuesOffset++] = ((int)((uint)block >> 1)) & 1;values[valuesOffset++] = block & 1;}}" }, { "index": 517, "before": "public PushConnection openPush() throws TransportException {return new TcpPushConnection();}", "after": "public override PushConnection OpenPush(){throw new NGit.Errors.NotSupportedException(JGitText.Get().pushIsNotSupportedForBundleTransport);}" }, { "index": 518, "before": "public static void strcpy(char[] dst, int di, char[] src, int si) {while (src[si] != 0) {dst[di++] = src[si++];}dst[di] = 0;}", "after": "public static void StrCpy(char[] dst, int di, char[] src, int si){while (src[si] != 0){dst[di++] = src[si++];}dst[di] = (char)0;}" }, { "index": 519, "before": "@Override public K getKey() {return mapEntry.getKey();}", "after": "public virtual K getKey(){return mapEntry.getKey();}" }, { "index": 520, "before": "public static int numNonnull(Object[] data) {int n = 0;if ( data == null ) return n;for (Object o : data) {if ( o!=null ) n++;}return n;}", "after": "public static int NumNonnull(object[] data){int n = 0;if (data == null){return n;}foreach (object o in data){if (o != null){n++;}}return n;}" }, { "index": 521, "before": "public void add(int location, E object) {if (location >= 0 && location <= size) {Link link = voidLink;if (location < (size / 2)) {for (int i = 0; i <= location; i++) {link = link.next;}} else {for (int i = size; i > location; i--) {link = link.previous;}}Link previous = link.previous;Link newLink = new Link(object, previous, link);previous.next = newLink;link.previous = newLink;size++;modCount++;} else {throw new IndexOutOfBoundsException();}}", "after": "public override void add(int location, E @object){if (location >= 0 && location <= _size){java.util.LinkedList.Link link = voidLink;if (location < (_size / 2)){{for (int i = 0; i <= location; i++){link = link.next;}}}else{{for (int i = _size; i > location; i--){link = link.previous;}}}java.util.LinkedList.Link previous = link.previous;java.util.LinkedList.Link newLink = new java.util.LinkedList.Link(@object,previous, link);previous.next = newLink;link.previous = newLink;_size++;modCount++;}else{throw new System.IndexOutOfRangeException();}}" }, { "index": 522, "before": "public DescribeDomainResult describeDomain(DescribeDomainRequest request) {request = beforeClientExecution(request);return executeDescribeDomain(request);}", "after": "public virtual DescribeDomainResponse DescribeDomain(DescribeDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 523, "before": "public void flush() throws IOException {super.flush();}", "after": "public override void flush(){throw new System.NotImplementedException();}" }, { "index": 524, "before": "public PersianCharFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public PersianCharFilterFactory(IDictionary args): base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 525, "before": "public boolean incrementToken() {if (used) {return false;}clearAttributes();termAttribute.append(value);offsetAttribute.setOffset(0, length);used = true;return true;}", "after": "public override bool IncrementToken(){if (used){return false;}ClearAttributes();termAttribute.Append(value);offsetAttribute.SetOffset(0, value.Length);used = true;return true;}" }, { "index": 526, "before": "public static FloatBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteFloatArrayBuffer(capacity);}", "after": "public static java.nio.FloatBuffer allocate(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteFloatArrayBuffer(capacity_1);}" }, { "index": 527, "before": "public final Edit after(Edit cut) {return new Edit(cut.endA, endA, cut.endB, endB);}", "after": "public NGit.Diff.Edit After(NGit.Diff.Edit cut){return new NGit.Diff.Edit(cut.endA, endA, cut.endB, endB);}" }, { "index": 528, "before": "public UpdateRuleVersionResult updateRuleVersion(UpdateRuleVersionRequest request) {request = beforeClientExecution(request);return executeUpdateRuleVersion(request);}", "after": "public virtual UpdateRuleVersionResponse UpdateRuleVersion(UpdateRuleVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRuleVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRuleVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 529, "before": "public ListVoiceConnectorTerminationCredentialsResult listVoiceConnectorTerminationCredentials(ListVoiceConnectorTerminationCredentialsRequest request) {request = beforeClientExecution(request);return executeListVoiceConnectorTerminationCredentials(request);}", "after": "public virtual ListVoiceConnectorTerminationCredentialsResponse ListVoiceConnectorTerminationCredentials(ListVoiceConnectorTerminationCredentialsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVoiceConnectorTerminationCredentialsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVoiceConnectorTerminationCredentialsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 530, "before": "public GetDeploymentTargetResult getDeploymentTarget(GetDeploymentTargetRequest request) {request = beforeClientExecution(request);return executeGetDeploymentTarget(request);}", "after": "public virtual GetDeploymentTargetResponse GetDeploymentTarget(GetDeploymentTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeploymentTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeploymentTargetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 531, "before": "public void setNoChildReport() {letChildReport = false;for (final PerfTask task : tasks) {if (task instanceof TaskSequence) {((TaskSequence)task).setNoChildReport();}}}", "after": "public virtual void SetNoChildReport(){letChildReport = false;foreach (PerfTask task in tasks){if (task is TaskSequence){((TaskSequence)task).SetNoChildReport();}}}" }, { "index": 532, "before": "public E get(int location) {try {return a[location];} catch (ArrayIndexOutOfBoundsException e) {throw java.util.ArrayList.throwIndexOutOfBoundsException(location, a.length);}}", "after": "public override E get(int location){try{return a[location];}catch (System.IndexOutOfRangeException){throw java.util.ArrayList.throwIndexOutOfBoundsException(location, a.Length);}}" }, { "index": 533, "before": "public DescribeDataSetResult describeDataSet(DescribeDataSetRequest request) {request = beforeClientExecution(request);return executeDescribeDataSet(request);}", "after": "public virtual DescribeDataSetResponse DescribeDataSet(DescribeDataSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDataSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDataSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 534, "before": "public SkipWorkTreeFilter(int treeIdx) {this.treeIdx = treeIdx;}", "after": "public SkipWorkTreeFilter(int treeIdx){this.treeIdx = treeIdx;}" }, { "index": 535, "before": "public DescribeNetworkInterfacesResult describeNetworkInterfaces() {return describeNetworkInterfaces(new DescribeNetworkInterfacesRequest());}", "after": "public virtual DescribeNetworkInterfacesResponse DescribeNetworkInterfaces(){return DescribeNetworkInterfaces(new DescribeNetworkInterfacesRequest());}" }, { "index": 536, "before": "public final boolean contains(int row, int col) {return _firstRow <= row && _lastRow >= row&& _firstColumn <= col && _lastColumn >= col;}", "after": "public bool Contains(int row, int col){return _firstRow <= row && _lastRow >= row&& _firstColumn <= col && _lastColumn >= col;}" }, { "index": 537, "before": "public String toString() {return new String(this.chars);}", "after": "public override string ToString(){return new string(this.chars);}" }, { "index": 538, "before": "public PatchType getPatchType() {return patchType;}", "after": "public virtual FileHeader.PatchType GetPatchType(){return patchType;}" }, { "index": 539, "before": "public Iterator iterator() {return new KeyIterator();}", "after": "public override java.util.Iterator iterator(){return new java.util.Hashtable.KeyIterator(this._enclosing);}" }, { "index": 540, "before": "public CreateScriptResult createScript(CreateScriptRequest request) {request = beforeClientExecution(request);return executeCreateScript(request);}", "after": "public virtual CreateScriptResponse CreateScript(CreateScriptRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateScriptRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateScriptResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 541, "before": "public BytesRef next() {termUpto++;if (termUpto >= info.terms.size()) {return null;} else {info.terms.get(info.sortedTerms[termUpto], br);return br;}}", "after": "public override BytesRef Next(){termUpto++;if (termUpto >= info.terms.Count){return null;}else{info.terms.Get(info.sortedTerms[termUpto], br);return br;}}" }, { "index": 542, "before": "public String outputToString(CharsRef output) {return output.toString();}", "after": "public override string OutputToString(CharsRef output){return output.ToString();}" }, { "index": 543, "before": "public AssociateWebsiteAuthorizationProviderResult associateWebsiteAuthorizationProvider(AssociateWebsiteAuthorizationProviderRequest request) {request = beforeClientExecution(request);return executeAssociateWebsiteAuthorizationProvider(request);}", "after": "public virtual AssociateWebsiteAuthorizationProviderResponse AssociateWebsiteAuthorizationProvider(AssociateWebsiteAuthorizationProviderRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateWebsiteAuthorizationProviderRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateWebsiteAuthorizationProviderResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 544, "before": "public void unpop(RevCommit c) {Block b = head;if (b == null) {b = free.newBlock();b.resetToMiddle();b.add(c);head = b;tail = b;return;} else if (b.canUnpop()) {b.unpop(c);return;}b = free.newBlock();b.resetToEnd();b.unpop(c);b.next = head;head = b;}", "after": "public virtual void Unpop(RevCommit c){BlockRevQueue.Block b = head;if (b == null){b = free.NewBlock();b.ResetToMiddle();b.Add(c);head = b;tail = b;return;}else{if (b.CanUnpop()){b.Unpop(c);return;}}b = free.NewBlock();b.ResetToEnd();b.Unpop(c);b.next = head;head = b;}" }, { "index": 545, "before": "public EdgeNGramTokenizerFactory(Map args) {super(args);minGramSize = getInt(args, \"minGramSize\", EdgeNGramTokenizer.DEFAULT_MIN_GRAM_SIZE);maxGramSize = getInt(args, \"maxGramSize\", EdgeNGramTokenizer.DEFAULT_MAX_GRAM_SIZE);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public EdgeNGramTokenizerFactory(IDictionary args) : base(args){minGramSize = GetInt32(args, \"minGramSize\", EdgeNGramTokenizer.DEFAULT_MIN_GRAM_SIZE);maxGramSize = GetInt32(args, \"maxGramSize\", EdgeNGramTokenizer.DEFAULT_MAX_GRAM_SIZE);side = Get(args, \"side\", EdgeNGramTokenFilter.Side.FRONT.ToString());if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 546, "before": "public ModifyDBParameterGroupRequest(String dBParameterGroupName, java.util.List parameters) {setDBParameterGroupName(dBParameterGroupName);setParameters(parameters);}", "after": "public ModifyDBParameterGroupRequest(string dbParameterGroupName, List parameters){_dbParameterGroupName = dbParameterGroupName;_parameters = parameters;}" }, { "index": 547, "before": "public GetHostedZoneLimitResult getHostedZoneLimit(GetHostedZoneLimitRequest request) {request = beforeClientExecution(request);return executeGetHostedZoneLimit(request);}", "after": "public virtual GetHostedZoneLimitResponse GetHostedZoneLimit(GetHostedZoneLimitRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHostedZoneLimitRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHostedZoneLimitResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 548, "before": "public void set(int index, long value) {final int o = index >>> 6;final int b = index & 63;final int shift = b << 0;blocks[o] = (blocks[o] & ~(1L << shift)) | (value << shift);}", "after": "public override void Set(int index, long value){int o = (int)((uint)index >> 6);int b = index & 63;int shift = b << 0;blocks[o] = (blocks[o] & ~(1L << shift)) | (value << shift);}" }, { "index": 549, "before": "public RevFilter clone() {return new PatternSearch(pattern());}", "after": "public override RevFilter Clone(){return new CommitterRevFilter.PatternSearch(Pattern());}" }, { "index": 550, "before": "public String toString() {return \"spans(\" + term.toString() + \")@\" +(doc == -1 ? \"START\" : (doc == NO_MORE_DOCS) ? \"ENDDOC\": doc + \" - \" + (position == NO_MORE_POSITIONS ? \"ENDPOS\" : position));}", "after": "public override string ToString(){return \"spans(\" + m_term.ToString() + \")@\" + (m_doc == -1 ? \"START\" : (m_doc == int.MaxValue) ? \"END\" : m_doc + \"-\" + m_position);}" }, { "index": 551, "before": "public boolean canAppendMatch() {for (Head head : heads) {if (head != LastHead.INSTANCE) {return true;}}return false;}", "after": "public virtual bool CanAppendMatch(){for (int i = 0; i < heads.Count; i++){if (heads[i] != LastHead.INSTANCE){return true;}}return false;}" }, { "index": 552, "before": "public synchronized int lastIndexOf(String subString, int start) {return super.lastIndexOf(subString, start);}", "after": "public override int lastIndexOf(string subString, int start){lock (this){return base.lastIndexOf(subString, start);}}" }, { "index": 553, "before": "public DeleteNetworkAclEntryResult deleteNetworkAclEntry(DeleteNetworkAclEntryRequest request) {request = beforeClientExecution(request);return executeDeleteNetworkAclEntry(request);}", "after": "public virtual DeleteNetworkAclEntryResponse DeleteNetworkAclEntry(DeleteNetworkAclEntryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNetworkAclEntryRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNetworkAclEntryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 554, "before": "public AssociateMemberToGroupResult associateMemberToGroup(AssociateMemberToGroupRequest request) {request = beforeClientExecution(request);return executeAssociateMemberToGroup(request);}", "after": "public virtual AssociateMemberToGroupResponse AssociateMemberToGroup(AssociateMemberToGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateMemberToGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateMemberToGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 555, "before": "public static final int committer(byte[] b, int ptr) {final int sz = b.length;if (ptr == 0)ptr += 46; while (ptr < sz && b[ptr] == 'p')ptr += 48; if (ptr < sz && b[ptr] == 'a')ptr = nextLF(b, ptr);return match(b, ptr, committer);}", "after": "public static int Committer(byte[] b, int ptr){int sz = b.Length;if (ptr == 0){ptr += 46;}while (ptr < sz && b[ptr] == 'p'){ptr += 48;}if (ptr < sz && b[ptr] == 'a'){ptr = NextLF(b, ptr);}return Match(b, ptr, ObjectChecker.committer);}" }, { "index": 556, "before": "public int getLineNumber() { return row; }", "after": "public virtual int getLineNumber(){return row;}" }, { "index": 557, "before": "public SubmoduleUpdateCommand addPath(String path) {paths.add(path);return this;}", "after": "public virtual NGit.Api.SubmoduleUpdateCommand AddPath(string path){paths.AddItem(path);return this;}" }, { "index": 558, "before": "public GetPushTemplateResult getPushTemplate(GetPushTemplateRequest request) {request = beforeClientExecution(request);return executeGetPushTemplate(request);}", "after": "public virtual GetPushTemplateResponse GetPushTemplate(GetPushTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPushTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPushTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 559, "before": "public DescribeVaultResult describeVault(DescribeVaultRequest request) {request = beforeClientExecution(request);return executeDescribeVault(request);}", "after": "public virtual DescribeVaultResponse DescribeVault(DescribeVaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVaultRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVaultResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 560, "before": "public DescribeVpcPeeringConnectionsResult describeVpcPeeringConnections() {return describeVpcPeeringConnections(new DescribeVpcPeeringConnectionsRequest());}", "after": "public virtual DescribeVpcPeeringConnectionsResponse DescribeVpcPeeringConnections(){return DescribeVpcPeeringConnections(new DescribeVpcPeeringConnectionsRequest());}" }, { "index": 561, "before": "public ByteBuffer putLong(int index, long value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putLong(int index, long value){throw new System.NotImplementedException();}" }, { "index": 562, "before": "public RegisterDeviceResult registerDevice(RegisterDeviceRequest request) {request = beforeClientExecution(request);return executeRegisterDevice(request);}", "after": "public virtual RegisterDeviceResponse RegisterDevice(RegisterDeviceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterDeviceRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterDeviceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 563, "before": "public static Format byId(int id) {for (Format format : Format.values()) {if (format.getId() == id) {return format;}}throw new IllegalArgumentException(\"Unknown format id: \" + id);}", "after": "public static Format ById(int id){foreach (Format format in Values){if (format.Id == id){return format;}}throw new ArgumentException(\"Unknown format id: \" + id);}" }, { "index": 564, "before": "public DeleteAppResult deleteApp(DeleteAppRequest request) {request = beforeClientExecution(request);return executeDeleteApp(request);}", "after": "public virtual DeleteAppResponse DeleteApp(DeleteAppRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAppRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAppResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 565, "before": "public GetBaiduChannelResult getBaiduChannel(GetBaiduChannelRequest request) {request = beforeClientExecution(request);return executeGetBaiduChannel(request);}", "after": "public virtual GetBaiduChannelResponse GetBaiduChannel(GetBaiduChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBaiduChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBaiduChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 566, "before": "public FST.BytesReader getBytesReader() {return fst.getBytesReader();}", "after": "public FST.BytesReader GetBytesReader(){return fst.GetBytesReader();}" }, { "index": 567, "before": "public static boolean isValidSchemeChar(int index, char c) {if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) {return true;}if (index > 0 && ((c >= '0' && c <= '9') || c == '+' || c == '-' || c == '.')) {return true;}return false;}", "after": "public static bool isValidSchemeChar(int index, char c){if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')){return true;}if (index > 0 && ((c >= '0' && c <= '9') || c == '+' || c == '-' || c == '.')){return true;}return false;}" }, { "index": 568, "before": "public ListAppliedSchemaArnsResult listAppliedSchemaArns(ListAppliedSchemaArnsRequest request) {request = beforeClientExecution(request);return executeListAppliedSchemaArns(request);}", "after": "public virtual ListAppliedSchemaArnsResponse ListAppliedSchemaArns(ListAppliedSchemaArnsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAppliedSchemaArnsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAppliedSchemaArnsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 569, "before": "public String name() {return this.name;}", "after": "public System.Uri BaseUri { get; set; }" }, { "index": 570, "before": "public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length < 1) {return ErrorEval.VALUE_INVALID;}boolean isA1style;String text;try {ValueEval ve = OperandResolver.getSingleValue(args[0], ec.getRowIndex(), ec.getColumnIndex());text = OperandResolver.coerceValueToString(ve);switch (args.length) {case 1:isA1style = true;break;case 2:isA1style = evaluateBooleanArg(args[1], ec);break;default:return ErrorEval.VALUE_INVALID;}} catch (EvaluationException e) {return e.getErrorEval();}return evaluateIndirect(ec, text, isA1style);}", "after": "public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length < 1){return ErrorEval.VALUE_INVALID;}bool isA1style;String text;try{ValueEval ve = OperandResolver.GetSingleValue(args[0], ec.RowIndex, ec.ColumnIndex);text = OperandResolver.CoerceValueToString(ve);switch (args.Length){case 1:isA1style = true;break;case 2:isA1style = EvaluateBooleanArg(args[1], ec);break;default:return ErrorEval.VALUE_INVALID;}}catch (EvaluationException e){return e.GetErrorEval();}return EvaluateIndirect(ec, text, isA1style);}" }, { "index": 571, "before": "public final int compareTo(int[] bs, int p) {int cmp;cmp = NB.compareUInt32(w1, bs[p]);if (cmp != 0)return cmp;cmp = NB.compareUInt32(w2, bs[p + 1]);if (cmp != 0)return cmp;cmp = NB.compareUInt32(w3, bs[p + 2]);if (cmp != 0)return cmp;cmp = NB.compareUInt32(w4, bs[p + 3]);if (cmp != 0)return cmp;return NB.compareUInt32(w5, bs[p + 4]);}", "after": "public int CompareTo(int[] bs, int p){int cmp;cmp = NB.CompareUInt32(w1, bs[p]);if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w2, bs[p + 1]);if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w3, bs[p + 2]);if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w4, bs[p + 3]);if (cmp != 0){return cmp;}return NB.CompareUInt32(w5, bs[p + 4]);}" }, { "index": 572, "before": "public void removeName(int index){names.remove(index);workbook.removeName(index);}", "after": "public void RemoveName(int index){names.RemoveAt(index);workbook.RemoveName(index);}" }, { "index": 573, "before": "public GetQueueAttributesRequest(String queueUrl, java.util.List attributeNames) {setQueueUrl(queueUrl);setAttributeNames(attributeNames);}", "after": "public GetQueueAttributesRequest(string queueUrl, List attributeNames){_queueUrl = queueUrl;_attributeNames = attributeNames;}" }, { "index": 574, "before": "public static boolean[] copyOf(boolean[] original, int newLength) {if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}", "after": "public static bool[] copyOf(bool[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}" }, { "index": 575, "before": "public static void setEnabled(boolean enabled) {ENABLED = enabled;}", "after": "public static void setEnabled(bool enabled){ENABLED = enabled;}" }, { "index": 576, "before": "public DeleteLogPatternResult deleteLogPattern(DeleteLogPatternRequest request) {request = beforeClientExecution(request);return executeDeleteLogPattern(request);}", "after": "public virtual DeleteLogPatternResponse DeleteLogPattern(DeleteLogPatternRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLogPatternRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLogPatternResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 577, "before": "public boolean contains(char[] text, int off, int len) {return map.containsKey(text, off, len);}", "after": "public virtual bool Contains(char[] text, int offset, int length){return map.ContainsKey(text, offset, length);}" }, { "index": 578, "before": "public int getFirstSheetIndexFromExternSheetIndex(int externSheetNumber){return linkTable.getFirstInternalSheetIndexForExtIndex(externSheetNumber);}", "after": "public int GetFirstSheetIndexFromExternSheetIndex(int externSheetNumber){return linkTable.GetFirstInternalSheetIndexForExtIndex(externSheetNumber);}" }, { "index": 579, "before": "public boolean handles(String commandLine) {return command.length() + 1 < commandLine.length()&& commandLine.charAt(command.length()) == ' '&& commandLine.startsWith(command);}", "after": "public virtual bool Handles(string commandLine){return command.Length + 1 < commandLine.Length && commandLine[command.Length] ==' ' && commandLine.StartsWith(command);}" }, { "index": 580, "before": "public static void register(MergeStrategy imp) {register(imp.getName(), imp);}", "after": "public static void Register(MergeStrategy imp){Register(imp.GetName(), imp);}" }, { "index": 581, "before": "public long ramBytesUsed() {return BASE_RAM_BYTES_USED + ((index!=null)? index.ramBytesUsed() : 0);}", "after": "public long RamBytesUsed(){return ((index != null) ? index.GetSizeInBytes() : 0);}" }, { "index": 582, "before": "public HostedZone(String id, String name, String callerReference) {setId(id);setName(name);setCallerReference(callerReference);}", "after": "public HostedZone(string id, string name, string callerReference){_id = id;_name = name;_callerReference = callerReference;}" }, { "index": 583, "before": "public GetFindingsResult getFindings(GetFindingsRequest request) {request = beforeClientExecution(request);return executeGetFindings(request);}", "after": "public virtual GetFindingsResponse GetFindings(GetFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFindingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 584, "before": "public DescribeTopicsDetectionJobResult describeTopicsDetectionJob(DescribeTopicsDetectionJobRequest request) {request = beforeClientExecution(request);return executeDescribeTopicsDetectionJob(request);}", "after": "public virtual DescribeTopicsDetectionJobResponse DescribeTopicsDetectionJob(DescribeTopicsDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTopicsDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTopicsDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 585, "before": "public boolean processMatch(ValueEval eval) {if(eval instanceof NumericValueEval) {if(minimumValue == null) { minimumValue = eval;} else { double currentValue = ((NumericValueEval)eval).getNumberValue();double oldValue = ((NumericValueEval)minimumValue).getNumberValue();if(currentValue < oldValue) {minimumValue = eval;}}}return true;}", "after": "public bool ProcessMatch(ValueEval eval){if (eval is NumericValueEval){if (minimumValue == null){ minimumValue = eval;}else{ double currentValue = ((NumericValueEval)eval).NumberValue;double oldValue = ((NumericValueEval)minimumValue).NumberValue;if (currentValue < oldValue){minimumValue = eval;}}}return true;}" }, { "index": 586, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_len_ref_subexpression);}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_len_ref_subexpression);}" }, { "index": 587, "before": "public static void main(String[] args) throws IOException {boolean printTree = false;String path = null;for(int i=0;i();}", "after": "public CachingDoubleValueSource(ValueSource source){this.m_source = source;m_cache = new JCG.Dictionary();}" }, { "index": 591, "before": "public AttributeDefinition(String attributeName, ScalarAttributeType attributeType) {setAttributeName(attributeName);setAttributeType(attributeType.toString());}", "after": "public AttributeDefinition(string attributeName, ScalarAttributeType attributeType){_attributeName = attributeName;_attributeType = attributeType;}" }, { "index": 592, "before": "public static String join(Collection parts, String separator) {return StringUtils.join(parts, separator, separator);}", "after": "public static string Join(ICollection parts, string separator){return NGit.Util.StringUtils.Join(parts, separator, separator);}" }, { "index": 593, "before": "public ListTaskDefinitionFamiliesResult listTaskDefinitionFamilies(ListTaskDefinitionFamiliesRequest request) {request = beforeClientExecution(request);return executeListTaskDefinitionFamilies(request);}", "after": "public virtual ListTaskDefinitionFamiliesResponse ListTaskDefinitionFamilies(ListTaskDefinitionFamiliesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTaskDefinitionFamiliesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTaskDefinitionFamiliesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 594, "before": "public ListComponentsResult listComponents(ListComponentsRequest request) {request = beforeClientExecution(request);return executeListComponents(request);}", "after": "public virtual ListComponentsResponse ListComponents(ListComponentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 595, "before": "public ActivatePhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ActivatePhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ActivatePhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ActivatePhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 596, "before": "public CreateMatchmakingRuleSetResult createMatchmakingRuleSet(CreateMatchmakingRuleSetRequest request) {request = beforeClientExecution(request);return executeCreateMatchmakingRuleSet(request);}", "after": "public virtual CreateMatchmakingRuleSetResponse CreateMatchmakingRuleSet(CreateMatchmakingRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMatchmakingRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMatchmakingRuleSetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 597, "before": "public ListAvailableManagementCidrRangesResult listAvailableManagementCidrRanges(ListAvailableManagementCidrRangesRequest request) {request = beforeClientExecution(request);return executeListAvailableManagementCidrRanges(request);}", "after": "public virtual ListAvailableManagementCidrRangesResponse ListAvailableManagementCidrRanges(ListAvailableManagementCidrRangesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAvailableManagementCidrRangesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAvailableManagementCidrRangesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 598, "before": "public ObjectIdSubclassMap getBaseObjectIds() {if (baseObjectIds != null)return baseObjectIds;return new ObjectIdSubclassMap<>();}", "after": "public virtual ObjectIdSubclassMap GetBaseObjectIds(){if (baseObjectIds != null){return baseObjectIds;}return new ObjectIdSubclassMap();}" }, { "index": 599, "before": "public DeletePushTemplateResult deletePushTemplate(DeletePushTemplateRequest request) {request = beforeClientExecution(request);return executeDeletePushTemplate(request);}", "after": "public virtual DeletePushTemplateResponse DeletePushTemplate(DeletePushTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePushTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePushTemplateResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 600, "before": "public CreateDomainEntryResult createDomainEntry(CreateDomainEntryRequest request) {request = beforeClientExecution(request);return executeCreateDomainEntry(request);}", "after": "public virtual CreateDomainEntryResponse CreateDomainEntry(CreateDomainEntryRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDomainEntryRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDomainEntryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 601, "before": "public static int getEncodedSize(Object[] values) {int result = values.length * 1;for (Object value : values) {result += getEncodedSize(value);}return result;}", "after": "public static int GetEncodedSize(Array values){int result = values.Length * 1;for (int i = 0; i < values.Length; i++){result += GetEncodedSize(values.GetValue(i));}return result;}" }, { "index": 602, "before": "public OpenNLPTokenizerFactory(Map args) {super(args);sentenceModelFile = require(args, SENTENCE_MODEL);tokenizerModelFile = require(args, TOKENIZER_MODEL);if ( ! args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public OpenNLPTokenizerFactory(IDictionary args): base(args){sentenceModelFile = Require(args, SENTENCE_MODEL);tokenizerModelFile = Require(args, TOKENIZER_MODEL);if (args.Any()){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 603, "before": "public final int getInt(int index) {checkIndex(index, SizeOf.INT);return Memory.peekInt(backingArray, offset + index, order);}", "after": "public sealed override int getInt(int index){checkIndex(index, libcore.io.SizeOf.INT);return libcore.io.Memory.peekInt(backingArray, offset + index, _order);}" }, { "index": 604, "before": "public List getNextHeads(char c) {if (matches(c)) {return newHeads;}return FileNameMatcher.EMPTY_HEAD_LIST;}", "after": "public virtual IList GetNextHeads(char c){if (Matches(c)){return newHeads;}else{return FileNameMatcher.EMPTY_HEAD_LIST;}}" }, { "index": 605, "before": "public ByteBuffer putShort(short value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putShort(short value){throw new System.NotImplementedException();}" }, { "index": 606, "before": "public void writeUnshared(Object object) throws IOException {writeObject(object, true);}", "after": "public virtual void writeUnshared(object @object){throw new System.NotImplementedException();}" }, { "index": 607, "before": "public int offsetByCodePoints(int index, int codePointOffset) {return Character.offsetByCodePoints(value, 0, count, index,codePointOffset);}", "after": "public virtual int offsetByCodePoints(int index, int codePointOffset){return Sharpen.CharHelper.OffsetByCodePoints(value, 0, count, index, codePointOffset);}" }, { "index": 608, "before": "public static int getUniqueAlt(Collection altsets) {BitSet all = getAlts(altsets);if ( all.cardinality()==1 ) return all.nextSetBit(0);return ATN.INVALID_ALT_NUMBER;}", "after": "public static int GetUniqueAlt(IEnumerable altsets){BitSet all = GetAlts(altsets);if (all.Cardinality() == 1){return all.NextSetBit(0);}return ATN.INVALID_ALT_NUMBER;}" }, { "index": 609, "before": "public Date getWhen() {return new Date(when);}", "after": "public virtual DateTime GetWhen(){return Sharpen.Extensions.CreateDate(when);}" }, { "index": 610, "before": "public RuleTagToken(String ruleName, int bypassTokenType, String label) {if (ruleName == null || ruleName.isEmpty()) {throw new IllegalArgumentException(\"ruleName cannot be null or empty.\");}this.ruleName = ruleName;this.bypassTokenType = bypassTokenType;this.label = label;}", "after": "public RuleTagToken(string ruleName, int bypassTokenType, string label){if (string.IsNullOrEmpty(ruleName)){throw new ArgumentException(\"ruleName cannot be null or empty.\");}this.ruleName = ruleName;this.bypassTokenType = bypassTokenType;this.label = label;}" }, { "index": 611, "before": "public DisableOrganizationAdminAccountResult disableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest request) {request = beforeClientExecution(request);return executeDisableOrganizationAdminAccount(request);}", "after": "public virtual DisableOrganizationAdminAccountResponse DisableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableOrganizationAdminAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableOrganizationAdminAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 612, "before": "public CreateRoomResult createRoom(CreateRoomRequest request) {request = beforeClientExecution(request);return executeCreateRoom(request);}", "after": "public virtual CreateRoomResponse CreateRoom(CreateRoomRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRoomRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRoomResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 613, "before": "public ReplicationGroup deleteReplicationGroup(DeleteReplicationGroupRequest request) {request = beforeClientExecution(request);return executeDeleteReplicationGroup(request);}", "after": "public virtual DeleteReplicationGroupResponse DeleteReplicationGroup(DeleteReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteReplicationGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 614, "before": "public final CharBuffer decode(ByteBuffer buffer) {try {return newDecoder().onMalformedInput(CodingErrorAction.REPLACE).onUnmappableCharacter(CodingErrorAction.REPLACE).decode(buffer);} catch (CharacterCodingException ex) {throw new Error(ex.getMessage(), ex);}}", "after": "public java.nio.CharBuffer decode(java.nio.ByteBuffer buffer){try{return newDecoder().onMalformedInput(java.nio.charset.CodingErrorAction.REPLACE).onUnmappableCharacter(java.nio.charset.CodingErrorAction.REPLACE).decode(buffer);}catch (java.nio.charset.CharacterCodingException ex){throw new System.Exception(ex.Message, ex);}}" }, { "index": 615, "before": "public Distribution(String id, String status, String domainName) {setId(id);setStatus(status);setDomainName(domainName);}", "after": "public Distribution(string id, string status, string domainName){_id = id;_status = status;_domainName = domainName;}" }, { "index": 616, "before": "public final double[] array() {return protectedArray();}", "after": "public sealed override object array(){return protectedArray();}" }, { "index": 617, "before": "public DateWindow1904Record(RecordInputStream in) {field_1_window = in.readShort();}", "after": "public DateWindow1904Record(RecordInputStream in1){field_1_window = in1.ReadShort();}" }, { "index": 618, "before": "public DeleteDBSnapshotRequest(String dBSnapshotIdentifier) {setDBSnapshotIdentifier(dBSnapshotIdentifier);}", "after": "public DeleteDBSnapshotRequest(string dbSnapshotIdentifier){_dbSnapshotIdentifier = dbSnapshotIdentifier;}" }, { "index": 619, "before": "public final ParserExtension getExtension(String key) {return this.extensions.get(key);}", "after": "public ParserExtension GetExtension(string key){if (key == null || !this.extensions.TryGetValue(key, out ParserExtension value)) return null;return value;}" }, { "index": 620, "before": "public void inform(ResourceLoader loader) {try {if (chunkerModelFile != null) {OpenNLPOpsFactory.getChunkerModel(chunkerModelFile, loader);}} catch (IOException e) {throw new IllegalArgumentException(e);}}", "after": "public virtual void Inform(IResourceLoader loader){try{if (chunkerModelFile != null){OpenNLPOpsFactory.GetChunkerModel(chunkerModelFile, loader);}}catch (IOException e){throw new ArgumentException(e.ToString(), e);}}" }, { "index": 621, "before": "public CompleteVaultLockResult completeVaultLock(CompleteVaultLockRequest request) {request = beforeClientExecution(request);return executeCompleteVaultLock(request);}", "after": "public virtual CompleteVaultLockResponse CompleteVaultLock(CompleteVaultLockRequest request){var options = new InvokeOptions();options.RequestMarshaller = CompleteVaultLockRequestMarshaller.Instance;options.ResponseUnmarshaller = CompleteVaultLockResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 622, "before": "public final int[] getCharIntervals() {return points.clone();}", "after": "public int[] GetCharIntervals(){return (int[])(Array)_points.Clone();}" }, { "index": 623, "before": "public long ramBytesUsed() {return values.ramBytesUsed()+ super.ramBytesUsed()+ Long.BYTES+ RamUsageEstimator.NUM_BYTES_OBJECT_REF;}", "after": "public long RamBytesUsed(){return RamUsageEstimator.AlignObjectSize(3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF + 2 * RamUsageEstimator.NUM_BYTES_INT32)+ RamUsageEstimator.SizeOf(data)+ positions.RamBytesUsed()+ wordNums.RamBytesUsed();}" }, { "index": 624, "before": "public RegisterInstancesWithLoadBalancerResult registerInstancesWithLoadBalancer(RegisterInstancesWithLoadBalancerRequest request) {request = beforeClientExecution(request);return executeRegisterInstancesWithLoadBalancer(request);}", "after": "public virtual RegisterInstancesWithLoadBalancerResponse RegisterInstancesWithLoadBalancer(RegisterInstancesWithLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterInstancesWithLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterInstancesWithLoadBalancerResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 625, "before": "public DescribeClusterUserKubeconfigRequest() {super(\"CS\", \"2015-12-15\", \"DescribeClusterUserKubeconfig\", \"csk\");setUriPattern(\"/k8s/[ClusterId]/user_config\");setMethod(MethodType.GET);}", "after": "public DescribeClusterUserKubeconfigRequest(): base(\"CS\", \"2015-12-15\", \"DescribeClusterUserKubeconfig\", \"cs\", \"openAPI\"){UriPattern = \"/k8s/[ClusterId]/user_config\";Method = MethodType.GET;}" }, { "index": 626, "before": "public PrecisionRecord(RecordInputStream in) {field_1_precision = in.readShort();}", "after": "public PrecisionRecord(RecordInputStream in1){field_1_precision = in1.ReadShort();}" }, { "index": 627, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getLeftRowGutter());out.writeShort(getTopColGutter());out.writeShort(getRowLevelMax());out.writeShort(getColLevelMax());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(LeftRowGutter);out1.WriteShort(TopColGutter);out1.WriteShort(RowLevelMax);out1.WriteShort(ColLevelMax);}" }, { "index": 628, "before": "public DeleteVirtualInterfaceResult deleteVirtualInterface(DeleteVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeDeleteVirtualInterface(request);}", "after": "public virtual DeleteVirtualInterfaceResponse DeleteVirtualInterface(DeleteVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVirtualInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 629, "before": "public Entry getEntry(String name) throws FileNotFoundException {if (excludes.contains(name)) {throw new FileNotFoundException(name);}Entry entry = directory.getEntry(name);return wrapEntry(entry);}", "after": "public Entry GetEntry(String name){if (excludes.Contains(name)){throw new FileNotFoundException(name);}Entry entry = directory.GetEntry(name);return WrapEntry(entry);}" }, { "index": 630, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[BACKUP]\\n\");buffer.append(\" .backup = \").append(Integer.toHexString(getBackup())).append(\"\\n\");buffer.append(\"[/BACKUP]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[BACKUP]\\n\");buffer.Append(\" .backup = \").Append(StringUtil.ToHexString(Backup)).Append(\"\\n\");buffer.Append(\"[/BACKUP]\\n\");return buffer.ToString();}" }, { "index": 631, "before": "public DeleteVoiceConnectorOriginationResult deleteVoiceConnectorOrigination(DeleteVoiceConnectorOriginationRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnectorOrigination(request);}", "after": "public virtual DeleteVoiceConnectorOriginationResponse DeleteVoiceConnectorOrigination(DeleteVoiceConnectorOriginationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorOriginationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceConnectorOriginationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 632, "before": "public Appendable append(char c) {write(c);return this;}", "after": "public virtual OpenStringBuilder Append(char c){Write(c);return this;}" }, { "index": 633, "before": "public static long generationFromSegmentsFileName(String fileName) {if (fileName.equals(OLD_SEGMENTS_GEN)) {throw new IllegalArgumentException(\"\\\"\" + OLD_SEGMENTS_GEN + \"\\\" is not a valid segment file name since 4.0\");} else if (fileName.equals(IndexFileNames.SEGMENTS)) {return 0;} else if (fileName.startsWith(IndexFileNames.SEGMENTS)) {return Long.parseLong(fileName.substring(1+IndexFileNames.SEGMENTS.length()),Character.MAX_RADIX);} else {throw new IllegalArgumentException(\"fileName \\\"\" + fileName + \"\\\" is not a segments file\");}}", "after": "public static long GenerationFromSegmentsFileName(string fileName){if (fileName.Equals(IndexFileNames.SEGMENTS, StringComparison.Ordinal)){return 0;}else if (fileName.StartsWith(IndexFileNames.SEGMENTS, StringComparison.Ordinal)){return Number.Parse(fileName.Substring(1 + IndexFileNames.SEGMENTS.Length), Character.MaxRadix);}else{throw new System.ArgumentException(\"fileName \\\"\" + fileName + \"\\\" is not a segments file\");}}" }, { "index": 634, "before": "public static TagOpt fromOption(String o) {if (o == null || o.length() == 0)return AUTO_FOLLOW;for (TagOpt tagopt : values()) {if (tagopt.option().equals(o))return tagopt;}throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidTagOption, o));}", "after": "public static NGit.Transport.TagOpt FromOption(string o){if (o == null || o.Length == 0){return AUTO_FOLLOW;}foreach (NGit.Transport.TagOpt tagopt in Values()){if (tagopt.Option().Equals(o)){return tagopt;}}throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidTagOption,o));}" }, { "index": 635, "before": "public StartContentModerationResult startContentModeration(StartContentModerationRequest request) {request = beforeClientExecution(request);return executeStartContentModeration(request);}", "after": "public virtual StartContentModerationResponse StartContentModeration(StartContentModerationRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartContentModerationRequestMarshaller.Instance;options.ResponseUnmarshaller = StartContentModerationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 636, "before": "public static String quoteReplacement(String s) {StringBuilder result = new StringBuilder(s.length());for (int i = 0; i < s.length(); i++) {char c = s.charAt(i);if (c == '\\\\' || c == '$') {result.append('\\\\');}result.append(c);}return result.toString();}", "after": "public static string quoteReplacement(string s){java.lang.StringBuilder result = new java.lang.StringBuilder(s.Length);{for (int i = 0; i < s.Length; i++){char c = s[i];if (c == '\\\\' || c == '$'){result.append('\\\\');}result.append(c);}}return result.ToString();}" }, { "index": 637, "before": "public final void set(V newValue) {value = newValue;}", "after": "public void set(V newValue){value = newValue;}" }, { "index": 638, "before": "public QueryParserTokenManager(CharStream stream){input_stream = stream;}", "after": "public QueryParserTokenManager(ICharStream stream){InitBlock();m_input_stream = stream;}" }, { "index": 639, "before": "public long valueFor(double elapsed) {double val;if (modBy == 0)val = elapsed / factor;elseval = elapsed / factor % modBy;if (type == '0')return Math.round(val);elsereturn (long) val;}", "after": "public long ValueFor(double elapsed){double val;if (modBy == 0)val = elapsed / factor;elseval = elapsed / factor % modBy;if (type == '0')return (long)Math.Round(val);elsereturn (long)val;}" }, { "index": 640, "before": "public LongBuffer get(long[] dst, int dstOffset, int longCount) {byteBuffer.limit(limit * SizeOf.LONG);byteBuffer.position(position * SizeOf.LONG);if (byteBuffer instanceof DirectByteBuffer) {((DirectByteBuffer) byteBuffer).get(dst, dstOffset, longCount);} else {((HeapByteBuffer) byteBuffer).get(dst, dstOffset, longCount);}this.position += longCount;return this;}", "after": "public override java.nio.LongBuffer get(long[] dst, int dstOffset, int longCount){byteBuffer.limit(_limit * libcore.io.SizeOf.LONG);byteBuffer.position(_position * libcore.io.SizeOf.LONG);if (byteBuffer is java.nio.DirectByteBuffer){((java.nio.DirectByteBuffer)byteBuffer).get(dst, dstOffset, longCount);}else{((java.nio.HeapByteBuffer)byteBuffer).get(dst, dstOffset, longCount);}this._position += longCount;return this;}" }, { "index": 641, "before": "public void removeErrorListeners() {_listeners.clear();}", "after": "public virtual void RemoveErrorListeners(){_listeners = new IAntlrErrorListener[0];}" }, { "index": 642, "before": "public CommonTokenStream(TokenSource tokenSource, int channel) {this(tokenSource);this.channel = channel;}", "after": "public CommonTokenStream(ITokenSource tokenSource, int channel): this(tokenSource){this.channel = channel;}" }, { "index": 643, "before": "public ListObjectPoliciesResult listObjectPolicies(ListObjectPoliciesRequest request) {request = beforeClientExecution(request);return executeListObjectPolicies(request);}", "after": "public virtual ListObjectPoliciesResponse ListObjectPolicies(ListObjectPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListObjectPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListObjectPoliciesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 644, "before": "public ObjectToPack(AnyObjectId src, int type) {super(src);flags = type << TYPE_SHIFT;}", "after": "public ObjectToPack(AnyObjectId src, int type) : base(src){flags = type << TYPE_SHIFT;}" }, { "index": 645, "before": "public int stem(char s[], int len) {int numVowels = numVowels(s, len);for (int i = 0; i < affixes.length; i++) {Affix affix = affixes[i];if (numVowels > affix.vc && len >= affix.affix.length + 3 && endsWith(s, len, affix.affix)) {len -= affix.affix.length;return affix.palatalizes ? unpalatalize(s, len) : len;}}return len;}", "after": "public virtual int Stem(char[] s, int len){int numVowels_Renamed = NumVowels(s, len);for (int i = 0; i < affixes.Length; i++){Affix affix = affixes[i];if (numVowels_Renamed > affix.vc && len >= affix.affix.Length + 3 && StemmerUtil.EndsWith(s, len, affix.affix)){len -= affix.affix.Length;return affix.palatalizes ? Unpalatalize(s, len) : len;}}return len;}" }, { "index": 646, "before": "public void recover(Parser recognizer, RecognitionException e) {if ( lastErrorIndex==recognizer.getInputStream().index() &&lastErrorStates != null &&lastErrorStates.contains(recognizer.getState()) ) {recognizer.consume();}lastErrorIndex = recognizer.getInputStream().index();if ( lastErrorStates==null ) lastErrorStates = new IntervalSet();lastErrorStates.add(recognizer.getState());IntervalSet followSet = getErrorRecoverySet(recognizer);consumeUntil(recognizer, followSet);}", "after": "public virtual void Recover(Parser recognizer, RecognitionException e){if (lastErrorIndex == ((ITokenStream)recognizer.InputStream).Index && lastErrorStates != null && lastErrorStates.Contains(recognizer.State)){recognizer.Consume();}lastErrorIndex = ((ITokenStream)recognizer.InputStream).Index;if (lastErrorStates == null){lastErrorStates = new IntervalSet();}lastErrorStates.Add(recognizer.State);IntervalSet followSet = GetErrorRecoverySet(recognizer);ConsumeUntil(recognizer, followSet);}" }, { "index": 647, "before": "public String toFormulaString() {String value = field_3_string;int len = value.length();StringBuilder sb = new StringBuilder(len + 4);sb.append(FORMULA_DELIMITER);for (int i = 0; i < len; i++) {char c = value.charAt(i);if (c == FORMULA_DELIMITER) {sb.append(FORMULA_DELIMITER);}sb.append(c);}sb.append(FORMULA_DELIMITER);return sb.toString();}", "after": "public override String ToFormulaString(){String value = field_3_string;int len = value.Length;StringBuilder sb = new StringBuilder(len + 4);sb.Append(FORMULA_DELIMITER);for (int i = 0; i < len; i++){char c = value[i];if (c == FORMULA_DELIMITER){sb.Append(FORMULA_DELIMITER);}sb.Append(c);}sb.Append(FORMULA_DELIMITER);return sb.ToString();}" }, { "index": 648, "before": "public UnlinkFaceRequest() {super(\"LinkFace\", \"2018-07-20\", \"UnlinkFace\");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}", "after": "public UnlinkFaceRequest(): base(\"LinkFace\", \"2018-07-20\", \"UnlinkFace\"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}" }, { "index": 649, "before": "public ConfigurationOptionSetting(String namespace, String optionName, String value) {setNamespace(namespace);setOptionName(optionName);setValue(value);}", "after": "public ConfigurationOptionSetting(string awsNamespace, string optionName, string value){_awsNamespace = awsNamespace;_optionName = optionName;_value = value;}" }, { "index": 650, "before": "public CharSequence getFully(CharSequence key) {StringBuilder result = new StringBuilder(tries.size() * 2);for (int i = 0; i < tries.size(); i++) {CharSequence r = tries.get(i).getFully(key);if (r == null || (r.length() == 1 && r.charAt(0) == EOM)) {return result;}result.append(r);}return result;}", "after": "public override string GetFully(string key){StringBuilder result = new StringBuilder(m_tries.Count * 2);for (int i = 0; i < m_tries.Count; i++){string r = m_tries[i].GetFully(key);if (r == null || (r.Length == 1 && r[0] == EOM)){return result.ToString();}result.Append(r);}return result.ToString();}" }, { "index": 651, "before": "public DescribeMountTargetSecurityGroupsResult describeMountTargetSecurityGroups(DescribeMountTargetSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeMountTargetSecurityGroups(request);}", "after": "public virtual DescribeMountTargetSecurityGroupsResponse DescribeMountTargetSecurityGroups(DescribeMountTargetSecurityGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeMountTargetSecurityGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeMountTargetSecurityGroupsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 652, "before": "public GetApiMappingResult getApiMapping(GetApiMappingRequest request) {request = beforeClientExecution(request);return executeGetApiMapping(request);}", "after": "public virtual GetApiMappingResponse GetApiMapping(GetApiMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApiMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApiMappingResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 653, "before": "public HttpRequest(String strUrl) {super(strUrl);}", "after": "public HttpRequest(string strUrl){Url = strUrl;Headers = new Dictionary();}" }, { "index": 654, "before": "public MemFuncPtg(int subExprLen) {field_1_len_ref_subexpression = subExprLen;}", "after": "public MemFuncPtg(int subExprLen){field_1_len_ref_subexpression = subExprLen;}" }, { "index": 655, "before": "public static TermStats[] getHighFreqTerms(IndexReader reader, int numTerms, String field, Comparator comparator) throws Exception {TermStatsQueue tiq = null;if (field != null) {Terms terms = MultiTerms.getTerms(reader, field);if (terms == null) {throw new RuntimeException(\"field \" + field + \" not found\");}TermsEnum termsEnum = terms.iterator();tiq = new TermStatsQueue(numTerms, comparator);tiq.fill(field, termsEnum);} else {Collection fields = FieldInfos.getIndexedFields(reader);if (fields.size() == 0) {throw new RuntimeException(\"no fields found for this index\");}tiq = new TermStatsQueue(numTerms, comparator);for (String fieldName : fields) {Terms terms = MultiTerms.getTerms(reader, fieldName);if (terms != null) {tiq.fill(fieldName, terms.iterator());}}}TermStats[] result = new TermStats[tiq.size()];int count = tiq.size() - 1;while (tiq.size() != 0) {result[count] = tiq.pop();count--;}return result;}", "after": "public static TermStats[] GetHighFreqTerms(IndexReader reader, int numTerms, string field, IComparer comparer){TermStatsQueue tiq = null;if (field != null){Fields fields = MultiFields.GetFields(reader);if (fields == null){throw new Exception(\"field \" + field + \" not found\");}Terms terms = fields.GetTerms(field);if (terms != null){TermsEnum termsEnum = terms.GetIterator(null);tiq = new TermStatsQueue(numTerms, comparer);tiq.Fill(field, termsEnum);}}else{Fields fields = MultiFields.GetFields(reader);if (fields == null){throw new Exception(\"no fields found for this index\");}tiq = new TermStatsQueue(numTerms, comparer);foreach (string fieldName in fields){Terms terms = fields.GetTerms(fieldName);if (terms != null){tiq.Fill(fieldName, terms.GetIterator(null));}}}TermStats[] result = new TermStats[tiq.Count];int count = tiq.Count - 1;while (tiq.Count != 0){result[count] = tiq.Pop();count--;}return result;}" }, { "index": 656, "before": "public DeleteApnsVoipChannelResult deleteApnsVoipChannel(DeleteApnsVoipChannelRequest request) {request = beforeClientExecution(request);return executeDeleteApnsVoipChannel(request);}", "after": "public virtual DeleteApnsVoipChannelResponse DeleteApnsVoipChannel(DeleteApnsVoipChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApnsVoipChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApnsVoipChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 657, "before": "public ListFacesResult listFaces(ListFacesRequest request) {request = beforeClientExecution(request);return executeListFaces(request);}", "after": "public virtual ListFacesResponse ListFaces(ListFacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFacesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 658, "before": "public ShapeFieldCacheDistanceValueSource(SpatialContext ctx,ShapeFieldCacheProvider provider, Point from, double multiplier) {this.ctx = ctx;this.from = from;this.provider = provider;this.multiplier = multiplier;}", "after": "public ShapeFieldCacheDistanceValueSource(SpatialContext ctx,ShapeFieldCacheProvider provider, IPoint from, double multiplier){this.ctx = ctx;this.from = from;this.provider = provider;this.multiplier = multiplier;}" }, { "index": 659, "before": "public char get(int index) {checkIndex(index);return sequence.charAt(index);}", "after": "public override char get(int index){checkIndex(index);return sequence[index];}" }, { "index": 660, "before": "public UpdateConfigurationProfileResult updateConfigurationProfile(UpdateConfigurationProfileRequest request) {request = beforeClientExecution(request);return executeUpdateConfigurationProfile(request);}", "after": "public virtual UpdateConfigurationProfileResponse UpdateConfigurationProfile(UpdateConfigurationProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateConfigurationProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateConfigurationProfileResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 661, "before": "public DescribeLifecycleHooksResult describeLifecycleHooks(DescribeLifecycleHooksRequest request) {request = beforeClientExecution(request);return executeDescribeLifecycleHooks(request);}", "after": "public virtual DescribeLifecycleHooksResponse DescribeLifecycleHooks(DescribeLifecycleHooksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLifecycleHooksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLifecycleHooksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 662, "before": "public DescribeHostReservationsResult describeHostReservations(DescribeHostReservationsRequest request) {request = beforeClientExecution(request);return executeDescribeHostReservations(request);}", "after": "public virtual DescribeHostReservationsResponse DescribeHostReservations(DescribeHostReservationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHostReservationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHostReservationsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 663, "before": "public static PredictionContext fromRuleContext(ATN atn, RuleContext outerContext) {if ( outerContext==null ) outerContext = RuleContext.EMPTY;if ( outerContext.parent==null || outerContext==RuleContext.EMPTY ) {return PredictionContext.EMPTY;}PredictionContext parent = EMPTY;parent = PredictionContext.fromRuleContext(atn, outerContext.parent);ATNState state = atn.states.get(outerContext.invokingState);RuleTransition transition = (RuleTransition)state.transition(0);return SingletonPredictionContext.create(parent, transition.followState.stateNumber);}", "after": "public static PredictionContext FromRuleContext(ATN atn, RuleContext outerContext){if (outerContext == null)outerContext = ParserRuleContext.EMPTY;if (outerContext.Parent == null || outerContext == ParserRuleContext.EMPTY)return PredictionContext.EMPTY;PredictionContext parent = PredictionContext.FromRuleContext(atn, outerContext.Parent);ATNState state = atn.states[outerContext.invokingState];RuleTransition transition = (RuleTransition)state.Transition(0);return parent.GetChild(transition.followState.stateNumber);}" }, { "index": 664, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[SXVDEX]\\n\");buffer.append(\" .grbit1 =\").append(HexDump.intToHex(_grbit1)).append(\"\\n\");buffer.append(\" .grbit2 =\").append(HexDump.byteToHex(_grbit2)).append(\"\\n\");buffer.append(\" .citmShow =\").append(HexDump.byteToHex(_citmShow)).append(\"\\n\");buffer.append(\" .isxdiSort =\").append(HexDump.shortToHex(_isxdiSort)).append(\"\\n\");buffer.append(\" .isxdiShow =\").append(HexDump.shortToHex(_isxdiShow)).append(\"\\n\");buffer.append(\" .subtotalName =\").append(_subtotalName).append(\"\\n\");buffer.append(\"[/SXVDEX]\\n\");return buffer.toString();}", "after": "public override string ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SXVDEX]\\n\");buffer.Append(\" .grbit1 =\").Append(HexDump.IntToHex(grbit1)).Append(\"\\n\");buffer.Append(\" .grbit2 =\").Append(HexDump.ByteToHex(grbit2)).Append(\"\\n\");buffer.Append(\" .citmShow =\").Append(HexDump.ByteToHex(citmShow)).Append(\"\\n\");buffer.Append(\" .isxdiSort =\").Append(HexDump.ShortToHex(isxdiSort)).Append(\"\\n\");buffer.Append(\" .isxdiShow =\").Append(HexDump.ShortToHex(isxdiShow)).Append(\"\\n\");buffer.Append(\" .subName =\").Append(subName).Append(\"\\n\");buffer.Append(\"[/SXVDEX]\\n\");return buffer.ToString();}" }, { "index": 665, "before": "public String toString() {StringBuilder r = new StringBuilder();r.append(\"BlameResult: \"); r.append(getResultPath());return r.toString();}", "after": "public override string ToString(){StringBuilder r = new StringBuilder();r.Append(\"BlameResult: \");r.Append(GetResultPath());return r.ToString();}" }, { "index": 666, "before": "public ListChangeSetsResult listChangeSets(ListChangeSetsRequest request) {request = beforeClientExecution(request);return executeListChangeSets(request);}", "after": "public virtual ListChangeSetsResponse ListChangeSets(ListChangeSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListChangeSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListChangeSetsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 667, "before": "public boolean isAllowNonFastForwards() {return allowNonFastForwards;}", "after": "public virtual bool IsAllowNonFastForwards(){return allowNonFastForwards;}" }, { "index": 668, "before": "public FeatRecord() {futureHeader = new FtrHeader();futureHeader.setRecordType(sid);}", "after": "public FeatRecord(){futureHeader = new FtrHeader();futureHeader.RecordType = (sid);}" }, { "index": 669, "before": "public ShortBuffer put(short c) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ShortBuffer put(short c){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 670, "before": "public void setQuery(CharSequence query) {this.query = query;this.message = new MessageImpl(QueryParserMessages.INVALID_SYNTAX_CANNOT_PARSE, query, \"\");}", "after": "public virtual void SetQuery(string query){this.query = query;this.m_message = new Message(QueryParserMessages.INVALID_SYNTAX_CANNOT_PARSE, query, \"\");}" }, { "index": 671, "before": "public StashApplyCommand stashApply() {return new StashApplyCommand(repo);}", "after": "public virtual StashApplyCommand StashApply(){return new StashApplyCommand(repo);}" }, { "index": 672, "before": "public Set nameSet() {return Collections.unmodifiableSet(dictionary.values());}", "after": "public ICollection NameSet(){return dictionaryNameToID.Keys;}" }, { "index": 673, "before": "public static int getEffectivePort(String scheme, int specifiedPort) {if (specifiedPort != -1) {return specifiedPort;}if (\"http\".equalsIgnoreCase(scheme)) {return 80;} else if (\"https\".equalsIgnoreCase(scheme)) {return 443;} else {return -1;}}", "after": "public static int getEffectivePort(string scheme, int specifiedPort){if (specifiedPort != -1){return specifiedPort;}if (Sharpen.StringHelper.EqualsIgnoreCase(\"http\", scheme)){return 80;}else{if (Sharpen.StringHelper.EqualsIgnoreCase(\"https\", scheme)){return 443;}else{return -1;}}}" }, { "index": 674, "before": "public ListAssessmentTemplatesResult listAssessmentTemplates(ListAssessmentTemplatesRequest request) {request = beforeClientExecution(request);return executeListAssessmentTemplates(request);}", "after": "public virtual ListAssessmentTemplatesResponse ListAssessmentTemplates(ListAssessmentTemplatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAssessmentTemplatesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAssessmentTemplatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 675, "before": "public Cluster restoreFromClusterSnapshot(RestoreFromClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeRestoreFromClusterSnapshot(request);}", "after": "public virtual RestoreFromClusterSnapshotResponse RestoreFromClusterSnapshot(RestoreFromClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreFromClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreFromClusterSnapshotResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 676, "before": "public void addShape(HSSFShape shape) {shape.setPatriarch(this.getPatriarch());shape.setParent(this);shapes.add(shape);}", "after": "public void AddShape(HSSFShape shape){shape.Patriarch = (this.Patriarch);shape.Parent = (this);shapes.Add(shape);}" }, { "index": 677, "before": "public boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;FacetEntry that = (FacetEntry) o;if (count != that.count) return false;if (!value.equals(that.value)) return false;return true;}", "after": "public override bool Equals(object o){if (this == o) return true;if (o == null || GetType() != o.GetType()) return false;FacetEntry that = (FacetEntry)o;if (count != that.count) return false;if (!value.Equals(that.value)) return false;return true;}" }, { "index": 678, "before": "public static final int prev(byte[] b, int ptr, char chrA) {if (ptr == b.length)--ptr;while (ptr >= 0) {if (b[ptr--] == chrA)return ptr;}return ptr;}", "after": "public static int Prev(byte[] b, int ptr, char chrA){if (ptr == b.Length){--ptr;}while (ptr >= 0){if (b[ptr--] == chrA){return ptr;}}return ptr;}" }, { "index": 679, "before": "public final boolean isDeltaRepresentation() {return deltaBase != null;}", "after": "public virtual bool IsDeltaRepresentation(){return deltaBase != null;}" }, { "index": 680, "before": "public Token emitEOF() {int cpos = getCharPositionInLine();int line = getLine();Token eof = _factory.create(_tokenFactorySourcePair, Token.EOF, null, Token.DEFAULT_CHANNEL, _input.index(), _input.index()-1,line, cpos);emit(eof);return eof;}", "after": "public virtual IToken EmitEOF(){int cpos = Column;int line = Line;IToken eof = _factory.Create(_tokenFactorySourcePair, TokenConstants.EOF, null, TokenConstants.DefaultChannel, _input.Index, _input.Index - 1, line, cpos);Emit(eof);return eof;}" }, { "index": 681, "before": "public UpdateUserRequest(String userName) {setUserName(userName);}", "after": "public UpdateUserRequest(string userName){_userName = userName;}" }, { "index": 682, "before": "public RevFilter negate() {return NotRevFilter.create(this);}", "after": "public virtual RevFilter Negate(){return NotRevFilter.Create(this);}" }, { "index": 683, "before": "public void setTagger(PersonIdent taggerIdent) {tagger = taggerIdent;}", "after": "public virtual void SetTagger(PersonIdent taggerIdent){tagger = taggerIdent;}" }, { "index": 684, "before": "public static BufferSize automatic() {Runtime rt = Runtime.getRuntime();final long max = rt.maxMemory(); final long total = rt.totalMemory(); final long free = rt.freeMemory(); final long totalAvailableBytes = max - total + free;long sortBufferByteSize = free/2;final long minBufferSizeBytes = MIN_BUFFER_SIZE_MB*MB;if (sortBufferByteSize < minBufferSizeBytes|| totalAvailableBytes > 10 * minBufferSizeBytes) { if (totalAvailableBytes/2 > minBufferSizeBytes) { sortBufferByteSize = totalAvailableBytes/2; } else {sortBufferByteSize = Math.max(ABSOLUTE_MIN_SORT_BUFFER_SIZE, sortBufferByteSize);}}return new BufferSize(Math.min((long)Integer.MAX_VALUE, sortBufferByteSize));}", "after": "public static BufferSize Automatic(){long max, total, free;using (var proc = Process.GetCurrentProcess()){max = proc.PeakVirtualMemorySize64; total = proc.VirtualMemorySize64; free = proc.PrivateMemorySize64; }long totalAvailableBytes = max - total + free;long sortBufferByteSize = free / 2;long minBufferSizeBytes = MIN_BUFFER_SIZE_MB * MB;if (sortBufferByteSize < minBufferSizeBytes || totalAvailableBytes > 10 * minBufferSizeBytes) {if (totalAvailableBytes / 2 > minBufferSizeBytes) {sortBufferByteSize = totalAvailableBytes / 2; }else{sortBufferByteSize = Math.Max(ABSOLUTE_MIN_SORT_BUFFER_SIZE, sortBufferByteSize);}}return new BufferSize(Math.Min((long)int.MaxValue, sortBufferByteSize));}" }, { "index": 685, "before": "public static int trimTrailingWhitespace(byte[] raw, int start, int end) {int ptr = end - 1;while (start <= ptr && isWhitespace(raw[ptr]))ptr--;return ptr + 1;}", "after": "public static int TrimTrailingWhitespace(byte[] raw, int start, int end){int ptr = end - 1;while (start <= ptr && IsWhitespace(raw[ptr])){ptr--;}return ptr + 1;}" }, { "index": 686, "before": "public TopMarginRecord( RecordInputStream in ) {field_1_margin = in.readDouble();}", "after": "public TopMarginRecord(RecordInputStream in1){field_1_margin = in1.ReadDouble();}" }, { "index": 687, "before": "public RetrieveEnvironmentInfoRequest(EnvironmentInfoType infoType) {setInfoType(infoType.toString());}", "after": "public RetrieveEnvironmentInfoRequest(EnvironmentInfoType infoType){_infoType = infoType;}" }, { "index": 688, "before": "public CreatePlayerSessionsResult createPlayerSessions(CreatePlayerSessionsRequest request) {request = beforeClientExecution(request);return executeCreatePlayerSessions(request);}", "after": "public virtual CreatePlayerSessionsResponse CreatePlayerSessions(CreatePlayerSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePlayerSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePlayerSessionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 689, "before": "public CreateProxySessionResult createProxySession(CreateProxySessionRequest request) {request = beforeClientExecution(request);return executeCreateProxySession(request);}", "after": "public virtual CreateProxySessionResponse CreateProxySession(CreateProxySessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProxySessionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProxySessionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 690, "before": "public int getObjectType() {return type;}", "after": "public virtual int GetObjectType(){return type;}" }, { "index": 691, "before": "public String getScheme() {return scheme;}", "after": "public virtual string GetScheme(){return scheme;}" }, { "index": 692, "before": "public void characters(char[] ch, int start, int length) {contents.append(ch, start, length);}", "after": "public override void Characters(char[] ch, int start, int length){contents.Append(ch, start, length);}" }, { "index": 693, "before": "public FetchAlbumTagPhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"FetchAlbumTagPhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public FetchAlbumTagPhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"FetchAlbumTagPhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 694, "before": "public DeleteMembersResult deleteMembers(DeleteMembersRequest request) {request = beforeClientExecution(request);return executeDeleteMembers(request);}", "after": "public virtual DeleteMembersResponse DeleteMembers(DeleteMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMembersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 695, "before": "public GetContactReachabilityStatusResult getContactReachabilityStatus(GetContactReachabilityStatusRequest request) {request = beforeClientExecution(request);return executeGetContactReachabilityStatus(request);}", "after": "public virtual GetContactReachabilityStatusResponse GetContactReachabilityStatus(GetContactReachabilityStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetContactReachabilityStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = GetContactReachabilityStatusResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 696, "before": "@Override public boolean remove(Object o) {return Impl.this.remove(o) != null;}", "after": "public override bool remove(object o){lock (this._enclosing){int oldSize = this._enclosing._size;this._enclosing.remove(o);return this._enclosing._size != oldSize;}}" }, { "index": 697, "before": "public E last() {return backingMap.lastKey();}", "after": "public virtual E last(){return backingMap.lastKey();}" }, { "index": 698, "before": "public CreateStreamingDistributionResult createStreamingDistribution(CreateStreamingDistributionRequest request) {request = beforeClientExecution(request);return executeCreateStreamingDistribution(request);}", "after": "public virtual CreateStreamingDistributionResponse CreateStreamingDistribution(CreateStreamingDistributionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStreamingDistributionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStreamingDistributionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 699, "before": "public boolean isAbsolute() {return absolute;}", "after": "public bool isAbsolute(){return absolute;}" }, { "index": 700, "before": "public DisableAddOnResult disableAddOn(DisableAddOnRequest request) {request = beforeClientExecution(request);return executeDisableAddOn(request);}", "after": "public virtual DisableAddOnResponse DisableAddOn(DisableAddOnRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableAddOnRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableAddOnResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 701, "before": "public DescribeAliasResult describeAlias(DescribeAliasRequest request) {request = beforeClientExecution(request);return executeDescribeAlias(request);}", "after": "public virtual DescribeAliasResponse DescribeAlias(DescribeAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAliasResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 702, "before": "public void next(int delta) {while (--delta >= 0) {if (currentSubtree != null)ptr += currentSubtree.getEntrySpan();elseptr++;if (eof())break;parseEntry();}}", "after": "public override void Next(int delta){while (--delta >= 0){if (currentSubtree != null){ptr += currentSubtree.GetEntrySpan();}else{ptr++;}if (Eof){break;}ParseEntry();}}" }, { "index": 703, "before": "public RevFilter clone() {return new Binary(a.clone(), b.clone());}", "after": "public override RevFilter Clone(){return new AndRevFilter.Binary(a.Clone(), b.Clone());}" }, { "index": 704, "before": "public Reader create(Reader input) {return new PersianCharFilter(input);}", "after": "public override TextReader Create(TextReader input){return new PersianCharFilter(input);}" }, { "index": 705, "before": "public String option() {return option;}", "after": "public virtual string Option(){return option;}" }, { "index": 706, "before": "public String toString() {final StringBuilder sb = new StringBuilder(\"[\");for (Object item : this) {if (sb.length()>1) sb.append(\", \");if (item instanceof char[]) {sb.append((char[]) item);} else {sb.append(item);}}return sb.append(']').toString();}", "after": "public override string ToString(){var sb = new StringBuilder(\"[\");foreach (var item in this){if (sb.Length > 1){sb.Append(\", \");}sb.Append(item);}return sb.Append(']').ToString();}" }, { "index": 707, "before": "public DescribeSignalingChannelResult describeSignalingChannel(DescribeSignalingChannelRequest request) {request = beforeClientExecution(request);return executeDescribeSignalingChannel(request);}", "after": "public virtual DescribeSignalingChannelResponse DescribeSignalingChannel(DescribeSignalingChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSignalingChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSignalingChannelResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 708, "before": "public AttachStaticIpResult attachStaticIp(AttachStaticIpRequest request) {request = beforeClientExecution(request);return executeAttachStaticIp(request);}", "after": "public virtual AttachStaticIpResponse AttachStaticIp(AttachStaticIpRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachStaticIpRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachStaticIpResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 709, "before": "public String toString() {StringBuilder sb = new StringBuilder(64);CellReference crA = new CellReference(_firstRowIndex, _firstColumnIndex, false, false);CellReference crB = new CellReference(_lastRowIndex, _lastColumnIndex, false, false);sb.append(getClass().getName());sb.append(\" [\").append(crA.formatAsString()).append(':').append(crB.formatAsString()).append(\"]\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);CellReference crA = new CellReference(_firstRowIndex, _firstColumnIndex, false, false);CellReference crB = new CellReference(_lastRowIndex, _lastColumnIndex, false, false);sb.Append(GetType().Name);sb.Append(\" [\").Append(crA.FormatAsString()).Append(':').Append(crB.FormatAsString()).Append(\"]\");return sb.ToString();}" }, { "index": 710, "before": "public BloomFilteringPostingsFormat(PostingsFormat delegatePostingsFormat,BloomFilterFactory bloomFilterFactory) {super(BLOOM_CODEC_NAME);this.delegatePostingsFormat = delegatePostingsFormat;this.bloomFilterFactory = bloomFilterFactory;}", "after": "public BloomFilteringPostingsFormat(PostingsFormat delegatePostingsFormat,BloomFilterFactory bloomFilterFactory) : base(){_delegatePostingsFormat = delegatePostingsFormat;_bloomFilterFactory = bloomFilterFactory;}" }, { "index": 711, "before": "public ListTemplatesResult listTemplates(ListTemplatesRequest request) {request = beforeClientExecution(request);return executeListTemplates(request);}", "after": "public virtual ListTemplatesResponse ListTemplates(ListTemplatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTemplatesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTemplatesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 712, "before": "public TimerThread(long resolution, Counter counter) {super(THREAD_NAME);this.resolution = resolution;this.counter = counter;this.setDaemon(true);}", "after": "public TimerThread(long resolution, Counter counter): base(THREAD_NAME){this.resolution = resolution;this.counter = counter;this.IsBackground = (true);}" }, { "index": 713, "before": "public DrawingRecord() {recordData = EMPTY_BYTE_ARRAY;}", "after": "public DrawingRecord(){recordData = EMPTY_BYTE_ARRAY;}" }, { "index": 714, "before": "public ListDirectoriesResult listDirectories(ListDirectoriesRequest request) {request = beforeClientExecution(request);return executeListDirectories(request);}", "after": "public virtual ListDirectoriesResponse ListDirectories(ListDirectoriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDirectoriesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDirectoriesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 715, "before": "public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int j = 0; j < iterations; ++j) {final byte block = blocks[blocksOffset++];values[valuesOffset++] = (block >>> 7) & 1;values[valuesOffset++] = (block >>> 6) & 1;values[valuesOffset++] = (block >>> 5) & 1;values[valuesOffset++] = (block >>> 4) & 1;values[valuesOffset++] = (block >>> 3) & 1;values[valuesOffset++] = (block >>> 2) & 1;values[valuesOffset++] = (block >>> 1) & 1;values[valuesOffset++] = block & 1;}}", "after": "public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){var block = blocks[blocksOffset++];values[valuesOffset++] = ((int)((uint)block >> 7)) & 1;values[valuesOffset++] = ((int)((uint)block >> 6)) & 1;values[valuesOffset++] = ((int)((uint)block >> 5)) & 1;values[valuesOffset++] = ((int)((uint)block >> 4)) & 1;values[valuesOffset++] = ((int)((uint)block >> 3)) & 1;values[valuesOffset++] = ((int)((uint)block >> 2)) & 1;values[valuesOffset++] = ((int)((uint)block >> 1)) & 1;values[valuesOffset++] = block & 1;}}" }, { "index": 716, "before": "public GroupingSearch disableCaching() {this.maxCacheRAMMB = null;this.maxDocsToCache = null;return this;}", "after": "public virtual GroupingSearch DisableCaching(){this.maxCacheRAMMB = null;this.maxDocsToCache = null;return this;}" }, { "index": 717, "before": "public static int idealByteArraySize(int need) {for (int i = 4; i < 32; i++)if (need <= (1 << i) - 12)return (1 << i) - 12;return need;}", "after": "public static int idealByteArraySize(int need){{for (int i = 4; i < 32; i++){if (need <= (1 << i) - 12){return (1 << i) - 12;}}}return need;}" }, { "index": 718, "before": "public UpdateAssessmentTargetResult updateAssessmentTarget(UpdateAssessmentTargetRequest request) {request = beforeClientExecution(request);return executeUpdateAssessmentTarget(request);}", "after": "public virtual UpdateAssessmentTargetResponse UpdateAssessmentTarget(UpdateAssessmentTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAssessmentTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAssessmentTargetResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 719, "before": "public ModifyVolumeResult modifyVolume(ModifyVolumeRequest request) {request = beforeClientExecution(request);return executeModifyVolume(request);}", "after": "public virtual ModifyVolumeResponse ModifyVolume(ModifyVolumeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVolumeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVolumeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 720, "before": "public Cell merge(Cell m, Cell e) {if (m.cmd == e.cmd && m.ref == e.ref && m.skip == e.skip) {Cell c = new Cell(m);c.cnt += e.cnt;return c;} else {return null;}}", "after": "public override Cell Merge(Cell m, Cell e){if (m.cmd == e.cmd && m.@ref == e.@ref && m.skip == e.skip) {Cell c = new Cell(m);c.cnt += e.cnt;return c;} else {return null;}}" }, { "index": 721, "before": "public ByteBuffer read(int length, long position) throws IOException {if(position >= size()) {throw new IndexOutOfBoundsException(\"Position \" + position + \" past the end of the file\");}ByteBuffer dst;if (writable) {dst = channel.map(FileChannel.MapMode.READ_WRITE, position, length);buffersToClean.add(dst);} else {channel.position(position);dst = ByteBuffer.allocate(length);int worked = IOUtils.readFully(channel, dst);if(worked == -1) {throw new IndexOutOfBoundsException(\"Position \" + position + \" past the end of the file\");}}dst.position(0);return dst;}", "after": "public override ByteBuffer Read(int length, long position){if (position >= Size)throw new ArgumentException(\"Position \" + position + \" past the end of the file\");ByteBuffer dst;int worked = -1;if (writable){dst = ByteBuffer.CreateBuffer(length);worked = 0;}else{fileStream.Position = position;dst = ByteBuffer.CreateBuffer(length);worked = IOUtils.ReadFully(fileStream, dst.Buffer);}if(worked == -1)throw new ArgumentException(\"Position \" + position + \" past the end of the file\");dst.Position = 0;return dst;}" }, { "index": 722, "before": "public void respondActivityTaskCompleted(RespondActivityTaskCompletedRequest request) {request = beforeClientExecution(request);executeRespondActivityTaskCompleted(request);}", "after": "public virtual RespondActivityTaskCompletedResponse RespondActivityTaskCompleted(RespondActivityTaskCompletedRequest request){var options = new InvokeOptions();options.RequestMarshaller = RespondActivityTaskCompletedRequestMarshaller.Instance;options.ResponseUnmarshaller = RespondActivityTaskCompletedResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 723, "before": "public synchronized final void incrementProgressBy(int diff) {setProgress(mProgress + diff);}", "after": "public void incrementProgressBy(int diff){lock (this){setProgress(mProgress + diff);}}" }, { "index": 724, "before": "public MetadataDiff compareMetadata(DirCacheEntry entry) {if (entry.isAssumeValid())return MetadataDiff.EQUAL;if (entry.isUpdateNeeded())return MetadataDiff.DIFFER_BY_METADATA;if (isModeDifferent(entry.getRawMode()))return MetadataDiff.DIFFER_BY_METADATA;int type = mode & FileMode.TYPE_MASK;if (type == FileMode.TYPE_TREE || type == FileMode.TYPE_GITLINK)return MetadataDiff.EQUAL;if (!entry.isSmudged() && entry.getLength() != (int) getEntryLength())return MetadataDiff.DIFFER_BY_METADATA;Instant cacheLastModified = entry.getLastModifiedInstant();Instant fileLastModified = getEntryLastModifiedInstant();if (timestampComparator.compare(cacheLastModified, fileLastModified,getOptions().getCheckStat() == CheckStat.MINIMAL) != 0) {return MetadataDiff.DIFFER_BY_TIMESTAMP;}if (entry.isSmudged()) {return MetadataDiff.SMUDGED;}return MetadataDiff.EQUAL;}", "after": "public virtual WorkingTreeIterator.MetadataDiff CompareMetadata(DirCacheEntry entry){if (entry.IsAssumeValid){return WorkingTreeIterator.MetadataDiff.EQUAL;}if (entry.IsUpdateNeeded){return WorkingTreeIterator.MetadataDiff.DIFFER_BY_METADATA;}if (!entry.IsSmudged && entry.Length != (int)GetEntryLength()){return WorkingTreeIterator.MetadataDiff.DIFFER_BY_METADATA;}if (IsModeDifferent(entry.RawMode)){return WorkingTreeIterator.MetadataDiff.DIFFER_BY_METADATA;}long cacheLastModified = entry.LastModified;long fileLastModified = GetEntryLastModified();if (cacheLastModified % 1000 == 0 || fileLastModified % 1000 == 0){cacheLastModified = cacheLastModified - cacheLastModified % 1000;fileLastModified = fileLastModified - fileLastModified % 1000;}if (fileLastModified != cacheLastModified){return WorkingTreeIterator.MetadataDiff.DIFFER_BY_TIMESTAMP;}else{if (!entry.IsSmudged){return WorkingTreeIterator.MetadataDiff.EQUAL;}else{return WorkingTreeIterator.MetadataDiff.SMUDGED;}}}" }, { "index": 725, "before": "public static NumberRecord convertToNumberRecord(RKRecord rk) {NumberRecord num = new NumberRecord();num.setColumn(rk.getColumn());num.setRow(rk.getRow());num.setXFIndex(rk.getXFIndex());num.setValue(rk.getRKNumber());return num;}", "after": "public static NumberRecord ConvertToNumberRecord(RKRecord rk){NumberRecord num = new NumberRecord();num.Column = (rk.Column);num.Row = (rk.Row);num.XFIndex = (rk.XFIndex);num.Value = (rk.RKNumber);return num;}" }, { "index": 726, "before": "public CharBuffer put(char[] src, int srcOffset, int charCount) {byteBuffer.limit(limit * SizeOf.CHAR);byteBuffer.position(position * SizeOf.CHAR);if (byteBuffer instanceof ReadWriteDirectByteBuffer) {((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, charCount);} else {((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, charCount);}this.position += charCount;return this;}", "after": "public override java.nio.CharBuffer put(char[] src, int srcOffset, int charCount){byteBuffer.limit(_limit * libcore.io.SizeOf.CHAR);byteBuffer.position(_position * libcore.io.SizeOf.CHAR);if (byteBuffer is java.nio.ReadWriteDirectByteBuffer){((java.nio.ReadWriteDirectByteBuffer)byteBuffer).put(src, srcOffset, charCount);}else{((java.nio.ReadWriteHeapByteBuffer)byteBuffer).put(src, srcOffset, charCount);}this._position += charCount;return this;}" }, { "index": 727, "before": "public int getCells() {Iterator i = cells.keySet().iterator();int size = 0;for (; i.hasNext();) {Character c = i.next();Cell e = at(c);if (e.cmd >= 0 || e.ref >= 0) {size++;}}return size;}", "after": "public int GetCells(){int size = 0;foreach (char c in cells.Keys){Cell e = At(c);if (e.cmd >= 0 || e.@ref >= 0){size++;}}return size;}" }, { "index": 728, "before": "public BeiderMorseFilterFactory(Map args) {super(args);NameType nameType = NameType.valueOf(get(args, \"nameType\", NameType.GENERIC.toString()));RuleType ruleType = RuleType.valueOf(get(args, \"ruleType\", RuleType.APPROX.toString()));boolean concat = getBoolean(args, \"concat\", true);engine = new PhoneticEngine(nameType, ruleType, concat);Set langs = getSet(args, \"languageSet\");languageSet = (null == langs || (1 == langs.size() && langs.contains(\"auto\"))) ? null : LanguageSet.from(langs);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public BeiderMorseFilterFactory(IDictionary args): base(args){NameType nameType = (NameType)Enum.Parse(typeof(NameType), Get(args, \"nameType\", NameType.GENERIC.ToString()), true);RuleType ruleType = (RuleType)Enum.Parse(typeof(RuleType), Get(args, \"ruleType\", RuleType.APPROX.ToString()), true);bool concat = GetBoolean(args, \"concat\", true);engine = new PhoneticEngine(nameType, ruleType, concat);ISet langs = GetSet(args, \"languageSet\");languageSet = (null == langs || (1 == langs.Count && langs.Contains(\"auto\"))) ? null : LanguageSet.From(langs);if (!(args.Count == 0)){throw new ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 729, "before": "public static double varp(double[] v) {double r = Double.NaN;if (v!=null && v.length > 1) {r = devsq(v) /v.length;}return r;}", "after": "public static double varp(double[] v){double r = Double.NaN;if (v != null && v.Length > 1){r = devsq(v) / v.Length;}return r;}" }, { "index": 730, "before": "public PersianNormalizationFilterFactory(Map args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException(\"Unknown parameters: \" + args);}}", "after": "public PersianNormalizationFilterFactory(IDictionary args) : base(args){if (args.Count > 0){throw new System.ArgumentException(\"Unknown parameters: \" + args);}}" }, { "index": 731, "before": "public static WeightedTerm[] getTerms(Query query, boolean prohibited, String fieldName) {HashSet terms = new HashSet<>();Predicate fieldSelector = fieldName == null ? f -> true : fieldName::equals;query.visit(new BoostedTermExtractor(1, terms, prohibited, fieldSelector));return terms.toArray(new WeightedTerm[0]);}", "after": "public static WeightedTerm[] GetTerms(Query query, bool prohibited, string fieldName){var terms = new JCG.HashSet();if (fieldName != null){fieldName = fieldName.Intern();}GetTerms(query, terms, prohibited, fieldName);return terms.ToArray();}" }, { "index": 732, "before": "public DeleteDocumentationPartResult deleteDocumentationPart(DeleteDocumentationPartRequest request) {request = beforeClientExecution(request);return executeDeleteDocumentationPart(request);}", "after": "public virtual DeleteDocumentationPartResponse DeleteDocumentationPart(DeleteDocumentationPartRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDocumentationPartRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDocumentationPartResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 733, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(\"[CHART]\\n\");sb.append(\" .x = \").append(getX()).append('\\n');sb.append(\" .y = \").append(getY()).append('\\n');sb.append(\" .width = \").append(getWidth()).append('\\n');sb.append(\" .height= \").append(getHeight()).append('\\n');sb.append(\"[/CHART]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[CHART]\\n\");buffer.Append(\" .x = \").Append(\"0x\").Append(HexDump.ToHex(X)).Append(\" (\").Append(X).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\" .y = \").Append(\"0x\").Append(HexDump.ToHex(Y)).Append(\" (\").Append(Y).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\" .width = \").Append(\"0x\").Append(HexDump.ToHex(Width)).Append(\" (\").Append(Width).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\" .height = \").Append(\"0x\").Append(HexDump.ToHex(Height)).Append(\" (\").Append(Height).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\"[/CHART]\\n\");return buffer.ToString();}" }, { "index": 734, "before": "public final short get(int index) {checkIndex(index);return backingArray[offset + index];}", "after": "public sealed override short get(int index){checkIndex(index);return backingArray[offset + index];}" }, { "index": 735, "before": "public String toString(){return image;}", "after": "public override string ToString(){return Image;}" }, { "index": 736, "before": "public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {try {AreaEval reA = evaluateRef(arg0);AreaEval reB = evaluateRef(arg1);AreaEval result = resolveRange(reA, reB);if (result == null) {return ErrorEval.NULL_INTERSECTION;}return result;} catch (EvaluationException e) {return e.getErrorEval();}}", "after": "public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){try{AreaEval reA = EvaluateRef(arg0);AreaEval reB = EvaluateRef(arg1);AreaEval result = ResolveRange(reA, reB);if (result == null){return ErrorEval.NULL_INTERSECTION;}return result;}catch (EvaluationException e){return e.GetErrorEval();}}" }, { "index": 737, "before": "public void clear() {weightBySpanQuery.clear();}", "after": "public virtual void Clear() { weightBySpanQuery.Clear(); }" }, { "index": 738, "before": "public int findEndOffset(StringBuilder buffer, int start) {if( start > buffer.length() || start < 0 ) return start;bi.setText(buffer.substring(start));return bi.next() + start;}", "after": "public virtual int FindEndOffset(StringBuilder buffer, int start){if (start > buffer.Length || start < 0) return start;bi.SetText(buffer.ToString(start, buffer.Length - start));return bi.Next() + start;}" }, { "index": 739, "before": "final public SrndQuery PrimaryQuery() throws ParseException {SrndQuery q;switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case LPAREN:jj_consume_token(LPAREN);q = FieldsQuery();jj_consume_token(RPAREN);break;case OR:case AND:case W:case N:q = PrefixOperatorQuery();break;case TRUNCQUOTED:case QUOTED:case SUFFIXTERM:case TRUNCTERM:case TERM:q = SimpleTerm();break;default:jj_la1[5] = jj_gen;jj_consume_token(-1);throw new ParseException();}OptionalWeights(q);{if (true) return q;}throw new Error(\"Missing return statement in function\");}", "after": "public SrndQuery PrimaryQuery(){SrndQuery q;switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.LPAREN:Jj_consume_token(RegexpToken.LPAREN);q = FieldsQuery();Jj_consume_token(RegexpToken.RPAREN);break;case RegexpToken.OR:case RegexpToken.AND:case RegexpToken.W:case RegexpToken.N:q = PrefixOperatorQuery();break;case RegexpToken.TRUNCQUOTED:case RegexpToken.QUOTED:case RegexpToken.SUFFIXTERM:case RegexpToken.TRUNCTERM:case RegexpToken.TERM:q = SimpleTerm();break;default:jj_la1[5] = jj_gen;Jj_consume_token(-1);throw new ParseException();}OptionalWeights(q);{ if (true) return q; }throw new Exception(\"Missing return statement in function\");}" }, { "index": 740, "before": "public DeleteApiKeyResult deleteApiKey(DeleteApiKeyRequest request) {request = beforeClientExecution(request);return executeDeleteApiKey(request);}", "after": "public virtual DeleteApiKeyResponse DeleteApiKey(DeleteApiKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApiKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApiKeyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 741, "before": "public InsertTagsRequest() {super(\"Ots\", \"2016-06-20\", \"InsertTags\", \"ots\");setMethod(MethodType.POST);}", "after": "public InsertTagsRequest(): base(\"Ots\", \"2016-06-20\", \"InsertTags\", \"ots\", \"openAPI\"){Method = MethodType.POST;}" }, { "index": 742, "before": "public DeleteUserByPrincipalIdResult deleteUserByPrincipalId(DeleteUserByPrincipalIdRequest request) {request = beforeClientExecution(request);return executeDeleteUserByPrincipalId(request);}", "after": "public virtual DeleteUserByPrincipalIdResponse DeleteUserByPrincipalId(DeleteUserByPrincipalIdRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUserByPrincipalIdRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUserByPrincipalIdResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 743, "before": "public DescribeNetworkInterfacesResult describeNetworkInterfaces(DescribeNetworkInterfacesRequest request) {request = beforeClientExecution(request);return executeDescribeNetworkInterfaces(request);}", "after": "public virtual DescribeNetworkInterfacesResponse DescribeNetworkInterfaces(DescribeNetworkInterfacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNetworkInterfacesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNetworkInterfacesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 744, "before": "public int serialize( int offset, byte[] data, EscherSerializationListener listener ){listener.beforeRecordSerialize( offset, getRecordId(), this );LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );LittleEndian.putInt( data, offset + 4, 8 );LittleEndian.putInt( data, offset + 8, field_1_numShapes );LittleEndian.putInt( data, offset + 12, field_2_lastMSOSPID );listener.afterRecordSerialize( offset + 16, getRecordId(), getRecordSize(), this );return getRecordSize();}", "after": "public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);LittleEndian.PutInt(data, offset + 4, 8);LittleEndian.PutInt(data, offset + 8, field_1_numShapes);LittleEndian.PutInt(data, offset + 12, field_2_lastMSOSPID);listener.AfterRecordSerialize(offset + 16, RecordId, RecordSize, this);return RecordSize;}" }, { "index": 745, "before": "public CreateSecurityConfigurationResult createSecurityConfiguration(CreateSecurityConfigurationRequest request) {request = beforeClientExecution(request);return executeCreateSecurityConfiguration(request);}", "after": "public virtual CreateSecurityConfigurationResponse CreateSecurityConfiguration(CreateSecurityConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSecurityConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSecurityConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 746, "before": "public DescribeClientVpnConnectionsResult describeClientVpnConnections(DescribeClientVpnConnectionsRequest request) {request = beforeClientExecution(request);return executeDescribeClientVpnConnections(request);}", "after": "public virtual DescribeClientVpnConnectionsResponse DescribeClientVpnConnections(DescribeClientVpnConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClientVpnConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClientVpnConnectionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 747, "before": "public static void fill(double[] array, double value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}", "after": "public static void fill(double[] array, double value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}" }, { "index": 748, "before": "public boolean hasNext() {return nextId < cells.length;}", "after": "public bool hasNext(){return pos < maxColumn;}" }, { "index": 749, "before": "public PostingsEnum reset(int[] postings) {this.postings = postings;upto = -2;freq = 0;return this;}", "after": "public DocsEnum Reset(int[] postings){this.postings = postings;upto = -2;freq_Renamed = 0;return this;}" }, { "index": 750, "before": "public final boolean hasAll(RevFlagSet set) {return (flags & set.mask) == set.mask;}", "after": "public bool HasAll(RevFlagSet set){return (flags & set.mask) == set.mask;}" }, { "index": 751, "before": "public ModifyAccountResult modifyAccount(ModifyAccountRequest request) {request = beforeClientExecution(request);return executeModifyAccount(request);}", "after": "public virtual ModifyAccountResponse ModifyAccount(ModifyAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyAccountResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 752, "before": "public Token LT(int k) {lazyInit();if ( k==0 ) return null;if ( k < 0 ) return LB(-k);int i = p + k - 1;sync(i);if ( i >= tokens.size() ) { return tokens.get(tokens.size()-1);}return tokens.get(i);}", "after": "public virtual IToken LT(int k){LazyInit();if (k == 0){return null;}if (k < 0){return Lb(-k);}int i = p + k - 1;Sync(i);if (i >= tokens.Count){return tokens[tokens.Count - 1];}return tokens[i];}" }, { "index": 753, "before": "public void removeSheet(int sheetIndex) {if (boundsheets.size() > sheetIndex) {records.remove(records.getBspos() - (boundsheets.size() - 1) + sheetIndex);boundsheets.remove(sheetIndex);fixTabIdRecord();}int sheetNum1Based = sheetIndex + 1;for(int i=0; i sheetNum1Based) {nr.setSheetNumber(nr.getSheetNumber()-1);}}if (linkTable != null) {linkTable.removeSheet(sheetIndex);}}", "after": "public void RemoveSheet(int sheetIndex){if (boundsheets.Count > sheetIndex){records.Remove(records.Bspos - (boundsheets.Count - 1) + sheetIndex);boundsheets.RemoveAt(sheetIndex);FixTabIdRecord();}int sheetNum1Based = sheetIndex + 1;for (int i = 0; i < NumNames; i++){NameRecord nr = GetNameRecord(i);if (nr.SheetNumber == sheetNum1Based){nr.SheetNumber = (0);}else if (nr.SheetNumber > sheetNum1Based){nr.SheetNumber = (nr.SheetNumber - 1);}}if (linkTable != null){for (int i = sheetIndex + 1; i < NumSheets + 1; i++){linkTable.RemoveSheet(i);}}}" }, { "index": 754, "before": "public void removeName(String name) {int index = getNameIndex(name);removeName(index);}", "after": "public void RemoveName(int index){names.RemoveAt(index);workbook.RemoveName(index);}" }, { "index": 755, "before": "public boolean equals(final Object o) {if (!(o instanceof Property)) {return false;}final Property p = (Property) o;final Object pValue = p.getValue();final long pId = p.getID();if (id != pId || (id != 0 && !typesAreEqual(type, p.getType()))) {return false;}if (value == null && pValue == null) {return true;}if (value == null || pValue == null) {return false;}final Class valueClass = value.getClass();final Class pValueClass = pValue.getClass();if (!(valueClass.isAssignableFrom(pValueClass)) &&!(pValueClass.isAssignableFrom(valueClass))) {return false;}if (value instanceof byte[]) {byte[] thisVal = (byte[]) value, otherVal = (byte[]) pValue;int len = unpaddedLength(thisVal);if (len != unpaddedLength(otherVal)) {return false;}for (int i=0; i(request, options);}" }, { "index": 761, "before": "public void construct(CellValueRecordInterface rec, RecordStream rs, SharedValueManager sfh) {if (rec instanceof FormulaRecord) {FormulaRecord formulaRec = (FormulaRecord)rec;StringRecord cachedText;Class nextClass = rs.peekNextClass();if (nextClass == StringRecord.class) {cachedText = (StringRecord) rs.getNext();} else {cachedText = null;}insertCell(new FormulaRecordAggregate(formulaRec, cachedText, sfh));} else {insertCell(rec);}}", "after": "public void Construct(CellValueRecordInterface rec, RecordStream rs, SharedValueManager sfh){if (rec is FormulaRecord){FormulaRecord formulaRec = (FormulaRecord)rec;StringRecord cachedText=null;Type nextClass = rs.PeekNextClass();if (nextClass == typeof(StringRecord)){cachedText = (StringRecord)rs.GetNext();}else{cachedText = null;}InsertCell(new FormulaRecordAggregate(formulaRec, cachedText, sfh));}else{InsertCell(rec);}}" }, { "index": 762, "before": "public Decompressor clone() {return new DeflateDecompressor();}", "after": "public override object Clone(){return new DeflateDecompressor();}" }, { "index": 763, "before": "public UpdateS3ResourcesResult updateS3Resources(UpdateS3ResourcesRequest request) {request = beforeClientExecution(request);return executeUpdateS3Resources(request);}", "after": "public virtual UpdateS3ResourcesResponse UpdateS3Resources(UpdateS3ResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateS3ResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateS3ResourcesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 764, "before": "public GroupQueryNode(QueryNode query) {if (query == null) {throw new QueryNodeError(new MessageImpl(QueryParserMessages.PARAMETER_VALUE_NOT_SUPPORTED, \"query\", \"null\"));}allocate();setLeaf(false);add(query);}", "after": "public GroupQueryNode(IQueryNode query){if (query == null){throw new QueryNodeError(new Message(QueryParserMessages.PARAMETER_VALUE_NOT_SUPPORTED, \"query\", \"null\"));}Allocate();IsLeaf = false;Add(query);}" }, { "index": 765, "before": "public CharSequence toQueryString(EscapeQuerySyntax escaper) {StringBuilder path = new StringBuilder();path.append(\"/\").append(getFirstPathElement());for (QueryText pathelement : getPathElements(1)) {CharSequence value = escaper.escape(pathelement.value, Locale.getDefault(), Type.STRING);path.append(\"/\\\"\").append(value).append(\"\\\"\");}return path.toString();}", "after": "public override string ToQueryString(IEscapeQuerySyntax escaper){StringBuilder path = new StringBuilder();path.Append(\"/\").Append(GetFirstPathElement());foreach (QueryText pathelement in GetPathElements(1)){string value = escaper.Escape(new StringCharSequence(pathelement.Value),CultureInfo.InvariantCulture, EscapeQuerySyntaxType.STRING).ToString();path.Append(\"/\\\"\").Append(value).Append(\"\\\"\");}return path.ToString();}" }, { "index": 766, "before": "public void removeCellComment() {HSSFComment comment = _sheet.findCellComment(_record.getRow(), _record.getColumn());_comment = null;if (null == comment){return;}_sheet.getDrawingPatriarch().removeShape(comment);}", "after": "public void RemoveCellComment(){HSSFComment comment2 = _sheet.FindCellComment(_record.Row, _record.Column);comment = null;if (null == comment2){return;}(_sheet.DrawingPatriarch as HSSFPatriarch).RemoveShape(comment2);}" }, { "index": 767, "before": "public void reset() {arriving = -1;leaving = -1;}", "after": "public void Reset(){count = 0;Debug.Assert(forwardCount == 0, \"pos=\" + pos + \" forwardCount=\" + forwardCount);}" }, { "index": 768, "before": "public ActivateUserResult activateUser(ActivateUserRequest request) {request = beforeClientExecution(request);return executeActivateUser(request);}", "after": "public virtual ActivateUserResponse ActivateUser(ActivateUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = ActivateUserRequestMarshaller.Instance;options.ResponseUnmarshaller = ActivateUserResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 769, "before": "public boolean isCharsetDetected() {throw new UnsupportedOperationException();}", "after": "public virtual bool isCharsetDetected(){throw new System.NotSupportedException();}" }, { "index": 770, "before": "public Cluster modifySnapshotCopyRetentionPeriod(ModifySnapshotCopyRetentionPeriodRequest request) {request = beforeClientExecution(request);return executeModifySnapshotCopyRetentionPeriod(request);}", "after": "public virtual ModifySnapshotCopyRetentionPeriodResponse ModifySnapshotCopyRetentionPeriod(ModifySnapshotCopyRetentionPeriodRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifySnapshotCopyRetentionPeriodRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifySnapshotCopyRetentionPeriodResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 771, "before": "public DeleteClusterSubnetGroupResult deleteClusterSubnetGroup(DeleteClusterSubnetGroupRequest request) {request = beforeClientExecution(request);return executeDeleteClusterSubnetGroup(request);}", "after": "public virtual DeleteClusterSubnetGroupResponse DeleteClusterSubnetGroup(DeleteClusterSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClusterSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClusterSubnetGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 772, "before": "public static String decode(byte[] buffer) {return decode(buffer, 0, buffer.length);}", "after": "public static string Decode(byte[] buffer){return Decode(buffer, 0, buffer.Length);}" }, { "index": 773, "before": "public int getDefaultPort() {return -1;}", "after": "public virtual int GetDefaultPort(){return -1;}" }, { "index": 774, "before": "public StopTaskResult stopTask(StopTaskRequest request) {request = beforeClientExecution(request);return executeStopTask(request);}", "after": "public virtual StopTaskResponse StopTask(StopTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTaskResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 775, "before": "public void seekExact(BytesRef target, TermState otherState) {assert otherState != null && otherState instanceof BlockTermState;assert !doOrd || ((BlockTermState) otherState).ord < numTerms;state.copyFrom(otherState);seekPending = true;indexIsCurrent = false;term.copyBytes(target);}", "after": "public override void SeekExact(BytesRef target, TermState otherState){if (!target.Equals(term_Renamed)){state.CopyFrom(otherState);term_Renamed = BytesRef.DeepCopyOf(target);seekPending = true;}}" }, { "index": 776, "before": "public SeriesToChartGroupRecord(RecordInputStream in) {field_1_chartGroupIndex = in.readShort();}", "after": "public SeriesToChartGroupRecord(RecordInputStream in1){field_1_chartGroupIndex = in1.ReadShort();}" }, { "index": 777, "before": "public static void writeUnicodeStringFlagAndData(LittleEndianOutput out, String value) {boolean is16Bit = hasMultibyte(value);out.writeByte(is16Bit ? 0x01 : 0x00);if (is16Bit) {putUnicodeLE(value, out);} else {putCompressedUnicode(value, out);}}", "after": "public static void WriteUnicodeStringFlagAndData(ILittleEndianOutput out1, String value){bool is16Bit = HasMultibyte(value);out1.WriteByte(is16Bit ? 0x01 : 0x00);if (is16Bit){PutUnicodeLE(value, out1);}else{PutCompressedUnicode(value, out1);}}" }, { "index": 778, "before": "public AuthorizeSecurityGroupIngressResult authorizeSecurityGroupIngress(AuthorizeSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeAuthorizeSecurityGroupIngress(request);}", "after": "public virtual AuthorizeSecurityGroupIngressResponse AuthorizeSecurityGroupIngress(AuthorizeSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 779, "before": "public void addFile(String file) {checkFileNames(Collections.singleton(file));setFiles.add(namedForThisSegment(file));}", "after": "public void AddFile(string file){CheckFileNames(new[] { file });setFiles.Add(file);}" }, { "index": 780, "before": "public void setSize(int width, int height) {mWidth = width;mHeight = height;}", "after": "public virtual void setSize(int width, int height){mWidth = width;mHeight = height;}" }, { "index": 781, "before": "public final void setPrecedenceFilterSuppressed(boolean value) {if (value) {this.reachesIntoOuterContext |= 0x40000000;}else {this.reachesIntoOuterContext &= ~SUPPRESS_PRECEDENCE_FILTER;}}", "after": "public void SetPrecedenceFilterSuppressed(bool value){if (value){this.reachesIntoOuterContext |= SUPPRESS_PRECEDENCE_FILTER;}else {this.reachesIntoOuterContext &= ~SUPPRESS_PRECEDENCE_FILTER;}}" }, { "index": 782, "before": "public IntervalSet LOOK(ATNState s, RuleContext ctx) {return LOOK(s, null, ctx);}", "after": "public virtual IntervalSet Look(ATNState s, RuleContext ctx){return Look(s, null, ctx);}" }, { "index": 783, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(getOptionFlags());out.writeShort(getRowHeight());}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(OptionFlags);out1.WriteShort(RowHeight);}" }, { "index": 784, "before": "public Builder(boolean dedup) {this.dedup = dedup;}", "after": "public Builder(bool dedup){this.dedup = dedup;}" }, { "index": 785, "before": "public Hashtable(int capacity, float loadFactor) {this(capacity);if (loadFactor <= 0 || Float.isNaN(loadFactor)) {throw new IllegalArgumentException(\"Load factor: \" + loadFactor);}}", "after": "public Hashtable(int capacity, float loadFactor) : this(capacity){if (loadFactor <= 0 || float.IsNaN(loadFactor)){throw new System.ArgumentException(\"Load factor: \" + loadFactor);}}" }, { "index": 786, "before": "public Object get(CharSequence key) {final int bucket = normalCompletion.getBucket(key);return bucket == -1 ? null : Long.valueOf(bucket);}", "after": "public virtual object Get(string key){int bucket = normalCompletion.GetBucket(key);return bucket == -1 ? (long?)null : bucket;}" }, { "index": 787, "before": "public ListHyperParameterTuningJobsResult listHyperParameterTuningJobs(ListHyperParameterTuningJobsRequest request) {request = beforeClientExecution(request);return executeListHyperParameterTuningJobs(request);}", "after": "public virtual ListHyperParameterTuningJobsResponse ListHyperParameterTuningJobs(ListHyperParameterTuningJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHyperParameterTuningJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHyperParameterTuningJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 788, "before": "public DeleteTableResult deleteTable(String tableName) {return deleteTable(new DeleteTableRequest().withTableName(tableName));}", "after": "public virtual DeleteTableResponse DeleteTable(string tableName){var request = new DeleteTableRequest();request.TableName = tableName;return DeleteTable(request);}" }, { "index": 789, "before": "public final boolean lessThan(TextFragment fragA, TextFragment fragB){if (fragA.getScore() == fragB.getScore())return fragA.fragNum > fragB.fragNum;elsereturn fragA.getScore() < fragB.getScore();}", "after": "protected internal override bool LessThan(TextFragment fragA, TextFragment fragB){if (fragA.Score == fragB.Score)return fragA.FragNum > fragB.FragNum;elsereturn fragA.Score < fragB.Score;}" }, { "index": 790, "before": "public void freeBefore(int pos) {assert pos >= 0;assert pos <= nextPos;final int newCount = nextPos - pos;assert newCount <= count: \"newCount=\" + newCount + \" count=\" + count;assert newCount <= buffer.length: \"newCount=\" + newCount + \" buf.length=\" + buffer.length;count = newCount;}", "after": "public void FreeBefore(int pos){Debug.Assert(pos >= 0);Debug.Assert(pos <= nextPos);int newCount = nextPos - pos;Debug.Assert(newCount <= count, \"newCount=\" + newCount + \" count=\" + count);Debug.Assert(newCount <= buffer.Length, \"newCount=\" + newCount + \" buf.length=\" + buffer.Length);count = newCount;}" }, { "index": 791, "before": "public UpdateHITTypeOfHITResult updateHITTypeOfHIT(UpdateHITTypeOfHITRequest request) {request = beforeClientExecution(request);return executeUpdateHITTypeOfHIT(request);}", "after": "public virtual UpdateHITTypeOfHITResponse UpdateHITTypeOfHIT(UpdateHITTypeOfHITRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateHITTypeOfHITRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateHITTypeOfHITResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 792, "before": "public UpdateRecommenderConfigurationResult updateRecommenderConfiguration(UpdateRecommenderConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateRecommenderConfiguration(request);}", "after": "public virtual UpdateRecommenderConfigurationResponse UpdateRecommenderConfiguration(UpdateRecommenderConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRecommenderConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRecommenderConfigurationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 793, "before": "public int compareTo(BytesRef other) {return Arrays.compareUnsigned(this.bytes, this.offset, this.offset + this.length,other.bytes, other.offset, other.offset + other.length);}", "after": "public int CompareTo(object other) {BytesRef br = other as BytesRef;Debug.Assert(br != null);return utf8SortedAsUnicodeSortOrder.Compare(this, br);}" }, { "index": 794, "before": "public int stem(char s[], int len) {if (len > 4 && s[len-1] == 's')len--;if (len > 5 &&(endsWith(s, len, \"ene\") || (endsWith(s, len, \"ane\") &&useNynorsk )))return len - 3;if (len > 4 &&(endsWith(s, len, \"er\") || endsWith(s, len, \"en\") || endsWith(s, len, \"et\") || (endsWith(s, len, \"ar\") &&useNynorsk )))return len - 2;if (len > 3)switch(s[len-1]) {case 'a': case 'e': return len - 1;}return len;}", "after": "public virtual int Stem(char[] s, int len){if (len > 4 && s[len - 1] == 's'){len--;}if (len > 5 && (StemmerUtil.EndsWith(s, len, \"ene\") || (StemmerUtil.EndsWith(s, len, \"ane\") && useNynorsk))) {return len - 3;}if (len > 4 && (StemmerUtil.EndsWith(s, len, \"er\") || StemmerUtil.EndsWith(s, len, \"en\") || StemmerUtil.EndsWith(s, len, \"et\") || (StemmerUtil.EndsWith(s, len, \"ar\") && useNynorsk))) {return len - 2;}if (len > 3){switch (s[len - 1]){case 'a': case 'e': return len - 1;}}return len;}" }, { "index": 795, "before": "public DescribeDBSnapshotsResult describeDBSnapshots(DescribeDBSnapshotsRequest request) {request = beforeClientExecution(request);return executeDescribeDBSnapshots(request);}", "after": "public virtual DescribeDBSnapshotsResponse DescribeDBSnapshots(DescribeDBSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBSnapshotsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 796, "before": "public SortedSetDocValuesFacetField(String dim, String label) {super(\"dummy\", TYPE);FacetField.verifyLabel(label);FacetField.verifyLabel(dim);this.dim = dim;this.label = label;}", "after": "public SortedSetDocValuesFacetField(string dim, string label): base(\"dummy\", TYPE){FacetField.VerifyLabel(label);FacetField.VerifyLabel(dim);this.Dim = dim;this.Label = label;}" }, { "index": 797, "before": "public CreateDocumentationPartResult createDocumentationPart(CreateDocumentationPartRequest request) {request = beforeClientExecution(request);return executeCreateDocumentationPart(request);}", "after": "public virtual CreateDocumentationPartResponse CreateDocumentationPart(CreateDocumentationPartRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDocumentationPartRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDocumentationPartResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 798, "before": "public String getValue() {return value;}", "after": "public virtual string GetValue(){return value;}" }, { "index": 799, "before": "public ShortBuffer asReadOnlyBuffer() {return duplicate();}", "after": "public override java.nio.ShortBuffer asReadOnlyBuffer(){return duplicate();}" }, { "index": 800, "before": "public UpdateDataSourcePermissionsResult updateDataSourcePermissions(UpdateDataSourcePermissionsRequest request) {request = beforeClientExecution(request);return executeUpdateDataSourcePermissions(request);}", "after": "public virtual UpdateDataSourcePermissionsResponse UpdateDataSourcePermissions(UpdateDataSourcePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDataSourcePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDataSourcePermissionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 801, "before": "public static org.apache.poi.hssf.record.Record createSingleRecord(RecordInputStream in) {I_RecordCreator constructor = _recordCreatorsById.get(Integer.valueOf(in.getSid()));if (constructor == null) {return new UnknownRecord(in);}return constructor.create(in);}", "after": "public static Record CreateSingleRecord(RecordInputStream in1){if (_recordCreatorsById.ContainsKey(in1.Sid)){I_RecordCreator constructor = _recordCreatorsById[in1.Sid];return constructor.Create(in1);}else{return new UnknownRecord(in1);}}" }, { "index": 802, "before": "public int getCount() {return mTabs.size();}", "after": "public override int getCount(){return this._enclosing.mTabLayout.getChildCount();}" }, { "index": 803, "before": "public DeleteApplicationReferenceDataSourceResult deleteApplicationReferenceDataSource(DeleteApplicationReferenceDataSourceRequest request) {request = beforeClientExecution(request);return executeDeleteApplicationReferenceDataSource(request);}", "after": "public virtual DeleteApplicationReferenceDataSourceResponse DeleteApplicationReferenceDataSource(DeleteApplicationReferenceDataSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationReferenceDataSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationReferenceDataSourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 804, "before": "public CreateProjectVersionResult createProjectVersion(CreateProjectVersionRequest request) {request = beforeClientExecution(request);return executeCreateProjectVersion(request);}", "after": "public virtual CreateProjectVersionResponse CreateProjectVersion(CreateProjectVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProjectVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProjectVersionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 805, "before": "public IntBuffer slice() {return new ReadOnlyIntArrayBuffer(remaining(), backingArray, offset + position);}", "after": "public override java.nio.IntBuffer slice(){return new java.nio.ReadOnlyIntArrayBuffer(remaining(), backingArray, offset + _position);}" }, { "index": 806, "before": "public final byte get() {if (position == limit) {throw new BufferUnderflowException();}return this.block.peekByte(offset + position++);}", "after": "public sealed override byte get(){throw new System.NotImplementedException();}" }, { "index": 807, "before": "public LongBuffer put(int index, long c) {checkIndex(index);backingArray[offset + index] = c;return this;}", "after": "public override java.nio.LongBuffer put(int index, long c){checkIndex(index);backingArray[offset + index] = c;return this;}" }, { "index": 808, "before": "public StoredField(String name, float value) {super(name, TYPE);fieldsData = value;}", "after": "public StoredField(string name, float value): base(name, TYPE){FieldsData = new Single(value);}" }, { "index": 809, "before": "public IntervalSet getExpectedTokensWithinCurrentRule() {ATN atn = getInterpreter().atn;ATNState s = atn.states.get(getState());return atn.nextTokens(s);}", "after": "public virtual IntervalSet GetExpectedTokensWithinCurrentRule(){ATN atn = Interpreter.atn;ATNState s = atn.states[State];return atn.NextTokens(s);}" }, { "index": 810, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[FILESHARING]\\n\");buffer.append(\" .readonly = \").append(getReadOnly() == 1 ? \"true\" : \"false\").append(\"\\n\");buffer.append(\" .password = \").append(Integer.toHexString(getPassword())).append(\"\\n\");buffer.append(\" .username = \").append(getUsername()).append(\"\\n\");buffer.append(\"[/FILESHARING]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[FILESHARING]\\n\");buffer.Append(\" .Readonly = \").Append(ReadOnly == 1 ? \"true\" : \"false\").Append(\"\\n\");buffer.Append(\" .password = \").Append(StringUtil.ToHexString(Password)).Append(\"\\n\");buffer.Append(\" .username = \").Append(Username).Append(\"\\n\");buffer.Append(\"[/FILESHARING]\\n\");return buffer.ToString();}" }, { "index": 811, "before": "public SubmoduleInitCommand(Repository repo) {super(repo);paths = new ArrayList<>();}", "after": "protected internal SubmoduleInitCommand(Repository repo) : base(repo){paths = new AList();}" }, { "index": 812, "before": "public void include(String name, AnyObjectId id) {boolean validRefName = Repository.isValidRefName(name) || Constants.HEAD.equals(name);if (!validRefName)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidRefName, name));if (include.containsKey(name))throw new IllegalStateException(JGitText.get().duplicateRef + name);include.put(name, id.toObjectId());}", "after": "public virtual void Include(string name, AnyObjectId id){if (!Repository.IsValidRefName(name)){throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidRefName, name));}if (include.ContainsKey(name)){throw new InvalidOperationException(JGitText.Get().duplicateRef + name);}include.Put(name, id.ToObjectId());}" }, { "index": 813, "before": "public Cluster enableSnapshotCopy(EnableSnapshotCopyRequest request) {request = beforeClientExecution(request);return executeEnableSnapshotCopy(request);}", "after": "public virtual EnableSnapshotCopyResponse EnableSnapshotCopy(EnableSnapshotCopyRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableSnapshotCopyRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableSnapshotCopyResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 814, "before": "public ValueFiller getValueFiller() {return new ValueFiller() {private final MutableValueFloat mval = new MutableValueFloat();@Override", "after": "public virtual ValueFiller GetValueFiller(){return new ValueFillerAnonymousInnerClassHelper(this);}" }, { "index": 815, "before": "public void serialize(LittleEndianOutput out) {out.writeByte(getPane());out.writeShort(getActiveCellRow());out.writeShort(getActiveCellCol());out.writeShort(getActiveCellRef());int nRefs = field_6_refs.length;out.writeShort(nRefs);for (CellRangeAddress8Bit field_6_ref : field_6_refs) {field_6_ref.serialize(out);}}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteByte(Pane);out1.WriteShort(ActiveCellRow);out1.WriteShort(ActiveCellCol);out1.WriteShort(ActiveCellRef);int nRefs = field_6_refs.Length;out1.WriteShort(nRefs);for (int i = 0; i < field_6_refs.Length; i++){field_6_refs[i].Serialize(out1);}}" }, { "index": 816, "before": "public static Counter newCounter() {return newCounter(false);}", "after": "public static Counter NewCounter(){return NewCounter(false);}" }, { "index": 817, "before": "public boolean get(String name, boolean dflt) {boolean vals[] = (boolean[]) valByRound.get(name);if (vals != null) {return vals[roundNumber % vals.length];}String sval = props.getProperty(name, \"\" + dflt);if (sval.indexOf(\":\") < 0) {return Boolean.valueOf(sval).booleanValue();}int k = sval.indexOf(\":\");String colName = sval.substring(0, k);sval = sval.substring(k + 1);colForValByRound.put(name, colName);vals = propToBooleanArray(sval);valByRound.put(name, vals);return vals[roundNumber % vals.length];}", "after": "public virtual int Get(string name, int dflt){int[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (int[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt.ToString(CultureInfo.InvariantCulture);}if (sval.IndexOf(':') < 0){return int.Parse(sval, CultureInfo.InvariantCulture);}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToInt32Array(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}" }, { "index": 818, "before": "public void preSerialize(){if(records.getTabpos() > 0) {TabIdRecord tir = ( TabIdRecord ) records.get(records.getTabpos());if(tir._tabids.length < boundsheets.size()) {fixTabIdRecord();}}}", "after": "public void PreSerialize(){if (records.Tabpos > 0){TabIdRecord tir = (TabIdRecord)records[(records.Tabpos)];if (tir._tabids.Length < boundsheets.Count){FixTabIdRecord();}}}" }, { "index": 819, "before": "public LimitTokenCountAnalyzer(Analyzer delegate, int maxTokenCount, boolean consumeAllTokens) {super(delegate.getReuseStrategy());this.delegate = delegate;this.maxTokenCount = maxTokenCount;this.consumeAllTokens = consumeAllTokens;}", "after": "public LimitTokenCountAnalyzer(Analyzer @delegate, int maxTokenCount, bool consumeAllTokens): base(@delegate.Strategy){this.@delegate = @delegate;this.maxTokenCount = maxTokenCount;this.consumeAllTokens = consumeAllTokens;}" }, { "index": 820, "before": "public ExternalBookBlock(int numberOfSheets) {_externalBookRecord = SupBookRecord.createInternalReferences((short) numberOfSheets);_externalNameRecords = new ExternalNameRecord[0];_crnBlocks = new CRNBlock[0];}", "after": "public ExternalBookBlock(int numberOfSheets){_externalBookRecord = SupBookRecord.CreateInternalReferences((short)numberOfSheets);_externalNameRecords = new ExternalNameRecord[0];_crnBlocks = new CRNBlock[0];}" }, { "index": 821, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append(\"[SCENARIOPROTECT]\\n\");buffer.append(\" .protect = \").append(getProtect()).append(\"\\n\");buffer.append(\"[/SCENARIOPROTECT]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SCENARIOPROTECT]\\n\");buffer.Append(\" .protect = \").Append(Protect).Append(\"\\n\");buffer.Append(\"[/SCENARIOPROTECT]\\n\");return buffer.ToString();}" }, { "index": 822, "before": "public PushCommand setThin(boolean thin) {checkCallable();this.thin = thin;return this;}", "after": "public virtual NGit.Api.PushCommand SetThin(bool thin){CheckCallable();this.thin = thin;return this;}" }, { "index": 823, "before": "public int compareTo(SearcherTracker other) {return Double.compare(other.recordTimeSec, recordTimeSec);}", "after": "public int CompareTo(SearcherTracker other){return other.RecordTimeSec.CompareTo(RecordTimeSec);}" }, { "index": 824, "before": "public ReverseStringFilter create(TokenStream in) {return new ReverseStringFilter(in);}", "after": "public override TokenStream Create(TokenStream input){return new ReverseStringFilter(m_luceneMatchVersion, input);}" }, { "index": 825, "before": "public BlockList() {directory = BlockList. newDirectory(256);directory[0] = BlockList. newBlock();tailBlock = directory[0];}", "after": "public BlockList(){directory = NGit.Util.BlockList.NewDirectory(256);directory[0] = NGit.Util.BlockList.NewBlock();tailBlock = directory[0];}" }, { "index": 826, "before": "public QueryScorer(WeightedSpanTerm[] weightedTerms) {this.fieldWeightedSpanTerms = new HashMap<>(weightedTerms.length);for (int i = 0; i < weightedTerms.length; i++) {WeightedSpanTerm existingTerm = fieldWeightedSpanTerms.get(weightedTerms[i].term);if ((existingTerm == null) ||(existingTerm.weight < weightedTerms[i].weight)) {fieldWeightedSpanTerms.put(weightedTerms[i].term, weightedTerms[i]);maxTermWeight = Math.max(maxTermWeight, weightedTerms[i].getWeight());}}skipInitExtractor = true;}", "after": "public QueryScorer(WeightedSpanTerm[] weightedTerms){this.fieldWeightedSpanTerms = new JCG.Dictionary(weightedTerms.Length);foreach (WeightedSpanTerm t in weightedTerms){if (!fieldWeightedSpanTerms.TryGetValue(t.Term, out WeightedSpanTerm existingTerm) ||(existingTerm == null) ||(existingTerm.Weight < t.Weight)){fieldWeightedSpanTerms[t.Term] = t;maxTermWeight = Math.Max(maxTermWeight, t.Weight);}}skipInitExtractor = true;}" }, { "index": 827, "before": "public boolean equals(Object _other) {assert neverEquals(_other);if (_other instanceof MergedGroup) {MergedGroup other = (MergedGroup) _other;if (groupValue == null) {return other == null;} else {return groupValue.equals(other);}} else {return false;}}", "after": "public override bool Equals(object other){Debug.Assert(NeverEquals(other));if (other is MergedGroup otherMergedGroup){if (groupValue == null){return otherMergedGroup == null;}else{return groupValueIsValueType ?JCG.EqualityComparer.Default.Equals(groupValue, otherMergedGroup.groupValue) :J2N.Collections.StructuralEqualityComparer.Default.Equals(groupValue, otherMergedGroup.groupValue);}}else{return false;}}" }, { "index": 828, "before": "public final Charset charset() {return cs;}", "after": "public java.nio.charset.Charset charset(){return cs;}" }, { "index": 829, "before": "public DescribeExperimentResult describeExperiment(DescribeExperimentRequest request) {request = beforeClientExecution(request);return executeDescribeExperiment(request);}", "after": "public virtual DescribeExperimentResponse DescribeExperiment(DescribeExperimentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeExperimentRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeExperimentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 830, "before": "public EscherGraphics(HSSFShapeGroup escherGroup, HSSFWorkbook workbook, Color forecolor, float verticalPointsPerPixel ){this.escherGroup = escherGroup;this.workbook = workbook;this.verticalPointsPerPixel = verticalPointsPerPixel;this.verticalPixelsPerPoint = 1 / verticalPointsPerPixel;this.font = new Font(\"Arial\", 0, 10);this.foreground = forecolor;}", "after": "public EscherGraphics(HSSFShapeGroup escherGroup, HSSFWorkbook workbook, Color forecolor, float verticalPointsPerPixel){this.escherGroup = escherGroup;this.workbook = workbook;this.verticalPointsPerPixel = verticalPointsPerPixel;this.verticalPixelsPerPoint = 1 / verticalPointsPerPixel;this.font = new Font(\"Arial\", 10);this.foreground = forecolor;}" }, { "index": 831, "before": "public String pattern() {return patternText;}", "after": "public virtual string Pattern(){return patternText;}" }, { "index": 832, "before": "public DeleteRouteTableResult deleteRouteTable(DeleteRouteTableRequest request) {request = beforeClientExecution(request);return executeDeleteRouteTable(request);}", "after": "public virtual DeleteRouteTableResponse DeleteRouteTable(DeleteRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRouteTableResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 833, "before": "public AssociateVPCWithHostedZoneResult associateVPCWithHostedZone(AssociateVPCWithHostedZoneRequest request) {request = beforeClientExecution(request);return executeAssociateVPCWithHostedZone(request);}", "after": "public virtual AssociateVPCWithHostedZoneResponse AssociateVPCWithHostedZone(AssociateVPCWithHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateVPCWithHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateVPCWithHostedZoneResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 834, "before": "public PutIntegrationResult putIntegration(PutIntegrationRequest request) {request = beforeClientExecution(request);return executePutIntegration(request);}", "after": "public virtual PutIntegrationResponse PutIntegration(PutIntegrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutIntegrationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutIntegrationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 835, "before": "public SimpleEntry(K theKey, V theValue) {key = theKey;value = theValue;}", "after": "public SimpleEntry(K theKey, V theValue){key = theKey;value = theValue;}" }, { "index": 836, "before": "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;values[valuesOffset++] = (byte0 << 4) | (byte1 >>> 4);final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 15) << 8) | byte2;}}", "after": "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;values[valuesOffset++] = (byte0 << 4) | ((int)((uint)byte1 >> 4));int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 15) << 8) | byte2;}}" }, { "index": 837, "before": "public DisassociateConnectionFromLagResult disassociateConnectionFromLag(DisassociateConnectionFromLagRequest request) {request = beforeClientExecution(request);return executeDisassociateConnectionFromLag(request);}", "after": "public virtual DisassociateConnectionFromLagResponse DisassociateConnectionFromLag(DisassociateConnectionFromLagRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateConnectionFromLagRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateConnectionFromLagResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 838, "before": "public FileMode getOldMode() {return oldMode;}", "after": "public virtual FileMode GetOldMode(){return oldMode;}" }, { "index": 839, "before": "@Override public String toString() {return m.toString();}", "after": "public override string ToString(){return mapEntry.ToString();}" }, { "index": 840, "before": "public StopKeyPhrasesDetectionJobResult stopKeyPhrasesDetectionJob(StopKeyPhrasesDetectionJobRequest request) {request = beforeClientExecution(request);return executeStopKeyPhrasesDetectionJob(request);}", "after": "public virtual StopKeyPhrasesDetectionJobResponse StopKeyPhrasesDetectionJob(StopKeyPhrasesDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopKeyPhrasesDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopKeyPhrasesDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 841, "before": "public String toString() {return \"[Array Formula or Shared Formula]\\n\" + \"row = \" + getRow() + \"\\n\" + \"col = \" + getColumn() + \"\\n\";}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder(\"[Array Formula or Shared Formula]\\n\");buffer.Append(\"row = \").Append(Row).Append(\"\\n\");buffer.Append(\"col = \").Append(Column).Append(\"\\n\");return buffer.ToString();}" }, { "index": 842, "before": "public ListDominantLanguageDetectionJobsResult listDominantLanguageDetectionJobs(ListDominantLanguageDetectionJobsRequest request) {request = beforeClientExecution(request);return executeListDominantLanguageDetectionJobs(request);}", "after": "public virtual ListDominantLanguageDetectionJobsResponse ListDominantLanguageDetectionJobs(ListDominantLanguageDetectionJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDominantLanguageDetectionJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDominantLanguageDetectionJobsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 843, "before": "public String toString() {return \"slice start=\" + start + \" length=\" + length + \" readerIndex=\" + readerIndex;}", "after": "public override string ToString(){return \"slice start=\" + Start + \" length=\" + Length + \" readerIndex=\" + ReaderIndex;}" }, { "index": 844, "before": "public static final int parseHexInt4(final byte digit) {final byte r = digits16[digit];if (r < 0)throw new ArrayIndexOutOfBoundsException();return r;}", "after": "public static int ParseHexInt4(byte digit){sbyte r = digits16[digit];if (r < 0){throw new IndexOutOfRangeException();}return r;}" }, { "index": 845, "before": "public Attribute(String name, String value) {setName(name);setValue(value);}", "after": "public Attribute(string name, string value){_name = name;_value = value;}" }, { "index": 846, "before": "public DescribeStackSetOperationResult describeStackSetOperation(DescribeStackSetOperationRequest request) {request = beforeClientExecution(request);return executeDescribeStackSetOperation(request);}", "after": "public virtual DescribeStackSetOperationResponse DescribeStackSetOperation(DescribeStackSetOperationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStackSetOperationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStackSetOperationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 847, "before": "public HSSFCell getCell(int cellnum) {return getCell(cellnum, book.getMissingCellPolicy());}", "after": "public ICell GetCell(short cellnum){int ushortCellNum = cellnum & 0x0000FFFF; return GetCell(ushortCellNum);}" }, { "index": 848, "before": "public void write(byte[] b) {writeContinueIfRequired(b.length);_ulrOutput.write(b);}", "after": "public void Write(byte[] b){WriteContinueIfRequired(b.Length);_ulrOutput.Write(b);}" }, { "index": 849, "before": "public ResetImageAttributeRequest(String imageId, ResetImageAttributeName attribute) {setImageId(imageId);setAttribute(attribute.toString());}", "after": "public ResetImageAttributeRequest(string imageId, ResetImageAttributeName attribute){_imageId = imageId;_attribute = attribute;}" }, { "index": 850, "before": "public void discardResultContents() {resultContents = null;}", "after": "public virtual void DiscardResultContents(){resultContents = null;}" }, { "index": 851, "before": "public ObjectId getPeeledObjectId() {return getLeaf().getPeeledObjectId();}", "after": "public virtual ObjectId GetPeeledObjectId(){return GetLeaf().GetPeeledObjectId();}" }, { "index": 852, "before": "public void undeprecateDomain(UndeprecateDomainRequest request) {request = beforeClientExecution(request);executeUndeprecateDomain(request);}", "after": "public virtual UndeprecateDomainResponse UndeprecateDomain(UndeprecateDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = UndeprecateDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = UndeprecateDomainResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 853, "before": "public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeByte(field_3_string.length()); out.writeByte(_is16bitUnicode ? 0x01 : 0x00);if (_is16bitUnicode) {StringUtil.putUnicodeLE(field_3_string, out);} else {StringUtil.putCompressedUnicode(field_3_string, out);}}", "after": "public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteByte(field_3_string.Length); out1.WriteByte(_is16bitUnicode ? 0x01 : 0x00);if (_is16bitUnicode){StringUtil.PutUnicodeLE(field_3_string, out1);}else{StringUtil.PutCompressedUnicode(field_3_string, out1);}}" }, { "index": 854, "before": "public DeleteQueueResult deleteQueue(String queueUrl) {return deleteQueue(new DeleteQueueRequest().withQueueUrl(queueUrl));}", "after": "public virtual DeleteQueueResponse DeleteQueue(string queueUrl){var request = new DeleteQueueRequest();request.QueueUrl = queueUrl;return DeleteQueue(request);}" }, { "index": 855, "before": "public void setCheckEofAfterPackFooter(boolean b) {checkEofAfterPackFooter = b;}", "after": "public virtual void SetCheckEofAfterPackFooter(bool b){checkEofAfterPackFooter = b;}" }, { "index": 856, "before": "public void swap() {final int sBegin = beginA;final int sEnd = endA;beginA = beginB;endA = endB;beginB = sBegin;endB = sEnd;}", "after": "public virtual void Swap(){int sBegin = beginA;int sEnd = endA;beginA = beginB;endA = endB;beginB = sBegin;endB = sEnd;}" }, { "index": 857, "before": "public int getPackedGitWindowSize() {return packedGitWindowSize;}", "after": "public virtual int GetPackedGitWindowSize(){return packedGitWindowSize;}" }, { "index": 858, "before": "public PutMetricDataResult putMetricData(PutMetricDataRequest request) {request = beforeClientExecution(request);return executePutMetricData(request);}", "after": "public virtual PutMetricDataResponse PutMetricData(PutMetricDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutMetricDataRequestMarshaller.Instance;options.ResponseUnmarshaller = PutMetricDataResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 859, "before": "public GetCelebrityRecognitionResult getCelebrityRecognition(GetCelebrityRecognitionRequest request) {request = beforeClientExecution(request);return executeGetCelebrityRecognition(request);}", "after": "public virtual GetCelebrityRecognitionResponse GetCelebrityRecognition(GetCelebrityRecognitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCelebrityRecognitionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCelebrityRecognitionResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 860, "before": "public CreateQueueRequest(String queueName) {setQueueName(queueName);}", "after": "public CreateQueueRequest(string queueName){_queueName = queueName;}" }, { "index": 861, "before": "public Area3DPxg(int externalWorkbookNumber, SheetIdentifier sheetName, AreaReference arearef) {super(arearef);this.externalWorkbookNumber = externalWorkbookNumber;this.firstSheetName = sheetName.getSheetIdentifier().getName();if (sheetName instanceof SheetRangeIdentifier) {this.lastSheetName = ((SheetRangeIdentifier)sheetName).getLastSheetIdentifier().getName();} else {this.lastSheetName = null;}}", "after": "public Area3DPxg(int externalWorkbookNumber, SheetIdentifier sheetName, AreaReference arearef): base(arearef){this.externalWorkbookNumber = externalWorkbookNumber;this.firstSheetName = sheetName.SheetId.Name;if (sheetName is SheetRangeIdentifier){this.lastSheetName = ((SheetRangeIdentifier)sheetName).LastSheetIdentifier.Name;}else{this.lastSheetName = null;}}" }, { "index": 862, "before": "public void setBaseline(long clockTime) {t0 = clockTime;timeout = t0 + ticksAllowed;}", "after": "public virtual void SetBaseline(long clockTime){t0 = clockTime;timeout = t0 + ticksAllowed;}" }, { "index": 863, "before": "public MoveAddressToVpcResult moveAddressToVpc(MoveAddressToVpcRequest request) {request = beforeClientExecution(request);return executeMoveAddressToVpc(request);}", "after": "public virtual MoveAddressToVpcResponse MoveAddressToVpc(MoveAddressToVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = MoveAddressToVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = MoveAddressToVpcResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 864, "before": "public String toString() {String coll = collectionModel.getName();if (coll != null) {return String.format(Locale.ROOT, \"LM %s - %s\", getName(), coll);} else {return String.format(Locale.ROOT, \"LM %s\", getName());}}", "after": "public override string ToString(){string coll = m_collectionModel.GetName();if (coll != null){return string.Format(\"LM {0} - {1}\", GetName(), coll);}else{return string.Format(\"LM {0}\", GetName());}}" }, { "index": 865, "before": "public DescribeLagsResult describeLags(DescribeLagsRequest request) {request = beforeClientExecution(request);return executeDescribeLags(request);}", "after": "public virtual DescribeLagsResponse DescribeLags(DescribeLagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLagsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 866, "before": "public AreaEval offset(int relFirstRowIx, int relLastRowIx,int relFirstColIx, int relLastColIx) {if (_refEval == null) {return _areaEval.offset(relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);}return _refEval.offset(relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);}", "after": "public AreaEval Offset(int relFirstRowIx, int relLastRowIx,int relFirstColIx, int relLastColIx){if (_refEval == null){return _areaEval.Offset(relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);}return _refEval.Offset(relFirstRowIx, relLastRowIx, relFirstColIx, relLastColIx);}" }, { "index": 867, "before": "public ShortBuffer put(short[] src, int srcOffset, int shortCount) {byteBuffer.limit(limit * SizeOf.SHORT);byteBuffer.position(position * SizeOf.SHORT);if (byteBuffer instanceof ReadWriteDirectByteBuffer) {((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, shortCount);} else {((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, shortCount);}this.position += shortCount;return this;}", "after": "public override java.nio.ShortBuffer put(short[] src, int srcOffset, int shortCount){byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT);byteBuffer.position(_position * libcore.io.SizeOf.SHORT);if (byteBuffer is java.nio.ReadWriteDirectByteBuffer){((java.nio.ReadWriteDirectByteBuffer)byteBuffer).put(src, srcOffset, shortCount);}else{((java.nio.ReadWriteHeapByteBuffer)byteBuffer).put(src, srcOffset, shortCount);}this._position += shortCount;return this;}" }, { "index": 868, "before": "public void initialize(final String cat) {this._cat=cat;}", "after": "public override void Initialize(String cat){this._cat = cat;}" }, { "index": 869, "before": "public void write(int oneByte) throws IOException {out.write(oneByte);written++;}", "after": "public override void write(int oneByte){throw new System.NotImplementedException();}" }, { "index": 870, "before": "public DescribeImportImageTasksResult describeImportImageTasks(DescribeImportImageTasksRequest request) {request = beforeClientExecution(request);return executeDescribeImportImageTasks(request);}", "after": "public virtual DescribeImportImageTasksResponse DescribeImportImageTasks(DescribeImportImageTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeImportImageTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeImportImageTasksResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 871, "before": "public ColumnInfoRecord(RecordInputStream in) {_firstCol = in.readUShort();_lastCol = in.readUShort();_colWidth = in.readUShort();_xfIndex = in.readUShort();_options = in.readUShort();switch(in.remaining()) {case 2: field_6_reserved = in.readUShort();break;case 1:field_6_reserved = in.readByte();break;case 0:field_6_reserved = 0;break;default:throw new RuntimeException(\"Unusual record size remaining=(\" + in.remaining() + \")\");}}", "after": "public ColumnInfoRecord(RecordInputStream in1){_first_col = in1.ReadUShort();_last_col = in1.ReadUShort();_col_width = in1.ReadUShort();_xf_index = in1.ReadUShort();_options = in1.ReadUShort();switch (in1.Remaining){case 2: field_6_reserved = in1.ReadUShort();break;case 1:field_6_reserved = in1.ReadByte();break;case 0:field_6_reserved = 0;break;default:throw new Exception(\"Unusual record size remaining=(\" + in1.Remaining + \")\");}}" }, { "index": 872, "before": "public Status(IndexDiff diff) {super();this.diff = diff;hasUncommittedChanges = !diff.getAdded().isEmpty() || !diff.getChanged().isEmpty() || !diff.getRemoved().isEmpty() || !diff.getMissing().isEmpty() || !diff.getModified().isEmpty() || !diff.getConflicting().isEmpty();clean = !hasUncommittedChanges && diff.getUntracked().isEmpty();}", "after": "public Status(IndexDiff diff) : base(){this.diff = diff;clean = diff.GetAdded().IsEmpty() && diff.GetChanged().IsEmpty() && diff.GetRemoved().IsEmpty() && diff.GetMissing().IsEmpty() && diff.GetModified().IsEmpty() && diff.GetUntracked().IsEmpty() && diff.GetConflicting().IsEmpty();}" }, { "index": 873, "before": "public CreateExperimentResult createExperiment(CreateExperimentRequest request) {request = beforeClientExecution(request);return executeCreateExperiment(request);}", "after": "public virtual CreateExperimentResponse CreateExperiment(CreateExperimentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateExperimentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateExperimentResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 874, "before": "public UnknownRecord clone() {return copy();}", "after": "public override Object Clone(){return this;}" }, { "index": 875, "before": "public FloatBuffer slice() {byteBuffer.limit(limit * SizeOf.FLOAT);byteBuffer.position(position * SizeOf.FLOAT);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());FloatBuffer result = new FloatToByteBufferAdapter(bb);byteBuffer.clear();return result;}", "after": "public override java.nio.FloatBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.FLOAT);byteBuffer.position(_position * libcore.io.SizeOf.FLOAT);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.FloatBuffer result = new java.nio.FloatToByteBufferAdapter(bb);byteBuffer.clear();return result;}" }, { "index": 876, "before": "public DescribeSnapshotSchedulesResult describeSnapshotSchedules(DescribeSnapshotSchedulesRequest request) {request = beforeClientExecution(request);return executeDescribeSnapshotSchedules(request);}", "after": "public virtual DescribeSnapshotSchedulesResponse DescribeSnapshotSchedules(DescribeSnapshotSchedulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSnapshotSchedulesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSnapshotSchedulesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 877, "before": "public ListImagesResult listImages(ListImagesRequest request) {request = beforeClientExecution(request);return executeListImages(request);}", "after": "public virtual ListImagesResponse ListImages(ListImagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListImagesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListImagesResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 878, "before": "public Diff(int ins, int del, int rep, int noop) {INSERT = ins;DELETE = del;REPLACE = rep;NOOP = noop;}", "after": "public Diff(int ins, int del, int rep, int noop){INSERT = ins;DELETE = del;REPLACE = rep;NOOP = noop;}" }, { "index": 879, "before": "public String toFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append(\",\");buffer.append(operands[ 1 ]);return buffer.toString();}", "after": "public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(operands[0]);buffer.Append(\",\");buffer.Append(operands[1]);return buffer.ToString();}" }, { "index": 880, "before": "public static void setupEnvironment(String[] workbookNames, ForkedEvaluator[] evaluators) {WorkbookEvaluator[] wbEvals = new WorkbookEvaluator[evaluators.length];for (int i = 0; i < wbEvals.length; i++) {wbEvals[i] = evaluators[i]._evaluator;}CollaboratingWorkbooksEnvironment.setup(workbookNames, wbEvals);}", "after": "public static void SetupEnvironment(String[] workbookNames, ForkedEvaluator[] Evaluators){WorkbookEvaluator[] wbEvals = new WorkbookEvaluator[Evaluators.Length];for (int i = 0; i < wbEvals.Length; i++){wbEvals[i] = Evaluators[i]._evaluator;}CollaboratingWorkbooksEnvironment.Setup(workbookNames, wbEvals);}" }, { "index": 881, "before": "public ListPhotoTagsRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"ListPhotoTags\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public ListPhotoTagsRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"ListPhotoTags\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 882, "before": "public RandomSamplingFacetsCollector(int sampleSize, long seed) {super(false);this.sampleSize = sampleSize;this.random = new XORShift64Random(seed);this.sampledDocs = null;}", "after": "public RandomSamplingFacetsCollector(int sampleSize, long seed): base(false){this.sampleSize = sampleSize;this.random = new XORShift64Random(seed);this.sampledDocs = null;}" }, { "index": 883, "before": "public AllocateStaticIpResult allocateStaticIp(AllocateStaticIpRequest request) {request = beforeClientExecution(request);return executeAllocateStaticIp(request);}", "after": "public virtual AllocateStaticIpResponse AllocateStaticIp(AllocateStaticIpRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocateStaticIpRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocateStaticIpResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 884, "before": "public FeatRecord(RecordInputStream in) {futureHeader = new FtrHeader(in);isf_sharedFeatureType = in.readShort();reserved1 = in.readByte();reserved2 = in.readInt();int cref = in.readUShort();cbFeatData = in.readInt();reserved3 = in.readShort();cellRefs = new CellRangeAddress[cref];for(int i=0; i(request, options);}" }, { "index": 887, "before": "public Record getNext() {if(!hasNext()) {throw new RuntimeException(\"Attempt to read past end of record stream\");}_countRead ++;return _list.get(_nextIndex++);}", "after": "public Record GetNext(){if (_nextIndex >= _list.Count){throw new Exception(\"Attempt to Read past end of record stream\");}_countRead++;return (Record)_list[_nextIndex++];}" }, { "index": 888, "before": "public String toString() {return RawParseUtils.decode(buf.toByteArray());}", "after": "public override string ToString(){return RawParseUtils.Decode(buf.ToByteArray());}" }, { "index": 889, "before": "public ListTablesRequest(String exclusiveStartTableName) {setExclusiveStartTableName(exclusiveStartTableName);}", "after": "public ListTablesRequest(string exclusiveStartTableName){_exclusiveStartTableName = exclusiveStartTableName;}" }, { "index": 890, "before": "public EnableAlarmActionsResult enableAlarmActions(EnableAlarmActionsRequest request) {request = beforeClientExecution(request);return executeEnableAlarmActions(request);}", "after": "public virtual EnableAlarmActionsResponse EnableAlarmActions(EnableAlarmActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableAlarmActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableAlarmActionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 891, "before": "public Builder() {this(true);}", "after": "public Builder(): base(){lastDocID = -1;wordNum = -1;word = 0;}" }, { "index": 892, "before": "public boolean equals(Object obj) {final State other = (State) obj;return is_final == other.is_final&& Arrays.equals(this.labels, other.labels)&& referenceEquals(this.states, other.states);}", "after": "public override bool Equals(object obj){State other = (State)obj;return is_final == other.is_final && Arrays.Equals(this.labels, other.labels) && ReferenceEquals(this.states, other.states);}" }, { "index": 893, "before": "public TokenStream create(TokenStream input) {return new EnglishPossessiveFilter(input);}", "after": "public override TokenStream Create(TokenStream input){return new EnglishPossessiveFilter(m_luceneMatchVersion, input);}" }, { "index": 894, "before": "public void clearFormatting() {_string = cloneStringIfRequired();_string.clearFormatting();addToSSTIfRequired();}", "after": "public void ClearFormatting(){_string = CloneStringIfRequired();_string.ClearFormatting();AddToSSTIfRequired();}" }, { "index": 895, "before": "public int get(int index, long[] arr, int off, int len) {assert len > 0 : \"len must be > 0 (got \" + len + \")\";assert index >= 0 && index < valueCount;len = Math.min(len, valueCount - index);Arrays.fill(arr, off, off + len, 0);return len;}", "after": "public override int Get(int index, long[] arr, int off, int len){Debug.Assert(len > 0, \"len must be > 0 (got \" + len + \")\");Debug.Assert(index >= 0 && index < valueCount);len = Math.Min(len, valueCount - index);Arrays.Fill(arr, off, off + len, 0);return len;}" }, { "index": 896, "before": "public DeleteRouteResponseResult deleteRouteResponse(DeleteRouteResponseRequest request) {request = beforeClientExecution(request);return executeDeleteRouteResponse(request);}", "after": "public virtual DeleteRouteResponseResponse DeleteRouteResponse(DeleteRouteResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRouteResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRouteResponseResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 897, "before": "public String toPrivateString() {return format(true, false);}", "after": "public virtual string ToPrivateString(){return Format(true, false);}" }, { "index": 898, "before": "public CreatePresignedDomainUrlResult createPresignedDomainUrl(CreatePresignedDomainUrlRequest request) {request = beforeClientExecution(request);return executeCreatePresignedDomainUrl(request);}", "after": "public virtual CreatePresignedDomainUrlResponse CreatePresignedDomainUrl(CreatePresignedDomainUrlRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePresignedDomainUrlRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePresignedDomainUrlResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 899, "before": "public void write(int oneChar) {doWrite(new char[] { (char) oneChar }, 0, 1);}", "after": "public override void write(int oneChar){doWrite(new char[] { (char)oneChar }, 0, 1);}" }, { "index": 900, "before": "public SSTRecord getSSTRecord() {return sstRecord;}", "after": "public SSTRecord GetSSTRecord(){return sstRecord;}" }, { "index": 901, "before": "public String toString() {return \"term=\" + term + \",field=\" + field + \",value=\" + valueToString() + \",docIDUpto=\" + docIDUpto;}", "after": "public override string ToString(){return \"term=\" + term + \",field=\" + field + \",value=\" + value;}" }, { "index": 902, "before": "public boolean isSaturated(FuzzySet bloomFilter, FieldInfo fieldInfo) {return bloomFilter.getSaturation() > 0.9f;}", "after": "public override bool IsSaturated(FuzzySet bloomFilter, FieldInfo fieldInfo){return bloomFilter.GetSaturation() > 0.9f;}" }, { "index": 903, "before": "public Builder(boolean ignoreCase) {this.ignoreCase = ignoreCase;}", "after": "public Builder(bool ignoreCase){this.ignoreCase = ignoreCase;}" }, { "index": 904, "before": "public String toString() {return getClass().getName()+ \"(maxBasicQueries: \" + maxBasicQueries+ \", queriesMade: \" + queriesMade+ \")\";}", "after": "public override string ToString(){return GetType().Name+ \"(maxBasicQueries: \" + maxBasicQueries+ \", queriesMade: \" + queriesMade+ \")\";}" }, { "index": 905, "before": "public DeleteDataSourceResult deleteDataSource(DeleteDataSourceRequest request) {request = beforeClientExecution(request);return executeDeleteDataSource(request);}", "after": "public virtual DeleteDataSourceResponse DeleteDataSource(DeleteDataSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDataSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDataSourceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 906, "before": "public RebootNodeResult rebootNode(RebootNodeRequest request) {request = beforeClientExecution(request);return executeRebootNode(request);}", "after": "public virtual RebootNodeResponse RebootNode(RebootNodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootNodeRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootNodeResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 907, "before": "public void processChildRecords() {convertRawBytesToEscherRecords();}", "after": "public void ProcessChildRecords(){ConvertRawBytesToEscherRecords();}" }, { "index": 908, "before": "public CreateOrUpdateTagsResult createOrUpdateTags(CreateOrUpdateTagsRequest request) {request = beforeClientExecution(request);return executeCreateOrUpdateTags(request);}", "after": "public virtual CreateOrUpdateTagsResponse CreateOrUpdateTags(CreateOrUpdateTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateOrUpdateTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateOrUpdateTagsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 909, "before": "public FileSnapshot getSnapShot() {return snapShot;}", "after": "public FileSnapshot GetSnapShot(){return snapShot;}" }, { "index": 910, "before": "public InputStream openResource(String resource) throws IOException {final InputStream stream = (clazz != null) ?clazz.getResourceAsStream(resource) :loader.getResourceAsStream(resource);if (stream == null)throw new IOException(\"Resource not found: \" + resource);return stream;}", "after": "public Stream OpenResource(string resource){Stream stream = this.clazz.GetTypeInfo().Assembly.FindAndGetManifestResourceStream(clazz, resource);if (stream == null){throw new IOException(\"Resource not found: \" + resource);}return stream;}" }, { "index": 911, "before": "public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName()).append(\" [\");sb.append(\"sid=\").append(HexDump.shortToHex(_sid));sb.append(\" size=\").append(_data.length);sb.append(\" : \").append(HexDump.toHex(_data));sb.append(\"]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(\" [\");sb.Append(\"sid=\").Append(HexDump.ShortToHex(_sid));sb.Append(\" size=\").Append(_data.Length);sb.Append(\" : \").Append(HexDump.ToHex(_data));sb.Append(\"]\\n\");return sb.ToString();}" }, { "index": 912, "before": "public int nextIndex() {return index;}", "after": "public virtual int nextIndex(){return index;}" }, { "index": 913, "before": "public CharSequence toQueryString(EscapeQuerySyntax escaper) {if (isDefaultField(this.field)) {return \"\\\"\" + getTermEscapeQuoted(escaper) + \"\\\"\";} else {return this.field + \":\" + \"\\\"\" + getTermEscapeQuoted(escaper) + \"\\\"\";}}", "after": "public override string ToQueryString(IEscapeQuerySyntax escaper){if (IsDefaultField(this.m_field)){return \"\\\"\" + GetTermEscapeQuoted(escaper) + \"\\\"\";}else{return this.m_field + \":\" + \"\\\"\" + GetTermEscapeQuoted(escaper) + \"\\\"\";}}" }, { "index": 914, "before": "public CalcModeRecord clone() {return copy();}", "after": "public override Object Clone(){CalcModeRecord rec = new CalcModeRecord();rec.field_1_calcmode = field_1_calcmode;return rec;}" }, { "index": 915, "before": "public boolean isOutput() {return output;}", "after": "public virtual bool IsOutput(){return output;}" }, { "index": 916, "before": "public CreateNetworkInterfaceResult createNetworkInterface(CreateNetworkInterfaceRequest request) {request = beforeClientExecution(request);return executeCreateNetworkInterface(request);}", "after": "public virtual CreateNetworkInterfaceResponse CreateNetworkInterface(CreateNetworkInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNetworkInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNetworkInterfaceResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 917, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_password);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_password);}" }, { "index": 918, "before": "public StopDominantLanguageDetectionJobResult stopDominantLanguageDetectionJob(StopDominantLanguageDetectionJobRequest request) {request = beforeClientExecution(request);return executeStopDominantLanguageDetectionJob(request);}", "after": "public virtual StopDominantLanguageDetectionJobResponse StopDominantLanguageDetectionJob(StopDominantLanguageDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopDominantLanguageDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopDominantLanguageDetectionJobResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 919, "before": "public ECSMetadataServiceCredentialsFetcher withConnectionTimeout(int milliseconds) {this.connectionTimeoutInMilliseconds = milliseconds;return this;}", "after": "public void WithConnectionTimeout(int milliseconds){connectionTimeoutInMilliseconds = milliseconds;}" }, { "index": 920, "before": "public GetGatewayGroupResult getGatewayGroup(GetGatewayGroupRequest request) {request = beforeClientExecution(request);return executeGetGatewayGroup(request);}", "after": "public virtual GetGatewayGroupResponse GetGatewayGroup(GetGatewayGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGatewayGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGatewayGroupResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 921, "before": "public FloatBuffer slice() {return new ReadOnlyFloatArrayBuffer(remaining(), backingArray, offset + position);}", "after": "public override java.nio.FloatBuffer slice(){return new java.nio.ReadOnlyFloatArrayBuffer(remaining(), backingArray, offset +_position);}" }, { "index": 922, "before": "public static String join(Collection parts, String separator,String lastSeparator) {StringBuilder sb = new StringBuilder();int i = 0;int lastIndex = parts.size() - 1;for (String part : parts) {sb.append(part);if (i == lastIndex - 1) {sb.append(lastSeparator);} else if (i != lastIndex) {sb.append(separator);}i++;}return sb.toString();}", "after": "public static string Join(ICollection parts, string separator, string lastSeparator){StringBuilder sb = new StringBuilder();int i = 0;int lastIndex = parts.Count - 1;foreach (string part in parts){sb.Append(part);if (i == lastIndex - 1){sb.Append(lastSeparator);}else{if (i != lastIndex){sb.Append(separator);}}i++;}return sb.ToString();}" }, { "index": 923, "before": "public String toString() {return \"(\" + a.toString() + \" AND \" + b.toString() + \")\"; }", "after": "public override string ToString(){return \"(\" + a.ToString() + \" AND \" + b.ToString() + \")\";}" }, { "index": 924, "before": "public ListSubscriptionsByTopicRequest(String topicArn, String nextToken) {setTopicArn(topicArn);setNextToken(nextToken);}", "after": "public ListSubscriptionsByTopicRequest(string topicArn, string nextToken){_topicArn = topicArn;_nextToken = nextToken;}" }, { "index": 925, "before": "public byte readByte() {return bytes[pos--];}", "after": "public override byte ReadByte(){return bytes[pos--];}" }, { "index": 926, "before": "public TerminateClientVpnConnectionsResult terminateClientVpnConnections(TerminateClientVpnConnectionsRequest request) {request = beforeClientExecution(request);return executeTerminateClientVpnConnections(request);}", "after": "public virtual TerminateClientVpnConnectionsResponse TerminateClientVpnConnections(TerminateClientVpnConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = TerminateClientVpnConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = TerminateClientVpnConnectionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 927, "before": "public ReceiveMessageRequest(String queueUrl) {setQueueUrl(queueUrl);}", "after": "public ReceiveMessageRequest(string queueUrl){_queueUrl = queueUrl;}" }, { "index": 928, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_barSpace);out.writeShort(field_2_categorySpace);out.writeShort(field_3_formatFlags);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_barSpace);out1.WriteShort(field_2_categorySpace);out1.WriteShort(field_3_formatFlags);}" }, { "index": 929, "before": "public Object common(Object output1, Object output2) {return outputs.common((T) output1, (T) output2);}", "after": "public override object Common(object output1, object output2){return outputs.Common((T)output1, (T)output2);}" }, { "index": 930, "before": "public CreateVariableResult createVariable(CreateVariableRequest request) {request = beforeClientExecution(request);return executeCreateVariable(request);}", "after": "public virtual CreateVariableResponse CreateVariable(CreateVariableRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVariableRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVariableResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 931, "before": "public static final int match(byte[] b, int ptr, byte[] src) {if (ptr + src.length > b.length)return -1;for (int i = 0; i < src.length; i++, ptr++)if (b[ptr] != src[i])return -1;return ptr;}", "after": "public static int Match(byte[] b, int ptr, byte[] src){if (ptr + src.Length > b.Length){return -1;}for (int i = 0; i < src.Length; i++, ptr++){if (b[ptr] != src[i]){return -1;}}return ptr;}" }, { "index": 932, "before": "public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader( data, offset );int pos = offset + 8;int size = 0;field_1_rectX1 = LittleEndian.getInt( data, pos + size );size+=4;field_2_rectY1 = LittleEndian.getInt( data, pos + size );size+=4;field_3_rectX2 = LittleEndian.getInt( data, pos + size );size+=4;field_4_rectY2 = LittleEndian.getInt( data, pos + size );size+=4;bytesRemaining -= size;if (bytesRemaining != 0) {throw new RecordFormatException(\"Expected no remaining bytes but got \" + bytesRemaining);}return 8 + size + bytesRemaining;}", "after": "public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);int pos = offset + 8;int size = 0;field_1_rectX1 = LittleEndian.GetInt(data, pos + size); size += 4;field_2_rectY1 = LittleEndian.GetInt(data, pos + size); size += 4;field_3_rectX2 = LittleEndian.GetInt(data, pos + size); size += 4;field_4_rectY2 = LittleEndian.GetInt(data, pos + size); size += 4;bytesRemaining -= size;if (bytesRemaining != 0) throw new RecordFormatException(\"Expected no remaining bytes but got \" + bytesRemaining);return 8 + size + bytesRemaining;}" }, { "index": 933, "before": "public CreateCloudFrontOriginAccessIdentityResult createCloudFrontOriginAccessIdentity(CreateCloudFrontOriginAccessIdentityRequest request) {request = beforeClientExecution(request);return executeCreateCloudFrontOriginAccessIdentity(request);}", "after": "public virtual CreateCloudFrontOriginAccessIdentityResponse CreateCloudFrontOriginAccessIdentity(CreateCloudFrontOriginAccessIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCloudFrontOriginAccessIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 934, "before": "public boolean isNamespaceAware() {return getFeature (XmlPullParser.FEATURE_PROCESS_NAMESPACES);}", "after": "public virtual bool isNamespaceAware(){return getFeature(org.xmlpull.v1.XmlPullParserClass.FEATURE_PROCESS_NAMESPACES);}" }, { "index": 935, "before": "public void setOverridable(boolean on) {overridable = on;}", "after": "public virtual void SetOverridable(bool on){overridable = on;}" }, { "index": 936, "before": "public String getClassName() {return className;}", "after": "public virtual string getClassName(){return className;}" }, { "index": 937, "before": "public synchronized DirectoryReader getIndexReader() {if (indexReader != null) {indexReader.incRef();}return indexReader;}", "after": "public virtual DirectoryReader GetIndexReader(){lock (this){if (indexReader != null){indexReader.IncRef();}return indexReader;}}" }, { "index": 938, "before": "public int indexOfKey(int key) {return binarySearch(mKeys, 0, mSize, key);}", "after": "public virtual int indexOfKey(int key){return binarySearch(mKeys, 0, mSize, key);}" }, { "index": 939, "before": "public BlankRecord(RecordInputStream in) {field_1_row = in.readUShort();field_2_col = in.readShort();field_3_xf = in.readShort();}", "after": "public BlankRecord(RecordInputStream in1){field_1_row = in1.ReadUShort();field_2_col = in1.ReadShort();field_3_xf = in1.ReadShort();}" }, { "index": 940, "before": "public long length() {return length;}", "after": "public override long length(){return length_Renamed;}" }, { "index": 941, "before": "public PasswordRecord(RecordInputStream in) {field_1_password = in.readShort();}", "after": "public PasswordRecord(RecordInputStream in1){field_1_password = in1.ReadShort();}" }, { "index": 942, "before": "public HashMap(int capacity, float loadFactor) {this(capacity);if (loadFactor <= 0 || Float.isNaN(loadFactor)) {throw new IllegalArgumentException(\"Load factor: \" + loadFactor);}}", "after": "public HashMap(int capacity, float loadFactor) : this(capacity){if (loadFactor <= 0 || float.IsNaN(loadFactor)){throw new System.ArgumentException(\"Load factor: \" + loadFactor);}}" }, { "index": 943, "before": "public void run() {long lastReopenStartNS = System.nanoTime();while (!finish) {while (!finish) {reopenLock.lock();try {boolean hasWaiting = waitingGen > searchingGen;final long nextReopenStartNS = lastReopenStartNS + (hasWaiting ? targetMinStaleNS : targetMaxStaleNS);final long sleepNS = nextReopenStartNS - System.nanoTime();if (sleepNS > 0) {reopenCond.awaitNanos(sleepNS);} else {break;}} catch (InterruptedException ie) {Thread.currentThread().interrupt();return;} finally {reopenLock.unlock();}}if (finish) {break;}lastReopenStartNS = System.nanoTime();refreshStartGen = writer.getMaxCompletedSequenceNumber();try {manager.maybeRefreshBlocking();} catch (IOException ioe) {throw new RuntimeException(ioe);}}}", "after": "public override void Run(){long lastReopenStartNS = DateTime.UtcNow.Ticks * 100;while (!finish){bool hasWaiting;lock (this)hasWaiting = waitingGen > searchingGen;long nextReopenStartNS = lastReopenStartNS + (hasWaiting ? targetMinStaleNS : targetMaxStaleNS);long sleepNS = nextReopenStartNS - Time.NanoTime();if (sleepNS > 0)#if !NETSTANDARD1_6try{#endifreopenCond.WaitOne(TimeSpan.FromMilliseconds(sleepNS / Time.MILLISECONDS_PER_NANOSECOND));#if !NETSTANDARD1_6}#pragma warning disable 168catch (ThreadInterruptedException ie)#pragma warning restore 168{Thread.CurrentThread.Interrupt();return;}#endifif (finish){break;}lastReopenStartNS = Time.NanoTime();refreshStartGen = writer.GetAndIncrementGeneration();try{manager.MaybeRefreshBlocking();}catch (System.IO.IOException ioe){throw new Exception(ioe.ToString(), ioe);}}RefreshDone();}" }, { "index": 944, "before": "public DeleteLoginProfileRequest(String userName) {setUserName(userName);}", "after": "public DeleteLoginProfileRequest(string userName){_userName = userName;}" }, { "index": 945, "before": "public E pollFirst() {return (size == 0) ? null : removeFirstImpl();}", "after": "public virtual E pollFirst(){return (_size == 0) ? default(E) : removeFirstImpl();}" }, { "index": 946, "before": "public CreatePhotoRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"CreatePhoto\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public CreatePhotoRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"CreatePhoto\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 947, "before": "public String getName() {return \"resolve\"; }", "after": "public override string GetName(){return \"resolve\";}" }, { "index": 948, "before": "public int findEndOffset(StringBuilder buffer, int start) {if( start > buffer.length() || start < 0 ) return start;int offset, count = maxScan;for( offset = start; offset < buffer.length() && count > 0; count-- ){if( boundaryChars.contains( buffer.charAt( offset ) ) ) return offset;offset++;}return start;}", "after": "public virtual int FindEndOffset(StringBuilder buffer, int start){if (start > buffer.Length || start < 0) return start;int offset, count = m_maxScan;for (offset = start; offset < buffer.Length && count > 0; count--){if (m_boundaryChars.Contains(buffer[offset])) return offset;offset++;}return start;}" }, { "index": 949, "before": "public void setObjectChecker(ObjectChecker oc) {objCheck = oc;}", "after": "public virtual void SetObjectChecker(ObjectChecker oc){objCheck = oc;}" }, { "index": 950, "before": "public BaseRef(AreaEval ae) {_refEval = null;_areaEval = ae;_firstRowIndex = ae.getFirstRow();_firstColumnIndex = ae.getFirstColumn();_height = ae.getLastRow() - ae.getFirstRow() + 1;_width = ae.getLastColumn() - ae.getFirstColumn() + 1;}", "after": "public BaseRef(AreaEval ae){_refEval = null;_areaEval = ae;_firstRowIndex = ae.FirstRow;_firstColumnIndex = ae.FirstColumn;_height = ae.LastRow - ae.FirstRow + 1;_width = ae.LastColumn - ae.FirstColumn + 1;}" }, { "index": 951, "before": "public CreateVpcEndpointResult createVpcEndpoint(CreateVpcEndpointRequest request) {request = beforeClientExecution(request);return executeCreateVpcEndpoint(request);}", "after": "public virtual CreateVpcEndpointResponse CreateVpcEndpoint(CreateVpcEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpcEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpcEndpointResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 952, "before": "public DeregisterWorkspaceDirectoryResult deregisterWorkspaceDirectory(DeregisterWorkspaceDirectoryRequest request) {request = beforeClientExecution(request);return executeDeregisterWorkspaceDirectory(request);}", "after": "public virtual DeregisterWorkspaceDirectoryResponse DeregisterWorkspaceDirectory(DeregisterWorkspaceDirectoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterWorkspaceDirectoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterWorkspaceDirectoryResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 953, "before": "public ChartFRTInfoRecord(RecordInputStream in) {rt = in.readShort();grbitFrt = in.readShort();verOriginator = in.readByte();verWriter = in.readByte();int cCFRTID = in.readShort();rgCFRTID = new CFRTID[cCFRTID];for (int i = 0; i < cCFRTID; i++) {rgCFRTID[i] = new CFRTID(in);}}", "after": "public ChartFRTInfoRecord(RecordInputStream in1){rt = in1.ReadShort();grbitFrt = in1.ReadShort();verOriginator = (byte)in1.ReadByte();verWriter = (byte)in1.ReadByte();int cCFRTID = in1.ReadShort();rgCFRTID = new CFRTID[cCFRTID];for (int i = 0; i < cCFRTID; i++){rgCFRTID[i] = new CFRTID(in1);}}" }, { "index": 954, "before": "public Merger newMerger(Repository db) {return new OneSide(db, treeIndex);}", "after": "public override Merger NewMerger(Repository db){return new StrategyOneSided.OneSide(db, treeIndex);}" }, { "index": 955, "before": "public CreateDataSourceFromRedshiftResult createDataSourceFromRedshift(CreateDataSourceFromRedshiftRequest request) {request = beforeClientExecution(request);return executeCreateDataSourceFromRedshift(request);}", "after": "public virtual CreateDataSourceFromRedshiftResponse CreateDataSourceFromRedshift(CreateDataSourceFromRedshiftRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDataSourceFromRedshiftRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDataSourceFromRedshiftResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 956, "before": "public void clearDFA() {for (int d = 0; d < decisionToDFA.length; d++) {decisionToDFA[d] = new DFA(atn.getDecisionState(d), d);}}", "after": "public override void ClearDFA(){for (int d = 0; d < decisionToDFA.Length; d++){decisionToDFA[d] = new DFA(atn.GetDecisionState(d), d);}}" }, { "index": 957, "before": "public void removeName(String name) {int index = getNameIndex(name);removeName(index);}", "after": "public void RemoveName(String name){int index = GetNameIndex(name);RemoveName(index);}" }, { "index": 958, "before": "public String toString(){StringBuilder buffer = new StringBuilder();buffer.append( \"[RightMargin]\\n\" );buffer.append( \" .margin = \" ).append( \" (\" ).append( getMargin() ).append( \" )\\n\" );buffer.append( \"[/RightMargin]\\n\" );return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[RightMargin]\\n\");buffer.Append(\" .margin = \").Append(\" (\").Append(Margin).Append(\" )\\n\");buffer.Append(\"[/RightMargin]\\n\");return buffer.ToString();}" }, { "index": 959, "before": "public RefreshAllRecord clone() {return copy();}", "after": "public override Object Clone(){return new RefreshAllRecord(_options);}" }, { "index": 960, "before": "public StandardQueryNodeProcessorPipeline(QueryConfigHandler queryConfig) {super(queryConfig);add(new WildcardQueryNodeProcessor());add(new MultiFieldQueryNodeProcessor());add(new FuzzyQueryNodeProcessor());add(new RegexpQueryNodeProcessor());add(new MatchAllDocsQueryNodeProcessor());add(new OpenRangeQueryNodeProcessor());add(new PointQueryNodeProcessor());add(new PointRangeQueryNodeProcessor());add(new TermRangeQueryNodeProcessor());add(new AllowLeadingWildcardProcessor());add(new AnalyzerQueryNodeProcessor());add(new PhraseSlopQueryNodeProcessor());add(new BooleanQuery2ModifierNodeProcessor());add(new NoChildOptimizationQueryNodeProcessor());add(new RemoveDeletedQueryNodesProcessor());add(new RemoveEmptyNonLeafQueryNodeProcessor());add(new BooleanSingleChildOptimizationQueryNodeProcessor());add(new DefaultPhraseSlopQueryNodeProcessor());add(new BoostQueryNodeProcessor());add(new MultiTermRewriteMethodProcessor());}", "after": "public StandardQueryNodeProcessorPipeline(QueryConfigHandler queryConfig): base(queryConfig){Add(new WildcardQueryNodeProcessor());Add(new MultiFieldQueryNodeProcessor());Add(new FuzzyQueryNodeProcessor());Add(new MatchAllDocsQueryNodeProcessor());Add(new OpenRangeQueryNodeProcessor());Add(new NumericQueryNodeProcessor());Add(new NumericRangeQueryNodeProcessor());Add(new LowercaseExpandedTermsQueryNodeProcessor());Add(new TermRangeQueryNodeProcessor());Add(new AllowLeadingWildcardProcessor());Add(new AnalyzerQueryNodeProcessor());Add(new PhraseSlopQueryNodeProcessor());Add(new BooleanQuery2ModifierNodeProcessor());Add(new NoChildOptimizationQueryNodeProcessor());Add(new RemoveDeletedQueryNodesProcessor());Add(new RemoveEmptyNonLeafQueryNodeProcessor());Add(new BooleanSingleChildOptimizationQueryNodeProcessor());Add(new DefaultPhraseSlopQueryNodeProcessor());Add(new BoostQueryNodeProcessor());Add(new MultiTermRewriteMethodProcessor());}" }, { "index": 961, "before": "public String formatAsString(String sheetName, boolean useAbsoluteAddress) {StringBuilder sb = new StringBuilder();if (sheetName != null) {sb.append(SheetNameFormatter.format(sheetName));sb.append(\"!\");}CellReference cellRefFrom = new CellReference(getFirstRow(), getFirstColumn(),useAbsoluteAddress, useAbsoluteAddress);CellReference cellRefTo = new CellReference(getLastRow(), getLastColumn(),useAbsoluteAddress, useAbsoluteAddress);sb.append(cellRefFrom.formatAsString());if(!cellRefFrom.equals(cellRefTo)|| isFullColumnRange() || isFullRowRange()){sb.append(':');sb.append(cellRefTo.formatAsString());}return sb.toString();}", "after": "public String FormatAsString(String sheetName, bool useAbsoluteAddress){StringBuilder sb = new StringBuilder();if (sheetName != null){sb.Append(SheetNameFormatter.Format(sheetName));sb.Append(\"!\");}CellReference cellRefFrom = new CellReference(FirstRow, FirstColumn,useAbsoluteAddress, useAbsoluteAddress);CellReference cellRefTo = new CellReference(LastRow, LastColumn,useAbsoluteAddress, useAbsoluteAddress);sb.Append(cellRefFrom.FormatAsString());if (!cellRefFrom.Equals(cellRefTo)|| IsFullColumnRange || IsFullRowRange){sb.Append(':');sb.Append(cellRefTo.FormatAsString());}return sb.ToString();}" }, { "index": 962, "before": "public ByteBuffer put(int index, byte value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer put(int index, byte value){throw new System.NotImplementedException();}" }, { "index": 963, "before": "public void mode(int m) {_mode = m;}", "after": "public virtual void Mode(int m){_mode = m;}" }, { "index": 964, "before": "public ShortBuffer slice() {return new ReadWriteShortArrayBuffer(remaining(), backingArray, offset + position);}", "after": "public override java.nio.ShortBuffer slice(){return new java.nio.ReadWriteShortArrayBuffer(remaining(), backingArray, offset +_position);}" }, { "index": 965, "before": "public void set(int index, long n) {if (count < index)throw new ArrayIndexOutOfBoundsException(index);else if (count == index)add(n);elseentries[index] = n;}", "after": "public virtual void Set(int index, long n){if (count < index){throw Sharpen.Extensions.CreateIndexOutOfRangeException(index);}else{if (count == index){Add(n);}else{entries[index] = n;}}}" }, { "index": 966, "before": "public ByteBuffer putFloat(float value) {throw new ReadOnlyBufferException();}", "after": "public override java.nio.ByteBuffer putFloat(float value){throw new java.nio.ReadOnlyBufferException();}" }, { "index": 967, "before": "public static double max(double[] values) {double max = Double.NEGATIVE_INFINITY;for (double value : values) {max = Math.max(max, value);}return max;}", "after": "public static double Max(double[] values){double max = double.NegativeInfinity;for (int i = 0, iSize = values.Length; i < iSize; i++){max = Math.Max(max, values[i]);}return max;}" }, { "index": 968, "before": "public UpdateRepoWebhookRequest() {super(\"cr\", \"2016-06-07\", \"UpdateRepoWebhook\", \"cr\");setUriPattern(\"/repos/[RepoNamespace]/[RepoName]/webhooks/[WebhookId]\");setMethod(MethodType.POST);}", "after": "public UpdateRepoWebhookRequest(): base(\"cr\", \"2016-06-07\", \"UpdateRepoWebhook\", \"cr\", \"openAPI\"){UriPattern = \"/repos/[RepoNamespace]/[RepoName]/webhooks/[WebhookId]\";Method = MethodType.POST;}" }, { "index": 969, "before": "public DeleteAttributesRequest(String domainName, String itemName, java.util.List attributes, UpdateCondition expected) {setDomainName(domainName);setItemName(itemName);setAttributes(attributes);setExpected(expected);}", "after": "public DeleteAttributesRequest(string domainName, string itemName, List attributes, UpdateCondition expected){_domainName = domainName;_itemName = itemName;_attributes = attributes;_expected = expected;}" }, { "index": 970, "before": "public String toString() {StringBuilder sb = new StringBuilder();sb.append(\"[SXPI]\\n\");for (int i = 0; i < _fieldInfos.length; i++) {sb.append(\" item[\").append(i).append(\"]=\");_fieldInfos[i].appendDebugInfo(sb);sb.append('\\n');}sb.append(\"[/SXPI]\\n\");return sb.toString();}", "after": "public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(\"[SXPI]\\n\");for (int i = 0; i < _fieldInfos.Length; i++){sb.Append(\" item[\").Append(i).Append(\"]=\");_fieldInfos[i].AppendDebugInfo(sb);sb.Append('\\n');}sb.Append(\"[/SXPI]\\n\");return sb.ToString();}" }, { "index": 971, "before": "public boolean isSuccessful() {if (mergeResult != null)return mergeResult.getMergeStatus().isSuccessful();else if (rebaseResult != null)return rebaseResult.getStatus().isSuccessful();return true;}", "after": "public virtual bool IsSuccessful(){if (mergeResult != null){return mergeResult.GetMergeStatus().IsSuccessful();}else{if (rebaseResult != null){return rebaseResult.GetStatus().IsSuccessful();}}return true;}" }, { "index": 972, "before": "public void setBytesValue(byte[] value) {setBytesValue(new BytesRef(value));}", "after": "public virtual void SetBytesValue(byte[] value){SetBytesValue(new BytesRef(value));}" }, { "index": 973, "before": "public DescribeConnectionsResult describeConnections(DescribeConnectionsRequest request) {request = beforeClientExecution(request);return executeDescribeConnections(request);}", "after": "public virtual DescribeConnectionsResponse DescribeConnections(DescribeConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeConnectionsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 974, "before": "public DeletePhotosRequest() {super(\"CloudPhoto\", \"2017-07-11\", \"DeletePhotos\", \"cloudphoto\");setProtocol(ProtocolType.HTTPS);}", "after": "public DeletePhotosRequest(): base(\"CloudPhoto\", \"2017-07-11\", \"DeletePhotos\", \"cloudphoto\", \"openAPI\"){Protocol = ProtocolType.HTTPS;}" }, { "index": 975, "before": "public void add(E object) {iterator.add(object);subList.sizeChanged(true);end++;}", "after": "public void add(E @object){iterator.add(@object);subList.sizeChanged(true);end++;}" }, { "index": 976, "before": "public static ByteBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteHeapByteBuffer(capacity);}", "after": "public static java.nio.ByteBuffer allocate(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteHeapByteBuffer(capacity_1);}" }, { "index": 977, "before": "public SrndQuery getSubQuery(int qn) {return queries.get(qn);}", "after": "public virtual SrndQuery GetSubQuery(int qn) { return m_queries[qn]; }" }, { "index": 978, "before": "public float currentScore(int docId, String field, int start, int end, int numPayloadsSeen, float currentScore, float currentPayloadScore) {if (numPayloadsSeen == 0) {return currentPayloadScore;} else {return Math.min(currentPayloadScore, currentScore);}}", "after": "public override float CurrentScore(int docId, string field, int start, int end, int numPayloadsSeen, float currentScore, float currentPayloadScore){if (numPayloadsSeen == 0){return currentPayloadScore;}else{return Math.Min(currentPayloadScore, currentScore);}}" }, { "index": 979, "before": "public String toString(){StringBuilder sb = new StringBuilder();sb.append(\"[BLANK]\\n\");sb.append(\" row= \").append(HexDump.shortToHex(getRow())).append(\"\\n\");sb.append(\" col= \").append(HexDump.shortToHex(getColumn())).append(\"\\n\");sb.append(\" xf = \").append(HexDump.shortToHex(getXFIndex())).append(\"\\n\");sb.append(\"[/BLANK]\\n\");return sb.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[BLANK]\\n\");buffer.Append(\"row = \").Append(HexDump.ShortToHex(Row)).Append(\"\\n\");buffer.Append(\"col = \").Append(HexDump.ShortToHex(Column)).Append(\"\\n\");buffer.Append(\"xf = \").Append(HexDump.ShortToHex(XFIndex)).Append(\"\\n\");buffer.Append(\"[/BLANK]\\n\");return buffer.ToString();}" }, { "index": 980, "before": "public DescribeLogPatternResult describeLogPattern(DescribeLogPatternRequest request) {request = beforeClientExecution(request);return executeDescribeLogPattern(request);}", "after": "public virtual DescribeLogPatternResponse DescribeLogPattern(DescribeLogPatternRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLogPatternRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLogPatternResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 981, "before": "public RegisterTransitGatewayMulticastGroupMembersResult registerTransitGatewayMulticastGroupMembers(RegisterTransitGatewayMulticastGroupMembersRequest request) {request = beforeClientExecution(request);return executeRegisterTransitGatewayMulticastGroupMembers(request);}", "after": "public virtual RegisterTransitGatewayMulticastGroupMembersResponse RegisterTransitGatewayMulticastGroupMembers(RegisterTransitGatewayMulticastGroupMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterTransitGatewayMulticastGroupMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterTransitGatewayMulticastGroupMembersResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 982, "before": "public GetPhoneNumberSettingsResult getPhoneNumberSettings(GetPhoneNumberSettingsRequest request) {request = beforeClientExecution(request);return executeGetPhoneNumberSettings(request);}", "after": "public virtual GetPhoneNumberSettingsResponse GetPhoneNumberSettings(GetPhoneNumberSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPhoneNumberSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPhoneNumberSettingsResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 983, "before": "public ObjectId getData() {return data;}", "after": "public virtual ObjectId GetData(){return data;}" }, { "index": 984, "before": "public boolean isDirect() {return false;}", "after": "public override bool isDirect(){return false;}" }, { "index": 985, "before": "public DeleteServerCertificateRequest(String serverCertificateName) {setServerCertificateName(serverCertificateName);}", "after": "public DeleteServerCertificateRequest(string serverCertificateName){_serverCertificateName = serverCertificateName;}" }, { "index": 986, "before": "public StringBuffer append(double d) {RealToString.getInstance().appendDouble(this, d);return this;}", "after": "public java.lang.StringBuffer append(bool b){return append(b ? \"true\" : \"false\");}" }, { "index": 987, "before": "public GetEvaluationResult getEvaluation(GetEvaluationRequest request) {request = beforeClientExecution(request);return executeGetEvaluation(request);}", "after": "public virtual GetEvaluationResponse GetEvaluation(GetEvaluationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEvaluationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEvaluationResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 988, "before": "public LinkedDataRecord getDataName(){return dataName;}", "after": "public BRAIRecord GetDataName(){return dataName;}" }, { "index": 989, "before": "public boolean find(int start) {findPos = start;if (findPos < regionStart) {findPos = regionStart;} else if (findPos >= regionEnd) {matchFound = false;return false;}matchFound = findImpl(address, input, findPos, matchOffsets);if (matchFound) {findPos = matchOffsets[1];}return matchFound;}", "after": "public bool find(int start_1){findPos = start_1;if (findPos < _regionStart){findPos = _regionStart;}else{if (findPos >= _regionEnd){matchFound = false;return false;}}matchFound = findImpl(address, input, findPos, matchOffsets);if (matchFound){findPos = matchOffsets[1];}return matchFound;}" }, { "index": 990, "before": "public GetLifecyclePolicyPreviewResult getLifecyclePolicyPreview(GetLifecyclePolicyPreviewRequest request) {request = beforeClientExecution(request);return executeGetLifecyclePolicyPreview(request);}", "after": "public virtual GetLifecyclePolicyPreviewResponse GetLifecyclePolicyPreview(GetLifecyclePolicyPreviewRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLifecyclePolicyPreviewRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLifecyclePolicyPreviewResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 991, "before": "public SinglePositionTokenStream(String word) {termAtt = addAttribute(CharTermAttribute.class);posIncrAtt = addAttribute(PositionIncrementAttribute.class);this.word = word;returned = true;}", "after": "public SinglePositionTokenStream(string word){termAtt = AddAttribute();posIncrAtt = AddAttribute();this.word = word;returned = true;}" }, { "index": 992, "before": "public void serialize(LittleEndianOutput out) {out.writeShort(field_1_print_gridlines);}", "after": "public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_print_gridlines);}" }, { "index": 993, "before": "public String toString() {final StringBuilder s = new StringBuilder();s.append(Constants.typeString(getType()));s.append(' ');s.append(name());s.append(' ');s.append(commitTime);s.append(' ');appendCoreFlags(s);return s.toString();}", "after": "public override string ToString(){StringBuilder s = new StringBuilder();s.Append(Constants.TypeString(Type));s.Append(' ');s.Append(Name);s.Append(' ');s.Append(commitTime);s.Append(' ');AppendCoreFlags(s);return s.ToString();}" }, { "index": 994, "before": "public LsRemoteCommand setRemote(String remote) {checkCallable();this.remote = remote;return this;}", "after": "public virtual NGit.Api.LsRemoteCommand SetRemote(string remote){CheckCallable();this.remote = remote;return this;}" }, { "index": 995, "before": "public void collapseRow(int rowNumber) {int startRow = findStartOfRowOutlineGroup(rowNumber);RowRecord rowRecord = getRow(startRow);int nextRowIx = writeHidden(rowRecord, startRow);RowRecord row = getRow(nextRowIx);if (row == null) {row = createRow(nextRowIx);insertRow(row);}row.setColapsed(true);}", "after": "public void CollapseRow(int rowNumber){int startRow = FindStartOfRowOutlineGroup(rowNumber);RowRecord rowRecord = GetRow(startRow);int lastRow = WriteHidden(rowRecord, startRow, true);if (GetRow(lastRow + 1) != null){GetRow(lastRow + 1).Colapsed = (true);}else{RowRecord row = CreateRow(lastRow + 1);row.Colapsed = (true);InsertRow(row);}}" }, { "index": 996, "before": "public AssociateSkillGroupWithRoomResult associateSkillGroupWithRoom(AssociateSkillGroupWithRoomRequest request) {request = beforeClientExecution(request);return executeAssociateSkillGroupWithRoom(request);}", "after": "public virtual AssociateSkillGroupWithRoomResponse AssociateSkillGroupWithRoom(AssociateSkillGroupWithRoomRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateSkillGroupWithRoomRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateSkillGroupWithRoomResponseUnmarshaller.Instance;return Invoke(request, options);}" }, { "index": 997, "before": "public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(\"[SERIESLIST]\\n\");buffer.append(\" .seriesNumbers= \").append(\" (\").append( Arrays.toString(getSeriesNumbers()) ).append(\" )\");buffer.append(\"\\n\");buffer.append(\"[/SERIESLIST]\\n\");return buffer.toString();}", "after": "public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(\"[SERIESLIST]\\n\");buffer.Append(\" .seriesNumbers = \").Append(\" (\").Append(SeriesNumbers).Append(\" )\");buffer.Append(Environment.NewLine);buffer.Append(\"[/SERIESLIST]\\n\");return buffer.ToString();}" }, { "index": 998, "before": "public QueryConfigHandler getQueryConfigHandler() {return this.queryConfig;}", "after": "public virtual QueryConfigHandler GetQueryConfigHandler(){return this.queryConfig;}" }, { "index": 999, "before": "public String getClassArg() {if (null != originalArgs) {String className = originalArgs.get(CLASS_NAME);if (null != className) {return className;}}return getClass().getName();}", "after": "public virtual string GetClassArg(){if (null != originalArgs){string className = originalArgs[CLASS_NAME];if (null != className){return className;}}return this.GetType().Name;}" } ]